12345678910 |
- /**
- * IBM Confidential OCO Source Materials IBM Business Platform: Dashboards
- * (C) Copyright IBM Corp. 2016, 2020
- *
- * The source code for this program is not published or otherwise divested of
- * its trade secrets, irrespective of what has been deposited with the U.S.
- * Copyright Office
- */
- define("dashboard-core/js/dashboard/widgets/staticwidget/PlaceholderView",["../../../lib/@waca/core-client/js/core-client/ui/core/View"],(function(t){var e=null;return e=t.extend({init:function(){e.inherited("init",this,arguments)},hide:function(){this.$el.find(".placeholder").hide(),this._isShowing=!1},show:function(){this.$el.find(".placeholder").show(),this._isShowing=!0},isShowing:function(){return this._isShowing}})})),define("text!dashboard-core/js/dashboard/widgets/staticwidget/TextPlaceholder.html",[],(function(){return'<div class="staticContent placeholder text" aria-label="{{= it.placeholderText}}"><span class="textFitted responsiveColor responsiveFontFamily"><p><span>{{= it.placeholderText}}</span></p></span></div>\n'})),define("dashboard-core/js/dashboard/widgets/staticwidget/TextPlaceholderView",["./PlaceholderView","text!./TextPlaceholder.html","../../util/TextFitUtil","../../../app/nls/StringResources"],(function(t,e,i,a){var s=null;return s=t.extend({templateString:e,init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s.inherited("init",this,arguments),this.text=t.text||a.get("textPlaceHolder")},render:function(){var t=this.dotTemplate({placeholderText:this.text});this.$el.append(t)},show:function(){s.inherited("show",this,arguments),this.fillText()},fillText:function(){var t=this.el.querySelector(".placeholder.text");if(t&&"none"!==t.style.display){t.classList.add("textFillNoScroll");var e={maxFontSize:Math.ceil(t.clientHeight),minFontSize:1,multiLine:!1,detectMultiLine:!1};i.fillText(t,e)}}})})),define("text!dashboard-core/js/dashboard/widgets/staticwidget/IconPlaceholder.html",[],(function(){return"<div class='placeholder icon' aria-label=\"{{= it.placeholderText}}\">\n\t<div class='iconContainer'></div>\n\t<div class='instructionText responsiveColor responsiveFontFamily'>{{= it.placeholderText}}</div>\n</div>\n"})),function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"));else if("function"==typeof define&&define.amd)define("dashboard-core/js/lib/@waca/dashboard-common/dist/lib/@ba-ui-toolkit/ba-graphics/dist/illustrations-js/text-widget_128",["@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"],e);else{var i=e("object"==typeof exports?require("@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"):t["@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"]);for(var a in i)("object"==typeof exports?exports:t)[a]=i[a]}}("undefined"!=typeof self?self:this,(function(t){return webpackJsonPBaGraphics([19],{"1e9f330d9e8a45e87d83":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("3865314c5959606874d4"),s=(i.n(a),i("ba2af528d66c47d43dcf"));e.default=s.a},"3865314c5959606874d4":function(e,i){e.exports=t},ba2af528d66c47d43dcf:function(t,e,i){"use strict";var a=i("9689a9c94ae38b47fa2c"),s=i.n(a),o=i("9ce58a7deea14f49ef01"),n=i.n(o),l=new s.a({id:"text-widget_128_v7",use:"text-widget_128_v7-usage",viewBox:"0 0 200 200",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" id="text-widget_128_v7"><defs><linearGradient id="text-widget_128_v7_a" x1="100" y1="157.11" x2="100" y2="-3.02" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff" /><stop offset=".01" stop-color="#fff" stop-opacity=".99" /><stop offset=".23" stop-color="#fff" stop-opacity=".7" /><stop offset=".43" stop-color="#fff" stop-opacity=".45" /><stop offset=".62" stop-color="#fff" stop-opacity=".25" /><stop offset=".78" stop-color="#fff" stop-opacity=".12" /><stop offset=".91" stop-color="#fff" stop-opacity=".03" /><stop offset="1" stop-color="#fff" stop-opacity="0" /></linearGradient></defs><circle class="ba-graphics-gray40" cx="100" cy="100" r="100" /><path class="ba-graphics-white" d="M33.09 60.78h134v109.26h-134z" /><path class="ba-graphics-gray80" d="M6.83 172.06H2.07a2 2 0 110-4h4.76a2 2 0 110 4z" /><path style="opacity:.75;fill:url(#text-widget_128_v7_a)" d="M171.29 170.11a100 100 0 10-142.58 0z" /><circle class="ba-graphics-white" cx="101.64" cy="21.45" r="2" /><path class="ba-graphics-white" d="M78 39.17a4 4 0 004-4 1 1 0 012 0 4 4 0 004 4 1 1 0 010 2 4 4 0 00-4 4 1 1 0 01-2 0 4 4 0 00-4-4 1 1 0 010-2z" /><path class="ba-graphics-gray80" d="M167.12 172.08h-11a2 2 0 010-4h9v-3a2 2 0 014 0v5a2 2 0 01-2 2zm-21 0h-11a2 2 0 010-4h11a2 2 0 010 4zm-21 0h-11a2 2 0 010-4h11a2 2 0 110 4zm-21 0h-11a2 2 0 010-4h11a2 2 0 110 4zm-21 0h-11a2 2 0 010-4h11a2 2 0 010 4zm-21 0h-11a2 2 0 010-4h11a2 2 0 110 4zm-21 0h-8.28a2 2 0 01-2-2v-2.72a2 2 0 114 0v.72h6.28a2 2 0 110 4zm-8.28-12.72a2 2 0 01-2-2v-11a2 2 0 114 0v11a2 2 0 01-2 2zm134.28-2.25a2 2 0 01-2-2v-11a2 2 0 014 0v11a2 2 0 01-2 2zM32.84 138.36a2 2 0 01-2-2v-11a2 2 0 114 0v11a2 2 0 01-2 2zm134.28-2.25a2 2 0 01-2-2v-11a2 2 0 014 0v11a2 2 0 01-2 2zM32.84 117.36a2 2 0 01-2-2v-11a2 2 0 114 0v11a2 2 0 01-2 2zm134.28-2.25a2 2 0 01-2-2v-11a2 2 0 014 0v11a2 2 0 01-2 2zM32.84 96.36a2 2 0 01-2-2v-11a2 2 0 114 0v11a2 2 0 01-2 2zm134.28-2.25a2 2 0 01-2-2v-11a2 2 0 014 0v11a2 2 0 01-2 2zM32.84 75.36a2 2 0 01-2-2v-11a2 2 0 114 0v11a2 2 0 01-2 2zm134.28-2.25a2 2 0 01-2-2v-9.74a2.07 2.07 0 01-.26-1 2 2 0 012-2h.26a2 2 0 012 2v10.74a2 2 0 01-2 2zm-10.26-10.74h-11a2 2 0 010-4h11a2 2 0 010 4zm-21 0h-11a2 2 0 010-4h11a2 2 0 010 4zm-21 0h-11a2 2 0 010-4h11a2 2 0 010 4zm-21 0h-11a2 2 0 010-4h11a2 2 0 010 4zm-21 0h-11a2 2 0 010-4h11a2 2 0 010 4zm-21 0h-11a2 2 0 010-4h11a2 2 0 010 4z" /><path class="ba-graphics-gray80" d="M100 4a96 96 0 11-96 96 96.11 96.11 0 0196-96m0-4a100 100 0 10100 100A100 100 0 00100 0z" /><path class="ba-graphics-gray80" d="M198 172.06H14.92a2 2 0 110-4H198a2 2 0 010 4z" /><rect class="ba-graphics-gray80" x="137.08" y="28.4" width="53.69" height="53.84" rx="2" transform="rotate(-19.12 163.909 55.327)" /><path class="ba-graphics-gray80" d="M189.82 17.64a2 2 0 01-.48-3.94l6.89-1.7a2 2 0 011 3.88l-6.89 1.72a2.05 2.05 0 01-.52.04zm-4.75-4.83a2 2 0 01-1.71-3l4.89-8.14a2 2 0 113.43 2.05l-4.89 8.15a2 2 0 01-1.72.94zm-6.49-1.92a2 2 0 01-1.94-1.51l-1.72-6.89a2 2 0 013.88-1l1.72 6.89a2 2 0 01-1.45 2.42 1.69 1.69 0 01-.49.09z" /><rect class="ba-graphics-white" x="139.52" y="23.27" width="53.69" height="53.84" rx="2" transform="rotate(-19.12 166.362 50.183)" /><path class="ba-graphics-gray80" d="M180.44 21.06l15 43.31-43.17 15-15-43.37 43.17-15m1.23-4.55a2.16 2.16 0 00-.65.11l-47 16.28a2 2 0 00-1.24 2.54l16.33 47.1a2 2 0 001.89 1.34 1.81 1.81 0 00.65-.11l47-16.27a2 2 0 001.24-2.44l-16.33-47.14a2 2 0 00-1.89-1.35z" /><path class="ba-graphics-gray40" d="M152 45a2 2 0 01-.65-3.89l21.17-7.32a2 2 0 111.31 3.78l-21.18 7.32a2.06 2.06 0 01-.65.11zm13.31 21.42a2 2 0 01-.65-3.89l10.6-3.66a2 2 0 111.31 3.78L166 66.31a1.91 1.91 0 01-.69.11z" /><path class="ba-graphics-gray40" d="M174.56 41.71a2 2 0 01-1.89-1.35l-1.38-4a2 2 0 013.78-1.31l1.38 4a2 2 0 01-1.24 2.55 2.06 2.06 0 01-.65.11zM153.38 49a2 2 0 01-1.89-1.35l-1.38-4a2 2 0 013.78-1.31l1.38 4a2 2 0 01-1.27 2.58 2.17 2.17 0 01-.62.08zm17.13 15.27a2 2 0 01-1.89-1.35l-7.79-22.51a2 2 0 013.78-1.31l7.79 22.52a2 2 0 01-1.24 2.54 1.89 1.89 0 01-.65.11z" /><path class="ba-graphics-highlight" d="M112.33 110.13h-9.11V101a3.08 3.08 0 00-6.16 0v9.11H88a3.08 3.08 0 000 6.15h9.11v9.11a3.08 3.08 0 006.16 0v-9.11h9.11a3.08 3.08 0 100-6.15z" /><g style="opacity:.1"><path class="ba-graphics-gray80" d="M151.5 103.82h5.35a8.2 8.2 0 005.75-2.23c1.58-1.55 3.14-3 4.6-4.67a11.25 11.25 0 000-14.88l-10.38-10.57a1.65 1.65 0 00-1.71-.37c-1.41.4-1.75 1.85-.78 3.22a1.88 1.88 0 01-.14 2.63 1.82 1.82 0 01-2.62-.12c-.55-.5-1.06-1.06-1.6-1.58a2 2 0 00-2.77-.14 1.89 1.89 0 000 2.76c.48.54 1 1 1.51 1.55a1.88 1.88 0 01.19 2.79c-.82.83-1.86.76-2.86-.21-.76-.73-1.5-1.49-2.25-2.22a2 2 0 00-2.82-.2 1.84 1.84 0 00.11 2.79c1.38 1.44 2.8 2.85 4.2 4.27a1.81 1.81 0 01.57 1.82 1.86 1.86 0 01-3.16.84c-1.24-1.16-2.41-2.39-3.61-3.58a2 2 0 00-3-.24 1.94 1.94 0 00.21 2.88c1.4 1.43 2.84 2.82 4.25 4.23q2.46 2.41 4.83 4.79a1.73 1.73 0 01.45 1.91 1.86 1.86 0 01-3.23.56c-1.2-1.19-2.37-2.42-3.54-3.63-.26-.27-.25.13-.25.13v2.39c.14 2.71 2 5 4.5 5.09z" /><path class="ba-graphics-gray80" d="M155.7 71a1.51 1.51 0 011.12.45L167.2 82a11.25 11.25 0 010 14.88c-1.46 1.63-3 3.12-4.6 4.67a8.24 8.24 0 01-5.61 2.23h-13.68c-2.47-.09-4.36-2.38-4.5-5.09V96.3s0-.22.1-.22a.24.24 0 01.15.09c1.17 1.21 2.34 2.44 3.54 3.63a2.18 2.18 0 001.55.7 1.79 1.79 0 001.68-1.26 1.73 1.73 0 00-.45-1.91Q143 95 140.62 92.59c-1.41-1.41-2.85-2.8-4.25-4.23a1.94 1.94 0 01-.21-2.88 1.75 1.75 0 011.26-.53 2.45 2.45 0 011.69.77c1.2 1.19 2.37 2.42 3.61 3.58a2 2 0 001.38.58 1.85 1.85 0 001.78-1.42 1.79 1.79 0 00-.57-1.81c-1.4-1.43-2.82-2.84-4.2-4.28a1.84 1.84 0 01-.11-2.79 1.76 1.76 0 011.25-.52 2.27 2.27 0 011.57.72c.75.73 1.49 1.49 2.25 2.22a2.36 2.36 0 001.61.79 1.72 1.72 0 001.25-.58 1.88 1.88 0 00-.19-2.79c-.49-.53-1-1-1.51-1.55a1.89 1.89 0 010-2.76 1.8 1.8 0 011.26-.5 2.19 2.19 0 011.51.64c.54.52 1.05 1.08 1.6 1.58a2.1 2.1 0 001.42.62 1.73 1.73 0 001.2-.5 1.88 1.88 0 00.14-2.63c-1-1.37-.63-2.82.78-3.22a2 2 0 01.59-.08m0-3.78a6 6 0 00-1.62.23 5.47 5.47 0 00-3.76 3.46 1.46 1.46 0 00-.07.19 5.69 5.69 0 00-1.79-.29 5.66 5.66 0 00-5.51 4.5 5.48 5.48 0 00-.7 0 5.65 5.65 0 00-5.61 5.45v.49a5.54 5.54 0 00-3.15 1.57 5.71 5.71 0 00.18 8.21c.82.83 1.65 1.66 2.49 2.48a4 4 0 00-1.19 2.85v2.56c.25 4.77 3.75 8.5 8.13 8.66H157a12 12 0 008.19-3.23l.92-.91c1.27-1.25 2.59-2.53 3.83-3.94a15 15 0 000-19.9l-.06-.07-.07-.07-10.3-10.65a5.25 5.25 0 00-3.81-1.59z" /></g><path class="ba-graphics-white" d="M153.62 99.94h5.07a7.86 7.86 0 005.46-2.11c1.49-1.48 3-2.88 4.35-4.43a10.64 10.64 0 000-14.1l-9.83-10a1.6 1.6 0 00-1.63-.35c-1.33.38-1.66 1.75-.73 3.06a1.79 1.79 0 01-.13 2.49 1.74 1.74 0 01-2.49-.12c-.52-.48-1-1-1.52-1.5a1.87 1.87 0 00-2.62-.13 1.8 1.8 0 000 2.62c.45.51 1 1 1.43 1.46a1.79 1.79 0 01.18 2.65c-.77.79-1.76.72-2.71-.2-.72-.69-1.42-1.41-2.13-2.11a1.86 1.86 0 00-2.68-.19 1.76 1.76 0 00.1 2.65c1.32 1.36 2.66 2.7 4 4a1.69 1.69 0 01.53 1.72 1.75 1.75 0 01-3 .8c-1.17-1.1-2.28-2.26-3.42-3.39a1.91 1.91 0 00-2.79-.23 1.84 1.84 0 00.2 2.73c1.32 1.35 2.69 2.67 4 4q2.26 2.27 4.5 4.54a1.62 1.62 0 01.43 1.81 1.76 1.76 0 01-3.06.53c-1.14-1.13-2.24-2.29-3.36-3.44-.24-.26-.23.12-.23.12v2.27c.13 2.56 1.93 4.73 4.27 4.82z" /><path class="ba-graphics-gray80" d="M157.61 68.85a1.43 1.43 0 011.06.43l9.83 10a10.64 10.64 0 010 14.1c-1.38 1.55-2.86 2.95-4.35 4.43a7.8 7.8 0 01-5.33 2.11h-12.95c-2.34-.09-4.14-2.26-4.27-4.82v-2.27s0-.21.09-.21a.21.21 0 01.14.09c1.12 1.15 2.22 2.31 3.36 3.44a2.08 2.08 0 001.47.66 1.69 1.69 0 001.59-1.19 1.62 1.62 0 00-.43-1.81q-2.24-2.28-4.5-4.54c-1.33-1.34-2.7-2.66-4-4a1.84 1.84 0 01-.2-2.73 1.66 1.66 0 011.2-.51 2.3 2.3 0 011.59.74c1.14 1.13 2.25 2.29 3.42 3.39a1.88 1.88 0 001.31.55 1.74 1.74 0 001.68-1.35 1.69 1.69 0 00-.53-1.72c-1.33-1.35-2.67-2.69-4-4a1.76 1.76 0 01-.1-2.65 1.73 1.73 0 011.18-.48 2.16 2.16 0 011.5.67c.71.7 1.41 1.42 2.13 2.11a2.22 2.22 0 001.5.71 1.65 1.65 0 001.18-.54 1.79 1.79 0 00-.18-2.65c-.47-.5-1-1-1.44-1.46a1.81 1.81 0 010-2.62 1.72 1.72 0 011.19-.48 2.13 2.13 0 011.44.61c.51.5 1 1 1.51 1.5a2 2 0 001.3.64 1.72 1.72 0 001.15-.47 1.79 1.79 0 00.13-2.49c-.93-1.31-.6-2.68.73-3.06a2.24 2.24 0 01.57-.08m0-4a6.33 6.33 0 00-1.66.23 5.63 5.63 0 00-3.77 3.35 5.8 5.8 0 00-1.44-.18 5.72 5.72 0 00-3.94 1.57 5.87 5.87 0 00-1.61 2.67h-.34a5.7 5.7 0 00-3.93 1.58 5.64 5.64 0 00-1.8 4v.12a5.72 5.72 0 00-2.85 1.55 5.81 5.81 0 00.16 8.37c.69.7 1.38 1.39 2.08 2.08a4.24 4.24 0 00-.92 2.72v2.45c.25 4.74 3.74 8.44 8.12 8.6h13.1a11.78 11.78 0 008.06-3.18l.87-.85c1.21-1.19 2.46-2.42 3.66-3.76a14.62 14.62 0 000-19.42l-.07-.08-.07-.07-9.83-10a5.37 5.37 0 00-3.91-1.63z" /><circle class="ba-graphics-white" cx="52.27" cy="33.67" r="2" /></symbol>'});n.a.add(l),e.a=l}},["1e9f330d9e8a45e87d83"])})),function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"));else if("function"==typeof define&&define.amd)define("dashboard-core/js/lib/@waca/dashboard-common/dist/lib/@ba-ui-toolkit/ba-graphics/dist/illustrations-js/build-visualization_200",["@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"],e);else{var i=e("object"==typeof exports?require("@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"):t["@ba-ui-toolkit/ba-graphics/dist/illustrations-js/ba-graphics-icons-commons.js"]);for(var a in i)("object"==typeof exports?exports:t)[a]=i[a]}}("undefined"!=typeof self?self:this,(function(t){return webpackJsonPBaGraphics([181],{"0ab760cb887c08db0b58":function(t,e,i){"use strict";var a=i("9689a9c94ae38b47fa2c"),s=i.n(a),o=i("9ce58a7deea14f49ef01"),n=i.n(o),l=new s.a({id:"build-visualization_200_v7",use:"build-visualization_200_v7-usage",viewBox:"0 0 200 200",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" id="build-visualization_200_v7"><circle class="ba-graphics-neutral-white4" cx="100" cy="100" r="100" /><path class="ba-graphics-white" d="M14.97 170.08h183.04" /><path class="ba-graphics-gray60" d="M198 172.08H15a2 2 0 110-4h183a2 2 0 010 4z" /><path class="ba-graphics-white" d="M2 170.08h4.97" /><path class="ba-graphics-gray60" d="M7 172.08H2a2 2 0 010-4h5a2 2 0 010 4zM75.1 37.41A2.44 2.44 0 0077.54 35a.61.61 0 011.22 0 2.44 2.44 0 002.44 2.44.61.61 0 110 1.22 2.44 2.44 0 00-2.44 2.44.61.61 0 01-1.22 0 2.44 2.44 0 00-2.44-2.44.61.61 0 010-1.22z" /><circle class="ba-graphics-gray60" cx="43.66" cy="39.61" r="2" /><circle class="ba-graphics-gray60" cx="114.6" cy="21.66" r="2" /><path class="ba-graphics-white" d="M31.52 56.68h137.16v113.41H31.52z" /><path class="ba-graphics-gray1" d="M31.48 57.37h58.28v112.66H31.48z" /><path class="ba-graphics-gray60" d="M168.61 172.08H31.33a2 2 0 01-2-2V95.8a2 2 0 014 0v72.28h133.28v-108a1 1 0 00-1-1h-53.47a2 2 0 010-4h53.47a5 5 0 015 5v110a2 2 0 01-2 2z" /><path class="ba-graphics-gray60" d="M31.33 109.05a2 2 0 01-2-2V59.74a5 5 0 015-5h65.59a2 2 0 010 4H34.33a1 1 0 00-1 1v47.31a2 2 0 01-2 2z" /><path class="ba-graphics-gray60" d="M89.63 171.82a2 2 0 01-2-2V59.16a2 2 0 014 0v110.66a2 2 0 01-2 2zm14.38-78.05h12.29v44.83h-12.29zm19.19 18.8h12.29v26.03H123.2zm19.18-7.95h12.29v33.98h-12.29z" /><path class="ba-graphics-white" d="M43.17 68.66h34.27c.66 0 1.2.4 1.2.89v15.54c0 .49-.54.88-1.2.88H43.17c-.66 0-1.2-.39-1.2-.88V69.55c.03-.49.54-.89 1.2-.89z" /><path class="ba-graphics-gray60" d="M77.44 88H43.17A3 3 0 0140 85.09V69.55a3 3 0 013.2-2.89h34.24a3 3 0 013.2 2.89v15.54a3 3 0 01-3.2 2.91zM44 84h32.64V70.66H44zm33.44-13.34z" /><path class="ba-graphics-white" d="M27.22 96h34.26c.67 0 1.2.39 1.2.88v15.54c0 .49-.53.89-1.2.89H27.22c-.67 0-1.21-.4-1.21-.89V96.85c-.01-.49.54-.85 1.21-.85z" /><path class="ba-graphics-gray60" d="M61.48 115.28H27.22a3 3 0 01-3.22-2.89V96.85A3 3 0 0127.22 94h34.26a3 3 0 013.2 2.88v15.54a3 3 0 01-3.2 2.86zm-33.47-4h32.67V98H28zM61.48 98z" /><path class="ba-graphics-white" d="M14 123.89h34.23c.67 0 1.2.4 1.2.89v15.54c0 .49-.53.88-1.2.88H14c-.67 0-1.21-.39-1.21-.88v-15.54c-.03-.49.51-.89 1.21-.89z" /><path class="ba-graphics-gray60" d="M48.23 143.2H14a3 3 0 01-3.21-2.88v-15.54a3 3 0 013.21-2.89h34.23a3 3 0 013.2 2.89v15.54a3 3 0 01-3.2 2.88zm-33.47-4h32.67v-13.31H14.76zm33.47-13.31z" /><circle class="ba-graphics-gray80" style="opacity:.1" cx="140" cy="60" r="20" /><circle class="ba-graphics-gray60" cx="140" cy="56" r="20" /><path class="ba-graphics-white" d="M147.83 54H142v-5.83a2 2 0 10-4 0V54h-5.85a2 2 0 100 4H138v5.85a2 2 0 004 0V58h5.85a2 2 0 000-4z" /></symbol>'});n.a.add(l),e.a=l},"3865314c5959606874d4":function(e,i){e.exports=t},bf5bb6eeb42b3e27dad6:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("3865314c5959606874d4"),s=(i.n(a),i("0ab760cb887c08db0b58"));e.default=s.a}},["bf5bb6eeb42b3e27dad6"])})),define("dashboard-core/js/dashboard/widgets/staticwidget/IconPlaceholderView",["./PlaceholderView","text!./IconPlaceholder.html","../../util/TextFitUtil","../../../lib/@waca/core-client/js/core-client/utils/Utils","../../../app/nls/StringResources","../../../lib/@waca/dashboard-common/dist/lib/@ba-ui-toolkit/ba-graphics/dist/illustrations-js/text-widget_128","../../../lib/@waca/dashboard-common/dist/lib/@ba-ui-toolkit/ba-graphics/dist/illustrations-js/build-visualization_200"],(function(t,e,i,a,s,o,n){var l=null,r={text:{iconName:o.default.id,text:s.get("textWidgetIconPlaceholderText")},list:{iconName:o.default.id,text:"• "+s.get("textWidgetIconPlaceholderText")},vis:{iconName:n.default.id,text:s.get("visIconPlaceholderText")}};return l=t.extend({templateString:e,init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l.inherited("init",this,arguments),this.type=t.iconType||"text"},render:function(){var t=this.dotTemplate({placeholderText:r[this.type].text});this.$el.append(t),this.resize(),a.setIcon(this.$el.find(".placeholder .iconContainer"),r[this.type].iconName)},show:function(){l.inherited("show",this,arguments),this.fillText()},resize:function(){this.$el.height()<170||this.$el.width()<180?this.$el.find(".placeholder").addClass("compact"):this.$el.find(".placeholder").removeClass("compact"),this.fillText()},fillText:function(){var t=this.el.querySelector(".instructionText");if(t&&"none"!==t.parentElement.style.display){i.fillText(t,{maxFontSize:14,minFontSize:1,multiLine:!1,detectMultiLine:!1,alignHoriz:!0,widthOnly:!0})}}})})),define("dashboard-core/js/dashboard/widgets/staticwidget/TextWidget",["jquery","./StaticWidget","../../../lib/@waca/core-client/js/core-client/utils/Utils","../../../lib/@waca/core-client/js/core-client/utils/BidiUtil","../../../dashboard/util/TextEditor","../../../app/nls/StringResources","underscore","../../../app/util/EventChainLocal","./TextPlaceholderView","./IconPlaceholderView","../../../lib/@waca/dashboard-common/dist/api/PropertiesProviderAPI","../../../lib/@waca/dashboard-common/dist/core/APIFactory"],(function(t,e,i,a,s,o,n,l,r,c,h,d){var p=null;return(p=e.extend({_didCleanseContent:!1,init:function(t){if(p.inherited("init",this,arguments),t&&t.initialConfigJSON&&t.initialConfigJSON.placeholder){var e=t.initialConfigJSON.placeholder,i=e.iconType?c:r;this.placeholder=new i(n.extend({el:this.$el},e)),this.$el.on("primaryaction",this.onSelect.bind(this))}},destroy:function(){this.textEditor.toggleEditing(!1),this.model.off("change:content",this.textEditor.applyContent,this.textEditor),this.content.off("change:property",this._onPropertyChange,this),this.$el.off("primaryaction",this.onSelect.bind(this)),this.textEditor.selectionUnbindNodeEvents(),this.textEditor.destroy(),p.inherited("destroy",this,arguments)},_onPropertyChange:function(){this.updateModelContent()},onContainerReady:function(){var t=this;p.inherited("onContainerReady",this,arguments),this.$el.append(this._cleanContent(this.model.get("content")));var e={color:"responsiveColor"},i=this.initialConfigJSON&&this.initialConfigJSON.defaults?n.extend(this.initialConfigJSON.defaults,e):e;this.textEditor=new s({node:this.getWidgetStyleNode(),container:this.$widgetContainer,widget:this,toolbarNode:this.$widgetContainer,isResponsive:this.model.isResponsive,supportsLists:!0,initialState:i}),a.initElementForBidi(this.getWidgetStyleNode().get(0)),this.model.on("change:content",this.textEditor.applyContent,this.textEditor),this.content.on("change:property",this._onPropertyChange,this),this.addColorProperties(["content"]),this._didCleanseContent&&(this._didCleanseContent=!1,this._silentUpdate()),this.textEditor.initContentEditable("p > span"),this.textEditor.selectionBindNodeEvents(),this.placeholder&&(this.placeholder.render(),this.updatePlaceholder()),this._updateAriaInfo(),this.model.set({content:this.getHtmlRender()},{silent:!0,payloadData:{skipUndoRedo:!0}});var o=d.createAPI(this,[h]);return this.content.getFeature("Properties").registerProvider(o),new Promise((function(e){setTimeout((function(){t.fillText(),e()}),900)}))},_updateAriaInfo:function(){this.updateDescription(this.getLabel());var e=this.model.id+"Editable",i=this.$el.find(".note-editable").get(0);i&&(i.setAttribute("id",e),this.$widgetContainer.attr("aria-labelledby",(function(){return t(this).attr("aria-labelledby")+" "+e})))},onShow:function(){this.fillText()},_shouldShowPlaceholder:function(){return"list"===this.initialConfigJSON.placeholder.iconType?!this.textEditor.hasText():!this.textEditor.hasContent()},updatePlaceholder:function(){this._shouldShowPlaceholder()?this._showPlaceholder():this._hidePlaceholder()},_showPlaceholder:function(){this.$widgetContainer.addClass("placeholder"),this.textEditor.hide(),this.placeholder.show()},_hidePlaceholder:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$widgetContainer.removeClass("placeholder"),this.placeholder.hide(),this.textEditor.show(t)},onSelect:function(t){this.isAuthoringMode&&(this.placeholder&&this.placeholder.isShowing()?(new l(t).setProperty("preventDefaultContextBar",!0),this._hidePlaceholder(!0)):this.placeholder&&this._shouldShowPlaceholder()&&function(t,e){for(;t;){if(t.classList&&n.contains(t.classList,e))return!0;t=t.parentNode}return!1}(t.target,"moveHandle")?this._showPlaceholder():this.textEditor.isEditing()&&new l(t).setProperty("preventDefaultContextBar",!0))},onChromeSelected:function(t){p.inherited("onChromeSelected",this,arguments),this.isAuthoringMode&&!t&&this.textEditor.attachEnterEditEvents()},onChromeDeselected:function(){p.inherited("onChromeDeselected",this,arguments),this.placeholder&&!this.placeholder.isShowing()&&this._shouldShowPlaceholder()&&this._showPlaceholder(),this.isAuthoringMode&&(this.textEditor.toggleEditing(!1),this.textEditor.detachEnterEditEvents())},onAuthoringMode:function(){p.inherited("onAuthoringMode",this,arguments)},onConsumeMode:function(){p.inherited("onConsumeMode",this,arguments),this.textEditor.toggleEditing(!1)},onEnterContainer:function(){this.textEditor.toggleEditing(!0),this.placeholder&&this.placeholder.isShowing()&&this._hidePlaceholder(!0)},_cleanContent:function(t){var e=s.cleanContentElements(t);if(!e||!this.isValidHtmlContent(e)){var i={text:o.get("textPlaceHolder"),style:"responsive"};e='<div class="staticContent">'+s.getTextHTML(i)+"</div>"}return e!==t&&(this._didCleanseContent=!0),e},_silentUpdate:function(){this.onPropertyUpdate({transactionId:null})},getPropertyLayoutList:function(){var t=p.inherited("getPropertyLayoutList",this,arguments)||[],e=this.textEditor.getPropertyLayoutList();return e&&t.push.apply(t,e),t},getPropertyList:function(){var t=[],e=this.textEditor.getPropertyList();return e&&t.push.apply(t,e),t},selectAll:function(){document.getSelection().selectAllChildren(this.getWidgetStyleNode().get(0))},getHtmlRender:function(){return this.getWidgetStyleNode().get(0)?this.getWidgetStyleNode().get(0).outerHTML:""},fillText:function(){this.placeholder&&this.placeholder.isShowing()?this.placeholder.fillText&&this.placeholder.isShowing()&&this.placeholder.fillText():this.textEditor.fillText()},resize:function(){this.fillText(),this.placeholder&&this.placeholder.resize&&this.placeholder.resize()},registerEventGroup:function(){},updateModelContent:function(t,e){t=t?s.cleanContentElements(t):s.cleanContentElements(this.getHtmlRender());var i={};e?n.extend(i,{payloadData:{undoRedoTransactionId:e}}):n.extend(i,{silent:!0});var a=this.textEditor.getTitleFromHtml(this.getHtmlRender());this.set({content:t,name:a,isResponsive:this.textEditor.isResponsive},i)},getLabel:function(){return o.get("textWidgetTitle")}})).getDefaultSpec=function(t,e){e||(e={style:"responsive",placeholder:{showIcon:!1,text:o.get("textPlaceHolder")}});var i='<div class="staticContent">'+s.getTextHTML(e)+"</div>",a={model:{type:"text",name:o.get("textPlaceHolder"),content:i},layoutProperties:{style:{width:"200px",height:"50px"}}};return"responsive"===e.style&&(a.model.isResponsive=!0),e.placeholder&&(a.model.placeholder=e.placeholder,e.text||(a.model.avatarHtml='<div class="staticContent">'+s.getTextHTML(n.extend({text:e.placeholder.text},e))+"</div>")),Promise.resolve(a)},p})),define("dashboard-core/js/textWidgetBundle",(function(){}));
|