!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("mobx-react"),require("ca-ui-toolkit"),require("mobx-state-tree"),require("underscore"),require("prop-types"),require("classnames"),require("mobx"),require("jquery"),require("react-dom"),require("polyglot"),require("ca-modeller/shaping"),require("explore-common"),require("gemini/lib/@waca/core-client/js/core-client/ui/core/Class"),require("gemini/lib/@waca/dashboard-common/dist/core/Model"),require("dashboard-analytics/visualizations/vipr/VIPRConfig"),require("gemini/lib/@waca/dashboard-common/dist/core/APIFactory"),require("gemini/lib/@waca/dashboard-common/dist/api/PropertiesProviderAPI"),require("gemini/dashboard/model/LayoutModel"),require("gemini/dashboard/model/content/ContentModel"),require("gemini/lib/@waca/core-client/js/core-client/i18n/Formatter"),require("gemini/lib/@waca/dashboard-common/dist/utils/EventChainLocal"),require("gemini/api/impl/Dashboard"),require("dashboard-analytics/visualizations/vipr/VIPRUtils"),require("dashboard-analytics/widgets/livewidget/query/QueryResultData"),require("dashboard-analytics/widgets/livewidget/query/QueryResultObject"),require("gemini/dashboard/glass/BaseBoardView"),require("gemini/dashboard/layout/views/LayoutApi"),require("gemini/lib/@waca/dashboard-common/dist/utils/HtmlXSSUtils"),require("gemini/dashboard/layout/views/Widget"));else if("function"==typeof define&&define.amd)define(["react","mobx-react","ca-ui-toolkit","mobx-state-tree","underscore","prop-types","classnames","mobx","jquery","react-dom","polyglot","ca-modeller/shaping","explore-common","gemini/lib/@waca/core-client/js/core-client/ui/core/Class","gemini/lib/@waca/dashboard-common/dist/core/Model","dashboard-analytics/visualizations/vipr/VIPRConfig","gemini/lib/@waca/dashboard-common/dist/core/APIFactory","gemini/lib/@waca/dashboard-common/dist/api/PropertiesProviderAPI","gemini/dashboard/model/LayoutModel","gemini/dashboard/model/content/ContentModel","gemini/lib/@waca/core-client/js/core-client/i18n/Formatter","gemini/lib/@waca/dashboard-common/dist/utils/EventChainLocal","gemini/api/impl/Dashboard","dashboard-analytics/visualizations/vipr/VIPRUtils","dashboard-analytics/widgets/livewidget/query/QueryResultData","dashboard-analytics/widgets/livewidget/query/QueryResultObject","gemini/dashboard/glass/BaseBoardView","gemini/dashboard/layout/views/LayoutApi","gemini/lib/@waca/dashboard-common/dist/utils/HtmlXSSUtils","gemini/dashboard/layout/views/Widget"],t);else{var n="object"==typeof exports?t(require("react"),require("mobx-react"),require("ca-ui-toolkit"),require("mobx-state-tree"),require("underscore"),require("prop-types"),require("classnames"),require("mobx"),require("jquery"),require("react-dom"),require("polyglot"),require("ca-modeller/shaping"),require("explore-common"),require("gemini/lib/@waca/core-client/js/core-client/ui/core/Class"),require("gemini/lib/@waca/dashboard-common/dist/core/Model"),require("dashboard-analytics/visualizations/vipr/VIPRConfig"),require("gemini/lib/@waca/dashboard-common/dist/core/APIFactory"),require("gemini/lib/@waca/dashboard-common/dist/api/PropertiesProviderAPI"),require("gemini/dashboard/model/LayoutModel"),require("gemini/dashboard/model/content/ContentModel"),require("gemini/lib/@waca/core-client/js/core-client/i18n/Formatter"),require("gemini/lib/@waca/dashboard-common/dist/utils/EventChainLocal"),require("gemini/api/impl/Dashboard"),require("dashboard-analytics/visualizations/vipr/VIPRUtils"),require("dashboard-analytics/widgets/livewidget/query/QueryResultData"),require("dashboard-analytics/widgets/livewidget/query/QueryResultObject"),require("gemini/dashboard/glass/BaseBoardView"),require("gemini/dashboard/layout/views/LayoutApi"),require("gemini/lib/@waca/dashboard-common/dist/utils/HtmlXSSUtils"),require("gemini/dashboard/layout/views/Widget")):t(e.react,e["mobx-react"],e["ca-ui-toolkit"],e["mobx-state-tree"],e.underscore,e["prop-types"],e.classnames,e.mobx,e.jquery,e["react-dom"],e.polyglot,e["ca-modeller/shaping"],e["explore-common"],e["gemini/lib/@waca/core-client/js/core-client/ui/core/Class"],e["gemini/lib/@waca/dashboard-common/dist/core/Model"],e["dashboard-analytics/visualizations/vipr/VIPRConfig"],e["gemini/lib/@waca/dashboard-common/dist/core/APIFactory"],e["gemini/lib/@waca/dashboard-common/dist/api/PropertiesProviderAPI"],e["gemini/dashboard/model/LayoutModel"],e["gemini/dashboard/model/content/ContentModel"],e["gemini/lib/@waca/core-client/js/core-client/i18n/Formatter"],e["gemini/lib/@waca/dashboard-common/dist/utils/EventChainLocal"],e["gemini/api/impl/Dashboard"],e["dashboard-analytics/visualizations/vipr/VIPRUtils"],e["dashboard-analytics/widgets/livewidget/query/QueryResultData"],e["dashboard-analytics/widgets/livewidget/query/QueryResultObject"],e["gemini/dashboard/glass/BaseBoardView"],e["gemini/dashboard/layout/views/LayoutApi"],e["gemini/lib/@waca/dashboard-common/dist/utils/HtmlXSSUtils"],e["gemini/dashboard/layout/views/Widget"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}("undefined"!=typeof self?self:this,function(e,t,n,o,i,r,a,s,l,d,u,c,p,f,h,m,g,v,_,y,b,w,x,C,S,E,M,T,I,A){return webpackJsonp([0],[function(t,n){t.exports=e},,,,,function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t){e.exports=r},function(e,t){e.exports=a},function(e,t){e.exports=s},,,function(e,t){e.exports=l},,,function(e,t){e.exports=d},,function(e,t,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(e){function t(n){if(o[n])return o[n].exports;var i=o[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n=window.webpackJsonPBaGraphics;window.webpackJsonPBaGraphics=function(o,r,a){for(var s,l,d,u=0,c=[];u"+e+""};return function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"==typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return i(c(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(n)}()}()}).call(t,n("698d75b157f24ae829cc"))},"9ce58a7deea14f49ef01":function(e,t,n){(function(t){!function(t,n){e.exports=function(){function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}function n(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).map(function(e){e(n)}),(e["*"]||[]).map(function(e){e(t,n)})}}}function i(e,t){return S(e).reduce(function(e,n){if(!n.attributes)return e;var o=S(n.attributes),i=t?o.filter(t):o;return e.concat(i)},[])}function r(e){return e.replace(L,function(e){return"%"+e[0].charCodeAt(0).toString(16).toUpperCase()})}function a(e,t,n){return S(e).forEach(function(e){var o=e.getAttribute(R);if(o&&0===o.indexOf(t)){var i=o.replace(t,n);e.setAttributeNS(D,R,i)}}),e}var s=("undefined"!=typeof window?window:void 0!==t||"undefined"!=typeof self&&self,e(function(e,t){!function(t,n){e.exports=function(){function e(e){return e&&"object"==(void 0===e?"undefined":o(e))&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,o){return o&&!0===o.clone&&e(n)?a(t(n),n,o):n}function i(t,o,i){var r=t.slice();return o.forEach(function(o,s){void 0===r[s]?r[s]=n(o,i):e(o)?r[s]=a(t[s],o,i):-1===t.indexOf(o)&&r.push(n(o,i))}),r}function r(t,o,i){var r={};return e(t)&&Object.keys(t).forEach(function(e){r[e]=n(t[e],i)}),Object.keys(o).forEach(function(s){e(o[s])&&t[s]?r[s]=a(t[s],o[s],i):r[s]=n(o[s],i)}),r}function a(e,t,o){var a=Array.isArray(t),s=o||{arrayMerge:i},l=s.arrayMerge||i;return a?Array.isArray(e)?l(e,t,o):n(t,o):r(e,t,o)}return a.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,n){return a(e,n,t)})},a}()}()})),l=e(function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default}),d=function(e){return Object.keys(e).map(function(t){return t+'="'+e[t].toString().replace(/"/g,""")+'"'}).join(" ")},u=l.svg,c=l.xlink,p={};p[u.name]=u.uri,p[c.name]=c.uri;var f,h=function(e,t){void 0===e&&(e="");var n=s(p,t||{});return""+e+""},m=l.svg,g=l.xlink,v={attrs:(f={style:["position: absolute","width: 0","height: 0"].join("; ")},f[m.name]=m.uri,f[g.name]=g.uri,f)},_=function(e){this.config=s(v,e||{}),this.symbols=[]};_.prototype.add=function(e){var t=this,n=t.symbols,o=this.find(e.id);return o?(n[n.indexOf(o)]=e,!1):(n.push(e),!0)},_.prototype.remove=function(e){var t=this,n=t.symbols,o=this.find(e);return!!o&&(n.splice(n.indexOf(o),1),o.destroy(),!0)},_.prototype.find=function(e){return this.symbols.filter(function(t){return t.id===e})[0]||null},_.prototype.has=function(e){return null!==this.find(e)},_.prototype.stringify=function(){var e=this.config,t=e.attrs,n=this.symbols.map(function(e){return e.stringify()}).join("");return h(n,t)},_.prototype.toString=function(){return this.stringify()},_.prototype.destroy=function(){this.symbols.forEach(function(e){return e.destroy()})};var y=function(e){var t=e.id,n=e.viewBox,o=e.content;this.id=t,this.viewBox=n,this.content=o};y.prototype.stringify=function(){return this.content},y.prototype.toString=function(){return this.stringify()},y.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach(function(t){return delete e[t]})};var b,w=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n},x=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"==typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return w(h(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(y),C={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},S=function(e){return Array.prototype.slice.call(e,0)},E=navigator.userAgent,M={isChrome:/chrome/i.test(E),isFirefox:/firefox/i.test(E),isIE:/msie/i.test(E)||/trident/i.test(E),isEdge:/edge/i.test(E)},T=function(e,t){var n=document.createEvent("CustomEvent");n.initCustomEvent(e,!1,!1,t),window.dispatchEvent(n)},I=function(e){var t=[];return S(e.querySelectorAll("style")).forEach(function(e){e.textContent+="",t.push(e)}),t},A=function(e){return(e||window.location.href).split("#")[0]},P=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",function(t,n,o){T(e,{oldUrl:o,newUrl:n})})}])},O=function(e,t){return void 0===t&&(t="linearGradient, radialGradient, pattern"),S(e.querySelectorAll("symbol")).forEach(function(e){S(e.querySelectorAll(t)).forEach(function(t){e.parentNode.insertBefore(t,e)})}),e},D=l.xlink.uri,R="xlink:href",L=/[{}|\\\^\[\]`"<>]/g,N=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],F=N.map(function(e){return"["+e+"]"}).join(","),V=function(e,t,n,o){var s=r(n),l=r(o);i(e.querySelectorAll(F),function(e){var t=e.localName,n=e.value;return-1!==N.indexOf(t)&&-1!==n.indexOf("url("+s)}).forEach(function(e){return e.value=e.value.replace(s,l)}),a(t,s,l)},k={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},z=function(e){function t(t){var o=this;void 0===t&&(t={}),e.call(this,s(C,t));var i=n();this._emitter=i,this.node=null;var r=this,a=r.config;if(a.autoConfigure&&this._autoConfigure(t),a.syncUrlsWithBaseTag){var l=document.getElementsByTagName("base")[0].getAttribute("href");i.on(k.MOUNT,function(){return o.updateUrls("#",l)})}var d=this._handleLocationChange.bind(this);this._handleLocationChange=d,a.listenLocationChangeEvent&&window.addEventListener(a.locationChangeEvent,d),a.locationChangeAngularEmitter&&P(a.locationChangeEvent),i.on(k.MOUNT,function(e){a.moveGradientsOutsideSymbol&&O(e)}),i.on(k.SYMBOL_MOUNT,function(e){a.moveGradientsOutsideSymbol&&O(e.parentNode),(M.isIE||M.isEdge)&&I(e)})}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var o={isMounted:{}};return o.isMounted.get=function(){return!!this.node},t.prototype._autoConfigure=function(e){var t=this,n=t.config;void 0===e.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag=void 0!==document.getElementsByTagName("base")[0]),void 0===e.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="angular"in window),void 0===e.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=M.isFirefox)},t.prototype._handleLocationChange=function(e){var t=e.detail,n=t.oldUrl,o=t.newUrl;this.updateUrls(n,o)},t.prototype.add=function(t){var n=this,o=e.prototype.add.call(this,t);return this.isMounted&&o&&(t.mount(n.node),this._emitter.emit(k.SYMBOL_MOUNT,t.node)),o},t.prototype.attach=function(e){var t=this,n=this;if(n.isMounted)return n.node;var o="string"==typeof e?document.querySelector(e):e;return n.node=o,this.symbols.forEach(function(e){e.mount(n.node),t._emitter.emit(k.SYMBOL_MOUNT,e.node)}),S(o.querySelectorAll("symbol")).forEach(function(e){var t=x.createFromExistingNode(e);t.node=e,n.add(t)}),this._emitter.emit(k.MOUNT,o),o},t.prototype.destroy=function(){var e=this,t=e.config,n=e.symbols,o=e._emitter;n.forEach(function(e){return e.destroy()}),o.off("*"),window.removeEventListener(t.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},t.prototype.mount=function(e,t){void 0===e&&(e=this.config.mountTo),void 0===t&&(t=!1);var n=this;if(n.isMounted)return n.node;var o="string"==typeof e?document.querySelector(e):e,i=n.render();return this.node=i,t&&o.childNodes[0]?o.insertBefore(i,o.childNodes[0]):o.appendChild(i),this._emitter.emit(k.MOUNT,i),i},t.prototype.render=function(){return w(this.stringify())},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},t.prototype.updateUrls=function(e,t){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return V(this.node,n,A(e)+"#",A(t)+"#"),!0},Object.defineProperties(t.prototype,o),t}(_),j=e(function(e){/*! * domready (c) Dustin Diaz 2014 - License MIT */ !function(t,n){e.exports=function(){var e,t=[],n=document,o=n.documentElement.doScroll,i=(o?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return i||n.addEventListener("DOMContentLoaded",e=function(){for(n.removeEventListener("DOMContentLoaded",e),i=1;e=t.shift();)e()}),function(e){i?setTimeout(e,0):t.push(e)}}()}()});!window.__SVG_SPRITE__?(b=new z({attrs:{id:"__SVG_SPRITE_NODE__"}}),window.__SVG_SPRITE__=b):b=window.__SVG_SPRITE__;var U=function(){var e=document.getElementById("__SVG_SPRITE_NODE__");e?b.attach(e):b.mount(document.body,!0)};return document.body?U():j(U),b}()}()}).call(t,n("698d75b157f24ae829cc"))}})},,,function(e,t){e.exports=u},,function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(t){var n=t.find(function(t){return t.id===e});if(n)return n.name}return e}function r(e,t){var n=e.length;return e.startsWith(J.HIERARCHY)?e.substr(J.HIERARCHY.length,n):e.startsWith(J.CONCEPT)?e.substr(J.CONCEPT.length,n):e.startsWith(J.NONE)?i(e.substr(J.NONE.length,n),t):""}function a(e){var t=e.length,n={groupType:null,groupLabel:null};return e.startsWith(J.NONE)?(n.groupLabel=e.substr(J.NONE.length,t),n.groupType="none",n):e.startsWith(J.HIERARCHY)?(n.groupLabel=e.substr(J.HIERARCHY.length,t),n.groupType="hierarchy",n):e.startsWith(J.CONCEPT)?(n.groupLabel=e.substr(J.CONCEPT.length,t),n.groupType="concept",n):n}function s(e,t){return{linkDataset:l(e,t),nodeDataset:null}}function l(e,t){if(e&&e.relationshipStrength&&e.relationshipStrength.predictStatus&&"ERROR"===e.relationshipStrength.predictStatus.state){var n=t?t.targetId:"unknown";return d(Q.WARN,n,$.LINKDATASET)}return null}function d(e,t,n){var o="An error occurs when querying relationship strengths (link datasets) for target: "+t,i="An error occurs when querying relationship nodes (node datasets) for target: "+t;return{status:e,category:n,details:n===$.LINKDATASET?o:i}}function u(e){e&&e.status===Q.WARN&&console.warn(e.details)}function c(e){var t=Object.keys(e.transformOptions)[0],n=null,o=e.targetModel;switch(t){case"filterStrength":case"showPrimaryRelationshipView":case"scopedFields":n=v(e.rawData,e);break;case"deletedFields":n=g(e.diagramData,e.transformOptions.deletedFields),n=m(n);break;case"lastAddedFields":p(A(e.diagramData,e.rawData,{addedFields:e.transformOptions.lastAddedFields,targetId:e.model.getCurrentTargetId(),showPrimaryRelationshipView:e.targetModel.getDiagramFilterCondition().showPrimaryRelationshipView}),e),n=e.diagramData;break;case"lastShowRelationshipsField":var i=e.transformOptions.lastShowRelationshipsField,r=i.from,a=i.to,s=e.transformOptions.lastShowRelationshipsField.relationship,l=e.diagramData;s=_(s);var d=y(r,a,s,l,{targetModel:o,showMessage:!0});d&&!0===d.isToNodeNotInDiagram&&o.addToAddedFields([a]),o.setRelationship(r,a,s),n=l;break;default:n=e.diagramData||e.rawData}return n&&o&&o.setDiagramData(n),n}function p(e,t){if(e&&e.unfoundNodeIds.length){var n=t.targetModel.getDiagramFilterCondition().showPrimaryRelationshipView,o="";o=1===t.transformOptions.lastAddedFields.length?G.default.get("startingPoints_no_relationship_found"):n?G.default.get("startingPoints_no_direct_relationship_withNumberNotFound",{notFoundNodesNumber:JSON.stringify(e.unfoundNodeIds.length),totalAddedNodesNumber:JSON.stringify(t.transformOptions.lastAddedFields.length)}):G.default.get("startingPoints_no_relationship_withNumberNotFound",{notFoundNodesNumber:JSON.stringify(e.unfoundNodeIds.length),totalAddedNodesNumber:JSON.stringify(t.transformOptions.lastAddedFields.length)}),t.targetModel.setActionInfoStatus(o)}}function f(e,t){var n={},o=function(e,t){n[e]||(n[e]=[]),n[e].push(t)};e.relationshipStrength.results.forEach(function(e){return e.relationships.forEach(function(e){var t=e.fieldA,n=e.fieldB;o(t,n),o(n,t)})});for(var i={},r=[t];r.length;){var a=r.pop();if(!i[a]){i[a]=!0;var s=n[a]||[];r=r.concat(s)}}return B.default.keys(i)}function h(e){if(!e||!e.nodesDataset)return e;var t=B.default.flatten(e.nodesDataset.groupings.map(function(e){return e.groups.map(function(e){return e.members.map(function(e){return e.id})})})),n=f(e,e.nodesDataset.targetId);return B.default.difference(t,n)}function m(e){return g(e,h(e))}function g(e,t){var n=function(e){return t.indexOf(e)>-1};return e&&e.nodesDataset?U({},e,{nodesDataset:U({},e.nodesDataset,{groupings:e.nodesDataset.groupings.map(function(e){return U({},e,{groups:e.groups.map(function(e){return U({},e,{members:e.members.filter(function(e){var t=e.id;return!n(t)})})}).filter(function(e){return!!e.members.length})})})}),relationshipStrength:U({},e.relationshipStrength,{results:e.relationshipStrength.results.map(function(e){return U({},e,{relationships:e.relationships.filter(function(e){var t=e.fieldA,o=e.fieldB;return!n(t)&&!n(o)})})})})}):e}function v(e,t){var n=t.targetModel,o=b(e,n)||e,i=n.getDiagramFilterCondition(),r=o;if(i&&(r=w(o,i))&&r.distinctNodes.length){n.updateInitialFilterStrength(r.filterStrengthInfo),r=I(o,r);var a=n.getDeletedFields();a.length&&(r=g(r,a),r=m(r));var s=n.getAddedFields();if(s.length){var l=i.targetId,d=i.showPrimaryRelationshipView;A(r,e,{addedFields:s,targetId:l,showPrimaryRelationshipView:d})}var u=n.getShowRelationships(),c=Object.keys(u);c.length&&c.forEach(function(e){u[e].forEach(function(t){y(e,t.to,t.relationship,r)})})}return r}function _(e){if(e){e=JSON.parse(JSON.stringify(e));var t=e,n=t.toNode;n&&n.members&&n.members.length>0&&delete n.members[0].type}return e}function y(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(k(e,o)){var r={},a=null;if(n){var s=n.toNode,l=n.link;k(t,o)||(o.nodesDataset.groupings[0].groups.push(s),r.isToNodeNotInDiagram=!0);var d=o.relationshipStrength.results[0].relationships;d.find(function(e){return B.default.isEqual(e,l)})||d.push(l)}else a=G.default.get("startingPoints_no_direct_relationship_between_two_nodes",{columndIDAndLabelFrom:e,columndIDAndLabelTo:t});var u=i.showMessage,c=i.targetModel;return c&&u&&a&&a.length&&c.setActionInfoStatus(a),r}}function b(e,t){var n=t.scope,o=n.getScopedFields(),i=null;if(o&&(i=R(e,{scopedFields:o.map(function(e){return e.fieldIDForExpression}),targetId:n.fieldId}))){var r=i.relationshipStrength&&i.relationshipStrength.results;r&&r.length&&r[0].relationships.sort(function(e,t){return t.strength-e.strength})}return i}function w(e,t){var n=e&&e.relationshipStrength&&e.relationshipStrength.results&&e.relationshipStrength.results.length?e.relationshipStrength.results[0].relationships:[],o=E(n,t.targetId),i=x(o.primaryLinks,t);if(0===i.links.length)return i;if(!t.showPrimaryRelationshipView&&o.secondaryLinks.length>0){var r=i,a=i,s=a.filterStrengthInfo,l=i.links.length;i=S(o.secondaryLinks,t,r),i.links.length>l?i.filterStrengthInfo=T(i.links,l):i.filterStrengthInfo=s}return i}function x(e,t){var n=t.targetId,o=t.maxNodesToDisplay,i=t.filterStrength,r=[n],a=[],s=!1,l=0;if(e&&e.length){for(;!s&&r.lengthd.strength)&&(s=!0)}var u=X.default.max_nodes_to_display;r.length0?(a.push(c),1===p.length&&(p[0]===c.fieldA?s.push(c.fieldB):s.push(c.fieldA))):u.push(c)}(d===e.length||r&&r.min>c.strength||a.length===i)&&(l=!0)}if(s.length0&&u.length=o&&e.length>0){var f=u.length>0?u:e;f.forEach(function(e){if(M(e,r)&&a.lengtht.max)}function T(e,t){var n=e[t-1].strength,o=e[0].strength,i=e.slice(t).map(function(e){return e.strength});i.sort(function(e,t){return e-t});var r=i.length-1;return{min:i[0]o?i[r]:o}}function I(e,t){var n=function(e){return t.distinctNodes.indexOf(e)>-1};return U({},e,{nodesDataset:U({},e.nodesDataset,{groupings:e.nodesDataset.groupings.map(function(e){return U({},e,{groups:e.groups.map(function(e){return U({},e,{members:e.members.filter(function(e){var t=e.id;return n(t)})})}).filter(function(e){return!!e.members.length})})})}),relationshipStrength:U({},e.relationshipStrength,{results:[{relationships:t.links}]})})}function A(e,t,n){var o=n.addedFields,i=n.targetId,r=n.showPrimaryRelationshipView,a=null;return o&&o.length>0&&(a=r?P(o,e,t,i):O(o,e,t)),a}function P(e,t,n,o){var i={foundNodes:[],unfoundNodeIds:[]};return e.forEach(function(e){var r=D(t,n,{fieldId:e,targetId:o});r&&r.node?i.foundNodes.push(r.node):i.unfoundNodeIds.push(e)}),i}function O(e,t,n){var o={foundNodes:[],unfoundNodeIds:[],nodesToAdd:[],linksToAdd:[]},i=F(e,t);if(i.foundNodes.length&&(o.foundNodes=o.foundNodes.concat(i.foundNodes)),i.unfoundNodeIds.length){var r=F(i.unfoundNodeIds,n);r.foundNodes.length&&r.foundNodes.forEach(function(e){var i=e.members[0].id,r=N(t,n,i);r.length?(o.nodesToAdd.push(e),o.linksToAdd=o.linksToAdd.concat(r)):o.unfoundNodeIds.push(i)}),r.unfoundNodeIds.length&&(o.unfoundNodeIds=o.unfoundNodeIds.concat(r.unfoundNodeIds))}return o.nodesToAdd.length&&(t.nodesDataset.groupings[0].groups=t.nodesDataset.groupings[0].groups.concat(o.nodesToAdd),o.foundNodes=o.foundNodes.concat(o.nodesToAdd)),o.linksToAdd.length&&(t.relationshipStrength.results[0].relationships=t.relationshipStrength.results[0].relationships.concat(o.linksToAdd)),o}function D(e,t,n){var o=n.fieldId,i=n.targetId,r=L(e,t,{fieldId:o,targetId:i,showPrimaryRelationshipView:!0});if(r&&r.node&&r.links&&r.links.length){var a=e.nodesDataset.groupings[0].groups;if(!a.find(function(e){return e.groupId===r.node.groupId})){a.push(r.node);var s=e.relationshipStrength.results[0].relationships;r.links.forEach(function(e){-1===s.indexOf(e)&&s.push(e)})}}return r}function R(e,t){var n=t.scopedFields,o=t.targetId,i=Y.default.createSingleNode(o,"completed");return n.forEach(function(t){var r=L({},e,{fieldId:t,targetId:o},[].concat(n,[o]));if(r&&r.node&&r.links&&r.links.length){i.nodesDataset.groupings[0].groups.push(r.node);var a=i.relationshipStrength.results[0].relationships;r.links.forEach(function(e){-1===a.indexOf(e)&&a.push(e)})}}),i}function L(e,t,n,o){var i=n.fieldId,r=n.targetId,a=n.showPrimaryRelationshipView;if(i&&r&&e){var s=t,l=k(i,t);if(l){var d=s.relationshipStrength&&s.relationshipStrength.results;if(d&&d.length>0){var u=d[0].relationships.filter(function(n){return n.fieldB===i&&n.fieldA===r||n.fieldB===r&&n.fieldA===i||(a?void 0:o&&o.length?n.fieldB===i&&-1!==o.indexOf(n.fieldA)||n.fieldA===i&&-1!==o.indexOf(n.fieldB):N(e,t,i))});if(u.length)return{node:l,links:u}}}}return null}function N(e,t,n){var o=t.relationshipStrength.results[0].relationships,i=[];if(o){var r=o.filter(function(e){return e.fieldA===n||e.fieldB===n});if(r.length){var a=r.map(function(e){return e.fieldA===n?e.fieldB:e.fieldA}),s=V(e,!1),l=B.default.intersection(a,s);l.length>0&&l.forEach(function(e){var t=r.find(function(t){return t.fieldA===e||t.fieldB===e});t&&i.push(t)})}}return i}function F(e,t){var n={foundNodes:[],unfoundNodeIds:[]};return e&&e.length&&e.find(function(e){var o=k(e,t);o?n.foundNodes.push(o):n.unfoundNodeIds.push(e)}),n}function V(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=[],o=e&&e.nodesDataset&&e.nodesDataset.groupings;if(o&&o.length>0){var i=o[0].groups;i&&i.length>0&&i.forEach(function(e){var o=e.members[0];t&&"focusField"===o.type||n.push(o.id)})}return n}function k(e,t){var n=null;if(e&&t&&t.nodesDataset&&t.nodesDataset.groupings){var o=t.nodesDataset.groupings;if(o&&o.length>0){var i=o[0].groups;i&&i.length>0&&(n=i.find(function(t){if(t&&t.members&&t.members.length>0)return t.members[0].id===e}))}}return n}function z(e,t,n){var o=k(e,n),i=k(t,n);if(o&&i&&n&&n.relationshipStrength){var r=n.relationshipStrength.results;if(r&&r.length){var a=r[0].relationships.find(function(n){return n.fieldA===e&&n.fieldB===t||n.fieldA===t&&n.fieldB===e});if(a)return{nodeOne:o,nodeTwo:i,link:a}}}return null}function j(e){return e&&(Number.isInteger(e.strength)?1===e.strength&&(e.strength=100):e.strength=Math.round(100*e.strength)),e}t.__esModule=!0,t.findLinkWithAnyNodeInDiagram=t.formatLinkStrength=t.findDirectLink=t.getAllFieldNodesFromDiagramCache=t.findNodesFromCache=t.findSingleNodeFromCache=t.addSingleField=t.addFields=t.linkStrengthInRange=t.formatFilterResult=t.adjustMinMaxStrength=t.triageLinks=t.filterSecondaryLinks=t.filterPrimaryLinks=t.filterRelationshipStrength=t.removeDeletedFields=t.getOrphanFields=t.getConnectedFields=t.applyTransforms=t.printMsg=t.getDataVerificationResults=t.getGroupTypeAndGroupLabel=t.getFieldLabel=t.getGroupLabel=void 0;var U=Object.assign||function(e){for(var t=1;t-1?o.slice(n,n+e):o},t.prototype.renderAutoMode=function(){if(this.props.selectedVisId){var e=!0!==this.props.isVizTypeLocked,t=this.props.horizontal;return d.default.createElement(m.Tooltip,{title:w.default.get("change_vis"),orient:"top",display:"block"},d.default.createElement(y.default,{isHorizontal:t,isSelected:e,onSelect:this._onAutoSwitchIconClick,size:this.props.itemSize}))}},t.prototype.renderListItems=function(){var e=this.props,t=e.horizontal,n=e.isVizTypeLocked,o=e.visStartingIndex,i=e.predictData,r=e.isPredictPreview,a=e.onAddItem,s=e.titleOnBottom,l=e.onClickItem,u=e.spinnerSize,c=e.featureSet,p=e.onPromptingError,f=e.isNewLayoutEnabled,h=e.additionalProperties,m=e.noBottomTitle,g=e.itemSize,_=e.dashboardApi,y=e.logger;return this._getFinalVizItemsList().map(function(e,b){var w=o+b,x=w+e.name;return d.default.createElement(v.default,{isVizTypeLocked:n,horizontal:t,key:x,visTypeName:e,predictData:i,isPredictPreview:r,index:w,item:e,add:a,titleOnBottom:s,onClick:l,dashboardApi:_,spinnerSize:u,featureSet:c,logger:y,onPromptingError:p,isNewLayoutEnabled:f,additionalProperties:h,noBottomTitle:m,size:g})})},t.prototype.renderSeeMore=function(){var e,t=(0,h.default)(x+"__see-more",(e={},e[x+"__see-more--hidden"]=!this._isSeeMoreEnabled(),e));return d.default.createElement("div",{className:t},d.default.createElement(m.Link,{tabIndex:"0",href:"#",target:"_self","aria-label":w.default.get("see_more_aria_label"),onClick:this._onClickSeeMore.bind(this),onKeyDown:this._onKeyDownSeeMore.bind(this)},w.default.get("see_more")))},t.prototype._onKeyDownSeeMore=function(e){13!==e.keyCode&&32!==e.keyCode||this._doSeeMore(e)},t.prototype._onClickSeeMore=function(e){this._doSeeMore(e)},t.prototype._doSeeMore=function(e){e.preventDefault(),this.setState({maxDisplayedItems:-1,isExpanded:!0})},t.prototype._isSeeMoreEnabled=function(){return!(!this.props.enableSeeMore||this.state.isExpanded)&&this.props.items.length>3},t.prototype.componentDidMount=function(){this._rootRef.current&&this.props.horizontal&&this.props.hasFocus&&this._rootRef.current.querySelector("[tabIndex]").focus()},t}(l.Component))||s;C.propTypes={dashboardApi:c.default.object.isRequired,items:c.default.array.isRequired,onClickItem:c.default.func,onAddItem:c.default.func,horizontal:c.default.bool,maxDisplayedItems:c.default.number,visStartingIndex:c.default.number,titleOnBottom:c.default.bool,enableSeeMore:c.default.bool,recommendSwitch:c.default.bool,isVizTypeLocked:c.default.bool,selectedVisId:c.default.string,additionalProperties:c.default.arrayOf(c.default.object),spinnerSize:c.default.oneOf(["small","normal","large"]),featureSet:c.default.array,predictData:c.default.object,logger:c.default.object,isPredictPreview:c.default.bool,onPromptingError:c.default.func,isNewLayoutEnabled:c.default.bool,noBottomTitle:c.default.bool,itemSize:c.default.oneOf(["small","medium"]),hasFocus:c.default.bool},C.defaultProps={horizontal:!1,maxDisplayedItems:-1,visStartingIndex:0,titleOnBottom:!0,enableSeeMore:!0,recommendSwitch:!1,isVizTypeLocked:!1,isPredictPreview:!1,additionalProperties:[],spinnerSize:"normal",featureSet:[],onPromptingError:function(){},noBottomTitle:!1,hasFocus:!0},t.default=C},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.DropDownToolbarItem=t.CustomToolbarItem=t.CaretToolbarItem=t.ToolbarItem=void 0;var i=n(324),r=o(i),a=n(94),s=o(a),l=n(329),d=o(l),u=n(332),c=o(u);t.ToolbarItem=r.default,t.CaretToolbarItem=s.default,t.CustomToolbarItem=d.default,t.DropDownToolbarItem=c.default},function(e,t,n){var o=n(405);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},,function(e,t){e.exports=p},function(e,t,n){"use strict";function o(e){return d._generateUniqueId(e)}function i(e,t,n,o,i){var r=i||t;for(var a in e){var s=o?!(-1!==n.indexOf(a)):-1!==n.indexOf(a);"function"==typeof e[a]&&s&&Object.defineProperty(t,a,{value:e[a].bind(r),writable:!0})}}function r(e,t,n){var o={path:"/"+t,op:"replace",value:n};(0,s.applyPatch)(e,o)}function a(e){var t={id:s.types.optional(s.types.identifier,o("model"))};return(e&&e.whitelistAttrs||[]).forEach(function(e){t[e]=s.types.union(s.types.maybeNull(s.types.undefined),s.types.number,s.types.boolean,s.types.Date,s.types.string)}),t}t.__esModule=!0,t.generateUniqueId=o,t.adoptFunctions=i,t.setUsingPatch=r,t.constructProps=a;var s=n(7),l=n(68),d=new l},,,,function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.ReactLayoutImplBase=t.LayoutBase=void 0;var s=n(0),l=o(s),d=n(17),u=o(d),c=n(1),p=o(c),f=n(7),h=n(11),m=n(35),g=n(255);t.LayoutBase=function(){function e(t){if(a(this,e),this.dashboardApi=t.dashboardApi,this.content=t.content,this.layoutController=t.layoutController,this.parentLayout=t.parentLayout,this.authorHelper=t.authorHelper,this.model=t.model,this.services=t.services,this.logger=this.services.biGlass.glassContext.getCoreSvc(".Logger"),this.Component=this.Component||t.Component,this.id=t.model.id,this.childrenRenderMarkup=[],this.renderTracker=(0,h.observable)({shouldRenderCount:0}),this.childCount=0,this.$el=this.layoutController.$el.find("#"+this.id),this.domNode=this.$el.get(0),this._isTopLevel()){var n=this.model.type+"-react-layout-view";this.$el.addClass(n)}this._alive=!0,this.api=new g(this)}return e.prototype.destroy=function(){var e=this;clearTimeout(this.resizeTimer),this.authorHelper&&this.authorHelper.destroy(),this.removeRenderMarkupFromParent(),this.layoutController.removeView(this),this._alive=!1;var t=function(t){if(t){var n={value:{parameter:t.id}};e.layoutController.destroyLayoutView(t.id,n)}};this.model.items&&this.model.items.forEach(t),this._mountedComponent&&u.default.unmountComponentAtNode(this.$el[0]),this.domNode&&(this.domNode._layout=null)},e.prototype.setViewImpl=function(e){this.view=e},e.prototype.getChildRenderMarkup=function(e){return this.childrenRenderMarkup.find(function(t){return t.id===e})},e.prototype.addChildRenderMarkup=function(e,t){var n=this.getChildRenderMarkup(e);return n||(this.childrenRenderMarkup.push({id:e,value:t}),this.childCount++,this._tagReadyForRender()),!n},e.prototype._tagReadyForRender=function(){var e=this.model.items&&this.model.items.length||0;this.childCount===e&&(this.renderTracker.shouldRenderCount=this.childCount)},e.prototype.removeChildRenderMarkup=function(e){this.childrenRenderMarkup=this.childrenRenderMarkup.filter(function(t){return t.id!==e}),this.childCount--,this._tagReadyForRender()},e.prototype.getChildrenRenderMarkup=function(){return this.childrenRenderMarkup},e.prototype.getRenderMarkup=function(){return this.view&&this.view.getRenderMarkup()},e.prototype.addToParentRenderMarkup=function(){this.parentLayout&&this.parentLayout.addChildRenderMarkup(this.id,this.getRenderMarkup())},e.prototype.removeRenderMarkupFromParent=function(){this.parentLayout&&this.parentLayout.removeChildRenderMarkup(this.id)},e.prototype.getTemplate=function(){return['
{{items}}
']},e.prototype.getNodeId=function(){console.warn("`getNodeId` called - not implemented yet")},e.prototype.onResize=function(){},e.prototype.resize=function(){this.resizeChildren(0)},e.prototype.resizeChildren=function(e){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(this._onResize.bind(this),e)},e.prototype._onResize=function(){var e=this;if(clearTimeout(this.resizeTimer),this._alive){var t=function(t){var n=e.layoutController.getLayoutView(t.id);n&&n.onResize&&(!n.$el.is(":hidden")&&n.widget&&n.widget.isFirstRenderComplete&&n.widget.isFirstRenderComplete()?n.onResize():n.resizeOnShow())};(0,f.isAlive)(this.model)&&this.model.items&&this.model.items.forEach(function(e){e.items&&e.items.forEach(t),t(e)})}},e.prototype.onSelect=function(){console.warn("`onSelect` called - not implemented yet")},e.prototype.onDeselect=function(){console.warn("`onDeselect` called - not implemented yet")},e.prototype._isTopLevel=function(){return this.model.boardModel.layout.id===this.model.id},e.prototype.onShow=function(){if((!this.Component||!this.view)&&this.$el.length){this._beforeOnShowForAllChildren(),this._callChildrenFunction("addToParentRenderMarkup"),this.beforeOnShow&&this.beforeOnShow(),this.model.setDisplayStyleOn(),this._mountedComponent=!0,u.default.unmountComponentAtNode(this.$el[0]);var e=l.default.createElement(this.Component,{items:this.model?this.model.items:[],model:this.model,services:this.services,layoutController:this.layoutController,dashboardApi:this.dashboardApi,layoutOwner:this});u.default.render(e,this.$el.get(0)),this.$el.get(0)._layout=this}},e.prototype.render=function(){this.onShow()},e.prototype.renderContent=function(e){var t=this,n=this.content.getFeature("state.internal");n.setStatus(n.STATUS.RENDERING);var o=[];if(this.model.items)for(var i=0;i0?"_missingValueCount":""),n)}function i(e,t,n,i){if(e){for(var r=[],a=0;a1&&void 0!==arguments[1]?arguments[1]:null;t&&!x(t)||e.push(te.AVG)}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t&&!x(t)||e.push(te.AVG_SEL)}function E(e,t){if(0===e.length)return!1;var n=!0;return e.forEach(function(e){var o=e.aggregationType;n=n&&t(o)}),n}function M(e){if(0===e.length)return!1;var t=void 0;return!e.some(function(e){return t?t!==e.measureName:(t=e.measureName,!1)})}function T(e){return e.some(function(e){return e.statsUse[te.ROW_COUNT]>0})}function I(e,t){return v(e)||f(e)||h(e)?t&&isNaN(t)?O(t):t||0:m(e)?t:void 0}function A(e){return e&&e.values.filter(function(e){return"number"==typeof e}).length||0}function P(e){return e&&e.values.filter(function(e){return null===e}).length||0}function O(e){return e.length>0&&e.reduce(function(e,t){return e+t})||0}function D(e){var t=e.newCompareTableStatsEnabled,n=e.statsModel,r=e.chartVsChart,a=e.measureName,s=e.getString,p=e.widgetAlias,f=function(){for(var e=arguments.length,t=Array(e),n=0;n1?n.join(" | "):n[0]||"",numSelections:r}}function L(e){var t=e.newCompareTableStatsEnabled,n=e.statsModel,r=e.selStatsModel,a=e.measureName,s=e.getString,p=e.widgetAlias,m=function(){for(var e=arguments.length,t=Array(e),n=0;n1?Q.join(" | "):Q;oe>1&&(ae=ae+"+"+(oe-1));var se=I(ne,J&&J.values);se=l(se);var le=X&&X.get("summaryValueUse");if(K&&v(ne)){F=X.get("totalUse"),R=X.get("hasNegativeValues"),N=l(se/F*100),L=l(se/le*100);var de=K.format,ue=F,ce=le;T=d(se,de),ce=d(ce,de),ue=d(ue,de),U=u(L,de),W=u(N,de),G=R&&m(2,te.TOTAL_SEL,{itemName:K.label,widgetAlias:p}),H=m(2,te.PERCENT_SELvsCHART,{widgetAlias:p,total:T,summary:ue}),B=m(R?3:2,te.PERCENT_SEL_vsALLDATA,{widgetAlias:p,total:T,summary:ce})}var pe=J&&J.values||[];D=Math.max.apply(Math,pe),D=l(D);var fe=D;O=Math.min.apply(Math,pe),O=l(O);var he=O;if(Z&&(fe=d(fe,Z),he=d(he,Z)),K&&(f(ne)||g(ne))&&(C=d(void 0,Z)),K&&(h(ne)||g(ne))&&(S=d(void 0,Z)),t&&K&&g(ne)&&(se=J&&J.filteredSummaryValueUse,T=d(se,Z),L=l(se/le*100),U=u(L,Z),void 0!==se&&void 0!==le)){var me=K.format,ge=d(le,me);G=o(s,ne+"_"+te.TOTAL_SEL,{uniqueValues:T,label:K.label,overallSummaryValue:ge}),B=o(s,ne+"_"+te.PERCENT_SEL_vsALLDATA,{uniqueValues:T,label:K.label,percent:c(U),overallSummaryValue:ge})}if(K&&y(ne)&&J&&void 0!==J.weightedAvgUse&&J.detailRowCountUse>0&&(M=Z?d(J.weightedAvgUse,Z):J.weightedAvgUse.toString(),k=J.weightedAvgUse,z=J.detailRowCountUse,j=J.detailSumUse),K&&_(ne)){var ve=A(J);ve>0&&(V=I(ne,J&&J.values)/ve,E=Z?d(V,Z):V.toString())}return b[te.NUM_SELECTIONS]=A(J),b[te.SEL_CONTEXT]=ae,b[te.TOTAL]=ee,b[te.DIFF]=void 0,b[te.TOTAL_SEL]=T,b[te.MIN_SEL]=he,b[te.MAX_SEL]=fe,b[te.DIFF_SEL]=void 0,b[te.PERCENT_vsALLDATA]=ee,b[te.PERCENT_SEL_vsALLDATA]=U&&c(U)||ee,b[te.PERCENT_CHARTvsCHART]=ee,b[te.PERCENT_SELvsCHART]=W&&c(W)||ee,b[te.MIN]=C,b[te.MAX]=S,b[te.AVG]=E,b[te.AVG_SEL]=E,b[te.WEIGHTED_AVG_SEL]=M,w[te.TOTAL_SEL]=se,w[te.MIN_SEL]=O,w[te.MAX_SEL]=D,w[te.DIFF_SEL]=0,w[te.PERCENT_vsALLDATA]=ee,w[te.PERCENT_SEL_vsALLDATA]=L,w[te.PERCENT_CHARTvsCHART]=0,w[te.PERCENT_SELvsCHART]=N,w[te.MIN]=ee,w[te.MAX]=ee,w[te.AVG]=V||ee,w[te.ROW_COUNT]=ie,w[te.MISSING_VALUE_COUNT]=re,w[te.AVG_SEL]=V||ee,w[te.WEIGHTED_AVG_SEL]=k||ee,w[te.DETAIL_ROWCOUNT]=z,w[te.DETAIL_SUM]=j,w[te.SUMMARY_USE]=le,R&&"sum"===ne&&(w[te.HAS_NEGATIVE_VALUES]=[te.TOTAL_SEL,te.PERCENT_SEL_vsALLDATA]),w[te.NUM_SELECTIONS]=A(J),x[te.PERCENT_SEL_vsALLDATA]=B,x[te.PERCENT_SELvsCHART]=H,G&&(x[te.TOTAL_SEL]=G),w[te.AVG_SEL]!==ee&&(x[te.AVG_SEL]=o(s,te.AVG_SEL,{avg:E,rowCount:ie,missingValueCount:re})),w[te.WEIGHTED_AVG_SEL]!==ee&&(x[te.WEIGHTED_AVG_SEL]=o(s,te.WEIGHTED_AVG_SEL,{weightedAvg:M,detailRowCount:z,missingValueCount:re})),{stats:b,statsUse:w,toolTip:x,aggregationType:ne,measureName:a,meta:K,widgetAlias:p}}function N(e){var t=e.newCompareTableStatsEnabled,n=e.statsInfoList,o=e.applicableCalcs,i=e.getString,l=e.widgetContextCheckResult,d=e.combinedSummaryValueMap,u={stats:{},statsUse:{},toolTip:{}},c=function(){for(var e=arguments.length,t=Array(e),n=0;n1;if(x)if(E(n,v))u=k(n,c),u=z(n,void 0,p,u);else if(E(n,g)){if(u=U(n,te.TOTAL,te.TOTAL_SEL,c,!0),y&&d){var C=n[0].stats[te.TOTAL_SEL]!==ee?te.TOTAL_SEL:te.TOTAL,S=n[0].stats[te.TOTAL_SEL]!==ee?te.PERCENT_SEL_vsALLDATA:te.PERCENT_vsALLDATA,I=n[0].measureName;u=W(d[I],C,S,n[0].statsUse.summaryUse,p,u)}}else E(n,m)?u=j(n,"avg",p):E(n,h)?(u=U(n,te.MAX,te.MAX_SEL,c),u=z(n,te.MAX,p,u)):E(n,f)&&(u=U(n,te.MIN,te.MIN_SEL,c),u=z(n,te.MIN,p,u));return o.forEach(function(e){var t=x&&void 0!==u.stats[e]?u.stats[e]:ee,n=x&&u.statsUse&&void 0!==u.statsUse[e]?u.statsUse[e]:void 0,o=x&&u.toolTip[e];!x&&b&&(o=s(i,y,l)),_.push({value:t,valueUse:n,toolTip:o})}),_}function F(e,t,n,o,i){var r=[[te.TOTAL,te.DIFF],[te.TOTAL_SEL,te.DIFF_SEL]],a=i?r[1]:r[0],s=function(e){var t=l(e);return o?d(t,o):t.toString()},u={},c={};u[a[0]]=s(t[0].statsUse[a[0]]),c[a[0]]=s(t[1].statsUse[a[0]]),i||(u[te.PERCENT_vsALLDATA]=s(t[0].statsUse[te.PERCENT_vsALLDATA]),c[te.PERCENT_vsALLDATA]=s(t[1].statsUse[te.PERCENT_vsALLDATA])),e[a[1]]=n(2,a[1],{a:u[a[0]],b:c[a[0]]}),e[a[0]]=n(2,a[0],{a:u[a[0]],b:c[a[0]]}),i||(e[te.PERCENT_vsALLDATA]=n(2,te.PERCENT_vsALLDATA,{a:u[te.PERCENT_vsALLDATA],b:c[te.PERCENT_vsALLDATA]}))}function V(e,t,n,o,i,r){var a=function(e){var t=l(e);return i?d(t,i):t.toString()},s={},u={};s[t]=a(n[0].statsUse[t]),u[t]=a(n[1].statsUse[t]);var c=r?te.DIFF_SEL:te.DIFF;e[c]=o(2,c,{a:s[t],b:u[t]})}function k(e,t){var n={},o={},i={},r=0,a=void 0,s=0,u={},p=e[0].meta&&e[0].meta.format;e&&e.length>0&&e[0].stats[te.TOTAL]!==ee&&(2===e.length&&(a=e[0].statsUse[te.TOTAL]-e[1].statsUse[te.TOTAL],a=l(a),F(u,e,t,p)),e.forEach(function(e){r+=e.statsUse[te.TOTAL],s+=e.statsUse[te.PERCENT_vsALLDATA]}));var f=0,h=void 0;e&&e.length>0&&e[0].stats[te.TOTAL_SEL]!==ee&&(2===e.length&&(h=e[0].statsUse[te.TOTAL_SEL]-e[1].statsUse[te.TOTAL_SEL],h=l(h),F(u,e,t,p,!0)),e.forEach(function(e){f+=e.statsUse[te.TOTAL_SEL]}));var m=l(r);return n[te.TOTAL]=p?d(m,p):m.toString(),o[te.TOTAL]=m,n[te.DIFF]=p?d(a,p):a&&a.toString()||ee,o[te.DIFF]=a,n[te.PERCENT_vsALLDATA]=c(l(s)),o[te.PERCENT_vsALLDATA]=l(s),m=l(f),n[te.TOTAL_SEL]=p?d(m,p):m.toString(),o[te.TOTAL_SEL]=m,n[te.DIFF_SEL]=p?d(h,p):h&&h.toString()||ee,o[te.DIFF_SEL]=h||ee,n[te.PERCENT_CHARTvsCHART]=c(100),o[te.PERCENT_CHARTvsCHART]=100,u[te.PERCENT_CHARTvsCHART]=void 0,i[te.TOTAL]=u[te.TOTAL],i[te.DIFF]=u[te.DIFF],i[te.TOTAL_SEL]=u[te.TOTAL_SEL],i[te.DIFF_SEL]=u[te.DIFF_SEL],i[te.PERCENT_vsALLDATA]=u[te.PERCENT_vsALLDATA],i[te.PERCENT_CHARTvsCHART]=u[te.PERCENT_CHARTvsCHART],{stats:n,statsUse:o,toolTip:i}}function z(e,t,n,o){var i={},r={},a={},s=ee;if(e&&2===e.length){var u=e[0].meta&&e[0].meta.format;[te.AVG,te.AVG_SEL].forEach(function(t){if(e[0].stats[t]!==ee&&e[1].stats[t]!==ee){var o=0,c=0,p=e[0].statsUse[te.TOTAL],f=e[1].statsUse[te.TOTAL],h=e[0].statsUse[te.TOTAL_SEL],m=e[1].statsUse[te.TOTAL_SEL],g=e[0].statsUse[te.MISSING_VALUE_COUNT]||0,v=e[1].statsUse[te.MISSING_VALUE_COUNT]||0;"number"==typeof p&&"number"==typeof f?(o=e[0].statsUse[te.ROW_COUNT],c=e[1].statsUse[te.ROW_COUNT],s=l((p+f)/(o+c))):"number"==typeof h&&"number"==typeof m&&(o=e[0].statsUse[te.NUM_SELECTIONS],c=e[1].statsUse[te.NUM_SELECTIONS],s=l((h+m)/(o+c))),i[t]=u?d(s,u):s.toString(),r[t]=s,n&&s&&g+v?a[t]=n(te.MISSING_VALUE_COUNT,{avg:s,rowCount:o+c,missingValueCount:g+v}):n&&s&&(a[t]=n(t,{avg:s,rowCount:o+c}))}})}return o?(o.stats=J({},o.stats,i),o.statsUse=J({},o.statsUse,r),o.toolTip=J({},o.toolTip,a)):o={stats:i,statsUse:r,toolTip:a},o}function j(e,t,n){var o={},i={},r={};if(e&&2===e.length){var a=e[0].meta&&e[0].meta.format;[te.WEIGHTED_AVG,te.WEIGHTED_AVG_SEL].forEach(function(t){if(e[0].stats[t]!==ee&&e[1].stats[t]!==ee){var s=e[0].statsUse[te.DETAIL_ROWCOUNT],u=e[1].statsUse[te.DETAIL_ROWCOUNT];if(s>0&&u>0){var c=e[0].statsUse[te.DETAIL_SUM],p=e[1].statsUse[te.DETAIL_SUM],f=l((c+p)/(s+u));o[t]=a?d(f,a):f.toString(),i[t]=f,n&&f&&(r[t]=n(t,{weightedAvg:f,detailRowCount:s+u}))}}})}return{stats:o,statsUse:i,toolTip:r}}function U(e,t,n,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={},a={},s={},d=e[0].meta&&e[0].meta.format;if(e&&e.length>0&&(e[0].stats[te.DIFF]!==ee&&2===e.length&&(r[te.DIFF]=e[0].statsUse[t]-e[1].statsUse[t],V(s,t,e,o,d),a[te.DIFF]=s[te.DIFF]),e[0].stats[te.DIFF_SEL]!==ee&&2===e.length&&(i||1===e[0].statsUse[te.NUM_SELECTIONS]&&1===e[1].statsUse[te.NUM_SELECTIONS]))){var u=e[0].statsUse[n]-e[1].statsUse[n];r[te.DIFF_SEL]=l(u),V(s,n,e,o,d,!0),a[te.DIFF_SEL]=s[te.DIFF_SEL]}return{stats:r,statsUse:r,toolTip:a}}function W(e,t,n,o,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a={},s={},d={};if(e){a[t]=e.filteredSummaryValue,s[t]=e.filteredSummaryValueUse;var u=l(e.filteredSummaryValueUse/o*100);if(a[n]=c(u),s[n]=u,i&&e.filteredSummaryValue){var p=e.metadata&&e.metadata.label||ee;d[t]=i("countdistinct_"+t,{uniqueValues:e.filteredSummaryValue,label:p,overallSummaryValue:o}),d[n]=i("countdistinct_"+n,{uniqueValues:e.filteredSummaryValue,label:p,percent:a[n],overallSummaryValue:o})}}return r?(r.stats=J({},r.stats,a),r.statsUse=J({},r.statsUse,s),r.toolTip=J({},r.toolTip,d)):r={stats:a,statsuse:s,toolTip:d},r}function B(e,t){var n=[];return 0===e.length?[]:(b(e,v)?(n.push(te.PERCENT_vsALLDATA),M(e)?(n.push(te.PERCENT_CHARTvsCHART),C(n),n=n.concat([te.TOTAL,te.DIFF])):(C(n),n.push(te.TOTAL))):b(e,p)?(n=[te.MIN,te.MAX],C(n)):b(e,m)?n=[te.MIN,te.MAX,te.WEIGHTED_AVG]:b(e,g)?n=t?[te.MIN,te.MAX,te.PERCENT_vsALLDATA,te.TOTAL,te.DIFF]:[te.MIN,te.MAX]:(n=[te.MIN,te.MAX],C(n,e),w(e,m)&&n.push(te.WEIGHTED_AVG),w(e,v)&&(n=n.concat([te.PERCENT_vsALLDATA,te.TOTAL]))),n)}function H(e,t){var n=[];return 0===e.length?[]:(b(e,v)?(n.push(te.PERCENT_SEL_vsALLDATA),M(e)?(n.push(te.PERCENT_SELvsCHART),S(n),n=n.concat([te.TOTAL_SEL,te.DIFF_SEL])):(S(n),n.push(te.TOTAL_SEL))):b(e,m)?n=[te.MIN_SEL,te.MAX_SEL,te.WEIGHTED_AVG_SEL]:b(e,h)||b(e,f)?(n=[te.MIN_SEL,te.MAX_SEL,te.DIFF_SEL],S(n)):b(e,g)?n=t?[te.MIN_SEL,te.MAX_SEL,te.PERCENT_SEL_vsALLDATA,te.TOTAL_SEL,te.DIFF_SEL]:[te.MIN_SEL,te.MAX_SEL]:(n=[te.MIN_SEL,te.MAX_SEL],S(n,e),w(e,m)&&n.push(te.WEIGHTED_AVG_SEL),w(e,v)&&(n=n.concat([te.PERCENT_SEL_vsALLDATA,te.TOTAL_SEL]))),n)}function G(e,t){e=e||new Map;var n={};return e.forEach(function(e,o){var i=e.metadata||e.get("metadata");if(i&&v(i.aggregationType)){var r=e[t]||e.get(t),a=I(i.aggregationType,r),s={measureLabel:i.label,meta:i};n[o]=n[o]||{},n[o].value=n[o].value||0,n[o].value+=a,n[o].detail=n[o].detail||s}}),n}function q(e){var t=X(e);return Y(t.cumulativeAggregate,t.chartInfo)}function X(e){var t={},n={};return Array.from(e.entries()).forEach(function(e){var o=e[0],i=e[1],r=G(i.measures,"totalUse");n[o]=r,K(r,t)}),{cumulativeAggregate:t,chartInfo:n}}function K(e,t){Object.entries(e).map(function(e){var n=e[0],o=e[1];return v(o.detail.meta.aggregationType)&&(t[n]=t[n]||0,t[n]+=o.value),t})}function Y(e,t){var n={};return Object.entries(t).forEach(function(t){var o=t[0],i=t[1];Object.entries(i).forEach(function(t){var i=t[0],r=t[1].value,a=t[1].detail.measureLabel,s=e[i];n[o]=n[o]||{},n[o][i]=n[o][i]||{},n[o][i].value=l(r/s*100),n[o][i].measureLabel=n[o][i].measureLabel||a,n[o][i].allChartTotal=s})}),n}t.__esModule=!0,t.CalcType=void 0;var J=Object.assign||function(e){for(var t=1;t=u.default.request_execution_time_elapse_to_show_fulfilled_toast)return!e.relationshipVM.exploreViewActivated||e.relationshipVM.getCurrentTargetId()!==e.id},setChangedProperty:function(t){e.changedProperty=t},buildScopedFields:function(t){var n=[],o=void 0,i=void 0,r=void 0,a=void 0,s=e.id;return t.forEach(function(e){if(e!==s){r=e.length,a=e.lastIndexOf("."),o=e.substr(0,a),i=e.substr(a+1,r);var t=n.find(function(e){return e.tableID==o});t?t.inScopeFieldIDs.push(i):n.push({tableID:o,inScopeFieldIDs:[i]})}}),n},reset:function(){e.resetTargetModelProps(),e.resetScope(),e.renderNeeded++,e.setChangedProperty("filterStrength")},resetTargetModelProps:function(){e.setInitialState(!0),(0,l.replaceArray)(e.addedFields,[]),(0,l.replaceArray)(e.deletedFields,[]),e.showRelationshipsMap={},e.lastShowRelationshipsField={},e.lastAddedFields=null,e.filterStrength.min=u.default.default_min_strength,e.filterStrength.max=u.default.default_max_strength,e.showPrimaryRelationshipView=u.default.default_show_primary_relationship_view,e.setDiagramData(null)},resetScope:function(){e.scope&&e.scope.reset()},setScope:function(t){if(t){if(e.scope&&e.scope.setScopedFields(t)){e.initialState||e.setInitialState(!0);var n=e.scope.getScopedFields();if(n){var o=function(e){return n.find(function(t){return t.fieldIDForExpression===e})};(0,l.replaceArray)(e.addedFields,e.addedFields.filter(o)),(0,l.replaceArray)(e.deletedFields,e.deletedFields.filter(o));var i=Object.keys(e.showRelationshipsMap);i.length&&i.forEach(function(t){if(!o(t))return void delete e.showRelationshipsMap[t];var n=e.showRelationshipsMap[t];(0,l.replaceArray)(n,n.filter(function(e){return o(e.to)})),0===n.length&&delete e.showRelationshipsMap[t]}),e.renderNeeded++,e.setChangedProperty("scopedFields")}}}},setLastAddedFields:function(t){e.lastAddedFields=t,e.addToAddedFields(t),e.scope&&e.scope.addToScopedFields(t),e.renderNeeded++,e.setChangedProperty("lastAddedFields")},addToAddedFields:function(t){t&&t.length&&((0,l.replaceArray)(e.deletedFields,e.deletedFields.filter(function(e){return-1===t.indexOf(e)})),t.forEach(function(t){e.addedFields&&e.addedFields.length?-1===e.addedFields.indexOf(t)&&e.addedFields.push(t):e.addedFields=[t]}))},setData:function(t){e.data=t},deleteFields:function(t){(0,l.replaceArray)(e.addedFields,e.addedFields.filter(function(e){return-1===t.indexOf(e)})),t.forEach(function(t){return e.deleteFromShowRelationshipsMap(t)}),(0,l.appendToArray)(e.deletedFields,t),e.renderNeeded++,e.setChangedProperty("deletedFields")},beforeDestroy:function(){t.forEach(function(e){return e()})},setFilterStrength:function(t){e.setInitialState(!1),e.filterStrength.min=t.min,e.filterStrength.max=t.max,e.renderNeeded++,e.setChangedProperty("filterStrength")},setInitialFilterStrength:function(t){e.initialFilterStrength.min=t.min,e.initialFilterStrength.max=t.max},setShowPrimaryRelationshipView:function(t){e.showPrimaryRelationshipView=t,e.initialState&&e.setInitialState(!1),e.renderNeeded++,e.setChangedProperty("showPrimaryRelationshipView")},setDiagramData:function(t){e.diagramData=t},setInitialState:function(t){e.initialState=t},setActionErrorStatus:function(t){e._setActionStatus("error",t)},setActionWarnStatus:function(t){e._setActionStatus("warning",t)},setActionInfoStatus:function(t){e._setActionStatus("info",t)},setActionSuccessStatus:function(t){e._setActionStatus("success",t)},_setActionStatus:function(t,n){e.actionStatus={level:t,message:n}},emptyActionStatus:function(){e.actionStatus=null},updateInitialFilterStrength:function(t){e.initialState&&t&&(e.setInitialFilterStrength(t),e.filterStrength.min=t.min,e.filterStrength.max=t.max)},showRelationshipsBetween:function(t,n){if((0,l.replaceArray)(e.deletedFields,e.deletedFields.filter(function(e){return e!==n})),e.scope){var o=e.scope.getScopedFields(),i=e.id;o&&(n===i||o.find(function(e){return e.fieldIDForExpression===n})||e.scope.addToScopedFields([n]))}e.showRelationshipsMap[t]?e.showRelationshipsMap[t].find(function(e){return e.to===n})||e.showRelationshipsMap[t].push({to:n}):e.showRelationshipsMap[t]=[{to:n}],e.lastShowRelationshipsField={from:t,to:n},e.renderNeeded++,e.setChangedProperty("lastShowRelationshipsField")},setRelationship:function(t,n,o){if(e.showRelationshipsMap[t]){var i=e.showRelationshipsMap[t].find(function(e){return e.to===n});i&&(i.relationship=o)}},startRequestTimer:function(){e.resetRequestTimer(),e.requestStartTime=new Date},stopRequestTimer:function(){e.requestEndTime=new Date},getRequsetTimeDuration:function(){return e.requestEndTime&&e.requestStartTime?e.requestEndTime.getTime()-e.requestStartTime.getTime():0},resetRequestTimer:function(){e.requestStartTime=null,e.requestEndTime=null},deleteFromShowRelationshipsMap:function(t){e.showRelationshipsMap[t]&&delete e.showRelationshipsMap[t];for(var n in e.showRelationshipsMap){var o=e.showRelationshipsMap[n];(0,l.deleteFromArray)(o,function(e){return e.to===t}),0===o.length&&delete e.showRelationshipsMap[n]}},cancelAction:function(t,n){switch(t){case g.ADDED:(0,l.deleteFromArray)(e.addedFields,function(e){return e===n}),e.deleteFromShowRelationshipsMap(n),e.lastCanceledAction={canceledAction:g.ADDED,fieldID:n};break;case g.DELETED:(0,l.deleteFromArray)(e.deletedFields,function(e){return e===n}),e.lastCanceledAction={canceledAction:g.DELETED,fieldID:n};break;default:return}e.setChangedProperty("cancelAction"),e.renderNeeded++},setAbandon:function(t){e.abandon=t},abandonRequest:function(){e.abandon&&e.abandon()}}})},function(e,t,n){"use strict";t.__esModule=!0,t.ScopeModel=t.parseFieldIDForExpression=void 0;var o=n(7),i=n(25),r=t.parseFieldIDForExpression=function(e){var t=e.length,n=e.lastIndexOf("."),o=e.substr(0,n);return{fieldID:e.substr(n+1,t),fieldIDForExpression:e,tableID:o}};t.ScopeModel=o.types.model("ScopeModel",{fieldId:o.types.string,dataSourceId:o.types.string,sourceModuleId:o.types.optional(o.types.string,"")}).volatile(function(){return{defaultRecommendations:null,scopedFields:null,serializedFields:null}}).extend(function(e){function t(){return(0,o.getEnv)(e).exploreVM.getSmartsRecommenderWrapper().fetchPredictRecommendations(e.dataSourceId,e.fieldId)}var n=function(e){return e&&e.length?e.map(function(e){return e.fieldIDForExpression}).sort().join(" "):""};return{views:{getDefaultRecommendations:function(){return e.defaultRecommendations?Promise.resolve(e.defaultRecommendations):t().then(function(t){e.setDefaultRecommendations(t),e.setScopedFields(t);var n=(0,o.getEnv)(e).targetModel.getAddedFields();n&&n.length&&e.addToScopedFields(n);var i=(0,o.getEnv)(e).targetModel.getShowRelationships(),r=Object.keys(i);return r.length&&r.forEach(function(t){var n=i[t];e.addToScopedFields(n.map(function(e){return e.to}))}),t})},getScopedFields:function(){return e.scopedFields}},actions:{setScopedFields:function(t){e.scopedFields=t&&t.filter(function(t){return t.fieldIDForExpression!==e.fieldId});var o=n(e.scopedFields);return e.serializedFields!==o&&(e.serializedFields=o,!0)},addToScopedFields:function(t){e.scopedFields&&t.forEach(function(t){var n=r(t);e.scopedFields.find(function(e){return e.fieldIDForExpression===t})||e.scopedFields.push(n)}),e.serializedFields=n(e.scopedFields)},removeFromScopedFields:function(t){e.scopedFields&&e.scopedFields.length&&(0,i.replaceArray)(e.scopedFields,e.scopedFields.filter(function(e){return-1===t.indexOf(e.fieldIDForExpression)})),e.serializedFields=n(e.scopedFields)},setDefaultRecommendations:function(t){e.defaultRecommendations=t},reset:function(){if(e.scopedFields){(0,o.getEnv)(e).exploreVM.getSmartsRecommenderWrapper().smartsRelationshipStrengthService.removeDatedEntriesFromCache(e.sourceModuleId,e.fieldId)}e.setDefaultRecommendations(null),e.setScopedFields(null)}}}})},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n,o){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(o):void 0})}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t._DnDHandler=void 0;var l,d,u,c=n(0),p=o(c),f=n(5),h=n(11),m=n(1),g=o(m),v=n(6),_=n(256),y=o(_),b=n(2),w=o(b),x=n(53),C=o(x),S=n(85),E=o(S),M=n(18),T=o(M);n(87);var I=t._DnDHandler=function(e){function t(n){return r(this,t),a(this,e.call(this,n))}return s(t,e),t.prototype.accepts=function(t){return this._dropColumns(t)?t.data&&t.data.utils&&t.data.utils.isValid({fromCanvas:!0}):e.prototype.accepts.call(this,t)},t.prototype.getWidgetSpec=function(t){return this._dropColumns(t)?this._getWidgetSpecOnDropColumns(t):e.prototype.getWidgetSpec.call(this,t)},t.prototype._dropColumns=function(e){return-1!==["MODEL_ITEM","GRID_HEADER_ITEM"].indexOf(e.type)},t.prototype._getWidgetSpecOnDropColumns=function(e){var t=this.dashboardApi.getFeature("CanvasDnD");return Promise.resolve(t.onDrop(e)).then(function(e){return{model:e,specType:"widget"}})},t}(E.default),A=(0,f.observer)((d=function(e){function t(n){r(this,t);var o=a(this,e.call(this,n));return i(o,"activateDropTarget",u,o),o.services=n.services,o}return s(t,e),t.prototype._onClick=function(){this.props.handleShowVisTypesClick&&this.props.handleShowVisTypesClick()},t.prototype._onTouchEnd=function(e){e.nativeEvent.preventDefault()},t.prototype._handleEnterKey=function(e){"Enter"===e.key&&(e.preventDefault(),this._onClick())},t.prototype.render=function(){var e=this,t=void 0;return t=this.props.isComparison?w.default.get("startingPoints_createComparison"):w.default.get("startingPoints_createVisualization"),this.activateDropTarget,p.default.createElement("div",{className:"create-exploration create-exploration--droptarget",ref:function(t){e.domNode=t}},this.activateDropTarget&&this.getEmptyRenderMarkup(),p.default.createElement("div",{className:"create-exploration__container"},this.props.fill?p.default.createElement(v.SVGIcon,{className:"create-exploration-icon",iconId:y.default.id,size:"128"}):null,p.default.createElement("h3",null,t),p.default.createElement(C.default,null,p.default.createElement("p",null,w.default.get("startingPoints_dragAndDrop"))),p.default.createElement(v.Button,{label:w.default.get("startingPoints_chooseVisType"),variant:"solid",intent:"primary",onTouchEnd:this._onTouchEnd.bind(this),onTouchStart:this._onClick.bind(this),onClick:this._onClick.bind(this),onKeyDown:function(t){return e._handleEnterKey(t)}})))},t.prototype.componentDidMount=function(){var e=this,t={domNode:this.domNode,className:"dndHover",dashboardApi:this.props.dashboardApi,createVis:this.props.createVis,activate:function(){return e.activateDropTarget=!0},deactivate:function(){return e.activateDropTarget=!1}};this.props.services.getSvc(".DndManager").then(function(n){n.addDropTarget(e.domNode,new I(t))})},t.prototype.getEmptyRenderMarkup=function(){return p.default.createElement("div",{className:"explore-empty-create-layout-dnd"},p.default.createElement(T.default,null))},t}(c.Component),u=function(e,t,n,o,i){var r={};return Object.keys(o).forEach(function(e){r[e]=o[e]}),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce(function(n,o){return o(e,t,n)||n},r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null),r}(d.prototype,"activateDropTarget",[h.observable],{enumerable:!0,initializer:function(){return!1}}),l=d))||l;A.propTypes={fill:g.default.bool.isRequired,services:g.default.object.isRequired,dashboardApi:g.default.object.isRequired,createVis:g.default.func.isRequired,isComparison:g.default.bool,activeDataSourceId:g.default.string,handleShowVisTypesClick:g.default.func},t.default=A},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t'});a.a.add(s);t.default=s},function(e,t,n){var o=n(284);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){var o=n(287);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){"use strict";function o(e){if(e){var t=e.findGlassPlugin("com.ibm.bi.dashboard.dataSources.sourcesBtn");t&&!t.isPressed()&&e.getCurrentContentView().openDatasetpane()}}function i(e){if(e){var t=e.findGlassPlugin("com.ibm.bi.explore.thumbnailBtn");t&&!t.isPressed()&&e.getCurrentContentView().openCardListPane()}}t.__esModule=!0,t.openDatasetPane=o,t.openCardsPane=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),i=n.n(o),r=n(13),a=n.n(r),s=new i.a({id:"no-properties_128",use:"no-properties_128-usage",viewBox:"0 0 200 200",content:''});a.a.add(s);t.default=s},,,,,,,,function(e,t){e.exports=h},function(e,t,n){"use strict";function o(e,t){var n=[];return e.items.forEach(function(e){if("widget"===e.type){var o=e.id,i=t.getWidgetModel(o);i&&"placeholder"===i.type?n.push({placeholder:e}):n.push({widgetLayout:e})}}),n}function i(e,t){return o(e,t).map(function(e){return e.widgetLayout||null})}function r(e,t){return o(e,t).map(function(e){return e.widgetLayout||e.placeholder})}function a(e,t,n){var i=o(e,t);return n=0&&(r[n]=r[n]||[],r[n].push({sourceWidgetId:t[i],targetWidgetId:o[i]}))})}),Object.keys(r).length>1&&Object.values(r).forEach(function(t){var o=t.map(function(e){return e.targetWidgetId});y(e,n,o,i)})}function y(e,t,n,o){var i=e.eventGroups.createGroup(n,{targetPageId:t,payloadData:{undoRedoTransactionId:o,silent:!0}});return i&&i.id||null}function b(e,t){var n=Array.isArray(t)?t:[t],o=e.boardModel;return v(e,n.map(function(e){var t=e.card,n=e.options,i=n.payload,r=n.extraLayoutPayload,a=void 0===r?{}:r,d=n.extraWidgetPayload,u={},c=[],p=s(i);return(l(t,{boardModel:o,extraWidgetPayload:d})||[]).forEach(function(e){u[e.widget.id]=e.widget,c.push(e.layout)}),{card:t,layouts:c,widgetSpecMap:u,payload:p,extraLayoutPayload:a}}))}t.__esModule=!0;var w=n(8),x=function(e){return e&&e.__esModule?e:{default:e}}(w),C=function(e,t){if(!t||!t.length)return!1;var n=e.dashboardApi.getCurrentContentView(),i=n.getExploreContainerLayoutModel(),r={undoRedoTransactionId:x.default.uniqueId("removeSingleCard")},a=void 0,s=void 0;if(t.forEach(function(e){var t=i.findModel(e);t&&(a=t.getParent(),a.replaceWidgetInCard(d(),e,r))}),a.isCompareEnabled){(o(a,e.boardModel)||[]).forEach(function(e){e.hasOwnProperty("widgetLayout")&&(s=e.widgetLayout.id)}),s&&i.findModel(s)&&n.getDashboardApi().getCanvas().selectContent([s])}return!0};t.default={getLayouts:o,getVisualizations:i,getVisualization:a,createCardFromSpec:p,createCardFromExistingCards:f,createEventGroupsForWidgetsInTheTargetCard:h,deleteCards:m,deleteVisAndSelectRemainingVis:C,copyPageContextAndRescope:g,duplicateCards:b}},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function e(t){o(this,e);var n=new WeakMap;n.set(t,!0),this.isValid=function(){return n.has(t)},this.remove=function(){n.delete(t)}};t.default=i},function(e,t,n){"use strict";t.__esModule=!0;t.Formatter=n(182)},function(e,t,n){"use strict";t.__esModule=!0;var o=n(7);t.default=o.types.model({scopeId:o.types.string}).views(function(e){return{getFilterCount:function(){return e.filterCount},getCurrentExtensionScope:function(){if(e._filterDockExtensionView)return e._filterDockExtensionView.getApi().currentScope()}}}).volatile(function(){return{dashboardApi:null,exploreVM:null,_disposeEvents:[],filterCount:null,filterCountExtensionFn:null}}).actions(function(e){return{afterCreate:function(){e.dashboardApi=(0,o.getEnv)(e).dashboardApi,e._registerDashboardApiEvents(),e.exploreVM=(0,o.getEnv)(e).exploreVM},registerFilterCountPayloadExtension:function(t){e.filterCountExtensionFn=t},fetchFilterCount:function(){var t={scope:e.scopeId,origin:"filter"};e.filterCountExtensionFn&&(t=e.filterCountExtensionFn(t)),e.filterCount=e.dashboardApi.getFeature("GlobalFilters").getFilterList(t).length},beforeDestroy:function(){e._disposeEvents&&e._disposeEvents.forEach(function(e){return e&&e.remove()}),e.dashboardApi=null},switchDatasource:function(t){e._filterDockExtensionView&&(e._filterDockExtensionView.getApi().switchDatasource(t),e.fetchFilterCount())},initializeFilterDock:function(){return e.dashboardApi.getDashboardSvc(".CanvasExtensions").then(function(t){e.canvasExtensions=t,e.canvasExtensions&&(e._filterDockExtensionView=e.canvasExtensions.getExtension("filterDock"),e.filterDockCollapseView=e.canvasExtensions.getExtension("filterDockCollapseControl"),e.fetchFilterCount())})},_switchDatasourceSilently:function(){e._filterDockExtensionView&&(e.exploreVM&&e.exploreVM.isStartingPointsDisplayed()?e._filterDockExtensionView.getApi().switchDatasource(e.dashboardApi.getActiveDataSourceId(),{silent:!0}):e._filterDockExtensionView.getApi().switchDatasource(null,{silent:!0})),e.fetchFilterCount()},_registerDashboardApiEvents:function(){e._disposeEvents.push(e.dashboardApi.on("filterDock:collapse",function(){e.fetchFilterCount()})),e._disposeEvents.push(e.dashboardApi.on("filterIndicator:removeEntry",function(){e.fetchFilterCount()})),e._disposeEvents.push(e.dashboardApi.on("brushing:undoRedo",function(){e.fetchFilterCount()})),e._disposeEvents.push(e.dashboardApi.on("tab:tabChanged",function(){e._switchDatasourceSilently()}))}}})},function(e,t,n){"use strict";t.__esModule=!0;var o=n(7),i=n(15);t.default=o.types.model("NaturalLanguageTextModel",{id:o.types.string,shouldFetch:o.types.optional(o.types.boolean,!1)}).volatile(function(){return{items:null}}).views(function(e){return{getItems:function(){var t=void 0;return e.items&&e.items.state===i.FULFILLED&&(t=e.items.value),t||[]}}}).actions(function(e){function t(){return(0,o.getEnv)(e).dashboardApi.getCanvasWhenReady().then(function(t){return e.widgetContentApi=t.getContent(e.id),t.getWidgetWhenReady(e.id)}).then(function(e){if(e)return e.getFeature("vis-chart-insights")})}return{afterCreate:function(){t().then(function(t){if(t)return t.activate({widgetContentApi:e.widgetContentApi,cbChartInsightsUpdated:function(){e.setShouldFetch(!0)}})})},setShouldFetch:function(t){e.shouldFetch=t},fetchItems:function(){if(!e.shouldFetch)return e.items||Promise.resolve();e.setShouldFetch(!1);var n=(0,i.fromPromise)(t().then(function(e){if(e)return e.getInsights()}).then(function(e){return e?e.insights||[]:[]}));return e.items=n,n}}})},,,function(e,t){e.exports=m},,,,,function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.default=void 0;var i=n(47),r=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(36),s=[r.default.UNSUPPORTED_MODULE_TYPE,r.default.UNSUPPORTED_UNENRICHED_PACKAGE],l=function(){function e(){o(this,e)}return e.convertErrorsToCompletedResponse=function(e,t){var n=e&&e.data&&e.data.status;if(n){var o=n.statusCode;if(-1!==s.indexOf(o)){var i="Explore fallback response for error code "+o;return this._handleStatusObjectAsToast(t,o),Promise.resolve({data:this.createSingleNode(t.targetID,i,null)})}}else e&&e.statusText&&this._handleStatusTextAsToast(t,e.statusText);return Promise.reject(e)},e._handleStatusObjectAsToast=function(e,t){var n=e.relationshipModel;if(n){var o=n.getTargetModel();o&&o.setActionErrorStatus("We were unable to show relationships because there is limited support for this data source type.")}},e._showUnsupportedSourceTypeToast=function(e,t){e===r.default.UNSUPPORTED_MODULE_TYPE?(0,a.showUnsupportedSourceTypeToast)(t):e===r.default.UNSUPPORTED_UNENRICHED_PACKAGE&&(0,a.showUnsupportedUnenrichedToast)(t)},e._handleStatusTextAsToast=function(e,t){r.default.RELATIONSHIP_REQUEST_TIMEOUT===t&&(0,a.showRelationRequestTimeoutToast)(e.glassContext)},e.createSingleNode=function(e,t){return{nodesDataset:{targetId:e,groupings:[{groups:[{groupId:"none_"+e,members:[{id:e,type:"focusField"}]}],id:"all"}]},relationshipStrength:{results:[{relationships:[],id:"all"}],predictStatus:arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}},status:{message:t,statusCode:r.default.COMPLETED}}},e}();t.default=l},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.StartingPointsViewModel=t.Field=void 0;var i=Object.assign||function(e){for(var t=1;t0?p:"")+t},"")}function n(){var t={},n=new Promise(function(e,n){t.resolve=e,t.reject=n}),i=(0,l.fromPromise)(n);e.setRelationshipSupported(i);var r=s.autorun(function(){if(o()){var n=e.fields.getFields(),i=n.interesting;if(i.state===l.REJECTED)t.reject(i.error);else if(i.state===l.FULFILLED){var r=e.relationship.getTargetModel(),a=r&&r.data;a&&a.state===l.REJECTED?t.resolve():a&&a.state===l.FULFILLED&&t.resolve()}}});e.relationshipSupported.then(function(){return r()},function(){return r()})}function o(){return e._isAlive(e.exploreVM)&&e.exploreVM.activeDataSourceId&&e.exploreVM.displayedCard===v}function a(t){(0,r.getEnv)(e).dashboardApi.getFeature("DataSources").getDataSource(t).getLocalizedName().then(function(t){t&&e.setActiveDataSourceName(t)})}function u(t){e.exploreVM.isStartingPointsDisplayed()&&(e.filterDockModel.switchDatasource(t),e.filterDockModel.getCurrentExtensionScope()!=v&&e.exploreVM.notifyTabChanged(v))}var c=[],p=";";return{views:{getSelectedInfluencers:function(){if(e.selectedInfluencers&&e.selectedInfluencers.length)return e.selectedInfluencers;if(!e.isNewStartingPointsFeatureEnabled())return null;if(e.relationship){var t=e.fields.getFocusField();if(t)return[{id:t.id,label:t.name}]}return null},getRecommendations:function(n){return n&&0!==n.length?e.recommendations.get(t(n,e.exploreVM.activeDataSourceId))||e._fetchRecommendedVisualizations(n):null},isRecommendationOfStaticType:function(t){return e.recommendationsOfStaticType.indexOf(t)>-1},_fetchRecommendedVisualizations:function(n){var o=(0,l.fromPromise)((0,d.fetchRecommendations)(e.exploreVM,n));return e.recommendations.set(t(n,e.exploreVM.activeDataSourceId),o),o},loadVisForSelectedInfluencers:function(){return e._fetchRecommendedVisualizations(e.getSelectedInfluencers())},isNewStartingPointsFeatureEnabled:function(){return!(0,r.getEnv)(e).isFeatureEnabled("newStartingPoints","false")},shouldUseDisambiguatedPaths:function(){var t=(0,r.getEnv)(e);return t&&t.isFeatureEnabled&&!t.isFeatureEnabled("useDisambiguatedPaths","false")},showFilterDock:function(){return!!e.fields.getFocusField()},getActiveDataSourceName:function(){return e.activeDataSourceName}},actions:{afterCreate:function(){e._isAlive=(0,r.getEnv)(e).isAlive||e._isAlive,e.exploreVM=(0,r.getEnv)(e).exploreVM,e.dashboardApi=(0,r.getEnv)(e).dashboardApi,e.recommendationsOfStaticType=[],e.relationship.setExploreViewId((0,r.getEnv)(e).exploreViewId),e.relationship.setSmartsRecommenderWrapper(e.exploreVM.getSmartsRecommenderWrapper());var t=new h.default({dashboardApi:e.dashboardApi,startingPointsVM:e});e.relationship.setVisLoader(t);var d=(0,r.getEnv)(e).isFeatureEnabled("filterRelationshipStrength");e.relationship.setIsFilterStrengthFeatureEnabled(d),e.filterDockModel=g.default.create({scopeId:v},{dashboardApi:e.dashboardApi,exploreVM:e.exploreVM,logger:(0,r.getEnv)(e).logger}),e.filterDockModel.registerFilterCountPayloadExtension(function(t){return i({},t,{sourceId:e.exploreVM.activeDataSourceId,_strictMatch:!0})}),c.push(s.reaction(function(){return e.exploreVM.activeDataSourceId},function(t){t&&(a(t),e.setSelectedInfluencers(),e.isNewStartingPointsFeatureEnabled()||n(),e.filterDockModel.initializeFilterDock(t).then(function(){return u(t)}))})),c.push(s.reaction(function(){if(o()){var t=e.fields.getFields(),n=!1;if(e.isNewStartingPointsFeatureEnabled()?t.all.state===l.FULFILLED&&(n=!0):n=t.interesting.state===l.FULFILLED,n){return e.fields.getFocusField()}}},function(t){e.relationship&&(t?(e.relationship.setTargetIds([t.id],[{label:t.name}]),e.relationship.setDataSourceId(e.exploreVM.activeDataSourceId),e.setSelectedInfluencers(e.selectedInfluencers)):(e.relationship.setTargetIds([]),e.exploreVM.activeDataSourceId?e.relationship.setDataSourceId(e.exploreVM.activeDataSourceId):e.relationship.setDataSourceId(null)))}))},beforeDestroy:function(){c.forEach(function(e){return e()}),e.filterDockModel&&(0,r.destroy)(e.filterDockModel)},setModelChecker:function(t){e._isAlive=t},setRelationshipSupported:function(t){e.relationshipSupported=t},setShowModalVisTypePicker:function(t){e.showModalVisTypePicker=t},setSelectedInfluencers:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.selectedInfluencers=t,e.recommendationsOfStaticType=[]},addRecommendationsOfStaticType:function(t){e.recommendationsOfStaticType.push(t)},reset:function(){e.fields.resetData();var t=e.fields.getFocusField();e.relationship.reset(),t&&e.relationship.setTargetIds([t.id],[{label:t.name}]),e.relationship.setDataSourceId(e.exploreVM.activeDataSourceId)},refreshStartingPoints:function(){e.fields.clearFields(),e.setSelectedInfluencers(),n()},setActiveDataSourceName:function(t){e.activeDataSourceName=t}}}})},function(e,t,n){"use strict";t.__esModule=!0;var o=function(e,t){var n=e.getSmartsRecommenderWrapper().getMetadataColumns(t).then(function(e){return e.map(function(e){return{name:e.getLabel(),id:e.getId()}})});return{all:n,interesting:n.then(function(){return e.getSmartsRecommenderWrapper().recommendInterestingFields(t)})}},i=function(e,t){var n=o(e,t),i=n.all,r=n.interesting;return Promise.all([i,r]).then(function(e){return{all:e[0],interesting:e[1]}})},r=function(e,t){return e.getSmartsRecommenderWrapper().recommendRelatedVisualizationsAsWidgetSpecs(e.activeDataSourceId,t,{includeBestVisForTargetFields:!0})};t.fetchFields=i,t.fetchFieldPromises=o,t.fetchRecommendations=r},function(e,t,n){"use strict";t.__esModule=!0;var o=function(e,t,n){window.require(e,t,n)};t.loadModules=o,t.disabledLoader=!1},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(86),l=o(s),d=n(14),u=o(d),c=n(258),p=o(c),f=function(e){function t(n){i(this,t);var o=r(this,e.call(this,n));return o.dashboardApi=n.dashboardApi,o.createVis=n.createVis,o.replaceWithWidget=n.replaceWithWidget,o.placeWidgetInCard=n.placeWidgetInCard,o.widgetLayout=n.widgetLayout,o.layoutModel=n.layoutModel,o}return a(t,e),t.prototype.getNewCompareDnDEnabled=function(){return this.layoutModel&&this.layoutModel.isNewCompareDnDFeature()},t.prototype.isVisible=function(){for(var e=this.domNode;e&&e!==document;){if(!e.getClientRects().length||"0"===(0,u.default)(e).css("opacity"))return!1;e=e.parentElement}return!0},t.prototype.accepts=function(e){if(!this.isVisible())return!1;if(this.getNewCompareDnDEnabled()&&"card"===e.type&&1===e.data.length){return"compare"!==this.getCardById(e.data[0]).subType}if(this.replaceWithWidget&&!this.widgetLayout)return!1;if(this.isPinObject(e)){return 1===this.getPinWidgets(e).length}return!!this.isAcceptedLiveWidget(e)},t.prototype.onDrop=function(e){var t=this,n="card"===e.type&&1===e.data.length||!1;return this.getWidgetSpec(e).then(function(e){if(e){var o=n?"cardCreate":void 0;t.createVis&&t.createVis(e),t.replaceWithWidget&&t.replaceWithWidget(e,t.widgetLayout.id,o)}})},t.prototype.getWidgetSpec=function(e){var t=this;if("card"===e.type){var n=this.getCardById(e.data[0]);return p.default.getWidgetSpecForCompareCard(n,this.dashboardApi)}return this.isPinObject(e)?this.getSpecfromPin(e).then(function(e){return t._getSpec(e,"fragment")}):this.isAcceptedLiveWidget(e)?this._getSpec(e.data.model,"widget"):Promise.resolve(null)},t.prototype.getCardById=function(e){return this.dashboardApi.getCurrentContentView().getExploreContainerLayoutModel().findModel(e)},t.prototype._getSpec=function(e,t){return Promise.resolve({model:e,specType:t})},t}(l.default);t.default=f},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=n(14),r=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(45),s=n(36),l=function(){function e(t){o(this,e),this.domNode=t.domNode,this.className=t.className,this.dashboardApi=t.dashboardApi,this.activate=t.activate,this.deactivate=t.deactivate,this.isExtVis=!1}return e.prototype.accepts=function(){return!1},e.prototype.activateDropTarget=function(){this.activate&&this.activate(),(0,r.default)(this.domNode).toggleClass(this.className,!0)},e.prototype.deactivateDropTarget=function(){this.deactivate&&this.deactivate(),(0,r.default)(this.domNode).toggleClass(this.className,!1)},e.prototype.onDragEnter=function(e){this.activateDropTarget(),e.avatar&&e.avatar.length&&e.avatar.length>0&&(e.avatar[0].style.zIndex="9999999")},e.prototype.onDragLeave=function(){this.deactivateDropTarget()},e.prototype.onDragEnd=function(){this.deactivateDropTarget(),this.isExtVis&&this.glassContext&&((0,s.showUnsupportedExtVisToast)(this.glassContext),this.isExtVis=!1)},e.prototype.onDrop=function(e,t){this.dropHandler(e,t)},e.prototype.getSpecfromPin=function(e){var t=e.data.pinSpec.content;return this.dashboardApi.getGlassSvc(".ConversionService").then(function(e){return e.convert("DASHBOARD","EXPLORE",JSON.stringify(t))}).then(function(e){return JSON.parse(e)})},e.prototype.isPinObject=function(e){return"pin"===e.type},e.prototype.isAcceptedLiveWidget=function(e){if("live"===e.type||"widget"===e.type&&"live"===e.widgetType){var t=e.visId;return this.isExtVis=(0,a.isExtVis)(t),"dataPlayer"!==t&&!this.isExtVis}return!1},e.prototype.getPinWidgets=function(e){var t=this;if(e.data.pinSpec.content.widgets){return e.data.pinSpec.content.widgets.filter(function(e){return t.isAcceptedLiveWidget(e)})}return[]},e}();t.default=l},function(e,t,n){var o=n(259);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){"use strict";t.__esModule=!0;var o=n(39),i=o.extend({init:function(e){this.layoutView=e,this._events=[this.layoutView.model.on("add:item",this.onModelAddItem,this),this.layoutView.model.on("remove:item",this.onModelRemoveItem,this)],this._childrenLayouts={}},destroy:function(){if(this._events)for(var e=0;e=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var l,d=Object.assign||function(e){for(var t=1;t0)},t}(u.Component))||l;x.propTypes={dashboardApi:f.default.object.isRequired,onClickItem:f.default.func,recommendationVM:f.default.object.isRequired,enableSeeMore:f.default.bool,maxDisplayedItems:f.default.number,className:f.default.string,isVizTypeLocked:f.default.bool,recommendationFilter:f.default.string,selectedVisId:f.default.string,additionalProperties:f.default.arrayOf(f.default.object),logger:f.default.object,onPromptingError:f.default.func},x.defaultProps={onClickItem:function(){},additionalProperties:[]},t.default=x},function(e,t,n){"use strict";t.__esModule=!0,t.VisTypeModel=void 0;var o=n(7),i=n(293),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.VisTypeModel=o.types.model("VisTypeModel",{filter:o.types.optional(o.types.array(o.types.string),[]),chartSpecs:o.types.optional(o.types.frozen(),{}),chartSpecsState:o.types.optional(o.types.enumeration("chartSpecsState",["loading","loaded","empty"]),"empty")}).views(function(e){return{getChartSpecs:function(t){try{if("empty"===e.chartSpecsState){e.setChartSpecsStateToLoading();var n=(0,o.getEnv)(e).visDefinitions,i=e.getVisDefsByUsage({excludeIds:e.filter,visDefinitions:n});e.updateChartSpecs(i)}else if("loaded"===e.chartSpecsState)return e.chartSpecs[t];return}catch(t){e.setChartSpecsStateToEmpty()}},getVisDefsByUsage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{excludeIds:[],visDefinitions:[]},t={},n=e.excludeIds,o=function(e,n){var o=t[e]||{};o.usageId=e,o.usageLabel=r.default.get("visUsage"+e),o.chartTypes=o.chartTypes||[],o.chartTypes.push(n),t[e]=o};return e.visDefinitions.forEach(function(e){if(-1===n.indexOf(e.getId())){var t={description:e.getLabel(),iconUri:e.getIcon(),id:e.getId(),minimalVisId:e.getId(),name:e.getLabel(),placeholderIcon:e.getPlaceholderIconUri(),usages:e.getProperty("usages"),visIds:[e.getId()]};(t.usages||["Other"]).forEach(function(e){o(e,t)})}}),t}}}).actions(function(e){return{updateChartSpecs:function(t){e.chartSpecs=t,e.chartSpecsState="loaded"},setChartSpecsStateToLoading:function(){e.chartSpecsState="loading"},setChartSpecsStateToEmpty:function(){e.chartSpecsState="empty"}}})},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t'});a.a.add(s),t.a=s}},["aa537d430eed17163a1c"])})}).call(t,n(21)(e))},function(e,t,n){"use strict";(function(e){var o,i,r,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(s,l){if("object"==a(t)&&"object"==a(e))e.exports=l(n(19));else{i=[n(19)],o=l,void 0!==(r="function"==typeof o?o.apply(t,i):o)&&(e.exports=r)}}("undefined"!=typeof self&&self,function(e){return webpackJsonPBaGraphics([1651],{"3865314c5959606874d4":function(t,n){t.exports=e},"68a319985f3b647a817f":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n("3865314c5959606874d4"),i=(n.n(o),n("d2ce30dcc1f42ef9d8d4"));t.default=i.a},d2ce30dcc1f42ef9d8d4:function(e,t,n){var o=n("9689a9c94ae38b47fa2c"),i=n.n(o),r=n("9ce58a7deea14f49ef01"),a=n.n(r),s=new i.a({id:"chevron-up_16_v7",use:"chevron-up_16_v7-usage",viewBox:"0 0 16 16",content:''});a.a.add(s),t.a=s}},["68a319985f3b647a817f"])})}).call(t,n(21)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),i=n.n(o),r=n(13),a=n.n(r),s=new i.a({id:"filter_16",use:"filter_16-usage",viewBox:"0 0 16 16",content:''});a.a.add(s);t.default=s},function(e,t,n){var o=n(338);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s,l=n(0),d=o(l),u=n(9),c=o(u),p=n(10),f=o(p),h=n(5),m=n(100),g=o(m),v=n(26),_=o(v),y=(0,h.observer)(s=function(e){function t(){return i(this,t),r(this,e.apply(this,arguments))}return a(t,e),t.prototype.componentDidUpdate=function(){var e=this.props.item,t=this._findModel(this.props.containerModel,e.id),n=t&&t.isCurrentThumbnail,o=t&&t.isDoneThumbnail;!0!==n||o||this.props.item.displayed||t.renderThumbnail(e.id)},t.prototype.render=function(){var e=this.props.item,t=this._findModel(this.props.containerModel,e.id),n=t&&t.isCurrentThumbnail,o=t&&t.isDoneThumbnail,i=t&&t.isDisplayed||e.displayed,r=i||n||o,a=n&&!i,s=o&&!i,l=(0,f.default)({"card-item":!0,background:a,done:s}),u=this.renderSidePanel(t);return d.default.createElement("div",{className:l,"data-id":e.id,style:{display:r?"":"none"}},e.render(r),u)},t.prototype._findModel=function(e,t){var n=void 0;return(e&&e.items||[]).some(function(e){if(e.id===t)return n=e,!0}),n},t.prototype.renderSidePanel=function(e){var t=this.props,n=t.services,o=t.exploreVM;if(!e||!e.canvasTabs)return null;var i=e.canvasTabs,r=e.canShowCanvasSidePanel,a=e.isDisplayed;return d.default.createElement(_.default,{in:r,timeout:300,mountOnEnter:!0,unmountOnExit:!0,classNames:"explore__animation--slideLeft"},d.default.createElement(g.default,{services:n,exploreVM:o,model:i,className:"card-layout-content__side-panel",tabIndex:-1,isDisplayed:a}))},t}(l.Component))||s;y.propTypes={item:c.default.object.isRequired,services:c.default.object.isRequired,exploreVM:c.default.object,containerModel:c.default.object,background:c.default.bool,sidePanel:c.default.object},t.default=y},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.TAB_STATE=void 0;var s,l=n(0),d=o(l),u=n(5),c=n(1),p=o(c),f=n(6),h=n(60),m=o(h),g=n(347),v=o(g),_=n(18),y=o(_),b=n(348),w=o(b),x=n(349),C=o(x),S=n(2),E=o(S),M=n(354),T=o(M),I=n(8),A=o(I);n(356);var P=t.TAB_STATE={EMPTY:"empty",NO_VIS_SELECTED:"no_vis_selected",SHOW_SLOTS:"show_slots",SHOW_DATA:"show_data"},O=(0,u.observer)(s=function(e){function t(){var n,o,a;i(this,t);for(var s=arguments.length,l=Array(s),d=0;d0?this.state.dropdownMaxHeight+"px":"none"}},c.default.createElement(f.Collapse,{isOpened:this.props.open&&this.state.dropdownWidth>0,autoUnmount:!0,hasNestedCollapse:!this.props.animationWhenContentChanges},this.props.renderDropdownContents()));return c.default.createElement(g.default,{bounds:!0,onResize:function(t){return e._onResize(t)}},function(t){var i=t.measureRef;return c.default.createElement("div",{className:y,ref:i,onBlur:function(){return e.blurTimer=setTimeout(e.props.onBlur,350)},onFocus:function(){e.blurTimer&&(clearTimeout(e.blurTimer),delete e.blurTimer)}},n,o)})},t.prototype._onResize=function(e){e.bounds&&this.state.dropdownWidth!==e.bounds.width&&this.setState({dropdownWidth:e.bounds.width});var t=this.props.getDropdownMaxHeight();this.state.dropdownMaxHeight!==t&&this.setState({dropdownMaxHeight:t})},t}(u.Component))||d;b.propTypes={renderDropdownContents:_.default.func.isRequired,renderTrigger:_.default.func.isRequired,open:_.default.bool.isRequired,getDropdownMaxHeight:_.default.func.isRequired,onBlur:_.default.func,animationWhenContentChanges:_.default.bool},b.defaultProps={animationWhenContentChanges:!0},t.default=b},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s,l=n(0),d=o(l),u=n(1),c=o(u),p=n(5),f=n(374),h=o(f);n(107);var m=(0,p.observer)(s=function(e){function t(n){i(this,t);var o=r(this,e.call(this,n));return o.fieldsListRef=d.default.createRef(),o}return a(t,e),t.prototype._onButtonClick=function(e){this.props.onSelectField&&this.props.onSelectField(this.props.fields[e])},t.prototype._onDeleteField=function(e){this.props.onDeleteField&&this.props.onDeleteField(this.props.fields[e])},t.prototype.render=function(){var e=this;return this.props.error?this._renderError():d.default.createElement("div",{className:"fieldsListContainer"},this.props.title&&d.default.createElement("div",{className:"fieldsListTitle"},this.props.title),d.default.createElement("div",{className:"fieldsList",onKeyDown:function(t){return e._onKeyDown(t)},ref:this.fieldsListRef},this.props.fields.map(function(t,n){var o=!!t.deletable,i=o?e._onDeleteField.bind(e,n):null;return d.default.createElement(h.default,{deletable:o,onDelete:i,key:n,id:t.id,label:t.label,onClick:function(){return e._onButtonClick(n)},activeDataSourceModule:e.props.activeDataSourceModule,shouldUseDisambiguatedPaths:e.props.shouldUseDisambiguatedPaths})})))},t.prototype._renderError=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.error;return d.default.createElement("div",{className:"fieldsListContainer"},d.default.createElement("div",{className:"fieldsListTitle"},e.title),d.default.createElement("div",{className:"fieldsListErrorMessage"},e.description))},t.prototype._getFieldListNode=function(){return this.fieldsListRef.current},t.prototype._onKeyDown=function(e){var t=this._getFieldListNode(),n=this.props.fields.findIndex(function(t){return t.id===e.target.id});if(-1!==n)switch(e.key){case"ArrowLeft":n>0&&(this._setButtonTabIndex(t,n-1,"0"),this._focusFieldButtonNode(t,n-1),this._blurFieldButtonNode(t,n)),e.preventDefault();break;case"ArrowRight":n'});a.a.add(s);t.default=s},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(0),l=o(s),d=n(6),u=n(411),c=o(u),p=n(43),f=o(p),h=n(2),m=o(h),g=n(1),v=o(g),_=n(18),y=o(_),b=function(e){function t(){return i(this,t),r(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e=this.props.error&&this.props.error.getUserStrings&&this.props.error.getUserStrings()||{},t=this.props.alignment;t||(t="center");var n=this.props.iconId;void 0===n&&(n=this._getErrorIcon().id);var o=this.props.suggestions||e.suggestions;return void 0===o&&(o=m.default.get("startingPoints_unable_to_render_diagram_suggestions")),l.default.createElement(y.default,{icon:null!==this.props.iconId?l.default.createElement(d.SVGIcon,{iconId:n,size:"xxlarge"}):null,alignment:t,title:this.props.preferredTitle||e.title||this.props.defaultTitle,description:this.props.preferredDescription||e.message||this.props.defaultDescription,selectable:!0,suggestions:o})},t.prototype._getErrorIcon=function(){var e=this.props.error;return e&&"RUN_REQUEST_IN_BACKGROUND"===e.id?f.default:c.default},t}(s.Component);b.propTypes={error:v.default.object,defaultTitle:v.default.string,defaultDescription:v.default.string,alignment:v.default.string,iconId:v.default.string,preferredTitle:v.default.string,preferredDescription:v.default.string,suggestions:v.default.bool},t.default=b},function(e,t,n){var o=n(432);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){n(32),e.exports=n(171)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.Links=t.Deselection=t.Selection=t.VisPlaceholder=t.ExploreWidget=t.ExploreCardAuthoring=t.ExploreCard=t.ExploreContainer=t.ExploreContainerAuthoring=void 0;var i=n(172),r=o(i),a=n(254),s=o(a),l=n(260),d=o(l),u=n(261),c=o(u),p=n(414),f=o(p),h=n(415),m=o(h),g=n(455),v=o(g),_=n(457),y=o(_),b=n(458),w=o(b),x=n(459),C=o(x);n(460),t.ExploreContainerAuthoring=d.default,t.ExploreContainer=c.default,t.ExploreCard=m.default,t.ExploreCardAuthoring=f.default,t.ExploreWidget=v.default,t.VisPlaceholder=s.default,t.Selection=y.default,t.Deselection=w.default,t.Links=C.default,t.default=r.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"true",n=this.getDashboardApi();if(n){var o=n.getGlassCoreSvc(".FeatureChecker");return o&&o.checkValue("explore",e,t)}return!1},_initExploreContainerLayoutModel:function(e,t){var n=this,o=this.getDashboardApi();this.exploreContainerLayoutModel=e;var i=this.exploreContainerLayoutModel.boardModel,a={toolbar:{},canvasTabs:{tab:"details"},notification:{active:!1},thumbnails:{background:{}},selectedCards:{items:[]},selectionSync:{}},s=this._getInitiallySelectedCard(this.exploreContainerLayoutModel);s&&(a.displayedCard=s,a.selectionSync.displayedCard=s);var l=u.default.create(a,r({},t,{getToolBarItems:function(){return(0,c.getToolBarItems)(o,{glassContext:n.glassContext})},getThumbnailService:function(){return o.getDashboardSvc(".Thumbnail")},smartsRecommenderWrapper:new _.default({services:this.services,dashboardApi:o}),getNotificationController:function(){return new w.default({glassContext:n.glassContext})},getItems:function(){return n.exploreContainerLayoutModel.items.map(function(e){return e.id})}}));this.exploreContainerLayoutModel&&this.exploreContainerLayoutModel.setExploreVM&&this.exploreContainerLayoutModel.setExploreVM(l),l.setLayoutModel(this.exploreContainerLayoutModel),l.setBoardModel(i);var d=this._setupStartingPointsModel({exploreVM:l,services:this.services,dashboardApi:o,isFeatureEnabled:t.isFeatureEnabled,exploreViewId:this.id,isAlive:D.isAlive});this.exploreContainerLayoutModel.setStartingPointsModel(d),this.eventRouter.on("dataSourcePanel:dataSourceSelected",this._onDataSourceChange.bind(this,l)),this.eventRouter.on("dataSourceGrid:dataSourceSelected",this._onDataSourceChange.bind(this,l)),this.exploreContainerLayoutModel&&this.exploreContainerLayoutModel.setDashboardApi&&this.exploreContainerLayoutModel.setDashboardApi(this.getDashboardApi())},_setupStartingPointsModel:function(e){return E.StartingPointsViewModel.create({fields:{},relationship:{tooltip:{}}},e)},_getInitiallySelectedCard:function(e){if(e.items&&e.items.length){return e.items[0].id}},_onDataSourceChange:function(e,t){t.sender&&e.setActiveDataSourceId(t.sender)},_setupHostApplicationSvc:function(){this._hostInstance=new p.WidgetHostApp({services:this.services}),this._hostInstance.setup()},preprocessKeyDown:function(e){if((e.ctrlKey||e.metaKey)&&!e.shiftKey){if(e.target.tagName&&e.target.tagName.match(/input|textarea|select/gim))return e;var t=!1;switch(e.key){case"c":case"C":if(!this.isTextSelected()){if(~this._getClasses(e.target).indexOf("pageexploreContainer")){this.exploreContainerLayoutModel.exploreVM.selectedWidget&&(this.performCopy(),e.preventDefault())}else{var n=this._hasAncestorClass(e.target,["widget","liveWidget","exploreContainer","card-layout"]);if(n)if("card-layout"===n){var o=this.exploreContainerLayoutModel.exploreVM;o.selectedWidget&&(this.performCopy(),e.preventDefault())}else this.performCopy(),e.preventDefault()}t=!0}break;case"v":case"V":!!this._hasAncestorClass(e.target,["slotEditor__slots__slot"])||(this.performPaste(),e.preventDefault(),t=!0)}new g.default(e).setProperty("doNotHandle",t)}return e},_getClasses:function(e){return e&&e.getAttribute("class")?e.getAttribute("class").split(" "):[]},_hasAncestorClass:function(e,t){for(var n=this;e&&e!==document;){var o=function(){var o=n._getClasses(e),i=L.default.find(t,function(e){return~o.indexOf(e)});if(i)return{v:i};e=e.parentNode}();if("object"===(void 0===o?"undefined":i(o)))return o.v}return null},getExploreVM:function(){return this.exploreContainerLayoutModel&&this.exploreContainerLayoutModel.exploreVM},getExploreContainerLayoutModel:function(){return this.exploreContainerLayoutModel},performCopy:function(){var e=void 0,t=this.exploreContainerLayoutModel.exploreVM;if(!t.isStartingPointsDisplayed()){var n=t.getDisplayedCard();if(n){e=this.getCopyPasteHandler().doCopyWidgets(n,this.exploreContainerLayoutModel.getSelectedWidgets())}}return Promise.resolve(e)},performPaste:function(){var e=this;return this.getCopyPasteHandler().doPaste().then(function(t){return(0,x.postPasteAction)(e.exploreContainerLayoutModel.exploreVM,t)})},getCopyPasteHandler:function(){return new h.default({dashboardApi:this.getDashboardApi(),boardModel:this.boardModel,exploreContainerLayoutModel:this.exploreContainerLayoutModel,glassContext:this.glassContext})},openCardListPane:function(){var e=this.glassContext.appController.findPlugin("com.ibm.bi.explore.thumbnailBtn");e&&!e.isPressed()&&e.$el.trigger("click")},addFragment:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.exploreContainerLayoutModel.addFragment(e,"createCardFromFragment"),t.selectAfterAdd){var n=e.model.layout.map(function(e){return e.id});n&&this.exploreContainerLayoutModel.exploreVM.setDisplayedToCard(n[n.length-1])}}});t.default=V},function(e,t,n){"use strict";function o(e,t,n){var o=void 0;if(e&&d[e.type]){var i=d[e.type];o=(0,r.composeMSTLayoutModel)(t,i,n).named(e.type)}else o=(0,r.composeMSTLayoutModel)(t);return o}function i(e,t){function n(e){var t={};return Object.keys(e).forEach(function(o){if("items"!==o)t&&(t[o]=e[o]),"id"===o&&(a[e.id]?t=null:a[e.id]=!0);else{t.items=[];for(var i=0;e.items&&i0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=v._getContentFromSpec.call(this,e,{}),o=v._getContentFromSpec.call(this,t,{});return s({},o,n)}function b(t){var n=JSON.parse(JSON.stringify((0,u.getSnapshot)(e)));v.replaceIds.call(e,t,n);var o=(0,u.getType)(e).create(n,(0,u.getEnv)(e));return e.clones||(e.clones=0),e.clones++,v.replaceRelatedLayouts.call(e,t),v.incrementTitleCount.call(e,e.clones),o}function w(t,n){if(!e.findModel(t))return void e.logger.warn("Attempting to select id ("+t+") that is not an immediate child of the layout");if(-1===e.selected.indexOf(t)){var o=[];n&&n.selectedNodes?o=n.selectedNodes.map(function(e){return e.id}):(o=e.selected.slice(),o.push(t)),e.selected=o}else e.selected=JSON.parse(JSON.stringify(e.selected))}function x(t){if(e.selected){var n=e.selected.indexOf(t);n>=0&&(e.selected.splice(n,1),e.selected=e.selected.slice())}var o=e.getParent();o&&o.deselect(e.id)}function C(){var t=[];return e.selected&&(e.selected.forEach(function(n){var o=e.findModel(n);o&&t.push(o)}),e.items&&e.items.forEach(function(e){var n=e.getSelectedChildLayouts();n&&(t=t.concat(n))})),t}function S(){var t=e.getSelectedChildLayouts().filter(function(e){return"widget"===e.type});if(!e.isCompareEnabled&&!t.length){var n=e.getWidgetByIndex(0);if(n)return[n]}return t}function E(t){function n(e,t,o){if("widget"===e.type&&t===o.index++)return e;var i=e.items;if(i)for(var r=i.length,a=0;a0&&(c=v._triggerEvent.call(e,"add:items",{op:"addArray",parameter:d},{op:"removeArray",parameter:l},n,o)),c}function P(t,n,o){o=v.checkPayloadData.call(e,o);var i=null,r=e.findModel(t).getNextSiblingId(),a=v._removeItem.call(e,t);return a&&(i=v._triggerEvent.call(e,"remove:item",{op:"remove",parameter:t},{op:"add",parameter:{model:a.toJSON(),insertBefore:r}},n,o),a.off(),(0,u.destroy)(a)),i}function O(t,n,o){o=v.checkPayloadData.call(e,o);for(var i,r,a,s=[],l=0;l0&&(d=v._triggerEvent.call(e,"remove:items",{op:"removeArray",parameter:t},{op:"addArray",parameter:s},n,o)),d}function D(t,n,o){var i=e.items.slice();e.items.replace(t),v._triggerEvent.call(e,"replace:items",{op:"replaceArray",parameter:t},{op:"replaceArray",parameter:i},n,o)}function R(t,n,o){o=v.checkPayloadData.call(e,o);var i=null;if(t){e.style||(e.style={});var r=v._getStyles.call(e,t);h.extend(e.style,t),i=v._triggerEvent.call(e,"change:style",{op:"updateStyle",parameter:t},{op:"updateStyle",parameter:r},n,o)}return i}function L(e){return e?"%"===e[e.length-1]?parseFloat(e)+5+"%":"x"===e[e.length-1]?parseFloat(e)+25+"px":e:e}function N(t,n){var o={prevValue:{},value:{}},i=e.boardModel.getWidgetModel(t);if(i&&i.filters){var r=i.filters;i.filters=n,o.prevValue.filters=r,o.value.filters=n}return o}function F(t,n,o){o=v.checkPayloadData.call(e,o);var i=null,r=e.boardModel.layout.findModel(t.parentId);if(r){var a=e.getParent(),s=null;a&&(s=e.getNextSiblingId(),v._removeItem.call(a,e.id)),v._insertItem.call(r,{model:e,insertBeforeId:t.insertBefore},n,o),i=v._triggerEvent.call(e,"change:parent",{op:"updateParent",parameter:t},{op:"updateParent",parameter:{parentId:a?a.id:null,insertBefore:s}},n,o)}return i}function V(t,n,o){o=v.checkPayloadData.call(e,o);var i,r=null,a={},s={};if(t.addArray&&(r=e.addArray(t.addArray,n,o))&&(a.addArray=r.value.parameter,s.removeArray=r.prevValue.parameter),t.updateArray){var l=r?r.value.parameter:null,d=v._updateModelsProperties.call(e,t.updateArray,n,l,o);d&&JSON.stringify(d.value)!==JSON.stringify(d.prevValue)&&(a.updateArray=d.value,s.updateArray=d.prevValue)}if(t.removeArray){var u=e.removeArray(t.removeArray,n,o);u&&(a.removeArray=u.value.parameter,s.addArray=u.prevValue.parameter)}return t.payloadData&&(a.info=t.payloadData,s.info=t.payloadData),h.isEmpty(a)||(i=v._triggerEvent.call(e,"op:updateModel",{op:"updateModel",parameter:a},{op:"updateModel",parameter:s},n,o)),i}function k(t,n,o){o=v.checkPayloadData.call(e,o);var i={},r={};if(t.removeArray){var a=e.removeArray(t.removeArray,n,o);a&&(i.removeArray=a.value.parameter,r.addArray=a.prevValue.parameter)}if(t.addArray){var s=e.addArray(t.addArray,n,o);s&&(i.addArray=s.value.parameter,r.removeArray=s.prevValue.parameter)}if(t.updateArray){var l=v._updateModelsProperties.call(e,t.updateArray,n,o);l&&(i.updateArray=l.value,r.updateArray=l.prevValue)}return t.payloadData&&(i.info=t.payloadData,r.info=t.payloadData),v._triggerEvent.call(e,"op:moveModel",{op:"moveModel",parameter:i},{op:"moveModel",parameter:r},n,o)}function z(t){e.id=t}function j(){}function U(){e.style&&(e.style.display=void 0)}function W(){e.style||(e.style={}),e.style.display="none"}function B(){return e.selected}function H(t){var n=e.get(t);if(void 0===n){var o=e.getParent();o&&(n=o.getValueFromSelfOrParent(t))}return n}return{views:{findModel:M,listWidgets:T,getParent:t,getTopLayoutModel:o,getNextSiblingId:r,getPreviousSiblingId:a,getSelectedChildLayouts:C,getSelectedWidgets:S,getWidgetByIndex:E,findDropZones:l,findDescendantsWithType:d,getLinkedLayoutTree:c,findTopLevelParentItem:p,findChildItem:f,getLayoutPositioning:j,getSelected:B,getValueFromSelfOrParent:H},actions:{afterCreate:m,createContentModelMap:y,beforeDestroy:_,cloneLayout:b,add:I,addArray:A,remove:P,removeArray:O,replaceArray:D,select:w,deselect:x,updateStyle:R,incrementStyleValue:L,updateFilters:N,updateParent:F,updateModel:V,moveModel:k,setId:z,setDisplayStyleOn:U,setDisplayStyleOff:W}}});return a}function a(e,t){function n(e){var t={};return Object.keys(e).forEach(function(r){if("items"!==r)t&&(t[r]=e[r]),"id"===r&&o[e.id]?t=null:o[e.id]=!0;else{t.items=[];for(var a=0;a0){var t="";if("|"===this.relatedLayouts[0]){var n=this.relatedLayouts.split("|");t+="|",h.each(n,function(n){n.length>0&&(t+=(e[n]?e[n]:n)+"|")})}else t=e[this.relatedLayouts]?e[this.relatedLayouts]:this.relatedLayouts;this.relatedLayouts=t}h.each(this.items,function(t){v.replaceRelatedLayouts.call(t,e)})},incrementTitleCount:function(e){this.title&&this.title.length>0&&(this.title=this.title+"-"+e)},_insertItem:function(e,t,n){var o=e.model,i=e.insertBeforeId;o.$mobx||(o=this.createLayoutModel?this.createLayoutModel(o,(0,u.getEnv)(this)):(0,u.getType)(this).create(o,(0,u.getEnv)(this))),this.items||(this.items=[]);var r=v._getItemIndex.call(this,o.id);-1!==r&&(this.logger.error('Found duplicate layout id "'+o.id+'" at index "'+r+'" in layout "'+this.id+'".'),this.items.splice(r,1));var a=v._getItemIndex.call(this,i);return-1!==a?this.items.splice(a,0,o):this.items.push(o),v._triggerEvent.call(this,"insert:item",{op:"_insertItem",parameter:{model:o.toJSON(),insertBeforeId:i}},{op:"_removeItem",parameter:o.id},t,n)},_removeItem:function(e){var t=null,n=v._getItemIndex.call(this,e);return n>=0&&(t=this.items[n],(0,u.detach)(t)),t},_getItemIndex:function(e){return this.items?this.items.findIndex(function(t){return t.id===e}):-1},checkPayloadData:function(e){var t=e;if(!t){t={undoRedoTransactionId:h.uniqueId("layoutModelTransaction")}}return t},_triggerEvent:function(e,t,n,o,i){var r={modelId:this.id,value:t,sender:o||this};if(i&&(r.data=i),n){r.prevValue=n;var a=0===e.indexOf("change:")?this:this.boardModel.layout;r.senderContext={applyFn:function(e,t){v.applyFn.call(a,e,t,i)}}}return this.trigger(e,r),r},applyFn:function(e,t,n){if(e&&e.op&&"function"==typeof this[e.op]){var o=[e.parameter];o.push(t),o.push(n),this[e.op].apply(this,o)}else this.inherited("applyFn",this,arguments)},findParentModel:function(e){if(-1!==v._getItemIndex.call(this,e))return this;var t=null;if(this.items)for(var n=0;!t&&n=0&&o0&&(a=o[0].model.id);var s=e.updateParent({parentId:a,insertBefore:t.insertBefore},n,i);null!==s&&(r.prevValue=h.extend(r.prevValue,s.prevValue.parameter),r.value=h.extend(r.value,s.value.parameter))}var l=e.updateStyle(t.style,n,i);if(l&&(r.prevValue.style=l.prevValue.parameter,r.value.style=l.value.parameter),t.filters){var d=e.updateFilters(t.id,t.filters);d&&(r.prevValue.filters=d.prevValue.filters,r.value.filters=d.value.filters)}if(this.boardModel.layoutExtensions&&this.boardModel.layoutExtensions.modelExtensions){var u=this.boardModel.layoutExtensions.modelExtensions;Object.keys(u||{}).forEach(function(o){var a=v._callExtensionMethod.call(e,{property:o,value:t[o]},n,i);a&&(r.prevValue[o]=a.prevValue.parameter.value,r.value[o]=a.value.parameter.value)},this)}return r},_callExtensionMethod:function(e,t,n){var o=this.boardModel.layoutExtensions.modelExtensions[e.property];if(o&&"function"==typeof o.update){var i=o.update(this,e.value);if(i)return v._triggerEvent.call(this,i.event,{op:"_callExtensionMethod",parameter:{property:e.property,value:i.value}},{op:"_callExtensionMethod",parameter:{property:e.property,value:i.previousValue}},t,n)}return null},_isContainerType:function(){return!!h.contains(["container"],this.type)},_getLinkedLayoutTreeWorker:function(e,t,n){n.push([e,t]);var o=function(e){return"group"===e.type},i=e.getParent(),r=t.getParent();return o(i)||o(r)?o(i)&&o(r)?v._getLinkedLayoutTreeWorker.call(this,i,r,n):null:n},_getModelList:function(e){return[{newInstance:new m({},e.boardModel),methodList:["getContentModel","_initializeContentModel"],isBlocked:!1}]},_getContentFromSpec:function(e,t){var n=this;if(e.content)t[e.id]=e.content;else{var o={};e.hasOwnProperty("properties")&&e.properties&&(o.properties=e.properties),e.hasOwnProperty("features")&&e.features&&(o.features=e.features),Object.keys(o).length>0&&(t[e.id]=o)}return e.items&&e.items.length>0&&e.items.forEach(function(e){return v._getContentFromSpec.call(n,e,t)}),t}}},function(e,t,n){"use strict";t.__esModule=!0,t.MSTLayoutModelBase=void 0;var o=n(7),i=n(34),r=o.types.model({top:o.types.union(o.types.string,o.types.undefined),left:o.types.union(o.types.string,o.types.undefined),height:o.types.union(o.types.string,o.types.undefined),width:o.types.union(o.types.string,o.types.undefined)}).volatile(function(){return{display:void 0}}),a=t.MSTLayoutModelBase=o.types.model({id:o.types.optional(o.types.identifier,(0,i.generateUniqueId)("model")),type:o.types.union(o.types.string,o.types.undefined),title:o.types.union(o.types.string,o.types.undefined),from:o.types.union(o.types.string,o.types.undefined),style:o.types.union(r,o.types.undefined),templateName:o.types.union(o.types.string,o.types.undefined),clones:o.types.union(o.types.number,o.types.undefined),css:o.types.union(o.types.string,o.types.undefined),relatedLayouts:o.types.union(o.types.string,o.types.undefined),fillColor:o.types.union(o.types.string,o.types.undefined),disableScrollDrop:o.types.union(o.types.boolean,o.types.undefined),properties:o.types.union(o.types.frozen(),o.types.undefined),items:o.types.union(o.types.array(o.types.late(function(){return a})),o.types.undefined)}).preProcessSnapshot(function(e){return null===e?{}:e})},function(e,t,n){"use strict";function o(e,t){var n=["init","constructor","set","toJSON"],o=new d({},e.options),i=function(e){return"function"==typeof e},p=function(e){return Array.isArray(e)},f=function(e){return e&&"object"===(void 0===e?"undefined":a(e))};return c.props((0,l.constructProps)(e)).actions(function(e){return(0,l.adoptFunctions)(o,e,n,!0),t&&t.length>0&&t.map(function(t){(0,l.adoptFunctions)(t.newInstance,e,t.methodList,t.isBlocked)}),{afterCreate:function(){e.whitelistAttrs=(0,s.getEnv)(e).whitelistAttrs},set:function(t,n){t instanceof u?(0,s.applyPatch)(e,t.value):o.set.call(e,t,n)},toJSON:function(t,n){var o={},a=function e(t){var n=void 0;return t?t.toJSON&&i(t.toJSON)&&!t.$mobx?n=t.toJSON():t.toJSON&&i(t.toJSON)&&t.$mobx&&!t.map?n=t.toJSON():t.$mobx&&t.map&&p(t.map(function(e){return e}))?(t=t.map(function(e){return e}),n=t.map(function(t){return e(t)})):n=p(t)?t.map(function(t){return e(t)}):f(t)?r({},t):t:n=t,n},s=e.whitelistAttrs;return n&&(s=e.whitelistAttrs.filter(function(e){return-1===n.indexOf(e)})),s.forEach(function(t){-1!==e.runtimeAttrs.indexOf(t)?void 0!==e._persistedRuntimeAttrs[t]&&(o[t]=a(e._persistedRuntimeAttrs[e.resolvePropertyName(t)])):void 0!==e[t]&&(o[t]=a(e[e.resolvePropertyName(t)]))}),t&&(p(t)||(t=[t]),t.forEach(function(t){void 0!==e[e.resolvePropertyName(t)]&&(o[t]=a(e[e.resolvePropertyName(t)]))})),o}}})}function i(e,t,n){return o(t,n).create(e,t)}t.__esModule=!0,t.ModelAdapter=t._LegacyEvent$1=void 0;var r=Object.assign||function(e){for(var t=1;t0){var n=t[0],o=n.widgetLayout?n.widgetLayout.id:n.placeholder.id;return["com.ibm.vis.rave2comet"].indexOf(e.boardModel.getWidgetModel(o).visId)>=0}return!1}}}).actions(function(e){return{afterCreate:function(){e.getAdvancedVisualizationTypes(),e.createLayoutModel=e.createLayoutModel||(0,i.getEnv)(e).createLayoutModel,e.whitelistAttrs=["features","properties","id","from","css","items","style","type","title","templateName","relatedLayouts","clones","fillColor","disableScrollDrop","isHidden","isFavourite","subType","content"],e.compareModel=u.default.create({statsModelMap:{},selStatsModelMap:{}},{isFeatureEnabled:(0,i.getEnv)(e).isFeatureEnabled}),e.cometViewModel=p.default.create({selections:[],visIndexToShow:0}),e.cometViewModel.setCardModel(e),e.filterDockModel=h.default.create({scopeId:e.id},{dashboardApi:(0,i.getEnv)(e).dashboardApi,logger:(0,i.getEnv)(e).logger})},beforeDestroy:function(){e.compareModel&&(0,i.destroy)(e.compareModel),e.cometViewModel&&(0,i.destroy)(e.cometViewModel),e.filterDockModel&&(0,i.destroy)(e.filterDockModel),e._mobxDisposeEvents.forEach(function(e){return e()}),e.api&&(e.api.destroy(),e.api=null)},_initializeFilterDockIfNecessary:function(t){e.filterDockInitialized||!t||e.isDisplayed||(e.filterDockModel.initializeFilterDock(),e.filterDockModel.switchDatasource(null),e.filterDockInitialized=!0)},getAdvancedVisualizationTypes:function(){if(e.advancedVisualizationTypes.length>0)return e.advancedVisualizationTypes;var t=(0,i.getEnv)(e).dashboardApi.getFeature("VisDefinitions"),n=[];return t&&t.getList().forEach(function(e){var t=e.getProperty("usages");t&&-1!==t.indexOf("Advanced")&&n.push(e.getId())}),e.setAdvancedVisualizationTypes(n),e.advancedVisualizationTypes},shouldShowCompareTable:function(t){var n=e.getVisualizations(),o=0;return n&&n.length>0&&n.forEach(function(n){var i=n.widgetLayout?n.widgetLayout.id:n.placeholder.id;(e.getAdvancedVisualizationTypes().indexOf(e.boardModel.getWidgetModel(i).visId)>=0||!t.widgetHasData(i))&&o++}),o!==n.length},getAPI:function(){return e.api||(e.api=new g.default(e)),e.api},updateViewState:function(t){e._initializeFilterDockIfNecessary(t.isDisplayed),e.isDisplayed=t.isDisplayed,e.canvasTabs=t.canvasTabs,e.canShowCanvasSidePanel=t.canShowCanvasSidePanel,e.thumbnailsModel||(e.thumbnailsModel=t.thumbnailsModel)},updateCanShowCanvasSidePanel:function(t){e.canShowCanvasSidePanel=t},setCurrentThumbnailInfo:function(t,n){e.isCurrentThumbnail=t,e.thumbnailsModel||(e.thumbnailsModel=n)},setIsDoneThumbnail:function(t){e.isDoneThumbnail=t},setAdvancedVisualizationTypes:function(t){e.advancedVisualizationTypes=t},incrChildReadyCount:function(){e.numberOfChildLayoutsReady++},incrStatsModelUpdateCount:function(){e.statsModelUpdateCount++},setCardModelUtil:function(t){e.cardModelUtil=t},getTitle:function(){var t=e.getVisualizations().map(function(t){var n=t.widgetLayout;if(!n)return null;var o=e.boardModel.getWidgetModel(n.id);return o?o.name:null}).filter(function(e){return!!e}).join(" / ");return" / "!==t?t:""},toggleFavourite:function(t){e.isFavourite=void 0===t?!e.isFavourite:t},toggleHidden:function(t){e.isHidden=void 0===t?!e.isHidden:t},setShowModalVisTypePicker:function(t,n){e.showModalVisTypePicker=t,e.visDestination=t?n:null},setSelections:function(t){e.cometViewModel.setSelections(t)},placeWidgetInCard:function(t,n){n=l.default.isString(n)?{undoRedoTransactionId:l.default.uniqueId(n)}:n,t.parentId=e.id,t.model.showTitle=void 0,t.model.titleMode="smartTitle",e.boardModel.addWidget(t,"cardSender",n)},_prepareWidgetSpec:function(t,n){var o=e.boardModel,i=o.dashboardApi.getFeature("dataSources.deprecated"),r=i.getSourcesCollection(),a=r.addSourcesForPin(t.model,{payloadData:n}),s=t.model.widgets[Object.keys(t.model.widgets)[0]],l=s.data?s.data.dataViews:null;l&&l.forEach(function(e){a[e.modelRef]&&(e.modelRef=a[e.modelRef])});var d={};return delete s.id,d.model=s,d},_addDataSource:function(t,n){var o=(0,i.getEnv)(e).dashboardApi,r=o.getFeature("DataSources"),a=t&&t.model&&t.model.data;a&&a.dataViews&&a.dataViews.length&&a.dataViews.forEach(function(e){e.model&&(e.modelRef=r.addDataSource(e.model,!1,n),delete e.model)})},replaceWidgetInCard:function(t,n,o){o=l.default.isString(o)?{undoRedoTransactionId:l.default.uniqueId(o)}:o;var r=JSON.parse(JSON.stringify(t));r.specType&&"fragment"===r.specType&&(r=e._prepareWidgetSpec(t,o)),e._addDataSource(r);var a=e.createContentModelMap(t.model.layout),s=Object.values(a);if(s.length>0&&(r.layoutProperties={content:s[0]}),r.parentId=e.id,r.insertBefore=n,r.model.showTitle=void 0,r.model.titleMode="smartTitle",e.isCompareEnabled){var d={properties:[{id:"itemAxis.labels.layoutMode",value:"stagger"},{id:"widget.legend.position",value:"right"}]};Object.assign(r.model,d)}e.boardModel.addWidget(r,"cardSender",o);var u=(0,i.getEnv)(e).dashboardApi;u&&u.getCanvas().deselectContent([n]),e.boardModel.removeLayouts(n,"cardSender",o)},addStatsModels:function(t,n,o,i,r){e.compareModel.addStatsModels(t,n,o,i,r)},setupStatsModels:function(t,n){return e.compareModel.setupStatsModels(t,n)},setIsNew:function(t){e.isNew=t}}})},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.SelectionStatsModelMap=t.StatsModelMap=void 0;var i=n(7),r=n(11),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r),s=n(181),l=o(s),d=n(70),u=o(d),c=n(44),p=o(c),f=n(183),h=o(f),m=n(184),g=o(m),v=n(185),_=o(v),y=n(2),b=o(y),w=n(188),x=o(w),C=t.StatsModelMap=i.types.union(i.types.map(l.default),i.types.undefined),S=t.SelectionStatsModelMap=i.types.union(i.types.map(s.SelectionStatsModel),i.types.undefined),E=function(e,t){if(t&&t.length>0){var n=e.getFeature("EventGroups"),o=n.getGroupId(t[0]);n.removeFromGroup(t);return function(){n.groupExists(o)?n.addToGroup(o,t):n.createGroup(t)}}return function(){}};t.default=i.types.model({statsModelMap:C,selStatsModelMap:S}).volatile(function(e){return{showCompareTable:!0,showCompareLine:!0,showStats:!0,matchingPoints:a.observable.map({}),renderCrosshairPopOver:"",syncWidgetSelectionsUpdated:0,syncCompareLine:!0,matchScale:!0,isToggledBySyncAxisButton:!1,syncActions:!0,widgetMeasureNameMap:{},eventGroups:null,widgetAliasMap:{},widgetIds:[],widgetContentApisMap:{},synchActionProcessor:null,theMatchScaleProcessor:h.default,theStatsProcessor:p.default,compareTableSummary:null,compareTableSelectionSummary:null,statsUpdated:0,selectionUpdated:0,widgetUpdatedCount:0,refChecker:null,theStringResources:b.default,_mobxDisposeEvents:[],_api:null,getAPI:function(){return e._api}}}).views(function(e){return{getStatsModel:function(t){return e.statsModelMap&&e.statsModelMap.get(t)},getSelectionStatsModel:function(t){return e.selStatsModelMap&&e.selStatsModelMap.get(t)},getNewCompareTableStatsEnabled:function(){var t=(0,i.getEnv)(e);return t&&t.isFeatureEnabled&&!t.isFeatureEnabled("newCompareTableStatsEnabled","false")},getChartSummaryModel:function(t){return"summary"===t?e.compareTableSummary:"selections"===t?e.compareTableSelectionSummary:void 0},summaryStatsGetter:function(t){return"summary"===t?e.getChartSummaryStats.bind(e):"selections"===t?e.getChartSelectionSummaryStats.bind(e):void 0},summarySubHeaderGetter:function(t){return"selections"===t?e.getSelectionContextLabel.bind(e):function(){return null}},getChartSummaryStats:function(t,n){var o=null,i=e.getStatsModel(t);if(i){var r=e.chartVsChartTotalPercentStats[t],a=e.getWidgetAlias(t),s=b.default.get.bind(b.default),l=e.getNewCompareTableStatsEnabled();o=e.theStatsProcessor.getChartSummaryStats({newCompareTableStatsEnabled:l,statsModel:i,chartVsChart:r,measureName:n,widgetAlias:a,getString:s})}return o},getChartSelectionSummaryStats:function(t,n){var o=null,i=e.getStatsModel(t),r=e.getSelectionStatsModel(t);if(i){var a=e.getWidgetAlias(t),s=e.theStringResources.get.bind(e.theStringResources),l=e.getNewCompareTableStatsEnabled();o=e.theStatsProcessor.getChartSelectionSummaryStats({newCompareTableStatsEnabled:l,statsModel:i,selStatsModel:r,measureName:n,widgetAlias:a,getString:s})}return o},getSelectionContextLabel:function(t,n){var o=e.getSelectionStatsModel(t);if(o){var i=e.theStatsProcessor.getSelectionContextLabel(o,n),r=i.lastCategorySelectionLabel;if(i.numSelections>1){var a={selection:i.lastCategorySelectionLabel,count:i.numSelections-1};r=e.theStringResources.get("compareTable_Selection_SubLabel",a)}return[r]}},get chartVsChartTotalPercentStats(){return e.theStatsProcessor.getChartVsChartTotalPercentStats(e.statsModelMap)},getWidgetAlias:function(t){return e.widgetAliasMap[t]||""},getWidgetContentApis:function(){return Object.values(e.widgetContentApisMap)},getWidgetMeasureName:function(t){return e.widgetMeasureNameMap[t]},getCrossHairMatchingPoints:function(){return a.toJS(e.matchingPoints)},renderPopOver:function(t,n,o,i,r){e.renderCrosshairPopOver&&e.renderCrosshairPopOver(t,n,o,i,r)},isNewCompareLineFeatureEnabled:function(){return!(0,i.getEnv)(e).isFeatureEnabled("newCompareLine","false")},isWidgetSelectionsSynced:function(){if(e.syncWidgetSelectionsUpdated&&e.eventGroups){var t={};return e.widgetIds.forEach(function(n){var o=e.eventGroups.findGroup(n);o&&(t[o.id]=!0)}),Object.keys(t).length<2}return!0},widgetHasData:function(t){var n=e.statsModelMap.get(t);return n&&n.measures&&n.measures.size>0},get numberOfWidgetsWithData(){var t=0;return e.statsUpdated&&e.widgetIds.forEach(function(n){t+=e.widgetHasData(n)?1:0}),t},get compareLineEnabled(){return!!e.statsUpdated&&e.getWidgetContentApis().some(function(t){var n=t.getFeature("WidgetAPI.deprecated").getFeature("vis-crosshairs");if(n&&n.isSupported())return e.widgetHasData(t.getId())})},isCompareLineEnabled:function(){return e.compareLineEnabled},isCompareTableEnabled:function(){return e.numberOfWidgetsWithData>0},isSyncMenuEnabled:function(){return e.numberOfWidgetsWithData>1},isScaleSynced:function(){return e.matchScale},isCompareLineSynced:function(){return e.syncCompareLine},isActionsSynced:function(){return e.syncActions},isCompareLineShown:function(){return e.showCompareLine},isRelativeTime:function(){return!1},getWidgetSubLabel:function(t){var n=e.widgetFilterInfo[t];if(n){var o=[];return n.forEach(function(t){var n=e.theStringResources.get("compareChartSubLabel",{title:t.title,description:t.description});o.push(n)}),o.join(" , ")}},getDefaultMatchScaleOption:function(t,n){return e.theMatchScaleProcessor.shouldMatchingScaleByDefault(t,n,e.widgetIds)||e.isRelativeTime()},get isMatchScaleEnabled(){return e.theMatchScaleProcessor.allowMatchingScale(e.domain,e.widgetIds)}}}).actions(function(e){return{afterCreate:function(){e.refChecker=new u.default(e),e.synchActionProcessor=new g.default(e,e.refChecker),e.compareTableSummary=_.default.create({applicableCalcs:void 0,charts:void 0},{isFeatureEnabled:(0,i.getEnv)(e).isFeatureEnabled}),e.compareTableSummary.setWidgetMeasureNameMap(e.widgetMeasureNameMap),e.compareTableSelectionSummary=_.default.create({applicableCalcs:void 0,charts:void 0},{isFeatureEnabled:(0,i.getEnv)(e).isFeatureEnabled}),e.compareTableSelectionSummary.setWidgetMeasureNameMap(e.widgetMeasureNameMap),e.widgetFilterInfo={},e.syncWidgetSelectionsDisposer=null,e._api=new x.default(e)},setStatsProcessor:function(t){e.theStatsProcessor=t},setStringResources:function(t){e.theStringResources=t},setShowCompareLine:function(t){e.matchingPoints.clear(),e.showCompareLine=t},setShowStats:function(t){e.showStats=t},setCompareLineSynced:function(t){e.syncCompareLine=t},setScaleSynced:function(t,n){e.matchScale=t,e.isToggledBySyncAxisButton=n},setActionsSynced:function(t){t?e.synchActionProcessor.enable():e.synchActionProcessor.disable(),e.syncActions=t},setWidgetSelectionsSyncUpdated:function(){e.syncWidgetSelectionsUpdated=e.syncWidgetSelectionsUpdated+1},setEventGroups:function(t){e.eventGroups=t},updateWidgetSelectionsSynced:function(t){if(!1!==t&&e.syncWidgetSelectionsDisposer)return e.syncWidgetSelectionsDisposer&&(e.syncWidgetSelectionsDisposer(),e.syncWidgetSelectionsDisposer=null,e.setWidgetSelectionsSyncUpdated(),e.getWidgetContentApis().forEach(function(e){return e.getFeature("WidgetAPI.deprecated").render()})),Promise.resolve({});var n=e.widgetIds;return function(){return e.syncWidgetSelectionsDisposer=E(e.dashboardApi,n),t&&e.syncWidgetSelectionsDisposer&&(e.syncWidgetSelectionsDisposer(),e.syncWidgetSelectionsDisposer=null),e.setWidgetSelectionsSyncUpdated(),e.getWidgetContentApis().forEach(function(e){return e.getFeature("WidgetAPI.deprecated").render()}),{}}()},updateSyncAxisScale:function(t,n){e.setScaleSynced(t,n);var o=[];return e.widgetIds.forEach(function(t){return o.push(e.taskComplete(t))}),Promise.all(o)},toggleShowCompareLine:function(){var t=e.isCompareLineShown();e.setShowCompareLine(!t),e.getWidgetContentApis().forEach(function(n){var o=n.getFeature("WidgetAPI.deprecated").getFeature("vis-crosshairs");if(o)if(t)o.deactivate();else{var i=n.getId();e._activateCrosshairs(i),o.isSupported()&&(o.renderCrosshairs(),e._setupPopover(o,i,o.getOptimalLineValue()))}})},toggleShowCompareTable:function(){e.showCompareTable=!e.showCompareTable},addStatsModels:function(t,n,o,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a={measureLabel:i,showStats:function(){return e.showStats},matchScale:function(){return e.matchScale}};-1===e.widgetIds.indexOf(t)&&e.widgetIds.push(t),e.widgetAliasMap[t]=r;var d={header:n.header,_env:a},u={header:o.header,_env:a};e.statsModelMap.set(t,l.default.create(d)),e.selStatsModelMap.set(t,s.SelectionStatsModel.create(u))},initializeSynch:function(t){var n=t.getId();e.synchActionProcessor.initialize(t),e._activateCrosshairs(n)},initializeWidgetSelectionsSynced:function(t){e.setEventGroups(t),e.setWidgetSelectionsSyncUpdated()},initializeWidgetApis:function(t){var n=t.getId();-1===e.widgetIds.indexOf(n)&&e.widgetIds.push(n),e.widgetContentApisMap[n]=t},beforeDestroy:function(){e.refChecker.remove(),e.synchActionProcessor.destroy(),e._mobxDisposeEvents.forEach(function(e){return e()}),e.compareTableSummary&&(0,i.destroy)(e.compareTableSummary),e.compareTableSelectionSummary&&(0,i.destroy)(e.compareTableSelectionSummary)},setupStatsModels:function(t,n){e.widgetId=t,n&&n.activate&&n.activate({cb:e.updateData.bind(e,e.refChecker,t),cbSel:e.updateSelectionData.bind(e,e.refChecker,t),cbDomain:e.updateDomain.bind(e,e.refChecker,t),cbDeactivate:e.cleanData.bind(e,e.refChecker,t)})},_activateCrosshairs:function(t){var n=e.widgetContentApisMap[t],o=n&&n.getFeature("WidgetAPI.deprecated").getFeature("vis-crosshairs");o&&o.activate({cbOnMoveCrosshairs:e.onMoveCrosshairs.bind(e,e.refChecker,t)})},onMoveCrosshairs:function(t,n,o){if(t.isValid(e)){var i=void 0;e.getWidgetContentApis().forEach(function(t){i=t.getId();var r=t.getFeature("WidgetAPI.deprecated").getFeature("vis-crosshairs");if(i!==n&&r&&r.isActivated()&&e.isCompareLineSynced()&&r.renderCrosshairs(o.value),e.isNewCompareLineFeatureEnabled()){(!!e.isCompareLineSynced()||n===i)&&r&&e._setupPopover(r,i,o.value)}})}},_setupPopover:function(t,n,o){e.matchingPoints.set(n,t.getCrossHairMatchingPoints(o)),e.renderCrosshairPopOver||(e.renderCrosshairPopOver=t.renderPopOver)},updateData:function(t,n,o){if(t.isValid(e)){var i=e.statsModelMap.get(n);return i&&i.updateData(o),e.statsUpdated++,e._updateMatchingPoints(n),e.compareTableSummary.computeSummaryInfo(e.statsModelMap,e.widgetAliasMap,e.widgetContentApisMap,n),e.populateWidgetFilterInfo(n)}},updateDomain:function(t,n,o){var i=void 0;if(t.isValid(e)){var r=void 0,a=e.isToggledBySyncAxisButton&&e.matchScale;if(e.getWidgetContentApis().forEach(function(t){t.getId()===n&&(r=t,i=e.theMatchScaleProcessor.getDomainAndNotifyWidgetId(o.measures,e.domain,t,e.widgetIds,a))}),e.isToggledBySyncAxisButton)return e.matchScale?(e.domain=i.domain,e.taskComplete(i.notifyWidgetId,n)):Promise.resolve(!0);return!1===e.getDefaultMatchScaleOption(i.domain,r)?(e.setScaleSynced(!1,!1),i.notifyWidgetId?e.taskComplete(i.notifyWidgetId,n):Promise.resolve(!0)):(e.setScaleSynced(!0,!1),e.domain=i.domain,e.taskComplete(i.notifyWidgetId,n))}},cleanData:function(t,n){if(t.isValid(e)){var o=e.widgetContentApisMap[n],i=e.widgetIds.indexOf(n);if(~i&&e.widgetIds.splice(i,1),delete e.widgetAliasMap[n],delete e.widgetContentApisMap[n],delete e.widgetMeasureNameMap[n],e.statsModelMap.delete(n),e.compareTableSummary.computeSummaryInfo(e.statsModelMap,e.widgetAliasMap,e.widgetContentApisMap,n),e.statsUpdated++,delete e.widgetFilterInfo[n],e.incrWidgetUpdatedCount(),e.matchScale){var r=e.theMatchScaleProcessor.getDomainAndNotifyWidgetId({},e.domain,o,e.widgetIds);if(e.domain=r.domain,r.notifyWidgetId){var a=e.widgetContentApisMap[r.notifyWidgetId],s=a.getFeature("WidgetAPI.deprecated");if(s&&s.getVisApi){var l=s.getVisApi();l&&l.reRender()}}}e.domain&&delete e.domain[n],e.selStatsModelMap.delete(n),e.compareTableSelectionSummary.computeSummaryInfo(e.selStatsModelMap,e.widgetAliasMap,e.widgetContentApisMap,n,"selections"),e.selectionUpdated++}},taskComplete:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise(function(o){if(!e.domain)return void o(e.domain);e.domain&&Object.keys(e.domain).length>1?t?e._reRenderWidget(t,o):o(e.domain):e.delayingFastestRender?(e.delayingFastestRender=null,e._reRenderWidget(t,o)):e.delayingFastestRender=setTimeout(function(){e._reRenderWidget(t,o),n&&e.widgetContentApisMap[n]&&e.widgetContentApisMap[n].getFeature("WidgetAPI.deprecated").render({resize:!0})},1e3)})},updateSelectionData:function(t,n,o){if(t.isValid(e)){e.selStatsModelMap.get(n).updateData(o),e.selectionUpdated++,e.compareTableSelectionSummary.computeSummaryInfo(e.selStatsModelMap,e.widgetAliasMap,e.widgetContentApisMap,n,"selections")}},setDashboardApi:function(t){e.dashboardApi=t},_reRenderWidget:function(t,n){return n(e.domain),t?e.dashboardApi.getCanvasWhenReady().then(function(e){return e.getWidgetWhenReady(t)}).then(function(e){return!e||e.whenRenderComplete().then(function(){return e.render()})}):Promise.resolve(!0)},_updateMatchingPoints:function(t){var n=e.widgetContentApisMap[t];if(n&&n.getFeature){var o=n.getFeature("WidgetAPI.deprecated");if(o){var i=o.getFeature("vis-crosshairs");i&&i.isSupported()&&i.isActivated()&&e._setupPopover(i,t,i.getOptimalLineValue())}}},populateWidgetFilterInfo:function(t){var n=e.widgetContentApisMap[t],o=n&&n.getFeature("WidgetAPI.deprecated");return o&&o.whenRenderComplete?o.whenRenderComplete().then(function(){var n=o.getVisApi(),i=n.getLocalFilterAndTopBottomInfo();return e.setWidgetFilterInfo(t,i),e.incrWidgetUpdatedCount(),i}):Promise.resolve([])},setWidgetFilterInfo:function(t,n){e.widgetFilterInfo[t]=n},incrWidgetUpdatedCount:function(){e.widgetUpdatedCount++}}})},function(e,t,n){"use strict";t.__esModule=!0,t.SelectionStatsModel=void 0;var o=n(7),i=o.types.model({id:o.types.string,name:""}),r=o.types.map(o.types.frozen()),a=o.types.model({header:o.types.union(o.types.array(i),o.types.undefined),measures:o.types.union(o.types.map(r),o.types.undefined),_env:o.types.frozen()}).views(function(e){return{get headers(){var t=[e.measureLabel];return(e.header||[]).forEach(function(e){t.push(e.name)}),t},get orderedValues(){var t=[],n=e.header||[];return e.measures.forEach(function(e){var o=[],i=e.get("metadata")||{};o.push(i.label),n.forEach(function(t){var n=t.id;if("metadata"!==n&&"totalPercent"!==n){var i=e.get(n);"string"==typeof i||i instanceof String?o.push(i||"-"):o.push(Math.round(i)||"-")}if("totalPercent"===n&&e.get("totalUse")&&e.get("summaryValueUse")){var r=Math.round(e.get("totalUse")/e.get("summaryValueUse")*100);o.push(r)}else"totalPercent"===n&&o.push("-")}),t.push({row:o})}),t}}}).volatile(function(){return{widgetId:0,showStats:function(){return!0},statsModelUpdateCount:0,newCompareTableStatsEnabled:!1}}).actions(function(e){return{afterCreate:function(){e.measureLabel=e._env&&e._env.measureLabel||"",e.showStats=e._env&&e._env.showStats||e.showStats,e.newCompareTableStatsEnabled=e._env&&e._env.newCompareTableStatsEnabled},updateData:function(t){t&&t.header&&t.measures&&(e.header=t.header,e.measures=t.measures,e.lastCategorySelection=t.lastCategorySelection)}}});t.default=a;var s=o.types.model({values:o.types.array(o.types.maybeNull(o.types.number)),metadata:o.types.union(o.types.frozen(),o.types.undefined),detailRowCountUse:o.types.optional(o.types.number,0),detailSumUse:o.types.optional(o.types.number,0),filteredSummaryValue:o.types.optional(o.types.string,"-"),filteredSummaryValueUse:o.types.maybeNull(o.types.number),weightedAvgUse:o.types.optional(o.types.number,0)}),l=o.types.array(o.types.union(o.types.string,o.types.number,o.types.null));t.SelectionStatsModel=a.named("SelectionStatsModel").props({measures:o.types.union(o.types.map(s),o.types.undefined),lastCategorySelection:o.types.union(l,o.types.undefined)}).actions(function(e){return{updateData:function(t){e.header=t.header,e.measures=t.measures,e.lastCategorySelection=t.lastCategorySelection}}})},function(e,t){e.exports=b},function(e,t,n){"use strict";function o(e,t,n,o,r){var a=n&&n.getId(),c=i(a,o);if(s(n))return u(e,t,n,c,void 0,r);var p=l(n);return p.length?u(e,t,n,c,p,r):d(e,t,a,c,void 0,n)}function i(e,t){return t.find(function(t){return t!==e})}function r(e,t,n){var o=!1;if(e&&e[t]){var i=e[t].isCompositeChart&&"values"===n,r=e[t].slotId&&e[t].slotId===n;o=i||r}return o}function a(e,t){var n=!1;return t&&(n=Object.keys(t).some(function(n){return t[n].slotId===e})),n}function s(e){return e.getFeature("Visualization").getDefinition().getProperty("supportsMaintainAxisScale")}function l(e){var t=e.getFeature("Visualization").getSlots().getMappedSlotList(),n=void 0,o=[];return t&&t.length&&t.forEach(function(e){e.getDefinition().getProperty("supportsMaintainAxisScale")&&(n=e.getDataItemList())}),n&&n.forEach(function(e){o.push(e.getId())}),o}function d(e,t,n,o,i,r){if(e&&t&&t[n]){Object.keys(t[n]).forEach(function(r){var a=t[n][r].measureKey,s=e[a],l=!!s&&e[a].metadata.slotId!==t[n][r].slotId;s&&!l||(delete t[n][r],t[o]&&t[o][r]&&t[o][r].max!==t[o][r].dataMax&&!i&&(i=o))});!s(r)&&0===l(r).length&&delete t[n]}return{domain:t,notifyWidgetId:i}}function u(e,t,n,o,i,s){var l=void 0,u=t||{},p=n&&n.getId(),m=n&&n.getFeature("Visualization"),g=m&&"DualAxis"===m.getType();return e&&Object.keys(e).forEach(function(t){u[p]=u[p]||{};var d=void 0===e[t].stackedDomainMax?e[t].maxUse:e[t].stackedDomainMax,m=void 0===e[t].stackedDomainMin?e[t].minUse:e[t].stackedDomainMin;if(void 0!==d||void 0!==m){var v=d,_=m,y=e[t].metadata.itemId+e[t].metadata.aggregationType+e[t].metadata.layerId,b=e[t].metadata.slotId,w={itemScaleMax:v,itemDataMax:d},x={itemScaleMin:_,itemDataMin:m},C={itemScaleMax:v,itemDataMax:d,itemScaleMin:_,itemDataMin:m,itemKey:y,itemSlotId:b,isCompositeChart:g};if(g){var S=c(e);C.itemDataMax=S.dataMax,C.itemDataMin=S.dataMin,C.itemScaleMax=C.itemDataMax,C.itemScaleMin=C.itemDataMin,u[o]&&u[o][y]||s?(w=f(C,u,n,o,l,s),l=w.notifyWidgetId,x=h(C,u,n,o,l,s),l=x.notifyWidgetId):(w={itemScaleMax:v,itemDataMax:d},x={itemScaleMin:_,itemDataMin:m})}else(r(u[o],y,b)||a(b,u[o]))&&(w=f(C,u,n,o,l,s),l=w.notifyWidgetId,x=h(C,u,n,o,l,s),l=x.notifyWidgetId);i&&-1===i.indexOf(e[t].metadata.itemUniqueId)||(u[p][y]={max:w.itemScaleMax,min:x.itemScaleMin,dataMax:w.itemDataMax,dataMin:x.itemDataMin,aggregate:e[t].metadata.aggregationType,columnId:e[t].metadata.itemId,slotId:b,measureKey:t,isCompositeChart:g,layerId:e[t].metadata.layerId})}}),d(e,u,p,o,l,n)}function c(e){var t=void 0,n=void 0;return e&&Object.keys(e).forEach(function(o){var i=e[o];t=void 0===t?i.maxUse:t,t=Math.max(t,i.maxUse),n=void 0===n?i.minUse:n,n=Math.min(n,i.minUse)}),{dataMax:t,dataMin:n}}function p(e,t){var n={},o=e&&Object.keys(e).filter(function(n){return e[n].slotId===t||e[n].isCompositeChart});return o&&o.forEach(function(o){if(e[o].slotId===t||e[o].isCompositeChart){var i=e[o].dataMax,r=e[o].dataMin,a=e[o].max,s=e[o].min;void 0!==n.dataMax?n.dataMax=n.dataMax>i?n.dataMax:i:n.dataMax=i,void 0!==n.scaleMax?n.scaleMax=n.scaleMax>a?n.scaleMax:a:n.scaleMax=a,void 0!==n.dataMin?n.dataMin=n.dataMing?i=_?i:o:l>c?i=_?i:o:c!==g?(i=_?i:o,a=c):a=c),{itemScaleMax:a,itemDataMax:l,notifyWidgetId:i}}function h(e,t,n,o,i,r){var a=e.itemScaleMin,s=e.itemSlotId,l=e.itemDataMin,d=e.itemKey,u=e.isCompositeChart,c=void 0,f=void 0,h=t[o],m=s&&h&&h[d]&&h[d].slotId===s;if(h&&r)s=u?"values":s,c=p(h,s).dataMin,f=p(t[o],s).scaleMin;else{if(!h||!h[d]||!m&&!u)return{itemScaleMin:a,itemDataMin:l,notifyWidgetId:void 0};c=h[d].dataMin,f=h[d].min}var g=Math.min(c,f),v=l>=0&&g>=0,_=n.getFeature("WidgetAPI.deprecated").getVisApi().getPropertyById("valueAxis.zeroOrigin")&&v;return l!==g&&(l=0&&e.indexInSlot=0&&e.indexInSlot=0&&e.indexInSlot=r.length)break;l=r[s++]}else{if(s=r.next(),s.done)break;l=s.value}var d=l,u=d.getDataItemList().findIndex(function(e){return e.getId()===n||e.getColumnId()===n});if(-1!==u){i={slotAPI:d,indexInSlot:u,dataItemAPI:d.getDataItemList()[u]};break}}return i},e.prototype._findCorrespondingSlotItem=function(e,t){var n=e&&t.getFeature("Visualization").getSlots().getMappingInfo(e.dataItemId),o=n&&n.slot;return o?{slotAPI:o,indexInSlot:0,dataItemAPI:o.getDataItem()}:null},e.prototype._addWidgetApiListeners=function(e){var t=e.getFeature("Visualization");this._actionListeners.push(t.on("change:slots:dataitem:sort",this.synchSort.bind(this,e.getId()))),this._actionListeners.push(t.on("change:slots:dataitem:format",this.synchFormat.bind(this,e.getId()))),this._actionListeners.push(t.on("change:slots:dataitem:topbottom",this.synchTopBottom.bind(this,e.getId())))},e}();t.default=i},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=65;return Array.from(e.entries()).map(function(e){return{widgetId:e[0],widgetAlias:t&&t[e[0]]||String.fromCharCode(n++)}})}function r(e,t){var n=e.get(t),o=n.measures||new Map,i=[];return o.forEach(function(e,t){i.push({measureName:t,metadata:e.metadata||e.get("metadata")})}),i}t.__esModule=!0,t.CalcType=void 0,t.getWidgetInfoList=i,t.getMeasuresList=r;var a=n(7),s=n(44),l=o(s),d=n(2),u=o(d),c=n(186),p=o(c),f=n(187),h=o(f),m=t.CalcType=a.types.string,g=a.types.model({widgetId:"",widgetAlias:"",measureName:"",measureLabel:"",measureList:a.types.frozen()}),v=a.types.enumeration("WidgetContextProcessState",["pending","ready","error"]),_=a.types.model({applicableCalcs:a.types.union(a.types.array(m),a.types.undefined),charts:a.types.union(a.types.array(g),a.types.undefined),updated:0,widgetContextProcessState:a.types.optional(v,"pending")}).volatile(function(){return{theStatsProcessor:l.default,combinedSummaryValueMap:{},theWidgetContextChecker:p.default,getApplicableCalcTypes:l.default.getApplicableSummaryCalcTypes,widgetMeasureNameMap:{},widgetContextCheckResult:{},widgetDataVersions:{},fnSpyNewStats:null,fnSpyNewCalcs:null}}).views(function(e){return{getNewCompareTableStatsEnabled:function(){var t=(0,a.getEnv)(e);return t&&t.isFeatureEnabled&&!t.isFeatureEnabled("newCompareTableStatsEnabled","false")},getAPI:function(){return e._api},getData:function(t,n){var o={value:""},i=e.applicableCalcs[t];if(i&&n){o.value=n.stats&&n.stats[i]||"",o.valueUse=n.statsUse&&n.statsUse[i]||"",o.toolTip=n.toolTip&&n.toolTip[i],o.formatSpec=n.meta&&n.meta.format&&n.meta.format||"";var r=n.statsUse&&n.statsUse.hasNegativeValues;r&&r.indexOf(i)>=0&&(o.hasNegativeValuesIndicator=" *")}return o},getSelectedMeasureName:function(t){return e.widgetMeasureNameMap[t]||null},getCalculatedData:function(t){e.fnSpyNewStats&&e.fnSpyNewStats(t);var n={statsInfoList:t,applicableCalcs:e.applicableCalcs,getString:u.default.get.bind(u.default),widgetContextCheckResult:e.widgetContextCheckResult,newCompareTableStatsEnabled:e.getNewCompareTableStatsEnabled(),combinedSummaryValueMap:e.combinedSummaryValueMap};if(t.length<2&&e.setCombinedSummaryValues(null),"ready"===e.widgetContextProcessState||t.length<2){var o=e.theStatsProcessor.getCalculatedSummaryData(n);return e.fnSpyNewCalcs&&e.fnSpyNewCalcs(o),o}if("pending"===e.widgetContextProcessState&&!e._checker){e._checker=new e.theWidgetContextChecker(e.widgetContentMap);var i=!!t[0].statsUse.numSelections;e._checker.process(n.newCompareTableStatsEnabled,i).then(function(t){n.combinedSummaryValueMap=t.combinedSummaryResponse&&t.combinedSummaryResponse.measures,e.setCombinedSummaryValues(n.combinedSummaryValueMap),e._checker&&(e.setWidgetContextProcessInfo("ready",t),e._checker=null,e._processedCheck&&e._processedCheck())})}return e.theStatsProcessor.getCalculatedSummaryData(n)},getWidgetDataVersions:function(){return e.widgetDataVersions},areCalculationsReady:function(){return"ready"===e.widgetContextProcessState}}}).actions(function(e){return{afterCreate:function(){e._api=new h.default(e)},beforeDestroy:function(){e._api.destroy(),e._api=null,e._checker=null},setSpyNewStats:function(t){e.fnSpyNewStats=t},setSpyNewCalcs:function(t){e.fnSpyNewCalcs=t},updateWidgetDataVersion:function(t){t&&(e.widgetDataVersions[t]||(e.widgetDataVersions[t]=0),e.widgetDataVersions[t]++)},setCombinedSummaryValues:function(t){e.combinedSummaryValueMap=t},setStatsProcessor:function(t){e.theStatsProcessor=t},setWidgetContextChecker:function(t){e.theWidgetContextChecker=t},setWidgetContextProcessInfo:function(t,n){e.widgetContextCheckResult=n,e.widgetContextProcessState=t},setWidgetMeasureNameMap:function(t){e.widgetMeasureNameMap=t},computeSummaryInfo:function(t,n,o,a,s){var l=e.getNewCompareTableStatsEnabled(),d={applicableCalcs:[],charts:[]};e.widgetContentMap=o,e.widgetContextProcessState="pending",n=n||{};var u=i(t,n),c=u&&u[0],p=c&&e.getSelectedMeasureName(c.widgetId),f=c&&r(t,c.widgetId),h=f&&(f.find(function(e){return e.measureName===p})||f[0]);h&&(e.widgetMeasureNameMap[c.widgetId]=h.measureName);var m=h&&[h]||[],g=u.filter(function(e){return e.widgetId!==c.widgetId}),v=g.map(function(n){var o=n&&r(t,n.widgetId)||[],i=e.getSelectedMeasureName(n.widgetId),a=o.find(function(e){return e.measureName===i}),s=a||h&&o.find(function(e){return e.measureName===h.measureName})||o[0];s&&(e.widgetMeasureNameMap[n.widgetId]=s.measureName);var l=s&&o.find(function(e){return e.measureName===s.measureName});return l=l||o.length>0&&o[0],l&&m.push(l),{otherWidget:n,matchingMeasure:l,otherWidgetMeasures:o}}),_=s&&"selections"===s?"getApplicableSelectionSummaryCalcTypes":"getApplicableSummaryCalcTypes";e.getApplicableCalcTypes=_,d.applicableCalcs=e.theStatsProcessor[_](m,l)||[],c&&h&&d.charts.push({widgetId:c.widgetId,widgetAlias:c.widgetAlias,measureName:h.measureName,measureLabel:h.metadata.label,measureList:f}),v.forEach(function(e){var t=e.otherWidget;t&&e.matchingMeasure&&d.charts.push({widgetId:t.widgetId,widgetAlias:t.widgetAlias,measureName:e.matchingMeasure.measureName,measureLabel:e.matchingMeasure.metadata.label,measureList:e.otherWidgetMeasures})}),e.applicableCalcs=d.applicableCalcs,e.charts=d.charts;var y=n[a];e.updateWidgetDataVersion(y)},recomputeSummaryInfo:function(t){var n=e,o={applicableCalcs:[],charts:[]},i=t.widgetId,r=t.measureName;o.charts=JSON.parse(JSON.stringify(n.charts));var a=o.charts.findIndex(function(e){return e.widgetId===i}),s=o.charts[a];s.measureName=r;var l=s.measureList.find(function(e){return e.measureName===r});s.measureLabel=l.metadata.label;var d=[l];o.charts.filter(function(e){return e.widgetId!==i}).map(function(e){var t=e.measureList||[],n=t.find(function(t){return t.measureName===e.measureName});return n=n||t.length>0&&t[0],n&&d.push(n),{otherWidget:e,matchingMeasure:n,otherWidgetMeasures:t}});var u=e.getApplicableCalcTypes,c=e.getNewCompareTableStatsEnabled();o.applicableCalcs=e.theStatsProcessor[u](d,c)||[],e.applicableCalcs=o.applicableCalcs,e.charts=o.charts,e.widgetMeasureNameMap[i]=r,e.updateWidgetDataVersion(s.widgetAlias)}}});t.default=_},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(t){o(this,e),this.widgetContentApisMap=t}return e.prototype.process=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.checkIfCategoryContextIsSame();return this.queryForCombinedSummariesIfApplicable(e,n).then(function(e){if(e&&!e.hasUnprocessedItems){var n=null!==e.measures;return{isCategoryContextSame:o,canCombineCalculations:n,combinedSummaryResponse:e}}return t.checkIfSummariesCanBeCombined().then(function(t){return{isCategoryContextSame:o,canCombineCalculations:t,combinedSummaryResponse:e}})})},e.prototype.checkIfSummariesCanBeCombined=function(){var e=Object.values(this.widgetContentApisMap);if(2===e.length){var t=e[0].getFeature("WidgetAPI.deprecated").getFeature("vis-summarizer"),n=t&&t.getCombinedSummaryValidator();return n&&n.combineSummariesWith(e[1].getFeature("WidgetAPI.deprecated")),n.isInitialized()&&n.validate().then(function(e){return e})}return Promise.resolve(!1)},e.prototype.queryForCombinedSummariesIfApplicable=function(e,t){if(!e)return Promise.resolve(null);var n=Object.values(this.widgetContentApisMap);if(2===n.length){var o=n[0].getFeature("WidgetAPI.deprecated").getFeature("vis-summarizer"),i=n.map(function(e){return e.getFeature("WidgetAPI.deprecated")}),r=o&&o.createCombinedSummaryValueQuery(i,t);return r?r.execute().then(function(e){var t=e&&e.getSummaryTableJSON();return{measures:t&&t.measures,hasUnprocessedItems:r.hasUnprocessedItems()}}):Promise.resolve(null)}return Promise.resolve(null)},e.prototype.checkIfCategoryContextIsSame=function(){var e=Object.values(this.widgetContentApisMap),t={};e.forEach(function(e){var n=e.getId(),o=e.getFeature("Visualization");if(o){var i=o.getSlots().getMappingInfoList().filter(function(e){return e&&e.slot&&"category"===e.slot.getDefinition().getType()});i=i.map(function(e){return e.dataItem.getId()}),i.sort(),t[n]=i.join(",")}});var n=!1,o=null;return Object.values(t).forEach(function(e){o?e&&o!==e&&(n=!0):o=e}),!n},e}();t.default=i},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.default=void 0;var i=n(7),r=function e(t){o(this,e),this.destroy=function(){t=null},this.getState=function(){return(0,i.getSnapshot)(t)},this.getApplicableCalcs=function(){return t.applicableCalcs.toJSON()},this.getData=function(e,n){return t.getData(e,n)},this.setSpyNewStats=function(e){t.setSpyNewStats(e)},this.setSpyNewCalcs=function(e){t.setSpyNewCalcs(e)},this.getWidgetDataVersions=function(){return t.getWidgetDataVersions()},this.areCalculationsReady=function(){return t.areCalculationsReady()},this.recomputeSummaryInfo=function(e,n){return t.recomputeSummaryInfo({widgetId:e,measureName:n})}};t.default=r},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.default=void 0;var i=n(7),r=function e(t){o(this,e),this.destroy=function(){t=null},this.getState=function(){return(0,i.getSnapshot)(t)},this.toggleShowCompareLine=function(){t.toggleShowCompareLine()},this.isCompareLineEnabled=function(){return t.isCompareLineEnabled()},this.isCompareLineShown=function(){return t.isCompareLineShown()},this.setSyncCompareLine=function(e){t.setCompareLineSynced(e)},this.isCompareLineSynced=function(){return t.isCompareLineSynced()},this.getCrossHairMatchingPoints=function(){return t.getCrossHairMatchingPoints()},this.onMoveCrosshairs=function(e,n){return t.onMoveCrosshairs(t.refChecker,e,{value:n})},this.getChartSummaryModel=function(){return t.getChartSummaryModel("summary")},this.getCompareTableAPI=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"summary",n=t.getChartSummaryModel(e);return n&&n.getAPI()},this.getChartSummaryStats=function(){var e=[];return t.statsModelMap.keys().forEach(function(n){var o=t.statsModelMap.get(n),i={visId:n,measures:[]};o.measures.keys().forEach(function(e){i.measures.push(t.theStatsProcessor.getChartSummaryStats({newCompareTableStatsEnabled:t.getNewCompareTableStatsEnabled(),measureName:e,statsModel:o,getString:function(e){return e}}))}),e.push(i)}),e}};t.default=r},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(7),r=n(70),a=o(r),s=n(25),l=n(190),d=o(l);t.default=i.types.model({show:i.types.optional(i.types.boolean,!1),selections:i.types.array(i.types.frozen()),recommendations:i.types.optional(i.types.array(i.types.frozen()),[]),visIndexToShow:i.types.number}).views(function(e){return{getSelections:function(){return e.selections},getLocalFilters:function(){var t=void 0;if(e.getVisApi()){var n=e.getVisApi().getLocalFilters();t=n&&n.toJSON&&n.toJSON()}return t},getRecommendations:function(){return e.recommendations},getFooterRenderData:function(){return e.renderData},getSelectionByIndex:function(t){if(e.selections&&t>=0&&t0){var o=n[0].getId(),i=t.getCanvas().getContent(o);if(i){var r=i.getFeature("Visualization");return e._getPromptsMap(r.getSavedPrompts())}}return null})}}}).actions(function(e){function t(){i.forEach(function(e){return e.remove()}),i=[]}function n(){e.setShow(e.cardModel.isDriverAnalysis())}function o(t){n(),i.push(t.on("change:dataSlot",function(){return n()}),t.on("change:localFilters",function(){return n()}));var o=e.cardModel.getVisualizations();if(o&&o.length){var r=o[0],a=r.widgetLayout&&r.widgetLayout.id;if(a){var s=e.cardModel.boardModel.dashboardApi.getCanvas().getContent(a);if(s){var l=s.getFeature("Visualization");l.on("change:type",n),i.push({remove:function(){l.off("change:type",n)}})}}}}var i=[];return{afterCreate:function(){e.refChecker=new a.default(e),e._api=new d.default(e)},setCardModel:function(t){e.cardModel=t},setVisApi:function(n){t(),o(n),e.visApi=n},setShow:function(t){e.show=t},setDrivers:function(t){e.drivers=t},setSelections:function(t){e.selections=t},setFooterRenderData:function(t,n){if("com.ibm.vis.rave2comet"===n&&t&&t.results&&t.results.length>0){var o=JSON.parse(JSON.stringify(t));e.renderData=o}},setRecommendations:function(t){e.recommendations=t,e.setVisIndexToShow(0)},setVisIndexToShow:function(t){e.visIndexToShow=t},beforeDestroy:function(){e.refChecker.remove(),t(),e.visApi=null},hookupCustomDataHandler:function(){e.setSelections([]),t(),e.cardModel.getVisualizations().forEach(function(t){t.widgetLayout&&e._hookupCustomDataHandler(t.widgetLayout.id)})},_hookupCustomDataHandler:function(t){return e.cardModel.boardModel.dashboardApi.getCanvasWhenReady().then(function(e){return e.getWidgetWhenReady(t)}).then(function(t){t.getVisApi&&e.setVisApi(t.getVisApi());var n=t.on("renderComplete",function(){e._loadDefaultCustomDataSelections(t)});i.push(n);var o=t.on("widgetFPDDataReady",function(t){e.setDrivers(e.visApi.getPossibleKeyDrivers()),e.setFooterRenderData(t.data,t.visId)});i.push(o)})},_loadDefaultCustomDataSelections:function(t){if(e.cardModel.isDriverAnalysis()&&t.getVisApi){var n=t.getVisApi().getDecoratedCustomData("selected"),o=n.map(function(e){return{key:e.id,type:"customdata",source:{},values:[{payload:e,customType:e.type}]}}),i=[];(0,s.replaceArray)(i,Array.isArray(o)?o:[o]),e.setSelections(i)}else e.setSelections([])}}})},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.default=void 0;var i=n(7),r=function e(t){o(this,e),this.destroy=function(){t=null},this.getState=function(){return(0,i.getSnapshot)(t)},this.getSelections=function(){return t.getSelections()},this.getRecommendations=function(){return t.getRecommendations()},this.getAssociatedPredictData=function(){return t.getFooterRenderData()},this.covertRecommendationToWidgetSpec=function(e){return t.covertRecommendationToWidgetSpec(e)}};t.default=r},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.default=void 0;var i=n(7),r=function e(t){o(this,e),this.destroy=function(){t=null},this.getId=function(){return t.id},this.getType=function(){return t.type},this.isHidden=function(){return t.isHidden},this.getWidgetIds=function(){return t.getWidgets().map(function(e){return e.getId()})},this.getFeature=function(e){return t.getFeature(e)},this.getExploreWidgetApi=function(e){var n=(t.items||[]).find(function(t){return t.id===e});return n?n.getAPI():void 0},this.getState=function(){return(0,i.getSnapshot)(t)}};t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.ExploreContainerLayoutModelExt=t.syncExploreVMStateToCards=void 0;var o=n(7),i=n(11),r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(i),a=n(69),s=function(e){return e&&e.__esModule?e:{default:e}}(a),l=t.syncExploreVMStateToCards=function(e){var t=e.exploreVM,n=t.thumbnails,o=function(t){var n=e.items||[],o=null;return n.forEach(function(e){e.id===t&&(o=e)}),o};e._mobxDisposeEvents.push(r.reaction(function(){return n.current.length},function(){n.current&&n.current.length>0&&n.current.forEach(function(e){var t=e&&o(e);t&&t.setCurrentThumbnailInfo&&t.setCurrentThumbnailInfo(!0,n)})})),e._mobxDisposeEvents.push(r.reaction(function(){return n.done.length},function(){var e=void 0;n.done&&n.done.length>0&&(e=n.done),e&&e.forEach(function(e){var t=o(e);t&&t.setCurrentThumbnailInfo&&t.setIsDoneThumbnail&&(t.setCurrentThumbnailInfo(!1,n),t.setIsDoneThumbnail(!0))})}));var i=function(e,o){var i={canvasTabs:t.canvasTabs,canShowCanvasSidePanel:t.canShowCanvasSidePanel&&t.canShowCanvasSidePanel(),thumbnailsModel:n};!0===o.isDisplayed?i.isDisplayed=!1:o.id===e?i.isDisplayed=!0:i.isDisplayed=!1,o&&o.updateViewState&&o.updateViewState(i)},a=function(t){e.items.forEach(function(e){i(t,e)})};a(t.displayedCard),e._mobxDisposeEvents.push(r.reaction(function(){return e.exploreVM.displayedCard},function(e){a(e)})),e._mobxDisposeEvents.push(r.reaction(function(){return e.exploreVM.canShowCanvasSidePanel()},function(e){var n=o(t.displayedCard);n&&n.updateCanShowCanvasSidePanel&&n.updateCanShowCanvasSidePanel(e)}))};t.ExploreContainerLayoutModelExt=o.types.model({}).named("ExploreContainerLayoutModelExt").props({type:o.types.optional(o.types.string,"exploreContainer")}).volatile(function(){return{exploreVM:null,cardModelUtil:s.default,dashboardApi:null,itemCount:0,_mobxDisposeEvents:[],api:null}}).actions(function(e){function t(t){return t.map(function(t){return e.findModel(t)})}function n(n){var o=e.items;return t(n).map(function(e){return o.indexOf(e)})}function o(t){var o=n(t),i=void 0;if(o.length){var r=Math.max.apply(Math,o)+1,a=e.items;r1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"duplicateCards",r=i(n),a=t.map(function(e){var t=Object.assign({},r);return e.isCompareEnabled&&(t.model=t.model||{},t.model.subType="compare"),{card:e,options:{payload:o,extraLayoutPayload:t}}}),s=e.cardModelUtil.duplicateCards(e,a);return s&&(e.itemCount=e.itemCount+s.length),s},addCometCardForCorrelation:function(t){var n=t.widgetSpec,o=e.dashboardApi.getCanvas().findContent(),i={visId:"com.ibm.vis.rave2comet",localFilters:n.localFilters},r=o.find(function(e){var n=e.getFeature("Visualization");if(n&&n.matches(i)){var o=n.getSlots().getSlot("values").getDataItemList();if(o&&o.length)return t.target===o[0].getMetadataColumn().getId()}});if(r){var a=e.findModel(r.getId());e.exploreVM.setDisplayedToCard(a.getParent().getId()),n.customData&&n.customData.selected&&r.getFeature("WidgetAPI.deprecated").getVisApi().setCustomDataDecoration("selected",n.customData.selected)}else e.addVisCard([{model:n}],"exploreSelectCometRecommendation",{selectAfterAdd:!0})},addCompareCardFromExisting:function(t,n,o){o=i(o);var r={properties:[{id:"itemAxis.labels.layoutMode",value:"stagger"},{id:"widget.legend.position",value:"right"}]};o.model=o.model||{},o.model.subType="compare";var a=e.cardModelUtil.createCardFromExistingCards(e,[t,n],{payload:"addCompareCardFromExisting",extraLayoutPayload:o,extraWidgetPayload:r,widgetIgnoredProps:["thumbnailId"]});return a&&e.itemCount++,a},setExploreVM:function(t){e.exploreVM=t,l(e),e._mobxDisposeEvents.push(r.reaction(function(){return e.items.length},function(t){0===t&&e.exploreVM.setDisplayedToStartingPoints()}))},addFragment:function(t,n,o){return Array.isArray(t.model.widgets)||(t.model.widgets=Object.values(t.model.widgets)),t.model.layout.items&&(t.model.layout=Object.values(t.model.layout.items)),e.boardModel.addFragment(i(t),n,o)},deleteCards:function(t){var n=e.cardModelUtil.deleteCards(e,t);return n&&t&&t.length>0&&(e.itemCount=e.itemCount-t.length),n},deleteVis:function(t){return e.cardModelUtil.deleteVisAndSelectRemainingVis(e,t)},setDashboardApi:function(t){e.dashboardApi=t},getDashboardApi:function(){return e.dashboardApi}}})},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.WidgetLayoutModelExt=void 0;var i=n(7),r=n(194),a=o(r),s=n(73),l=o(s),d=n(196),u=o(d),c=n(197),p=o(c),f=n(15);t.WidgetLayoutModelExt=i.types.model({}).volatile(function(){return{renderId:0,badgesTooltipModel:null,nlt:null,imageCapture:null,badgesFeature:null}}).views(function(e){return{getBadgesTooltipModel:function(){return e.badgesTooltipModel},getImageCaptureModel:function(){return e.imageCapture},getBadgeInfoWhenReady:function(t){return(0,f.fromPromise)(e.badgesFeature?e.badgesFeature.getBadgeDataWhenReady(t):Promise.resolve([]))}}}).actions(function(e){return{afterCreate:function(){e.badgesTooltipModel=a.default.create({isOpen:!1,badgesInfo:{},position:{}}),e.nlt=l.default.create({id:e.id},(0,i.getEnv)(e)),e.imageCapture=u.default.create({id:e.id},(0,i.getEnv)(e));var t=(0,i.getEnv)(e),n=t.dashboardApi;n&&n.getCanvasWhenReady().then(function(t){return t.getWidgetWhenReady(e.id)}).then(function(t){var n=e.boardModel.findWidgetById(e.id);if(n&&e.imageCapture&&e.imageCapture.setModel_HACK(n),t.getFeature){var o=t.getFeature("vis-badges");o&&(o.onBadgeSelect(e.toggleBadgeTooltip),e.setBadgeFeature(o))}})},beforeDestroy:function(){[e.badgesTooltipModel,e.nlt,e.imageCapture].forEach(function(e){e&&(0,i.destroy)(e)})},toggleBadgeTooltip:function(t,n){e.badgesTooltipModel.isTooltipOpen()?e.badgesTooltipModel.closeTooltip():(e.badgesTooltipModel.openTooltip(n),e.badgesTooltipModel.setBadgesInfo(t))},forceRender_HACK:function(){e.renderId++},setStaticWidget:function(t){e.isStaticWidget=t},setBadgeFeature:function(t){e.badgesFeature=t},getAPI:function(){return e.api||(e.api=new p.default(e)),e.api}}}).named("WidgetLayoutModelExt").props({type:i.types.optional(i.types.string,"widget"),isStaticWidget:i.types.optional(i.types.boolean,!1)})},function(e,t,n){"use strict";t.__esModule=!0;var o=n(7);t.default=o.types.model({badgesInfo:o.types.frozen(),isOpen:o.types.boolean,position:o.types.frozen()}).views(function(e){return{getPosition:function(){return e.position},isTooltipOpen:function(){return e.isOpen},getBadgesInfo:function(){return e.badgesInfo}}}).actions(function(e){return{closeTooltip:function(){e.isOpen=!1},openTooltip:function(t){e.isOpen=!0,e.position=t},setBadgesInfo:function(t){e.badgesInfo=t}}})},,function(e,t,n){"use strict";t.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(7);t.default=i.types.model("ImageCaptureModel",{id:i.types.string}).volatile(function(){return{thumbnail:void 0,isMappingIncomplete:!1,isDisabled:!1,error:void 0,warning:void 0,model:void 0,readyPromise:void 0,feature:void 0}}).views(function(e){return{isThumbnailReady:function(){return!!e.thumbnail||e.isMappingIncomplete||e.isDisabled||!!e.warning||!!e.error}}}).actions(function(e){function t(){var t=(0,i.getEnv)(e),n=t.dashboardApi,o=e.id;return n.getCanvasWhenReady().then(function(e){return e.getWidgetWhenReady(o)}).then(function(e){if(e)return e.getFeature("vis-image-capture")})}function n(){return(0,i.getEnv)(e).dashboardApi.getDashboardSvc(".Thumbnail")}return{beforeDestroy:function(){e.feature&&(e.feature.isActivated()&&e.feature.deactivate(),e.feature=void 0),e.setModel_HACK(void 0),e.readyPromise=void 0},setThumbnail:function(t){e.thumbnail=t},setIsMappingIncomplete:function(t){e.isMappingIncomplete=t},setIsDisabled:function(t){e.isDisabled=t},setError:function(t){e.error=t},setWarning:function(t){e.warning=t},setFeature:function(t){e.feature=t},setModel_HACK:function(t){e.model=t,t&&e.activateFeature()},activateFeature:function(){e.readyPromise=t().then(function(t){if(t)return e.setFeature(t),t.activate({captureHandlers:{success:function(t){if(!(0,i.isAlive)(e))return Promise.resolve();var r=void 0,a=void 0,s=void 0;return"object"===(void 0===t?"undefined":o(t))?(r=t.thumbnail,a=!!t.isMappingIncomplete,s=!!t.isDisabled):(r=t,a=!1,s=!1),e.setError(void 0),e.setIsMappingIncomplete(a),e.setIsDisabled(s),e.setThumbnail(r),n().then(function(t){return t.sync(e.model,r)})},error:function(t){return(0,i.isAlive)(e)?(e.setError(t),n().then(function(n){return n.setError(e.id,t)})):Promise.resolve()},warning:function(t){return(0,i.isAlive)(e)?(e.setWarning(t),n().then(function(n){return n.setWarning(e.id,t)})):Promise.resolve()},clear:function(){if((0,i.isAlive)(e)&&e.model){var t={payloadData:{runtimeOnly:!0}};e.model.set({thumbnailId:void 0},t)}},relink:function(){(0,i.isAlive)(e)&&e.model&&e.model.thumbnailId&&e.model.set({thumbnailId:void 0})}}})})}}})},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.default=void 0;var i=n(7),r=function e(t){o(this,e),this.destroy=function(){t=null},this.getId=function(){return t.id},this.getState=function(){return(0,i.getSnapshot)(t)},this.getInsights=function(){return t.nlt.fetchItems()},this.getBadgeInfoWhenReady=function(e){return t.getBadgeInfoWhenReady(e)}};t.default=r},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return e.findGlassCollection("com.ibm.bi.explore.toolbar").then(function(e){return e||[]})}function r(e){var t=e.view;return new Promise(function(e,n){window.require([t],e,n)})}function a(e,t,n){return n(e).then(function(e){if(l(e))return u.default.createElement(e,null);var n=new e(t);return u.default.createElement(p.default,{className:"explore-vis-toolbar__item__container",item:n})})}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;return i(e).then(function(e){return Promise.all(e.map(function(e){return a(e,t,n).then(function(t){return{component:t,data:e}})}))})}function l(e){return"function"==typeof e&&!!e.prototype.isReactComponent}t.__esModule=!0,t.getToolBarItems=void 0;var d=n(0),u=o(d),c=n(216),p=o(c);t.getToolBarItems=s},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(0),l=o(s),d=n(1),u=o(d),c=function(e){function t(){return i(this,t),r(this,e.apply(this,arguments))}return a(t,e),t.prototype.componentDidMount=function(){var e=this.props.item,t=void 0===e?{}:e;t.render&&"function"==typeof t.render&&t.render()},t.prototype.componentWillUnmount=function(){var e=this.props.item,t=void 0===e?{}:e;t.remove&&"function"==typeof t.remove&&t.remove()},t.prototype.render=function(){var e=this;if(this.props.item)return l.default.createElement("div",{className:this.props.className,ref:function(t){return t&&e.onNodeRef(t)}})},t.prototype.onNodeRef=function(e){var t=this.props.item,n=void 0===t?{}:t;n.$el&&n.$el.length&&e.appendChild(n.$el[0])},t}(s.Component);c.propTypes={item:u.default.object,className:u.default.string},t.default=c},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=t.EXPLOREHOSTAPP=".ExploreHost",r=t.EXPLOREHOSTAPP_CONTROLLER=".ExploreHostAppController";t.WidgetHostApp=function(){function e(t){o(this,e),this.services=t.services||{},this._widgetFeatures={},this._idx2={}}return e.prototype.setup=function(){this.services.register(i,{deregisterWidget:this.deregisterWidget.bind(this),registerFeature:this.registerFeature.bind(this),deregisterFeature:this.deregisterFeature.bind(this)}),this.services.register(r,{activateFeature:this.activateFeature.bind(this),getFeature:this.getFeature.bind(this)})},e.prototype.cleanup=function(){this.services.deregister(i),this.services.deregister(r)},e.prototype.deregisterWidget=function(e){var t=this._idx2[e];for(var n in t)t.hasOwnProperty(n)&&delete this._widgetFeatures[t[n]];delete this._idx2[e]},e.prototype.registerFeature=function(e,t,n){var o=this._key(e,t);(!this._widgetFeatures[o]||this._widgetFeatures[o]&&!this._widgetFeatures[o].api)&&(this._idx2[e]=this._idx2[e]||[],-1===this._idx2[e].indexOf(o)&&this._idx2[e].push(o),this._widgetFeatures[o]=this._widgetFeatures[o]||{},this._widgetFeatures[o].api=n),this._widgetFeatures[o].promise&&(this._widgetFeatures[o].resolve(!0),this._widgetFeatures[o].resolve=null,this._widgetFeatures[o].promise=null)},e.prototype.deregisterFeature=function(e,t){var n=this._key(e,t);if(this._widgetFeatures[n]){delete this._widgetFeatures[n];var o=this._idx2[e],i=o.indexOf(n);-1!==i&&o.splice(i),0===o.length&&delete this._idx2[e]}},e.prototype.activateFeature=function(e,t,n){var o=this,i=this._key(e,t),r=function(){var e=o._widgetFeatures[i];return e&&e.api&&e.api.activate(n)};return this._hasFeature(i)?Promise.resolve(r()):this._onFeatureAvailable(i,r)},e.prototype.getFeature=function(e,t){var n=this,o=this._key(e,t),i=function(){return n._widgetFeatures[o].api};return this._hasFeature(o)?Promise.resolve(i()):this._onFeatureAvailable(o,i)},e.prototype._onFeatureAvailable=function(e,t){var n=new Promise(function(t){var n={api:null,resolve:t};this._widgetFeatures[e]=n}.bind(this)).then(t);return this._widgetFeatures[e].promise=n,n},e.prototype._key=function(e,t){return e+t},e.prototype._hasFeature=function(e){return this._widgetFeatures[e]},e}()},function(e,t){e.exports=w},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this.dashboardApi.getFeature("SmartsRecommender.deprecated"),i=this.dashboardApi.getFeature("VisDefinitions");return o.recommendRelatedVisualizationsAsWidgetSpecs(e,t,!!n.includeBestVisForTargetFields).then(function(e){return e.map(function(e){return{widgets:[{spec:e.spec,visDefinition:i.getById(e.spec.visId)}],name:e.name}})})},e.prototype.getAlternativeVisualizations=function(e){var t=this;if(!this._hasDataItems(e))return Promise.resolve([]);var n=this._getSmartVisRecommender(e);return n&&n.recommendAlternateVisualizationsAsWidgetSpecs?n.recommendAlternateVisualizationsAsWidgetSpecs().then(function(n){var o=t.dashboardApi.getFeature("VisDefinitions");return n.filter(function(t){return t.spec.visId!==e.getVisId()}).map(function(e){return{widgets:[{spec:e.spec,visDefinition:o.getById(e.spec.visId)}],name:e.name}})}):Promise.resolve([])},e.prototype.getRelatedVisualizations=function(e){var t=this;if(!this._hasDataItems(e))return Promise.resolve([]);var n=this._getSmartVisRecommender(e);return n&&n.recommendRelatedVisualizationsAsWidgetSpecs?n.recommendRelatedVisualizationsAsWidgetSpecs().then(function(e){var n=t.dashboardApi.getFeature("VisDefinitions");return e.map(function(e){return{widgets:[{spec:e.spec,visDefinition:n.getById(e.spec.visId)}],name:e.name}})}):Promise.resolve([])},e.prototype._getSmartVisRecommender=function(e){return this._getWidgetContent(e).getFeature("Visualization.SmartsRecommender.deprecated")},e.prototype._hasDataItems=function(e){if(e){var t=this._getWidgetContent(e).getFeature("Visualization");if(t){var n=t.getSlots(),o=n&&n.getDataItemList();return Array.isArray(o)&&o.length>0}return!1}return!1},e.prototype._getWidgetContent=function(e){return this.dashboardApi.getCanvas().getContent(e.getId())},e.prototype.fetchRecommendations=function(e,t){var n={alternative:this.getAlternativeVisualizations.bind(this),related:this.getRelatedVisualizations.bind(this)}[t];return n?n(e):Promise.resolve()},e.prototype.fetchPredictRecommendations=function(e,t){var n=this;return this.getModule(e).then(function(e){return n.smartsPredictRecommenderService.fetchPredictRecommendations({moduleAPI:e,targetId:t})})},e}();t.default=g},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=n(221),r=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(8),s=function(){function e(t){o(this,e),this.dashboardApi=t.dashboardApi,this.logger=t.logger||{debug:function(){},error:function(){}},this.recommenderService=t.smartsInterestingFieldRecommenderService||new r.default({ajaxSvc:this.dashboardApi.getGlassCoreSvc(".Ajax"),logger:this.logger,requestName:"SmartsInterestingFieldRecommender"})}return e.prototype._addCommonRequestParameters=function(e,t){var n=t.module,o={moduleId:n.getAssetId(),numResults:t.numResults||20,sourceType:n.getSourceType(),shapedModule:!!n.getShapingId()},i=n.getTemporarySessionModuleJSON();return i&&(o.tempModule=JSON.stringify(i)),n.saveTemporaryModule().then(function(t){return n.getAssetId()!==t&&(o.tempModuleId=t),a.extend({},e,o)})},e.prototype.recommendInterestingFields=function(e){var t=this,n={};return this._addCommonRequestParameters(n,e).then(function(e){return t.recommenderService.recommendInterestingFields(e)}).then(function(n){return t._transformRecommendationListResponse(n,e)})},e.prototype._transformRecommendationListResponse=function(e,t){var n=this;return Promise.all(e.map(function(e){return n._transformRecommendationResponse(e,t)}))},e.prototype._transformRecommendationResponse=function(e,t){var n=t.module.getMetadataColumn(e.fieldIDForExpression);return{name:n.getLabel(),id:n.getId()}},e}();t.default=s},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(46),l=o(s),d=n(2),u=o(d),c={"Smarts-IFR-49":{title:u.default.get("error_something_unexpected"),description:u.default.get("startingPoints_unsupported_source_type_toast")},"Smarts-IFR-21":{title:u.default.get("error_something_unexpected"),description:u.default.get("startingPoints_unenriched_package_toast")},"Smarts-IFR-45":{title:u.default.get("startingPoints_error_title_relationshipDiagram_missingSmartsModule"),description:u.default.get("startingPoints_error_instructions_missingSmartsModule")},"Smarts-IFR-48":{title:u.default.get("startingPoints_error_title_relationshipDiagram_missingSmartsModule"),description:u.default.get("startingPoints_error_instructions_missingSmartsModule")}},p=function(e){function t(n){return i(this,t),r(this,e.call(this,n))}return a(t,e),t.prototype.recommendInterestingFields=function(e){return this.logger.debug("recommendInterestingFields"),this._executeRequest(e,"v1/smarts/insights/interesting-fields").catch(this._handleError.bind(this)).then(this._processResponse.bind(this))},t.prototype.getErrorCodeMappings=function(){return c},t}(l.default);t.default=p},function(e,t,n){"use strict";function o(e){this.name="SmartsRecommenderError",this.message=e.message||"Error executing "+e.requestName+" - "+(e.httpCode||e.smartsCode)+": "+e.responseMessage,this.requestName=e.requestName,this.httpCode=e.httpCode,this.smartsCode=e.smartsCode,this.responseMessage=e.responseMessage}t.__esModule=!0,o.prototype=Object.create(Error.prototype),o.prototype.setUserStrings=function(e,t,n){this.userTitle=e,this.userMessage=t,this.suggestions=n},o.prototype.getUserStrings=function(){return this.userTitle||this.userMessage||this.suggestions?{title:this.userTitle,message:this.userMessage,suggestions:this.suggestions}:null},t.default=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(16),l=o(s),d=n(46),u=o(d),c=n(48),p=o(c),f=n(224),h=o(f),m=n(225),g=o(m),v=n(226),_=o(v),y=n(24),b=function(e){function t(n){i(this,t);var o=r(this,e.call(this,n));return o._dataCache=null,o}return a(t,e),t.prototype.getRelationshipStrength=function(e,t){t.targetModel=t.model.getTargetModel(),this.logger.debug("getRelationshipStrength");var n={groupingNode:!0===e.showConcepts,lowestConcept:!0};return this._setTimeout(n,t),this.fetchData(e,n,t).catch(this._handleError.bind(this))},t.prototype._setTimeout=function(e,t){t.model&&t.model.allowLongRunningRequest&&!t.model.allowLongRunningRequest()&&(e.timeout=l.default.max_request_waiting_time)},t.prototype._handleError=function(t){if(t){if(t.code===c.ABANDONED_RELATIONSHIP_REQUEST){var n=_.default.getErrorObject(c.ABANDONED_RELATIONSHIP_REQUEST);throw n.abandonedRequest=t.abandonedRequest,n}var o=t.data&&t.data.errors&&t.data.errors[0];if(o){var i=o.code;if(i){var r=_.default.getErrorObject(i);if(r)throw r}}}e.prototype._handleError.call(this,t)},t.prototype.fetchData=function(e,t,n){if(this._setDiagramData(n),l.default.use_cached_data){var o=null,i=this._getCachedRawData(e,n),r=n.model.getIsFilterStrengthFeatureEnabled();if(i)if(r){var a=n&&n.transformOptions;n.rawData=i,this._ignoreCacheData(n.rawData,a,e)||(o=i)}else o=i;if(o)return r&&(o=(0,y.applyTransforms)(n)),Promise.resolve(o)}return this._sendRequest(e,t,n)},t.prototype._sendRequest=function(e,t,n){return this._getRequestHandler(n)._sendRequest(e,t,n,this)},t.prototype._getRequestHandler=function(e){if(e&&e.transformOptions){var t=e.transformOptions;return t.lastAddedFields||t.scopedFields?h.default:t.lastShowRelationshipsField?g.default:p.default}return p.default},t.prototype._ignoreCacheData=function(e,t,n){if(t.lastAddedFields||t.scopedFields||t.lastShowRelationshipsField){if(!e)return!0;if(t.lastAddedFields){var o=t.lastAddedFields,i=(0,y.findNodesFromCache)(o,e);return i.unfoundNodeIds.length>0&&(t.unfoundNodes=i.unfoundNodeIds,!0)}if(t.scopedFields)return!0;if(t.lastShowRelationshipsField){var r=t.lastShowRelationshipsField,a=r.from,s=r.to,l=(0,y.findDirectLink)(a,s,e)||this._findDirectLinkInRawDataOfTwoNodes(a,s,n.sourceModuleId);return!l||(r.relationship={toNode:l.nodeTwo,link:l.link},!1)}}return!1},t.prototype._findDirectLinkInRawDataOfTwoNodes=function(e,t,n){var o=this,i=null;return this._dataCache&&this._dataCache.length&&[e,t].find(function(r){var a=o._dataCache.find(function(e){return e.sourceModuleId===n&&e.targetId===r}),s=a&&a.rawData,l=s&&(0,y.findDirectLink)(e,t,s);return!!l&&(i=l,!0)}),i},t.prototype._setDiagramData=function(e){e&&e.transformOptions&&this._needDiagramData(e.transformOptions)&&(e.diagramData=e.targetModel&&e.targetModel.getDiagramData())},t.prototype._getCachedRawData=function(e,t){var n=this,o=e.sourceModuleId,i=e.targetFieldIDForExpression,r=e.maxInfluencerFields;if(this._dataCache&&this._dataCache.length>0){var a=this._dataCache.find(function(e){return e.targetId===i&&e.sourceModuleId===o&&(!!n._isAddFieldOrScopeFeatureEnabled(t.model)||e.maxInfluencerFields===r)});return a&&a.rawData}return null},t.prototype.getDataCache=function(){return this._dataCache},t.prototype._needDiagramData=function(e){if(e.deletedFields||e.lastAddedFields||e.lastShowRelationshipsField)return!0},t.prototype._isAddFieldOrScopeFeatureEnabled=function(e){return!!e&&(e.isAddFieldFeatureEnabled()||e.isEditScopeFeatureEnabled())},t.prototype._addRawDataToCache=function(e,t,n){if(l.default.use_cached_data&&(null==this._dataCache&&this.initDataCache(),this._formatRelationshipStrengthFormat(t),e.sourceModuleId&&e.targetFieldIDForExpression)){this.removeDatedEntriesFromCache(e.sourceModuleId,e.targetFieldIDForExpression),this._removeOldestEntryWhenMaxReaches(n);var o={sourceModuleId:e.sourceModuleId,dataSourceId:n.dataSourceId,targetId:e.targetFieldIDForExpression,rawData:t};this._isAddFieldOrScopeFeatureEnabled(n.model)||(o.maxInfluencerFields=e.maxInfluencerFields),this._dataCache.push(o)}},t.prototype._formatRelationshipStrengthFormat=function(e){(e&&e.relationshipStrength&&e.relationshipStrength.results&&e.relationshipStrength.results.length?e.relationshipStrength.results[0].relationships:[]).forEach(function(e){(0,y.formatLinkStrength)(e)})},t.prototype.initDataCache=function(){this._dataCache=[]},t.prototype.removeEntriesFromCache=function(e){if(this._dataCache&&this._dataCache.length>0)for(var t=this._dataCache.length;t--;)this._dataCache[t].sourceModuleId===e&&this._dataCache.splice(t,1)},t.prototype.removeDatedEntriesFromCache=function(e,t){if(this._dataCache&&this._dataCache.length>0)for(var n=this._dataCache.length,o=void 0;n--;)o=this._dataCache[n],o.sourceModuleId===e&&o.targetId===t&&this._dataCache.splice(n,1)},t.prototype._removeOldestEntryWhenMaxReaches=function(e){if(this._dataCache&&this._dataCache.length===l.default.max_cached_data_pool_length){var t=this._dataCache.shift();e.model.destroyTargetModel(t.dataSourceId,t.targetId)}},t.prototype._handlePredictStatus=function(e){var t=e.relationshipStrength&&e.relationshipStrength.predictStatus?e.relationshipStrength.predictStatus:null;t&&(t.errors&&t.errors.length&&this.logger.error("Predict error:"+JSON.stringify(t.errors)),t.warnings&&t.warnings.length&&this.logger.error("Predict warning:"+JSON.stringify(t.warnings)))},t}(u.default);t.default=b},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(48),l=o(s),d=n(24),u=n(2),c=o(u),p=function(e){function t(){return i(this,t),r(this,e.apply(this,arguments))}return a(t,e),t._addQueryParams=function(t,n){return e._addQueryParams.call(this,t,n).then(function(){var e=[],o=n.transformOptions.lastAddedFields,i=n.transformOptions.scopedFields;if(o){var r=n.rawData;r&&(e=(0,d.getAllFieldNodesFromDiagramCache)(r,!0)||[],o.forEach(function(t){-1===e.indexOf(t)&&e.push(t)}))}else i&&(e=i);t.exploreAnalysisScope=JSON.stringify({inScopeTables:n.targetModel.buildScopedFields(e)})})},t._callback=function(e,t){var n=t.transformOptions.lastAddedFields;if(n){var o=(0,d.addFields)(t.diagramData,e,{addedFields:n,targetId:t.model.getCurrentTargetId(),showPrimaryRelationshipView:!0});o&&o.unfoundNodeIds.length&&t.targetModel.setActionInfoStatus(c.default.get("startingPoints_no_direct_relationship",{columndIDAndLabel:JSON.stringify(o.unfoundNodeIds)}))}},t}(l.default);t.default=p},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=n(48),s=function(e){return e&&e.__esModule?e:{default:e}}(a),l=n(24),d=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return r(t,e),t._sendRequest=function(t,n,o,i){var r=o.transformOptions.lastShowRelationshipsField;return r&&(t.targetFieldIDForExpression=r.from),e._sendRequest.call(this,t,n,o,i)},t._callback=function(e,t){var n=t.transformOptions.lastShowRelationshipsField;if(n){var o=(0,l.findDirectLink)(n.from,n.to,e);o&&(n.relationship={toNode:o.nodeTwo,link:(0,l.formatLinkStrength)(o.link)})}},t._handleResponse=function(e,t,n,o){var i=t.data;if(o._isSucessfulResponse(i))return o._handlePredictStatus(i),this._callback(i,n),i=(0,l.applyTransforms)(n),Promise.resolve(i);throw o._createError({smartsCode:i.status.statusCode,responseMessage:i.status.message})},t}(s.default);t.default=d},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=n(47),a=o(r),s=n(227),l=o(s),d=[{REQUEST_ERROR_CODE:a.default.NOT_JOINED_ERROR,EXPLORE_ERROR_CODE:"REL_002"},{REQUEST_ERROR_CODE:"CQE-801",EXPLORE_ERROR_CODE:"REL_001"},{REQUEST_ERROR_CODE:"ABANDONED_RELATIONSHIP_REQUEST",EXPLORE_ERROR_CODE:"REL_003"}],u=function(){function e(){i(this,e)}return e.getErrorObject=function(e){var t=d.find(function(t){return t.REQUEST_ERROR_CODE===e});return t?new l.default(t.EXPLORE_ERROR_CODE):null},e}();t.default=u},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i),a={ERROR:"Error",WARN:"Warning",INFO:"Info",DEBUG:"Debug"},s=a.ERROR,l=a.WARN,d=[{code:"REL_001",severity:s,title:"relationshipGraph_ambiguous_connection_errorTitle",message:"relationshipGraph_ambiguous_connection_errorMessage",suggestions:null},{code:"REL_002",severity:s,title:"relationshipGraph_not_joined_errorTitle",message:"relationshipGraph_not_joined_errorMessage",suggestions:null},{code:"REL_003",severity:l,title:"relationshipGraph_abandoned_errorTitle",message:"relationshipGraph_abandoned_errorMessage",suggestions:null}],u=function(){function e(t){o(this,e);var n=d.find(function(e){return e.code===t});n&&(this.errObj={code:"CA_EXPLORE_"+n.code,severity:n.severity,title:r.default.get(n.title),message:r.default.get(n.message),suggestions:n.suggestions?r.default.get(n.suggestions):n.suggestions})}return e.prototype.getUserStrings=function(){return this.errObj||{}},e}();t.default=u},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=n(46),s=function(e){return e&&e.__esModule?e:{default:e}}(a),l=function(e){function t(n){return o(this,t),i(this,e.call(this,n))}return r(t,e),t.prototype.fetchPredictRecommendations=function(e){var t=this;return this._getRequestParameters(e).then(function(e){return t._executeRequest(e,"v1/predict/recommendations")}).then(this._processPredictRecommendationsData.bind(this))},t.prototype._isSucessful=function(e){return"SUCCESS"===e.predictStatus.state},t.prototype._processPredictRecommendationsData=function(e){var t=e.data;return this._isSucessful(t)?t.results.recommendedFields.fields:(this.logger.debug(e),[])},t.prototype._getRequestParameters=function(e){var t=e.moduleAPI,n=t.getTemporarySessionModuleJSON(),o={targetFieldIDForExpression:e.targetId,moduleId:t.getAssetId(),shapedModule:!!t.getShapingId(),tuningParams:{allowCategoryTarget:!0,noCorrelationLimit:!0}};return n&&(o.tempModule=JSON.stringify(n)),t.saveTemporaryModule().then(function(e){return t.getAssetId()!==e&&(o.tempModuleId=e),o})},t}(s.default);t.default=l},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=n(14),r=function(e){return e&&e.__esModule?e:{default:e}}(i);n(230);var a="com.ibm.bi.explore.thumbnailBtn",s=function(){function e(t){var n=t.glassContext,i=t.pluginId,r=void 0===i?a:i;o(this,e),this.glassContext=n,this.pluginId=r}return e.prototype.findGlassPlugin=function(){return this.glassContext.appController.findPlugin(this.pluginId)},e.prototype.findNotificationContainer=function(){var e=this.findGlassPlugin();if(e){var t=e.$el;if(t)return t}},e.prototype.makeBadge=function(){return(0,r.default)('
')},e.prototype.activate=function(){var e=this.findNotificationContainer();if(e){0===e.find(".card-notification").length&&e.append(this.makeBadge())}},e.prototype.deactivate=function(){var e=this.findNotificationContainer();e&&e.find(".card-notification").remove()},e}();t.default=s},function(e,t,n){var o=n(231);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,".explore-card-list {\n position: relative;\n}\n\n.explore-card-list .card-notification {\n background: #00aa5e;\n position: absolute;\n border-radius: 50%;\n top: 11px;\n right: 11px;\n width: 10px;\n height: 10px;\n border-style: solid;\n border-color: #00aa5e;\n border-width: thick;\n}\n\n",""])},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=n(233),s=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return r(t,e),t.prototype.addContentToCanvas=function(t){var n=this,o=this.view.exploreContainerLayoutModel.getSelectedWidgets()[0]?this.view.exploreContainerLayoutModel.getSelectedWidgets()[0].id:null,i=this.view.boardController,r=this.view.getDashboardApi(),a=r.getCanvas(),s=a.getWidget(o);return i.getWidgetSpecFromDragObject(t).then(function(i){if(s&&"placeholder"===s.getType()){n.view.boardModel.layout.getSelectedChildLayouts()[0].getParent().replaceWidgetInCard(i,o,"cardCreate")}else if(n.view.exploreContainerLayoutModel.exploreVM.isStartingPointsDisplayed()){var r=n.view.exploreContainerLayoutModel.exploreVM.layoutModel.addVisCard([i],"startingPointsCreate");n.view.exploreContainerLayoutModel.exploreVM.setDisplayedToCard(r)}else e.prototype.addContentToCanvas.call(n,t)})},t}(a);t.default=s},function(e,t){e.exports=x},function(e,t,n){"use strict";t.__esModule=!0,t.FieldsModel=void 0;var o=n(7),i=n(25),r=n(83),a=n(15),s=o.types.model({focusFieldId:function(e){return o.types.union(e,o.types.undefined)}(o.types.string),recentFields:o.types.optional(o.types.array(o.types.string),[])}).volatile(function(){return{all:null,interesting:null,originalInteresting:null}}).views(function(e){return{getAll:function(){if(e.all.state!==a.FULFILLED)throw new Error("Cannot get all fields");return e.all.value},getInteresting:function(){if(e.interesting.state!==a.FULFILLED)throw new Error("Cannot get interesting fields");return e.interesting.value},_getField:function(t){return e.getAll().find(function(e){return e.id===t})},getRecentFields:function(){return e.recentFields.map(function(t){return e._getField(t)})}}}).actions(function(e){return{setFocusField:function(t){e.focusFieldId=t},setAll:function(t){e.all=t},setInteresting:function(t){e.interesting=t},setOriginalInteresting:function(t){e.originalInteresting=t},addRecentField:function(t){var n=e.recentFields.indexOf(t);return~n&&e.recentFields.splice(n,1),e.recentFields.unshift(t),e.recentFields.length>5&&e.recentFields.splice(5),!0}}}),l=o.types.map(s);t.FieldsModel=o.types.model("FieldsModel",{clearInput:o.types.optional(o.types.boolean,!1),fields:o.types.maybeNull(l,o.types.undefined)}).volatile(function(){return{_mobxDisposeEvents:[]}}).extend(function(e){function t(){return(0,o.getEnv)(e).exploreVM.activeDataSourceId}function n(){e.setFocusFieldIndex(e.isNewStartingPointsFeatureEnabled()?null:0)}return{views:{isNewStartingPointsFeatureEnabled:function(){return!(0,o.getEnv)(e).isFeatureEnabled("newStartingPoints","false")},_getFocusFieldId:function(){var t=e.getFields();return t&&t.focusFieldId?t.focusFieldId:e.isNewStartingPointsFeatureEnabled()||t.interesting.state!==a.FULFILLED?null:t.getInteresting()[0]},_getField:function(t){return e.getFields()._getField(t)},getFocusFieldIndex:function(){var t=e._getFocusFieldId();return t?e.getFieldIndex(t):-1},getFocusField:function(){var t=e._getFocusFieldId();return t&&e._getField(t)},getFields:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t();if(!i)return{};var l=e.fields.get(i);if(!l){var d=(0,r.fetchFieldPromises)((0,o.getEnv)(e).exploreVM,i),u=d.all,c=d.interesting;l=s.create({}),l.setAll((0,a.fromPromise)(u)),l.setInteresting((0,a.fromPromise)(c)),l.setOriginalInteresting((0,a.fromPromise)(c)),e.isNewStartingPointsFeatureEnabled()||c.then(n),e._setFields(i,l)}return l},isSetFocusFieldFeatureEnabled:function(){return!(0,o.getEnv)(e).isFeatureEnabled("setFocusField","false")},isValidField:function(t){return!!e._getField(t)},canSetFocusField:function(t){return!!e.isSetFocusFieldFeatureEnabled()&&(!!e.isValidField(t)&&t!==e._getFocusFieldId())},getFieldIndex:function(t){return e.getFields().getInteresting().map(function(e){return e.id}).indexOf(t)},hasFetchedFields:function(){return e.fields.has(t())}},actions:{afterCreate:function(){e.fields||(e.fields=l.create({}))},beforeDestroy:function(){e._mobxDisposeEvents.forEach(function(e){return e()})},setFocusFieldIndex:function(t){var n=e.getFields();if(n.interesting.state===a.FULFILLED){var o=n.getInteresting()[t];o&&n.setFocusField(o.id)}},setFocusField:function(t){var n=e.getFields();return!!e.canSetFocusField(t)&&(n.setFocusField(t),n.addRecentField(t),!0)},setInterestingFields:function(t){(0,i.replaceArray)(e.getFields().getInteresting(),t),t.length>0&&e.setFocusFieldIndex(0)},setAllFields:function(t){(0,i.replaceArray)(e.getFields().getAll(),t)},_setFields:function(t,n){e.fields.set(t,n)},addToAllFields:function(t){e.getFields().getAll().push(t)},deleteField:function(t){var o=e.getFields(),r=o.getAll();(0,i.deleteFromArray)(r,function(e){return e.id===t}),(0,i.deleteFromArray)(o.recentFields,function(e){return e===t});var a=e.getFocusFieldIndex(),s=o.getInteresting(),l=(0,i.deleteFromArray)(s,function(e){return e.id===t});~l&&l===a&&n()},addField:function(t){var n=e.getFields(),o=n.getInteresting();if(o.findIndex(function(e){return e.id===t})>-1)return t!==e._getFocusFieldId()&&e.setFocusField(t),!0;var i=e._getField(t);return!!i&&(o.unshift({name:i.name,id:t}),e.setFocusField(t),!0)},setClearInput:function(t){e.clearInput=t},resetData:function(){e.clearInput=!0},clearFields:function(){e.fields.delete(t())}}}})},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return e.startsWith(t+".")}function r(e,t){return e+"."+t}t.__esModule=!0;var a=n(7),s=n(11),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(s),d=n(8),u=o(d),c=n(236),p=o(c),f=n(50),h=o(f),m=n(16),g=o(m),v=n(237),_=o(v),y=n(34),b=n(2),w=o(b),x=n(37),C=o(x),S=n(15);t.default=a.types.model("RelationshipVisViewModel",{tooltip:p.default,targetIds:a.types.optional(a.types.array(a.types.frozen()),[]),dataSourceId:a.types.maybeNull(a.types.string),selectedFields:a.types.optional(a.types.array(a.types.frozen()),[]),contextMenuField:a.types.optional(a.types.frozen())}).volatile(function(){return{isFilterStrengthFeatureEnabled:!1,targetInfo:[],messagePayload:null,nodesLimit:10,showConcepts:g.default.default_show_concepts,visLoader:null,widget:null,conceptsViewEnabled:!1,datasourcesStatus:{},contextMenuElement:null,targetModels:{},infoTooltipModel:null,filterCount:null,maxRequestsReached:!1,exploreViewActivated:!0,exploreViewId:null,logger:null,data:null}}).views(function(e){return{getCurrentTargetId:function(){return e.targetIds&&e.targetIds.length?e.targetIds[0]:null},getTargetIds:function(){return e.targetIds},isConceptsViewEnabled:function(){return e.conceptsViewEnabled},isDatasourceErrorHandledOnce:function(t){return e.datasourcesStatus[t]},whenRelationshipDataReady:function(){var t=e.getTargetModel(),n=t&&t.data;return n||Promise.resolve(null)},getTargetModel:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.targetId||e.getCurrentTargetId();return n?e.targetModels[r(t.dataSourceId||e.dataSourceId,n)]:null},getIsFilterStrengthFeatureEnabled:function(){return!0},isNewStartingPointsFeatureEnabled:function(){return!(0,a.getEnv)(e).isFeatureEnabled("newStartingPoints","false")},isFilterStartingPointsEnabled:function(){var t=(0,a.getEnv)(e);return t&&t.isFeatureEnabled&&t.isFeatureEnabled("filterStartingPoints")},isRemoveFieldFeatureEnabled:function(){return(0,a.getEnv)(e).isFeatureEnabled("addRemoveField")},isAddFieldFeatureEnabled:function(){return(0,a.getEnv)(e).isFeatureEnabled("addRemoveField")},isEditScopeFeatureEnabled:function(){return!(0,a.getEnv)(e).isFeatureEnabled("editScope","false")},isShowRelationshipsFeatureEnabled:function(){return(0,a.getEnv)(e).isFeatureEnabled("showRelationships")},isTimeoutFeatureEnabled:function(){return(0,a.getEnv)(e).isFeatureEnabled("relationshipsRequestTimeout")},allowLongRunningRequest:function(){return!(0,a.getEnv)(e).isFeatureEnabled("allowLongRunningRelationshipRequest",!1)},limitConcurrentRequests:function(){return!(0,a.getEnv)(e).isFeatureEnabled("limitConcurrentRequests",!1)},isOverrideListFeatureEnabled:function(){return(0,a.getEnv)(e).isFeatureEnabled("relationshipDiagramOverrideList")},getInfoTooltipModel:function(){return e.infoTooltipModel},getFilterCount:function(){return e.filterCount},isTargetHasNonRejectedRelationshipData:function(t){var n=e.getTargetModel({targetId:t});return!(!n||!n.data||n.data.state===S.REJECTED)},getRunningRequestsTargetIds:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.dataSourceId;return Object.keys(e.targetModels).filter(function(e){return i(e,t)}).filter(function(t){return e.targetModels[t].data&&e.targetModels[t].data.state===S.PENDING}).map(function(t){return e.targetModels[t].id})},getNumOfRunningRequests:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.dataSourceId,n=e.getRunningRequestsTargetIds(t);return n?n.length:0},canFetchData:function(t,n){if(!e.limitConcurrentRequests())return{canFetchData:!0};if("changeTarget"===n){if(!(e.getNumOfRunningRequests()0){var t=r(e.dataSourceId,e.targetIds[0]);!e.targetModels[t]&&e.getIsFilterStrengthFeatureEnabled()&&(e.targetModels[t]=h.default.create(void 0,{exploreVM:(0,a.getEnv)(e).exploreVM,relationshipVM:e,id:e.targetIds[0],label:e.targetInfo[0].label}))}e.getIsFilterStrengthFeatureEnabled()?e.fetchData({setTarget:!0,transformOptions:{filterStrength:null}}):e.fetchData()})),t.push(l.reaction(function(){return e.dataSourceId},function(t){t&&(e.setDatasourceHandledStatus(t,!1),e.isFilterStartingPointsEnabled()&&e._fetchFilterCount()),e.getIsFilterStrengthFeatureEnabled()||e.reset()})),t.push(l.reaction(function(){return e.nodesLimit},function(){e.fetchData()})),t.push(l.reaction(function(){return e.showConcepts},function(){e.fetchData()})),t.push(l.reaction(function(){var t=e.getTargetModel();return{hasWidget:!!e.widget,targetModel:t,state:t&&t.data?t.data.state:null}},function(){var t=e.getTargetModel();if(e.widget&&e.widget.setData){(t&&t.data&&t.data.state)===S.FULFILLED&&(e.setContextMenu({element:null,field:null}),e.widget.setData(t.data.value))}})),t.push(l.autorun(function(){(0,a.getEnv)(e).dashboardApi.on("pagecontext:filterContextUpdated",function(){e._fetchFilterCount()})}))},beforeDestroy:function(){t.forEach(function(e){return e()}),e.visLoader&&e.visLoader.unload(),e.infoTooltipModel&&(0,a.destroy)(e.infoTooltipModel);var n=u.default.values(e.targetModels);n.length&&(n.forEach(function(e){return(0,a.destroy)(e)}),e.targetModels={})},destroyTargetModel:function(t,n){var o=r(t,n),i=e.targetModels[o];i&&((0,a.destroy)(i),delete e.targetModels[o])},setFilterCount:function(t){e.filterCount=t},_fetchFilterCount:function(){var t={scope:"starting points",origin:"filter",sourceId:e.dataSourceId,_strictMatch:!0},n=(0,a.getEnv)(e).dashboardApi.getFeature("GlobalFilters").getFilterList(t).length;e.setFilterCount(n)},setWidget:function(t){e.widget=t},setElement:function(t){return e.visLoader.load(t).then(function(t){var n=t.setData;return e.setWidget({setData:n}),t})},setTargetIds:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[{label:t[0]}];e.targetIds=t,e.targetInfo=n},resetTargetModels:function(){Object.keys(e.targetModels).filter(function(t){return i(t,e.dataSourceId)}).forEach(function(t){return e.targetModels[t].reset()})},setDataSourceId:function(t){e.dataSourceId=t},setSmartsRecommenderWrapper:function(t){e.smartsRecommenderWrapper=t},setShowConcepts:function(t){e.showConcepts=t},setVisLoader:function(t){e.visLoader=t},setNodesLimit:function(t){e.nodesLimit=t},setIsFilterStrengthFeatureEnabled:function(t){e.isFilterStrengthFeatureEnabled=t},setDatasourceHandledStatus:function(t,n){e.datasourcesStatus[t]=n},setExploreViewActivated:function(t){e.exploreViewActivated=t},setExploreViewId:function(t){e.exploreViewId=t},setGlassContext:function(t){e.glassContext=t},fetchData:function(t){if(e.targetIds&&e.targetIds.length){if(1===e.targetIds.length){var n=void 0;n=e.getIsFilterStrengthFeatureEnabled()?g.default.max_nodes_to_fetch:e.nodesLimit,e._sendRequest(n,t)}}else e.logger.warn("CA_EXPLORE_TARGET_ID_NOT_SET")},_sendRequest:function(t,n){var o=e.getTargetModel(),i=e._isFetchingScopedData(n);if(o&&(i||!o.data||o.data.state!==S.PENDING)){i||(n=o.modifyFetchDataContextIfNeeded(n));var r=new Promise(function(t,n){e.cancelRequestDelegator=n}),a={dataSourceId:e.dataSourceId,targetId:e.getCurrentTargetId(),maxInfluencerFields:t,showConcepts:e.showConcepts,context:{relationshipVM:e,transformOptions:n&&n.transformOptions||{}}};o.resetRequestTimer(),o.startRequestTimer(),o.data&&o.data.state===S.PENDING&&o.abandonRequest();var s=e.smartsRecommenderWrapper.getRelationshipStrength(a,null,r);o.setData((0,S.fromPromise)(s))}},_isFetchingScopedData:function(e){return!!(e&&e.transformOptions&&e.transformOptions.scopedFields)},deleteFields:function(t){e.getTargetModel().deleteFields(t.map(function(e){return e.itemId})),e.setSelectedFields([])},canDeleteFields:function(t){if(!e.isRemoveFieldFeatureEnabled())return!1;var n=t.map(function(e){return e.itemId});return 0===u.default.intersection(e.targetIds||[],n).length},cleanup:function(){e.widget&&e.widget.setData&&(e.widget.setData(null),e.setWidget(null))},reset:function(){e.setNodesLimit(10),e.setShowConcepts(g.default.default_show_concepts),e.getIsFilterStrengthFeatureEnabled()&&e.resetTargetModels()},setSelectedFields:function(t){e.selectedFields=t.slice()},setContextMenu:function(t){var n=t.element,o=t.field;e.contextMenuElement=n,e.contextMenuField=o},toggleInfoTooltip:function(t){e.infoTooltipModel.isTooltipOpen()?e.infoTooltipModel.closeTooltip():e.infoTooltipModel.openTooltip(t)},canShowRelationships:function(){return e.isShowRelationshipsFeatureEnabled()}}})},function(e,t,n){"use strict";t.__esModule=!0;var o=n(7);t.default=o.types.model("RelationshipTooltipModel",{}).volatile(function(){return{tooltipInfo:null}}).views(function(e){return{getTooltipInfo:function(){return e.tooltipInfo}}}).actions(function(e){return{showTooltip:function(t){e.tooltipInfo=t}}})},function(e,t,n){"use strict";t.__esModule=!0;var o=n(7);t.default=o.types.model({isOpen:o.types.boolean}).volatile(function(){return{triggerNode:o.types.frozen()}}).views(function(e){return{getTriggerNode:function(){return e.triggerNode},isTooltipOpen:function(){return e.isOpen}}}).actions(function(e){return{closeTooltip:function(){e.isOpen=!1},openTooltip:function(t){e.isOpen=!0,e.triggerNode=t}}})},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.default=void 0;var r=n(239),a=o(r),s=n(247),l=o(s),d=n(84),u=n(16),c=o(u),p=n(50),f=null,h=null,m=null,g=function(){function e(t){i(this,e),this._dashboardApi=t.dashboardApi,this.startingPointsVM=t.startingPointsVM,this.viprData=null}return e.prototype._loadViprModules=function(){return new Promise(function(e,t){(0,d.loadModules)(["dashboard-analytics/visualizations/vipr/VIPR","dashboard-analytics/visualizations/definitions/providers/VIPR3Provider","com/ibm/vida/control/vida"],function(t,n,o){f=t,h=n,m=o,e(!0)},t)})},e.prototype._getAjaxService=function(){return this._dashboardApi&&this._dashboardApi.getGlassCoreSvc?this._dashboardApi.getGlassCoreSvc(".Ajax"):null},e.prototype.load=function(e){var t=this;return this._loadViprModules().then(r.loadDataProviderDeps).then(function(){return t._viprPromise=f.initialize({dashboardApi:t._dashboardApi}),t._load(e)})},e.prototype._load=function(e){var t=this;return this._viprPromise.then(function(){return f.loadBundle("com.ibm.vis.rave2bundlenetwork")}).then(function(n){var o=f.createWidget(e.id);return t._widget=o,t._vidaActionHandler=m?new m.ActionHandler(o):null,o.newViz("com.ibm.vis.rave2bundlenetwork","client").then(function(){var e=function(e){var i=new h({dashboardApi:t._dashboardApi});return t._setData(n,i,o,e)},i=function(e,n){return t._decorateNode({columnId:e,targetId:n,widget:o,enableHighlight:!0,decorationType:"highlighted"})},r=function(e,n){return t._decorateNode({columnId:e,targetId:n,widget:o,enableHighlight:!1,decorationType:"highlighted"})};return{widget:o,getEventHandler:function(){return t.eventHandler},setData:e,addHighlight:i,removeHighlight:r}})})},e.prototype._setData=function(e,t,n,o){var i=this,r=this.startingPointsVM.relationship,s=r.targetIds[0];if(!this._isStaleRequest(o,s)){var d=r.getTargetModel(),u=d&&d.lastAddedFields,c={showConcepts:!0===r.showConcepts,targetId:s,addedField:u},f=t.createDefinition(e),h=this.startingPointsVM.fields.getFields(),m=h&&h.all&&h.all.value,g=new a.default(o,f,m,c),v=g.getData(),_=g.getSlotMapping();if(!v)throw new Error("Data provider gave no data");n.setData(v,_);var y=null,b=d&&d.changedProperty;if("lastAddedFields"===b)y=u;else if("lastShowRelationshipsField"===b){var w=d.lastShowRelationshipsField,x=w.from,C=w.to,S=d.showRelationshipsMap;if(S[x]){var E=S[x].find(function(e){return e.to===C});E&&E.relationship&&(y=[x,C])}}else if("cancelAction"===b){var M=d.lastCanceledAction;M.canceledAction===p.OVERRIDE_ACTIONS.DELETED&&(y=[M.fieldID])}y&&y.length&&y.forEach(function(e){i._decorateNode({columnId:e,targetId:s,widget:n,enableHighlight:!0,decorationType:"highlighted"})}),this._setWidgetProperties(n),n.render("client");var T={widget:n,startingPointsVM:this.startingPointsVM,nodeDataset:v.getDataSetAt(1),dataProvider:g};this.eventHandler=new l.default(T)}},e.prototype._decorateNode=function(e){var t=e.columnId,n=e.targetId,o=e.widget,i=e.enableHighlight,r=e.decorationType;if(!t)return!1;var a=!1,s=(n===t?"focusField×none_":"field×none_")+t;return o._data.getDataSet("data.nodes").getDataPoints().filter(function(e){return e.key===s}).forEach(function(e){a=!0,e.source.decorate(r,i)}),a},e.prototype._setWidgetProperties=function(e){e.setProperty("widget.legend.display",c.default.legend_display),e.setProperty("color_node_cat",c.default.themes.default.palette.colors),e.setProperty("network.links.color",c.default.links_color),e.setProperty("border.color",c.default.border_color),e.setProperty("network.nodes.size.min",c.default.network_nodes_size_min),e.setProperty("network.links.thickness.min",c.default.network_links_thickness_min),e.setProperty("network.links.thickness.max",c.default.network_links_thickness_max)},e.prototype.unload=function(){this._widget&&(this._widget.destroy(),this._widget=null)},e.prototype._isStaleRequest=function(e,t){return e&&e.nodesDataset&&e.nodesDataset.targetId!==t},e}();t.default=g},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.default=t.loadDataProviderDeps=void 0;var r=n(240),a=o(r),s=n(242),l=o(s),d=n(243),u=o(d),c=n(24),p=n(16),f=o(p),h=n(84),m=null,g=null,v=null;h.disabledLoader&&(m=n(244),g=n(245),v=n(246));var _=function(){return new Promise(function(e,t){(0,h.loadModules)(["dashboard-analytics/visualizations/vipr/VIPRUtils","dashboard-analytics/widgets/livewidget/query/QueryResultData","dashboard-analytics/widgets/livewidget/query/QueryResultObject"],function(t,n,o){m=t,g=n,v=o,e(!0)},t)})};t.loadDataProviderDeps=_;var y=function(){function e(t,n,o,r){i(this,e),this._verifyData(t,r),this.visAPI=new a.default(n),this.rawData=t,this.rawNodeDataset=new l.default(t,o,r),this.rawLinkDataset=new u.default(t,o,r),this.nodeDataset=this.rawNodeDataset.getNodeDatasetQueryResult(),this.linkDataset=this.rawLinkDataset.getLinkDatasetQueryResult()}return e.prototype.getData=function(){return m.createData(this.getNormalizedData(),this.visAPI)},e.prototype._verifyData=function(e,t){var n=this.getDataVerificationResults(e,t);n&&((0,c.printMsg)(n.linkDataset),(0,c.printMsg)(n.nodeDataset))},e.prototype.getDataVerificationResults=function(e,t){return e?(0,c.getDataVerificationResults)(e,t):null},e.prototype.getRawNodeDataset=function(){return this.rawNodeDataset},e.prototype.getSlotMapping=function(){return m.createSlotMapping(this.visAPI)},e.prototype.getNormalizedData=function(){return this.getQueryResultObject().getQueryResults()},e.prototype.getQueryResultObject=function(){var e=new g(this.linkDataset),t=new g(this.nodeDataset),n=new v;return n.addQueryResultObject("data.nodes",t),n.addQueryResultObject("data.links",e),this._setDomain(n,f.default.domain_setting_dataItem,1),n},e.prototype._setDomain=function(e,t,n){var o={};o[t]={min:f.default.default_min_strength,max:f.default.default_max_strength},e.setTopBottomMappings(o,n)},e}();t.default=y},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.default=void 0;var i=n(241),r=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(8),s=function(){function e(t){o(this,e),this.definition=t}return e.prototype.getSlots=function(){var e=this;return{getMappedSlotList:function(){return e.definition.dataSlots.map(function(e){return new r.default(e)})}}},e.prototype.getDefinition=function(){var e=this;return{getId:function(){return e.definition.id},getDatasetList:function(){return a.map(e.definition.datasets,function(e){return{id:e.name,caption:e.caption,optional:e.optional,suppressMissing:e.suppressMissing,needsSorted:e.needsSorted,requiresValues:e.requiresValues}})}}},e.prototype.getDataSlotsForViewId=function(e){var t=[];return this.definition&&a.each(this.definition.dataSlots,function(n){n.datasetIdList[0]===e&&t.push(new r.default(n))}),t},e}();t.default=s},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(t){o(this,e),this.slotDef=t,"data.nodes"===t.datasetIdList[0]&&"nodeColor"===t.id&&"any"===t.type&&(t.type="category")}return e.prototype.getId=function(){return this.slotDef.id},e.prototype.getDataItemList=function(){var e=this;return[{getId:function(){},getColumnId:function(){},getType:function(){return"category"===e.slotDef.type?"attribute":e.slotDef.type},getFormat:function(){}}]},e.prototype.isStacked=function(){return!1},e.prototype.getType=function(){return this.slotDef.type},e.prototype.getDefinition=function(){var e=this;return{getDataset:function(){return e.slotDef.dataset},getDatasetIdList:function(){return e.slotDef.datasetIdList},isMultiMeasureSupported:function(){return!1}}},e.prototype.isCaptionAsUniqueName=function(){return!1},e}();t.default=i},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.default=void 0;var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(24),s=["none","hierarchy","concept"],l=["focusField","field","hierarchy","concept"],d=["focusField","field"],u={PARENT_ONLY:0,PARENT_CHILD:1,CHILD_ONLY:2},c=function(){function e(t,n,i){o(this,e),this.dataset=t?t.nodesDataset:{groupings:[]},this.metadataInfo=n,this.options=i,this.groupingTypes=i.showConcepts?l:d,this.context={targetId:this.dataset.targetId},this.reset()}return e.prototype.reset=function(){this.nodeItemsList=[],this.colorItemsList=[],this.dataPoints=[],this.hierarchyInfos={}},e.prototype.getContext=function(){return this.context},e.prototype.getOptions=function(){return this.options},e.prototype._createItemClass_nodes=function(){return{itemClass:[{h:[{u:"groupId",d:"groupLabel"}]},{h:[{u:"groupId",d:"groupLabel"},{u:"memberId",d:"memberLabel"}]},{h:[{u:"memberId",d:"memberLabel"}]}]}},e.prototype._createItemClass_confidence=function(){return{itemClass:{h:[{u:"Confidence",d:"Confidence",aggregate:"sum"}]}}},e.prototype._createItemClass_groupingType=function(){return{itemClass:{h:[{u:"groupingTypeId",d:"Legend"}]}}},e.prototype.createItemsFromGroups=function(e){var t=this;if(e&&e.members&&e.members.length>0){var n=void 0,o=void 0,i=[],r="hierarchy"===e.groupType;if(r&&(this.hierarchyInfos[e.groupId]=i),e.members.forEach(function(a){n="none"===e.groupType?t._createFieldOnlyItem(a.id):t._createFieldItem(e.groupId,e.groupType,e.groupLabel,a.id),o=t.nodeItemsList.push(n)-1,t.addDatapoint(o,1,t._isFocusedField(a)?"focusField":"field"),r&&i.push({levelNumber:a.level,levelLabel:t._getMetadataLabel(a.id)})}),"none"!==e.groupType){var a=this._createGroupItem(e.groupId,e.groupType,e.groupLabel);o=this.nodeItemsList.push(a)-1,this.addDatapoint(o,null,e.groupType),r&&i.sort(function(e,t){return e.levelNumber-t.levelNumber})}}},e.prototype.getHierarchyLevels=function(e){var t=this.hierarchyInfos[e];return t&&t.length>1?t[0].levelLabel+" - "+t[t.length-1].levelLabel:""},e.prototype._isFocusedField=function(e){return"focusField"===e.type},e.prototype._createGroupItem=function(e,t,n){return{t:[{u:e,d:this._getGroupLabel(e,t,n)}],itemClassSetIndex:u.PARENT_ONLY}},e.prototype._createGroupingTypeItem=function(e){return{t:[{u:e,d:r.default.get(e)}]}},e.prototype._getGroupLabel=function(e,t,n){return"hierarchy"===t||"concept"===t?n:this._getMetadataLabel(n)},e.prototype._createFieldItem=function(e,t,n,o){return{t:[{u:e,d:this._getGroupLabel(e,t,n)},{u:o,d:this._getMetadataLabel(o)}],itemClassSetIndex:u.PARENT_CHILD}},e.prototype._createFieldOnlyItem=function(e){return{t:[{u:"none_"+e,d:this._getMetadataLabel(e)}],itemClassSetIndex:u.CHILD_ONLY}},e.prototype._getMetadataLabel=function(e){if(this.metadataInfo){var t=this.metadataInfo.find(function(t){return t.id===e});if(t)return t.name}return e},e.prototype.addDatapoint=function(e,t,n){var o=this._findColorTypeIndex(n);this.dataPoints.push({pt:[e,{v:t},o]})},e.prototype._findColorTypeIndex=function(e){var t=-1;return this.groupingTypes.some(function(n,o){if(e.toLowerCase().startsWith(n.toLowerCase()))return t=o,!0}),-1===t?this.groupingTypes.length-1:t},e.prototype._createGroupingTypeItemsList=function(){var e=this;this.groupingTypes.forEach(function(t){e.colorItemsList.push(e._createGroupingTypeItem(t))})},e.prototype._createGroupingTypeItemsListSection=function(){return Object.assign(this._createItemClass_groupingType(),{items:this.colorItemsList})},e.prototype._createNodeItemsListSection=function(){return Object.assign(this._createItemClass_nodes(),{items:this.nodeItemsList})},e.prototype._createQueryResult=function(){var e=[this._createNodeItemsListSection(),this._createItemClass_confidence(),this._createGroupingTypeItemsListSection()];return Object.assign({dataItems:e},{data:this.dataPoints})},e.prototype._isSupported_groupType=function(e){return!!(e&&s.indexOf(e)>-1)},e.prototype.getNodeDatasetQueryResult=function(){var e=this;return this.dataset.groupings.forEach(function(t){t.groups.forEach(function(t){if(!t.groupType){var n=(0,a.getGroupTypeAndGroupLabel)(t.groupId);t.groupType=n.groupType,t.groupLabel=n.groupLabel}e._isSupported_groupType(t.groupType)&&e.createItemsFromGroups(t)})}),this._createGroupingTypeItemsList(),this._createQueryResult()},e}();t.default=c},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.default=void 0;var i=n(24),r=function(){function e(t,n,i){o(this,e),this.dataset=t&&t.relationshipStrength&&t.relationshipStrength.results?t.relationshipStrength.results[0].relationships:[],this.metadataInfo=n,this.options=i,this._resetData()}return e.prototype._resetData=function(){this._fromItemsList=[],this._toItemsList=[],this.dataPoints=[]},e.prototype._createItemClass_from=function(){return{itemClass:{h:[{u:"From",d:"From"}]}}},e.prototype._createItemClass_to=function(){return{itemClass:{h:[{u:"To",d:"To"}]}}},e.prototype.createSingleItem=function(e){return{t:[{u:e,d:(0,i.getGroupLabel)(e,this.metadataInfo)}]}},e.prototype._createItemClass_strength=function(){return{itemClass:{h:[{u:"Strength",d:"Strength",aggregate:"sum"}]}}},e.prototype.addSingleItem=function(e,t){var n=!1,o=-1;return t.some(function(t,i){if(t.t[0].u===e)return n=!0,o=i,n}),-1===o&&(o=t.push(this.createSingleItem(e))-1),o},e.prototype.addDatapoint=function(e,t,n){this.dataPoints.push({pt:[e,t,{v:n}]})},e.prototype.getLinkDatasetQueryResult=function(){var e=this;this.dataset.forEach(function(t){var n=void 0,o=null;t.fieldA===e.options.targetId||t.fieldB!==e.options.targetId?(n=e.addSingleItem(t.a,e._fromItemsList),o=e.addSingleItem(t.b,e._toItemsList)):(n=e.addSingleItem(t.b,e._fromItemsList),o=e.addSingleItem(t.a,e._toItemsList)),e.addDatapoint(n,o,t.strength)});var t=Object.assign(this._createItemClass_from(),{items:this._fromItemsList}),n=Object.assign(this._createItemClass_to(),{items:this._toItemsList}),o={dataItems:[t,n,this._createItemClass_strength()]};return Object.assign(o,{data:this.dataPoints})},e}();t.default=r},function(e,t){e.exports=C},function(e,t){e.exports=S},function(e,t){e.exports=E},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.default=void 0;var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(24),s=500,l="data.nodes",d="hasSelection",u={group:r.default.get("group"),hierarchy:r.default.get("hierarchy"),concept:r.default.get("concept"),fact:r.default.get("fact")},c=function(){function e(t){var n=this;o(this,e),this.onTouchStart=function(e){if(e.touches&&1===e.touches.length){n.removeTooltip(),e=n._normalizeTouchEvents(e);var t=e.target,o=n._getEventItems(e);if(o){var i=o[0];if(i.dataset===l&&i.isFieldNode){var r=n._isSelected(i);n.pressTimer=setTimeout(function(){n._isLongPress=!0,n._touchSameNode(i)&&(r?(n._disableSelection([i]),n.removeTooltip(),n._hideContextMenu()):(n._selectedDataPoints&&0===n._selectedDataPoints.length?(n._setContextMenu({event:{target:t},field:i}),n.removeTooltip()):n._hideContextMenu(),n._enableSelection([i])))},s)}n._displayTooltip(e,o[0]),e.preventDefault()}}},this.onTouchEnd=function(e){if(clearTimeout(n.pressTimer),e=n._normalizeTouchEvents(e),n._isLongPress)return void(n._isLongPress=!1);var t=n._getEventItems(e);if(!t)return n._hideContextMenu(),void n.removeTooltip();var o=t[0];o.dataset===l&&o.isFieldNode&&(n._selectedDataPoints.length>0&&n._disableSelection(n._selectedDataPoints),n._hideContextMenu(),n._enableSelection(t))},this.widget=t.widget,this.startingPointsVM=t.startingPointsVM,this._selectedDataPoints=[],this._lastHoverItem=null,this.nodeDataset=t.nodeDataset,this.nodeDataset&&this.widget&&(this.nodeDataset.decorate(d,!1),this.widget.render("client")),this.dataProvider=t.dataProvider,this._isLongPress=!1}return e.prototype._getClientX=function(e){return e.hasOwnProperty("clientX")?e.clientX:null},e.prototype._getClientY=function(e){return e.hasOwnProperty("clientY")?e.clientY:null},e.prototype._getEventTargets=function(e){var t=this._getClientX(e)&&this._getClientY(e)?this.widget.getVisCoordinate(this._getClientX(e),this._getClientY(e)):null,n=t&&this.widget.getItemsAtPoint(t);return n&&n.length?n:null},e.prototype._processItems=function(e){var t=[];return 1===e.length?t=this._processNode(e[0]):3===e.length&&(t=this._processLink(e)),t&&t.length?t:null},e.prototype._processNode=function(e){var t=[],n=this._itemRowToTargetValues(e.row);if(!n)return null;var o=this._isFieldNode(n);return t.push({dataset:l,index:e.index,source:e.source,values:n,itemId:this._getNodeId(n[0],o),isFieldNode:o}),t},e.prototype._isFieldNode=function(e){return!this.dataProvider.getRawNodeDataset().getOptions().showConcepts||e[2]&&e[2][0]&&"field"===e[2][0].u||2===e[0].length},e.prototype._getNodeId=function(e,t){var n=1===e.length?e[0].u:e[1].u;return t&&(n=this._trimFieldPrefix(n)),n},e.prototype._processLink=function(e){var t=[],n=this._itemRowToTargetValues(e[2].row);return n?(t.push({dataset:"data.link",source:e[2].source,values:n[2],itemId:{fromNode_id:this._getNodeId(n[0]),toNode_id:this._getNodeId(n[1])}}),t):null},e.prototype._itemRowToTargetValues=function(e){return e&&e.length?e.map(function(e){if("value"===e.infoType){var t=[];return t[e.index||0]=e.value,t}return e.items.map(function(e){return{u:e.source.getUniqueName(),d:e.source.item.d,p:e.source.item.p}})}):null},e.prototype._getEventItems=function(e){var t=this._getEventTargets(e);return t?this._processItems(t):null},e.prototype._setContextMenu=function(e){var t=e.event,n=e.field;this.startingPointsVM.relationship.setContextMenu({element:t.target,field:n})},e.prototype._hideContextMenu=function(){this.startingPointsVM.relationship.setContextMenu({element:null,field:null})},e.prototype._enableSelection=function(e){var t=this;e.forEach(function(e){e.source.decorate("highlighted"),e.source.decorate("selected",!0),t._selectedDataPoints.push({itemId:e.itemId,source:e.source})}),this.nodeDataset.decorate(d,!0),this.widget.render("client"),this.startingPointsVM.relationship.setSelectedFields(this._selectedDataPoints);var n=this._getDistinctInfluencers(this._selectedDataPoints).map(function(e){return{id:e,label:t._getFieldLabel(e)}});this.startingPointsVM.setSelectedInfluencers(n)},e.prototype._getDistinctInfluencers=function(e){var t={};return e.forEach(function(e){t[e.itemId]||(t[e.itemId]=e.itemId)}),Object.keys(t)},e.prototype._disableSelection=function(e){var t=this;e.forEach(function(e){e.source.clearDecorations(),t._selectedDataPoints=t._selectedDataPoints.filter(function(t){return t.source!==e.source})}),this._selectedDataPoints.length||this.nodeDataset.decorate(d,!1),this.widget.render("client"),this.startingPointsVM.relationship.setSelectedFields(this._selectedDataPoints);var n=this._getDistinctInfluencers(this._selectedDataPoints).map(function(e){return{id:e,label:t._getFieldLabel(e)}});this.startingPointsVM.setSelectedInfluencers(n)},e.prototype._isSelected=function(e){return e.source.getDecoration("selected")},e.prototype._disableHighlight=function(e){e.source.decorate("highlighted",!1),this._lastHoverItem=null,this.widget.render("client")},e.prototype._enableHighlight=function(e){this._lastHoverItem&&!this._isSelected(this._lastHoverItem)&&this._lastHoverItem.source.decorate("highlighted",!1),e.source.decorate("highlighted"),this._lastHoverItem=e,this.widget.render("client")},e.prototype._getAdjustedCoordinatesForNodes=function(e,t){var n={};if(e.dataset===l){var o=t.target.getBoundingClientRect();o&&(n.y=o.top,n.x=(o.left+o.right)/2)}return n},e.prototype.removeTooltip=function(){this._lastHoverItem&&!this._isSelected(this._lastHoverItem)&&this._disableHighlight(this._lastHoverItem),this.startingPointsVM.relationship.tooltip.showTooltip(null)},e.prototype.onClick=function(e){var t=this._getEventItems(e);if(t&&this._acceptClick(t)){var n=e.ctrlKey||e.metaKey;this._isSelected(t[0])?this._disableSelection(t):n?this._enableSelection(t):(this._selectedDataPoints.length>0&&this._disableSelection(this._selectedDataPoints),this._enableSelection(t))}},e.prototype.onRightClick=function(e){var t=this._getEventItems(e);t&&this._acceptClick(t)&&this._setContextMenu({event:e,field:t[0]})},e.prototype._acceptClick=function(e){var t=e[0];return t.dataset===l&&t.isFieldNode},e.prototype.onMouseOver=function(e){var t=this._getEventItems(e);if(!t)return null;this._displayTooltip(e,t[0])},e.prototype.onMouseOut=function(){this.removeTooltip()},e.prototype.onKeyDown=function(e){if("Delete"===e.key||"Backspace"===e.key){var t=this.startingPointsVM.relationship,n=t.selectedFields;n&&1===n.length&&t.canDeleteFields(n)&&t.deleteFields(n),e.stopPropagation()}else if("Enter"===e.key){var o=e.target.getBoundingClientRect(),i=o.left,r=o.top,a=o.width,s=o.height;e.clientX=i+a/2,e.clientY=r+s/2;var d=this._getEventItems(e);if(d&&d.length){var u=d[0];u.dataset===l&&u.isFieldNode&&(this._setContextMenu({event:e,field:u}),e.stopPropagation())}}},e.prototype._normalizeTouchEvents=function(e){var t=e;t.isTouch=!0;var n=e.touches[0];return n&&void 0!==n.clientX&&(t.clientX=n.clientX,t.clientY=n.clientY,t.pageX=n.pageX,t.pageY=n.pageY),t},e.prototype._touchSameNode=function(e){return this._lastHoverItem&&this._lastHoverItem.source===e.source},e.prototype._displayTooltip=function(e,t){var n=this._buildTooltipInfo(e,t);n&&(this._enableHighlight(t),this.startingPointsVM.relationship.tooltip.showTooltip(n))},e.prototype._buildTooltipInfo=function(e,t){var n=this._buildTooltipTitle(t);if(e.persist(),n){var o=this._getAdjustedCoordinatesForNodes(t,e);return{title:n,coordinates:{top:o.y||e.clientY,left:o.x||e.clientX,width:0},eventTarget:e.target,itemId:t.itemId}}return null},e.prototype._buildTooltipTitle=function(e){return e.dataset===l?e.isFieldNode?this._buildTooltipTitleForFieldNode(e):this._buildTooltipTitleForGroupNode(e):this._buildTooltipTitleForLink(e)},e.prototype._buildTooltipTitleForFieldNode=function(e){var t=this._trimFieldPrefix(e.itemId);return[{label:r.default.get("parent")+": ",value:""+this._getParentId(t)},{label:"",value:""+this._getFieldLabel(t)}]},e.prototype._trimFieldPrefix=function(e){return e&&0===e.indexOf("none_")&&(e=e.substr(5,e.length)),e},e.prototype._buildTooltipTitleForGroupNode=function(e){var t=this._getGroupType(e),n=u[t],o=this._getGroupLabel(e);if("hierarchy"===t){return[{label:n+": ",value:""+(this.dataProvider.rawNodeDataset.getHierarchyLevels(e.itemId)||o)}]}return[{label:n+": ",value:""+o}]},e.prototype._buildTooltipTitleForLink=function(e){return[{label:"",value:this._getGroupLabelFromGroupId(e.itemId.fromNode_id)+" - "+this._getGroupLabelFromGroupId(e.itemId.toNode_id)},{label:r.default.get("strength")+": ",value:""+this._format(e.values[0])}]},e.prototype._getGroupLabelFromGroupId=function(e){var t=this.startingPointsVM.fields.getFields().getAll();return(0,a.getGroupLabel)(e,t)},e.prototype._getFieldLabel=function(e){var t=this.startingPointsVM.fields.getFields().getAll();return(0,a.getFieldLabel)(e,t)},e.prototype._getParentId=function(e){return e.substr(0,e.lastIndexOf("."))},e.prototype._format=function(e){return this.startingPointsVM.relationship.getIsFilterStrengthFeatureEnabled()||isNaN(e)?e+"%":Math.round(100*e)+"%"},e.prototype._getGroupType=function(e){return e.values[2][0].u},e.prototype._getGroupLabel=function(e){return e.values[0][0].d},e.prototype.onDestroy=function(){this.startingPointsVM.setSelectedInfluencers()},e}();t.default=c},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){var t=!e||void 0===e.selectAfterAdd||e.selectAfterAdd;return e&&Object.assign(e,{insertBefore:e.insertBefore,selectAfterAdd:t,model:e.model})}t.__esModule=!0;var r=function e(t,n,r){o(this,e),this.destroy=function(){t=null,n=null},this.getCard=function(e){return t.findModel(e).getAPI()},this.getCards=function(){return t.items.map(function(e){return e.getAPI()})},this.addCard=function(e,n){var o=n;return e.layoutSpec&&(o?o.model=e.layoutSpec:o={model:e.layoutSpec}),t.addVisCard(e.widgetSpecs,null,i(o))},this.deleteCards=function(e){return t.deleteCards(e)},this.duplicateCard=function(e,n){return t.duplicateCard(t.findModel(e),null,i(n))},this.addDriverAnalysisCardForCorrelation=function(e){t.addCometCardForCorrelation(e)},this.getRelatedVis=function(){var e=t.exploreVM.selectedWidget;if(!e)throw new Error("No widget is selected");return t.exploreVM.relatedRecommendationVM.recommender.fetchRecommendations(e,"related")},this.getRecommendedVisualizations=function(){var e=t.exploreVM.selectedWidget;if(!e)throw new Error("No widget is selected");return t.exploreVM.alternativeRecommendationVM.fetchRecommendations(e,"alternative").then(function(){return t.exploreVM.alternativeRecommendationVM.getRecommendations()})},this.getCompareCardRecommendations=function(){var e=t.exploreVM.selectedWidget;if(!e)throw new Error("No widget is selected");var n=t.exploreVM.selectedWidgetModel;return t.exploreVM.getCompareCardRecommendations({widgetApi:e,widgetModel:n})},this.changeVisType=function(e,n){return t.exploreVM.changeVisType(e,n)},this.changeFixedVisualizationTypeForSelectedWidget=function(e){return t.exploreVM.changeFixedVisType(e)},this.copy=function(){return r.copy()},this.paste=function(){return r.paste()},this.selectCards=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.rangeSelect,i=void 0!==o&&o,r=n.multiSelect,a=void 0!==r&&r,s=void 0;i?s={shift:!0}:a&&(s={control:!0}),t.exploreVM.selectedCards.select(e,s)},this.deleteSelectedCards=function(){var e=this.getSelectedCardIds();return t.deleteCards(e)},this.getSelectedCardIds=function(){return t.exploreVM.selectedCards.items.map(function(e){return e})},this.isStartingPointsDisplayed=function(){return t.exploreVM.isStartingPointsDisplayed()},this.getDisplayedCard=function(){return t.exploreVM.getDisplayedCard()},this.setDisplayedToCard=function(e){return t.exploreVM.setDisplayedToCard(e)},this.getStartingPointsAPI=function(){return n},this.setActiveDataSourceId=function(e){if(!e)throw new Error("No dataSourceId is specified");t.exploreVM.setActiveDataSourceId(e)},this.getActiveDatasourceId=function(){return t.exploreVM.activeDataSourceId},this.getActiveDataSourceModule=function(){var e=t.exploreVM.activeDataSourceModule;return e||Promise.resolve(null)}};t.default=r},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.default=void 0;var i=n(7),r=n(250),a=n(51),s=function e(t){o(this,e),this.destroy=function(){t=null},this.getActiveDatasourceId=function(){return t.exploreVM.activeDataSourceId},this.getFieldsByModelId=function(e){return t?t.fields.fields.get(e):Promise.reject(new Error("No StartingPoints Model"))},this.getState=function(){if(t)return(0,i.getSnapshot)(t);throw new Error("No StartingPoints Model")},this.whenRelationshipDataReady=function(){return t?t.relationship.whenRelationshipDataReady():Promise.reject(new Error("No StartingPoints Model"))},this.getRecommendations=function(e){var n=t.exploreVM.relatedRecommendationVM.recommender;if(e)return n.recommendRelatedVisualizationsAsWidgetSpecs(this.getActiveDatasourceId(),e,{includeBestVisForTargetFields:!0});throw new Error("Invalid arguments!")},this.getAllFieldIds=function(e){return t.fields.getFields(e).getAll().map(function(e){return e.id})},this.getInterestingFieldIds=function(e){return t.fields.getFields(e).getInteresting().map(function(e){return e.id})},this.skipWizard=function(e){var n=t.fields.getFields(e),o=n.all,i=o.state,a=o.value;if("fulfilled"===i&&a.length)return this.setFocusField(a[0].id).then(this.getFocusField.bind(this));throw(0,r.createApiError)("No focus field was set")},this.getFocusField=function(){var e=t.fields.getFocusField();return e?e.id:null},this.setFocusField=function(e){return t.fields.getFields().interesting.then(function(){t.fields.setFocusField(e);var n=t.fields.getFocusField();if(!n||n.id!==e)throw(0,r.createApiError)("Invalid id","STARTP_INVALID_FOCUS_FIELD_ID")})},this.setFocusFieldIndex=function(e){return t.fields.getFields().interesting.then(function(){var n=t.fields.getFields().getInteresting()||[];if(!(e>=0&&e'});a.a.add(s);t.default=s},function(e,t){e.exports=I},function(e,t,n){"use strict";t.__esModule=!0;var o=function(e){return{model:{type:"live",visId:e,visTypeLocked:!0,data:{}}}},i=function(e,t){var n=e.getFeature("Canvas");if(n){var o=n.getContent(t);if(o)return o.getFeature("Models.internal").getWidgetModel().toJSON()}return null},r=function(e,t){var n=null,o=null;if(e&&e.items.length){var r=e.items[0].id;if(o=i(t,r)){delete o.id,delete o.titleHtml,delete o.thumbnailId,n={model:o,specType:"widget"};var a={properties:[{id:"itemAxis.labels.layoutMode",value:"stagger"},{id:"widget.legend.position",value:"right"}]};Object.assign(n.model,a)}}return Promise.resolve(n)};t.default={getWidgetSpec:i,emptyWidgetWithVisType:o,getWidgetSpecForCompareCard:r}},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018, 2020\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.create-exploration {\n position: relative;\n margin: 0 1px;\n color: #393939;\n color: hsla(var(--interactive-02-h, 0), var(--interactive-02-s, 0%), var(--interactive-02-l, 22.35294%), 1);\n text-align: center;\n -ms-flex: auto;\n flex: auto;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n width: 100%;\n /*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018, 2020\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n /*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n /*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n}\n\n.create-exploration__container {\n margin: auto;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-align: center;\n align-items: center;\n overflow: hidden;\n}\n\n.create-exploration svg {\n margin-bottom: 24px;\n}\n\n.create-exploration h3 {\n font-size: 0.875rem;\n font-weight: 700;\n margin-top: 0;\n color: #161616;\n color: hsla(var(--text-01-h, 0), var(--text-01-s, 0%), var(--text-01-l, 8.62745%), 1);\n}\n\n.create-exploration p {\n max-width: 250px;\n margin: auto;\n padding: 0 64px;\n font-size: 0.875rem;\n line-height: 16px;\n color: #161616;\n color: hsla(var(--text-01-h, 0), var(--text-01-s, 0%), var(--text-01-l, 8.62745%), 1);\n}\n\n.create-exploration button {\n margin: 20px auto 0 auto;\n}\n\n.create-exploration .explore-empty-create-layout-dnd {\n outline-style: solid;\n outline-width: 1px;\n outline-color: #161616;\n outline-color: hsla(var(--ui-05-h, 0), var(--ui-05-s, 0%), var(--ui-05-l, 8.62745%), 1);\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: #161616;\n background-color: hsla(var(--ui-05-h, 0), var(--ui-05-s, 0%), var(--ui-05-l, 8.62745%), 1);\n opacity: 0.1;\n z-index: 1000;\n}\n\n.create-exploration--droptarget {\n border: 1px dashed;\n border-color: #e0e0e0;\n border-color: hsla(var(--ui-03-h, 0), var(--ui-03-s, 0%), var(--ui-03-l, 87.84314%), 1);\n}\n\n.create-exploration--droptarget.dndHover {\n border-color: #0f62fe;\n border-color: hsla(var(--interactive-01-h, 219.16318), var(--interactive-01-s, 99.17012%), var(--interactive-01-l, 52.7451%), 1);\n border-style: solid;\n outline-style: solid;\n outline-width: 1px;\n outline-color: #0f62fe;\n outline-color: hsla(var(--interactive-01-h, 219.16318), var(--interactive-01-s, 99.17012%), var(--interactive-01-l, 52.7451%), 1);\n}\n\n.create-exploration.explorationWidget {\n -ms-flex: 1;\n flex: 1;\n}\n\n.create-exploration.explorationWidget .widgetContent {\n height: 100%;\n width: 100%;\n}\n\n@media only screen and (max-height: 900px) {\n .create-exploration-icon {\n display: none;\n }\n}\n\n",""])},function(e,t,n){"use strict";t.__esModule=!0;var o=n(88),i=function(e){return e&&e.__esModule?e:{default:e}}(o),r=i.default.extend({init:function(){r.inherited("init",this,arguments)},add:function(e,t,n){this.consumeView.addChildRenderMarkup(e.id,e.getRenderMarkup());var o=n||{},i=o.value;i=void 0===i?{}:i;var r=i.op,a=o.sender;"add"===r&&"UndoRedoController"===a&&this.consumeView.model.exploreVM.setDisplayedToCard(e.id)}});t.default=r},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n,o){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(o):void 0})}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var l,d,u,c=n(0),p=o(c),f=n(11),h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(f),m=n(89),g=o(m),v=n(54),_=o(v),y=n(55),b=o(y),w=n(8),x=o(w),C=n(91),S=o(C),E=n(300),M=o(E),T=n(309),I=o(T),A=n(5),P=n(38),O=n(2),D=o(O),R=n(312),L=o(R),N=n(59),F=n(313),V=o(F),k=n(40),z=o(k),j=n(315),U=o(j),W=n(346),B=o(W),H=(0,A.observer)((d=function(e){function t(n){r(this,t);var o=a(this,e.call(this,n));return i(o,"activateDropTarget",u,o),o.onAddCard=function(e){var t=o.layoutController.topLayoutModel,n=function(){var e=t.addVisCard.apply(t,arguments);if(e){var n=o.props.model.exploreVM;o.props.model.exploreVM.canvasTabs.showTab("slots"),n.setDisplayedToNewCard(e),o.domNode.focus()}};(0,{single:function(){return n([null],"addBlankSingleCard")},compare:function(){return n([null,null],"addBlankCompareCard",{model:{subType:"compare"}})},startingPoints:function(){o.props.model.exploreVM.setDisplayedToStartingPoints()}}[e.type])()},o._addCompareCard=function(e){return o.layoutController.topLayoutModel.addVisCard(e.widgets.map(function(e){var t=e.spec;return t?{model:t}:{model:{type:"placeholder",placeHolder:!0,showTitle:void 0,titleMode:"smartTitle",name:""}}}),"exploreSelectRelatedRecommendation",{model:{subType:"compare"}})},o.onCompareCardItemAdded=function(e){o._addCompareCard(e)&&(0,N.openCardsPane)(o.props.dashboardApi)},o.onCompareCardItemSelected=function(e){var t=o._addCompareCard(e);if(t){var n=o.props.model.exploreVM;o.props.model.exploreVM.canvasTabs.showTab("slots"),n.setDisplayedToNewCard(t),(0,N.openCardsPane)(o.props.dashboardApi),o._closeCompareSlideout()}},o.addVisCard=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"details";x.default.isArray(e)||(e=[e]);var i=-1!==["exploreSelectRelatedRecommendation","exploreSelectCometRecommendation","startingPointsSelectRecommendation","startingPointsCreate"].indexOf(t),r={sender:t,selectAfterAdd:i};o.props.model.exploreVM.canvasTabs.showTab(n),o.props.model.addVisCard(e,t,r)},o._closeVisTypeChooser=function(){o.props.model.exploreVM.setShowModalVisTypePicker(!1)},o._closeRelatedVisPicker=function(){o.props.model.exploreVM.setShowModalRelatedVisPicker(!1)},o._closeCompareSlideout=function(){o.props.model.exploreVM.setShowCompareSlideout(!1)},o._onAddRelatedRecommendation=function(e){e&&e.widgets&&e.widgets[0]&&(o._addCardByRecommendation(e.widgets[0],"addRelatedRecommendation"),(0,N.openCardsPane)(o.props.dashboardApi))},o._onRelatedRecommendationSelected=function(e,t){if(o._closeRelatedVisPicker(),o.props.model.exploreVM.relatedRecommendationVM.getRecommendations()[t]&&e.widgets&&e.widgets[0])return o._addCardByRecommendation(e.widgets[0],"exploreSelectRelatedRecommendation"),(0,N.openCardsPane)(o.props.dashboardApi)},o._onRecommendationSelected=function(e){o._closeVisTypeChooser(),o._closeRelatedVisPicker();var t=e.isAutoModeSwitcher,n=!0,i=o.props.model.exploreVM.selectedWidgetModel;i&&(n=!!i.get("visTypeLocked")),(!t||n)&&o.props.model.exploreVM.changeVisType(e,t)},o._onVisTypeSelected=function(e){o._closeVisTypeChooser(),o.props.model.exploreVM.changeFixedVisType(e)},o._onVisTypeSelectedVisWidget=function(e){o._closeVisTypeChooser();var t=o.layoutOwner.model.items[0].visDestination;o.createVisFromVisType(e,t),o.model.boardModel._hookupCustomDataHandler();var n=o.props.dashboardApi;(0,N.openDatasetPane)(n)},o.boardModel=o._initBoardModel(n),o.cardListRef=null,o.listeners=[],o.logger=n.services.biGlass.glassContext.getCoreSvc(".Logger"),o.startingPointsVM=n.model.startingPointsModel,o._initDataSource(),o._initVisTypes(),h.reaction(function(){return o.props.model.exploreVM.showSlots},function(){o.layoutOwner.resizeChildren(350)}),o}return s(t,e),t.prototype.componentDidMount=function(){var e=this,t={domNode:this.domNode,className:"dndHover",dashboardApi:this.props.dashboardApi,addFragment:this.model.addFragment.bind(this.model),fragmentParentId:this.layoutOwner.id,exploreVM:this.model.exploreVM,activate:function(){return e.activateDropTarget=!0},deactivate:function(){return e.activateDropTarget=!1},glassContext:this.props.services.biGlass.glassContext};this.props.services.getSvc(".DndManager").then(function(n){e._dropTargetHandle=n&&n.addDropTarget(e.domNode,new L.default(t))}),this.model.exploreVM.setExploreContainerNode(this.domNode)},t.prototype.componentWillUnmount=function(){this._dropTargetHandle&&this._dropTargetHandle.remove()},t.prototype._handleDeleteKey=function(e){if(e.persist(),!(e.handled||e.target.tagName&&e.target.tagName.match(/input|textarea|select/gim))){var t=!1;switch(e.key){case"Delete":case"Backspace":t=!this.model.exploreVM.isStartingPointsDisplayed()}if(t){if(this.model.exploreVM.selectedWidgets.find(function(e){return"placeholder"!==e.getType()})&&this.model.exploreVM.isCompare()){var n=this.model.exploreVM.selectedWidgets.map(function(e){return e.getId()});this.model.deleteVis(n)}else this.model.deleteCards([this.model.exploreVM.displayedCard]);this.model.exploreVM.setFocusOnExploreContainer()}}},t.prototype._initBoardModel=function(e){return Promise.resolve(e.layoutController.boardModel)},t.prototype._initDataSource=function(){var e=this;this.boardModel.then(function(t){var n=e._getSourceModels(t);if(n&&n.forEach(function(t){t.get("shaping").on("shapingmodel:changed",e._onShapingChanges,e)}),e.props.dashboardApi&&!e.props.dashboardApi.getActiveDataSourceId()){e._updateDataSources(t,!0)}t.on("change:dataSources",e._onDataSourcesChanges.bind(e,t),e)})},t.prototype._onDataSourcesChanges=function(e,t){if(t.name)if("add"===t.name){if(t.value){var n=t.value.get&&t.value.get("shaping");n&&n.on("shapingmodel:changed",this._onShapingChanges,this),this._updateDataSources(e)}}else"remove"===t.name?t.value&&t.value.id===this.props.model.exploreVM.activeDataSourceId&&this._updateDataSources(e):"state"===t.name&&"ready"===t.value&&t.sender&&t.sender.id===this.props.model.exploreVM.activeDataSourceId&&this.startingPointsVM.refreshStartingPoints()},t.prototype._onShapingChanges=function(e){if(this.startingPointsVM.fields.hasFetchedFields()&&e.action)switch(e.action){case"ADD":this._addColumn(e.notification),this._clearDataSmartsServiceCache();break;case"SET":this._changeProperties(e.notification),this._clearDataSmartsServiceCache();break;case"REMOVE":this._removeColumn(e.notification),this._clearDataSmartsServiceCache()}},t.prototype._clearDataSmartsServiceCache=function(){var e=this.props.model.exploreVM.activeDataSourceModule,t=e?e.value.getAssetId():null;t&&this.props.model.exploreVM.getSmartsRecommenderWrapper().smartsRelationshipStrengthService.removeEntriesFromCache(t)},t.prototype._jsonParseString=function(e){if("string"==typeof e)try{return JSON.parse(e.trim())}catch(t){return e}return e},t.prototype._addColumn=function(e){var t=e||{},n=t.newValue,o=void 0===n?{}:n,i=this._jsonParseString(o);i.queryItem&&(i=i.queryItem);var r=i.idForExpression,a=i.label;r&&a&&this.startingPointsVM.fields.addToAllFields({id:r,name:a})},t.prototype._changeProperties=function(e){e&&e.notifier&&this.startingPointsVM.refreshStartingPoints()},t.prototype._removeColumn=function(e){var t=e||{},n=t.oldValue,o=void 0===n?{}:n,i=this._jsonParseString(o);i.queryItem&&(i=i.queryItem);var r=i.idForExpression;r&&this.startingPointsVM.fields.deleteField(r)},t.prototype._getSourceModels=function(e){var t=e.get("dataSources"),n=t&&t.get("sources");return n&&n.getModels()},t.prototype._updateDataSources=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this._getActiveDataSourceId(this._getSourceModels(e),t);this.props.model.exploreVM.setActiveDataSourceId(n),n&&this.props.dashboardApi.setActiveDataSourceId(n)},t.prototype._getActiveDataSourceId=function(e,t){return e&&e.length?t?e[0].id:e[e.length-1].id:""},t.prototype.render=function(){return this.getRenderMarkup()},t.prototype.getRenderMarkup=function(){var e=this,t=this.props.model.exploreVM.showModalVisTypePicker,n=this.props.model.exploreVM.toolbarVisPicker,o=this.props.model.exploreVM.showModalRelatedVisPicker,i=this.props.model.exploreVM.showCompareSlideout,r=void 0;if(n){var a=this.props.model.exploreVM.hasDataInActiveWidgets(),s=this.props.model.exploreVM.selectedWidgetModel,l=!0,d=null;s&&(l=s.get("visTypeLocked"),d=s.get("visId"));var u=null;a&&(u=this.props.model.exploreVM.alternativeRecommendationVM),r=p.default.createElement(S.default,{active:t,className:"explore__animation--slideDown",dashboardApi:this.props.dashboardApi,recommendationVM:u,isVizTypeLocked:l,selectedVisId:d,services:this.props.services,onVisTypeSelected:this._onVisTypeSelected,onRecommendationSelected:this._onRecommendationSelected,onClose:this._closeVisTypeChooser,additionalProperties:z.default})}else r=p.default.createElement(S.default,{dashboardApi:this.props.dashboardApi,active:t,className:"explore__animation--slideDown",services:this.props.services,onVisTypeSelected:this._onVisTypeSelectedVisWidget,onClose:this._closeVisTypeChooser});return p.default.createElement("div",{tabIndex:"-1",className:"ba-theme-waca explore",ref:function(t){e.domNode=t},onKeyDown:function(t){return e._handleDeleteKey(t)}},this.activateDropTarget?p.default.createElement(V.default,null):void 0,p.default.createElement(U.default,{exploreVM:this.props.model.exploreVM,boardModel:this.props.model.boardModel,dashboardApi:this.props.dashboardApi,onAddCard:this.onAddCard}),p.default.createElement("div",{className:"explore-content"},p.default.createElement(g.default,{in:!t,classNames:"explore__animation--fade",onEnter:function(){},onExited:function(){}},p.default.createElement(B.default,{model:this.props.model,startingPointsVM:this.startingPointsVM,services:this.props.services,layoutOwner:this.layoutOwner,addVisCard:this.addVisCard,dashboardApi:this.props.dashboardApi})),r,p.default.createElement(_.default,{active:o,className:"explore__animation--slideDown",onClickOutside:this._closeRelatedVisPicker},p.default.createElement(b.default,{title:D.default.get("related_visualizations"),contentClassName:"related-slideout"},p.default.createElement("div",{className:"vis-recommender-explore__content"},p.default.createElement(I.default,{dashboardApi:this.props.dashboardApi,recommendationVM:this.props.model.exploreVM.relatedRecommendationVM,onClickItem:this._onRelatedRecommendationSelected,onAddItem:this._onAddRelatedRecommendation,additionalProperties:z.default,onPromptingError:this._onPromptingError,logger:this.logger})))),p.default.createElement(M.default,{dashboardApi:this.props.dashboardApi,customRecommendationVM:this.props.model.exploreVM.compareCardCustomRecommendationVM,smartsRecommendationVM:this.props.model.exploreVM.compareCardSmartsRecommendationVM,selectedWidgetModel:this.props.model.exploreVM.selectedWidgetModel,active:i,onItemSelected:this.onCompareCardItemSelected,onItemAdded:this.onCompareCardItemAdded,onClose:this._closeCompareSlideout,logger:this.logger})))},t.prototype._initVisTypes=function(){var e=this.props.dashboardApi.getFeature("VisDefinitions");this.props.model.exploreVM.setVisTypes(e.getList())},t.prototype._onPromptingError=function(e){e.isStaticWidget=!0},t.prototype._addCardByRecommendation=function(e,t){var n={model:Object.assign({type:"live",visTypeLocked:!0},e.spec),layoutProperties:{isStaticWidget:e.isStaticWidget}};return this.addVisCard(n,t)},t.prototype.createVisFromVisType=function(e){var t={model:{type:"live",visId:e,visTypeLocked:!0}};this.props.model.exploreVM.widgetInstance.createVis(t),this.props.model.exploreVM.setToolBarVisTypePicker(!0,null)},t}(P.ReactLayoutImplBase),u=function(e,t,n,o,i){var r={};return Object.keys(o).forEach(function(e){r[e]=o[e]}),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce(function(n,o){return o(e,t,n)||n},r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null),r}(d.prototype,"activateDropTarget",[f.observable],{enumerable:!0,initializer:function(){return!1}}),l=d))||l,G=function(e){function t(n){r(this,t);var o=a(this,e.call(this,n));return o.Component=H,o}return s(t,e),t}(P.LayoutBase);t.default=G},function(e,t,n){"use strict";function o(e,t){e.classList?e.classList.add(t):(0,r.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}var i=n(263);t.__esModule=!0,t.default=o;var r=i(n(264));e.exports=t.default},function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n},function(e,t,n){"use strict";function o(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}t.__esModule=!0,t.default=o,e.exports=t.default},function(e,t,n){"use strict";function o(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=o(e.className,t):e.setAttribute("class",o(e.className&&e.className.baseVal||"",t))}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(o=0;o=0||(i[n]=e[n]);return i}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(){}t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(9)),l=o(n(0)),d=o(n(17)),u=n(267),c=(n(90),"unmounted");t.UNMOUNTED=c;var p="exited";t.EXITED=p;var f="entering";t.ENTERING=f;var h="entered";t.ENTERED=h;t.EXITING="exiting";var m=function(e){function t(t,n){var o;o=e.call(this,t,n)||this;var i,r=n.transitionGroup,a=r&&!r.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?a?(i=p,o.appearStatus=f):i=h:i=t.unmountOnExit||t.mountOnEnter?c:p,o.state={status:i},o.nextCallback=null,o}r(t,e);var n=t.prototype;return n.getChildContext=function(){return{transitionGroup:null}},t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:p}:null},n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==f&&n!==h&&(t=f):n!==f&&n!==h||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=d.default.findDOMNode(this);t===f?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:c})},n.performEnter=function(e,t){var n=this,o=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,r=this.getTimeouts(),a=i?r.appear:r.enter;if(!t&&!o)return void this.safeSetState({status:h},function(){n.props.onEntered(e)});this.props.onEnter(e,i),this.safeSetState({status:f},function(){n.props.onEntering(e,i),n.onTransitionEnd(e,a,function(){n.safeSetState({status:h},function(){n.props.onEntered(e,i)})})})},n.performExit=function(e){var t=this,n=this.props.exit,o=this.getTimeouts();if(!n)return void this.safeSetState({status:p},function(){t.props.onExited(e)});this.props.onExit(e),this.safeSetState({status:"exiting"},function(){t.props.onExiting(e),t.onTransitionEnd(e,o.exit,function(){t.safeSetState({status:p},function(){t.props.onExited(e)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var o=null==t&&!this.props.addEndListener;if(!e||o)return void setTimeout(this.nextCallback,0);this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)},n.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,n=t.children,o=i(t,["children"]);if(delete o.in,delete o.mountOnEnter,delete o.unmountOnExit,delete o.appear,delete o.enter,delete o.exit,delete o.timeout,delete o.addEndListener,delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,"function"==typeof n)return n(e,o);var r=l.default.Children.only(n);return l.default.cloneElement(r,o)},t}(l.default.Component);m.contextTypes={transitionGroup:s.object},m.childContextTypes={transitionGroup:function(){}},m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:a,onEntering:a,onEntered:a,onExit:a,onExiting:a,onExited:a},m.UNMOUNTED=0,m.EXITED=1,m.ENTERING=2,m.ENTERED=3,m.EXITING=4;var g=(0,u.polyfill)(m);t.default=g},function(e,t,n){"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function i(e){function t(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}this.setState(t.bind(this))}function r(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var l=e.displayName||e.name,d="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+d+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=r;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,o)}}return e}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"polyfill",function(){return a}),o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0},function(e,t,n){var o=n(269);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.explore__slideout {\n background: white;\n box-shadow: 0 5px 25px -10px #00000036;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n display: inherit;\n z-index: 100;\n}\n\n.explore__slideout--fullHeight {\n bottom: 0;\n}\n\n",""])},function(e,t,n){var o=n(271);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018, 2019\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.explore-slideout-content {\n -ms-flex-direction: column;\n flex-direction: column;\n background: #f4f4f4;\n background: hsla(var(--ui-background-h, 0), var(--ui-background-s, 0%), var(--ui-background-l, 95.68627%), 1);\n display: -ms-flexbox;\n display: flex;\n height: 100%;\n width: 100%;\n}\n\n.explore-slideout-content__header {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n padding: 24px 64px;\n background: white;\n background: hsla(var(--ui-01-h, 0), var(--ui-01-s, 0%), var(--ui-01-l, 100%), 1);\n border-bottom: 1px solid;\n border-bottom-color: #e0e0e0;\n border-bottom-color: hsla(var(--ui-03-h, 0), var(--ui-03-s, 0%), var(--ui-03-l, 87.84314%), 1);\n}\n\n.explore-slideout-content__header__section {\n -ms-flex: 1;\n flex: 1;\n}\n\n.explore-slideout-content__header__section__title {\n font-size: 1rem;\n font-weight: 700;\n color: #393939;\n color: hsla(var(--text-02-h, 0), var(--text-02-s, 0%), var(--text-02-l, 22.35294%), 1);\n}\n\n.explore-slideout-content__header__section__subTitle {\n margin-top: 4px;\n}\n\n.explore-slideout-content__header__close-button button {\n width: 32px;\n height: 32px;\n padding: 0;\n border: none;\n background-color: transparent;\n}\n\n.explore-slideout-content__header__close-button button:hover {\n background-color: rgba(0, 0, 0, 0.05);\n}\n\n.explore-slideout-content__header__close-button button:hover,\n.explore-slideout-content__header__close-button button:focus {\n opacity: 1;\n}\n\n.explore-slideout-content__content {\n border-top: 2px solid #eaeaea;\n padding: 0 48px;\n overflow-x: hidden;\n -webkit-overflow-scrolling: touch;\n}\n\n.explore-slideout-content__related-slideout {\n min-height: 30vh;\n max-height: 70vh;\n}\n\n.explore__slideout--fullHeight .explore-slideout-content__content {\n -ms-flex: 1;\n flex: 1;\n}\n\n",""])},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(0),l=o(s),d=n(1),u=o(d),c=n(273),p=o(c),f=n(292),h=o(f),m=n(2),g=o(m),v=n(45);n(298);var _=function(e){function t(n){i(this,t);var o=r(this,e.call(this,n));return o.visTypeExcludeChartIds=["dataPlayer"],o.visTypeClassName="create-exploration__vis-type-picker-container",o.logger=n.services.biGlass.glassContext.getCoreSvc(".Logger"),o.visDefinitions=o.props.dashboardApi.getFeature("VisDefinitions").getList(),o}return a(t,e),t.prototype.render=function(){return l.default.createElement("div",{className:"vis-recommender-explore__vis-recommender-picker"},this.props.recommendationVM&&this._renderRecommended(),l.default.createElement("div",{className:"vis-recommender-explore__vis-type-picker"},this._renderVisTypePicker()))},t.prototype._renderVisTypePicker=function(){var e=this;return l.default.createElement(h.default,{onVisTypeSelected:function(t){return e.props.onVisTypeSelected(t)},services:this.props.services,filter:this.visTypeExcludeChartIds,visTypeClassName:this.visTypeClassName,selectedVisId:this.props.selectedVisId,isVizTypeLocked:this.props.isVizTypeLocked,isExtVis:v.isExtVis,visDefinitions:this.visDefinitions,iconsFeature:this.props.dashboardApi.getFeature("Icons")})},t.prototype._renderRecommended=function(){return l.default.createElement("div",null,l.default.createElement("div",{className:"vis-recommender-explore__title"},g.default.get("recommended_visualizations")),l.default.createElement("div",{className:"vis-recommender-explore__content"},l.default.createElement(p.default,{isVizTypeLocked:this.props.isVizTypeLocked,dashboardApi:this.props.dashboardApi,recommendationVM:this.props.recommendationVM,onClickItem:this.props.onRecommendationSelected,additionalProperties:this.props.additionalProperties,selectedVisId:this.props.selectedVisId,logger:this.logger})))},t}(s.Component);_.propTypes={services:u.default.object.isRequired,dashboardApi:u.default.object.isRequired,recommendationVM:u.default.object,isVizTypeLocked:u.default.bool,selectedVisId:u.default.string,onRecommendationSelected:u.default.func,onVisTypeSelected:u.default.func,additionalProperties:u.default.arrayOf(u.default.object),recommendFilters:u.default.array},_.defaultProps={onRecommendationSelected:function(){},onVisTypeSelected:function(){},additionalProperties:[]},t.default=_},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t0&&this.el.offsetWidth>0},t}(f.Component),c=l(u.prototype,"progress",[E.observable],{enumerable:!0,initializer:null}),p=l(u.prototype,"placeholderIcon",[E.observable],{enumerable:!0,initializer:function(){return null}}),d=u))||d;R.propTypes={context:v.default.object.isRequired,onTitleChange:v.default.func,spinnerSize:v.default.oneOf(["small","normal","large"]),featureSet:v.default.array,predictData:v.default.object,logger:v.default.object,isPredictPreview:v.default.bool,isHighlighted:v.default.bool,onPromptingError:v.default.func,additionalProperties:v.default.arrayOf(v.default.object)},R.defaultProps={onTitleChange:function(){},additionalProperties:[],isHighlighted:!1,onPromptingError:function(){}},t.default=R},function(e,t,n){"use strict";t.__esModule=!0;var o=function(e,t,n){window.require(e,t,n)};t.loadModule=o},function(e,t,n){"use strict";t.__esModule=!0;var o=function(e,t){return e.filter(function(e,n,o){return o.findIndex(function(n){return t(n)===t(e)})===n})};t.default=o},function(e,t,n){"use strict";t.__esModule=!0;var o=function(){for(var e=arguments.length,t=Array(e),n=0;n'});a.a.add(s);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),i=n.n(o),r=n(13),a=n.n(r),s=new i.a({id:"confirm_16",use:"confirm_16-usage",viewBox:"0 0 16 16",content:''});a.a.add(s);t.default=s},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/**\n* IBM Confidential\n* OCO Source Materials\n* IBM Business Platform: Dashboard\n* (C) Copyright IBM Corp. 2018\n* The source code for this program is not published or otherwise divested of its trade secrets,\n* irrespective of what has been deposited with the U.S. Copyright Office\n**/\n\n.vis-recommender__animation--fade-appear,\n.vis-recommender__animation--fade-enter {\n opacity: 0.1;\n}\n\n.vis-recommender__animation--fade-appear-active,\n.vis-recommender__animation--fade-enter-active {\n opacity: 1;\n transition: opacity 200ms ease-in;\n}\n\n.vis-recommender__animation--fade-exit {\n opacity: 1;\n}\n\n.vis-recommender__animation--fade-exit-active {\n opacity: 0.1;\n transition: opacity 200ms ease-out;\n}\n\n.vis-recommender__preview {\n cursor: pointer;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n.vis-recommender__preview * {\n cursor: pointer;\n}\n\n.vis-recommender__preview__static-title {\n padding: 0 0 8px 0;\n font-weight: 600;\n}\n\n.vis-recommender__preview__size-small {\n height: 140px;\n width: 190px;\n}\n\n.vis-recommender__preview__size-medium {\n height: 150px;\n width: 260px;\n}\n\n.vis-recommender__preview__size-large {\n width: 298px;\n}\n\n.vis-recommender__preview--wrapper__horizontal {\n margin: 0px 8px 8px 8px;\n}\n\n.vis-recommender__preview__top {\n font-size: 0.75rem;\n padding: 8px;\n padding-bottom: 0px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.vis-recommender__preview__bottom {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n padding: 0 8px;\n}\n\n.vis-recommender__preview__bottom__spacer {\n -ms-flex: 1;\n flex: 1;\n}\n\n.vis-recommender__preview__bottom__add {\n display: -ms-flexbox;\n display: flex;\n}\n\n.vis-recommender__preview__bottom__add:link,\n.vis-recommender__preview__bottom__add:visited {\n text-decoration: none;\n}\n\n.vis-recommender__preview__bottom__add__text {\n padding-right: 8px;\n color: #393939;\n color: hsla(var(--text-02-h, 0), var(--text-02-s, 0%), var(--text-02-l, 22.35294%), 1);\n width: 100%;\n}\n\n.vis-recommender__preview__bottom__add:hover .vis-recommender__preview__bottom__add__text {\n fill: #0f62fe;\n fill: hsla(var(--link-01-h, 219.16318), var(--link-01-s, 99.17012%), var(--link-01-l, 52.7451%), 1);\n}\n\n.vis-recommender__preview__bottom__container {\n position: relative;\n width: calc(100% - 32px);\n text-align: left;\n height: 16px;\n padding: 10px 0;\n}\n\n.vis-recommender__preview__bottom__container__notification {\n background-color: white;\n background-color: hsla(var(--ui-01-h, 0), var(--ui-01-s, 0%), var(--ui-01-l, 100%), 1);\n position: absolute;\n bottom: 8px;\n left: 0;\n padding: 0 8px;\n line-height: 16px;\n}\n\n.vis-recommender__preview__bottom__container__notification__text {\n margin: 8px;\n}\n\n.vis-recommender__preview__bottom__container__visType {\n padding: 0 8px;\n}\n\n.vis-recommender__preview__bottom__container__title {\n padding: 0 8px;\n}\n\n.vis-recommender__preview__preview-box {\n margin: 4px;\n -ms-flex: 1;\n flex: 1;\n overflow: hidden;\n pointer-events: none;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n\n.vis-recommender__preview--old_vertical {\n height: 154px;\n border: 1px solid;\n border-color: #e0e0e0;\n border-color: hsla(var(--ui-03-h, 0), var(--ui-03-s, 0%), var(--ui-03-l, 87.84314%), 1);\n color: #343334;\n text-align: center;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n margin-top: 20px;\n}\n\n.vis-recommender__preview--old_vertical:hover,\n.vis-recommender__preview--old_vertical:active {\n outline-style: solid;\n outline-width: 1px;\n outline-color: #161616;\n outline-color: hsla(var(--ui-05-h, 0), var(--ui-05-s, 0%), var(--ui-05-l, 8.62745%), 1);\n border-color: #161616;\n border-color: hsla(var(--ui-05-h, 0), var(--ui-05-s, 0%), var(--ui-05-l, 8.62745%), 1);\n}\n\n.vis-recommender__preview--vertical {\n border: 1px solid #eaeaea;\n color: #343334;\n text-align: center;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n margin-top: 20px;\n}\n\n.vis-recommender__preview--vertical:hover,\n.vis-recommender__preview--vertical:active {\n outline-style: solid;\n outline-width: 1px;\n outline-color: #161616;\n outline-color: hsla(var(--ui-05-h, 0), var(--ui-05-s, 0%), var(--ui-05-l, 8.62745%), 1);\n border-color: #161616;\n border-color: hsla(var(--ui-05-h, 0), var(--ui-05-s, 0%), var(--ui-05-l, 8.62745%), 1);\n}\n\n.vis-recommender__preview--horizontal {\n padding: 0;\n background-color: white;\n background-color: hsla(var(--ui-01-h, 0), var(--ui-01-s, 0%), var(--ui-01-l, 100%), 1);\n text-align: center;\n}\n\n.vis-recommender__preview--horizontal:hover,\n.vis-recommender__preview--horizontal:active {\n outline-style: solid;\n outline-width: 2px;\n outline-color: #161616;\n outline-color: hsla(var(--ui-05-h, 0), var(--ui-05-s, 0%), var(--ui-05-l, 8.62745%), 1);\n}\n\n.vis-recommender__preview__autoIcon {\n margin-bottom: 8px;\n margin-top: 24px;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n.vis-recommender__preview--selected {\n outline-style: solid;\n outline-width: 2px;\n outline-color: #161616;\n outline-color: hsla(var(--ui-05-h, 0), var(--ui-05-s, 0%), var(--ui-05-l, 8.62745%), 1);\n}\n\n.vis-recommender__preview__visTitle {\n padding-top: 8px;\n padding-bottom: 20px;\n font-size: 0.875rem;\n width: 100%;\n color: #393939;\n color: hsla(var(--text-02-h, 0), var(--text-02-s, 0%), var(--text-02-l, 22.35294%), 1);\n}\n\n@media only screen and (max-width: 1200px) {\n .vis-recommender__preview--vertical {\n width: inherit;\n }\n}\n\n",""])},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(0),l=o(s),d=n(9),u=o(d),c=n(6),p=n(27),f=o(p),h=n(10),m=o(h),g=n(286),v=o(g);n(57);var _="vis-recommender__preview",y=function(e){function t(){var n,o,a;i(this,t);for(var s=arguments.length,l=Array(s),d=0;d'});a.a.add(s);t.default=s},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/**\n* IBM Confidential\n* OCO Source Materials\n* IBM Business Platform: Dashboard\n* (C) Copyright IBM Corp. 2018, 2020\n* The source code for this program is not published or otherwise divested of its trade secrets,\n* irrespective of what has been deposited with the U.S. Copyright Office\n**/\n\n.vis-recommender__preview-list--vertical {\n width: 100%;\n padding: 0;\n}\n\n.vis-recommender__preview-list--vertical__items {\n height: 100%;\n}\n\n.vis-recommender__preview-list--vertical .vis-recommender__preview-list__see-more {\n text-align: center;\n margin-top: 16px;\n}\n\n.vis-recommender__preview-list--horizontal__items {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n padding: 1px;\n}\n\n.vis-recommender__preview-list--horizontal .vis-recommender__preview-list__see-more {\n margin-top: 24px;\n margin-left: 8px;\n}\n\n.vis-recommender__preview-list--horizontal .vis-recommender__preview-list__see-more a {\n color: #0f62fe;\n color: hsla(var(--link-01-h, 219.16318), var(--link-01-s, 99.17012%), var(--link-01-l, 52.7451%), 1);\n}\n\n.vis-recommender__preview-list--horizontal .vis-recommender__preview-list__see-more a:hover {\n text-decoration: underline;\n color: #0043ce;\n color: hsla(var(--hover-primary-text-h, 220.48544), var(--hover-primary-text-s, 100%), var(--hover-primary-text-l, 40.39216%), 1);\n}\n\n.vis-recommender__preview-list--horizontal .vis-recommender__preview-list__see-more a:active {\n text-decoration: underline;\n color: #161616;\n color: hsla(var(--text-01-h, 0), var(--text-01-s, 0%), var(--text-01-l, 8.62745%), 1);\n}\n\n.vis-recommender__preview-list__see-more--hidden {\n visibility: hidden;\n}\n\n",""])},function(e,t,n){var o=n(289);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/**\n* IBM Confidential\n* OCO Source Materials\n* IBM Business Platform: Dashboard\n* (C) Copyright IBM Corp. 2018\n* The source code for this program is not published or otherwise divested of its trade secrets,\n* irrespective of what has been deposited with the U.S. Copyright Office\n**/\n\n.vis-recommendation-common {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n.vis-recommendation-common__header {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n padding: 24px 64px;\n}\n\n.vis-recommendation-common__header__title {\n font-size: 1rem;\n font-weight: 700;\n color: #393939;\n color: hsla(var(--text-02-h, 0), var(--text-02-s, 0%), var(--text-02-l, 22.35294%), 1);\n}\n\n.vis-recommendation-common__progress-indicator-container,\n.vis-recommendation-common__recommender-message {\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n text-align: center;\n vertical-align: middle;\n margin: auto;\n}\n\n.vis-recommendation-common__progress-indicator-container :first-child,\n.vis-recommendation-common__recommender-message :first-child {\n margin: auto;\n}\n\n",""])},function(e,t,n){var o=n(291);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/**\n* IBM Confidential\n* OCO Source Materials\n* IBM Business Platform: Dashboard\n* (C) Copyright IBM Corp. 2018\n* The source code for this program is not published or otherwise divested of its trade secrets,\n* irrespective of what has been deposited with the U.S. Copyright Office\n**/\n\n.vis-recommended {\n min-height: 180px;\n}\n\n.vis-recommended .vis-recommender__preview {\n font-size: 0.875rem;\n font-weight: 700;\n}\n\n",""])},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(0),l=o(s),d=n(93),u=n(295),c=o(u),p=n(9),f=o(p),h=function(e){function t(n){i(this,t);var o=r(this,e.call(this,n));return o.visTypeModel=d.VisTypeModel.create({filter:o.props.filter},{visDefinitions:o.props.visDefinitions}),o}return a(t,e),t.prototype.render=function(){var e=this;return l.default.createElement(c.default,{className:this.props.visTypeClassName,onVisTypeSelected:function(t){return e.props.onVisTypeSelected(t)},model:this.visTypeModel,isVizTypeLocked:this.props.isVizTypeLocked,selectedVisId:this.props.selectedVisId,isExtVis:this.props.isExtVis,iconsFeature:this.props.iconsFeature})},t}(s.Component);h.propTypes={onVisTypeSelected:f.default.func,filter:f.default.array,visTypeClassName:f.default.string,isVizTypeLocked:f.default.bool,selectedVisId:f.default.string,isExtVis:f.default.func,visDefinitions:f.default.array.isRequired,iconsFeature:f.default.object.isRequired},t.default=h},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=n(294),r=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(22),s=function(){function e(){o(this,e),this.polyglot=new a({phrases:r.default})}return e.prototype.get=function(e,t){return this.polyglot.t(e,t)},e}();t.default=new s},function(e,t){var n={__root:{visUsageComparison:"Comparison",visUsageRelationships:"Relationships",visUsageTrend:"Trend",visUsagePartsToWhole:"Parts to whole",visUsageGeospatial:"Geospatial",visUsageAdvanced:"Advanced analytics",visUsageTablesAndSummary:"Tables and summary",visUsageSocialInsights:"Social insights",visUsageOther:"Other"},__cs:{visUsageComparison:"Porovnání",visUsageRelationships:"Vztahy",visUsageTrend:"Trend",visUsagePartsToWhole:"Části k celku",visUsageGeospatial:"Geoprostorová vizualizace",visUsageAdvanced:"Rozšířená analýza",visUsageTablesAndSummary:"Tabulky a souhrn",visUsageSocialInsights:"Náhledy sociálních sítí",visUsageOther:"Ostatní"},__da:{visUsageComparison:"Sammenligning",visUsageRelationships:"Relationer",visUsageTrend:"Tendens",visUsagePartsToWhole:"Dele til hele",visUsageGeospatial:"Geospatial",visUsageAdvanced:"Avancerede analyser",visUsageTablesAndSummary:"Tabeller og resumé",visUsageSocialInsights:"Social insights",visUsageOther:"Andet"},__de:{visUsageComparison:"Vergleich",visUsageRelationships:"Beziehungen",visUsageTrend:"Trend",visUsagePartsToWhole:"Teile zum Ganzen",visUsageGeospatial:"Geografisch-räumlich",visUsageAdvanced:"Erweiterte Analyse",visUsageTablesAndSummary:"Tabellen und Zusammenfassung",visUsageSocialInsights:"Social Insights",visUsageOther:"Sonstige"},__es:{visUsageComparison:"Comparación",visUsageRelationships:"Relaciones",visUsageTrend:"Tendencia",visUsagePartsToWhole:"Componentes del conjunto",visUsageGeospatial:"Geoespacial",visUsageAdvanced:"Análisis avanzado",visUsageTablesAndSummary:"Tablas y resumen",visUsageSocialInsights:"Social insights",visUsageOther:"Otros"},__fi:{visUsageComparison:"Vertailu",visUsageRelationships:"Suhteet",visUsageTrend:"Suuntaus",visUsagePartsToWhole:"Osien suhde kokonaisuuteen",visUsageGeospatial:"Paikkatiedot",visUsageAdvanced:"Edistyksellinen analytiikka",visUsageTablesAndSummary:"Taulukot ja yhteenveto",visUsageSocialInsights:"Sosiaalinen oivallustoiminto",visUsageOther:"Muut"},__fr:{visUsageComparison:"Comparaison",visUsageRelationships:"Relations",visUsageTrend:"Tendance",visUsagePartsToWhole:"De partie à tout",visUsageGeospatial:"Géospatial",visUsageAdvanced:"Analyse avancée",visUsageTablesAndSummary:"Tableaux et récapitulatif",visUsageSocialInsights:"Informations sociales",visUsageOther:"Autres"},__hr:{visUsageComparison:"Usporedba",visUsageRelationships:"Relacije",visUsageTrend:"Trend",visUsagePartsToWhole:"Dijelova prema cjelini",visUsageGeospatial:"Geoprostorni podaci",visUsageAdvanced:"Napredna analitika",visUsageTablesAndSummary:"Tablice i sumiranje",visUsageSocialInsights:"Društveni uvidi",visUsageOther:"Ostalo"},__hu:{visUsageComparison:"Összehasonlítás",visUsageRelationships:"Kapcsolatok",visUsageTrend:"Trend",visUsagePartsToWhole:"Részek - egész",visUsageGeospatial:"Térinformatikai",visUsageAdvanced:"Speciális elemzések",visUsageTablesAndSummary:"Táblák és összegzés",visUsageSocialInsights:"Közösségi betekintések",visUsageOther:"Egyéb"},__it:{visUsageComparison:"Confronto",visUsageRelationships:"Relazioni",visUsageTrend:"Tendenza",visUsagePartsToWhole:"Parti rispetto all'intero",visUsageGeospatial:"Geospaziale",visUsageAdvanced:"Analisi avanzate",visUsageTablesAndSummary:"Tabelle e riepilogo",visUsageSocialInsights:"Informazioni social",visUsageOther:"Altro"},__ja:{visUsageComparison:"比較",visUsageRelationships:"関係",visUsageTrend:"トレンド",visUsagePartsToWhole:"部分と全体の関係",visUsageGeospatial:"地理情報",visUsageAdvanced:"拡張分析",visUsageTablesAndSummary:"表と集計",visUsageSocialInsights:"ソーシャル・インサイト",visUsageOther:"その他"},__kk:{visUsageComparison:"Салыстыру",visUsageRelationships:"Қатынастар",visUsageTrend:"Тренд",visUsagePartsToWhole:"Толық бөліктер",visUsageGeospatial:"Геокеңістіктік",visUsageAdvanced:"Жетілдірілген талдаулар",visUsageTablesAndSummary:"Кестелер және жиынтық",visUsageSocialInsights:"Әлеуметтік түсініктер",visUsageOther:"Басқа"},__ko:{visUsageComparison:"비교",visUsageRelationships:"관계",visUsageTrend:"추세",visUsagePartsToWhole:"일부 대 전부",visUsageGeospatial:"지리공간적",visUsageAdvanced:"고급 분석",visUsageTablesAndSummary:"테이블 및 요약",visUsageSocialInsights:"소셜 인사이트",visUsageOther:"기타"},__nb:{visUsageComparison:"Sammenlikning",visUsageRelationships:"Relasjoner",visUsageTrend:"Trend",visUsagePartsToWhole:"Deler til hele",visUsageGeospatial:"Georom",visUsageAdvanced:"Avansert analyse",visUsageTablesAndSummary:"Tabeller og sammendrag",visUsageSocialInsights:"Sosial innsikt",visUsageOther:"Annet"},__nl:{visUsageComparison:"Vergelijking",visUsageRelationships:"Relaties",visUsageTrend:"Trend",visUsagePartsToWhole:"Delen t.o.v. geheel",visUsageGeospatial:"Georuimtelijk",visUsageAdvanced:"Advanced Analytics",visUsageTablesAndSummary:"Tabellen en overzicht",visUsageSocialInsights:"Sociale inzichten",visUsageOther:"Overige"},__no:{visUsageComparison:"Sammenlikning",visUsageRelationships:"Relasjoner",visUsageTrend:"Trend",visUsagePartsToWhole:"Deler til hele",visUsageGeospatial:"Georom",visUsageAdvanced:"Avansert analyse",visUsageTablesAndSummary:"Tabeller og sammendrag",visUsageSocialInsights:"Sosial innsikt",visUsageOther:"Annet"},__pl:{visUsageComparison:"Porównanie",visUsageRelationships:"Relacje",visUsageTrend:"Trend",visUsagePartsToWhole:"Części całości",visUsageGeospatial:"Geoprzestrzennie",visUsageAdvanced:"Zaawansowana analiza",visUsageTablesAndSummary:"Tabele i podsumowanie",visUsageSocialInsights:"Social Insights",visUsageOther:"Inne"},__pt:{visUsageComparison:"Comparação",visUsageRelationships:"Relacionamentos",visUsageTrend:"Tendência",visUsagePartsToWhole:"Peças para toda",visUsageGeospatial:"Geoespacial",visUsageAdvanced:"Analítica Avançada",visUsageTablesAndSummary:"Tabelas e resumo",visUsageSocialInsights:"Insights sociais",visUsageOther:"Outros"},"__pt-br":{visUsageComparison:"Comparação",visUsageRelationships:"Relacionamentos",visUsageTrend:"Tendência",visUsagePartsToWhole:"Peças para toda",visUsageGeospatial:"Geoespacial",visUsageAdvanced:"Analítica Avançada",visUsageTablesAndSummary:"Tabelas e resumo",visUsageSocialInsights:"Insights sociais",visUsageOther:"Outros"},__ro:{visUsageComparison:"Comparaţie",visUsageRelationships:"Relaţii",visUsageTrend:"Tendinţă",visUsagePartsToWhole:"Părţi - întreg",visUsageGeospatial:"Geospaţială",visUsageAdvanced:"Analize avansate",visUsageTablesAndSummary:"Tabele şi sumare",visUsageSocialInsights:"Insight-uri sociale",visUsageOther:"Altul"},__ru:{visUsageComparison:"Сравнение",visUsageRelationships:"Взаимосвязи",visUsageTrend:"Тенденция",visUsagePartsToWhole:"Части к целому",visUsageGeospatial:"Геопространственные",visUsageAdvanced:"Расширенная аналитика",visUsageTablesAndSummary:"Таблицы и сводка",visUsageSocialInsights:"Социальное интуитивное понимание",visUsageOther:"Другое"},__sl:{visUsageComparison:"Primerjava",visUsageRelationships:"Razmerja",visUsageTrend:"Trendni",visUsagePartsToWhole:"Deli do celote",visUsageGeospatial:"Geoprostorski",visUsageAdvanced:"Napredna analitika",visUsageTablesAndSummary:"Tabele in povzetek",visUsageSocialInsights:"Družabni vpogledi",visUsageOther:"Drugo"},__sv:{visUsageComparison:"Jämförelse",visUsageRelationships:"Relationer",visUsageTrend:"Trend",visUsagePartsToWhole:"Delar till helheten",visUsageGeospatial:"Rumsanalys",visUsageAdvanced:"Avancerad analys",visUsageTablesAndSummary:"Tabeller och summering",visUsageSocialInsights:"Sociala insikter",visUsageOther:"Annan"},__th:{visUsageComparison:"การเปรียบเทียบ",visUsageRelationships:"ความสัมพันธ์",visUsageTrend:"แนวโน้ม",visUsagePartsToWhole:"ส่วนต่อทั้งหมด",visUsageGeospatial:"ภูมิสารสนเทศเชิงพื้นที่",visUsageAdvanced:"การวิเคราะห์ขั้นสูง",visUsageTablesAndSummary:"ตารางและสรุป",visUsageSocialInsights:"ข้อมูลเชิงลึกทางสังคม",visUsageOther:"อื่นๆ"},__tr:{visUsageComparison:"Karşılaştırma",visUsageRelationships:"İlişkiler",visUsageTrend:"Eğilim",visUsagePartsToWhole:"Parçaların bütüne oranı",visUsageGeospatial:"Jeo-uzamsal",visUsageAdvanced:"Gelişmiş analitik",visUsageTablesAndSummary:"Tablolar ve özet",visUsageSocialInsights:"Sosyal öngörüler",visUsageOther:"Daha Fazla"},__zh:{visUsageComparison:"比较",visUsageRelationships:"关系",visUsageTrend:"趋势",visUsagePartsToWhole:"部分对整体",visUsageGeospatial:"地理空间",visUsageAdvanced:"高级分析",visUsageTablesAndSummary:"表和摘要",visUsageSocialInsights:"社交洞察",visUsageOther:"其他"},"__zh-cn":{visUsageComparison:"比较",visUsageRelationships:"关系",visUsageTrend:"趋势",visUsagePartsToWhole:"部分对整体",visUsageGeospatial:"地理空间",visUsageAdvanced:"高级分析",visUsageTablesAndSummary:"表和摘要",visUsageSocialInsights:"社交洞察",visUsageOther:"其他"},"__zh-tw":{visUsageComparison:"比較",visUsageRelationships:"關係",visUsageTrend:"趨勢",visUsagePartsToWhole:"部分至整體",visUsageGeospatial:"地理空間",visUsageAdvanced:"進階分析",visUsageTablesAndSummary:"表格及摘要",visUsageSocialInsights:"Social insights",visUsageOther:"其他"}};n.init=function(e){e||(e=window._i18n&&window._i18n.locale?window._i18n.locale:document.documentElement.lang?document.documentElement.lang:"root");var t=this["__"+e]||this.__root;if(t)for(var n in t)this[n]=t[n];for(var n in this.__root)void 0===this[n]&&(this[n]=this.__root[n])},n.init(),e.exports=n},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(0),l=o(s),d=n(6),u=n(1),c=o(u),p=n(64),f=n(10),h=o(f),m=n(8),g=o(m),v=n(14),_=o(v);n(296);var y=n(93),b=function(e){function t(n){i(this,t);var o=r(this,e.call(this,n));return o.visUsageDisplayOrder=["Comparison","PartsToWhole","Trend","Relationships","TablesAndSummary","Advanced","SocialInsights","Geospatial","Other"],o.a11y=new p.A11YCollections({direction:[p.A11YDirection.UP_DOWN,p.A11YDirection.LEFT_RIGHT],handlers:{elements:function(e){return o._getChartItems(e)}}}),o.handleSelectVisType=g.default.debounce(o.handleSelectVisType,2e3,!0),o}return a(t,e),t.prototype._displayChartTypesByUsage=function(){var e=this;return this.visUsageDisplayOrder.map(function(t,n){var o=e.props.model.getChartSpecs(t);if(o)return l.default.createElement("div",{className:"vis-type-picker__usage",key:"usage"+n,"data-usage-id":t,onKeyPress:function(t){return e.handleKeyPress(t)},onKeyDown:function(t){return e.handleKeyDown(t)}},o.usageLabel,l.default.createElement("div",{className:"vis-type-picker__usage__list"},e._addChartListToUsage(o)))})},t.prototype._addChartListToUsage=function(e){var t=this;return e.chartTypes.map(function(n,o){if(t.props.isExtVis&&t.props.isExtVis(n.id))return null;var i=n.name,r=(0,h.default)({"vis-type-picker__usage__list__item":!0,"vis-type-picker__usage__list__item--selected":t._isSelected(n)}),a=n.id||"customVisual",s=t.props.iconsFeature.getIcon(a)||{},u=s.id||t.props.iconsFeature.getIcon("customVisual").id;return l.default.createElement(d.Tooltip,{key:e.usageId+n.id,orient:"top",title:i},l.default.createElement("div",{className:r,"data-vis-id":n.id,tabIndex:0===o?"0":"-1",onClick:function(e){return t.handleSelectVisType(n.id,e)}},l.default.createElement("div",{className:"vis-type-picker__usage__list__item__icon"},l.default.createElement(d.SVGIcon,{intent:"primary",iconId:u,size:"large"})),l.default.createElement("div",{className:"vis-type-picker__usage__list__item__title"},l.default.createElement(d.Multilinetruncatedtext,{numLines:2,value:i,disableTooltip:!0,style:{width:74,justifyContent:"center"}}))))})},t.prototype._isSelected=function(e){return e&&this.props.selectedVisId===e.id},t.prototype.render=function(){var e=this._displayChartTypesByUsage();return l.default.createElement("div",{className:"vis-type-picker",tabIndex:"-1"},e)},t.prototype.handleKeyPress=function(e){"Enter"===e.key&&this.handleSelectVisType(this.focusedChartId())},t.prototype.handleKeyDown=function(e){this.a11y.onKeyDown(e)},t.prototype.handleSelectVisType=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.detail&&1!==t.detail||!e||this.props.onVisTypeSelected(e)},t.prototype.focusedChartId=function(){var e=document.activeElement.dataset.visId;this.handleSelectVisType(e)},t.prototype._getChartItems=function(e){return(0,_.default)(e).closest(".vis-type-picker__usage").find(".vis-type-picker__usage__list__item")},t}(s.Component);b.propTypes={model:c.default.stateTree(y.VisTypeModel).isRequired,onVisTypeSelected:c.default.func,isVizTypeLocked:c.default.bool,selectedVisId:c.default.string,isExtVis:c.default.func,iconsFeature:c.default.object.isRequired},t.default=b},function(e,t,n){var o=n(297);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/**\n* IBM Confidential\n* OCO Source Materials\n* IBM Business Platform: Dashboard\n* (C) Copyright IBM Corp. 2018, 2020\n* The source code for this program is not published or otherwise divested of its trade secrets,\n* irrespective of what has been deposited with the U.S. Copyright Office\n**/\n\n.vis-type-picker {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: row wrap;\n flex-flow: row wrap;\n overflow-y: auto;\n padding-top: 32px;\n}\n\n.vis-type-picker__usage {\n -ms-flex-positive: 1;\n flex-grow: 1;\n -ms-flex-flow: column;\n flex-flow: column;\n margin: 0 16px 24px 16px;\n font-size: 1rem;\n font-weight: 700;\n}\n\n.vis-type-picker__usage__list {\n margin-top: 8px;\n -ms-flex-flow: row wrap;\n flex-flow: row wrap;\n background-color: white;\n background-color: hsla(var(--ui-01-h, 0), var(--ui-01-s, 0%), var(--ui-01-l, 100%), 1);\n padding: 16px;\n box-sizing: border-box;\n}\n\n.vis-type-picker__usage__list__item {\n -ms-flex-flow: column;\n flex-flow: column;\n text-align: center;\n font-size: 0.875rem;\n font-weight: 700;\n width: 90px;\n height: 104px;\n padding-bottom: 8px;\n padding-top: 8px;\n cursor: pointer;\n}\n\n.vis-type-picker__usage__list__item:hover {\n background-color: #e5e5e5;\n background-color: hsla(var(--hover-ui-h, 0), var(--hover-ui-s, 0%), var(--hover-ui-l, 89.80392%), 1);\n}\n\n.vis-type-picker__usage__list__item:active {\n background-color: #c6c6c6;\n background-color: hsla(var(--active-ui-h, 0), var(--active-ui-s, 0%), var(--active-ui-l, 77.64706%), 1);\n}\n\n.vis-type-picker__usage__list__item:active {\n border-color: #a8c0f3;\n border-color: hsla(var(--focus-h, 220.8), var(--focus-s, 75.75758%), var(--focus-l, 80.58824%), 1);\n}\n\n.vis-type-picker__usage__list__item--selected {\n background-color: #e0e0e0;\n background-color: hsla(var(--selected-ui-h, 0), var(--selected-ui-s, 0%), var(--selected-ui-l, 87.84314%), 1);\n}\n\n.vis-type-picker__usage__list__item__icon {\n margin-top: 16px;\n margin-bottom: 16px;\n}\n\n.vis-type-picker__usage__list__item__icon svg {\n fill: #161616;\n fill: hsla(var(--icon-01-h, 0), var(--icon-01-s, 0%), var(--icon-01-l, 8.62745%), 1);\n}\n\n.vis-type-picker__usage__list__item__title {\n margin-left: 8px;\n margin-right: 8px;\n}\n\n",""])},function(e,t,n){var o=n(299);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018, 2020\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.explore__animation--fade-appear,\n.explore__animation--fade-enter {\n opacity: 0.1;\n}\n\n.explore__animation--fade-appear-active,\n.explore__animation--fade-enter-active {\n opacity: 1;\n transition: opacity 300ms ease-in;\n}\n\n.explore__animation--fade-exit {\n opacity: 1;\n transform: scale(1, 1);\n}\n\n.explore__animation--fade-exit-active {\n opacity: 0.1;\n transition: opacity 300ms ease-out;\n}\n\n.explore__animation--slideDown-appear,\n.explore__animation--slideDown-enter {\n opacity: 0.1;\n transform: translateY(-100%);\n}\n\n.explore__animation--slideDown-appear-active,\n.explore__animation--slideDown-enter-active {\n opacity: 1;\n transform: translateY(0);\n transition: opacity 300ms ease-in, transform 300ms ease-in;\n}\n\n.explore__animation--slideDown-exit {\n opacity: 1;\n transform: translateY(0);\n}\n\n.explore__animation--slideDown-exit-active {\n opacity: 0.1;\n transform: translateY(-100%);\n transition: opacity 300ms ease-out, transform 300ms ease-out;\n}\n\n.explore__animation--slideUp-appear,\n.explore__animation--slideUp-enter {\n opacity: 0.1;\n transform: translateY(100%);\n}\n\n.explore__animation--slideUp-appear-active,\n.explore__animation--slideUp-enter-active {\n opacity: 1;\n transform: translateY(0);\n transition: opacity 300ms ease-in, transform 300ms ease-in;\n}\n\n.explore__animation--slideUp-exit {\n opacity: 1;\n transform: translateY(0);\n}\n\n.explore__animation--slideUp-exit-active {\n opacity: 0.1;\n transform: translateY(100%);\n transition: opacity 300ms ease-out, transform 300ms ease-out;\n}\n\n.explore__animation--slideLeft-appear,\n.explore__animation--slideLeft-enter {\n opacity: 0.1;\n transform: translateX(100%);\n}\n\n.explore__animation--slideLeft-appear-active,\n.explore__animation--slideLeft-enter-active {\n opacity: 1;\n transform: translateX(0);\n transition: opacity 300ms ease-in, transform 300ms ease-in;\n}\n\n.explore__animation--slideLeft-exit {\n opacity: 1;\n transform: translateX(0);\n}\n\n.explore__animation--slideLeft-exit-active {\n opacity: 0.1;\n transform: translateX(100%);\n transition: opacity 300ms ease-out, transform 300ms ease-out;\n}\n\n.vis-recommender-explore {\n -ms-flex-direction: column;\n flex-direction: column;\n min-height: 100%;\n background-color: #f4f4f4;\n background-color: hsla(var(--ui-background-h, 0), var(--ui-background-s, 0%), var(--ui-background-l, 95.68627%), 1);\n}\n\n.vis-recommender-explore__header {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n padding: 24px 64px;\n background-color: white;\n background-color: hsla(var(--ui-01-h, 0), var(--ui-01-s, 0%), var(--ui-01-l, 100%), 1);\n}\n\n.vis-recommender-explore__header__title {\n -ms-flex: 1;\n flex: 1;\n font-size: 1rem;\n font-weight: 700;\n color: #393939;\n color: hsla(var(--text-02-h, 0), var(--text-02-s, 0%), var(--text-02-l, 22.35294%), 1);\n}\n\n.vis-recommender-explore__header__close-button button {\n width: 32px;\n height: 32px;\n padding: 0;\n border: none;\n background-color: transparent;\n}\n\n.vis-recommender-explore__header__close-button button:hover {\n background-color: rgba(0, 0, 0, 0.05);\n}\n\n.vis-recommender-explore__header__close-button button:hover,\n.vis-recommender-explore__header__close-button button:focus {\n opacity: 1;\n}\n\n.vis-recommender-explore__title {\n font-size: 1rem;\n font-weight: 700;\n color: #393939;\n color: hsla(var(--text-02-h, 0), var(--text-02-s, 0%), var(--text-02-l, 22.35294%), 1);\n padding: 32px 16px 16px 16px;\n}\n\n.vis-recommender-explore__content {\n padding: 0 16px;\n}\n\n.vis-recommender-explore__vis-recommendation-view {\n margin-left: 64px;\n margin-right: 64px;\n}\n\n.vis-recommender-explore__vis-type-picker {\n position: relative;\n -ms-flex: 1;\n flex: 1;\n padding-bottom: 8px;\n}\n\n.vis-recommender-explore__vis-recommender-picker {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n padding-bottom: 96px;\n}\n\n",""])},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(0),l=o(s),d=n(1),u=o(d),c=n(54),p=o(c),f=n(55),h=o(f),m=n(2),g=o(m),v=n(301),_=o(v),y=n(304),b=o(y);n(307);var w=function(e){function t(){return i(this,t),r(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.active,n=e.onClose;return l.default.createElement(p.default,{active:t,className:"explore__animation--slideDown",fullHeight:!0,onClickOutside:n},l.default.createElement(h.default,{title:g.default.get("compareChooser_title"),subTitle:g.default.get("compareChooser_subTitle"),onClose:n,className:"explore-slideout-compareChooser"},l.default.createElement(_.default,{recommendationVM:this.props.customRecommendationVM,dashboardApi:this.props.dashboardApi,logger:this.props.logger,onItemSelected:this.props.onItemSelected,onItemAdded:this.props.onItemAdded}),l.default.createElement(b.default,{recommendationVM:this.props.smartsRecommendationVM,dashboardApi:this.props.dashboardApi,logger:this.props.logger,onItemSelected:this.props.onItemSelected,onItemAdded:this.props.onItemAdded})))},t}(s.Component);w.propTypes={active:u.default.bool,onClose:u.default.func,dashboardApi:u.default.object.isRequired,logger:u.default.object.isRequired,customRecommendationVM:u.default.object.isRequired,smartsRecommendationVM:u.default.object.isRequired,selectedWidgetModel:u.default.object.isRequired,onItemSelected:u.default.func.isRequired,onItemAdded:u.default.func},w.defaultProps={active:!1,onClose:function(){}},t.default=w},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(0),l=o(s),d=n(1),u=o(d),c=n(2),p=o(c),f=n(40),h=o(f),m=n(29),g=o(m),v=n(6);n(302);var _="custom-comparison",y=function(e){function t(){var n,o,a;i(this,t);for(var s=arguments.length,l=Array(s),d=0;d0)return e.renderSection(n,i,o)}))},t.prototype.renderEmptyMessage=function(){return d.default.createElement("div",{className:S+"__empty__list"},m.default.get("compareChooser_recommenations_no_recommendations_found"))},t.prototype.renderSection=function(e,t,n){var o=C.default.escape(t.headerText(n));return d.default.createElement("div",{key:e,className:S+"__section"},d.default.createElement("div",{className:S+"__section__header__container"},d.default.createElement("div",null,m.default.get("compareChooser_recommendations_headers_columnRelated")),d.default.createElement(w.default,null,d.default.createElement("div",{className:S+"__section__header__container__column"},o))),d.default.createElement("div",{className:S+"__section__body"},this.renderList(n)))},t.prototype.renderList=function(e){return d.default.createElement("div",{className:S+"__preview-list--horizontal"},d.default.createElement(y.default,{items:e,dashboardApi:this.props.dashboardApi,onClickItem:this._onClickItem,onAddItem:this.props.onItemAdded,additionalProperties:v.default,logger:this.props.logger,isNewLayoutEnabled:!0,horizontal:!0,noBottomTitle:!0,enableSeeMore:!1,itemSize:"medium",hasFocus:!1}))},t}(l.Component))||s;E.propTypes={dashboardApi:f.default.object.isRequired,logger:f.default.object.isRequired,recommendationVM:f.default.object.isRequired,onItemSelected:f.default.func.isRequired,onItemAdded:f.default.func},E.defaultProps={},t.default=E},function(e,t,n){var o=n(306);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/**\n* IBM Confidential\n* OCO Source Materials\n* IBM Business Platform: Dashboard\n* (C) Copyright IBM Corp. 2019\n* The source code for this program is not published or otherwise divested of its trade secrets,\n* irrespective of what has been deposited with the U.S. Copyright Office\n**/\n\n.recommended-comparison {\n min-height: 180px;\n padding-bottom: 16px;\n}\n\n.recommended-comparison__section__header__container {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n padding: 16px 0 8px 8px;\n}\n\n.recommended-comparison__section__header__container__column {\n padding-left: 3px;\n font-weight: bold;\n}\n\n",""])},function(e,t,n){var o=n(308);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2019\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.explore-slideout-compareChooser {\n background: none;\n}\n\n.explore-slideout-compareChooser .explore-slideout-content__header {\n padding: 0 0 16px 0;\n margin: 48px 48px 0 48px;\n}\n\n.explore-slideout-compareChooser .explore-slideout-content__header__section__title {\n font-size: 28px;\n font-weight: 250;\n}\n\n.explore-slideout-compareChooser .explore-slideout-content__content {\n border-top: none;\n}\n\n.explore-slideout-compareChooser .explore-slideout-content__content .vis-recommender__preview {\n border: 1px solid #eaeaea;\n}\n\n.explore-slideout-compareChooser .explore-slideout-content__content .vis-recommender__preview-list__see-more--hidden {\n display: none;\n}\n\n.explore-slideout-compareChooser .custom-comparison__title,\n.explore-slideout-compareChooser .recommended-comparison__title {\n font-size: 1.1rem;\n font-weight: 300;\n}\n\n.explore-slideout-compareChooser .custom-comparison__content,\n.explore-slideout-compareChooser .recommended-comparison__content {\n margin-top: 8px;\n}\n\n.explore-slideout-compareChooser .custom-comparison__common,\n.explore-slideout-compareChooser .recommended-comparison__common {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n padding: 8px 0;\n}\n\n.explore-slideout-compareChooser .custom-comparison__common__header,\n.explore-slideout-compareChooser .recommended-comparison__common__header {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n padding: 24px 64px;\n}\n\n.explore-slideout-compareChooser .custom-comparison__common__header__title,\n.explore-slideout-compareChooser .recommended-comparison__common__header__title {\n font-size: 1rem;\n font-weight: 700;\n color: #343334;\n}\n\n.explore-slideout-compareChooser .custom-comparison__preview-list--horizontal,\n.explore-slideout-compareChooser .recommended-comparison__preview-list--horizontal {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n\n",""])},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t1}return!1},t.prototype.onDrop=function(e){var t=this;return this.getSpecfromPin(e,this.dashboardApi).then(function(e){return t._addFragment(e)})},t.prototype._addFragment=function(e){var t={undoRedoTransactionId:l.default.uniqueId("exploreContainerDnDHandler")},n={insertBefore:null,parentId:this.fragmentParentId,model:e};return this.addFragment(n,"exploreContainerDnDHandler",t)},t}(u.default);t.default=c},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(0),l=o(s),d=n(6),u=n(314),c=o(u),p=n(18),f=o(p),h=n(2),m=o(h),g=function(e){function t(){return i(this,t),r(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){return l.default.createElement("div",{className:"explore-empty-container-dnd"},l.default.createElement(f.default,{icon:l.default.createElement(d.SVGIcon,{iconId:c.default.id,width:32,height:32}),title:m.default.get("dnd_create_cards")}))},t}(s.Component);t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),i=n.n(o),r=n(13),a=n.n(r),s=new i.a({id:"upload_32",use:"upload_32-usage",viewBox:"0 0 32 32",content:''});a.a.add(s);t.default=s},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s,l=n(0),d=o(l),u=n(9),c=o(u),p=n(5),f=n(6),h=n(316),m=o(h),g=n(317),v=o(g),_=n(318),y=o(_),b=n(319),w=o(b),x=n(320),C=o(x),S=n(2),E=o(S),M=n(335),T=o(M),I=n(336),A=o(I),P=n(339),O=o(P),D=n(342),R=o(D),L=n(345),N=o(L),F=n(30),V=(0,p.observer)(s=function(e){function t(n){i(this,t);var o=r(this,e.call(this,n));return o.onCompareButtonClick=function(){o.props.exploreVM.isNewCompareCardRecommendationsEnabled()?o._onCompareButtonClick_newBehaviour():o._onCompareButtonClick_oldBehaviour()},o.state={toolbarSize:void 0},o}return a(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.exploreVM,o=t.dashboardApi;if(n.toolbar.getIsHidden())return null;var i=n.selectedCards.items,r=i.map(function(t){return e._getCard(t)}),a=n.isRelatedVizToolbarItemEnabled(),s=n.toolbar.getCardActions(r),l=n.selectedWidgets,u="",c=[];l&&l.forEach(function(t){var n=t&&t.getVisId&&t.getVisId(),o=n&&e._getVisType(n);o&&(u=o.getLabel(),c.push(o))},this);var p=1!=c.length,h=c.length>=1?n.toolbar.getWidgetActions():[],g=this.renderNavigationButtons(),_=this.renderCompareButton(),b=this._renderActions(s),x=this._renderActions(h),S=s.length&&h.length?d.default.createElement(f.Separator,{className:"explore-vis-toolbar__separator",orientation:"vertical"}):null,M=this.getItems(n.toolbar.getItems()),I=this._getCompareModelOnSelectedCard(),P=this._getFilterDockModelOnSelectedCard(),O=P&&this._showFilterDock(),D=null;O&&(D=d.default.createElement(C.default,{filterDockModel:P,dashboardApi:o}));var L=void 0;L=I&&I.showStats?E.default.get("exploreToolbar_hide_compare"):E.default.get("exploreToolbar_show_compare");var V=void 0;V=I&&I.isCompareLineShown()?E.default.get("exploreToolbar_hide_refLine"):E.default.get("exploreToolbar_show_refLine");var k=void 0;return k=n.showCanvasSidePanel?E.default.get("exploreToolbar_hide_fields"):E.default.get("exploreToolbar_show_fields"),d.default.createElement(R.default,{onResize:function(t){return e.setState({toolbarSize:t})}},d.default.createElement(N.default,{align:"left"},d.default.createElement(A.default,{onAddCard:function(){var t;return(t=e.props).onAddCard.apply(t,arguments)},exploreVM:n}),g,d.default.createElement(F.CaretToolbarItem,{icon:d.default.createElement(f.SVGIcon,{iconId:"visualizations-changeVisualization"}),label:u,title:u,hidden:p,selected:n.showModalVisTypePicker,onPrimaryAction:this._handleShowVisTypesClick.bind(this),size:this.state.toolbarSize,id:"changeVisType"}),d.default.createElement(F.CaretToolbarItem,{iconId:y.default.id,label:E.default.get("exploreToolbar_related"),title:E.default.get("exploreToolbar_related"),hidden:!a||p,selected:n.showModalRelatedVisPicker,onPrimaryAction:this._handleShowRelatedVisClick.bind(this),size:this.state.toolbarSize,id:"relatedVis"}),_,x,S,b),d.default.createElement(N.default,{align:"right"},d.default.createElement(F.ToolbarItem,{iconId:w.default.id,hidden:!I,title:V,enabled:!!I&&I.isCompareLineEnabled(),selected:!!I&&I.isCompareLineShown(),onPrimaryAction:function(){return e.onCompareCrosshairClick()}}),d.default.createElement(F.ToolbarItem,{iconId:v.default.id,hidden:!I,title:L,enabled:!!I&&I.isCompareTableEnabled(),selected:!!I&&I.showStats,onPrimaryAction:function(){return e.onCompareStatsClick()}}),D,I&&d.default.createElement(T.default,{model:I,enabled:!!I&&I.isSyncMenuEnabled(),hidden:!I}),d.default.createElement(F.ToolbarItem,{iconId:m.default.id,title:k,className:"showHideDetailsSlots",hidden:n.isStartingPointsDisplayed(),selected:n.showCanvasSidePanel,onPrimaryAction:this._handleShowCanvasSidePanelClick.bind(this)})),d.default.createElement(N.default,{align:"extright"},M))},t.prototype._getCompareModelOnSelectedCard=function(){var e=this._getSelectedCard();return(this._getCompareCard(e)||{}).compareModel},t.prototype._getFilterDockModelOnSelectedCard=function(){var e=this._getSelectedCard();return(this._getCompareCard(e)||this._getStartingPointsModel()||{}).filterDockModel},t.prototype._showFilterDock=function(){var e=this._getSelectedCard(),t=this._getCompareCard(e)||this._getStartingPointsModel()||{},n=t.showFilterDock;return!n||n()},t.prototype._getCompareCard=function(e){if(e){var t=this._getCard(e);if(t&&"compare"===t.subType)return t}},t.prototype._getStartingPointsModel=function(){if(this.props.exploreVM.isStartingPointsDisplayed()&&this.props.exploreVM.isFilterStartingPointsEnabled())return this.props.boardModel.layout.startingPointsModel},t.prototype._getCard=function(e){return e&&this.props.boardModel.layout.findModel(e)},t.prototype._getSelectedCard=function(){var e=this.props.exploreVM;return e.isStartingPointsDisplayed()?void 0:e.getDisplayedCard()},t.prototype.onCompareCrosshairClick=function(){var e=this._getCompareModelOnSelectedCard();e&&e.toggleShowCompareLine()},t.prototype.onCompareStatsClick=function(){var e=this._getCompareModelOnSelectedCard();e&&e.setShowStats(!e.showStats)},t.prototype.onCompareOptionsClick=function(){this.props.exploreVM.toolbar.toggleCompareOptionsContextMenu()},t.prototype._onCompareButtonClick_newBehaviour=function(){this.props.exploreVM.setShowCompareSlideout(!this.props.exploreVM.showCompareSlideout)},t.prototype._onCompareButtonClick_oldBehaviour=function(){var e=this,t=this._getSelectedCard();if(t){var n=this._getCard(t),o=this.props.exploreVM.layoutModel.addCompareCardFromExisting(n,n);if(o){this.props.exploreVM.setDisplayedToCard(o);var i=this.props.exploreVM.layoutModel.findModel(o);if(i&&2===i.items.length){var r=i.items[1];this.props.exploreVM.setItemInCardToSelectWhenVisible({widgetId:r.id,tabId:"slots"});var a=this.props.dashboardApi;a&&a.getCanvasWhenReady().then(function(e){return e.getWidgetsWhenRendered(i.items.map(function(e){return e.id}))}).then(function(){return e.props.exploreVM.selectItemInCardWhenVisible()})}}}},t.prototype.renderNavigationButtons=function(){var e=this.props.exploreVM,t=e.displayedCardIndex,n=e.numberOfCards;if(!(t<0||n<=0))return d.default.createElement(F.CustomToolbarItem,null,d.default.createElement(O.default,{index:t,count:n,onNavigatePrevious:this._handleNavigatePrevious.bind(this),onNavigateNext:this._handleNavigateNext.bind(this)}))},t.prototype.renderCompareButton=function(){if(this._isMappingComplete()&&!this.props.exploreVM.isCompare())return d.default.createElement(F.ToolbarItem,{selected:!1,label:E.default.get("exploreToolbar_compare"),title:E.default.get("exploreToolbar_compare_tooltip"),onPrimaryAction:this.onCompareButtonClick})},t.prototype.getItems=function(e){if(e)return e.map(function(e,t){var n=e.component,o=e.data,i=void 0===o?{}:o;return d.default.createElement(F.CustomToolbarItem,{key:t,id:i.id},n)})},t.prototype._isMappingComplete=function(){return this.props.exploreVM.isSelectedWidgetMappingComplete()},t.prototype._renderActions=function(e){var t=this;if(e)return e.map(function(e,n){var o=t._renderIcon(e.icon);return d.default.createElement(F.ToolbarItem,{key:n,icon:o,title:e.label,className:e.className,onPrimaryAction:function(n){return t._onPrimaryAction(e,n)}})})},t.prototype._renderIcon=function(e){return d.default.createElement("svg",{style:{width:"16px"},className:"ba-common-svgIcon is-normal",role:"img",focusable:!1},d.default.createElement("use",{xmlnsXlink:"http://www.w3.org/1999/xlink",xlinkHref:"#"+e}))},t.prototype._getVisType=function(e){var t=this.props.exploreVM.visTypes&&this.props.exploreVM.visTypes.filter(function(t){return t.getId()===e});return t?t[0]:null},t.prototype._handleNavigatePrevious=function(){this.props.exploreVM.navigatePreviousCard()},t.prototype._handleNavigateNext=function(){this.props.exploreVM.navigateNextCard()},t.prototype._handleShowVisTypesClick=function(){this.props.exploreVM.setShowModalVisTypePicker(!this.props.exploreVM.showModalVisTypePicker)},t.prototype._handleShowRelatedVisClick=function(){this.props.exploreVM.setShowModalRelatedVisPicker(!this.props.exploreVM.showModalRelatedVisPicker)},t.prototype._handleShowCanvasSidePanelClick=function(){this.props.exploreVM.toggleCanvasSidePanel()},t.prototype._onPrimaryAction=function(e,t){var n=e.action;n&&n(t)},t}(l.Component))||s;V.propTypes={exploreVM:c.default.object.isRequired,boardModel:c.default.object.isRequired,dashboardApi:c.default.object.isRequired,onAddCard:c.default.func.isRequired},t.default=V},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),i=n.n(o),r=n(13),a=n.n(r),s=new i.a({id:"open-panel--filled--right_32",use:"open-panel--filled--right_32-usage",viewBox:"0 0 32 32",content:''});a.a.add(s);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),i=n.n(o),r=n(13),a=n.n(r),s=new i.a({id:"compare_32",use:"compare_32-usage",viewBox:"0 0 32 32",content:''});a.a.add(s);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),i=n.n(o),r=n(13),a=n.n(r),s=new i.a({id:"related-visualization_16",use:"related-visualization_16-usage",viewBox:"0 0 16 16",content:''});a.a.add(s);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),i=n.n(o),r=n(13),a=n.n(r),s=new i.a({id:"reference-line_16",use:"reference-line_16-usage",viewBox:"0 0 16 16",content:''});a.a.add(s);t.default=s},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s,l=n(0),d=o(l),u=n(9),c=o(u),p=n(5),f=n(321),h=o(f),m=n(30),g=n(2),v=o(g),_=n(97),y=o(_),b=(0,p.observer)(s=function(e){function t(n){return i(this,t),r(this,e.call(this,n))}return a(t,e),t.prototype.render=function(){var e=this._renderBadge();return d.default.createElement(m.ToolbarItem,{iconId:y.default.id,hidden:!this.props.filterDockModel,onPrimaryAction:this._handleFilterDockClick.bind(this),title:v.default.get("exploreFilterDock_Title")},e)},t.prototype._renderBadge=function(){var e=this.props.filterDockModel&&this.props.filterDockModel.getFilterCount();if(e)return d.default.createElement(h.default,{number:e})},t.prototype._handleFilterDockClick=function(){var e=this.props.dashboardApi.getDashboardCoreSvc(".CanvasExtensions");if(e){var t=e.getExtension("filterDock"),n=e.getExtension("filterDockCollapseControl"),o=document.getElementsByClassName("canvasExtensionTop");o[0]&&(o[0].appendChild(t.$el.get(0)),o[0].appendChild(n.$el.get(0)),this.props.dashboardApi.triggerDashboardEvent("filterDock:expand"))}},t}(l.Component))||s;b.propTypes={dashboardApi:c.default.object.isRequired,filterDockModel:c.default.object},t.default=b},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s,l=n(0),d=o(l),u=n(9),c=o(u),p=n(5);n(322);var f=(0,p.observer)(s=function(e){function t(n){i(this,t);var o=r(this,e.call(this,n));return o.state={},o}return a(t,e),t.prototype.render=function(){var e=this.props.number;return d.default.createElement("span",{className:"explore__badge"},e)},t}(l.Component))||s;f.propTypes={number:c.default.number},f.defaultProps={number:0},t.default=f},function(e,t,n){var o=n(323);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,".explore__badge {\n display: inline-block;\n position: absolute;\n min-width: 4px;\n padding: 1px 4px;\n font-size: 12px;\n line-height: 1;\n color: #e0e0e0;\n color: hsla(var(--ui-03-h, 0), var(--ui-03-s, 0%), var(--ui-03-l, 87.84314%), 1);\n text-align: center;\n white-space: nowrap;\n vertical-align: baseline;\n background-color: #161616;\n background-color: hsla(var(--icon-01-h, 0), var(--icon-01-s, 0%), var(--icon-01-l, 8.62745%), 1);\n border-radius: 10px;\n top: 0px;\n right: -2px;\n}\n\n.explore__badge_empty {\n visibility: hidden;\n}\n\n",""])},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t0&&n.push("separator","label"),this._excludeTypes(t,n).map(function(t,n){return e.renderItem(t,n)})||[]},t.prototype._excludeTypes=function(e,t){return this.props.excluded.length>0&&e.filter(function(e){return-1===t.indexOf(e.type)})||e},t}(l.Component))||s;b.propTypes={onClick:p.default.func,excluded:p.default.array},b.defaultProps={onClick:function(){},excluded:[]},t.default=b},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.explore-add-new__label {\n font-size: 0.875rem;\n font-weight: 400;\n line-height: 1.125rem;\n}\n\n.explore-add-new__separator {\n border-bottom: 1px solid #eaeaea;\n margin: 16px 0;\n width: 100%;\n}\n\n.explore-add-new__label {\n margin-bottom: 8px;\n}\n\n.explore-add-new__content {\n padding: 24px;\n}\n\n.explore-add-new__content__item {\n cursor: pointer;\n margin-bottom: 15px;\n text-align: center;\n}\n\n.explore-add-new__content__item * {\n cursor: pointer;\n}\n\n.explore-add-new__content__item:hover .explore-add-new__content__item__icon,\n.explore-add-new__content__item:active .explore-add-new__content__item__icon {\n outline-style: solid;\n outline-width: 2px;\n outline-color: #161616;\n outline-color: hsla(var(--ui-05-h, 0), var(--ui-05-s, 0%), var(--ui-05-l, 8.62745%), 1);\n border-color: transparent;\n}\n\n.explore-add-new__content__item:last-child {\n margin-bottom: 0px;\n}\n\n.explore-add-new__content__item__icon {\n border: 1px solid;\n border-color: #e0e0e0;\n border-color: hsla(var(--ui-03-h, 0), var(--ui-03-s, 0%), var(--ui-03-l, 87.84314%), 1);\n padding: 10px;\n width: 142px;\n height: 96px;\n display: -ms-flexbox;\n display: flex;\n}\n\n.explore-add-new__content__item__icon__card {\n border: 1px dashed;\n border-color: #e0e0e0;\n border-color: hsla(var(--ui-03-h, 0), var(--ui-03-s, 0%), var(--ui-03-l, 87.84314%), 1);\n height: 100%;\n width: 100%;\n}\n\n.explore-add-new__content__item__icon__card:nth-child(2) {\n margin-left: 5px;\n}\n\n.explore-add-new__content__item__caption {\n padding: 5px;\n}\n\n.explore-add-new__content__add-icon {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n color: #161616;\n color: hsla(var(--icon-01-h, 0), var(--icon-01-s, 0%), var(--icon-01-l, 8.62745%), 1);\n}\n\n",""])},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s,l=n(0),d=o(l),u=n(5),c=n(1),p=o(c),f=n(6),h=n(30),m=n(2),g=o(m);n(340);var v=(0,u.observer)(s=function(e){function t(n){return i(this,t),r(this,e.call(this,n))}return a(t,e),t.prototype.render=function(){var e=this,t=this.renderLabel(this.props.index,this.props.count);return d.default.createElement("div",{className:"explore-card-navigation"},d.default.createElement(h.CaretToolbarItem,{arrow:"up",title:g.default.get("card_navigation_previous"),enabled:this.canNavigatePrevious(),onPrimaryAction:function(){return e.onNavigateLeftClick()}}),d.default.createElement(h.ToolbarItem,null,t),d.default.createElement(h.CaretToolbarItem,{arrow:"down",title:g.default.get("card_navigation_next"),enabled:this.canNavigateNext(),onPrimaryAction:function(){return e.onNavigateRightClick()}}))},t.prototype.renderLabel=function(e,t){if(!(e>=t||t>0&&e<0)){var n=void 0;return n=t>0?e+1+"/"+t:""+t,d.default.createElement(f.Label,{label:n})}},t.prototype.isEmpty=function(){return this.props.count<=0},t.prototype.canNavigatePrevious=function(){return!this.isEmpty()&&this.props.index>0},t.prototype.canNavigateNext=function(){return!this.isEmpty()&&this.props.index0&&void 0!==arguments[0]?arguments[0]:{},t=e.entry;t=void 0===t?{}:t;var n=t.width;if(n){var o=Object.keys(m).find(function(e){var t=m[e],o=t[0],i=t[1];return n>=o&&n<=i});o&&(this.setState({size:o}),this.props.onResize(o))}},t}(s.Component);g.propTypes={children:u.default.any,onResize:u.default.func},g.defaultProps={children:[],onResize:function(){}},t.default=g},function(e,t,n){var o=n(344);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,'/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018, 2020\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.explore-vis-toolbar.small .explore-vis-toolbar__container .explore-vis-toolbar__items.explore-vis-toolbar__items--extright {\n padding-left: 0px;\n}\n\n.explore-vis-toolbar {\n position: relative;\n width: 100%;\n min-height: 60px;\n -ms-flex-align: center;\n align-items: center;\n z-index: 200;\n border-bottom: 1px solid;\n border-bottom-color: #e0e0e0;\n border-bottom-color: hsla(var(--ui-03-h, 0), var(--ui-03-s, 0%), var(--ui-03-l, 87.84314%), 1);\n}\n\n.explore-vis-toolbar__container {\n background-color: white;\n background-color: hsla(var(--ui-01-h, 0), var(--ui-01-s, 0%), var(--ui-01-l, 100%), 1);\n padding: 0 16px;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n\n.explore-vis-toolbar__item__container {\n width: 100%;\n}\n\n.explore-vis-toolbar__full-item[data-id="com.ibm.bi.smarts.conversation.conversationCompact"] {\n width: 100%;\n max-width: calc(100% - 16px);\n}\n\n.explore-vis-toolbar__items {\n -ms-flex-align: center;\n align-items: center;\n height: 60px;\n}\n\n.explore-vis-toolbar__items--left {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -ms-flex: 1 0 auto;\n flex: 1 0 auto;\n}\n\n.explore-vis-toolbar__items--right {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-pack: end;\n justify-content: flex-end;\n -ms-flex: 0 1 auto;\n flex: 0 1 auto;\n}\n\n.explore-vis-toolbar__items--extright {\n padding-left: 8px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex: 0 1 auto;\n flex: 0 1 auto;\n}\n\n.explore-vis-toolbar__items--center {\n margin: 0 16px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex: 1 0 auto;\n flex: 1 0 auto;\n}\n\n.explore-vis-toolbar__items > :last-child {\n margin-right: 0;\n}\n\n.explore-vis-toolbar__items .explore-vis-toolbar__separator {\n height: 32px;\n border-color: #e0e0e0;\n border-color: hsla(var(--ui-03-h, 0), var(--ui-03-s, 0%), var(--ui-03-l, 87.84314%), 1);\n}\n\n.explore-vis-toolbar .ba-common-searchInput .ba-common-baseInput {\n width: 100%;\n}\n\n.explore-vis-toolbar .ba-common-searchInput .ba-common-baseInput input {\n padding-top: 0px;\n}\n\n',""])},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s,l=n(0),d=o(l),u=n(5),c=n(1),p=o(c),f=n(10),h=o(f),m=(0,u.observer)(s=function(e){function t(n){return i(this,t),r(this,e.call(this,n))}return a(t,e),t.prototype.render=function(){var e=this.props.align,t=(0,h.default)({"explore-vis-toolbar__items":!0,"explore-vis-toolbar__items--left":"left"===e,"explore-vis-toolbar__items--center":"center"===e,"explore-vis-toolbar__items--right":"right"===e,"explore-vis-toolbar__items--extright":"extright"===e});return d.default.createElement("div",{className:t},this.props.children)},t}(l.Component))||s;m.propTypes={align:p.default.string,children:p.default.any},m.defaultProps={align:"left",children:[]},t.default=m},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s,l=n(0),d=o(l),u=n(5),c=n(1),p=o(c),f=n(99),h=o(f),m=n(358),g=o(m),v=n(7),_=n(26),y=o(_),b=n(359),w=o(b),x=(0,u.observer)(s=function(e){function t(n){return i(this,t),r(this,e.call(this,n))}return a(t,e),t.prototype.render=function(){return this.getRenderMarkup()},t.prototype.isModelAlive=function(){return(0,v.isAlive)(this.props.model)},t.prototype.componentDidUpdate=function(){!1===this.props.model.exploreVM.isStartingPointsDisplayed()&&this.isModelAlive()&&this.props.layoutOwner._callChildrenFunction("triggerWidgetRender")},t.prototype.getRenderMarkup=function(){var e=this,t=this.props.model.exploreVM.isStartingPointsDisplayed(),n={displayed:t,render:function(t){return e.renderStartingPoints(t)},id:"starting points"};return d.default.createElement("div",{className:"explore-content__cards"},d.default.createElement(h.default,{services:this.props.services,item:n}),d.default.createElement(g.default,{layoutOwner:this.props.layoutOwner,services:this.props.services,model:this.props.model}))},t.prototype.renderStartingPoints=function(e){return d.default.createElement(y.default,{in:e,classNames:"starting-points-page",appear:!0,mountOnEnter:!0,unmountOnExit:!1},d.default.createElement(w.default,{dashboardApi:this.props.dashboardApi,model:this.props.startingPointsVM,activeDataSourceId:this.props.model.exploreVM.activeDataSourceId,activeDataSourceModule:this.props.model.exploreVM.activeDataSourceModule,services:this.props.services,addVisCard:this.props.addVisCard}))},t}(l.Component))||s;x.propTypes={model:p.default.object,startingPointsVM:p.default.object,services:p.default.object,dashboardApi:p.default.object,layoutOwner:p.default.object.isRequired,addVisCard:p.default.func},t.default=x},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s,l=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};("Delete"===e.key||"Backspace"===e.key)&&(e.handled=!0)},t}(d.Component))||s;v.propTypes={model:f.default.object.isRequired,children:f.default.any,onTabChange:f.default.func},v.defaultProps={children:[],onTabChange:function(){}},t.default=v},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.TAB_STATE=void 0;var s=n(0),l=o(s),d=n(9),u=o(d),c=(t.TAB_STATE={SHOW_SLOTS:"show_slots",SHOW_DATA:"show_data"},function(e){function t(){return i(this,t),r(this,e.apply(this,arguments))}return a(t,e),t.prototype.componentDidMount=function(){this.renderSlots()},t.prototype.componentDidUpdate=function(e){this.props.widget!==e.widget&&this.renderSlots()},t.prototype.componentWillUnmount=function(){this.exploreSlotsRef=null},t.prototype.render=function(){var e=this;return l.default.createElement("div",{className:"explore-slots",ref:function(t){return e.exploreSlotsRef=t}})},t.prototype.renderSlots=function(){var e=this.props.dashboardApi,t=e.getFeature("SlotEditorDOM"),n=this.exploreSlotsRef;n&&t&&t.render({parentNode:n})},t}(s.Component));c.propTypes={widget:u.default.object.isRequired,dashboardApi:u.default.object.isRequired},t.default=c},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s,l=n(0),d=o(l),u=n(5),c=n(15),p=n(1),f=o(p),h=n(10),m=o(h),g=n(73),v=o(g),_=n(6),y=n(18),b=o(y),w=n(2),x=o(w),C=n(53),S=o(C),E=n(350),M=o(E),T=n(351),I=o(T);n(352);var A=n(100),P=(0,u.observer)(s=function(e){function t(n){return i(this,t),r(this,e.call(this,n))}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.model,n=e.tabState,o=void 0;if(t&&t.items&&n===A.TAB_STATE.SHOW_DATA)switch(t.items.state){case c.PENDING:o=d.default.createElement("div",{className:"explore-nlt__container card-layout-content__side-panel__empty-container"},d.default.createElement("div",{className:"explore-nlt__loading"},d.default.createElement(_.ProgressIndicator,{size:"normal"}),d.default.createElement("div",{className:"explore-nlt__loading__text"},x.default.get("details_loading"))));break;case c.FULFILLED:o=this.renderItems();break;case c.REJECTED:o=d.default.createElement("div",{className:"explore-nlt__container card-layout-content__side-panel__empty-container"},d.default.createElement(b.default,{icon:d.default.createElement(_.SVGIcon,{iconId:M.default.id,size:"xxlarge"}),title:x.default.get("details_error_title"),description:x.default.get("details_error_description")}))}else if(n!==A.TAB_STATE.SHOW_DATA){var i,r=(0,m.default)((i={"explore-nlt__container":!0,"card-layout-content__side-panel__empty-container":!0},i["explore-nlt__container_"+n]=!0,i));o=d.default.createElement("div",{className:r},d.default.createElement(b.default,{icon:d.default.createElement(_.SVGIcon,{iconId:I.default.id,size:"xxlarge"}),title:x.default.get("details_"+n+"_title"),description:x.default.get("details_"+n+"_description")}))}return(!o||Array.isArray(o)&&!o.length)&&(o=d.default.createElement("div",{className:"explore-nlt__container card-layout-content__side-panel__empty-container"},d.default.createElement(b.default,{icon:d.default.createElement(_.SVGIcon,{iconId:I.default.id,size:"xxlarge"}),title:x.default.get("details_none_title"),description:x.default.get("details_none_description")}))),d.default.createElement("div",{className:"explore-nlt"},o)},t.prototype.renderItems=function(){var e=this;return this.props.model.getItems().map(function(t,n){return e.renderText(t,n)})},t.prototype.renderText=function(e,t){return d.default.createElement("div",{className:"explore-nlt__item",key:t},d.default.createElement(S.default,null,d.default.createElement("span",null,e.label)))},t}(l.Component))||s;P.propTypes={model:f.default.stateTree(v.default),tabState:f.default.string.isRequired},t.default=P},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),i=n.n(o),r=n(13),a=n.n(r),s=new i.a({id:"details-error_128",use:"details-error_128-usage",viewBox:"0 0 128 128",content:''});a.a.add(s);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),i=n.n(o),r=n(13),a=n.n(r),s=new i.a({id:"no-detail_128",use:"no-detail_128-usage",viewBox:"0 0 200 200",content:''});a.a.add(s);t.default=s},function(e,t,n){var o=n(353);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018, 2020\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.explore-nlt__loading {\n font-size: 1rem;\n font-weight: 700;\n line-height: 1.25rem;\n}\n\n.explore-nlt__item {\n font-size: 0.875rem;\n font-weight: 400;\n line-height: 1.125rem;\n}\n\n.explore-nlt {\n padding-top: 16px;\n width: 100%;\n color: #161616;\n color: hsla(var(--text-01-h, 0), var(--text-01-s, 0%), var(--text-01-l, 8.62745%), 1);\n}\n\n.explore-nlt__container {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n -ms-flex-pack: center;\n justify-content: center;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.explore-nlt__item {\n padding-top: 16px;\n padding-bottom: 16px;\n border-bottom: 1px solid;\n border-bottom-color: #e0e0e0;\n border-bottom-color: hsla(var(--ui-03-h, 0), var(--ui-03-s, 0%), var(--ui-03-l, 87.84314%), 1);\n}\n\n.explore-nlt__loading {\n text-align: center;\n}\n\n.explore-nlt__loading__text {\n margin-top: 16px;\n}\n\n.explore-nlt .insight-field-name {\n font-weight: bold;\n}\n\n",""])},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(0),l=o(s),d=n(1),u=o(d),c=n(6),p=n(60),f=o(p),h=n(18),m=o(h),g=n(2),v=o(g),_=n(101),y=n(355),b=o(y),w=function(e){function t(){return i(this,t),r(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.widgetId,n=e.widgetType,o=e.dashboardApi,i=e.isDisplayed;return-1===_.PROFILE_PROPERTIES.types.indexOf(n)?l.default.createElement("div",{className:"card-layout-content__side-panel__empty-container"},l.default.createElement(m.default,{icon:l.default.createElement(c.SVGIcon,{iconId:f.default.id,width:192,height:111}),title:v.default.get("properties_panel_no_props_title"),description:v.default.get("properties_panel_no_props_description")})):l.default.createElement(b.default,{widgetId:t,widgetType:n,dashboardApi:o,isDisplayed:i})},t}(s.Component);w.propTypes={dashboardApi:u.default.object.isRequired,widgetId:u.default.string.isRequired,widgetType:u.default.string.isRequired,isDisplayed:u.default.boolean},t.default=w},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(0),l=o(s),d=n(1),u=o(d),c=n(18),p=o(c),f=n(2),h=o(f),m=n(6),g=n(60),v=o(g),_=function(e){function t(){return i(this,t),r(this,e.apply(this,arguments))}return a(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.dashboardApi,n=e.widgetId;this.content=t.getCanvas().getContent(n),this.propertiesManager=t.getFeature("propertiesManager"),this._children=[],this._checkNewConditionalFormatting(),this._renderProperties(),this.props.dashboardApi.on("properties:refreshPane",this._onRefreshPropertiesPane,this)},t.prototype._onRefreshPropertiesPane=function(){this.propertiesManager.getCurrentChild()||(this._clearExistingProperties(),this.ref&&(this.ref.innerHTML=""),this._renderProperties())},t.prototype._checkNewConditionalFormatting=function(){var e=this.props.dashboardApi,t=e.getGlassCoreSvc(".FeatureChecker"),n=this._isNewCFForXtabTable(e),o=!t.checkValue("dashboard","condFormat","disabled");this._isNewCFEnabled=n||o},t.prototype._clearExistingProperties=function(){if(this._children&&this._children.length){if(1===this._children.length)this._children.pop();else{for(var e=this._removeChild.bind(this),t=1;t-1},t.prototype._renderProperties=function(){var e=this,t=this.props,n=t.widgetId,o=t.isDisplayed,i=t.widgetType;if(!o)return null;!this.condFormatting&&this._isNewCFEnabled&&this._isVisSupportNewCF(i)&&(this.condFormatting=this.content.getFeature("ConditionalFormatting"),this.condFormatting&&this.condFormatting.registerProvider("explore",{addChildPropertyPanel:this.renderChildProperties.bind(this)}));var r=this.content.getFeature("state");r.whenStatusChanges(r.STATUS.RENDERED).then(function(){e.propertiesManager.getPropertiesView(n).then(function(t){if(t.el&&e.ref){var n=t.el;e._renderView(n)}})})},t.prototype._renderView=function(e){this._filterProperties(e),this._children.push(e),this._clearAndAppendChild(this.ref,e)},t.prototype.renderChildProperties=function(e){var t=this;this._isNewCFEnabled&&(e.content.onCloseCb=this.onCloseChildCb.bind(this)),this.propertiesManager.getChildPropertiesView(e.content).then(function(e){var n=e.$el&&e.$el.get(0);n&&t.ref&&t._renderView(n)})},t.prototype.onCloseChildCb=function(){if(this._children.pop(),this.ref&&this._children.length){var e=this._children[this._children.length-1];this._clearAndAppendChild(this.ref,e)}},t.prototype._filterProperties=function(e){var t=e.querySelector("ul.nav.nav-tabs");t&&t.parentNode.removeChild(t);var n=e.querySelector(".propertyRow.banner.flex.property_banner");n&&n.parentNode.removeChild(n);var o=this.props,i=o.dashboardApi,r=o.widgetType;if(!this._isCrosstabWidget(r)||!this._isNewCFForXtabTable(i)){var a=e.querySelectorAll(".simpleCollapsibleSectionTitle.propertyRow");if(a.length)for(var s=0;s1&&(r=E.default.get("startingPoints_wizard_columnField_placeholder_suggestedFields",{suggestedField1:l[0],suggestedField2:l[1]}))}return u.default.createElement("div",{className:"wizard-section wizard-text-input",ref:this.wizardInputSectionRef},u.default.createElement("div",{className:"wizard-section-title"},a),u.default.createElement(D.default,{relationshipVM:this.props.model.relationship,close:!0,fields:this.props.model.fields,module:this.props.activeDataSourceModule.value,unfocusedPlaceholder:r,focusedPlaceholder:r,onChange:function(){return e.onFieldInputChange.apply(e,arguments)},getDropdownMode:function(){return O.FIELD_INPUT_DROPDOWN_MODES.METADATA_TREE},getDropdownMaxHeight:function(){return e._getDropdownMaxHeight_wizard()},activeDataSourceModule:this.props.activeDataSourceModule,shouldUseDisambiguatedPaths:this.shouldUseDisambiguatedPaths}))},t.prototype.renderWizardRecommendations=function(){var e=this,t=this.props.model.fields.getFields(),n=t.interesting,o=n.state,i=n.value;if(o===C.PENDING)return u.default.createElement("div",{className:"wizard-section"},u.default.createElement("div",{className:"wizard-section-title"},E.default.get("startingPoints_wizard_recommended_loadingTitle")),u.default.createElement(F.default,{numberOfFields:5}));if(o===C.FULFILLED){if(i&&0!==i.length)return u.default.createElement("div",{className:"wizard-section"},u.default.createElement("div",{className:"wizard-section-title"},E.default.get("startingPoints_wizard_recommended_title")),u.default.createElement(L.default,{fields:i&&i.length?i.map(function(e){return{id:e.id,label:e.name}}):[],onSelectField:function(t){var n=t.id;return e.onSetFocusField(n)},activeDataSourceModule:this.props.activeDataSourceModule,shouldUseDisambiguatedPaths:this.shouldUseDisambiguatedPaths,relationshipVM:this.props.model.relationship}));var r=E.default.get("startingPoints_recommended_fields_unavailable"),a=E.default.get("startingPoints_wizard_recommendations_enter_column"),s={error:{},preferredTitle:r,preferredDescription:a,textAlign:"left",iconId:null,suggestions:null};return u.default.createElement("div",{className:"wizard-section"},this._renderErrorView(s))}},t.prototype.renderErrorOnGettingFields=function(e){var t=E.default.get("startingPoints_recommended_fields_unavailable"),n=E.default.get("startingPoints_unable_to_fetch_recommendations_unenriched_datasource"),o=E.default.get("startingPoints_unable_to_fetch_recommendations_unsupported_datasource"),i={"Smarts-IFR-49":{severity:1,msgTitle:t,msgDesc:o},"Smarts-IFR-21":{msgTitle:t,severity:1,msgDesc:n}};if(!e)return this._renderErrorView({error:e});var r=e.smartsCode,a=i[r];if(!a)return this._renderErrorView({error:e});if(1===a.severity){var s={error:a,preferredTitle:a.msgTitle,preferredDescription:a.msgDesc,textAlign:"center"};return this._renderErrorView(s)}if(2===a.severity){var l=E.default.get("startingPoints_recommended_fields_unavailable"),d=E.default.get("startingPoints_wizard_recommendations_enter_column"),c={error:a,preferredTitle:l,preferredDescription:d,textAlign:"left",iconId:null,suggestions:null};return u.default.createElement("div",{className:"wizard",ref:this.wizardContainerRef},u.default.createElement("h1",null,E.default.get("startingPoints_wizard_title")),u.default.createElement("div",{className:"wizard-instructions"},E.default.get("startingPoints_wizard_subtitle")),u.default.createElement("div",{className:"wizardSections"},this.renderWizardTextInput(),this._renderErrorView(c)))}},t.prototype.renderWizardSkip=function(){var e=this,t=this.props.model.fields.getFields(),n=t.interesting.value;return n&&0!==n.length?u.default.createElement("div",{className:"wizard-section"},u.default.createElement("span",{className:"wizard-link",tabIndex:"0",onClick:function(){return e._skipLinkOnClick()},onKeyDown:function(t){return e._skipLinkOnKeyDown(t)}},E.default.get("startingPoints_wizard_skip_link"))):null},t.prototype._renderErrorView=function(e){var t=e.error,n=e.preferredTitle,o=e.preferredDescription,i=e.textAlign,r=e.iconId,a=e.suggestions;return u.default.createElement(re.default,{alignment:i,tabIndex:-1,iconId:r,error:t,preferredTitle:n,preferredDescription:o,suggestions:a})},t.prototype._skipLinkOnClick=function(){this._setAnyFocusField()},t.prototype._skipLinkOnKeyDown=function(e){switch(e.key){case" ":case"Enter":this._setAnyFocusField()}},t.prototype._setAnyFocusField=function(){var e=this.props.model.fields.getFields(),t=e.interesting,n=t.state,o=t.value;if(n===C.FULFILLED&&o.length)this.onSetFocusField(o[0].id);else{var i=this.props.activeDataSourceModule.value.getMetadataColumns();this.onSetFocusField(i[0].getId())}},t.prototype.renderStartingPoints=function(e){return this.isNewStartingPoints?[this.renderRelationshipSection(e),this.renderVisualizationsSection(e)]:[this.renderVisualizationsSectionOld(e),this.renderRelationshipSectionOld(e)]},t.prototype.renderRelationshipSectionOld=function(e){var t=this.props.model.relationshipSupported&&this.props.model.relationshipSupported.state,n=[];return t===C.REJECTED?n.push(u.default.createElement(re.default,{error:this.props.model.relationshipSupported.error,defaultTitle:ce,defaultDescription:pe})):e?t&&t!==C.PENDING?(n.push(this.renderOldFieldsSection()),n.push(this.renderRelationshipGraph())):(n.push(this.renderFakeFields()),n.push(this.renderRelationshipGraphLoader(E.default.get("startingPoints_loadingRelationships")))):(n.push(this.renderFakeFields()),n.push(this.renderRelationshipGraphLoader(E.default.get("startingPoints_loadingPage")))),u.default.createElement("div",{className:"starting-points-page__oldRelationshipSection"},n)},t.prototype.renderRelationshipSection=function(){var e=this.props.model.relationship.getTargetModel(),t=e&&e.data&&e.data.state;return u.default.createElement("div",{className:"starting-points-page__relationshipSection",ref:this.relationshipSectionRef},this.renderFieldsSection(),t===C.PENDING?this._renderPendingUI():this.renderRelationshipGraph())},t.prototype._renderPendingUI=function(){return u.default.createElement("div",{className:"starting-points-page__relationshipSection__pendingUI"},this.renderRelationshipGraphLoader(E.default.get("startingPoints_loadingRelationshipGaph")))},t.prototype._cancelRequest=function(){this.props.model.relationship.cancelRequestDelegator()},t.prototype.renderVisualizationsSectionOld=function(e){var t=this,n=[];if(e){n.push(u.default.createElement(Z.default,{fill:null===this.renderRecommendedVisList(o),services:this.props.services,activeDataSourceId:this.props.activeDataSourceId,handleShowVisTypesClick:function(){return t._showVisTypesDialog()},createVis:function(e){return t.addVisCard(e)},dashboardApi:this.props.dashboardApi,key:"create"}));var o=this.props.maxDisplayedItems||3;n.push(this.renderRecommendedVisList(o))}else n.push(u.default.createElement(te.default,{fill:!0}));return u.default.createElement("div",{className:"starting-points-visualizations",key:"visualizations"},n)},t.prototype.renderVisualizationsSection=function(e){var t=[],n=this.props.maxDisplayedItems||3;if(e){t.push(this.renderRecommendedVisList(n));var o=this.props.model.getSelectedInfluencers();if(o){var i=o.map(function(e){return e.label}).join(", ");return u.default.createElement("div",{className:"starting-points-visualizations"},u.default.createElement("div",{className:"vis-preview-list-header"},u.default.createElement("h2",null,E.default.get("startingPoints_chooseVis")),u.default.createElement("h3",null,E.default.get("startingPoints_selectCard")),u.default.createElement("h4",null,E.default.get("startingPoints_exploreVisRelated")+" '"+i+"'")),u.default.createElement("div",{className:"vis-preview-list-wrapper",key:"visualizations"},t))}return u.default.createElement("div",{className:"starting-points-visualizations"},u.default.createElement("div",{className:"vis-preview-list-wrapper",key:"visualizations"},t))}t.push(u.default.createElement(te.default,{fill:!0}))},t.prototype._showVisTypesDialog=function(){this.props.model.setShowModalVisTypePicker(!0)},t.prototype.onEditScopeClick=function(){var e=this,t=this.props.model.relationship.getTargetModel(),n=t&&t.scope;if(n){return this.props.dashboardApi.getFeature("DataSources").getDataSource(this.props.activeDataSourceId).getModule().then(function(o){var i=function(e){return o.getMetadataColumn(e).getMoserObject()},r=void 0,a=void 0,s=void 0,l=void 0;return n.getDefaultRecommendations().then(function(e){r=e.map(function(e){return e.fieldIDForExpression}),s=r.map(i);var t=n.getScopedFields();t?(a=t.map(function(e){return e.fieldIDForExpression}),l=a.map(i)):(a=r,l=s)}).then(function(){return o.getShapingHelper().openItemPicker({labels:{title:E.default.get("edit_scope_title"),subTitle:E.default.get("edit_scope_subtitle")},initialItems:l,recommendedItems:s,max:de.default.max_scoped_columns,transformDroppedItems:e._transformDroppedItems.bind(e),canDrop:e._canDrop.bind(e)}).then(function(n){if(n&&n.length){var o=e.props.model.relationship,i=o.canFetchData(t.id,"editScope");if(!i.canFetchData){var r=i.infoDialogContent,a=r.title,s=r.body;return void e.setState({infoDialogContent:{title:a,body:s},showInfoDialog:!0})}var l=function(e){return e.getIdForExpression()},d=n.map(l),u=d.map(ue.parseFieldIDForExpression);t.setScope(u)}})})})}},t.prototype._transformDroppedItems=function(e){if(e&&e.length){var t=this.props.model.relationship.getCurrentTargetId(),n=["QueryItem","Calculation"];e=e.filter(function(e){return-1!==n.indexOf(e.getObjectType())&&e.getIdForExpression()!==t})}return e},t.prototype._canDrop=function(e){return!(!e||0===e.length)},t.prototype.onVisTypeSelected=function(e){this.closeVisTypeChooser(),this.addVisCardFromVisType(e),(0,I.openDatasetPane)(this.props.dashboardApi)},t.prototype.closeVisTypeChooser=function(){this.props.model.setShowModalVisTypePicker(!1)},t.prototype.addVisCard=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"startingPointsCreate";this.props.addVisCard(e,n,t)},t.prototype.addVisCardFromVisType=function(e){var t={model:{type:"live",visId:e,visTypeLocked:!0,data:{}}};return this.addVisCard(t,"slots","startingPointsCreate")},t.prototype._onPromptingError=function(e){this.props.model.addRecommendationsOfStaticType(e.key)},t.prototype.renderRecommendedVisList=function(e){var t=this.props.model.getSelectedInfluencers();if(!t)return null;var n=t.map(function(e){return e.id}),o=null,i=this.props.model.getRecommendations(n);if(i.state===C.PENDING)o=u.default.createElement(w.default,{numberOfItems:e,isNewLayout:this.isNewStartingPoints,showTextPending:!this.isNewStartingPoints,itemSize:this.isNewStartingPoints?"medium":"large"});else if(i.state===C.FULFILLED&&i.value.length){var r=i.value;o=u.default.createElement(y.default,{maxDisplayedItems:e,items:r,dashboardApi:this.props.dashboardApi,onClickItem:this._onSelectVisualization.bind(this),onAddItem:this._onAddVisualization.bind(this),additionalProperties:se.default,logger:this.logger,isNewLayoutEnabled:this.isNewStartingPoints,onPromptingError:this._onPromptingError.bind(this),itemSize:this.isNewStartingPoints?"medium":"large"})}else o=u.default.createElement("div",{className:"vis-preview-list-wrapper__error"},u.default.createElement(X.default,{icon:u.default.createElement(f.SVGIcon,{iconId:m.default.id,size:"normal",intent:"danger"}),description:E.default.get("error_cannot_load_recommended")}));return this.isNewStartingPoints?o:u.default.createElement("div",{className:"vis-preview-list-wrapper"},o)},t.prototype._renderRefreshButton=function(){return u.default.createElement("button",{className:"vis-preview-list-wrapper__error__refresh-button",onClick:this._refreshVisualizations.bind(this)},u.default.createElement("span",{className:"refresh-button-mouse-focus-indicator",tabIndex:"-1"},E.default.get("refresh_visualizations")))},t.prototype._handleSetFocusField=function(e){this.props.model.fields.setFocusField(e)},t.prototype.onFieldInputChange_old=function(e){return this.props.model.fields.addField&&this.props.model.fields.addField(e)},t.prototype.onFieldInputChange=function(e){this.onSetFocusField(e)},t.prototype.onSetFocusField=function(e){var t=this.props.model.relationship,n=t.canFetchData(e,"changeTarget");if(!0===n.canFetchData)this.props.model.fields.setFocusField(e);else{var o=n.infoDialogContent,i=o.title,r=o.body;this.setState({infoDialogContent:{title:i,body:r},showInfoDialog:!0})}},t.prototype.reset=function(){this.props.model.reset()},t.prototype._onSelectVisualization=function(e){e&&e.widgets&&e.widgets[0]&&(this._addRecommendation(e.widgets[0],"startingPointsSelectRecommendation"),(0,I.openCardsPane)(this.props.dashboardApi))},t.prototype._onAddVisualization=function(e){e&&e.widgets&&e.widgets[0]&&(this._addRecommendation(e.widgets[0],"addRelatedRecommendation"),(0,I.openCardsPane)(this.props.dashboardApi))},t.prototype._addRecommendation=function(e,t){e.spec&&e.spec.properties&&e.spec.properties.some(function(e){if("widget.legend.display"===e.id)return e.value=!0,!0});var n=this.props.model.isRecommendationOfStaticType(e.key),o={model:Object.assign({type:"live",visTypeLocked:!0},e.spec),layoutProperties:{isStaticWidget:n}};return this.addVisCard(o,void 0,t)},t.prototype._refreshVisualizations=function(){this.props.model.loadVisForSelectedInfluencers()},t.prototype._getDropdownMaxHeight_wizard=function(){var e=this.wizardContainerRef.current,t=this.wizardInputSectionRef.current;return e&&t?e.clientHeight-t.clientHeight:0},t.prototype._getDropdownMaxHeight_mainPage=function(){var e=this.relationshipSectionRef.current,t=this.fieldsRef.current;return e&&t?e.clientHeight-t.clientHeight:0},t}(d.Component))||l;fe.propTypes={dashboardApi:T.default.object.isRequired,model:T.default.stateTree(B.StartingPointsViewModel).isRequired,maxDisplayedItems:T.default.object,services:T.default.object.isRequired,activeDataSourceId:T.default.string,activeDataSourceModule:T.default.observableObject,addVisCard:T.default.func.isRequired},t.default=fe},function(e,t,n){"use strict";(function(e){var o,i,r,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(s,l){if("object"==a(t)&&"object"==a(e))e.exports=l(n(23));else{i=[n(23)],o=l,void 0!==(r="function"==typeof o?o.apply(t,i):o)&&(e.exports=r)}}("undefined"!=typeof self&&self,function(e){return webpackJsonPBaGraphics([12],{"3865314c5959606874d4":function(t,n){t.exports=e},"6986996ff9f096db46c3":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n("3865314c5959606874d4"),i=(n.n(o),n("fb78783289a5366a88ff"));t.default=i.a},fb78783289a5366a88ff:function(e,t,n){var o=n("9689a9c94ae38b47fa2c"),i=n.n(o),r=n("9ce58a7deea14f49ef01"),a=n.n(r),s=new i.a({id:"unknown-warning_128_v7",use:"unknown-warning_128_v7-usage",viewBox:"0 0 128 128",content:''});a.a.add(s),t.a=s}},["6986996ff9f096db46c3"])})}).call(t,n(21)(e))},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t=200&&this.setState({needResetTextMaxWidth:!0})}},t.prototype._renderButtonWithDisambiguatedTooltip=function(){var e=this,t=this.props.label;return d.default.createElement("div",null,this._renderFlyout(),d.default.createElement(c.Button,{variant:"frame",intent:"primary",onClick:function(t){e.props.deletable&&e._handleDelete(t)||e.props.onClick&&e.props.onClick()},className:(0,b.default)({fieldButton:!0,"deletable-fieldButton":this.props.deletable}),id:this.props.id,onMouseEnter:this._showFlyout,onMouseLeave:this._hideFlyout,onKeyDown:this._onKeyDown,ref:this.ref},d.default.createElement(c.TruncatedText,{style:this.state.needResetTextMaxWidth?{maxWidth:200}:{},ref:this.textRef,value:t,allowTooltip:!1}),this.props.deletable?d.default.createElement("div",{ref:this.dismissButtonRef,className:"fieldButton__dismissIcon","aria-label":g.default.get("fieldButton_delete"),title:g.default.get("fieldButton_delete"),onClick:function(t){e.props.onDelete&&e.props.onDelete(),t.stopPropagation()}},d.default.createElement(c.SVGIcon,{iconId:h.default.id,width:14,height:14})):null))},t.prototype._renderButtonWithTooltip=function(){var e=this.props.label,t=this.props.label+" ("+g.default.get("tooltipId")+": "+this.props.id+")";return d.default.createElement(c.Tooltip,{title:t,orient:"top"},d.default.createElement(c.Button,{variant:"frame",intent:"primary",onClick:this.props.onClick,className:"fieldButton",id:this.props.id},d.default.createElement(c.TruncatedText,{value:e,allowTooltip:!1})))},t.prototype._handleDelete=function(e){var t=e.hasOwnProperty("clientX")?e.clientX:null,n=e.hasOwnProperty("clientY")?e.clientY:null;if(null!==t&&null!==n){var o=this.dismissButtonRef.current&&this.dismissButtonRef.current.getBoundingClientRect();if(o){var i=o.left,r=o.top,a=o.width,s=o.height,l=t-i,d=n-r;if(l>=0&&l<=a&&d>=0&&d<=s)return this.props.onDelete&&this.props.onDelete(),!0}}return!1},t.prototype._renderQuerySubjectItem=function(){var e=this.props,t=e.activeDataSourceModule,n=e.id,o=t.value.getShapingHelper(),i=t.value.getMetadataColumn(n).moserObject;return i?d.default.createElement(o.ShapingProvider,null,d.default.createElement(p.ShapingAncestorTree,{includeParent:this._shapingAncestorTree_includeParent,moserObject:i})):null},t}(l.Component))||s;w.defaultProps={onClick:function(){},deletable:!1,onDelete:function(){},shouldUseDisambiguatedPaths:!0},w.propTypes={id:_.default.string.isRequired,label:_.default.string.isRequired,onClick:_.default.func,activeDataSourceModule:_.default.observableObject.isRequired,shouldUseDisambiguatedPaths:_.default.bool,deletable:_.default.bool,onDelete:_.default.func},t.default=w},function(e,t,n){var o=n(376);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,".fieldsListContainer .fieldsList .fieldButton {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-direction: row;\n flex-direction: row;\n max-width: 200px;\n min-width: auto;\n padding: 0 26px;\n margin: 0 8px 8px 0;\n}\n\n.fieldsListContainer .fieldsList .fieldButton.deletable-fieldButton .fieldButton__dismissIcon {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n height: 40px;\n width: 24px;\n margin-right: 2px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.fieldsListContainer .fieldsList .fieldButton.deletable-fieldButton .fieldButton__dismissIcon:hover .ba-common-svgIcon {\n opacity: 0.75;\n}\n\n.fieldsListContainer .fieldsList .fieldButton.deletable-fieldButton:hover .ba-common-svgIcon,\n.fieldsListContainer .fieldsList .fieldButton.deletable-fieldButton:focus .ba-common-svgIcon {\n opacity: 0.5;\n}\n\n",""])},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,".fieldsListContainer {\n padding: 10px;\n}\n\n.fieldsListContainer .fieldsListTitle {\n font-size: 12px;\n font-weight: bold;\n margin: 5px;\n}\n\n.fieldsListContainer .fieldsList {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n max-height: 500px;\n margin: 5px 0;\n}\n\n.fieldsListContainer .fieldsListErrorMessage {\n margin: 5px;\n}\n\n.fieldsListContainer .fakeField {\n border: 2px solid #eaeaea;\n width: 140px;\n height: 40px;\n margin: 5px;\n background-color: #eaeaea;\n}\n\n",""])},function(e,t,n){var o=n(379);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018, 2020\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.starting-points-page .fieldInput {\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n border-bottom: solid 2px;\n border-bottom-color: #8d8d8d;\n border-bottom-color: hsla(var(--ui-04-h, 0), var(--ui-04-s, 0%), var(--ui-04-l, 55.29412%), 1);\n}\n\n.starting-points-page .inputClear {\n position: absolute;\n right: 0;\n transform: translateY(-50%);\n top: 50%;\n}\n\n",""])},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(0),l=o(s),d=n(1),u=o(d);n(107);var c=function(e){function t(){return i(this,t),r(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){for(var e=[],t=0;t'});a.a.add(s),t.a=s}},["8264b1174ed94bea0421"])})}).call(t,n(21)(e))},function(e,t,n){var o=n(388);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.explore-marketing__title {\n font-size: 1rem;\n font-weight: 700;\n line-height: 1.25rem;\n}\n\n.explore-marketing__description {\n font-size: 0.875rem;\n font-weight: 400;\n line-height: 1.125rem;\n}\n\n.explore-marketing {\n -ms-flex-item-align: center;\n -ms-grid-row-align: center;\n align-self: center;\n text-align: center;\n padding: 32px;\n max-width: 350px;\n}\n\n.explore-marketing__title {\n margin-bottom: 8px;\n}\n\n",""])},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(0),l=o(s),d=n(1),u=o(d);n(87),n(108);var c={icon:{width:"140px",height:"140px",margin:"20px"},text:{width:"160px",height:"15px"},wideText:{width:"220px",height:"15px"},button:{width:"140px",height:"40px",margin:"20px"}},p=function(e){function t(){return i(this,t),r(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){return l.default.createElement("div",{className:"create-exploration"},l.default.createElement("div",{className:"create-exploration__container "},this.props.fill?l.default.createElement("div",{className:"fake",style:c.icon}):null,l.default.createElement("div",{className:"fake",style:c.text}),l.default.createElement("div",{className:"fake",style:c.wideText}),l.default.createElement("div",{className:"fake",style:c.text}),l.default.createElement("div",{className:"fake",style:c.button})))},t}(s.Component);p.propTypes={fill:u.default.bool.isRequired},t.default=p},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(0),l=o(s),d=n(391),u=o(d),c=n(400),p=o(c),f=n(413),h=o(f),m=n(1),g=o(m),v=function(e){function t(n){return i(this,t),r(this,e.call(this,n))}return a(t,e),t.prototype.componentWillUnmount=function(){this.props.startingPointsVM.relationship.cleanup()},t.prototype.render=function(){return l.default.createElement("div",{className:"relationshipViewWrapper"},l.default.createElement(u.default,{module:this.props.module,startingPointsVM:this.props.startingPointsVM}),l.default.createElement(p.default,{relationship:this.props.startingPointsVM.relationship,services:this.props.services,fields:this.props.fields}),l.default.createElement(h.default,{model:this.props.startingPointsVM.relationship.tooltip,module:this.props.module,shouldUseDisambiguatedPaths:this.props.shouldUseDisambiguatedPaths}))},t}(s.Component);v.propTypes={module:g.default.observableObject.isRequired,startingPointsVM:g.default.object.isRequired,services:g.default.object,fields:g.default.object,shouldUseDisambiguatedPaths:g.default.bool},t.default=v},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){var n=void 0,o=void 0;return{promise:new Promise(function(e,i){n=i,o=setTimeout(e,t)}).then(e,function(){throw clearTimeout(o),new Error("Context menu cancelled")}),cancel:n}}t.__esModule=!0;var l,d=n(0),u=o(d),c=n(11),p=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(c),f=n(1),h=o(f),m=n(5),g=n(7),v=n(392),_=o(v),y=n(110),b=o(y),w=n(395),x=o(w),C=n(2),S=o(C),E=n(74),M=o(E),T=n(396),I=o(T),A=n(397),P=o(A);n(398);var O=g.types.model("RelationshipWidgetContextMenuViewModel",{setTargetHandle:g.types.optional(g.types.union(g.types.number,g.types.null),null)}).volatile(function(){return{target:null,_setTargetPromiseInfo:null}}).extend(function(e){var t=null;return{views:{getTargetPromise:function(){return t&&t.promise}},actions:{setContextMenuTarget:function(n){t&&(t.cancel(),t=null),e.target=null,n&&(t=s(function(){e._setTarget(n),t=null},250))},_setTarget:function(t){e.target=t}}}}),D=(0,m.observer)(l=function(e){function t(n){i(this,t);var o=r(this,e.call(this,n));return o.model=O.create({}),o.disposeFunctions=[],o.disposeFunctions.push(p.autorun(function(){var e=o.props.startingPointsVM.relationship;e.contextMenuElement?o.model.setContextMenuTarget(e.contextMenuElement):(o.model.setContextMenuTarget(null),o.setState({showFieldSearchInput:{shown:!1,triggerNode:null}}))})),o.state={showFieldSearchInput:{shown:!1,triggerNode:null}},o}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.startingPointsVM,n=t.fields,o=t.relationship;return this.model.target?u.default.createElement(_.default,{buttons:[{icon:I.default.id,label:S.default.get("startingPoints_relationshipDiagram_selectNewFocusField"),action:function(){return e.setFocusField(o.contextMenuField)},include:function(){return n.canSetFocusField(o.contextMenuField.itemId)}},{icon:P.default.id,label:S.default.get("startingPoints_relationshipDiagram_show_relationships_between_two_fields"),action:function(t){return e.toggleFieldSearchInput(t)},include:function(){return o.canShowRelationships()},otherComponents:function(){return e._renderShowRelationshipsFieldSearchInput()}},{icon:M.default.id,label:S.default.get("startingPoints_relationshipDiagram_deleteField"),action:function(){return e.deleteFields([o.contextMenuField])},include:function(){return o.canDeleteFields([o.contextMenuField])}}],triggerNode:this.model.target}):null},t.prototype.dismissContextMenu=function(){this.props.startingPointsVM.relationship.setContextMenu({element:null,field:null})},t.prototype.deleteFields=function(e){this.props.startingPointsVM.relationship.deleteFields(e),this.dismissContextMenu()},t.prototype.setFocusField=function(e){this.props.startingPointsVM.fields.setFocusField(e.itemId),this.dismissContextMenu()},t.prototype.bodyOnMouseDown=function(e){(0,v.eventIsInFloatingToolbar)(e)||this.dismissContextMenu()},t.prototype.toggleFieldSearchInput=function(e){this.state.showFieldSearchInput.shown?this.setState({showFieldSearchInput:{shown:!1,triggerNode:null}}):e.target&&this.setState({showFieldSearchInput:{shown:!0,triggerNode:e.target}})},t.prototype._renderShowRelationshipsFieldSearchInput=function(){return this.state.showFieldSearchInput.shown?u.default.createElement(b.default,{className:"showRelationshipsBetweenTwoFields__fieldSearchInputFlyout",triggerNode:this.state.showFieldSearchInput.triggerNode},u.default.createElement(x.default,{module:this.props.module,placeholder:S.default.get("startingPoints_relationshipDiagram_show_relationships_between_two_fields_search_input_placeholder"),onSelect:this._onShowRelationships.bind(this)})):null},t.prototype._onShowRelationships=function(e){if(e){var t=this.props.startingPointsVM,n=t.relationship,o=e.getObjectType(),i=n.contextMenuField.itemId,r=e.getIdForExpression();if("QueryItem"===o&&r!==i){n.getTargetModel().showRelationshipsBetween(i,r),this.dismissContextMenu()}}},t.prototype.componentDidMount=function(){this._bodyOnMouseDownHandler=this.bodyOnMouseDown.bind(this),document.body.addEventListener("mousedown",this._bodyOnMouseDownHandler)},t.prototype.componentWillUnmount=function(){this.disposeFunctions.forEach(function(e){return e()}),this.disposeFunctions=null,this._bodyOnMouseDownHandler&&(window.removeEventListener("mousedown",this._bodyOnMouseDownHandler),this._bodyOnMouseDownHandler=null)},t}(d.Component))||l;D.propTypes={module:h.default.observableObject.isRequired,startingPointsVM:h.default.object.isRequired},t.default=D},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){for(var t=e.target;t;){var n=t.classList;if(n&&n.contains(m))return!0;t=t.parentElement}return!1}t.__esModule=!0,t.default=void 0,t.eventIsInFloatingToolbar=s;var l=n(8),d=o(l),u=n(0),c=o(u),p=n(1),f=o(p),h=n(6),m="flyoutToolbar",g=function(e){function t(n){return i(this,t),r(this,e.call(this,n))}return a(t,e),t.prototype.render=function(){var e=this.props.buttons.filter(function(e){var t=e.include;return d.default.isUndefined(t)||t()});return e.length?c.default.createElement(h.Flyout,{domNodeToAttachTo:document.body,triggerNode:this.props.triggerNode,className:m},c.default.createElement(h.Toolbar,null,e.map(function(e,t){var n=e.icon,o=e.label,i=e.action,r=e.otherComponents;return c.default.createElement(h.Tooltip,{key:t,title:o,orient:"top"},c.default.createElement(h.Button,{iconSize:"small",variant:"icon",intent:"primary",iconLeft:n,"aria-label":o,onClick:i}),r?r():null)}))):null},t}(u.Component);t.default=g,g.propTypes={buttons:f.default.arrayOf(f.default.shape({icon:f.default.string.isRequired,label:f.default.string.isRequired,action:f.default.func.isRequired,include:f.default.func})).isRequired,triggerNode:f.default.element.isRequired}},function(e,t,n){var o=n(394);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018, 2020\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.exploreFlyout {\n position: fixed;\n background-color: white;\n background-color: hsla(var(--ui-01-h, 0), var(--ui-01-s, 0%), var(--ui-01-l, 100%), 1);\n z-index: 9999;\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);\n}\n\n",""])},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=n(0),l=o(s),d=n(17),u=n(1),c=o(u),p=n(6),f=n(105),h=o(f),m=n(28),g=function(e){function t(n){i(this,t);var o=r(this,e.call(this,n));return o._renderSearchInput=function(e){return l.default.createElement(p.SearchInput,{placeholder:o.props.placeholder,value:o.state.inputValue,onChange:o.onChange.bind(o),ref:function(t){t&&(o._searchInputRef=t,e(t))}})},o.filteredValues=[],o.state={inputValue:""},o}return a(t,e),t.prototype._shouldShowDropdown=function(){return Boolean(this.state.inputValue&&this.state.inputValue.length)},t.prototype._renderDropdown=function(){var e=this.props.module,t=e.getShapingHelper();return l.default.createElement(t.ShapingProvider,null,l.default.createElement(m.ShapingPickTree,{filter:this.state.inputValue,onSelect:this.onSelect.bind(this)}))},t.prototype.render=function(){return l.default.createElement(h.default,{renderTrigger:this._renderSearchInput.bind(this),renderDropdownContents:this._renderDropdown.bind(this),open:this._shouldShowDropdown(),getDropdownMaxHeight:this.getDropdownMaxHeight.bind(this),animationWhenContentChanges:!1})},t.prototype.getDropdownMaxHeight=function(){if(!this._searchInputRef)return 0;var e=(0,d.findDOMNode)(this._searchInputRef);if(e){var t=e.getBoundingClientRect(),n=t.top,o=t.height;return window.innerHeight-o-n}},t.prototype.onChange=function(e){this.setState({inputValue:e})},t.prototype.onSelect=function(e){this.props.onSelect&&this.props.onSelect(e)},t}(s.Component);g.propTypes={placeholder:c.default.string,module:c.default.observableObject.isRequired,onSelect:c.default.func},t.default=g},function(e,t,n){"use strict";(function(e){var o,i,r,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(s,l){if("object"==a(t)&&"object"==a(e))e.exports=l(n(19));else{i=[n(19)],o=l,void 0!==(r="function"==typeof o?o.apply(t,i):o)&&(e.exports=r)}}("undefined"!=typeof self&&self,function(e){return webpackJsonPBaGraphics([941],{"3865314c5959606874d4":function(t,n){t.exports=e},"7e7ff5096a2f211949b7":function(e,t,n){var o=n("9689a9c94ae38b47fa2c"),i=n.n(o),r=n("9ce58a7deea14f49ef01"),a=n.n(r),s=new i.a({id:"make-center_16_v7",use:"make-center_16_v7-usage",viewBox:"0 0 16 16",content:''});a.a.add(s),t.a=s},"940cbcce22529045fd99":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n("3865314c5959606874d4"),i=(n.n(o),n("7e7ff5096a2f211949b7"));t.default=i.a}},["940cbcce22529045fd99"])})}).call(t,n(21)(e))},function(e,t,n){"use strict";(function(e){var o,i,r,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(s,l){if("object"==a(t)&&"object"==a(e))e.exports=l(n(19));else{i=[n(19)],o=l,void 0!==(r="function"==typeof o?o.apply(t,i):o)&&(e.exports=r)}}("undefined"!=typeof self&&self,function(e){return webpackJsonPBaGraphics([1312],{"2c8bc9513a97ee8a75e6":function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n("3865314c5959606874d4"),i=(n.n(o),n("46a57988a708188a72b2"));t.default=i.a},"3865314c5959606874d4":function(t,n){t.exports=e},"46a57988a708188a72b2":function(e,t,n){var o=n("9689a9c94ae38b47fa2c"),i=n.n(o),r=n("9ce58a7deea14f49ef01"),a=n.n(r),s=new i.a({id:"draw-link_16_v7",use:"draw-link_16_v7-usage",viewBox:"0 0 16 16",content:''});a.a.add(s),t.a=s}},["2c8bc9513a97ee8a75e6"])})}).call(t,n(21)(e))},function(e,t,n){var o=n(399);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,".showRelationshipsBetweenTwoFields__fieldSearchInputFlyout {\n border: none;\n width: 350px;\n}\n\n.showRelationshipsBetweenTwoFields__fieldSearchInputFlyout .ba-common-baseInput {\n width: 100%;\n}\n\n",""])},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s,l=n(0),d=o(l),u=n(5),c=n(15),p=n(1),f=o(p),h=n(401),m=o(h),g=n(113),v=o(g),_=n(412),y=o(_),b=n(2),w=o(b);n(31);var x=w.default.get("startingPoints_error_title_relationshipDiagram_unavailable"),C=w.default.get("startingPoints_error_instructions_relationshipDiagram"),S=(0,u.observer)(s=function(e){function t(){return i(this,t),r(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e=this.props.relationship.getTargetModel(),t=e&&e.data&&e.data.state;return this.props.relationship.exploreViewActivated,d.default.createElement("div",{className:"relationship-vis-view",id:this.props.relationship.uid},this._buildStatusBar(this.props.relationship.uid),t===c.REJECTED?d.default.createElement(v.default,{error:e.data.error,defaultTitle:x,defaultDescription:C}):null,this.props.relationship.exploreViewActivated?d.default.createElement(m.default,{relationship:this.props.relationship,services:this.props.services,fields:this.props.fields}):null)},t.prototype._buildStatusBar=function(e){var t=this.props.relationship.getTargetModel(),n=""+e;return d.default.createElement(y.default,{targetModel:t,containerId:n})},t}(l.Component))||s;S.propTypes={relationship:f.default.object.isRequired,services:f.default.object,fields:f.default.object},t.default=S},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s,l=n(0),d=o(l),u=n(11),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(u),p=n(5),f=n(7),h=n(15),m=n(1),g=o(m),v=n(10),_=o(v),y=n(20),b=o(y),w=n(6),x=n(402),C=o(x),S=n(403),E=o(S),M=n(404),T=o(M),I=n(2),A=o(I);n(31);var P=n(406),O=o(P),D=n(407),R=o(D),L=n(97),N=o(L),F=n(50),V=n(8),k=10,z=(0,p.observer)(s=function(e){function t(n){i(this,t);var o=r(this,e.call(this,n));return o.hintRef=d.default.createRef(),o.measureRef=d.default.createRef(),o.state={dndHover:!1},o.props.relationship.getIsFilterStrengthFeatureEnabled()||(o.state.slider=k),o.model=C.default.create(),o.disposeFunctions=[],o.disposeFunctions.push(c.autorun(function(){var e=o.props.relationship.getTargetModel(),t=e&&e.data&&e.data.state;if(t===h.FULFILLED)o.model.setLastVisValid(!0);else if(t===h.REJECTED)o.model.setLastVisValid(!1);else if(t===h.PENDING){var n=o.getEventHandler&&o.getEventHandler();n&&n.onDestroy()}})),o.disposeFunctions.push(c.reaction(function(){return o.props.relationship.nodesLimit},function(e){o.setState({slider:e})})),o.disposeFunctions.push(c.autorun(function(){o.props.relationship.contextMenuField&&o.props.relationship.contextMenuElement?o.model.setContextMenuTarget(o.props.relationship.contextMenuElement):o.model.setContextMenuTarget(null)})),o}return a(t,e),t.prototype.componentDidMount=function(){var e=this,t=this._getMeasureDOMNode();t&&(t.addEventListener("mouseenter",this._onMouseEnter.bind(this)),t.addEventListener("mouseleave",this._onMouseLeave.bind(this))),this.props.relationship.isAddFieldFeatureEnabled()&&this._initializeDndSupport(),this.props.relationship.setElement(this.el).then(function(t){var n=t.getEventHandler,o=t.widget,i=t.addHighlight,r=t.removeHighlight;e.getEventHandler=n,e.widget=o,e.addHighlight=i,e.removeHighlight=r,e._onScrollhandler=e._onScroll.bind(e),window.addEventListener("scroll",e._onScrollhandler,!0)})},t.prototype._initializeDndSupport=function(){var e=this;this.props.services&&this.props.services.getSvc(".DndManager").then(function(t){e.el&&(e._dndManager=t,e.dropOnDiagram=new E.default(e.el,"dndHover",e._handleDrop.bind(e),e._handleAccept.bind(e),e._handleDragEnter.bind(e),e._handleDragLeave.bind(e),e.props.relationship),e.dropOnDiagram.initializeDndSource(e._dndManager,e._callback.bind(e)),t.addDropTarget(e.el,e.dropOnDiagram))})},t.prototype.componentWillUnmount=function(){this.disposeFunctions.forEach(function(e){return e()}),this.disposeFunctions=null;var e=this._getMeasureDOMNode();e&&(e.removeEventListener("mouseenter",this._onMouseEnter),e.removeEventListener("mouseleave",this._onMouseLeave)),this._onScrollhandler&&(window.removeEventListener("scroll",this._onScrollhandler,!0),this._onScrollhandler=null),this.model&&((0,f.destroy)(this.model),this.model=null)},t.prototype._getMeasureDOMNode=function(){return this.measureRef&&this.measureRef.current?this.measureRef.current._node:null},t.prototype._onScroll=function(){var e=this._getEventHandler();return e&&e.removeTooltip()},t.prototype.render=function(){return this._buildRenderMarkup()},t.prototype._buildRenderMarkup=function(){var e=this,t=this.props.relationship.getTargetModel(),n=t&&t.data&&t.data.state,o=n===h.REJECTED,i=n===h.PENDING,r=V.uniqueId("relationship_graph");this.sVizContainerID=r;var a=(0,_.default)({"relationship-vis-view__widget-parent-placeholder":!0,"relationship-vis-view__widget-parent-placeholder--error":o&&!this.model.lastVisValid,"relationship-vis-view__widget-parent-placeholder--loading":i,"relationship-vis-view__widget-parent-placeholder--loading-error":i&&!this.model.lastVisValid,"relationship-vis-view__widget-parent-placeholder--loading-ok":i&&this.model.lastVisValid}),s=(0,_.default)({"relationship-vis-view__widget-parent-placeholder_containerDndHover":this.state.dndHover,"relationship-vis-view__widget-parent-placeholder__widget_wrapper":!0}),l=(0,_.default)({"relationship-vis-view__widget-parent-placeholder__widget":!0}),u=this.props.relationship.isFilterStartingPointsEnabled()&&this.props.relationship.getFilterCount()>0?d.default.createElement("div",{className:"relationship-vis-view__filter"},d.default.createElement(w.SVGIcon,{iconId:N.default.id,intent:"primary"})):null;return d.default.createElement(b.default,{ref:this.measureRef,onResize:function(){return e.onResize()}},function(t){var o=t.measureRef;return d.default.createElement("div",{className:a,ref:o},e._buildToolbarMarkup(n),e._buildRelationshipToolbar(),d.default.createElement("div",{id:r+"_parent",className:s},e.props.relationship.isOverrideListFeatureEnabled()?e._renderOverrideList():null,u,d.default.createElement("div",{id:r,className:l,ref:function(t){return e.el=t},onClick:function(t){return e._onClick(t)},onContextMenu:function(t){return e._onContextMenu(t)},onMouseOver:function(t){return e._onMouseOver(t)},onMouseOut:function(t){return e._onMouseOut(t)},onTouchStart:function(t){return e._onTouchStart(t)},onTouchEnd:function(t){return e._onTouchEnd(t)},onKeyDown:function(t){return e._onKeyDown(t)}}),d.default.createElement("div",{className:"starting-points-page__relationship__hint",ref:e.hintRef},A.default.get("startingPoints_select_diagram_node_hints")),e._buildRelationshipStrength()))})},t.prototype._renderOverrideList=function(){var e=this.props.relationship.getTargetModel(),t=null;if(e){var n=e.getAddedFields(),o=e.getDeletedFields(),i=this.props.fields.getFields().getAll(),r=function(e,t){return{fieldLabel:i.find(function(e){return e.id===t}).name,fieldID:t,action:e}},a=[].concat(n.map(function(e){return r(F.OVERRIDE_ACTIONS.ADDED,e)}).reverse(),o.map(function(e){return r(F.OVERRIDE_ACTIONS.DELETED,e)}).reverse());a.length&&(t=d.default.createElement(R.default,{overrideFields:a,cancelAction:function(t,n){e.cancelAction(t,n)}}))}return t},t.prototype._buildRelationshipToolbar=function(){if(this.props.relationship.getIsFilterStrengthFeatureEnabled()&&!this.props.relationship.isNewStartingPointsFeatureEnabled()){var e=this.props.relationship.getTargetModel();return e?(e.initialFilterStrength.min,e.initialFilterStrength.max,d.default.createElement(O.default,{targetModel:e})):null}return null},t.prototype._buildToolbarMarkup=function(e){return this.props.relationship.getIsFilterStrengthFeatureEnabled()||this.props.relationship.isNewStartingPointsFeatureEnabled()?null:d.default.createElement("div",{className:"relationship-vis-view__toolbar"},this._buildToggleMarkUp(e),this._buildSliderMarkup(e))},t.prototype._buildRelationshipStrength=function(){if(!this.props.relationship.isNewStartingPointsFeatureEnabled())return null;var e=this.props.relationship.getTargetModel();return e?(e.initialMinStrength,e.initialMaxStrength,d.default.createElement(T.default,{targetModel:e})):null},t.prototype._buildToggleMarkUp=function(){var e=this;if(!this.props.relationship.isConceptsViewEnabled())return null;var t=A.default.get("relationshipGraph_toggle_label");return d.default.createElement("div",{className:"relationship-vis-view__toggler"},d.default.createElement(w.ToggleSwitch,{label:t,align:"right",onChange:function(){e.props.relationship.setShowConcepts(!e.props.relationship.showConcepts)},checked:this.props.relationship.showConcepts,small:!0}))},t.prototype._buildSliderMarkup=function(){var e=this,t=(0,_.default)({"relationship-vis-view__sliderParent":!0}),n=A.default.get("relationshipGraph_slider_label"),o=A.default.get("relationshipGraph_slider_tooltip");return d.default.createElement("div",{className:t,onMouseUp:function(){return e._sliderOnMouseUp()},onKeyUp:function(){return e._sliderOnMouseUp()},onTouchEnd:function(){return e._sliderOnMouseUp()}},d.default.createElement(w.Tooltip,{title:o,orient:"top"},n),d.default.createElement("div",{className:"relationship-vis-view__sliderContainer"},d.default.createElement(w.Slider,{showTooltip:!0,value:this.state.slider,showBoundaryLabels:!0,className:"relationship-vis-view__slider",onChange:function(t){e.setState({slider:t})},small:!0,min:2,max:50})))},t.prototype._sliderOnMouseUp=function(){this.props.relationship.setNodesLimit(this.state.slider)},t.prototype.onResize=function(){this._isValidWidgetSize()&&this.widget.render("client")},t.prototype._isValidWidgetSize=function(){return this.widget&&this.widget.domNode&&this.widget.domNode.clientHeight>0&&this.widget.domNode.clientWidth>0},t.prototype._callback=function(){},t.prototype._handleDrop=function(e){var t=this;this.setState({dndHover:!1});var n=this._getDragItems(e);if(n){var o=this.props.relationship.getCurrentTargetId();if(o&&(this.nodesFound.length&&(this.nodesFound.forEach(function(e){t.removeHighlight(e,o)}),this.widget.render("client")),this.nodesFound.length!==n.length)){this._handleDragLeave();var i=this.props.relationship.getTargetModel();i&&i.setLastAddedFields(n)}}},t.prototype._handleDragEnter=function(e){var t=this;this.nodesFound=[];var n=this.props.relationship.getCurrentTargetId(),o=this._getDragItems(e);n&&o&&(o.forEach(function(e){t.addHighlight(e,n)&&t.nodesFound.push(e)}),this.nodesFound.length===o.length?this.widget.render("client"):(this.setState({dndHover:!0}),this.el.classList.add("relationship-vis-view__widget-parent-placeholder--dragEnter")))},t.prototype._handleDragLeave=function(){this.setState({dndHover:!1}),this.el.classList.remove("relationship-vis-view__widget-parent-placeholder--dragEnter")},t.prototype._getDragItems=function(e){if(e&&e.data&&e.data.items){var t=e.data.items;if(t.length)return t.map(function(e){return e.idForExpression})}return null},t.prototype._handleAccept=function(e){return!0},t.prototype._onClick=function(e){var t=this._getEventHandler();return t&&t.onClick(e)},t.prototype._onContextMenu=function(e){var t=this._getEventHandler();return t&&t.onRightClick(e)},t.prototype._onMouseOver=function(e){var t=this._getEventHandler();return t&&t.onMouseOver(e)},t.prototype._onMouseOut=function(e){var t=this._getEventHandler();return t&&t.onMouseOut(e)},t.prototype._onMouseEnter=function(){this.hintRef.current.classList.remove("starting-points-page__relationship__hint__hidden")},t.prototype._onMouseLeave=function(){this.hintRef.current.classList.add("starting-points-page__relationship__hint__hidden")},t.prototype._onTouchStart=function(e){var t=this._getEventHandler();t&&t.onTouchStart(e)},t.prototype._onTouchEnd=function(e){var t=this._getEventHandler();t&&t.onTouchEnd(e)},t.prototype._onKeyDown=function(e){var t=this._getEventHandler();t&&t.onKeyDown(e)},t.prototype._getEventHandler=function(){return this.getEventHandler&&this.getEventHandler()},t}(l.Component))||s;z.propTypes={relationship:g.default.object.isRequired,services:g.default.object,fields:g.default.object},t.default=z},function(e,t,n){"use strict";t.__esModule=!0;var o=n(7);t.default=o.types.model("RelationshipVisViewModel",{lastVisValid:o.types.optional(o.types.boolean,!0),setTargetHandle:o.types.optional(o.types.union(o.types.number,o.types.null),null)}).volatile(function(){return{target:null}}).actions(function(e){return{setLastVisValid:function(t){e.lastVisValid=t},setContextMenuTarget:function(t){e.setTargetHandle&&(clearTimeout(e.setTargetHandle),e.setTargetHandle=null),e.target=null,t&&(e.setTargetHandle=setTimeout(function(){return e._setTarget(t)},250))},_setTarget:function(t){e.target=t,e.setTargetHandle=null}}})},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=n(14),a=o(r),s=n(8),l=o(s),d=n(16),u=o(d),c=function(){function e(t,n,o,r,a,s,l){i(this,e),this.domNode=t,this.className=n,this.dropHandler=o,this.acceptsHandler=r,this.dragEnterHandler=a,this.dragLeaveHandler=s,this.relationshipVM=l}return e.prototype.accepts=function(e){var t=this.getData(e);if(t&&t.length){var n=this.relationshipVM.getTargetModel(),o=n.getDiagramNodeCount();if(!o||t.length+o>u.default.max_nodes_to_display)return!1;return!t.some(function(e){if(!e.getObjectType||"QueryItem"!==e.getObjectType()&&"Calculation"!==e.getObjectType())return!0})}return!1},e.prototype.getData=function(e){return this._getDropMetadataColumns(e)},e.prototype._getDropMetadataColumns=function(e){return l.default.map(e&&e.data&&e.data.columns,function(e){return e.metadataColumn})},e.prototype.activateDropTarget=function(){(0,a.default)(this.domNode).toggleClass(this.className,!0)},e.prototype.deactivateDropTarget=function(){(0,a.default)(this.domNode).toggleClass(this.className,!1)},e.prototype.onDragStart=function(){},e.prototype.onDragEnter=function(e,t){this.dragEnterHandler(e,t)},e.prototype.onDragMove=function(){this.activateDropTarget()},e.prototype.onDragLeave=function(){this.deactivateDropTarget(),this.dragLeaveHandler()},e.prototype.onDragEnd=function(){this.deactivateDropTarget()},e.prototype.onDrop=function(e,t){this.dropHandler(e,t)},e.prototype.initializeDndSource=function(e){var t=this;(0,a.default)(this.domNode).on("mousedown touchstart",{},function(n){var o=(0,a.default)('
',{class:"listitem columnName avatarLive"});return o.append((0,a.default)(t.domNode).clone()),e.startDrag({event:n,avatar:o,moveXThreshold:20,moveYThreshold:20}),!0})},e}();t.default=c},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n,o){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(o):void 0})}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var l,d,u,c=n(0),p=o(c),f=n(11),h=n(5),m=n(20),g=o(m),v=n(1),_=o(v),y=n(10),b=o(y),w=n(6),x=n(2),C=o(x);n(31);var S=n(111),E=o(S),M=n(112),T=o(M),I={small:[0,699],large:[700,1/0]},A=(0,h.observer)((d=function(e){function t(n){r(this,t);var o=a(this,e.call(this,n));return i(o,"sliderRange",u,o),o.resetFlyout=function(){o.setState({isInfoTooltipOpen:!1}),o.strengthInfoRef.current&&o.strengthInfoRef.current.focus()},o._onKeyDown=function(e){switch(e.key){case" ":case"Enter":o._onInfoClick(e)}},o._onInfoClick=function(e){e&&e.target&&e.target.classList&&e.target.classList.contains("relationship-vis-view__strength__info")&&o.setState({isInfoTooltipOpen:!o.state.isInfoTooltipOpen})},o.sliderRange={min:o.props.targetModel.computedMinStrength,max:o.props.targetModel.computedMaxStrength},o.state={size:void 0,isInfoTooltipOpen:!1},o.strengthInfoRef=p.default.createRef(),o}return s(t,e),t.prototype.componentWillReceiveProps=function(e){this.sliderRange={min:e.targetModel.computedMinStrength,max:e.targetModel.computedMaxStrength},this.setState(this.state)},t.prototype.render=function(){var e=this,t=C.default.get("relationshipGraph_filterStrength_label"),n=this.state.size,o=(0,b.default)({"relationship-vis-view__strength":!0,small:"small"===n,large:"large"===n});return p.default.createElement(g.default,{onResize:function(t){return e._onResize(t)}},function(n){var i=n.measureRef;return p.default.createElement("div",{className:o,ref:i},e._buildInformationMarkup(t),e._buildSliderMarkup())})},t.prototype._onResize=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.entry;t=void 0===t?{}:t;var n=t.width;if(n){var o=Object.keys(I).find(function(e){var t=I[e],o=t[0],i=t[1];return n>=o&&n<=i});o&&this.setState({size:o})}},t.prototype._buildInformationMarkup=function(e){return p.default.createElement("div",{className:"relationship-vis-view__strength__infoParent"},p.default.createElement("div",{ref:this.strengthInfoRef,className:"relationship-vis-view__strength__info",tabIndex:0,"aria-label":e,onClick:this._onInfoClick,onKeyDown:this._onKeyDown},p.default.createElement(w.SVGIcon,{iconId:T.default.id,intent:"primary"}),p.default.createElement("div",{className:"relationship-vis-view__strength__infoTooltip"},p.default.createElement(E.default,{isOpen:this.state.isInfoTooltipOpen,triggerNode:this.strengthInfoRef.current,onClose:this.resetFlyout}))),p.default.createElement(w.Label,{className:"relationship-vis-view__strength__infoLabel",label:e}))},t.prototype._buildSliderMarkup=function(){var e=this,t=this.state.size,n=(0,b.default)({"relationship-vis-view__strength__slider":!0,small:"small"===t,large:"large"===t}),o=function(e){return e?e.toString()+"%":null};return p.default.createElement("div",{className:n},p.default.createElement(w.RangeSlider,{showTooltip:!0,showBoundaryLabels:!0,className:"relationship-vis-view__strength__slider__range",values:[this.sliderRange.min,this.sliderRange.max],labelFormatter:o,onChange:function(t){return e._onValueChange.apply(e,t)},onInputComplete:function(){return e._onInputComplete()},size:"small",min:10,max:100}))},t.prototype._onValueChange=function(e,t){this.sliderRange={min:e,max:t}},t.prototype._onInputComplete=function(){this.props.targetModel.setFilterStrength({min:this.sliderRange.min,max:this.sliderRange.max})},t}(c.Component),u=function(e,t,n,o,i){var r={};return Object.keys(o).forEach(function(e){r[e]=o[e]}),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce(function(n,o){return o(e,t,n)||n},r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null),r}(d.prototype,"sliderRange",[f.observable],{enumerable:!0,initializer:function(){return null}}),l=d))||l;A.propTypes={targetModel:_.default.object.isRequired},t.default=A},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018, 2020\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.relationshipViewWrapper {\n display: -ms-flexbox;\n display: flex;\n -ms-flex: 1;\n flex: 1;\n height: 100%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.relationship-vis-view__tooltip {\n text-align: left;\n word-break: break-all;\n padding: 0;\n margin: 0;\n}\n\n.relationship-vis-view__tooltip .ba-common-label {\n color: white;\n color: hsla(var(--text-04-h, 0), var(--text-04-s, 0%), var(--text-04-l, 100%), 1);\n}\n\n.relationship-vis-view__disambiguatingTooltip {\n min-width: 240px;\n text-align: left;\n padding-bottom: 5px;\n}\n\n.relationship-vis-view__disambiguatingTooltipTitle {\n min-width: 240px;\n padding-left: 8px;\n padding-top: 5px;\n}\n\n.starting-points-page .relationship-vis-view {\n -ms-flex: 1;\n flex: 1;\n position: relative;\n}\n\n.starting-points-page .relationship-vis-view__widget-parent-placeholder {\n width: 100%;\n height: 100%;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.starting-points-page .relationship-vis-view__widget-parent-placeholder__widget_wrapper {\n width: 100%;\n height: 100%;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.starting-points-page .relationship-vis-view__widget-parent-placeholder__widget_wrapper .overrideList {\n -ms-flex-item-align: end;\n align-self: flex-end;\n}\n\n.starting-points-page .relationship-vis-view__widget-parent-placeholder__widget {\n height: 100%;\n width: 100%;\n}\n\n.starting-points-page .relationship-vis-view__widget-parent-placeholder--error {\n visibility: hidden;\n}\n\n.starting-points-page .relationship-vis-view__widget-parent-placeholder--loading-error {\n visibility: hidden;\n}\n\n.starting-points-page .relationship-vis-view__widget-parent-placeholder--loading-ok {\n opacity: 0.5;\n}\n\n.starting-points-page .relationship-vis-view__widget-parent-placeholder--dragEnter {\n opacity: 0.3;\n}\n\n.starting-points-page .relationship-vis-view__widget-parent-placeholder_containerDndHover {\n height: 100%;\n width: 100%;\n outline-style: solid;\n outline-width: 2px;\n outline-color: #0f62fe;\n outline-color: hsla(var(--interactive-01-h, 219.16318), var(--interactive-01-s, 99.17012%), var(--interactive-01-l, 52.7451%), 1);\n outline-offset: -10px;\n box-sizing: border-box;\n}\n\n.starting-points-page .relationship-vis-view__toolbar {\n width: 100%;\n height: 60px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n\n.starting-points-page .relationship-vis-view__filter {\n position: absolute;\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n -ms-flex-pack: end;\n justify-content: flex-end;\n padding-top: 24px;\n}\n\n.starting-points-page .relationship-vis-view__toolbarNew {\n width: 100%;\n height: 23px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n border-bottom: 1px solid;\n border-bottom-color: #e0e0e0;\n border-bottom-color: hsla(var(--ui-03-h, 0), var(--ui-03-s, 0%), var(--ui-03-l, 87.84314%), 1);\n -ms-flex-align: center;\n align-items: center;\n padding: 8px 0px;\n font-size: 12px;\n}\n\n.starting-points-page .relationship-vis-view__toolbarNew__info {\n padding-top: 2px;\n cursor: pointer;\n}\n\n.starting-points-page .relationship-vis-view__toolbarNew__info svg {\n vertical-align: middle;\n fill: #525252;\n fill: hsla(var(--icon-02-h, 0), var(--icon-02-s, 0%), var(--icon-02-l, 32.15686%), 1);\n}\n\n.starting-points-page .relationship-vis-view__toolbarNew__sliderParent {\n min-width: 250px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.starting-points-page .relationship-vis-view__toolbarNew__sliderParent__sliderLabel {\n padding-left: 5px;\n}\n\n.starting-points-page .relationship-vis-view__toolbarNew__sliderParent__sliderContainer {\n margin-left: 8px;\n}\n\n.starting-points-page .relationship-vis-view__toolbarNew__sliderParent__slider {\n width: 150px;\n -ms-flex: 1;\n flex: 1;\n}\n\n.starting-points-page .relationship-vis-view__toolbarNew__sliderParent__slider__range {\n width: 250px;\n -ms-flex: 1;\n flex: 1;\n}\n\n.starting-points-page .relationship-vis-view__toolbarNew__sliderParent__slider__range .ba-common-slider__boundary_label {\n margin: 0px 2px;\n}\n\n.starting-points-page .relationship-vis-view__toolbarNew .ba-common-separator {\n border-color: #e0e0e0;\n border-color: hsla(var(--ui-03-h, 0), var(--ui-03-s, 0%), var(--ui-03-l, 87.84314%), 1);\n}\n\n.starting-points-page .relationship-vis-view__toolbarNew__secondaryRelationship-checkbox .ba-common-checkbox__box {\n box-sizing: border-box;\n}\n\n.starting-points-page .relationship-vis-view__strength {\n width: 100%;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n padding: 8px 0px;\n font-size: 12px;\n}\n\n.starting-points-page .relationship-vis-view__strength__infoParent {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n\n.starting-points-page .relationship-vis-view__strength__infoLabel {\n padding-left: 5px;\n color: #393939;\n color: hsla(var(--text-02-h, 0), var(--text-02-s, 0%), var(--text-02-l, 22.35294%), 1);\n}\n\n.starting-points-page .relationship-vis-view__strength__info {\n cursor: pointer;\n}\n\n.starting-points-page .relationship-vis-view__strength__info svg {\n vertical-align: middle;\n fill: #525252;\n fill: hsla(var(--icon-02-h, 0), var(--icon-02-s, 0%), var(--icon-02-l, 32.15686%), 1);\n}\n\n.starting-points-page .relationship-vis-view__strength__slider__range {\n width: 250px;\n -ms-flex: 1;\n flex: 1;\n}\n\n.starting-points-page .relationship-vis-view__strength__slider__range .ba-common-slider__boundary_label {\n margin: 0px 2px;\n}\n\n.starting-points-page .relationship-vis-view__strength__slider.small {\n font-size: inherit;\n position: relative;\n margin-bottom: 8px;\n}\n\n.starting-points-page .relationship-vis-view__strength__slider.large {\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n}\n\n.starting-points-page .relationship-vis-view__strength.small {\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n}\n\n.starting-points-page .relationship-vis-view__toggler * {\n box-sizing: border-box;\n}\n\n.starting-points-page .relationship-vis-view__sliderParent {\n min-width: 250px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n}\n\n.starting-points-page .relationship-vis-view__sliderContainer {\n margin-left: 16px;\n}\n\n.starting-points-page .relationship-vis-view__slider {\n width: 150px;\n -ms-flex: 1;\n flex: 1;\n}\n\n.starting-points-page .relationship-vis-view__slider__range {\n width: 250px;\n -ms-flex: 1;\n flex: 1;\n}\n\n.starting-points-page .relationship-vis-view__displayVisContent {\n display: block;\n}\n\n.starting-points-page .relationship-vis-view__error {\n height: 100%;\n width: 100%;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-pack: center;\n justify-content: center;\n text-align: center;\n}\n\n.starting-points-page .relationship-vis-view__error__title {\n font-size: 16px;\n font-weight: 700;\n}\n\n.starting-points-page .relationship-vis-view--loading {\n position: absolute;\n top: 50%;\n left: 50%;\n}\n\n",""])},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n,o){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(o):void 0})}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var l,d,u,c=n(0),p=o(c),f=n(11),h=n(5),m=n(1),g=o(m),v=n(10),_=o(v),y=n(6),b=n(2),w=o(b);n(31);var x=n(111),C=o(x),S=n(112),E=o(S),M=(0,h.observer)((d=function(e){function t(n){r(this,t);var o=a(this,e.call(this,n));return i(o,"sliderRange",u,o),o._onKeyDown=function(e){switch(e.key){case" ":case"Enter":o._onInfoClick(e)}},o._onInfoClick=function(e){e&&e.target&&e.target.classList&&e.target.classList.contains("relationship-vis-view__toolbarNew__info")&&o.props.targetModel.relationshipVM.toggleInfoTooltip(e.target)},o.sliderRange={min:o.props.targetModel.computedMinStrength,max:o.props.targetModel.computedMaxStrength},o}return s(t,e),t.prototype.componentWillReceiveProps=function(e){this.sliderRange={min:e.targetModel.computedMinStrength,max:e.targetModel.computedMaxStrength}},t.prototype.render=function(){var e=w.default.get("relationshipGraph_filterStrength_label");return p.default.createElement("div",{className:"relationship-vis-view__toolbarNew"},this._buildInformationMarkup(e),this._buildSliderMarkup(e),p.default.createElement(y.Separator,{orientation:"vertical",hMargin:2}),this._buildCheckboxMarkUp())},t.prototype._buildInformationMarkup=function(e){return p.default.createElement("div",{className:"relationship-vis-view__toolbarNew__info",tabIndex:0,"aria-label":e,onClick:this._onInfoClick,onKeyDown:this._onKeyDown},p.default.createElement(y.SVGIcon,{iconId:E.default.id,style:{"vertical-align":"top"}}),p.default.createElement("div",{className:"relationship-vis-view__toolbarNew__infoTooltip"},p.default.createElement(C.default,{model:this.props.targetModel.relationshipVM.getInfoTooltipModel()})))},t.prototype._buildCheckboxMarkUp=function(){var e=this,t=w.default.get("relationshipGraph_secondaryRelationship_label");return p.default.createElement("div",{className:"relationship-vis-view__toolbarNew__secondaryRelationship-checkbox",tabIndex:0},p.default.createElement(y.Checkbox,{label:t,align:"left",onChange:function(){e.props.targetModel.setShowPrimaryRelationshipView(!e.props.targetModel.showPrimaryRelationshipView)},checked:!this.props.targetModel.showPrimaryRelationshipView,size:"small"}))},t.prototype._buildSliderMarkup=function(e){var t=this,n=(0,_.default)({"relationship-vis-view__toolbarNew__sliderParent":!0}),o=function(e){return e.toString()+"%"};return p.default.createElement("div",{className:n},p.default.createElement(y.Label,{className:"relationship-vis-view__toolbarNew__sliderParent__sliderLabel",label:e}),p.default.createElement("div",{className:"relationship-vis-view__toolbarNew__sliderParent__sliderContainer"},p.default.createElement(y.RangeSlider,{showTooltip:!0,showBoundaryLabels:!0,className:"relationship-vis-view__toolbarNew__sliderParent__slider__range",values:[this.sliderRange.min,this.sliderRange.max],labelFormatter:o,onChange:function(e){return t._onValueChange.apply(t,e)},onInputComplete:function(){return t._onInputComplete()},size:"small",min:10,max:100})))},t.prototype._onValueChange=function(e,t){this.sliderRange={min:e,max:t}},t.prototype._onInputComplete=function(){this.props.targetModel.setFilterStrength({min:this.sliderRange.min,max:this.sliderRange.max})},t}(c.Component),u=function(e,t,n,o,i){var r={};return Object.keys(o).forEach(function(e){r[e]=o[e]}),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce(function(n,o){return o(e,t,n)||n},r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null),r}(d.prototype,"sliderRange",[f.observable],{enumerable:!0,initializer:function(){return null}}),l=d))||l;M.propTypes={targetModel:g.default.object.isRequired},t.default=M},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s,l=n(0),d=o(l),u=n(1),c=o(u),p=n(5),f=n(110),h=o(f),m=n(6),g=n(2),v=o(g),_=n(408),y=o(_),b=n(16),w=o(b);n(409);var x=(0,p.observer)(s=function(e){function t(n){i(this,t);var o=r(this,e.call(this,n));return o.state={showOverrideListFlyout:!1},o}return a(t,e),t.prototype.componentDidMount=function(){document.addEventListener("mousedown",this._onClose.bind(this)),document.addEventListener("touchstart",this._onClose.bind(this))},t.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this._onClose.bind(this)),document.removeEventListener("touchstart",this._onClose.bind(this))},t.prototype.render=function(){var e=this,t=this.props.overrideFields,n=t.length;if(0===n)return null;var o=v.default.get("relationshipGraph_number_of_overrides",{number:n>w.default.max_number_override_badge_shown?v.default.get("relationshipGraph_more_overrides_than_max_indicator",{number:w.default.max_number_override_badge_shown}):n});return d.default.createElement("div",{className:"overrideList",ref:function(t){e._overrideListRef=t}},d.default.createElement("div",{className:"overrideListBadge",tabIndex:"0","arial-label":o,onClick:this._toggle.bind(this),onKeyDown:this._onKeyDown.bind(this),onTouchEnd:this._toggle.bind(this),ref:function(t){e._overrideListBadgeRef=t}},o),this._renderOverrideListFlyout(t))},t.prototype._onClose=function(e){this._overrideListRef&&!this._overrideListRef.contains(e.target)&&this.setState({showOverrideListFlyout:!1})},t.prototype._renderOverrideListFlyout=function(e){return this.state.showOverrideListFlyout?d.default.createElement(h.default,{triggerNode:this._overrideListBadgeRef,className:"overrideListFlyout",placement:f.PLACEMENTS.BOTTOM,alignment:f.ALIGNMENTS.RIGHT},this._renderList(e)):null},t.prototype._renderList=function(e){var t=this;return d.default.createElement("div",{className:"overrideListFlyout-list"},function(){return e.map(function(n,o){return d.default.createElement(d.default.Fragment,{key:o},d.default.createElement("div",{className:"overrideListFlyout-list__listEntry"},d.default.createElement(m.TruncatedText,{value:n.fieldLabel,title:n.fieldID,className:"overrideListFlyout-list__listEntry__field"}),d.default.createElement("div",{className:"overrideListFlyout-list__listEntry__action"},d.default.createElement("span",{className:"overrideListFlyout-list__listEntry__action__text"},v.default.get("relationshipGraph_override_action_"+n.action)),d.default.createElement(m.Button,{className:"overrideListFlyout-list__listEntry__action__cancelButton",iconSize:"small",variant:"icon",intent:"primary",iconLeft:y.default.id,"aria-label":v.default.get("relationshipGraph_cancel_override"),onClick:function(){return t.props.cancelAction(n.action,n.fieldID)}}))),o'});a.a.add(s),t.a=s}},["4d98f53e61fdcfb55d18"])})}).call(t,n(21)(e))},function(e,t,n){var o=n(410);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,".overrideList {\n font-size: 0.75rem;\n}\n\n.overrideList .overrideListBadge {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n border-radius: 10px;\n background: black;\n padding: 0 8px;\n color: #fff;\n}\n\n.overrideList .overrideListFlyout {\n border: 1px solid rgba(0, 0, 0, 0.1);\n}\n\n.overrideList .overrideListFlyout-list {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n width: 300px;\n max-height: 175px;\n overflow: auto;\n}\n\n.overrideList .overrideListFlyout-list__listEntry {\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n height: 35px;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: justify;\n justify-content: space-between;\n padding-left: 8px;\n box-sizing: border-box;\n}\n\n.overrideList .overrideListFlyout-list__listEntry__field {\n font-weight: 700;\n width: 200px;\n}\n\n.overrideList .overrideListFlyout-list__separator {\n border-color: #eaeaea;\n}\n\n",""])},function(e,t,n){"use strict";(function(e){var o,i,r,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(s,l){if("object"==a(t)&&"object"==a(e))e.exports=l(n(23));else{i=[n(23)],o=l,void 0!==(r="function"==typeof o?o.apply(t,i):o)&&(e.exports=r)}}("undefined"!=typeof self&&self,function(e){return webpackJsonPBaGraphics([61],{"3865314c5959606874d4":function(t,n){t.exports=e},d09b3593c610aa068728:function(e,t,n){var o=n("9689a9c94ae38b47fa2c"),i=n.n(o),r=n("9ce58a7deea14f49ef01"),a=n.n(r),s=new i.a({id:"no-relationship-diagram_128_v7",use:"no-relationship-diagram_128_v7-usage",viewBox:"0 0 128 128",content:''});a.a.add(s),t.a=s},d755a3ec487601b1fd33:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n("3865314c5959606874d4"),i=(n.n(o),n("d09b3593c610aa068728"));t.default=i.a}},["d755a3ec487601b1fd33"])})}).call(t,n(21)(e))},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s,l=n(0),d=o(l),u=n(5),c=n(6),p=n(1),f=o(p),h=n(16),m=o(h),g=(0,u.observer)(s=function(e){function t(){return i(this,t),r(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e=this.props.targetModel;if(!e)return null;if(!e.relationshipVM.isNewStartingPointsFeatureEnabled())return null;var t=e.actionStatus;if(!t)return null;var n={targetId:this.props.containerId,statusType:t.level,milliseconds:m.default.diagram_status_bar_toast_time_duration,timedDismiss:"error"!==t.level,contentString:""+t.message,style:{position:"absolute",left:0,top:"0px"},onClose:function(){e.emptyActionStatus()}};return d.default.createElement(c.GlobalToast,n)},t}(l.Component))||s;g.propTypes={containerId:f.default.string.isRequired,targetModel:f.default.object},t.default=g},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s,l=n(0),d=o(l),u=n(5),c=n(1),p=o(c),f=n(6),h=n(28),m=n(2),g=o(m);n(31);var v=(0,u.observer)(s=function(e){function t(n){i(this,t);var o=r(this,e.call(this,n));return o._closeToolTip=function(){o.props.model.showTooltip(null)},o._shapingAncestorTree_includeParent=function(){return!0},o}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.model,n=e.shouldUseDisambiguatedPaths,o=t.getTooltipInfo();return o?n&&this._isTooltipForRGNode(o)?this._renderDisambiguatedTooltip(o):this._renderTooltip(o):null},t.prototype._renderTooltip=function(e){var t=this._renderTitle(e);return d.default.createElement(f.TooltipPopup,{orient:"top",title:t,triggerState:{top:e.coordinates.top,left:e.coordinates.left,width:e.coordinates.width},delay:1500,style:{position:"fixed"}})},t.prototype._isTooltipForRGNode=function(e){return""!==e.title[0].label},t.prototype._renderTitle=function(e){var t=e.title.map(function(t,n){var o=void 0;n0&&e.length<=2){var n=[{model:e[0]}],o=void 0;2===e.length?(n.push({model:e[1]}),o={model:{subType:"compare"},selectAfterAdd:!0}):o={selectAfterAdd:!0};var i=this.parentLayout.model,r=i.addVisCard(n,t,o);2===e.length&&i.cardModelUtil.copyPageContextAndRescope(i,{layoutId:this.id,cloneId:r})}},t.prototype._beforeOnShow=function(e,t){var n=document.getElementById(e);n&&(this._tempParentNode.appendChild(n),this.addChildRenderMarkup(e,t),this.model.incrChildReadyCount())},t.prototype._onAddCometVisualization=function(e){this._onAddVisualization(e,"addRelatedRecommendation")},t.prototype._onClickVisualizationFromFooterView=function(e){this._onAddVisualization(e,"exploreSelectCometRecommendation")},t.prototype._onAddVisualization=function(e,t){var n=this.model.cometViewModel.covertRecommendationToWidgetSpec(e);this.parentLayout.view.addVisCard(n,t),(0,m.openCardsPane)(this.layoutController.dashboardApi)},t.prototype.triggerWidgetRender=function(){var e=this.parentLayout.model.exploreVM;if(e){if(e.isCardDisplayed(this.id)){var t=document.querySelector("[data-id="+this.model.id+"] .widgetContent[rendercount]");0===(t?t.childElementCount:0)&&this._callChildrenFunction("onShow")}}},t.prototype.triggerOnShowCard=function(){var e=this,t=function(){var t=void 0;return e.resizePendingOnShow?(e.resizePendingOnShow=!1,e.resize(),t=1):(e._callChildrenFunction("onShow"),t=0),t};return this.parentLayout.model.exploreVM.isCardDisplayed(this.id)?this._waitTillChildLayoutsReady().then(function(){return t()}):Promise.resolve()},t.prototype._waitTillChildLayoutsReady=function(){var e=[];return Object.values(this._widgetPromises).forEach(function(t){t.allPromisesForOneWidget.forEach(function(t){e.push(t)})}),Promise.all(e)},t.prototype.showVisTypesDialog=function(e){this.model.setShowModalVisTypePicker(!0,e)},t.prototype.closeVisTypeChooser=function(){this.model.setShowModalVisTypePicker(!1)},t.prototype.replaceWithWidget=function(e,t){return this.model.replaceWidgetInCard(e,t,"cardCreate")},t.prototype.placeWidgetInCard=function(e,t){return this.model.placeWidgetInCard(e,t)},t.prototype.createVisFromVisType=function(e,t){var n={model:{type:"live",visId:e,visTypeLocked:!0,data:{}}};this.replaceWithWidget(n,t)},t.prototype.removeChild=function(e){e&&this._removeChild(e.id)},t.prototype._removeChild=function(e){this.removeChildRenderMarkup(e),this._widgetPromises[e]&&delete this._widgetPromises[e],this._widgetNodeMap[e]&&delete this._widgetNodeMap[e]},t.prototype._onModelRemoveItem=function(e){this.destroy(e)},t.prototype._destroyWidgets=function(e){var t=this,n=this._widgetNodeMap||{};Object.entries(n).forEach(function(n){t._removeChild(n[1].id),n[1]._layout&&(n[1]._layout.destroy(e),n[1]._layout=null)})},t.prototype.destroy=function(t){if(this.layoutController&&t&&t.value&&t.value.parameter===this.model.id){if(this._tempParentNode)if(this._tempParentNode.remove)this._tempParentNode.remove();else if(this._tempParentNode.removeChild){var n=this._tempParentNode.children;if(n.length>0)for(var o=n,i=Array.isArray(o),r=0,o=i?o:o[Symbol.iterator]();;){var a;if(i){if(r>=o.length)break;a=o[r++]}else{if(r=o.next(),r.done)break;a=r.value}var s=a;this._tempParentNode.removeChild(s)}}this._tempParentNode=null,this._destroyWidgets(t),this.view&&(this.view._alive=!1),e.prototype.destroy.call(this,t)}else this.logger.warn("destroy not done for layout "+this.model.type+" id "+this.id)},t.prototype.getRenderMarkup=function(){var e=this;return this.model.isCompareEnabled?l.default.createElement(f.CompareCardView,{model:this.model},function(t,n,o,i,r,a){return l.default.createElement(u.ExploreCardView,{getWidgetHeaderMap:n,footerView:o(),layoutOwner:e,headerView:t,model:e.model,layoutClasses:i,cardLayoutVM:e.cardLayoutVM,layoutController:e.layoutController,renderPopOver:a,getCrossHairMatchingPoints:r,services:e.services})}):l.default.createElement(h.CometCardView,{onAddItem:this._onAddCometVisualization.bind(this),onClickItem:this._onClickVisualizationFromFooterView.bind(this),model:this.model,dashboardApi:this.layoutController.dashboardApi,dataSourceId:this.layoutController.boardModel.layout.exploreVM.activeDataSourceId,layoutOwner:this,logger:this.logger},function(t,n,o,i){return l.default.createElement(u.ExploreCardView,{layoutOwner:e,model:e.model,layoutClasses:i,cardLayoutVM:e.cardLayoutVM,layoutController:e.layoutController,footerView:o(),services:e.services})})},t.prototype.onItemAddDone=function(){this.model.cometViewModel.hookupCustomDataHandler()},t.prototype.resizeIfVisible=function(){this.model.isDisplayed?this.resize():this.resizePendingOnShow=!0},t}(d.LayoutBase);t.default=g},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.ExploreCardView=void 0;var s,l=n(0),d=o(l),u=n(5),c=n(7),p=n(1),f=o(p),h=n(38),m=n(417),g=n(20),v=o(g),_=n(10),y=o(_);n(426);(t.ExploreCardView=(0,u.observer)(s=function(e){function t(n){i(this,t);var o=r(this,e.call(this,n));return o.state={dimensions:{width:-1,height:-1}},o.onResize=function(e){0!==e.bounds.height&&0!==e.bounds.width&&o.setState({dimensions:e.bounds})},o.footerView=o.props.footerView,o.boardModel=o.props.layoutController.boardModel,o._childrenRenderMarkupAdded=o.model.childrenRenderMarkupAdded||0,o._alive=!0,o.listeners=[],o.boardModel._hookupCustomDataHandler=function(){return o.props.model.cometViewModel.hookupCustomDataHandler()},o}return a(t,e),t.prototype.componentDidMount=function(){this.props.model.cometViewModel.hookupCustomDataHandler(),this.listeners.push(this.boardModel.on("addWidget",this._onAddWidget.bind(this))),this.listeners.push(this.boardModel.on("addLayouts",this._onAddLayout.bind(this)))},t.prototype.componentWillUnmount=function(){this._removeListeners()},t.prototype._onAddWidget=function(e){if(e.value){var t=e.value.parameter.model.id,n=["widget.live"];return"UndoRedoController"===e.sender&&n.push("widget.placeholder"),this._doContentSelection(t,n)}return Promise.resolve()},t.prototype._onAddLayout=function(e){if(e.value){var t=e.value.parameter.addLayoutArray;if(t&&1===t.length){var n=t[0].model.id,o=["widget.live"];return"UndoRedoController"===e.sender&&o.push("widget.placeholder"),this._doContentSelection(n,o)}}return Promise.resolve()},t.prototype._doContentSelection=function(e,t){if(e&&this.model.findModel(e)){var n=this._getDashboardApi(),o=n&&n.getFeature("Canvas");if(o){var i=o.getContent(e);if(i&&-1!==t.indexOf(i.getType())){var r=o.getContent(e).getFeature("state");return r.whenStatusChanges(r.STATUS.RENDERED).then(function(){var t=o.getSelectedContentList(),n=t.map(function(e){return e.getId()});o.deselectContent(n),o.selectContent([e])})}}}return Promise.resolve()},t.prototype._getDashboardApi=function(){return(0,c.getEnv)(this.props.model).dashboardApi},t.prototype._removeListeners=function(){this.listeners.forEach(function(e){e.remove()})},t.prototype.render=function(){return this.getRenderMarkup()},t.prototype.renderContent=function(){var e,t=this,n=0;this.layoutOwner=this.props.layoutOwner;var o=this.props.model.getVisualizations().map(function(e){e.widgetLayout&&n++;var o=e.widgetLayout?e.widgetLayout.id:e.placeholder.id,i=t.props.getWidgetHeaderMap&&t.props.getWidgetHeaderMap();return d.default.createElement(m.ExploreVisWidget,{dashboardApi:t.layoutController.dashboardApi,header:i&&i[o]||null,renderPopOver:t.props.renderPopOver,getCrossHairMatchingPoints:t.props.getCrossHairMatchingPoints,key:o,model:e,layoutOwner:t.layoutOwner,onDragEnd:function(){}})}),i=this.props.layoutClasses().classNamesMain,r=this.props.layoutClasses().classNamesCardRow,a=this.state.dimensions,s=a.width,l=a.height,u=(0,y.default)(r,(e={},e[r+"__vertical"]=l>s,e));return d.default.createElement("div",{className:"card-layout-content"},d.default.createElement("div",{className:i},d.default.createElement(v.default,{bounds:!0,onResize:this.onResize},function(e){var t=e.measureRef;return d.default.createElement("div",{ref:t,className:u},o)}),n>0&&this.props.footerView))},t.prototype.getRenderMarkup=function(){return d.default.createElement("div",{className:"card-layout"},this.renderContent())},t.prototype.trackWidgetDropTarget=function(e){this.parentLayout.trackWidgetDropTarget(e)},t}(h.ReactLayoutImplBase))||s).propTypes={items:f.default.array,layoutController:f.default.object,services:f.default.object,parentLayout:f.default.object,model:f.default.object,layoutOwner:f.default.object,getWidgetHeaderMap:f.default.func,getOverview:f.default.func,footerView:f.default.object,renderPopOver:f.default.func,getCrossHairMatchingPoints:f.default.func}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n,o){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(o):void 0})}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.ExploreVisWidget=void 0;var l,d,u,c=n(0),p=o(c),f=n(20),h=o(f),m=n(5),g=n(11),v=n(1),_=o(v),y=n(418),b=o(y),w=n(85),x=o(w),C=n(18),S=o(C),E=n(421),M=o(E);n(424);(t.ExploreVisWidget=(0,m.observer)((d=function(e){function t(n){r(this,t);var o=a(this,e.call(this,n));return i(o,"activateDropTarget",u,o),o.layoutOwner=n.layoutOwner,o.domNode=null,o._widgetDropTargetList=[],o.contentRect={width:0,height:0},o._disposeEvents=[],o.popoverParent=p.default.createRef(),o}return s(t,e),t.prototype.setBadgesInfo=function(e){this.badgesInfo=e},t.prototype.render=function(){return this.activateDropTarget,this.getRenderMarkup()},t.prototype._formatCaption=function(e){var t=[],n=[];return Object.keys(e).forEach(function(o){t.push(e[o][0]),n.push(e[o][1])}),[t,n]},t.prototype.getIsNewCompareLineEnabled=function(){return!this.props.dashboardApi.getGlassCoreSvc(".FeatureChecker").checkValue("explore","newCompareLine","false")},t.prototype._createPopover=function(e){var t=void 0,n=void 0,o="popoverHidden",i=this.props.getCrossHairMatchingPoints&&this.props.getCrossHairMatchingPoints();if(i&&i[e]&&i[e].length>0){o="popoverShown",t=this._formatCaption(i[e]),n=p.default.createElement(M.default,{crossHairInfo:t});var r=i[e].length;this.popoverParent&&this.popoverParent.current&&this.props.renderPopOver(n,this.popoverParent.current,r,{showFooter:!0,footerHeight:17},this.domNode)}return o},t.prototype.getRenderMarkup=function(){var e=this,t=this.props.layoutOwner,n=this.props.model,o=this.props.header,i=n.widgetLayout?n.widgetLayout.id:n.placeholder.id,r=n.widgetLayout&&n.widgetLayout.getBadgesTooltipModel&&n.widgetLayout.getBadgesTooltipModel(),a=this.getIsNewCompareLineEnabled()&&this._createPopover(i),s=null;return r&&(s=p.default.createElement(b.default,{layoutOwner:t,model:r})),p.default.createElement(h.default,{bounds:!0,onResize:function(t){return e.onResize(t)}},function(n){var r=n.measureRef;return p.default.createElement("div",{className:"layout-wrapper-container",ref:r},p.default.createElement("div",{className:"layout-wrapper",ref:function(t){e.domNode=t}},e.activateDropTarget&&e.getEmptyRenderMarkup(),s,o,p.default.createElement("div",{className:"widget-wrapper",ref:function(n){n&&e._attachWidgetLayout(t,n,i)}}),p.default.createElement("div",{className:a,ref:e.popoverParent})))})},t.prototype.onResize=function(e){0!==e.bounds.height&&0!==e.bounds.width&&(0===this.contentRect.height||e.bounds.height===this.contentRect.height&&e.bounds.width===this.contentRect.width||this.props.layoutOwner.resizeIfVisible(),this.contentRect.width=e.bounds.width,this.contentRect.height=e.bounds.height)},t.prototype._isLoading=function(){var e=!1;return this._childrenRenderMarkupAdded0&&(this._childrenRenderMarkupAdded=this.model.numberOfChildLayoutsReady,e=!0),!e},t.prototype._attachWidgetLayout=function(e,t,n){t&&e&&e.getWidgetPromises(n).setDomNode(t)},t.prototype._cleanupWidgetDropTargets=function(){this._widgetDropTargetList&&this._widgetDropTargetList.forEach(function(e){e.remove()})},t.prototype.trackWidgetDropTarget=function(e){this._widgetDropTargetList.push(e)},t.prototype.componentDidMount=function(){var e=this,t={domNode:this.domNode,className:"dndHover",dashboardApi:this.props.dashboardApi,replaceWithWidget:this.layoutOwner.replaceWithWidget.bind(this.layoutOwner),placeWidgetInCard:this.layoutOwner.placeWidgetInCard.bind(this.layoutOwner),widgetLayout:this.props.model.placeholder||this.props.model.widgetLayout,layoutModel:this.props.layoutOwner.model,activate:function(){return e.activateDropTarget=!0},deactivate:function(){e.props.onDragEnd(),e.activateDropTarget=!1}};this.props.dashboardApi.getDashboardSvc(".DndManager").then(function(n){if(e.domNode){var o=n.addDropTarget(e.domNode,new x.default(t));e.trackWidgetDropTarget(o)}}),this._disposeEvents.push(this.props.dashboardApi.on("dashboard:show",function(){return e._resetContentRect()}))},t.prototype._resetContentRect=function(){this.contentRect={width:0,height:0}},t.prototype.componentWillUnmount=function(){this._cleanupWidgetDropTargets(),this._disposeEvents.forEach(function(e){return e&&e.remove()}),this._disposeEvents=[]},t.prototype.getEmptyRenderMarkup=function(){return p.default.createElement("div",{className:"explore-empty-widget-layout-dnd"},p.default.createElement(S.default,null))},t}(c.Component),u=function(e,t,n,o,i){var r={};return Object.keys(o).forEach(function(e){r[e]=o[e]}),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce(function(n,o){return o(e,t,n)||n},r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null),r}(d.prototype,"activateDropTarget",[g.observable],{enumerable:!0,initializer:function(){return!1}}),l=d))||l).propTypes={model:_.default.object,layoutOwner:_.default.object,header:_.default.object,dashboardApi:_.default.object,onDragEnd:_.default.func,getCrossHairMatchingPoints:_.default.func,renderPopOver:_.default.func}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s,l=n(0),d=o(l),u=n(9),c=o(u),p=n(5),f=n(7),h=n(6);n(419);var m=(0,p.observer)(s=function(e){function t(n){return i(this,t),r(this,e.call(this,n))}return a(t,e),t.prototype.componentDidMount=function(){this._onScrollhandler=this._onScroll.bind(this),window.addEventListener("scroll",this._onScrollhandler,!0)},t.prototype.componentWillUnmount=function(){this._onScrollhandler&&(window.removeEventListener("scroll",this._onScrollhandler,!0),this._onScrollhandler=null),this.props.model=null},t.prototype._onScroll=function(e){"explore__badge-decoration__menu"!==e.target.className&&this.resetFlyout()},t.prototype.getBadgeFlyoutContent=function(){var e=this,t=this.props.model.getBadgesInfo(),n=[],o=void 0;for(o in t)n.push(d.default.createElement("div",{key:n.length},d.default.createElement(h.Label,{className:"explore__badge-decoration__menu__title",label:t[o].label}))),t[o].drivers.forEach(function(t){n.push(e._getEntry(t,n.length))});return d.default.createElement("div",{className:"explore__badge-decoration__menu","appcues-data-id":"badge-menu"},n)},t.prototype._getEntry=function(e,t){var n=this;return d.default.createElement("div",{key:t,className:"explore__badge-decoration__menu__item"},d.default.createElement(h.Link,{onClick:function(){n._onClickEntry(e)}},e.label))},t.prototype._onClickEntry=function(e){this.props.layoutOwner.parentLayout.model.addCometCardForCorrelation(e),this.resetFlyout()},t.prototype.render=function(){var e=null;if(this.props.model.isTooltipOpen()){var t=this.props.model.getPosition();e=d.default.createElement("div",{className:"explore__badge-decoration",style:{top:t.top+"px",left:t.left+"px",height:t.height+"px",width:t.width+"px"}},d.default.createElement(h.Flyout,{trigger:"Click",alignment:!0,domNodeToAttachTo:document.body,onClose:this.resetFlyout.bind(this)},this.getBadgeFlyoutContent()))}return e},t.prototype.resetFlyout=function(){this.props.model&&this._isAliveModel()&&this.props.model.closeTooltip()},t.prototype._isAliveModel=function(){return(0,f.isAlive)(this.props.model)},t}(l.Component))||s;m.propTypes={model:c.default.object,layoutOwner:c.default.object},t.default=m},function(e,t,n){var o=n(420);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.explore__badge-decoration {\n position: fixed;\n}\n\n.explore__badge-decoration__menu {\n text-align: left;\n max-height: 350px;\n width: 300px;\n overflow: auto;\n padding: 8px;\n}\n\n.explore__badge-decoration__menu__title {\n font-size: 0.75rem;\n font-weight: 700;\n color: #343334;\n padding: 4px 8px;\n}\n\n.explore__badge-decoration__menu__item {\n font-size: 0.875rem;\n padding-top: 8px;\n padding-left: 16px;\n}\n\n.explore__badge-decoration_empty {\n visibility: hidden;\n}\n\n",""])},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s,l=n(0),d=o(l),u=n(9),c=o(u),p=n(6),f=n(5);n(422);var h=(0,f.observer)(s=function(e){function t(){return i(this,t),r(this,e.apply(this,arguments))}return a(t,e),t.prototype.renderColumn=function(e,t,n){return d.default.createElement("div",{className:n},e.map(function(e,n){return d.default.createElement("div",{key:n,className:"popover_rows"},d.default.createElement(p.TruncatedText,{style:{maxWidth:"100%"},textAlign:t,className:"displayBoxRow",location:"end",value:e}))}))},t.prototype.render=function(){return d.default.createElement("div",{className:"displayBox"},d.default.createElement("div",{className:"crossHair"},this.renderColumn(this.props.crossHairInfo[0],"left","display_col1"),this.renderColumn(this.props.crossHairInfo[1],"right","display_col2")))},t}(l.Component))||s;h.propTypes={crossHairInfo:c.default.array},h.defaultProps={crossHairInfo:[]},t.default=h},function(e,t,n){var o=n(423);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2019\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.explore .crossHair {\n width: 100%;\n height: 100%;\n display: -ms-flexbox;\n display: flex;\n}\n\n.explore .displayBox {\n width: 100%;\n height: 100%;\n}\n\n.explore .display_col1 {\n width: 50%;\n padding-left: 8px;\n}\n\n.explore .display_col2 {\n width: 50%;\n font-weight: 600;\n padding-right: 8px;\n}\n\n.explore .popover_rows {\n font-size: 12px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n",""])},function(e,t,n){var o=n(425);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.widget-wrapper .widget .widgetHeader {\n -ms-flex-pack: start;\n justify-content: flex-start;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.widget-wrapper .widget .widgetHeader .widgetTitle {\n -ms-flex: 0 1 auto;\n flex: 0 1 auto;\n margin-right: 8px;\n}\n\n.widget-wrapper .widget .widgetHeader .widgetIcons {\n -ms-flex: 1 0 auto;\n flex: 1 0 auto;\n}\n\n",""])},function(e,t,n){var o=n(427);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018, 2019\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.card-layout {\n -ms-flex: 1 1;\n flex: 1 1;\n position: relative;\n min-width: 300px;\n}\n\n.card-layout .card-layout-content .widget .widgetHeader .widgetTitle * {\n color: #343334;\n font-size: 16px;\n text-align: left;\n font-weight: 700;\n}\n\n.card-layout .widget .attachedView.expanded {\n top: 35px;\n}\n\n",""])},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.default=void 0;var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i),a={header:[{id:"min",name:"Min"},{id:"max",name:"Max"},{id:"avg",name:"Average"},{id:"total",name:"Total"},{id:"totalPercent",name:"%Total"}]},s={header:[{id:"values",name:"Values"}]},l=function(){function e(t){o(this,e),this.services=t.services,this.model=t.model,this.dashboardApi=t.dashboardApi,this.model.compareModel.setDashboardApi(this.dashboardApi)}return e.prototype.initialize=function(e,t){var n=this;return this.dashboardApi.getCanvasWhenReady().then(function(o){if("live"===n.dashboardApi.getFeature("internal").getBoardModel().widgetInstances[e].type&&n.model.isCompareEnabled){var i=r.default.get("cardStats_measureLabel"),l=n._getWidgetAlias(e,t&&t.items);return n.model.addStatsModels(e,a,s,i,l),n.model.compareModel.initializeWidgetSelectionsSynced(n.model.boardModel&&n.model.boardModel.eventGroups),o}throw new Error("do nothing for non live widgets")}).then(function(t){return t.getWidgetWhenReady(e).then(function(){return t})}).then(function(t){var o=t.getContent(e),i=n.model.compareModel;return i.initializeWidgetApis(o),i.initializeSynch(o),n.model.setupStatsModels(e,o.getFeature("WidgetAPI.deprecated").getFeature("vis-summarizer"))}).catch(function(e){if("do nothing for non live widgets"===e.message)return!0;throw e})},e.prototype._getWidgetAlias=function(e,t){t=t||[];var n=t.findIndex(function(t){return t.id===e});return n=n>-1?n:0,String.fromCharCode(65+n)},e}();t.default=l},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.CompareCardView=void 0;var s,l=n(0),d=o(l),u=n(5),c=n(1),p=o(c),f=n(430),h=o(f),m=n(440),g=o(m),v=n(10),_=o(v);(t.CompareCardView=(0,u.observer)(s=function(e){function t(n){i(this,t);var o=r(this,e.call(this,n));return o.headerMap=null,o}return a(t,e),t.prototype.render=function(){var e=this.props.model,t=e.compareModel,n=t&&e.shouldShowCompareTable(t),o=n?d.default.createElement(h.default,{compareModel:t}):null,i=function(){return o},r=this._getWidgetHeaderMap(),a=t.renderPopOver,s=function(){return r},l=this.getCardStyleClasses,u=t.getCrossHairMatchingPoints;return this.props.children(null,s,i,l,u,a)},t.prototype.getCardStyleClasses=function(){var e=this.model.getVisualizations().find(function(e){return e.placeholder});return{classNamesMain:(0,_.default)({"card-layout-main":!0}),classNamesCardRow:(0,_.default)({"card-row":!e,"card-row-placeholder":e})}},t.prototype._getWidgetHeaderMap=function(){var e=this.props.model,t=e.compareModel,n={};return t.widgetUpdatedCount,e.getVisualizations().map(function(e){var o=e.widgetLayout?e.widgetLayout.id:e.placeholder.id,i=null;if(e.widgetLayout?t.getStatsModel(o):null){var r=t.getWidgetSubLabel(o);i=d.default.createElement(g.default,{key:o,label:t.getWidgetAlias(o),subLabel:r})}n[o]=i}),n},t}(l.Component))||s).propTypes={model:p.default.object,children:p.default.any}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.default=void 0;var s,l=n(0),d=o(l),u=n(5),c=n(1),p=o(c),f=n(431),h=o(f);n(438);var m=n(2),g=o(m),v=g.default.get("compareTable_SummaryLabel"),_=g.default.get("compareTable_SelectionsLabel"),y=[{value:"summary",label:v},{value:"selections",label:_}],b=[{value:"summary",label:v}],w=(0,u.observer)(s=function(e){function t(n){i(this,t);var o=r(this,e.call(this,n));return o.sideHeaderList=[{value:"summary",label:v}],o.state={selectedCategory:"summary"},o.selectionUpdated=void 0,o}return a(t,e),t.prototype.switchTo=function(e){this.setState({selectedCategory:e})},t.prototype.switchViewOnSelection=function(){var e=this.props.compareModel.selectionUpdated;void 0===this.selectionUpdated?this.selectionUpdated=e:this.selectionUpdated!=e&&e>1?(this.selectionUpdated=e,this.switchTo("selections")):this.selectionUpdated=e},t.prototype.render=function(){var e=this.props.compareModel;if(!e.showStats)return null;var t=e.compareTableSummary||{};if(!t.charts||t.charts&&0===t.charts.length)return null;this.switchViewOnSelection();var n=!1,o=e.getChartSummaryModel("selections");o&&o.charts&&o.charts.length>0?this.sideHeaderList=y:(n=!0,this.sideHeaderList=b);var i={title:v,category:"summary",sideHeaderList:this.sideHeaderList,onSwitch:this.switchTo.bind(this)},r={title:_,category:"selections",sideHeaderList:this.sideHeaderList,onSwitch:this.switchTo.bind(this)};n&&"summary"!==this.state.selectedCategory&&this.setState({selectedCategory:"summary"});var a=i;return"summary"!==this.state.selectedCategory&&(a=r),d.default.createElement("div",{className:"combinedCompareTable__container"},d.default.createElement(h.default,{options:a,compareModel:e}))},t}(l.Component))||s;t.default=w,w.propTypes={compareModel:p.default.object}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.default=void 0;var s,l=n(0),d=o(l),u=n(5),c=n(1),p=o(c);n(114);var f=n(433),h=o(f),m=n(434),g=o(m),v=n(435),_=o(v),y=n(436),b=o(y),w=n(6),x=n(10),C=o(x),S=n(437),E=o(S),M=(0,u.observer)(s=function(e){function t(n){return i(this,t),r(this,e.call(this,n))}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.options,n=t.category,o=t.sideHeaderList,i=t.onSwitch,r=this.props.compareModel,a=r.getChartSummaryModel(n)||{},s=a.applicableCalcs,l=r.summaryStatsGetter(n),u=r.summarySubHeaderGetter(n);if(!s)return null;r.statsUpdated;var c=[new h.default({applicableCalcs:s})];(a.charts||[]).forEach(function(e){var t=new g.default({widgetInfo:e,summaryModel:a,getChartSummaryStats:l,getChartSubHeader:u});c.push(t)}),c.push(new _.default({summaryModel:a,getChartSummaryStats:l}));var p=d.default.createElement("div",{className:"compareTable__subHeader"}),f=function(t,n){var o=c[n].cellRenderer(t);return 0!==n?e._getCellwithToolTip(o):d.default.createElement("div",{className:"compareTable__cell"}," ",d.default.createElement(w.TruncatedText,{role:"cell",value:o})," ")},m=function(e){var t=c[e].headerRenderer();return"Category"===t.type?o&&o.length>1?d.default.createElement("div",null,p,d.default.createElement("div",{className:"columnSelect",key:e},d.default.createElement(w.Select,{truncated:!1,size:"small",options:o,selected:n,onChange:function(e){return i(e)},variant:"frameless"}))):d.default.createElement("div",null,p,d.default.createElement("div",{role:"columnheader",className:"compareTable__header compareTable--centerAlign",key:e},d.default.createElement(w.TruncatedText,{value:o[0].label}))):"ChartDetail"===t.type?d.default.createElement(b.default,{header:t,column:e,filler:p}):d.default.createElement("div",null,p,d.default.createElement("div",{role:"columnheader",className:"compareTable__header compareTable--rightAlign"},d.default.createElement(w.TruncatedText,{value:t.label})))},v=(0,C.default)({compareTable__container:!0});return d.default.createElement("div",{className:v},d.default.createElement(w.SimpleTable,{rowLength:s&&s.length||0,colLength:c.length,cellRenderer:f,headerRenderer:m}))},t.prototype._getCellwithToolTip=function(e){var t=e.toolTip,n=e.value+(e.hasNegativeValuesIndicator?e.hasNegativeValuesIndicator:""),o=e.hasNegativeValuesIndicator?"compareTable__cellWithHasNegativeValuesIndicator--rightAlign":"compareTable__cell--rightAlign";if("string"==typeof t)return d.default.createElement(E.default,{value:n,valueUse:e.valueUse,formatSpec:e.formatSpec,className:o,tooltipValue:t});if(t){var i=[],r=0;t.forEach(function(e,t){t>0&&(i.push(d.default.createElement("br",{key:r++})),i.push(d.default.createElement("br",{key:r++}))),i.push(d.default.createElement(w.Label,{label:e,className:"compareTableTooltipLabel",key:r++}))});var a=d.default.createElement("div",{className:"compareTable__toolTip"},i);return d.default.createElement(E.default,{value:n,valueUse:e.valueUse,formatSpec:e.formatSpec,className:o,tooltipValue:a})}return d.default.createElement(E.default,{value:n,valueUse:e.valueUse,formatSpec:e.formatSpec,className:o})},t}(l.Component))||s;t.default=M,M.propTypes={options:p.default.object,compareModel:p.default.object}},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018, 2020\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.compareTable__toolTip {\n text-align: left;\n}\n\n.compareTable__toolTip .compareTableTooltipLabel {\n color: white;\n color: hsla(var(--text-04-h, 0), var(--text-04-s, 0%), var(--text-04-l, 100%), 1);\n}\n\n.compareTable__cell {\n padding-left: 8px;\n padding-right: 8px;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.compareTable__cell--rightAlign {\n float: right;\n padding-right: 1%;\n}\n\n.compareTable__cellWithHasNegativeValuesIndicator--rightAlign {\n float: right;\n padding-right: 1%;\n color: #0f62fe;\n color: hsla(var(--interactive-03-h, 219.16318), var(--interactive-03-s, 99.17012%), var(--interactive-03-l, 52.7451%), 1);\n white-space: nowrap;\n}\n\n.compareTable--centerAlign {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n height: 100%;\n width: 100%;\n}\n\n.compareTable--rightAlign {\n -ms-flex-pack: end;\n justify-content: flex-end;\n -ms-flex-align: center;\n align-items: center;\n height: 100%;\n width: 100%;\n}\n\n.compareTable__container {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-pack: center;\n justify-content: center;\n font-size: 12px;\n}\n\n.compareTable__container .ba-common-simpletable-thead {\n border-bottom: 1px solid;\n}\n\n.compareTable__container .ba-common-simpletable-thead .ba-common-button__label {\n font-size: 0.75rem;\n}\n\n.compareTable__container .ba-common-simpletable-thead .ba-common-listItem {\n font-size: 0.75rem;\n}\n\n.compareTable__container .ba-common-simpletable-tbody {\n border-bottom: 1px solid;\n}\n\n.compareTable__container--hide {\n display: none;\n}\n\n.compareTable__container .columnSelect {\n margin-left: -4px;\n}\n\n.compareTable__header {\n height: 32px;\n display: -ms-flexbox;\n display: flex;\n}\n\n.compareTable__subHeader {\n font-size: 12px;\n height: 20px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-pack: end;\n justify-content: flex-end;\n color: #343334;\n}\n\n.compareTable__subHeaderItem1 {\n padding-right: 2px;\n}\n\n.compareTable__subHeaderItem1-appear,\n.compareTable__subHeaderItem1-enter {\n opacity: 0.1;\n color: #a8c0f3;\n}\n\n.compareTable__subHeaderItem1-appear-active,\n.compareTable__subHeaderItem1-enter-active {\n opacity: 1;\n transition: opacity 0.5s ease;\n}\n\n.compareTable__subHeaderItem1-exit {\n opacity: 1;\n}\n\n.compareTable__subHeaderItem1-exit-active {\n opacity: 0.1;\n transition: opacity 0.5s ease;\n}\n\n.compareTable__subHeaderItem2 {\n padding-left: 2px;\n}\n\n.compareTable__detailHeaderContainer {\n padding-left: 18%;\n}\n\n.compareTable__detailHeader {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n",""])},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.default=void 0;var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i),a=n(44),s=function(e){return r.default.get(e)},l={};l[a.CalcType.TOTAL]=s("compareTable_Header_total"),l[a.CalcType.TOTAL_SEL]=s("compareTable_Header_total_selection"),l[a.CalcType.MIN_SEL]=s("compareTable_Header_min_selection"),l[a.CalcType.MAX_SEL]=s("compareTable_Header_max_selection"),l[a.CalcType.DIFF]=s("compareTable_Header_difference"),l[a.CalcType.DIFF_SEL]=s("compareTable_Header_difference_selection"),l[a.CalcType.PERCENT_vsALLDATA]=s("compareTable_Header_chartpercent_of_dataset"),l[a.CalcType.PERCENT_SEL_vsALLDATA]=s("compareTable_Header_chart_selection_percent_of_dataset"),l[a.CalcType.PERCENT_CHARTvsCHART]=s("compareTable_Header_chartpercent_displayed"),l[a.CalcType.PERCENT_SELvsCHART]=s("compareTable_Header_selection_percent_of_chart"),l[a.CalcType.SEL_CONTEXT]=s("compareTable_Header_selection_context"),l[a.CalcType.NUM_SELECTIONS]=s("compareTable_Header_mumber_of_selections"),l[a.CalcType.MIN]=s("compareTable_Header_min"),l[a.CalcType.MAX]=s("compareTable_Header_max"),l[a.CalcType.AVG]=s("compareTable_Header_avg"),l[a.CalcType.AVG_SEL]=s("compareTable_Header_avgSelection"),l[a.CalcType.WEIGHTED_AVG]=s("compareTable_Header_weightedAvg"),l[a.CalcType.WEIGHTED_AVG_SEL]=s("compareTable_Header_weightedAvgSelection");var d=function(){function e(t){o(this,e),this.process(t)}return e.prototype.process=function(e){var t=e.applicableCalcs;this.cellRenderer=function(e){var n=t&&t[e]||"";return l[n]},this.headerRenderer=function(){return{type:"Category"}}},e}();t.default=d},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.default=void 0;var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i),a=function(){function e(t){o(this,e),this.process(t)}return e.prototype.process=function(e){var t=e.widgetInfo,n=t.widgetId,o=t.widgetAlias,i=t.measureList,a=e.widgetInfo.measureName,s=e.summaryModel,l=e.getChartSummaryStats,d=e.getChartSubHeader;a=s.getSelectedMeasureName(n)||a;var u=l(n,a),c=[];i&&i.forEach(function(e){var t=r.default.get("compareTable_ChartMeasureHeader",{name:o,measure:e.metadata.label});c.push({value:e.measureName,label:t})});var p=function(e){s.recomputeSummaryInfo({widgetId:n,measureName:e})};this.cellRenderer=function(e){return s.getData(e,u)},this.headerRenderer=function(){var e=a,t=d(n,a);return{type:"ChartDetail",selected:e,list:c,subHeader:t,onChange:p}}},e}();t.default=a},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.default=void 0;var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i),a=function(){function e(t){o(this,e),this.process(t)}return e.prototype.process=function(e){var t=e.summaryModel,n=t.charts||[],o=e.getChartSummaryStats,i=[];n.forEach(function(e){var t=o(e.widgetId,e.measureName);t&&i.push(t)}),t.widgetContextProcessState;var a=t.getCalculatedData(i)||[];this.cellRenderer=function(e){return{value:a[e].value,valueUse:a[e].valueUse,toolTip:a[e].toolTip}},this.headerRenderer=function(){return{label:r.default.get("compareTable_CalculatedStatsHeader")}}},e}();t.default=a},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.default=void 0;var s=n(0),l=o(s),d=n(1),u=o(d);n(114);var c=n(6),p=n(26),f=o(p),h=function(e){function t(n){return i(this,t),r(this,e.call(this,n))}return a(t,e),t.prototype.render=function(){var e=this.props.header,t=this.props.filler,n=this.props.column;if("ChartDetail"===e.type){var o=null,i=null;if(e&&e.list.length>1){var r=e.selected,a={width:"100%","text-align":"right"};i=l.default.createElement("div",{"data-tid":n,className:"compareTable__header compareTable--rightAlign",key:n},l.default.createElement(c.Select,{size:"small",variant:"frameless",options:e.list,selected:r,style:a,onChange:this.onChange.bind(this,e)}))}else i=l.default.createElement("div",{className:"compareTable__header compareTable--rightAlign"},l.default.createElement(c.TruncatedText,{role:"columnheader",value:e.list[0].label}));e.subHeader&&(o=l.default.createElement("div",{className:"compareTable__subHeader compareTable__subHeader--divider"},l.default.createElement(f.default,{in:!0,appear:!0,timeout:500,classNames:"compareTable__subHeaderItem1"},l.default.createElement("div",{className:"compareTable__subHeaderItem1"},l.default.createElement(c.TruncatedText,{value:e.subHeader[0]}))),l.default.createElement("div",{className:"compareTable__subHeaderItem2"})));var s=o?null:t;return l.default.createElement("div",{className:"compareTable__detailHeaderContainer"},s,i,o)}return null},t.prototype.onChange=function(e,t){e.onChange(t)},t}(s.Component);t.default=h,h.propTypes={header:u.default.object,filler:u.default.object,column:u.default.number}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.default=void 0;var s,l,d=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:this.props.value;return null===e?"":String(e)},t.prototype._compareTextAndContainerWidth=function(e){this.willTruncate=e-101;return{classNamesMain:(0,g.default)({"card-layout-main_comet":e,"card-layout-main":!e}),classNamesCardRow:(0,g.default)({"card-row_comet":e,"card-row":!e&&!t,"card-row-placeholder":t})}},t}(l.Component))||s).propTypes={model:p.default.object,children:p.default.any,dashboardApi:p.default.object,onAddItem:p.default.func,onClickItem:p.default.func,layoutOwner:p.default.object,dataSourceId:p.default.string,logger:p.default.object}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s,l=n(0),d=o(l),u=n(1),c=o(u),p=n(5),f=n(445),h=o(f),m=n(451),g=o(m),v=n(2),_=o(v);n(453);var y=(0,p.observer)(s=function(e){function t(n){i(this,t);var o=r(this,e.call(this,n));return o.predictSpecConverter=new g.default({modelRef:n.layoutOwner.layoutController.boardModel.layout.exploreVM.activeDataSourceId}),o.prevKey=null,o}return a(t,e),t.prototype.onDotClick=function(e){this.props.model.setVisIndexToShow(e.indexClicked)},t.prototype.render=function(){var e=this.props.model.getSelections(),t=this.props.model.getLocalFilters();return this._resetRecommendationsIfNeeded(e,t),d.default.createElement("div",{className:"vis-preview-list-slider-wrapper"},d.default.createElement("div",{className:"vis-preview-list-slider-wrapper-child"},this._renderVisPreviewList(e)))},t.prototype._renderVisPreviewList=function(e){return e.length?d.default.createElement(h.default,{items:this.props.model.getRecommendations(),predictData:this.props.model.getFooterRenderData(),isPredictPreview:!0,model:this.props.model.getSelections(),horizontal:!0,dashboardApi:this.props.dashboardApi,onAddItem:this.props.onAddItem,onClickItem:this.props.onClickItem,visStartingIndex:this.props.model.getVisIndexToShow(),onDotClick:this.onDotClick.bind(this)}):d.default.createElement("div",{className:"defaultTextPlaceholder"},d.default.createElement("div",{className:"defaultText"},d.default.createElement("div",{className:"title"},_.default.get("footerView_title")),d.default.createElement("div",{className:"description"},_.default.get("footerView_description"))))},t.prototype.generateRecommandations=function(e){return new Promise(function(t){var n=this,o=this.predictSpecConverter.collectPredictVisRecommendations(e);this.props.model.getSavedPrompts().then(function(e){var i=n.predictSpecConverter.transformPredictRecommendations(o),r=[];i.forEach(function(t){t.localFilters=n.prevLocalFilters,e&&(t.savedPrompts=e),r.push({widgets:[{spec:t}],name:""})}),t(r)})}.bind(this))},t.prototype._isSelectionsChange=function(e){return!(e&&e.length>0)||e[0].key!==this.prevKey},t.prototype._hasLocalFiltersChanged=function(e){return JSON.stringify(this.prevLocalFilters)!==JSON.stringify(e)},t.prototype._resetRecommendationsIfNeeded=function(e,t){var n=this;return this._isSelectionsChange(e)||this._hasLocalFiltersChanged(t)?(this.prevKey=e.length>0?e[0].key:null,this.prevLocalFilters=t,this.props.model.setRecommendations([]),this.generateRecommandations(e).then(function(e){return n.props.model.setRecommendations(e)})):Promise.resolve([])},t}(l.Component))||s;y.propTypes={model:c.default.object,dashboardApi:c.default.object,horizontal:c.default.bool,onAddItem:c.default.func,onClickItem:c.default.func,layoutOwner:c.default.object},t.default=y},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s,l=n(0),d=o(l),u=n(9),c=o(u),p=n(5),f=n(29),h=o(f),m=n(446),g=o(m),v=n(10),_=o(v);n(58),n(449);var y=(0,p.observer)(s=function(e){function t(n){return i(this,t),r(this,e.call(this,n))}return a(t,e),t.prototype.onDotClick=function(e){this.props.onDotClick&&this.props.onDotClick(e)},t.prototype.render=function(){var e=(0,_.default)("vis-recommender__preview-slider",{"vis-recommender__preview-slider--horizontal":this.props.horizontal,"vis-recommender__preview-slider--vertical":!this.props.horizontal});return d.default.createElement("div",{className:e},d.default.createElement(g.default,{items:this.props.items,activeIndex:this.props.visStartingIndex,onDotClick:this.onDotClick.bind(this)}),d.default.createElement(h.default,{onAddItem:this.props.onAddItem,onClickItem:this.props.onClickItem,items:this.props.items,visStartingIndex:this.props.visStartingIndex,maxDisplayedItems:1,enableSeeMore:!1,predictData:this.props.predictData,isPredictPreview:this.props.isPredictPreview,model:this.props.model,horizontal:!0,dashboardApi:this.props.dashboardApi,titleOnBottom:!1,spinnerSize:"large",featureSet:["vis-title-fetcher"],logger:this.props.logger}))},t}(l.Component))||s;y.propTypes={dashboardApi:c.default.object.isRequired,items:c.default.array.isRequired,onClickItem:c.default.func,onAddItem:c.default.func,horizontal:c.default.bool,predictData:c.default.object,isPredictPreview:c.default.bool,maxDisplayedItems:c.default.number,visStartingIndex:c.default.number,titleOnBottom:c.default.bool,enableSeeMore:c.default.bool,onGetMore:c.default.func,model:c.default.arrayOf(c.default.object),onDotClick:c.default.func,featureSet:c.default.array,logger:c.default.object},y.defaultProps={horizontal:!1,maxDisplayedItems:1,visStartingIndex:0,onAddItem:function(){},titleOnBottom:!0,enableSeeMore:!1},t.default=y},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n,o){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(o):void 0})}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var l,d,u,c,p=Object.assign||function(e){for(var t=1;t0,selectedAnnotations:i||[]}}},e.prototype._transformSlopmapping=function(e,t){return e.forEach(function(e){e.name=t[e.name]?t[e.name]:e.name,e.layerId="data"}),e},e.prototype._transformDataItems=function(e){return e.forEach(function(e){var t=e.id,n=e.binning;n&&(e.binningDefinition={id:t,binning:n},delete e.binning)}),e},e}();t.default=d},function(e,t,n){"use strict";e.exports={Area:{visId:"com.ibm.vis.rave2bundlearea",CATEGORY:"categories",VALUE:"values",COLOR:"series",MATRIX_COLUMN:"repeatHorizontal",MATRIX_ROW:"repeatVertical"},StackedArea:{visId:"com.ibm.vis.rave2bundlearea",CATEGORY:"categories",VALUE:"values",COLOR:"series",MATRIX_COLUMN:"repeatHorizontal",MATRIX_ROW:"repeatVertical"},Bar:{visId:"com.ibm.vis.rave2bundlebar",CATEGORY:"categories",VALUE:"values",COLOR:"color",MATRIX_COLUMN:"repeatHorizontal",MATRIX_ROW:"repeatVertical"},ClusteredBar:{visId:"com.ibm.vis.rave2bundlebar",CATEGORY:"categories",VALUE:"values",COLOR:"color",MATRIX_COLUMN:"repeatHorizontal",MATRIX_ROW:"repeatVertical"},StackedBar:{visId:"com.ibm.vis.rave2bundlestackedbar",CATEGORY:"categories",VALUE:"values",COLOR:"color",MATRIX_COLUMN:"repeatHorizontal",MATRIX_ROW:"repeatVertical"},Bubble:{visId:"com.ibm.vis.ravebubble",X:"x",Y:"y",SIZE:"size",COLOR:"color",POINTS:"categories",MATRIX_COLUMN:"repeatHorizontal",MATRIX_ROW:"repeatVertical"},Column:{visId:"com.ibm.vis.rave2bundlecolumn",CATEGORY:"categories",VALUE:"values",COLOR:"color",MATRIX_COLUMN:"repeatHorizontal",MATRIX_ROW:"repeatVertical"},ClusteredColumn:{visId:"com.ibm.vis.rave2bundlecolumn",CATEGORY:"categories",VALUE:"values",COLOR:"color",MATRIX_COLUMN:"repeatHorizontal",MATRIX_ROW:"repeatVertical"},StackedColumn:{visId:"com.ibm.vis.rave2bundlestackedcolumn",CATEGORY:"categories",VALUE:"values",COLOR:"color",MATRIX_COLUMN:"repeatHorizontal",MATRIX_ROW:"repeatVertical"},Crosstab:{visId:"crosstab",VALUE:"values",CATEGORY:"column_level1",COLUMN_HIERARCHY:"column_level1",ROW_HIERARCHY:"row_level1",COLOR:"heat"},Heatmap:{visId:"com.ibm.vis.rave2heat",ROW:"categories",COLUMN:"series",COLOR:"color",SIZE:"size",POINTS:"points",MATRIX_COLUMN:"repeatHorizontal",MATRIX_ROW:"repeatVertical"},Line:{visId:"com.ibm.vis.rave2line",CATEGORY:"categories",VALUE:"values",COLOR:"color",MATRIX_COLUMN:"repeatHorizontal",MATRIX_ROW:"repeatVertical"},ClusteredLine:{visId:"com.ibm.vis.rave2line",CATEGORY:"categories",VALUE:"values",COLOR:"color",MATRIX_COLUMN:"repeatHorizontal",MATRIX_ROW:"repeatVertical"},DualAxis:{visId:"com.ibm.vis.rave2bundlecomposite",CATEGORY:"categories",Y1:"lineValue",Y2:"columnValue",MATRIX_COLUMN:"repeatHorizontal",MATRIX_ROW:"repeatVertical"},Tiledmap:{visId:"com.ibm.vis.rave2bundletiledmap",REGION_LOCATION:"locations",REGION_COLOR:"locationColor",POINT_LOCATION:"pointLocations",POINT_COLOR:"pointColor",POINT_SIZE:"pointSize",COORDINATE_LATITUDE:"latlongLocations.latitude",COORDINATE_LONGITUDE:"latlongLocations.longitude",COORDINATE_COLOR:"latlongColor",COORDINATE_SIZE:"latlongSize",COORDINATE_LABEL:"latlongLocations.caption"},PackedBubble:{visId:"com.ibm.vis.rave2bundlepackedbubble",CATEGORY:"categories",COLOR:"color",SIZE:"size",MATRIX_COLUMN:"repeatHorizontal",MATRIX_ROW:"repeatVertical"},HierarchicalPackedBubble:{visId:"com.ibm.vis.rave2bundlehierarchicalpackedbubble",CATEGORY:"categories",HIERARCHY:"categories",COLOR:"color",SIZE:"size",MATRIX_COLUMN:"repeatHorizontal",MATRIX_ROW:"repeatVertical"},Pie:{visId:"com.ibm.vis.rave2bundlepie",CATEGORY:"categories",VALUE:"values",MATRIX_COLUMN:"repeatHorizontal",MATRIX_ROW:"repeatVertical"},HierarchicalPie:{visId:"com.ibm.vis.rave2bundlepie",HIERARCHY:"categories",VALUE:"values",MATRIX_COLUMN:"repeatHorizontal",MATRIX_ROW:"repeatVertical"},Point:{visId:"com.ibm.vis.rave2point",CATEGORY:"categories",VALUE:"values",COLOR:"series",MATRIX_COLUMN:"repeatHorizontal",MATRIX_ROW:"repeatVertical"},ClusteredPoint:{visId:"com.ibm.vis.rave2point",CATEGORY:"categories",VALUE:"values",COLOR:"series",MATRIX_COLUMN:"repeatHorizontal",MATRIX_ROW:"repeatVertical"},Dial:{visId:"com.ibm.vis.rave2bundleradialbar",CATEGORY:"categories",VALUE:"values",COLOR:"color",MATRIX_COLUMN:"repeatHorizontal",MATRIX_ROW:"repeatVertical"},Scatter:{visId:"com.ibm.vis.ravescatter",X:"x",Y:"y",COLOR:"color",POINTS:"categories",MATRIX_COLUMN:"repeatHorizontal",MATRIX_ROW:"repeatVertical"},Singleton:{visId:"summary",VALUE:"values"},List:{visId:"JQGrid",ANY:"grid_cols"},Treemap:{visId:"com.ibm.vis.rave2bundletreemap",HIERARCHY:"categories",CATEGORY:"categories",SIZE:"size",COLOR:"color",MATRIX_COLUMN:"repeatHorizontal",MATRIX_ROW:"repeatVertical"},Wordle:{visId:"com.ibm.vis.rave2bundlewordcloud",CATEGORY:"categories",SIZE:"size",COLOR:"color",MATRIX_COLUMN:"repeatHorizontal",MATRIX_ROW:"repeatVertical"},Spiral:{visId:"com.ibm.vis.spiral",TARGET:"values"},Tree:{visId:"com.ibm.vis.decisiontree",TARGET:"values"},KPI:{visId:"kpi",ACTUAL:"actual",PLANNED:"goal"}}},function(e,t,n){var o=n(454);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.vis-preview-list-slider-wrapper {\n display: block;\n min-height: 60%;\n max-height: 60%;\n width: 100%;\n position: relative;\n}\n\n.vis-preview-list-slider-wrapper .vis-preview-list-slider-wrapper-child {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n}\n\n.vis-preview-list-slider-wrapper .vis-preview-list-slider-wrapper-child > :first-child {\n width: 100%;\n height: 100%;\n}\n\n.vis-preview-list-slider-wrapper .vis-preview-list-slider-wrapper-child .defaultTextPlaceholder {\n padding: 0;\n display: -ms-flexbox;\n display: flex;\n border: 1px solid #eaeaea;\n}\n\n.vis-preview-list-slider-wrapper .vis-preview-list-slider-wrapper-child .defaultTextPlaceholder .defaultText {\n padding: 0;\n width: 100%;\n -ms-flex-item-align: center;\n -ms-grid-row-align: center;\n align-self: center;\n text-align: center;\n}\n\n.vis-preview-list-slider-wrapper .vis-preview-list-slider-wrapper-child .defaultTextPlaceholder .defaultText .title {\n color: #343334;\n font-weight: bold;\n padding: 3px;\n}\n\n.vis-preview-list-slider-wrapper .vis-preview-list-slider-wrapper-child .defaultTextPlaceholder .defaultText .description {\n color: #343334;\n}\n\n",""])},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(52),r=o(i),a=n(0),s=o(a),l=n(17),d=o(l),u=n(456),c=u.extend({init:function(){c.inherited("init",this,arguments),this.parentLayout&&this.parentLayout.trackChildWidget(this),this.widgetModel&&this.widgetModel.placeHolder&&this._renderPlaceHolder(),this._onShowInProgress=!1},destroy:function(){this.widgetChromeEventRouter=null,this.$el&&d.default.unmountComponentAtNode(this.$el.get(0)),this.id&&c.inherited("destroy",this,arguments)},onKeyDown:function(e){121===e.keyCode&&e.stopPropagation()},_renderPlaceHolder:function(){var e=s.default.createElement(r.default,{isComparison:this.parentLayout.model.isCompareEnabled,fill:!0,services:this.services,activeDataSourceId:this.model.boardModel.layout.exploreVM.activeDataSourceId,handleShowVisTypesClick:this._showVisTypesDialog.bind(this),createVis:this.createVis.bind(this),dashboardApi:this.dashboardApi});d.default.render(e,this.$el.get(0))},_showVisTypesDialog:function(){this.model.boardModel.layout.exploreVM.setToolBarVisTypePicker(!1,this),this.model.boardModel.layout.exploreVM.setShowModalVisTypePicker(!0),this.parentLayout.view.widgetSelectionUpToDate=!1},createVis:function(e){this.parentLayout.replaceWithWidget(e,this.model.id)},getSize:function(e){e.deferred&&e.deferred.resolve({})}});t.default=c},function(e,t){e.exports=A},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(t){o(this,e),this.context=t}return e.prototype.isEnabled=function(){var e=this.context.boardModel.layout,t=e.exploreVM.displayedCard,n=e.findModel(t),o=n&&n.getVisualizations();return o&&o.length>1},e}();t.default=i},function(e,t,n){"use strict";function o(e){var t=e.boardModel.layout,n=t.exploreVM.displayedCard,o=t.findModel(n),i=o&&o.getVisualizations();return i&&i.length>1}t.__esModule=!0,t.default=function(e){return o(e)?".card-layout-main":".card-row"}},function(e,t,n){"use strict";t.__esModule=!0;var o=n(39),i=o.extend({actionHandlers:{tutorials:function(){return this._openExternalPage("https://www.youtube.com/playlist?list=PLfq0ST5X3p-R0Q6PqFXBO4Al0JNxsr1J2")}},onSelectItem:function(e){var t=this._getPluginKey(e.target.itemId),n=this.actionHandlers[t];if(n)return n.call(this)},_openExternalPage:function(e){window.open(e,"_blank")},_getPluginKey:function(e){var t=e.split(".");return t[t.length-1]}});t.default=i},function(e,t,n){var o=n(461);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0};i.transform=void 0;n(4)(o,i);o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,"/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\nhtml {\n font-size: 14px;\n}\n\n/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\nbutton {\n line-height: 16px;\n font-weight: normal;\n}\n\n/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.explore__animation--fade-appear,\n.explore__animation--fade-enter {\n opacity: 0.1;\n}\n\n.explore__animation--fade-appear-active,\n.explore__animation--fade-enter-active {\n opacity: 1;\n transition: opacity 300ms ease-in;\n}\n\n.explore__animation--fade-exit {\n opacity: 1;\n transform: scale(1, 1);\n}\n\n.explore__animation--fade-exit-active {\n opacity: 0.1;\n transition: opacity 300ms ease-out;\n}\n\n.explore__animation--slideDown-appear,\n.explore__animation--slideDown-enter {\n opacity: 0.1;\n transform: translateY(-100%);\n}\n\n.explore__animation--slideDown-appear-active,\n.explore__animation--slideDown-enter-active {\n opacity: 1;\n transform: translateY(0);\n transition: opacity 300ms ease-in, transform 300ms ease-in;\n}\n\n.explore__animation--slideDown-exit {\n opacity: 1;\n transform: translateY(0);\n}\n\n.explore__animation--slideDown-exit-active {\n opacity: 0.1;\n transform: translateY(-100%);\n transition: opacity 300ms ease-out, transform 300ms ease-out;\n}\n\n.explore__animation--slideUp-appear,\n.explore__animation--slideUp-enter {\n opacity: 0.1;\n transform: translateY(100%);\n}\n\n.explore__animation--slideUp-appear-active,\n.explore__animation--slideUp-enter-active {\n opacity: 1;\n transform: translateY(0);\n transition: opacity 300ms ease-in, transform 300ms ease-in;\n}\n\n.explore__animation--slideUp-exit {\n opacity: 1;\n transform: translateY(0);\n}\n\n.explore__animation--slideUp-exit-active {\n opacity: 0.1;\n transform: translateY(100%);\n transition: opacity 300ms ease-out, transform 300ms ease-out;\n}\n\n.explore__animation--slideLeft-appear,\n.explore__animation--slideLeft-enter {\n opacity: 0.1;\n transform: translateX(100%);\n}\n\n.explore__animation--slideLeft-appear-active,\n.explore__animation--slideLeft-enter-active {\n opacity: 1;\n transform: translateX(0);\n transition: opacity 300ms ease-in, transform 300ms ease-in;\n}\n\n.explore__animation--slideLeft-exit {\n opacity: 1;\n transform: translateX(0);\n}\n\n.explore__animation--slideLeft-exit-active {\n opacity: 0.1;\n transform: translateX(100%);\n transition: opacity 300ms ease-out, transform 300ms ease-out;\n}\n\n/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018, 2020\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.exploreContainer-react-layout-view {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex: 1;\n flex: 1;\n}\n\n.exploreContainer-react-layout-view .explore {\n position: relative;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex: 1;\n flex: 1;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content {\n position: relative;\n -ms-flex: 1;\n flex: 1;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content__cards {\n height: 100%;\n overflow-y: hidden;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .card-item {\n width: 100%;\n height: 100%;\n position: absolute;\n z-index: 100;\n display: -ms-flexbox;\n display: flex;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .card-item.background,\n.exploreContainer-react-layout-view .explore .explore-content .card-item.done {\n z-index: 0;\n opacity: 0;\n left: 999999px;\n position: fixed;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .card-item.background .widgetContent,\n.exploreContainer-react-layout-view .explore .explore-content .card-item.done .widgetContent {\n opacity: 0;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .card-item .card-layout-content {\n -ms-flex-align: stretch;\n align-items: stretch;\n display: -ms-flexbox;\n display: flex;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n -ms-flex-pack: space-evenly;\n justify-content: space-evenly;\n box-sizing: border-box;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .card-item .card-layout-content__side-panel {\n max-width: 320px;\n min-width: 200px;\n -ms-flex: 1 3;\n flex: 1 3;\n padding: 32px 16px 48px 0;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .layout-wrapper-container {\n display: -ms-flexbox;\n display: flex;\n -ms-flex: 1;\n flex: 1;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .layout-wrapper {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: column;\n flex-flow: column;\n -ms-flex: 1 0 0px;\n flex: 1 0 0;\n -ms-flex-positive: 2;\n flex-grow: 2;\n margin: 0 8px;\n position: relative;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .layout-wrapper .widget-wrapper {\n width: 100%;\n height: 100%;\n position: relative;\n /* TODO: Remove LW css from Explore and come up with proper solution.\n\t\t\t\t\t224422 - temp fix. Currently LW maintains their state using css\n\t\t\t\t\twe have to stop augmenting LW css on our side. Need coordinated effort\n\t\t\t\t\tbetween LV and Explore to achieve separation of concerns between our components.\n\t\t\t\t\tOtherwise as soon as they change css, we'll be broken in Explore. Ideally there\n\t\t\t\t\tshould be a model controlling state of showing/hiding hint text programatically.\n\t\t\t\t\t*/\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .layout-wrapper .widget-wrapper .vis-icon-view .vis-icon-view-hint {\n display: inline;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .layout-wrapper .widget-wrapper .vis-icon-view .vis-icon-view-hint .icon {\n display: none;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .layout-wrapper .widget:not(.kpi-widget-sparkline) {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: -ms-flexbox;\n display: flex;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .layout-wrapper .single-card {\n width: 100%;\n height: 100%;\n display: -ms-flexbox;\n display: flex;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .layout-wrapper .single-card .layout-wrapper {\n width: 70%;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .layout-wrapper .explore-empty-widget-layout-dnd {\n outline-style: solid;\n outline-width: 1px;\n outline-color: #161616;\n outline-color: hsla(var(--ui-05-h, 0), var(--ui-05-s, 0%), var(--ui-05-l, 8.62745%), 1);\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: #161616;\n background-color: hsla(var(--ui-05-h, 0), var(--ui-05-s, 0%), var(--ui-05-l, 8.62745%), 1);\n opacity: 0.1;\n z-index: 1000;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .layout-wrapper .popoverHidden {\n display: none;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .card-layout-main {\n padding: 32px 40px 48px 40px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: column wrap;\n flex-flow: column wrap;\n position: relative;\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n flex-direction: column;\n -ms-flex-direction: column;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .card-layout-main_comet {\n padding: 32px 40px 48px 40px;\n display: block;\n -ms-flex-flow: column wrap;\n flex-flow: column wrap;\n position: relative;\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n min-height: 250px;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .card-row {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n -ms-flex: 1 0 0px;\n flex: 1 0 0;\n -ms-flex-pack: space-evenly;\n justify-content: space-evenly;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .card-row__vertical {\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .card-row-placeholder {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n -ms-flex: 1 0 0px;\n flex: 1 0 0;\n -ms-flex-pack: space-evenly;\n justify-content: space-evenly;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .card-row-placeholder__vertical {\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .card-row-placeholder__vertical .create-exploration-icon {\n display: none;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .card-row_comet {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n position: relative;\n min-height: 40%;\n max-height: 40%;\n -ms-flex-pack: space-evenly;\n justify-content: space-evenly;\n}\n\n.exploreContainer-react-layout-view .explore .explore-content .card-row_comet > :first-child {\n position: absolute;\n top: 0px;\n bottom: 0px;\n right: 0px;\n left: 0px;\n}\n\n.exploreContainer-react-layout-view .explore .explore-empty-container-dnd {\n position: absolute;\n width: 100%;\n height: 100%;\n color: #8d8d8d;\n color: hsla(var(--ui-04-h, 0), var(--ui-04-s, 0%), var(--ui-04-l, 55.29412%), 1);\n background-color: white;\n background-color: hsla(var(--ui-01-h, 0), var(--ui-01-s, 0%), var(--ui-01-l, 100%), 1);\n opacity: 0.9;\n z-index: 1000;\n}\n\n.exploreContainer-react-layout-view .explore .explore-empty-container-dnd .explore__empty__icon {\n color: #161616;\n color: hsla(var(--icon-01-h, 0), var(--icon-01-s, 0%), var(--icon-01-l, 8.62745%), 1);\n margin-bottom: 8px;\n}\n\n.exploreContainer-react-layout-view .explore .explore-empty-container-dnd .explore__empty__title {\n margin-top: 8px;\n}\n\n/*\n *+------------------------------------------------------------------------+\n *| Licensed Materials - Property of IBM\n *| IBM Cognos Products: Explore\n *| (C) Copyright IBM Corp. 2018\n *|\n *| US Government Users Restricted Rights - Use, duplication or disclosure\n *| restricted by GSA ADP Schedule Contract with IBM Corp.\n *+------------------------------------------------------------------------+\n */\n\n.exploreFilterDockContainer.filterDockContainer .filterDock .filter-dock-overflow .filter-menu {\n bottom: auto;\n}\n\n#filter-dock-collapse-handle-container .exploreFilterCollapseControlContainer#filter-dock-collapse-handle-content #filter-dock-collapse-handle-icon .svgIcon {\n height: 70px;\n}\n\n#filter-dock-collapse-handle-container.filter-dock-collapse-handle-container-expanded #filter-dock-collapse-handle-content.exploreFilterCollapseControlContainer {\n display: none;\n}\n\n",""])}],[170])}); //# sourceMappingURL=component.min.js.map