>=1)r^=a;r^=a;while((r&(1<"+this.collections.loc["Maximum"]+" "+this.numberWithSpaces(t.maxReportPages)+".";return void o().show(s,i,"Notifications.Elements.png")}if(t.maxDataRows){var s=this.collections.loc["QuotaMaximumDataRowsCountExceeded"]+"
"+this.collections.loc["Maximum"]+" "+this.numberWithSpaces(t.maxDataRows)+".";return void o().show(s,i,"Notifications.Lines.png")}if(t.maxResources){var s=this.collections.loc["QuotaMaximumResourcesCountExceeded"]+"
"+this.collections.loc["Maximum"]+" "+this.numberWithSpaces(t.maxResources)+".";return void o().show(s,i,"Notifications.Files.png")}if(t.maxResourceSize){var s=this.collections.loc["QuotaMaximumResourceSizeExceeded"]+"
"+this.collections.loc["Maximum"]+" "+this.GetHumanFileSize(t.maxResourceSize)+".";return void o().show(s,i,"Notifications.Files.png")}if(t.notAllowDatabase){var s="The '"+t.notAllowDatabase+"' data source is not available in your subscription.";return void o().show(s,i,"Notifications.Blocked.png")}if(t.notAllowDataTransformation){var s="Data transformation is not available in your subscription.";return void o().show(s,i,"Notifications.Blocked.png")}},StiJsViewer.prototype.showParametersPanel=function(t,e){var t="string"==typeof(t=e.showError(t)?null:t)?JSON.parse(t):t;if(e.options.isParametersReceived=!0,e.controls.processImage.hide(),e.checkParametersPanelAlreadyBuildedForDrillDown(t))return;e.options.paramsVariables=t,e.InitializeParametersPanel(),("Dashboard"==e.reportParams.type||e.options.reportDesignerMode&&e.options.startPageNumber&&e.controls.dashboardsPanel)&&(e.postAction("GetPages"),e.options.startPageNumber=null)},StiJsViewer.prototype.checkParametersPanelAlreadyBuildedForDrillDown=function(t){if(this.controls.drillDownPanel&&this.controls.drillDownPanel.visible&&0>6|192):(e+=String.fromCharCode(o>>12|224),e+=String.fromCharCode(o>>6&63|128)),e+=String.fromCharCode(63&o|128))}t=e}if(void 0!==window.btoa)return window.btoa(t);var s="",n,r,a,l,h,c,n,p=0;while(p>2,h=(3&n)<<4|(r=t.charCodeAt(p++))>>4,c=(15&r)<<2|(a=t.charCodeAt(p++))>>6,n=63&a,isNaN(r)?c=n=64:isNaN(a)&&(n=64),s=s+this._keyStr.charAt(l)+this._keyStr.charAt(h)+this._keyStr.charAt(c)+this._keyStr.charAt(n);return s},decode:function(t){var e="";if(void 0!==window.atob)e=window.atob(t);else{var i,o,s,n,r,a,l,h=0;t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(h>2,s=(3&a)<<6|(l=this._keyStr.indexOf(t.charAt(h++))),e+=String.fromCharCode(i=n<<2|r>>4),64!=a&&(e+=String.fromCharCode(o)),64!=l&&(e+=String.fromCharCode(s))}if("undefined"!=typeof escape)return decodeURIComponent(escape(e));var c="",h=0,p=0,u=0,d=0,m=0;while(h"+this.jsObject.GetHumanFileSize(i.size,1),i=this.jsObject.ResourceButton(i.name,o,this.jsObject.GetResourceImage(i.type),i.type);t.addCell(i)}}this.changeVisibleState(null!=this.jsObject.reportParams.resources)},t.clearResources=function(){while(s.childNodes[0])s.removeChild(s.childNodes[0])}},StiJsViewer.prototype.ResourceButton=function(t,e,i,o){var s=this.SmallButton(t,e,i,this.collections.loc["ButtonView"]+" "+t,null,"stiJsViewerFormButton");s.style.height="auto",s.resourceType=o,s.style.margin="3px 0 3px 3px";var n=this.SmallButton(null,null,"Arrows.SmallArrowDown.png",null,null,"stiJsViewerResourceDropDownButton",null,{width:8,height:8});n.style.height=n.style.width=this.options.isTouchDevice?"23px":"17px",n.style.margin="0 7px 0 3px",n.innerTable.style.width="100%",n.imageCell.style.textAlign="center",this.options.jsMode||(s.innerTable.addCell(n).style.width="1px"),s.innerTable.style.width="100%",s.style.minWidth="80px",s.caption&&(s.caption.style.textAlign="left",s.caption.style.paddinLeft="3px",s.caption.style.maxWidth="150px",s.caption.style.lineHeight="14px",s.caption.style.whiteSpace="nowrap",s.caption.style.overflow="hidden",s.caption.style.textOverflow="ellipsis"),s.imageCell&&(s.imageCell.style.width="1px",s.imageCell.style.padding="4px 8px 4px 4px",s.image.style.width=s.image.style.height="32px");var o=[];o.push(this.Item("View",this.collections.loc["ButtonView"],null,"View")),o.push(this.Item("SaveFile",this.collections.loc["SaveFile"],null,"SaveFile"));var r=this.VerticalMenu(t+"_ResourceMenu",n,"Down",o);return r.action=function(t){r.changeVisibleState(!1),this.jsObject.postReportResource(s.name,t.key)},s.action=function(){var t,e;n.clicked||(e=0<=["Image","Pdf","Txt"].indexOf(s.resourceType)?"View":"SaveFile",this.jsObject.postReportResource(s.name,this.jsObject.options.jsMode?"SaveFile":e)),n.clicked=!1},s.onmouseup=function(t){2!=t.button||this.jsObject.options.jsMode||r.changeVisibleState(!0)},s.oncontextmenu=function(t){return!1},n.action=function(){r.changeVisibleState(!r.visible),n.clicked=!0},s},StiJsViewer.prototype.GetResourceImage=function(t){return this.collections.images["BigResource"+t+".png"]?"BigResource"+t+".png":"BigResource.png"},StiJsViewer.prototype.InitializeDashboardsPanel=function(){var p=document.createElement("div");this.controls.dashboardsPanel=p,this.controls.mainPanel.appendChild(p),p.style.fontFamily=this.options.toolbar.fontFamily,""!=this.options.toolbar.fontColor&&(p.style.color=this.options.toolbar.fontColor),p.className="stiJsViewerToolBar","Separated"==this.options.toolbar.displayMode&&(p.className+=" stiJsViewerToolBarSeparated");var u=p.jsObject=this;p.style.display="none",p.visible=!1,p.buttons=[];var t=document.createElement("div");p.appendChild(t),"Simple"==this.options.toolbar.displayMode&&(t.style.paddingTop="2px");var d=this.CreateHTMLTable();t.appendChild(d),(p.panelTable=d).className="stiJsViewerToolBarTable","Separated"==this.options.toolbar.displayMode&&(d.style.border="0px"),d.style.margin=0,d.style.boxSizing="border-box";var e=d.addCell(),i=d.addCell(),t=this.options.appearance.rightToLeft?i:e,e=this.options.appearance.rightToLeft?e:i;t.style.width="100%";var m=this.CreateHTMLTable(),i=this.CreateHTMLTable();t.appendChild(m),e.appendChild(i),m.setAttribute("align",this.options.appearance.rightToLeft?"right":"default"==this.options.toolbar.alignment?"left":this.options.toolbar.alignment),i.style.marginRight="2px",p.actionsTable=i;var e="Dashboards.Actions.Light.",o,o,s,s,n,e;this.options.toolbar.showRefreshButton&&this.options.toolbar.visible&&((o=this.SmallButton("RefreshDashboard",null,e+"Refresh.png",[this.collections.loc["Refresh"],this.helpLinks["DashboardToolbar"],{top:"auto"}])).jsObject=this,o.style.margin="2px 0 2px 2px",o.action=function(){u.postAction("Refresh")},i.addCell(o)),this.options.toolbar.showParametersButton&&this.options.toolbar.visible&&((o=this.SmallButton("ParametersDashboard",null,e+"Parameters.png",[this.collections.loc["Parameters"],this.helpLinks["DashboardToolbar"],{top:"auto"}])).jsObject=this,o.style.margin="2px 0 2px 2px",o.style.display="none",o.action=function(){u.postAction("Parameters"),setTimeout(function(){u.postInteraction({action:"Variables",variables:u.controls.parametersPanel.getParametersValues()})},u.options.isMobileDevice?500:0)},i.addCell(o)),this.options.toolbar.showOpenButton&&this.options.toolbar.visible&&((s=this.SmallButton("OpenDashboard",null,e+"Open.png",[this.collections.loc["Open"],this.helpLinks["DashboardToolbar"],{top:"auto"}])).style.margin="2px 0 2px 2px",s.action=function(){var t;u.InitializeOpenDialog("openDashboardDialog",function(t,e,i){u.postOpen(t,i)},".mdc,.mdz,.mdx,.mrt,.mrz,.mrx").action()},i.addCell(s)),this.options.toolbar.showDesignButton&&this.options.toolbar.visible&&((s=this.SmallButton("EditDashboard",null,e+"Edit.png",[this.collections.loc["Edit"],this.helpLinks["DashboardToolbar"],{top:"auto"}])).style.margin="2px 0px 2px 2px",s.action=function(){u.postDesign()},i.addCell(s)),this.options.toolbar.showFullScreenButton&&this.options.toolbar.visible&&((n=this.SmallButton("FullScreenDashboard",u.collections.loc.Close,e+"CloseFullScreen.png",[this.collections.loc["FullScreen"],this.helpLinks["DashboardToolbar"],{top:"auto"}])).style.margin="2px 0 2px 2px",n.action=function(){u.postAction("FullScreen"),u.postAction("GetPages")},n.setFullScreenState=function(t){this.caption.style.display=t?"":"none",u.options.isTouchDevice&&(n.style.width=t?"auto":"32px"),this.imageName=t?this.imageName.replace("Open","Close"):this.imageName.replace("Close","Open"),this.image.src=u.collections.images[this.imageName]},i.addCell(n)),this.options.toolbar.showSaveButton&&this.options.toolbar.visible&&((e=this.SmallButton("ExportDashboard",null,e+"Save.png",[this.collections.loc["Save"],this.helpLinks["DashboardToolbar"],{top:"auto"}])).style.margin="2px 0 2px 2px",e.action=function(){var t=this.isDarkStyle?"stiJsViewerDbsDarkMenu":"stiJsViewerDbsLightMenu",e=u.InitializeSaveDashboardMenu(t+"Item",t,!1);if(e.changeVisibleState(!0,this),this.previewSettings){if(!this.previewSettings.dashboardShowExports)for(var i=["separator","Pdf","Excel2007","Data","Image","Html"],o=0;or.offsetWidth&&0!=a.offsetWidth?(r.offsetWidth-6)/a.offsetWidth:1,s=a.offsetHeight>r.offsetHeight&&0!=a.offsetHeight?(r.offsetHeight-6)/a.offsetHeight:1,s=Math.min(Math.abs(n),Math.abs(s)),r.style.height=r.offsetHeight+"px",r.style.fontSize=parseFloat(o.font.size.toString())*s+"pt",(t=t.elementAttributes.cornerRadius)&&(0e.checkedItems.length)for(var i=0;iC.scrollTop){for(var i=Math.max(e-5,0),o=Math.min(i+100,w.tr.length),s=i;si&&(o=(t=(e<0?C.scrollTop+i:C.scrollTop-i)*t/(o=o<=0?1:o))*X.vOffset),Z.style.transform="translateY("+t+"px)",C.scrollTop=o,X.vScrollOffset=t,X.checkDisplaingRows()}"onwheel"in document?W.addEvent(t,"wheel",e,X):"onmousewheel"in document?W.addEvent(t,"mousewheel",e,X):W.addEvent(t,"MozMousePixelScroll",e,X)},X.saveGridStates=function(){W.tableElementGridStates||(W.tableElementGridStates={});var t={selectedCells:this.selectedCells,cellVScrollTransform:Z.style.transform,cellsContainerScrollTop:C.scrollTop,vScrollOffset:X.vScrollOffset};if("Fit"!=z.sizeMode&&this.headerButtons&&0e?w.tr[e]:0t?e.childNodes[t]:0n.sizeMaxWidth&&(s=n.sizeMaxWidth,r=!0),n.sizeMinWidth&&ss&&(s=t.columnsWidth[o]),(a=T.childNodes[o].firstChild).style.width=s+"px",v&&((l=x.childNodes[o].firstChild).style.width=s+"px"),"Fit"!=z.sizeMode&&a.caption.offsetWidth+45>a.offsetWidth&&0!=a.caption.offsetWidth&&(r?((r=document.createElement("div")).innerHTML=a.caption.innerHTML,r.style.display="block",r.style.textOverflow="ellipsis",r.style.overflow="hidden",r.style.width=Math.max(a.offsetWidth-45,10)+"px",a.caption.innerHTML="",a.caption.appendChild(r)):(s=a.caption.offsetWidth+45,a.style.width=s+"px",v&&(l.style.width=s+"px")));for(var h=0,c=0;c'+t+""),s.setAttribute("_text1",t),document._stiTooltip||W.CreateCustomTooltip(document,W.controls.mainPanel),W.AddCustomTooltip(s,document)),"OpenHyperlink"==n.interaction.onClick&&n.interaction.hyperlink?(s.style.cursor="pointer",s.onclick=function(){var t=X.replaceRowValues(s,W.ReplaceAllKeysInText(n.interaction.hyperlink,{value:r}));"_self"==W.options.appearance.openLinksWindow?window.location.href=t:W.openNewWindow(t,W.options.appearance.openLinksWindow)}):"ApplyFilter"==n.interaction.onClick?(s.style.cursor="pointer",s.onclick=function(){var t=[W.DataFilterObject(n.key,n.path,"EqualTo",r)];W.ApplyFiltersToDashboardElement(G,t,!0)}):"ShowDashboard"==n.interaction.onClick&&n.interaction.drillDownPageKey&&(s.style.cursor="pointer",s.onclick=function(t){var e={drillDownPageKey:n.interaction.drillDownPageKey,value:r,rowCels:s.rowCels,tableKey:s.tableKey,parameters:[]},i=n.interaction.drillDownParameters;if(i)for(var o=0;os){c.caption.innerHTML="",n=!0;break}n&&c.caption.appendChild(a.ComboBoxCaptionButton(a.collections.loc.DashboardNSelected.replace("{0}",i.length),{value:"StiUnCheckAll"},e,h.settings,l))}}c.setEnabled(0t.offsetHeight&&(t.scrollTop=e-t.offsetHeight+100)))},i},StiJsViewer.prototype.CreateTreeViewElementContent=function(t){this.CreateTreeViewItemsContent(t,t.contentPanel)},StiJsViewer.prototype.CreateTreeViewItemsContent=function(o,t,e){var i=this,s=o.elementAttributes,n=s.contentAttributes,r;while(t.childNodes[0])t.removeChild(t.childNodes[0]);var a=i.TreeViewElementTree(s);(o.itemsPanel=a).onChecked=function(t){var t;"allValue"==t.id?o.setStatesForAllItems(t.isChecked):r&&(t=o.getAllItemsCheckedState(),r.setChecked(0==t.unCheckedItems.length)),a.updateCheckBoxesStates(),e&&e(),o.menu&&o.menu.visible?o.menu.isModified=!0:(clearTimeout(o.actionTimer),o.actionTimer=setTimeout(function(){i.ApplyFiltersToDashboardElement(o,o.getFilters())},500))},a.onActionItem=function(t){var t;t&&t.itemObject&&(t="allValue"!=t.id?[{condition:"EqualTo",value:t.itemObject.key,path:t.itemObject.columnPath}]:[],i.ApplyFiltersToDashboardElement(o,t)),e&&e()},o.setStatesForAllItems=function(t){if("One"==n.selectionMode)t||a.mainItem.setSelected();else for(var e in a.items)a.items[e].setChecked&&a.items[e].setChecked(t)},o.applyFiltersToItems=function(){var t="Multi"==n.selectionMode,e;for(e in a.items){var i=a.items[e],o=i.itemObject;if("mainItem"==i.id||"allValue"==i.id||!o)continue;if("Multi"==n.selectionMode)(t="NotEqualTo"==n.filters[0].condition||"IsFalse"==n.filters[0].condition)&&n.filters.some(function(t){return"NotEqualTo"==t.condition&&t.value==o.key&&t.path==o.columnPath||"IsFalse"==t.condition})?i.setChecked(!1):!t&&n.filters.some(function(t){return"EqualTo"==t.condition&&t.value==o.key&&t.path==o.columnPath})?i.setChecked(!0):i.setChecked(t),r&&!i.isChecked&&r.setChecked(!1);else if(n.filters.some(function(t){return"EqualTo"==t.condition&&t.value==o.key&&t.path==o.columnPath}))return i.setSelected(),i.openTree(),void a.autoscroll()}},o.getFilters=function(){var t=[],e=o.getAllItemsCheckedState();if(0==e.checkedItems.length)t.push({condition:"IsFalse",path:n.columnPath});else if(e.unCheckedItems.length>e.checkedItems.length)for(var i=0;ir){u.caption.innerHTML="",a=!0;break}a&&u.caption.appendChild(h.ComboBoxCaptionButton(h.collections.loc.DashboardNSelected.replace("{0}",i.length),{value:"StiUnCheckAll"},e,p.settings,c))}}u.setEnabled(h.getCountObjects(d.mainItem.childs))},u.update()},StiJsViewer.prototype.AddInteractionsToIndicatorElement=function(r,t){var a=this,e,l=r.elementAttributes.contentAttributes;if(!l)return;r.removeStandartTooltip=function(t){for(var e=0;e=l.interaction.drillDownLevelCount-1&&(o.style.cursor="default")),l.interaction&&"None"==l.interaction.onHover&&o.setAttribute("notShowTooltip","true"),(s=l.interaction)&&("ShowHyperlink"==s.onHover&&s.hyperlink||"ShowToolTip"==s.onHover&&s.toolTip)?(n="ShowHyperlink"==l.interaction.onHover?o.getHyperlinkText():o.getTooltipText(),"ShowHyperlink"==l.interaction.onHover&&(n=''+n+""),o.setAttribute("_text1",n),document._stiTooltip||a.CreateCustomTooltip(document,a.controls.mainPanel),a.AddCustomTooltip(r,document)):a.AddBrushOver(r,document),"OpenHyperlink"==s.onClick&&s.hyperlink?(o.style.cursor="pointer",o.onclick=function(){"_self"==a.options.appearance.openLinksWindow?window.location.href=o.getHyperlinkText():a.openNewWindow(o.getHyperlinkText(),a.options.appearance.openLinksWindow)}):"ShowDashboard"==s.onClick&&s.drillDownPageKey&&(o.style.cursor="pointer",o.onclick=function(){document._stiTooltip&&(document._stiTooltip.cx=-.2);var t={drillDownPageKey:s.drillDownPageKey,value:"",parameters:[]},e=s.drillDownParameters;if(e)for(var i={target:this.getAttribute("elementtarget"),value:this.getAttribute("elementvalue"),series:this.getAttribute("elementseries")},o=0;o=P.interaction.drillDownLevelCount-1&&(o.style.cursor="default")),P.interaction&&"None"==P.interaction.onHover&&o.setAttribute("notShowTooltip","true"),P.interaction&&y.frame&&("ShowHyperlink"==P.interaction.onHover&&P.interaction.hyperlink||"ShowToolTip"==P.interaction.onHover&&P.interaction.toolTip)&&(s="ShowHyperlink"==P.interaction.onHover?o.getHyperlinkText():o.getTooltipText(),"ShowHyperlink"==P.interaction.onHover&&(s=''+s+""),o.setAttribute("_text1",""),o.setAttribute("_text2",""),s&&(o.removeAttribute("notShowTooltip"),o.setAttribute("_text1",s),o.setAttribute("isCustomTooltip","true"),y.removeStandartTooltip(o)),"Chart"!=P.interaction.ident||(n=y.frame.contentWindow.document)&&(o.getAttribute("_color")&&(null!=(r=o.style.fill)&&0<=r.toLowerCase().indexOf("rgb")&&(3<=(s=r.replace("rgb(","").replace(")","").split(",")).length&&(r=w.FullColorHex(parseInt(s[0]),parseInt(s[1]),parseInt(s[2])))),r&&o.setAttribute("_color",r)),n._stiTooltip||w.CreateCustomTooltip(n),w.AddCustomTooltip(o,n,!0))),o.onclick=function(){if(P.interaction&&"OpenHyperlink"==P.interaction.onClick&&P.interaction.hyperlink&&!y.isDrillSelectionActivated)"_self"==w.options.appearance.openLinksWindow?window.location.href=this.getHyperlinkText():w.openNewWindow(this.getHyperlinkText(),w.options.appearance.openLinksWindow);else if(P.interaction&&"ShowDashboard"==P.interaction.onClick&&P.interaction.drillDownPageKey&&!y.isDrillSelectionActivated){var t=("StiRegionMapElement"==D.type?this.getAttribute("elementident"):this.getAttribute("elementargument"))||"",e={drillDownPageKey:P.interaction.drillDownPageKey,value:t="sti_IsNullValue"==t?null:t,parameters:[]},i=P.interaction.drillDownParameters;if(i)for(var o=0;o'+e+""),t.setAttribute("_text1",e),document._stiTooltip||s.CreateCustomTooltip(document,s.controls.mainPanel),s.AddCustomTooltip(t,document)),"OpenHyperlink"==a.onClick&&a.hyperlink?(t.style.cursor="pointer",t.onclick=function(){"_self"==s.options.appearance.openLinksWindow?window.location.href=a.hyperlink:s.openNewWindow(a.hyperlink,s.options.appearance.openLinksWindow)}):"ShowDashboard"==a.onClick&&a.drillDownPageKey&&(t.style.cursor="pointer",t.onclick=function(){document._stiTooltip&&(document._stiTooltip.cx=-.2);var t={drillDownPageKey:a.drillDownPageKey,value:"",parameters:[]},e=a.drillDownParameters;if(e){var i={};"StiTextElement"==n.type&&null!=r.plainText&&(i.value=r.plainText);for(var o=0;o/g,"");var e=["8","10","12","14","18","24","36"],i='style="font-size:',o='size="';while(0<=t.indexOf("size=")){var s=t.indexOf("size=");t=t.replace(o,i),s+=i.length;var n=t.substring(0,s),r=t.substring(s),s=r.substring(0,r.indexOf('"')),r=r.substring(r.indexOf('"'));t=parseInt(s)<=7&&0t.screenX&&(e*=-1);var e=Math.max(0,Math.min(i,e+P.hScrollOffset));P.cellHScroll.style.transform="translateX("+e+"px)",P.cellsDiv.scrollLeft=e*P.hOffset,P.hScrollOffset=e},this.cellsVScrollDiv.onmousedown=function(t){var e=(P.height-P.headerHeight)/P.vOffset,i=P.height-P.headerHeight-e;P.cellVScroll.getBoundingClientRect().y>t.screenY&&(e*=-1);var e=Math.max(0,Math.min(i,e+P.vScrollOffset));P.cellVScroll.style.transform="translateY("+e+"px)",P.cellsDiv.scrollTop=e*P.vOffset,P.vScrollOffset=e};for(var p=[],l=0;lP.cornerTable.rows[u].cells.length&&P.cornerTable.addCellInRow(u);for(var f=[],h=0;h=P.cellsDiv.scrollLeft&&!u.cell.opened&&(s=Math.min(s,m),m=u.cell.pcolumn||(u.cell.totalCellGuid?this.cellGuid[u.cell.totalCellGuid]:u.cell).column,e.push(m),i[m]=u),c++}}}P.headerRowsY=0;var f=0,g=0;while(fP.dataCols[P.dataCols.length-1]||P.dataCols[0]>e[e.length-1]||o[0]>P.dataRows[P.dataRows.length-1]||P.dataRows[0]>o[o.length-1]||t)for(var y in P.table.tbody.innerHTML="",o){var T=o[y],C,w;for(w in(C=document.createElement("tr")).className="stiJsViewerClearAllStyles",P.table.tbody.appendChild(C),e){var D=e[w];P.td2(P.data.cells[D][T],-1,-1,P.table)}}else if(o[0]o[o.length-1])P.table.tbody.removeChild(P.table.tbody.lastChild),y--}else if(o[o.length-1]>P.dataRows[P.dataRows.length-1]||o[0]>P.dataRows[0]){var y=0,C,w;while(P.dataRows[y]P.dataRows[P.dataRows.length-1])y--;y++;while(ye[e.length-1]){for(var l=0;lP.dataCols[P.dataCols.length-1]||e[0]>P.dataCols[0]){var w=0;while(P.dataCols[w]P.dataCols[P.dataCols.length-1])w--;w++;while(w=P.data.headerHeight&&t.column>=P.data.headerWidth&&"td"==r&&(l.onmousedown=function(t){P.selectCell(this.cell)}),l},P.td3=function(s,t,e,i){var o=t.addCellInRow(t.tr.length-1),n,r;for(n in s.style)o.style[n]=s.style[n];for(r in o.className=i+" pivotCell"+P.guid+s.s,o.style.padding="3px",o.innerHTML=s.text,o.colSpan=s.colSpan,o.rowSpan=s.rowSpan,e)"Right"==e[r]&&s.column==P.data.cells.length-1||(o.style["border"+e[r]]="1px solid "+P.settings.lineColor);return 0Stimulsoft.tsfb(this,void 0,void 0,function*(){let e=new XmlTextWriter(Encoding.UTF8),i=new StiSvgData;i.x=this.getSvgImageValue(a,"x"),i.y=this.getSvgImageValue(a,"y"),i.width=this.getSvgImageValue(a,"width"),i.height=this.getSvgImageValue(a,"height"),i.component=r.as(StiComponent);var o={ref:0},t,s,n,n,s;if(h&&(i.x=h.x,i.y=h.y,i.width=h.width,i.height=h.height),r.is(IStiProgressElement)){let t=Stimulsoft.Report.Dashboards.StiDashboardHelperCreator.createProgressVisualSvgHelper();null!=t&&(yield t.writeProgress(e,i,c,o))}else if(r.is(IStiIndicatorElement)){let t=Stimulsoft.Report.Dashboards.StiDashboardHelperCreator.createIndicatorVisualSvgHelper();null!=t&&(yield t.writeIndicator(e,i,c,o))}else if(r.is(IStiCardsElement)){let t=Stimulsoft.Report.Dashboards.StiDashboardHelperCreator.createCardsVisualSvgHelper();null!=t&&(yield t.writeCards(e,i,c,o))}else if(r.is(IStiGaugeElement)){let t=Stimulsoft.Report.Dashboards.StiDashboardHelperCreator.createGaugeVisualSvgHelper();null!=t&&(yield t.writeGauge(e,i,l,c,o))}e.flush(),c&&c.ref?(t=e.textWriter.getStringBuilder().toString(),p.callTry(`