(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{593:function(e,n,t){"use strict";var a,b,v,h,m,i,g,x,y,o;t.r(n),a=t(0),b=t.n(a),v=t(4),h=t(1),m=t(244),i=t(2),g=function(e){return'\n
\n
\n
\n \n
\n
\n
\n\n \n
\n "},x=t(595),t.d(n,"expression",function(){return o}),y={},o={edit:function(t,n,e){function a(e){var n="string"!=typeof t?t.prop("Brackets"):v.a.get("brackets");return n[0]+e+n[2]}function i(e){e.preventDefault(),e.stopPropagation()}var o,r,s,l,c,d,p,u,f;return void 0===t?null:(o=new m.a("ExpressionEditor"),r="string"==typeof t?t:void 0===t.prop(n)?"":t.prop(n),s=b()(g(r)),l=void 0,l=!!e&&this.getMenu({track:!1}),d=b()(".expr-menu",s),p=b()("textarea",s),u=b()(".add-to-expr",s),f={$popup:o,$textarea:p,onClick:function(){var e=p.val();t&&t.prop(n)!==e&&(t.prop(n,e,!0),h.a.trigger("update-properties-panel",t),t.render()),o.close()}},l?(c=b()(".rt-content[data-component]",l),d.html(l),c.attr("draggable",!0),c.css("cursor","move"),c.on("dragstart",function(e){var n=b()(e.target),t=n.parent()[0].element;e.originalEvent.dataTransfer.setData("text",t.view||t.getView(n))}),p.on("dragover",i),p.on("dragenter",i),p.on("drop",function(e){var n=b()(e.target),t=e.originalEvent.dataTransfer.getData("text");e.preventDefault(),n.val(n.val()+a(t))}),l.on("click",".rt-content",function(){b()(this).is(".selected[data-component]")?u.removeAttr("disabled"):u.attr("disabled",!0)}),u.on("click",function(){var e=b()(".selected",l),n=e.parent()[0].element,t=n.view||n.getView(e);t&&p.val(p.val()+a(t))})):(p.parent().css("width","100%"),u.remove(),d.remove()),s.on("click",".edit-expr",function(e){return f.onClick.apply(this,[e,p.val(),o])}),b()(".fr-modal-content",o).html(s),f)},getMenu:function(e){return this._getMenu(e||{})},_getMenu:function(e){var n,t=e.track,a=e.openConnections,i=e.openSystemVariables,o=e.openTotals,r=e.openParameters,s=e.openFunctions,l=!1===t?{}:y,c=window.DSG.currentReport,d=c.connections,p=c.dataSources,u=c.systemVariables,f=c.totals,b=c.parameters,v=c.functions,m=[];return d&&m.push({label:"Dictionary DataSources",icon:"icon-053",fields:[].concat(d.all(),p.all()),editable:[function(e){h.a.trigger("new-connection-wizard",e)},null],openedInTree:a}),u&&m.push({label:"Dictionary SystemVariables",icon:u.attr("icon"),fields:u.entities,openedInTree:i}),f&&m.push({label:"Dictionary Totals",icon:"icon-132",fields:f.all(),editable:[function(e){h.a.trigger("create-total",e)},null],openedInTree:o}),b&&m.push({label:"Dictionary Parameters",icon:"icon-234",fields:b.all(),editable:[function(e){h.a.trigger("create-parameter",e)},null],openedInTree:r}),v&&m.push({label:"Dictionary Functions",icon:v.icon,fields:v.entities,className:"functions",openedInTree:s}),n=!0,Object(x.a)({nodes:m,selectable:!0,openedInTree:l,editable:n})}}},595:function(e,n,t){"use strict";function c(e,n,t){var a,i=y()("