12 |
- !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("explore-common"),require("gemini/lib/@waca/core-client/js/core-client/utils/BrowserUtils"),require("gemini/lib/@waca/core-client/js/core-client/utils/Deferred"),require("gemini/lib/@waca/dashboard-common/dist/glass/controllers/BaseSlideoutActionHandler"),require("gemini/pinning/PinsPanel"),require("gemini/pinning/PinView"));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","explore-common","gemini/lib/@waca/core-client/js/core-client/utils/BrowserUtils","gemini/lib/@waca/core-client/js/core-client/utils/Deferred","gemini/lib/@waca/dashboard-common/dist/glass/controllers/BaseSlideoutActionHandler","gemini/pinning/PinsPanel","gemini/pinning/PinView"],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("explore-common"),require("gemini/lib/@waca/core-client/js/core-client/utils/BrowserUtils"),require("gemini/lib/@waca/core-client/js/core-client/utils/Deferred"),require("gemini/lib/@waca/dashboard-common/dist/glass/controllers/BaseSlideoutActionHandler"),require("gemini/pinning/PinsPanel"),require("gemini/pinning/PinView")):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["explore-common"],e["gemini/lib/@waca/core-client/js/core-client/utils/BrowserUtils"],e["gemini/lib/@waca/core-client/js/core-client/utils/Deferred"],e["gemini/lib/@waca/dashboard-common/dist/glass/controllers/BaseSlideoutActionHandler"],e["gemini/pinning/PinsPanel"],e["gemini/pinning/PinView"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}("undefined"!=typeof self?self:this,function(e,t,n,r,o,i,a,s,l,c,d,u,f,p,h,m,g){return webpackJsonp([2],[function(t,n){t.exports=e},,,,,function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t){e.exports=a},function(e,t){e.exports=s},,,function(e,t){e.exports=l},,,function(e,t){e.exports=c},,,,,function(e,t){e.exports=d},,,,,,,,,,,function(e,t){e.exports=u},,,,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}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 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=r(s),c=n(9),d=r(c),u=n(10),f=r(u),p=n(6),h=n(127),m=r(h),g=n(128),v=r(g),_=n(129),y=r(_),b=n(62),x=r(b);n(133);var w={FAVOURITE:!1},M=function(e){function t(n){o(this,t);var r=i(this,e.call(this,n));return r.el=null,r}return a(t,e),t.prototype.componentDidMount=function(){this.props.cacheNodeRef&&this.props.cacheNodeRef(this.props.id,this.el)},t.prototype.componentWillUnmount=function(){this.props.cacheNodeRef&&this.props.cacheNodeRef(this.props.id,null)},t.prototype.render=function(){var e=this,t=this.props,n=t.view,r=t.title,o=t.tabIndex,i=t.onClick,a=t.isSelected,s=t.isHidden,c=this.renderFooter(),d=(0,f.default)({card:!0,selected:a,"is-hidden":s});return l.default.createElement("div",{className:d,tabIndex:o,onClick:i,onContextMenu:function(t){return e.onContextMenu(t)},ref:function(t){return e.el=t}},!s&&r&&l.default.createElement(p.Label,{label:r,ellipsis:!0}),l.default.createElement("div",{className:"card-view"},n),c)},t.prototype.renderFooter=function(){if(this.props.hasFooter){var e=this.renderFavouriteIcon(),t=this.renderContextMenu();return l.default.createElement("div",{className:"card-footer"},e,t)}},t.prototype.renderContextMenu=function(){var e=this,t=this.props,n=t.contextMenuItems,r=t.onContextMenuChange,o=t.onContextMenuToggle;return l.default.createElement("div",{className:"card-footer-contextMenu"},l.default.createElement(x.default,{iconId:y.default.id,items:n,onChange:function(t){return r(t,e.props.id)},onToggle:function(){return o(!n)}}))},t.prototype.renderFavouriteIcon=function(){if(!w.FAVOURITE)return l.default.createElement("div",{className:"favourite"});var e=this.props,t=e.isFavourite,n=e.onToggleFavourite,r=(0,f.default)({favourite:!0,on:t,off:!t});return l.default.createElement("div",{className:r,onClick:function(){return n()}},l.default.createElement(p.SVGIcon,{className:"on",iconId:m.default.id}),l.default.createElement(p.SVGIcon,{className:"off",iconId:v.default.id}))},t.prototype.onContextMenu=function(e){var t=this.props,n=t.contextMenuItems,r=t.onContextMenuToggle;r&&r(!n),e.preventDefault()},t}(s.Component);M.propTypes={id:d.default.string.isRequired,title:d.default.string,view:d.default.element,hasFooter:d.default.bool,onClick:d.default.func,onContextMenuChange:d.default.func,onContextMenuToggle:d.default.func,onToggleFavourite:d.default.func,isSelected:d.default.bool,isFavourite:d.default.bool,isHidden:d.default.bool,contextMenuItems:d.default.array,tabIndex:d.default.string,cacheNodeRef:d.default.func},M.defaultProps={hasFooter:!0,onClick:function(){},onToggleFavourite:function(){},onContextMenuChange:function(){},onContextMenuToggle:function(){},isSelected:!1,isFavourite:!1,isVisible:!0,contextMenuItems:null},t.default=M},,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}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 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),c=r(l),d=n(5),u=n(9),f=r(u),p=n(6);n(130);var h=(0,d.observer)(s=function(e){function t(n){return o(this,t),i(this,e.call(this,n))}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.iconId;return c.default.createElement("div",{className:"explore__contextMenu-anchor",onClick:function(t){return e.handleClick(t)},onTouchEnd:function(t){return e.handleClick(t)}},c.default.createElement(p.SVGIcon,{className:"context-menu",iconId:t}),this.renderContextMenu())},t.prototype.renderContextMenu=function(){var e=this.props,t=e.placement,n=void 0===t?"right":t,r=e.items,o=e.children;if(r&&r.length)return c.default.createElement(p.ContextMenu,{theme:!0,placement:n,domNodeToAttachTo:document.body,onClose:this.onClose.bind(this),onChange:this.onChange.bind(this)},this.renderItems(r),o)},t.prototype.renderItems=function(e){var t=this;if(e)return e.map(function(e,n){return t.renderSection(e,n)})},t.prototype.renderSection=function(e,t){if(Array.isArray(e.items)){var n=e.name,r=void 0===n?"menu":n,o=e.label,i=e.items;return c.default.createElement(p.ContextMenu.List,{key:t,content:i,name:r,label:o,clickSelection:!0})}return c.default.createElement(p.ContextMenu.Separator,{key:t})},t.prototype.onChange=function(e,t){var n={};n[e]=t,this.props.onChange(n)},t.prototype.handleClick=function(e){this.onToggle(),e.preventDefault()},t.prototype.onToggle=function(){var e=!(this.props.items&&this.props.items.length);this.props.onToggle(e)},t.prototype.onClose=function(){this.props.onToggle(!1)},t}(l.Component))||s;h.propTypes={iconId:f.default.string.isRequired,items:f.default.array,children:f.default.any,placement:f.default.string,onChange:f.default.func,onToggle:f.default.func},h.defaultProps={items:[],onChange:function(){},onToggle:function(){}},t.default=h},,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}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 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=r(s),c=n(9),d=r(c),u=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){return l.default.createElement("div",{className:"cardThumbnails__item",dangerouslySetInnerHTML:{__html:this.props.thumbnail.data}})},t}(s.Component);u.propTypes={thumbnail:d.default.shape({data:d.default.string})},t.default=u},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){n(32),e.exports=n(121)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.PinView=t.CardGridSlideout=t.CardGridExtension=void 0;var o=n(122),i=r(o),a=n(164),s=r(a),l=n(166),c=r(l);t.CardGridExtension=i.default,t.CardGridSlideout=s.default,t.PinView=c.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}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=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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},s=n(0),l=r(s),c=n(17),d=r(c),u=n(123),f=r(u),p=n(124),h=r(p),m=n(155),g=r(m),v=n(67),_=r(v),y=n(2),b=r(y);n(161);var x=n(14),w=n(163),M=function(){function e(t){o(this,e),this.glassContext=t.glassContext,this.$el=x('<div class="explore-thumbnail-container"></div>'),this.cardListVM=null,this.thumbnailStore=null,this.thumbnails=null,this._eventDisposeFns=[],this.initialize()}return e.prototype._getExploreView=function(){return this.glassContext.appController.getCurrentContentView()},e.prototype._addCanvasListener=function(e,t){return this.boardModel&&this.boardModel.on(e,t)},e.prototype._getWidgetModel=function(e){return this.boardModel&&this.boardModel.widgetInstances[e]},e.prototype._getWidgetModels=function(){return this.boardModel&&this.boardModel.widgetInstances?Object.keys(this.boardModel.widgetInstances):[]},e.prototype.getServiceRegistry=function(){var e=this._getExploreView();if(e)return e.services;throw new Error("Content view did not load.")},e.prototype.initialize=function(){var e=this;return this.readyDfd=new w,this.services=this.getServiceRegistry(),this.logger=this.glassContext.getCoreSvc(".Logger"),Promise.all([this.services.getSvc(".Thumbnail"),this.services.getSvc(".DndManager")]).then(function(t){var n=t[0],r=t[1],o=e._getExploreView(),i=o.getExploreVM();e.boardModel=o.boardModel,e.dndManager=r,e.thumbnailService=n,e.thumbnailStore=e.thumbnailService.getStoreAPI({defaultFn:function(e){if(!e)return Promise.resolve("");var t=i.getDashboardApi().getFeature("VisDefinitions"),n=t.getById(e),r=b.default.get("thumbnail_alt_default_img",{vistype:n.getLabel()});return Promise.resolve('<img class="cardThumbnails__item--default" alt="'+r+'" src="'+n.getPlaceholderIconUri()+'" />')}}),i.notification.setListVisibility(!0),i.notification.setActive(!1),e.cardListVM=g.default.create({thumbnails:{}},{cardActions:i.cardActions,getThumbnails:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{idle:!0};return e.getThumbnails(t,n)}}),e.cardListVM.setSelectionModel(i.selectedCards),e.cardListVM.setLayoutModel(o.getExploreContainerLayoutModel()),f.default.then(function(t){return t.set("cardList",e.cardListVM)});var a=e.thumbnailStore.on("all",function(t){var n=t.id;e.cardListVM.syncThumbnails(n)}),s=a.remove;e._eventDisposeFns.push(s);var l=e._addCanvasListener("widget:change",function(t){var n=t.name,r=t.model;if("visId"===n){var o=r?r.id:void 0;e.cardListVM.syncThumbnails(o)}}),c=l.remove;e._eventDisposeFns.push(c);var d=e._addCanvasListener("addWidget",function(t){var n=t.value.parameter.model.id;n&&e.cardListVM.syncThumbnails(n)}),u=d.remove;e._eventDisposeFns.push(u);var p=e._addCanvasListener("addLayouts",function(t){var n=t.value.parameter.addLayoutArray,r=[],o=function(e){r.push(e.id)};n.forEach(function(e){if(e.model.items){e.model.items.forEach(o)}}),e.cardListVM.syncThumbnails(r.length>0?r:void 0)}),h=p.remove;e._eventDisposeFns.push(h);var m=e._addCanvasListener("addFragment",function(t){var n=t.value.parameter.model.widgets,r=n.map(function(e){return e.id});e.cardListVM.syncThumbnails(r.length>0?r:void 0)}),v=m.remove;e._eventDisposeFns.push(v),e.cardListVM.syncInitialThumbnails().then(function(){e.readyDfd&&e.readyDfd.resolve()})})},e.prototype.getThumbnail=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{idle:!0},r="string"==typeof e?this._getWidgetModel(e):e;if(!r)return Promise.resolve();var o=function(){return t.thumbnailService.get(r,r.visId,t.thumbnailStore).then(function(e){var n=r.id,o=r.visId,i=void 0,s=void 0,l=void 0;return"object"===(void 0===e?"undefined":a(e))?(i=e.data,s=e.error,l=e.warning):i=e,t._processThumbnailData({widgetId:n,type:o,data:i,error:s,warning:l})}).catch(function(n){throw t.logger.error("Error occurred while retrieving thumbnails from the thumbnail store. ["+e.id+"]",n),n})};return n.idle?function(e){return new Promise(function(t,n){window.requestIdleCallback(function(){try{var r=e();r.then?r=r.then(t).catch(n):t(r)}catch(e){n(e)}},{timeout:2e3})})}(function(){return o()}):o()},e.prototype._processThumbnailData=function(e){return!e.data&&this.thumbnailStore?this.thumbnailStore.getVisTypeDefault(e.type).then(function(t){return i({},e,{data:t})}):Promise.resolve(e)},e.prototype.getThumbnails=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{idle:!0},r=void 0;if(e){var o=Array.isArray(e)?e:[e];r="string"==typeof o[0]?o.map(function(e){return t._getWidgetModel(e)}):o}else r=this._getWidgetModels().map(function(e){return t._getWidgetModel(e)});var i=[],a=Promise.resolve();return r.forEach(function(e){a=a.then(function(){return t.getThumbnail(e,n).then(function(e){e&&i.push(e)})})}),a.then(function(){return i})},e.prototype.renderDOM=function(e){d.default.render(e,this.$el.get(0))},e.prototype.unmountDOM=function(e){d.default.unmountComponentAtNode(e)},e.prototype.render=function(){var e=this;return this.renderDOM(l.default.createElement(_.default,{size:"normal"})),this.readyDfd.promise.then(function(){return e.renderDOM(l.default.createElement(h.default,{cardListVM:e.cardListVM,dndManager:e.dndManager}))})},e.prototype.remove=function(){this.cardListVM.resetCardNotification(),this._eventDisposeFns.forEach(function(e){return e()}),this._eventDisposeFns=[],this.unmountDOM(this.$el.get(0)),this.$el.remove(),this.$el=null,this.readyDfd=null,this.glassContext=null,this.thumbnailStore=null,this.thumbnails=null,this.cardListVM=null,f.default.then(function(e){return e.remove("cardList")})},e}();t.default=M},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var o=function(){function e(){r(this,e),this.apis={}}return e.prototype.set=function(e,t){this.apis[e]=t},e.prototype.remove=function(e){delete this.apis[e]},e}();t.default=new Promise(function(e){var t=new o;window.exploreApis={get:function(e){return t.apis[e]}},e(t)})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}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 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),c=r(l),d=n(5),u=n(9),f=r(u),p=n(8),h=r(p),m=n(125),g=r(m),v=n(151),_=r(v);n(153);var y=(0,d.observer)(s=function(e){function t(){var n,r,a;o(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=r=i(this,e.call.apply(e,[this].concat(l))),r.onContextMenuChange=function(e,t){var n=e.menu,o=r.props.cardListVM,i=r._getCard(t);o.clearContextMenu(),r.props.cardListVM.performAction(n,i&&[i]),h.default.defer(function(){o.exploreVM.setFocusOnExploreContainer()})},r.onDelete=function(){var e=r.props.cardListVM.performAction("deleteCard");return h.default.defer(function(){r.props.cardListVM.exploreVM.setFocusOnExploreContainer()}),e},a=n,i(r,a)}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.cardListVM,n=e.dndManager;return c.default.createElement("div",{className:"sidePane"},c.default.createElement(_.default,{cardListVM:t,onContextMenuChange:this.onContextMenuChange}),c.default.createElement(g.default,{cardListVM:t,dndManager:n,onContextMenuChange:this.onContextMenuChange,onDelete:this.onDelete}))},t.prototype._getCard=function(e){var t=this.props.cardListVM.layoutModel;return t&&t.findModel(e)},t}(l.Component))||s;y.propTypes={cardListVM:f.default.object.isRequired,dndManager:f.default.object.isRequired},y.defaultProps={},t.default=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}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 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),c=r(l),d=n(5),u=n(9),f=r(u),p=n(126),h=(0,d.observer)(s=function(e){function t(){var n,r,a;o(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=r=i(this,e.call.apply(e,[this].concat(l))),r.onContextMenuToggle=function(e,t){var n=r.props.cardListVM;t?n.showContextMenu([e]):n.clearContextMenu()},a=n,i(r,a)}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.cardListVM,n=e.dndManager;return c.default.createElement("div",{className:"sidePane__content"},c.default.createElement(p.CardList,{handlers:{getContextMenuItems:t.getContextMenuItems},cardListVM:t,cardActions:t.exploreVM.cardActions,onContextMenuToggle:this.onContextMenuToggle,onContextMenuChange:this.props.onContextMenuChange,onDelete:this.props.onDelete,dndManager:n}))},t}(l.Component))||s;h.propTypes={cardListVM:f.default.object.isRequired,dndManager:f.default.object.isRequired,onContextMenuChange:f.default.func,onDelete:f.default.func},h.defaultProps={onContextMenuChange:function(){},onDelete:function(){}},t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.CardList=t.Card=void 0;var o=n(41),i=r(o),a=n(135),s=r(a);t.Card=i.default,t.CardList=s.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n.n(r),i=n(13),a=n.n(i),s=new o.a({id:"favorite_16",use:"favorite_16-usage",viewBox:"0 0 16 16",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="favorite_16"><path d="M11.2 3c.7 0 1.4.3 2 .8 1.1 1.1 1.1 2.9 0 4L8 13.1 2.8 7.8c-1.1-1.1-1.1-2.9 0-4s2.8-1.1 3.9 0L8 5.1l1.3-1.3c.5-.5 1.2-.8 1.9-.8m0-1c-1 0-2 .4-2.7 1.1l-.5.6-.6-.6C6 1.6 3.6 1.6 2.1 3.1S.6 7 2.1 8.5l5.9 6 5.9-6c1.5-1.5 1.5-3.9 0-5.4-.7-.7-1.7-1.1-2.7-1.1z" /><path style="fill:none" d="M0 0h16v16H0z" /></symbol>'});a.a.add(s);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n.n(r),i=n(13),a=n.n(i),s=new o.a({id:"favorite_32",use:"favorite_32-usage",viewBox:"0 0 32 32",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" id="favorite_32"><path d="M22.45 6a5.47 5.47 0 013.91 1.64 5.7 5.7 0 010 8L16 26.13 5.64 15.64a5.7 5.7 0 010-8 5.48 5.48 0 017.82 0l2.54 2.6 2.53-2.58A5.44 5.44 0 0122.45 6m0-2a7.47 7.47 0 00-5.34 2.24L16 7.36l-1.11-1.12a7.49 7.49 0 00-10.68 0 7.72 7.72 0 000 10.82L16 29l11.79-11.94a7.72 7.72 0 000-10.82A7.49 7.49 0 0022.45 4z" /><path style="fill:none" d="M0 0h32v32H0z" /></symbol>'});a.a.add(s);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n.n(r),i=n(13),a=n.n(i),s=new o.a({id:"overflow-menu--horizontal_16",use:"overflow-menu--horizontal_16-usage",viewBox:"0 0 16 16",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="overflow-menu--horizontal_16"><circle cx="3" cy="8" r="1" /><circle cx="8" cy="8" r="1" /><circle cx="13" cy="8" r="1" /><path style="fill:none" d="M0 0h16v16H0z" /></symbol>'});a.a.add(s);t.default=s},function(e,t,n){var r=n(131);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0};o.transform=void 0;n(4)(r,o);r.locals&&(e.exports=r.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__contextMenu-anchor {\n cursor: pointer;\n width: 24px;\n height: 24px;\n}\n\n",""])},,function(e,t,n){var r=n(134);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0};o.transform=void 0;n(4)(r,o);r.locals&&(e.exports=r.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.ba-common-svgIcon.startingPointsThumb {\n fill: #B07CE8;\n}\n\n.ba-common-menu__wrapper {\n overflow: hidden !important;\n}\n\n.card {\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 display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n width: 152px;\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 text-align: center;\n font-size: 0.75rem;\n height: 106px;\n position: relative;\n overflow: hidden;\n cursor: pointer;\n}\n\n.card * {\n cursor: pointer;\n}\n\n.card.is-hidden {\n height: 16px;\n padding: 0px;\n}\n\n.card.is-hidden .card-view {\n display: none;\n}\n\n.card.is-hidden .card-footer {\n height: 12px;\n}\n\n.card.is-hidden .card-footer .context-menu {\n position: relative;\n top: -5px;\n}\n\n.card.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 border-color: transparent;\n}\n\n.card svg.startingPointsThumb {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n margin: auto;\n margin-top: 22px;\n}\n\n.card .card-view {\n -ms-flex: 1;\n flex: 1;\n overflow: hidden;\n pointer-events: none;\n}\n\n.card .card-view .cardThumbnails {\n position: relative;\n height: 100%;\n width: 100%;\n display: -ms-flexbox;\n display: flex;\n padding: 8px;\n}\n\n.card .card-view .cardThumbnails__compare .cardThumbnails__item {\n margin-right: 4px;\n}\n\n.card .card-view .cardThumbnails__compare .cardThumbnails__item:last-child {\n margin-right: 0px;\n}\n\n.card .card-view .cardThumbnails__compare .cardThumbnails__item img:-moz-loading {\n visibility: hidden;\n}\n\n.card .card-view .cardThumbnails__item {\n width: 100%;\n -ms-flex: 1;\n flex: 1;\n position: relative;\n}\n\n.card .card-view .cardThumbnails__item__error {\n -ms-flex: 1;\n flex: 1;\n overflow: hidden;\n position: relative;\n height: 100%;\n width: 100%;\n}\n\n.card .card-view .cardThumbnails__item__error .ba-common-decorator {\n height: 100%;\n width: 100%;\n}\n\n.card .card-view .cardThumbnails__item__error__icon {\n position: absolute;\n right: 3px;\n top: 3px;\n height: 20px;\n width: 20px;\n color: #da1e28;\n color: hsla(var(--text-error-h, 356.80851), var(--text-error-s, 75.80645%), var(--text-error-l, 48.62745%), 1);\n}\n\n.card .card-view .cardThumbnails__item__error__icon--single {\n top: 23px;\n left: 110px;\n}\n\n.card .card-view .cardThumbnails__item__error__icon--left {\n top: 21px;\n left: 44px;\n}\n\n.card .card-view .cardThumbnails__item__error__icon--right {\n top: 21px;\n left: 112px;\n}\n\n.card .card-view .cardThumbnails__item__error__container {\n position: absolute;\n left: 10px;\n}\n\n.card .card-view .cardThumbnails__item__warning {\n -ms-flex: 1;\n flex: 1;\n overflow: hidden;\n position: relative;\n height: 100%;\n width: 100%;\n}\n\n.card .card-view .cardThumbnails__item__warning .ba-common-decorator {\n height: 100%;\n width: 100%;\n}\n\n.card .card-view .cardThumbnails__item__warning__icon {\n position: absolute;\n right: 3px;\n top: 2px;\n height: 16px;\n width: 16px;\n color: #f1c21b;\n color: hsla(var(--support-03-h, 46.82243), var(--support-03-s, 88.42975%), var(--support-03-l, 52.54902%), 1);\n}\n\n.card .card-view .cardThumbnails__item__warning__icon--single {\n top: 23px;\n left: 110px;\n}\n\n.card .card-view .cardThumbnails__item__warning__icon--left {\n top: 21px;\n left: 44px;\n}\n\n.card .card-view .cardThumbnails__item__warning__icon--right {\n top: 21px;\n left: 112px;\n}\n\n.card .card-view .cardThumbnails__item__warning__container {\n position: absolute;\n left: 10px;\n}\n\n.card .card-view .cardThumbnails__item__warning .cardThumbnails__item {\n opacity: 0.5;\n height: 100%;\n width: 100%;\n}\n\n.card .card-view .cardThumbnails__item img {\n height: 100%;\n width: 100%;\n position: relative;\n top: 10%;\n}\n\n.card .card-view .cardThumbnails__item img:-moz-loading {\n visibility: hidden;\n}\n\n.card .card-view .cardThumbnails__item--default {\n padding: 5px;\n}\n\n.card .card-view .cardThumbnails__item--blank {\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.card:hover .card-footer {\n visibility: visible;\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}\n\n.card.active .card-footer {\n opacity: 0.9;\n display: -ms-flexbox;\n display: flex;\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.card .card-footer {\n display: -ms-flexbox;\n display: flex;\n position: absolute;\n width: 148px;\n bottom: 0;\n left: 0;\n -ms-flex-pack: justify;\n justify-content: space-between;\n padding: 0 5px;\n height: 24px;\n visibility: hidden;\n}\n\n.card .card-footer .favourite .is-on,\n.card .card-footer .favourite .is-off {\n margin-top: 3px;\n}\n\n.card .card-footer .favourite.off .is-on {\n display: none;\n}\n\n.card .card-footer .favourite.off:hover .is-off {\n display: none;\n}\n\n.card .card-footer .favourite.off:hover .is-on {\n display: block;\n}\n\n.card .card-footer .favourite.on .is-off {\n display: none;\n}\n\n.card .card-footer .favourite.on:hover .is-on {\n display: none;\n}\n\n.card .card-footer .favourite.on:hover .is-off {\n display: block;\n}\n\n.card .card-footer .context-menu {\n margin-top: 2px;\n}\n\n",""])},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 i(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;var s,l=n(0),c=r(l),d=n(11),u=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}(d),f=n(5),p=n(20),h=r(p),m=n(1),g=r(m),v=n(41),_=r(v),y=n(140),b=r(y),x=n(64),w=n(145),M=r(w),C=n(14),T=r(C);n(148);var S=n(150),E=function(){return![].values},P=function(){function e(t,n,r,o,i){a(this,e),this.accepts=function(){return!0},this.className=t,this.dropHandler=n,this.activateDropTarget=r,this.deactivateDropTarget=o,this.endDrag=i}return e.prototype.onDragEnd=function(){this.endDrag()},e.prototype.onDragEnter=function(e,t){this.activateDropTarget(e,t)},e.prototype.onDragLeave=function(e,t){this.deactivateDropTarget(e,t)},e.prototype.onDrop=function(e,t){this.dropHandler(e,t)},e}(),D=(0,f.observer)(s=function(e){function t(n){a(this,t);var r=o(this,e.call(this,n));return r.onScroll=function(){r.pendingScrollTimeout=null;var e=[];r.nodeMap.forEach(function(t,n){r.isInViewport(n)&&r.needsSilentGeneration(n)&&e.push(n)}),e.length>0&&r.props.cardListVM.loadCards(e)},r.cardViewFactory=new M.default({model:n.cardListVM}),r._rootRef=c.default.createRef(),r._mobxDisposeEvents=[],r.listRef=null,r.scrollPosition={top:0,left:0},r.nodeMap=new Map,r.pendingScrollTimeout=null,r.a11y=new x.A11YCollections({direction:[x.A11YDirection.UP_DOWN,x.A11YDirection.LEFT_RIGHT],handlers:{elements:function(e){return r._getCardElements(e)},container:function(e){return r._getCardContainerElement(e)}}}),r._isReadyToDrag=!1,r._isScrolling=!1,r}return i(t,e),t.prototype.calculateScrollTop=function(e,t){if(this.shouldScrollToSelection&&t&&e){this.shouldScrollToSelection=!1;var n=0,r=t.offsetTop-e.scrollTop,o=e.clientHeight/10;if(r<0?n=r-o:r>e.clientHeight-t.clientHeight&&(n=r-e.clientHeight+o+t.clientHeight),n){var i=e.scrollTop+n;return Math.max(0,i)}}},t.prototype.scrollIfNecessary=function(){if(this.listRef&&this.selectedCardRef){var e=this.calculateScrollTop(this.listRef,this.selectedCardRef);void 0!==e&&(0,T.default)(this.listRef).animate({scrollTop:e},500)}},t.prototype.componentDidMount=function(){var e=this;this._dndManager=this.props.dndManager,this.handleSilentThumbnailGeneration(),this._mobxDisposeEvents.push(u.reaction(function(){return e.props.cardListVM.selection.items.slice()},function(t){1===t.length&&(e.shouldScrollToSelection=!0)})),this._rootRef.current&&this._rootRef.current.querySelector("[tabindex]").focus()},t.prototype.componentWillUnmount=function(){this.listRef=null,this.selectedCardRef=null,this.scrollPosition=null,this._mobxDisposeEvents.forEach(function(e){return e()}),this._mobxDisposeEvents=[],clearTimeout(this._longPressTimer),this._longPressTimer=null},t.prototype.render=function(){var e=this;if(!this.props.cardListVM.getCards())return null;var t=this.renderItems(),n=this.renderStartingPoints();return c.default.createElement("div",{className:"card-list-view",ref:this._rootRef,tabIndex:"-1",onKeyDown:function(t){return e.onKeyDown(t)}},c.default.createElement(h.default,{innerRef:function(t){return e.listRef=t},onResize:function(){return e.handleSilentThumbnailGeneration()}},function(n){var r=n.measureRef;return c.default.createElement("div",{className:"card-list-view__cards",onScroll:e._handleScroll.bind(e),ref:r},t)}),n)},t.prototype.canDoSilentThumbnailGeneration=function(){return!(S.isIE11()||S.isFirefox()&&E())},t.prototype.needsSilentGeneration=function(e){if(!this.canDoSilentThumbnailGeneration())return!1;var t=this.props.cardListVM,n=t.getCard(e);if((n&&n.items||[]).some(function(e){return!!e.isStaticWidget}))return!1;if(t.containsBlankWidget(e))return!1;if("placeholder"===e)return!1;var r=this.nodeMap.get(e);if(r){return 0===(0,T.default)(r).find(".cardThumbnails__item").find(".visThumbnail").length}return!1},t.prototype.isInViewport=function(e){if(this.listRef&&this.nodeMap.has(e)){var t=this.listRef.scrollTop,n=this.nodeMap.get(e).parentElement,r={viewport:{top:this.listRef.offsetTop,bottom:this.listRef.offsetTop+this.listRef.clientHeight},card:{top:n.offsetTop-t,bottom:n.offsetTop+n.clientHeight-t}};return r.card.bottom>=r.viewport.top&&r.card.top<=r.viewport.bottom}return!1},t.prototype._handleScroll=function(){this._setScrollPositionForDragSupport(),this.handleSilentThumbnailGeneration()},t.prototype.handleSilentThumbnailGeneration=function(){this.pendingScrollTimeout&&clearTimeout(this.pendingScrollTimeout),this.props.cardListVM.resetLoadingCards(),this.pendingScrollTimeout=setTimeout(this.onScroll,2e3)},t.prototype.renderItems=function(){var e=this,t=!1,n=this.props.cardListVM.getCards().filter(function(e){if("placeholder"===e.id){if(t)return!1;t=!0}return!0}),r=n.length,o={placeholder:function(){return e.renderPlaceholder.apply(e,arguments)}};return n.map(function(t,n){var i=o[t.id];return i?i(n):e.renderCard(t,r,n)})},t.prototype.renderCard=function(e,t,n){var r=this,o=e.id,i=!this.props.cardListVM.isEditMode(),a=this.props.cardListVM.shouldShowContextMenu([o]),s=this.props.cardListVM.hasSelectedCards(),l=this.props.cardListVM.isCardSelected(e.id),d=this.props.cardListVM.isCardNew(e.id),u=!s&&n===t-1||l?"0":"-1",f=this._getCardView(e),p=1===e.items.length?"single":"compare";return c.default.createElement("div",{key:o,className:"card-list-view__cards__container","data-entry-type":"card","data-card-id":o,"data-card-type":p,"data-index":n+1,ref:function(e){e&&l&&1===r.props.cardListVM.selection.items.length?(r.selectedCardRef=e,r.scrollIfNecessary()):e||(r.selectedCardRef=e)}},c.default.createElement("div",{className:"card-list-view__cards__container__ordinal"},n+1),c.default.createElement("div",{className:"card-list-view__cards__container__content",onMouseDown:function(e){return r.onMouseDown(e,o)},onMouseUp:function(e){return r.onMouseUp(e,o)},onTouchStart:function(e){return r.onTouchStart(e,o)},onTouchEnd:function(e){return r._onTouchEnd(e,o)},onTouchMove:this._onTouchMove.bind(this),ref:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return r._cacheNode.apply(r,[n,o].concat(t))}},c.default.createElement(_.default,{id:o,title:e.getTitle(),view:f,tabIndex:u,isSelected:l,isHidden:e.isHidden,hasFooter:i,dndManager:this.props.dndManager,cacheNodeRef:function(){r.handleSilentThumbnailGeneration()},onContextMenuToggle:i&&this.props.onContextMenuToggle.bind(this.props,o)||void 0,onContextMenuChange:i&&this.props.onContextMenuChange.bind(this.props)||void 0,contextMenuItems:a&&this.props.handlers.getContextMenuItems([e])||void 0})),d&&c.default.createElement("div",{className:"card-list-view__cards__container--isNew"}))},t.prototype.renderStartingPoints=function(){var e=this,t=this.props.cardListVM.isStartingPointsDisplayed();return c.default.createElement("div",{className:"card-list-view__cards__container__content"},c.default.createElement(b.default,{isSelected:t,onClick:function(){return e.onStartingPointsClick()}}))},t.prototype.renderPlaceholder=function(e){var t=this,n="placeholder";return c.default.createElement("div",{className:"card-list-view__cards__container card-list-view__cards__container--placeholder","data-entry-type":"placeholder","data-card-id":n,"data-index":e+1,key:e},c.default.createElement("div",{className:"card-list-view__cards__container__content",ref:function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return t._cacheNode.apply(t,[e,n].concat(o))}},c.default.createElement(_.default,{id:"placeholder"})))},t.prototype.onKeyDown=function(e){switch(e.key){case"Backspace":case"Delete":this.props.onDelete()&&e.preventDefault();break;case" ":case"Enter":this._handleEnter(e);break;case"c":if((e.ctrlKey||e.metaKey)&&!e.shiftKey){var t=this.props.cardListVM.getSelectedCards(),n=this.props.cardActions.getAction("copy");n.isEnabled(t)&&n.action(t),e.preventDefault()}break;case"a":!e.ctrlKey&&!e.metaKey||e.shiftKey||(this.props.cardListVM.selectAll(),e.preventDefault());break;default:this.a11y.onKeyDown(e)}},t.prototype.onStartingPointsClick=function(){this.props.cardListVM.selectStartingPoints()},t.prototype.onCardClick=function(e,t){this._setSelection(t,e)},t.prototype.startDrag=function(e,t){var n=this;if(e.currentTarget.childNodes.length){var r=e.currentTarget.childNodes[0],o=document.createElement("div");o.classList.add("card-list-view__avatar");var i=void 0;if(this.props.cardListVM.isCardSelected(t)){var a=(0,T.default)(this.listRef).find(".card-list-view__cards__container .card.selected"),s=a[a.length-1].cloneNode(!0);i=[];for(var l=0;l<a.length;l++)i.push(a.eq(l).closest(".card-list-view__cards__container").data("card-id"));for(var c=Math.min(i.length,3),d=o,u=0;u<c;u++){var f=document.createElement("div");f.classList.add("card-list-view__avatar__container");var p=document.createElement("div");p.classList.add("card-list-view__avatar__relative");var h=void 0;u<c-1?(h=document.createElement("div"),h.classList.add("card"),h.classList.add("selected")):h=s,p.appendChild(h),f.appendChild(p),d.appendChild(f),d=f}}else i=[t],o.appendChild(r.cloneNode(!0));o.style.position="absolute",o.style.zIndex="10000",this._dndManager.startDrag({event:e,avatar:o,type:"card",data:i,avatarXOffset:-r.offsetWidth/2,avatarYOffset:-r.offsetHeight/2,moveXThreshold:20,moveYThreshold:20,callerCallbacks:{onDragStart:function(){n.props.cardListVM.beginDrag(i)},onMove:function(t,r){n._handleScrollDrag(e,r)},onDragDone:function(e,t){n.props.cardListVM.endDrag(),(0,T.default)(t.dragObject.avatar).hide(),n._isReadyToDrag=!1,n._isLongPress=!1}}})}},t.prototype._handleScrollDrag=function(e,t){var n=t.dragObject,r=this.listRef,o=r.getBoundingClientRect(),i={top:o.top,bottom:o.bottom},a=n.position,s=i.bottom-a.y,l=a.y-i.top,c=s>0&&s<150,d=l>0&&l<150,u=0;d&&c&&(d=l>s,c=!d),c?u=150-s:d&&(u=l-150),r.scrollTop+=u;var f=this.scrollPosition.top-r.scrollTop,p=this.scrollPosition.left-r.scrollLeft;if(e.currentTarget){var h=this._dndManager.getCandidateDropTargetFromNode(e.currentTarget);h&&h.clientRects.forEach(function(e){e.top+=f,e.left+=p})}this._dndManager.scrollChildrenCandidateDropTargets(r,f,p),this._setScrollPositionForDragSupport()},t.prototype._setScrollPositionForDragSupport=function(){this.listRef&&(this.scrollPosition={top:this.listRef.scrollTop,left:this.listRef.scrollLeft})},t.prototype.onMouseDown=function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!((0,T.default)(e.target).closest(".ba-common-context-menu").length>0)){e.persist();var o=T.default.Event(e.type,e),i=function(o){var i=n.props.cardListVM.isCardSelected(t);n._isLongPress=!0,r?i||n.props.cardListVM.isDragging()||n.onCardClick(e,t):(0,T.default)(o.target).hasClass("ba-common-menu__item")||0!==(0,T.default)(o.target).parents(".ba-common-menu__item").length||n.startDrag(o,t)};this._longPressTimer=setTimeout(i,r?500:250,o),r&&(this._mobileStartDragTimer=setTimeout(function(e){n.startDrag(e,t),n._isReadyToDrag=!0},250,o))}},t.prototype._onTouchMove=function(){this._isReadyToDrag||this._isScrolling||(this._isScrolling=!0,this._mobileStartDragTimer&&(clearTimeout(this._mobileStartDragTimer),this._mobileStartDragTimer=null),this._longPressTimer&&(clearTimeout(this._longPressTimer),this._longPressTimer=null))},t.prototype.onMouseUp=function(e,t){this._isLongPress?this._isLongPress=!1:this.onCardClick(e,t),clearTimeout(this._longPressTimer),this._longPressTimer=null,e.preventDefault()},t.prototype.onTouchStart=function(e,t){this.onMouseDown(e,t,!0)},t.prototype._onTouchEnd=function(e,t){this._isScrolling?this._isScrolling=!1:(this._isReadyToDrag&&(this._isReadyToDrag=!1),this._isLongPress?this._isLongPress=!1:(0,T.default)(e.target).parents(".ba-common-menu__item").length||this.onCardClick(e,t),clearTimeout(this._longPressTimer),this._longPressTimer=null,clearTimeout(this._mobileStartDragTimer),this._mobileStartDragTimer=null),!1!==e.cancelable&&e.preventDefault()},t.prototype._isCardElement=function(e){return"card"===this._getCardContainerElement(e).data("entry-type")},t.prototype._getCardView=function(e){return this.cardViewFactory.makeCardView(e)},t.prototype._getCardContainerElement=function(e){return(0,T.default)(e).closest(".card-list-view__cards__container")},t.prototype._isStartingPointsElement=function(e){return"starting-points"===this._getCardContainerElement(e).data("entry-type")},t.prototype._getCardElements=function(e){return(0,T.default)(e).closest(".card-list-view").find(".card-list-view__cards__container .card")},t.prototype._getCardId=function(e){return this._getCardContainerElement(e).data("card-id")},t.prototype._handleEnter=function(e){if(this._isCardElement(e.target)){var t=this._getCardId(e.target);t&&(this._setSelection(t,e),e.preventDefault())}else this._isStartingPointsElement(e.target)&&(this.props.cardListVM.selectStartingPoints(),e.preventDefault())},t.prototype._setSelection=function(e,t){var n=t.ctrlKey||t.metaKey||this._isLongPress,r=t.shiftKey&&!n;this.props.cardListVM.selectCard(e,{multiselect:n,rangeselect:r})},t.prototype._cacheNode=function(e,t,n){var r=this,o=this.nodeMap.get(t);o&&(this.nodeMap.delete(t),this.props.dndManager&&this.props.dndManager.removeDropTarget(o)),n&&(this.nodeMap.set(t,n),this.props.dndManager&&this.props.dndManager.addDropTarget(n,new P("dndHover",function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return r._handleOnDrop.apply(r,[e].concat(n))},function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];return r._handleOnDragEnter.apply(r,[t].concat(n))},function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return r._handleOnDragLeave.apply(r,[e].concat(n))},function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return r._handleOnDragEnd.apply(r,[e].concat(n))})))},t.prototype._handleOnDrop=function(){},t.prototype._handleOnDragEnter=function(e){this.props.cardListVM.movePlaceHolderToCard(e)},t.prototype._handleOnDragLeave=function(){},t.prototype._handleOnDragEnd=function(){},t}(l.Component))||s;D.propTypes={handlers:g.default.object,cardListVM:g.default.object.isRequired,cardActions:g.default.object.isRequired,thumbnails:g.default.object,onContextMenuToggle:g.default.func,onContextMenuChange:g.default.func,onDelete:g.default.func,dndManager:g.default.object.isRequired,dndThresholdPx:g.default.number},D.defaultProps={onContextMenuToggle:function(){},onContextMenuChange:function(){},dndThresholdPx:10},t.default=D},,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}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 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=r(s),c=n(6),d=n(1),u=r(d),f=n(41),p=r(f),h=n(2),m=r(h),g=n(43),v=r(g),_=function(e){function t(n){return o(this,t),i(this,e.call(this,n))}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.onClick,n=e.isSelected,r=m.default.get("startingPoints_data_relationships_thumbnail_title"),o=l.default.createElement(c.SVGIcon,{className:"startingPointsThumb",iconId:v.default.id,width:128,height:74});return l.default.createElement("div",{className:"card-list-view__starting-points","data-entry-type":"starting-points",title:r,"aria-label":r},l.default.createElement(p.default,{id:"starting_points",title:r,tabIndex:"0",hasFooter:!1,isSelected:n,onClick:t,view:o}))},t}(s.Component);_.propTypes={onClick:u.default.func,isSelected:u.default.bool},p.default.defaultProps={onClick:function(){},isSelected:!0},t.default=_},,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}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(0),a=r(i),s=n(10),l=r(s),c=n(8),d=r(c),u=n(65),f=r(u),p=n(146),h=r(p),m=n(66),g=r(m),v=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.model;if(o(this,e),!n)throw new Error("Invalid model provided to factory");this.model=n}return e.prototype.makeCardView=function(e){var t=void 0;t=e.isCompareEnabled?this.makeCompareCardView(e)||[]:this.makeSingleCardView(e)||[],0===t.length&&t.push(a.default.createElement(g.default,{key:d.default.uniqueId("blank_")}));var n=(0,l.default)({cardThumbnails:!0,cardThumbnails__compare:e.isCompareEnabled,cardThumbnails__single:!e.isCompareEnabled});return a.default.createElement("div",{className:n},t)},e.prototype.makeCompareCardView=function(e){var t=this;return e.getVisualizations().map(function(e){if(e.widgetLayout){var n=e.widgetLayout,r=t.model.thumbnails.getItemByWidgetId(n.id);return r?r.hasError()||r.hasWarning()?t.makeWarningView(r):t.makeSuccessCardView(r,n.id):t.makeBlankCardView()}if(e.placeholder)return t.makeBlankCardView()})},e.prototype.makeSingleCardView=function(e){var t=void 0,n=e.getVisualizations();if(0!==n.length){var r=n[0].widgetLayout;if(r){var o=this.model.thumbnails.getItemByWidgetId(r.id);if(o)return t=o.hasError()||o.hasWarning()?this.makeWarningView(o):this.makeSuccessCardView(o,r.id),t?[t]:void 0}}},e.prototype.makeWarningView=function(e){return a.default.createElement(h.default,{key:d.default.uniqueId("warning_"),thumbnail:e})},e.prototype.makeSuccessCardView=function(e,t){return a.default.createElement(f.default,{key:t,thumbnail:e})},e.prototype.makeBlankCardView=function(){return a.default.createElement(g.default,{key:d.default.uniqueId("blank_")})},e}();t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}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 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=r(s),c=n(10),d=r(c),u=n(9),f=r(u),p=n(6),h=n(147),m=r(h),g=n(65),v=r(g),_=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e=this.props.thumbnail,t=(0,d.default)({cardThumbnails__item__warning:!0});return l.default.createElement("div",{className:t},this._renderWarningIcon(),l.default.createElement(v.default,{key:e.widgetId,thumbnail:e}))},t.prototype._renderWarningIcon=function(){return l.default.createElement(p.SVGIcon,{className:"cardThumbnails__item__warning__icon",iconId:m.default.id})},t}(s.Component);_.propTypes={thumbnail:f.default.shape({type:f.default.string,widgetId:f.default.string})},t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n.n(r),i=n(13),a=n.n(i),s=new o.a({id:"warning--alt_16",use:"warning--alt_16-usage",viewBox:"0 0 16 16",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="warning--alt_16"><path d="M14.5 14h-13c-.2 0-.3-.1-.4-.2-.1-.2-.1-.3 0-.5l6.5-12c.1-.3.4-.4.6-.2.1 0 .2.1.2.2l6.5 12c.1.2.1.3 0 .5 0 .1-.2.2-.4.2zM2.3 13h11.3L8 2.5 2.3 13z" /><path d="M7.5 6h1v3.5h-1zm.5 4.8c-.4 0-.8.3-.8.8s.3.8.8.8c.4 0 .8-.3.8-.8s-.4-.8-.8-.8z" /><path style="fill:none" d="M0 0h16v16H0z" /></symbol>'});a.a.add(s);t.default=s},function(e,t,n){var r=n(149);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0};o.transform=void 0;n(4)(r,o);r.locals&&(e.exports=r.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.card-list-view {\n padding-top: 16px;\n max-height: 100%;\n width: 100%;\n -ms-flex-positive: 1;\n flex-grow: 1;\n -ms-flex-negative: 1;\n flex-shrink: 1;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n.card-list-view__cards {\n position: relative;\n -ms-flex-positive: 0;\n flex-grow: 0;\n -ms-flex-negative: 1;\n flex-shrink: 1;\n min-height: 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 overflow-y: auto;\n padding: 5px 0;\n}\n\n.card-list-view__cards__container {\n position: relative;\n}\n\n.card-list-view__cards__container--placeholder {\n opacity: 0;\n}\n\n.card-list-view__cards__container--isNew {\n background-color: #24a148;\n background-color: hsla(var(--support-02-h, 137.28), var(--support-02-s, 63.45178%), var(--support-02-l, 38.62745%), 1);\n position: absolute;\n border-radius: 50%;\n top: -5px;\n right: -5px;\n width: 10px;\n height: 10px;\n border-style: solid;\n border-color: #24a148;\n border-color: hsla(var(--support-02-h, 137.28), var(--support-02-s, 63.45178%), var(--support-02-l, 38.62745%), 1);\n border-width: thick;\n}\n\n.card-list-view__cards__container__ordinal {\n position: absolute;\n bottom: 16px;\n left: 10px;\n direction: rtl;\n width: 8px;\n font-size: 0.75rem;\n font-weight: bold;\n}\n\n.card-list-view__cards__container__content {\n margin-bottom: 16px;\n margin-left: 24px;\n}\n\n.card-list-view__starting-points {\n -ms-flex-positive: 0;\n flex-grow: 0;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n margin-top: 10px;\n}\n\n.card-list-view__avatar__container {\n position: absolute;\n top: 8px;\n left: 8px;\n}\n\n.card-list-view__avatar__relative {\n position: relative;\n}\n\n",""])},function(e,t){e.exports=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}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 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),c=r(l),d=n(5),u=n(9),f=r(u),p=n(152),h=r(p),m=n(62),g=r(m),v=n(2),_=r(v),y=(0,d.observer)(s=function(e){function t(){var n,r,a;o(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return n=r=i(this,e.call.apply(e,[this].concat(l))),r.onContextMenuToggle=function(e){var t=r.props.cardListVM,n=t.exploreVM,o=e?n.selectedCards.items:null;t.showContextMenu(o)},r.cancelEditMode=function(){var e=r.props.cardListVM;e.clearSelection(),e.clearContextMenu()},a=n,i(r,a)}return a(t,e),t.prototype.render=function(){var e=this.props.cardListVM,t=e.isEditMode(),n=this.renderLeftSection(t),r=this.renderTitle(t),o=this.renderRightSection(t);return c.default.createElement("div",{className:"sidePane__header"},n,r,o)},t.prototype.renderLeftSection=function(e){return e?c.default.createElement("div",{className:"sidePane__header__leftButton",onClick:this.cancelEditMode},_.default.get("cancel_multiselect")):void 0},t.prototype.renderRightSection=function(e){var t=this.props.cardListVM,n=t.shouldShowContextMenu();return e?c.default.createElement(g.default,{iconId:h.default.id,items:n?this.getContextMenuItems():void 0,onChange:this.props.onContextMenuChange,onToggle:this.onContextMenuToggle,thumbnails:t.thumbnails}):void 0},t.prototype.renderTitle=function(e){var t=!e&&_.default.get("cardListTitle");return c.default.createElement("div",{className:"sidePane__header__title"},t)},t.prototype.getContextMenuItems=function(e){return this.props.cardListVM.getContextMenuItems(e)},t}(l.Component))||s;y.propTypes={cardListVM:f.default.object.isRequired,onContextMenuChange:f.default.func},y.defaultProps={onContextMenuChange:function(){}},t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n.n(r),i=n(13),a=n.n(i),s=new o.a({id:"overflow-menu--horizontal_32",use:"overflow-menu--horizontal_32-usage",viewBox:"0 0 32 32",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" id="overflow-menu--horizontal_32"><circle cx="6" cy="16" r="2" /><circle cx="16" cy="16" r="2" /><circle cx="26" cy="16" r="2" /><path style="fill:none" d="M0 32V0h32v32z" /></symbol>'});a.a.add(s);t.default=s},function(e,t,n){var r=n(154);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0};o.transform=void 0;n(4)(r,o);r.locals&&(e.exports=r.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.sidePane {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n height: 100%;\n}\n\n.sidePane__header {\n margin: 0 24px;\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-positive: 0;\n flex-grow: 0;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n display: -ms-flexbox;\n display: flex;\n height: 48px;\n -ms-flex-align: center;\n align-items: center;\n}\n\n.sidePane__header__leftButton {\n color: #0f62fe;\n color: hsla(var(--interactive-01-h, 219.16318), var(--interactive-01-s, 99.17012%), var(--interactive-01-l, 52.7451%), 1);\n font-size: 0.875rem;\n cursor: pointer;\n}\n\n.sidePane__header__title {\n color: #393939;\n color: hsla(var(--text-02-h, 0), var(--text-02-s, 0%), var(--text-02-l, 22.35294%), 1);\n -ms-flex: 1;\n flex: 1;\n text-align: left;\n font-size: 0.875rem;\n font-weight: 700;\n}\n\n.sidePane__icon {\n cursor: pointer;\n}\n\n.sidePane__icon--back {\n margin-top: 5px;\n}\n\n.sidePane__content {\n -ms-flex-positive: 1;\n flex-grow: 1;\n -ms-flex-negative: 1;\n flex-shrink: 1;\n display: -ms-flexbox;\n display: flex;\n overflow: hidden;\n}\n\n",""])},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){(0,f.replaceArray)(e,t)}t.__esModule=!0;var i=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}(i),s=n(7),l=n(8),c=r(l),d=n(156),u=r(d),f=n(25),p=[["copy","paste"],null,["duplicate","show","hide","compare"],null,["deleteCard"]],h=function(e,t,n,r){for(var o=[],i=0;i<e.length;i++){var a=e[i];t.indexOf(a)<0&&(a!==r?o.push(a):i>=n?(o.push(a),o=o.concat(t)):(o=o.concat(t),o.push(a)))}return o};t.default=s.types.model("CardListViewModel",{thumbnails:u.default}).volatile(function(){return{_isAlive:s.isAlive,isDragged:!1,selection:null,placeholders:[],items:a.observable([]),layoutModel:null,exploreVM:null,contextMenu:null,_mobxDisposeEvents:[]}}).views(function(e){return{hasSelectedCards:function(){return e.selection.hasSelections()},isCardSelected:function(t){return e.selection.isSelected(t)},isEditMode:function(){return e.selection.items.length>1||e.hasSelectedCards()&&e.selection.items[0]!==e.exploreVM.displayedCard},shouldShowContextMenu:function(t){return t=t||e.selection.items,!!e.contextMenu&&c.default.intersection(t,e.contextMenu).length===t.length},isStartingPointsDisplayed:function(){return e.exploreVM.isStartingPointsDisplayed()},getSelectedCards:function(){return e.selection.items.map(function(t){return e.layoutModel.findModel(t)})},getContextMenuItems:function(t){t=t||e.getSelectedCards();var n=(0,s.getEnv)(e).cardActions.getActions(t);return p.map(function(e){return e?{items:e.map(function(e){return n.find(function(t){return t.id===e})}).filter(function(e){return!!e}).map(function(e){return{id:e.id,value:e.id,label:e.label}})}:{}})},performAction:function(t,n){n=n||e.getSelectedCards(),(0,s.getEnv)(e).cardActions.getAction(t).action(n)},getCards:function(){return function(){return e._isAlive(e.layoutModel)&&e._isAlive(e.exploreVM)}()?e.items.map(function(t){return-1!==e.placeholders.indexOf(t)?{id:"placeholder"}:e.layoutModel.findModel(t)}):null},getItemIndex:function(t){return e.items?e.items.indexOf(t):-1},getCard:function(t){return e.layoutModel.findModel(t)},isDragging:function(){return e.isDragged}}}).actions(function(e){return{beforeDestroy:function(){e._mobxDisposeEvents.forEach(function(e){return e()})},setModelChecker:function(t){e._isAlive=t},setLayoutModel:function(t){e.layoutModel=t,e.exploreVM=t.exploreVM,e._mobxDisposeEvents.push(a.reaction(function(){return e.layoutModel.items.map(function(e){return e.id})},function(t){o(e.items,t)},{fireImmediately:!0})),e._mobxDisposeEvents.push(a.reaction(function(){return e.exploreVM.displayedCard},function(){e.contextMenu&&e.contextMenu[0]!==e.exploreVM.displayedCard&&e.showContextMenu(null)},{delay:200}))},setSelectionModel:function(t){e.selection=t},selectCard:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.isStartingPointsDisplayed()?e.exploreVM.setDisplayedToCard(t):n.multiselect?e.selection.isSelected(t)&&1===e.selection.items.length||e.selection.select(t,{control:n.multiselect}):n.rangeselect?e.selection.select(t,{shift:n.rangeselect}):e.exploreVM.setDisplayedToCard(t),e.restoreToolbarIfHidden()},selectAll:function(){e.selection.selectAll()},clearSelection:function(){e.exploreVM.isStartingPointsDisplayed()?e.selection.clear():e.selection.select(e.exploreVM.getDisplayedCard())},beginDrag:function(t){e.isDragged=!0,e.placeholders=t},movePlaceHolderToCard:function(t){var n=e.placeholders;if(!(e.getItemIndex(t)<0)&&n.length){var r=e.getItemIndex(n[0]);if(!(r<0)&&n.indexOf(t)<0){var i=h(e.items,n,r,t);o(e.items,i)}}},endDrag:function(){e.isDragged=!1,e.placeholders=[];var t=e.items.map(function(t){return e.layoutModel.findModel(t)}),n={undoRedoTransactionId:c.default.uniqueId("CardList")};e.layoutModel.replaceArray(t,"CardList",n)},selectStartingPoints:function(){e.exploreVM.setDisplayedToStartingPoints(),e.restoreToolbarIfHidden()},showContextMenu:function(t){e.contextMenu=t},clearContextMenu:function(){e.contextMenu=null},resetLoadingCards:function(){e._isAlive(e.exploreVM)&&e.exploreVM.resetThumbnailsQueue()},resetCardNotification:function(){e.exploreVM.notification.setListVisibility(!1),e.exploreVM.notification.setActive(!1)},loadCards:function(t){var n=t.filter(function(t){return!e.isCardSelected(t)});e.exploreVM.thumbnails.queue(e.removePlaceholderCards(n))},removePlaceholderCards:function(t){var n=t.map(function(t){return e.layoutModel.findModel(t)}),r=[];return n&&n.forEach(function(e){var t=e.cardModelUtil.getLayouts(e,e.boardModel);(t.length>0&&t[0].hasOwnProperty("widgetLayout")||!1)&&r.push(e.id)}),r},restoreToolbarIfHidden:function(){e.exploreVM.toolbar&&e.exploreVM.toolbar.getIsHidden()&&e.layoutModel.getDashboardApi().triggerDashboardEvent("filterDock:collapse")},syncThumbnails:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{idle:!0},r=(0,s.getEnv)(e).getThumbnails;return r?r(t,n).then(function(t){e.thumbnails.addItems(t.map(function(e){var t=e.data,n=e.error,r=e.warning;return{widgetId:e.widgetId,type:e.type,data:t,error:n&&n.message?n:void 0,warning:r&&r.message?r:void 0}}))}):Promise.resolve()},syncInitialThumbnails:function(){return e.syncThumbnails(void 0,{idle:!1})},containsBlankWidget:function(t){return e.exploreVM.containsBlankWidget(t)},isCardNew:function(t){return e.exploreVM.isCardNew(t)}}})},function(e,t,n){"use strict";t.__esModule=!0,t.Thumbnail=t.ThumbnailWarning=t.ThumbnailError=void 0;var r=n(7),o=t.ThumbnailError=r.types.model("ThumbnailError",{message:r.types.string}),i=t.ThumbnailWarning=r.types.model("ThumbnailWarning",{message:r.types.string}),a=t.Thumbnail=r.types.model("Thumbnail",{widgetId:r.types.string,type:r.types.optional(r.types.string,""),data:r.types.optional(r.types.string,""),error:r.types.union(o,r.types.undefined),warning:r.types.union(i,r.types.undefined)}).views(function(e){return{hasError:function(){return!!e.error},hasWarning:function(){return!!e.warning}}});t.default=r.types.model("Thumbnails",{items:r.types.optional(r.types.array(a),[])}).views(function(e){return{getItemByWidgetId:function(t){return e.items.find(function(e){return e.widgetId===t})},getItemIndexByWidgetId:function(t){return e.items.findIndex(function(e){return e.widgetId===t})}}}).actions(function(e){function t(t){e.items=t}function n(e){o(e)}function r(e){e.forEach(function(e){return o(e)})}var o=function(t){if(!t||!t.widgetId)throw new Error("Invalid thumbnail item provided");var n=e.getItemIndexByWidgetId(t.widgetId);-1===n?e.items.push(t):e.items.splice(n,1,t)};return{setItems:t,addItem:n,addItems:r}})},,,,,function(e,t,n){var r=n(162);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0};o.transform=void 0;n(4)(r,o);r.locals&&(e.exports=r.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-thumbnail-container {\n height: 100%;\n}\n\n",""])},function(e,t){e.exports=p},function(e,t,n){"use strict";t.__esModule=!0;var r=n(165),o=r.extend({getExtraCustomSpec:function(e){return{id:"dashboardPanel",reuseSlideout:!0,width:"212px",position:"left",resizable:{min:212,max:1e3},pinning:{isPinned:!0,float:!1,display:!1},content:{module:"explore/contrib/cards/extension",glassContext:e.glassContext}}}});t.default=o},function(e,t){e.exports=h},function(e,t,n){"use strict";t.__esModule=!0;var r=n(167),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=n(169),a=i.extend({_getPinsPanelClass:function(){return o.default}});t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(168),i=o.extend({_addPinToLayout:function(e,t){var n=e.model,o=n.layout,i=void 0;i="widget"===o.type?r({},n,{layout:{id:"cardId",relatedLayouts:"",type:"exploreCard",items:[r({},o,{style:{}})]}}):r({},n),this.canvasController.addPin({model:i},t)}});t.default=i},function(e,t){e.exports=m},function(e,t){e.exports=g}],[120])});
- //# sourceMappingURL=glass.min.js.map
|