/*
* TelerikReporting v17.2.23.1114 (http://www.telerik.com/products/reporting.aspx)
* Copyright 2023 Progress Software EAD. All rights reserved.
*
* Telerik Reporting commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/reporting.aspx
* If you do not own a commercial license, this file shall be governed by the trial license terms.
*/
!function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=884)}([function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get Parameters(){return"Parameters"}static get ReportParameters(){return"ReportParameters"}static get DataSources(){return"DataSources"}static get DataSourceName(){return"DataSourceName"}static get StyleSheet(){return"StyleSheet"}static get ExternalStyleSheets(){return"ExternalStyleSheets"}static get CrossSectionItems(){return"CrossSectionItems"}static get Items(){return"Items"}static get Item(){return"Item"}static get Type(){return"Type"}static get NetType(){return"NetType"}static get Name(){return"Name"}static get DisplayName(){return"DisplayName"}static get Value(){return"Value"}static get Format(){return"Format"}static get Groups(){return"Groups"}static get GroupHeader(){return"GroupHeader"}static get GroupFooter(){return"GroupFooter"}static get Expression(){return"Expression"}static get RowGroups(){return"RowGroups"}static get ColumnGroups(){return"ColumnGroups"}static get ChildGroups(){return"ChildGroups"}static get Groupings(){return"Groupings"}static get Sortings(){return"Sortings"}static get Filters(){return"Filters"}static get Corner(){return"Corner"}static get Body(){return"Body"}static get Cells(){return"Cells"}static get Rows(){return"Rows"}static get Columns(){return"Columns"}static get Width(){return"Width"}static get Height(){return"Height"}static get Visible(){return"Visible"}static get ReportItem(){return"ReportItem"}static get Parent(){return"Parent"}static get Style(){return"Style"}static get StyleName(){return"StyleName"}static get Left(){return"Left"}static get Top(){return"Top"}static get Right(){return"Right"}static get Bottom(){return"Bottom"}static get Justify(){return"Justify"}static get Center(){return"Center"}static get Middle(){return"Middle"}static get Alignment(){return"Alignment"}static get FontStyle(){return"FontStyle"}static get Size(){return"Size"}static get Sizing(){return"Sizing"}static get ImageAlignment(){return"ImageAlignment"}static get Padding(){return"Padding"}static get Culture(){return"Culture"}static get UnitOfMeasure(){return"UnitOfMeasure"}static get Position(){return"Position"}static get UseParentValue(){return"UseParentValue"}static get ReportProperty(){return"ReportProperty"}static get Default(){return"Default"}static get DefaultValue(){return"DefaultValue"}static get NotifyParentProperty(){return"NotifyParentProperty"}static get Background(){return"Background"}static get BackgroundColor(){return"BackgroundColor"}static get BeginColor(){return"BeginColor"}static get EndColor(){return"EndColor"}static get BackgroundImage(){return"BackgroundImage"}static get Border(){return"Border"}static get BorderStyle(){return"BorderStyle"}static get BorderWidth(){return"BorderWidth"}static get BorderColor(){return"BorderColor"}static get FontCollection(){return"FontCollection"}static get Font(){return"Font"}static get Italic(){return"Italic"}static get Bold(){return"Bold"}static get Underline(){return"Underline"}static get Strikeout(){return"Strikeout"}static get TextAlign(){return"TextAlign"}static get TextIndent(){return"TextIndent"}static get TextWrap(){return"TextWrap"}static get VerticalAlign(){return"VerticalAlign"}static get Color(){return"Color"}static get Line(){return"Line"}static get LineStyle(){return"LineStyle"}static get LineWidth(){return"LineWidth"}static get LineColor(){return"LineColor"}static get RowIndex(){return"RowIndex"}static get ColumnIndex(){return"ColumnIndex"}static get RowSpan(){return"RowSpan"}static get ColumnSpan(){return"ColumnSpan"}static get Image(){return"Image"}static get ImageData(){return"ImageData"}static get MimeType(){return"MimeType"}static get Repeat(){return"Repeat"}static get Title(){return"Title"}static get TitleStyle(){return"TitleStyle"}static get Levels(){return"Levels"}static get Direction(){return"Direction"}static get Operator(){return"Operator"}static get LeaderSymbol(){return"LeaderSymbol"}static get Selectors(){return"Selectors"}static get PropertyName(){return"PropertyName"}static get PropertyValue(){return"PropertyValue"}static get Path(){return"Path"}static get Properties(){return"Properties"}static get Bindings(){return"Bindings"}static get TypeSelector(){return"TypeSelector"}static get PageSettings(){return"PageSettings"}static get ColumnCount(){return"ColumnCount"}static get ColumnSpacing(){return"ColumnSpacing"}static get Landscape(){return"Landscape"}static get PaperSize(){return"PaperSize"}static get PaperKind(){return"PaperKind"}static get Margins(){return"Margins"}static get Location(){return"Location"}static get Docking(){return"Docking"}static get Anchoring(){return"Anchoring"}static get FieldSeparators(){return"FieldSeparators"}static get RecordSeparators(){return"RecordSeparators"}static get EscapeFormat(){return"EscapeFormat"}static get Quote(){return"Quote"}static get CommentToken(){return"CommentToken"}static get DecimalSeparator(){return"DecimalSeparator"}static get ThousandSeparator(){return"ThousandSeparator"}static get DateTimeFormat(){return"DateTimeFormat"}static get HasHeaders(){return"HasHeaders"}static get ConsecutiveFieldSeparatorsAsOne(){return"ConsecutiveFieldSeparatorsAsOne"}static get ConsecutiveRecordSeparatorsAsOne(){return"ConsecutiveRecordSeparatorsAsOne"}static get Username(){return"Username"}static get Password(){return"Password"}static get LoginUrl(){return"LoginUrl"}static get LogoutUrl(){return"LogoutUrl"}static get LoginMethod(){return"LoginMethod"}static get LogoutMethod(){return"LogoutMethod"}static get TokenPath(){return"TokenPath"}static get ResponseFormat(){return"ResponseFormat"}static get Source(){return"Source"}static get DataSelector(){return"DataSelector"}static get ConditionalFormatting(){return"ConditionalFormatting"}static get StopIfTrue(){return"StopIfTrue"}static get Embedded(){return"Embedded"}static get ImageSource(){return"ImageSource"}static get CategoryGroups(){return"CategoryGroups"}static get SeriesGroups(){return"SeriesGroups"}static get DataSourceParameters(){return"Parameters"}static get CalculatedFields(){return"CalculatedFields"}static get Kind(){return"Kind"}static get Titles(){return"Titles"}static get ReportSource(){return"ReportSource"}static get Legends(){return"Legends"}static get TileProvider(){return"TileProvider"}static get UrlSubdomains(){return"UrlSubdomains"}static get Watermarks(){return"Watermarks"}static get CoordinateSystems(){return"CoordinateSystems"}static get Axes(){return"Axes"}static get XAxis(){return"XAxis"}static get YAxis(){return"YAxis"}static get RadialAxis(){return"RadialAxis"}static get AngularAxis(){return"AngularAxis"}static get ProviderName(){return"ProviderName"}static get ConnectionString(){return"ConnectionString"}static get SelectCommand(){return"SelectCommand"}static get CommandType(){return"CommandType"}static get SelectCommandType(){return"SelectCommandType"}static get CommandTimeout(){return"CommandTimeOut"}static get DbType(){return"DbType"}static get Description(){return"Description"}static get IsExpandable(){return"IsExpandable"}static get DataType(){return"DataType"}static get DataModel(){return"DataModel"}static get Measures(){return"Measures"}static get Series(){return"Series"}static get SeriesGroup(){return"SeriesGroup"}static get CategoryGroup(){return"CategoryGroup"}static get CoordinateSystem(){return"CoordinateSystem"}static get GeoLocationGroups(){return"GeoLocationGroups"}static get ShapeMapGroups(){return"ShapeMapGroups"}static get DataSource(){return"DataSource"}static get DataSourceReference(){return"DataSourceReference"}static get DataMember(){return"DataMember"}static get DataObject(){return"DataObject"}static get SchemaKey(){return"$schema"}static get GlobalName(){return"GlobalName"}static get StyleSheets(){return"StyleSheets"}static get ServiceUrl(){return"ServiceUrl"}static get ParameterValues(){return"ParameterValues"}static get AuthParameterValues(){return"AuthParameterValues"}static get AvailableValues(){return"AvailableValues"}static get CrossAxisPositions(){return"CrossAxisPositions"}static get Scale(){return"Scale"}static get LabelFormat(){return"LabelFormat"}static get ValueMember(){return"ValueMember"}static get InstanceTypes(){return"InstanceTypes"}static get DataPointConditionalFormatting(){return"DataPointConditionalFormatting"}static get DataPointLabelConditionalFormatting(){return"DataPointLabelConditionalFormatting"}static get DataPointLabelConnectorConditionalFormatting(){return"DataPointLabelConnectorConditionalFormatting"}static get ColumnMapSeriesClassName(){return"ColumnMapSeries"}static get PieMapSeriesClassName(){return"PieMapSeries"}static get Action(){return"Action"}static get ToggleVisibilityAction(){return"ToggleVisibilityAction"}static get NavigateToBookmarkAction(){return"NavigateToBookmarkAction"}static get NavigateToUrlAction(){return"NavigateToUrlAction"}static get NavigateToReportAction(){return"NavigateToReportAction"}static get CustomAction(){return"CustomAction"}static get SortingAction(){return"SortingAction"}static get Targets(){return"Targets"}static get ItemName(){return"ItemName"}static get DataPointLabel(){return"DataPointLabel"}static get DataPointLabelStyle(){return"DataPointLabelStyle"}static get DataPointStyle(){return"DataPointStyle"}static get DataPointLabelConnectorStyle(){return"DataPointLabelConnectorStyle"}static get DataPointLabelAlignment(){return"DataPointLabelAlignment"}static get DataPointLabelOffset(){return"DataPointLabelOffset"}static get LegendItem(){return"LegendItem"}static get ToolTip(){return"ToolTip"}static get X(){return"X"}static get Y(){return"Y"}static get ArrangeMode(){return"ArrangeMode"}static get Text(){return"Text"}static get DataEncoding(){return"DataEncoding"}static get Method(){return"Method"}static get Authentication(){return"Authentication"}static get BeginSectionName(){return"BeginSectionName"}static get EndSectionName(){return"EndSectionName"}static get BeginSection(){return"BeginSection"}static get EndSection(){return"EndSection"}static get RuntimeSettings(){return"RuntimeSettings"}static get ReportSources(){return"ReportSources"}static get TocReportSource(){return"TocReportSource"}static get Uri(){return"Uri"}static get Xml(){return"Xml"}static get Ranges(){return"Ranges"}static get Needle(){return"Needle"}static get Indicator(){return"Indicator"}static get Ticks(){return"Ticks"}static get Labels(){return"Labels"}static get Scales(){return"Scales"}static get Start(){return"Start"}static get End(){return"End"}static get SegmentCount(){return"SegmentCount"}static get Thickness(){return"Thickness"}static get Orientation(){return"Orientation"}static get LastVisibleIndex(){return"LastVisibleIndex"}static get Encoder(){return"Encoder"}static get ValueFromBillData(){return"ValueFromBillData"}static comparePropertyNames(e,t){return e.trim().toLowerCase()===t.trim().toLowerCase()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(236);class n extends i.a{}n.Color="Color",n.DateTime="DateTime",n.DateTimeKind="DateTimeKind",n.DayOfWeek="DayOfWeek",n.Decimal="Decimal",n.DescendantSelector="DescendantSelector",n.Bitmap="Bitmap",n.Boolean="Boolean",n.ByteArray="Byte[]",n.Double="Double",n.Enum="Enum",n.Float="Float",n.Icon="Icon",n.Image="Image",n.Int32="Int32",n.Int64="Int64",n.Integer="Integer",n.Single="Single",n.String="String",n.ItemCollection="ItemCollection",n.Metafile="Metafile",n.Object="Object",n.TimeSpan="TimeSpan",n.Uri="Uri",n.Byte="Byte",n.SByte="SByte",n.SqlByte="SqlByte",n.Int16="Int16",n.UInt16="UInt16",n.SqlInt16="SqlInt16",n.UInt32="UInt32",n.SqlInt32="SqlInt32",n.UInt64="UInt64",n.SqlInt64="SqlInt64",n.SqlSingle="SqlSingle",n.SqlDouble="SqlDouble",n.SqlDecimal="SqlDecimal",n.SqlMoney="SqlMoney",n.SqlBoolean="SqlBoolean",n.SqlDateTime="SqlDateTime",n.SqlChars="SqlChars",n.SqlString="SqlString",n.SqlBinary="SqlBinary",n.Address="Address",n.AttributeSelector="AttributeSelector",n.CellCollection="CellCollection",n.Char="Char",n.Choropleth="Choropleth",n.Column="Column",n.Creditor="Creditor",n.CrossAxisPosition="CrossAxisPosition",n.CrosstabWizard="CrosstabWizard",n.CubeDataSource="CubeDataSource",n.CustomNullableObject="CustomNullableObject",n.DataItem="DataItem",n.DataSourceCollection="DataSourceCollection",n.Debtor="Debtor",n.EntityDataSource="EntityDataSource",n.GroupSection="GroupSection",n.Gauge="Gauge",n.PageSection="PageSection",n.Payment="Payment",n.RenderingSettings="RenderingSettings",n.TextItemBase="TextItemBase",n.ReportItem="ReportItem",n.ReportSection="ReportSection",n.ReportSectionBase="ReportSectionBase",n.ReportParametersCollection="ReportParametersCollection",n.LocationMapSeries="LocationMapSeries",n.ObjectDataSource="ObjectDataSource",n.ObjectDataSourceParameter="ObjectDataSourceParameter",n.OpenAccessDataSource="OpenAccessDataSource",n.OpenClientDataSource="OpenClientDataSource",n.Measure="Measure",n.Row="Row",n.SharedDataSource="SharedDataSource",n.StyleSelector="StyleSelector",n.TableCell="TableCell",n.TableWizard="TableWizard",n.Target="Target",n.TypeSelector="TypeSelector",n.WebServiceBasicAuthentication="WebServiceBasicAuthentication",n.WebServiceParameter="WebServiceParameter",n.WebServiceParameterType="WebServiceParameterType",n.WebServiceRequestMethod="WebServiceRequestMethod",n.WebServiceResponseFormat="WebServiceResponseFormat",n.WebServiceTwoStepAuthentication="WebServiceTwoStepAuthentication",n.UnsupportedDataSource="UnsupportedDataSource",n.UnparentableNetTypes=[n.CubeDataSource,n.EntityDataSource,n.ObjectDataSource,n.OpenAccessDataSource,n.OpenClientDataSource,n.CsvDataSource,n.JsonDataSource,n.SqlDataSource,n.WebServiceDataSource]},function(e,t,r){"use strict";r.d(t,"c",(function(){return s})),r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return o})),r.d(t,"d",(function(){return l})),r.d(t,"e",(function(){return c}));var i=r(10);class n{constructor(e){this.ctor=e,this.inputProperties=[],this.outputPropertyNames=[],this.viewedByParents=[]}build(e,t,r){const i=new this.ctor(e,t);return r&&(this.configureInputProperties(r,e,i),this.configureOutputProperties(r,e,i),this.configureViewedChild(r,i)),i}addInputProperty(e,t){if(this.inputProperties.find(t=>t.name===e))throw new Error(`Property ${e} already registered as input for ${this.ctor.name}`);this.inputProperties.push({name:e,updateOnChange:t})}addOutputProperty(e){if(this.outputPropertyNames.find(t=>t===e))throw new Error(`Property ${e} already registered as output for ${this.ctor.name}`);this.outputPropertyNames.push(e)}addViewedByParent(e,t){if(this.viewedByParents.find(r=>r.parent===t&&r.propertyName===e))throw new Error(`Property ${e} already registered as viewChild for ${this.ctor.name}`);this.viewedByParents.push({propertyName:e,parent:t})}configureInputProperties(e,t,r){const i=[];for(const n of this.inputProperties)this.configureInputProperty(t,n,r,e,i);e.bind("change",t=>this.updateInputPropertyIfMatching(i,t,r,e))}configureInputProperty(e,t,r,i,n){const s=e.attr(t.name);s?this.configureParentInputBinding(t,r,i,s,n):this.tryEvalInputPropertyContent(e,t,r)}tryEvalInputPropertyContent(e,t,r){const i=e.attr(`[${t.name}]`);i&&(r[t.name]=new Function("return ("+i+")")())}configureParentInputBinding(e,t,r,i,n){e.updateOnChange?t.set(e.name,r.get(i)):t[e.name]=r[i],n.push({parentComponentField:i,childComponentFieldInfo:e})}updateInputPropertyIfMatching(e,t,r,i){const n=e.find(e=>e.parentComponentField===t.field);if(n&&n.childComponentFieldInfo.updateOnChange){const e=n.childComponentFieldInfo.name,t=i.get(n.parentComponentField);r.set(e,t)}}configureOutputProperties(e,t,r){for(const i of this.outputPropertyNames)this.configureOutputProperty(r,i,t,e)}configureOutputProperty(e,t,r,n){const s=e.get(t);if(!(s instanceof i.c))throw new Error("Output property must be an event emitter");s._initialized||s._initialize(e.uid,t,r[0]);const a=r.attr(t);a&&this.tryBindToParentCallback(n,a,t,s)}tryBindToParentCallback(e,t,r,i){const n=e.get(t);if(!(n&&n instanceof Function))throw new Error(`In ${e.constructor.name} => registered subscriber ${t} for ${r} is not a function`);const s=n.bind(e);i.subscribe(s)}configureViewedChild(e,t){const r=this.viewedByParents.find(t=>t.parent===e.constructor),i=e;r&&!i[r.propertyName]&&(i[r.propertyName]=t)}}const s=new class{constructor(){this.componentCache={},this.componentBuilders=[]}getComponentBySelector(e){const t=e.toLowerCase(),r=this.componentCache[t];if(!r)throw new Error(`Component ${t} not found`);return r}getComponentByType(e){for(const[t,r]of Object.entries(this.componentCache))if(r.ctor===e)return{builder:r,selector:t};throw new Error(`Component ${e.name} not found!`)}addComponentBySelector(e,t){const r=e.toLowerCase();if(this.componentCache[r])throw new Error(`Component with tag ${r} already exists`);this.componentCache[r]=this.findOrAddBuilder(t)}addComponentInput(e,t,r){this.findOrAddBuilder(e).addInputProperty(t,r)}addComponentOutput(e,t){this.findOrAddBuilder(e).addOutputProperty(t)}addComponentViewChild(e,t,r){this.findOrAddBuilder(r).addViewedByParent(t,e)}findOrAddBuilder(e){let t=this.findComponentBuilder(e);return t||(t=this.addBuilder(e)),t}addBuilder(e){const t=new n(e);return this.componentBuilders.push(t),t}findComponentBuilder(e){return this.componentBuilders.find(t=>t.ctor===e)}};function a(e){return t=>s.addComponentBySelector(e,t)}function o(e){return(t,r)=>s.addComponentInput(t.constructor,r,null==e?void 0:e.updateOnChange)}function l(e,t){s.addComponentOutput(e.constructor,t)}function c(e){return(t,r)=>{s.addComponentViewChild(t.constructor,r,e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get DesignSurfaceEventsElement(){return"DesignSurfaceEventsElement"}static get WebDesignerEventsElement(){return"WebDesignerEventsElement"}static get KeyCommandMapperProvider(){return"KeyCommandMapperProvider"}static get IComponentChangeService(){return"IComponentChangeService"}static get IDesignerHost(){return"IDesignerHost"}static get IDesignSurfaceManager(){return"IDesignSurfaceManager"}static get IInstanceFactoryService(){return"IInstanceFactoryService"}static get IPropertyDescriptorWrapperFactory(){return"IPropertyDescriptorWrapperFactory"}static get IRenderService(){return"IRenderService"}static get ISchemaService(){return"ISchemaService"}static get ISqlDataConnectionService(){return"ISqlDataConnectionService"}static get ITypeDescriptorRepository(){return"ITypeDescriptorRepository"}static get IEditorNameResolverService(){return"IEditorNameResolverService"}static get IChildEditorResolverMapService(){return"IChildEditorResolverMapService"}static get ResourceStorageService(){return"ResourceStorageService"}static get ReportStorageService(){return"ReportStorageService"}static get SharedDataSourceStorageService(){return"SharedDataSourceStorageService"}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return l})),r.d(t,"c",(function(){return c})),r.d(t,"e",(function(){return d})),r.d(t,"a",(function(){return u})),r.d(t,"d",(function(){return h}));var i=r(476),n=r(1),s=r(89),a=r(144),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l{static getPropertyName(e){return/\.([^\.;]+);?\s*\}$/.exec(e.toString())[1]}static loadScript(e,t){const r=document.createElement("script");r.src=e,r.onload=()=>{t()},r.onerror=()=>{l.logWarning(`Failed to load script ${e}. The functionality depending on this script will be disabled.`),t()},document.head.appendChild(r)}static resolveResponseContents(e){return o(this,void 0,void 0,(function*(){const t=e.headers.get("content-type");return(null==t?void 0:t.includes("application/json"))?yield e.json():yield e.text()}))}static getErrorMessage(e,t=!1){var r,i,n=null!==(r=e.message?e.message:e.Message)&&void 0!==r?r:"",s=null!==(i=e.exceptionMessage?e.exceptionMessage:e.ExceptionMessage)&&void 0!==i?i:"";return n||s?n==s?e:t?s:(n+" "+s).trim():e}static logError(e,t=null){const r=t?`${e} ${(null==t?void 0:t.stack)||(null==t?void 0:t.toString())}`:e;l.log("error",r)}static logWarning(e){l.log("warn",e)}static logInfo(e){l.log("log",e)}static logDebug(e,...t){window.TelerikWebReportDesignerDebugMode&&(l.logWarning(e),t&&t.length&&t.forEach(console.log))}static log(e,t){const r=window.console;if(r){const i=r[e];i&&i(t)}}static isIterable(e){return!(!e||null===e)&&"function"==typeof e[Symbol.iterator]}static isString(e){return"string"==typeof e||e instanceof String}static resolvePropertyStore(e,t,r){let i=e[t];return i||(i=r(),e[t]=i),i}static rTrim(e,t){return void 0===t&&(t="s"),e.replace(new RegExp("["+t+"]+$"),"")}static genLTrimRegex(e){return new RegExp(`^(${e})`,"g")}static trim(e,t){let r=0,i=e.length;for(;r<i&&e[r]===t;)++r;for(;i>r&&e[i-1]===t;)--i;return r>0||i<e.length?e.substring(r,i):e}static binarySearch(e,t){let r=0,i=e.length-1;for(;r<=i;){let n=Math.floor((r+i)/2);if(t===e[n])return++n;t<e[n]?i=n-1:r=n+1}return~r}static areEqualArrays(e,t){return e.length===t.length&&e.every((e,r)=>e===t[r])}static parseDocumentId(e){const t=e.lastIndexOf(".");if(t<0)return new i.a(e,void 0);const r=e.substring(0,t),n=e.substring(t+1);return new i.a(r,n)}static isReportingType(e){return e!==n.a.Boolean&&e!==n.a.ByteArray&&e!==n.a.Char&&e!==n.a.Color&&e!==n.a.DateTime&&e!==n.a.DateTimeKind&&e!==n.a.DayOfWeek&&e!==n.a.Decimal&&e!==n.a.Double&&e!==n.a.Enum&&e!==n.a.Float&&e!==n.a.Image&&e!==n.a.Int32&&e!==n.a.Int64&&e!==n.a.Integer&&e!==n.a.ItemCollection&&e!==n.a.Object&&e!==n.a.Single&&e!==n.a.String&&e!==n.a.TimeSpan&&e!==n.a.Uri&&e!==n.a.TableWizard&&e!==n.a.CrosstabWizard&&e!==n.a.Choropleth&&e!==n.a.DataSourceCollection&&e!==n.a.ReportParametersCollection&&e!==n.a.CellCollection&&e!==n.a.CrossAxisPosition&&e!==n.a.CustomNullableObject&&e!==n.a.Measure}static convertStringsToMenuItems(e,t){const r=[];for(const i of e)r.push({Name:t,Title:i});return r}static getDecimalSeparator(){return Intl.NumberFormat().formatToParts(1.1).find(e=>"decimal"===e.type).value}static getEditorValueWithStep(e,t,r=1,i=Number.MIN_SAFE_INTEGER+r,n=Number.MAX_SAFE_INTEGER-r){let s=parseFloat(t);switch(e.keyCode||e.which){case 38:return s<n&&(s+=r),s.toString();case 40:return s>i&&(s-=r),s.toString()}return t}static escapeHtml(e){return e.replace(/[&<>"'`=\/\\]/g,(function(e){return l.htmlEscapeMap[e]}))}static unescapeHtml(e){if(!e)return"";const t=document.createElement("textarea");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue}static doubleUnescapeHtml(e){return l.unescapeHtml(l.unescapeHtml(e))}static kendoColorFromColorString(e){return e?l.kendoColorFromRgbaString(s.a.ToRgbaColor(e)):null}static kendoColorFromRgbaString(e){if(!e)return null;const t=e.split(",");return kendo.Color.fromBytes(parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10),parseFloat(t[3]))}static downloadFile(e,t){const r=window.URL.createObjectURL(e),i=l.addLink(r,t);i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(r)}static removeFileFromFileInput(e,t){const r=new DataTransfer,i=[...e.files];for(let e of i)e.name!==t.name&&r.items.add(e);e.files=r.files}static getCssSidesOfProperty(e,t){var r,i,n;const s=t.css(e).split(" ");return{top:parseInt(s[0]),bottom:parseInt(null!==(r=s[2])&&void 0!==r?r:s[0]),right:parseInt(null!==(i=s[1])&&void 0!==i?i:s[0]),left:parseInt(null!==(n=4===s.length?s[3]:s[1])&&void 0!==n?n:s[0])}}static addLink(e,t){const r=document.createElement("a");return r.style.display="none",r.href=e,r.download=t,document.body.appendChild(r),r}}function c(e,t){return e}function d(){return e=>{}}l.htmlEscapeMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;","\\":"&#92;"};class u{}function h(e,t){var r=new FileReader;r.onload=function(){t(r.result)},r.readAsDataURL(e)}window.telerik_webReportDesignerRenderTemplate=function(e,t){return kendo.template(e,{useWithBlock:!1})(null!=t?t:this).trim()},window.telerikWebReportDesigner={Events:a.a}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(30);class n{constructor(e,t=i.a.Pixel){this.Value=e,this.Type=t}static get PixelsInInch(){return 96}static get PixelsInCm(){return 37.795275591}static get PixelsInMm(){return 3.779527559}static get PixelsInPica(){return 16}static get PixelsInPoint(){return 1.333333333}static get Epsilon(){return.01*n.PixelsInMm}static get Zero(){return new n(0,i.a.Pixel)}static Max(e,t){return e.GreaterThan(t)?e:t}static Min(e,t){return e.LessThan(t)?e:t}static Parse(e){if(e){e=String(e);const t=parseFloat(e),r=e.match(/[\d.\-\+\s]*\s*(.*)/)[1].trimRight();if(r)return new n(t,r)}return n.Zero}static ParseToPixels(e){return n.Parse(e).ToPixels()}static Point(e){return new n(e,i.a.Point)}static Pixel(e){return new n(e,i.a.Pixel)}static Mm(e){return new n(e,i.a.Mm)}static FromPixels(e,t){switch(t){case i.a.Pixel:return new n(e,t);case i.a.Point:return new n(n.pxToPt(e),t);case i.a.Pica:return new n(n.pxToPica(e),t);case i.a.Inch:return new n(n.pxToIn(e),t);case i.a.Mm:return new n(n.pxToMm(e),t);case i.a.Cm:return new n(n.pxToCm(e),t);default:throw new Error(`Unknown unit type '${t}'.`)}}static pxToPt(e){return e/n.PixelsInPoint}static pxToPica(e){return e/n.PixelsInPica}static pxToIn(e){return e/n.PixelsInInch}static pxToMm(e){return e/n.PixelsInMm}static pxToCm(e){return e/n.PixelsInCm}static add(e,t,r){const i=e.Type===t.Type?t:t.ToUnit(e.Type);return new n(e.Value+i.Value*r,e.Type)}ToPixels(){switch(this.Type){case i.a.Pixel:return this.Value;case i.a.Point:return this.Value*n.PixelsInPoint;case i.a.Pica:return this.Value*n.PixelsInPica;case i.a.Inch:return this.Value*n.PixelsInInch;case i.a.Mm:return this.Value*n.PixelsInMm;case i.a.Cm:return this.Value*n.PixelsInCm;default:throw new Error(`Unknown unit type '${this.Type}'.`)}}ToUnit(e){switch(e){case i.a.Pixel:return new n(this.ToPixels());case i.a.Point:return new n(n.pxToPt(this.ToPixels()),i.a.Point);case i.a.Pica:return new n(n.pxToPica(this.ToPixels()),i.a.Pica);case i.a.Inch:return new n(n.pxToIn(this.ToPixels()),i.a.Inch);case i.a.Mm:return new n(n.pxToMm(this.ToPixels()),i.a.Mm);case i.a.Cm:return new n(n.pxToCm(this.ToPixels()),i.a.Cm);default:throw new Error(`Unknown unit type '${e}'.`)}}GetFixedValue(e=3){return this.trimNumber(this.Value.toFixed(e))}Equals(e){return this.Value===e.Value&&this.Type===e.Type}IsEqual(e){return Math.abs(this.ToPixels()-e.ToPixels())<n.Epsilon}GreaterThan(e){return this.ToPixels()-e.ToPixels()>n.Epsilon}LessThan(e){return e.ToPixels()-this.ToPixels()>n.Epsilon}GreaterOrEqual(e){return!this.LessThan(e)}LessOrEqual(e){return!this.GreaterThan(e)}ToString(e=3){return`${this.GetFixedValue(e)}${this.Type}`}toString(){return this.ToString()}trimNumber(e){let t=this.trimEnd(e,"0");return t=this.trimEnd(t,"."),t}trimEnd(e,t){const r=[...Array.from(e)].reverse().findIndex(e=>e!==t);return e.substring(0,e.length-r)}Add(e){return n.add(this,e,1)}Subtract(e){return n.add(this,e,-1)}Multiply(e){return new n(this.Value*e,this.Type)}Divide(e){return new n(this.Value/e,this.Type)}Ratio(e){return this.ToPixels()/e.ToPixels()}}},function(e,t,r){"use strict";var i;r.d(t,"a",(function(){return i})),function(e){e[e.NewItem=0]="NewItem",e[e.NewTableWizard=1]="NewTableWizard",e[e.NewGraphWizard=2]="NewGraphWizard",e[e.NewSqlDataSourceWizard=3]="NewSqlDataSourceWizard",e[e.NewJsonDataSourceWizard=4]="NewJsonDataSourceWizard",e[e.NewCsvDataSourceWizard=5]="NewCsvDataSourceWizard",e[e.NewWebServiceDataSourceWizard=6]="NewWebServiceDataSourceWizard",e[e.NewObjectDataSourceWizard=7]="NewObjectDataSourceWizard",e[e.NewGaugeWizard=8]="NewGaugeWizard",e[e.ReportCreate=9]="ReportCreate",e[e.DocumentOpen=10]="DocumentOpen",e[e.DocumentOpenUnloaded=11]="DocumentOpenUnloaded",e[e.DocumentClose=12]="DocumentClose",e[e.CloseAllDocumentsExceptCurrent=13]="CloseAllDocumentsExceptCurrent",e[e.CloseAllDocuments=14]="CloseAllDocuments",e[e.DocumentSave=15]="DocumentSave",e[e.DocumentSaveAs=16]="DocumentSaveAs",e[e.DocumentPublish=17]="DocumentPublish",e[e.DocumentRevert=18]="DocumentRevert",e[e.DocumentPreview=19]="DocumentPreview",e[e.DocumentDesign=20]="DocumentDesign",e[e.DocumentZoom=21]="DocumentZoom",e[e.CopyStyle=22]="CopyStyle",e[e.PasteStyle=23]="PasteStyle",e[e.ResetStyle=24]="ResetStyle",e[e.Cut=25]="Cut",e[e.Copy=26]="Copy",e[e.Paste=27]="Paste",e[e.Delete=28]="Delete",e[e.Undo=29]="Undo",e[e.Redo=30]="Redo",e[e.SelectNext=31]="SelectNext",e[e.SelectPrevious=32]="SelectPrevious",e[e.SelectParent=33]="SelectParent",e[e.MoveSelectionUpSmallStep=34]="MoveSelectionUpSmallStep",e[e.MoveSelectionRightSmallStep=35]="MoveSelectionRightSmallStep",e[e.MoveSelectionDownSmallStep=36]="MoveSelectionDownSmallStep",e[e.MoveSelectionLeftSmallStep=37]="MoveSelectionLeftSmallStep",e[e.ShrinkSelectionHorizontally=38]="ShrinkSelectionHorizontally",e[e.ShrinkSelectionVertically=39]="ShrinkSelectionVertically",e[e.GrowSelectionHorizontally=40]="GrowSelectionHorizontally",e[e.GrowSelectionVertically=41]="GrowSelectionVertically",e[e.BringToFront=42]="BringToFront",e[e.SendToBack=43]="SendToBack",e[e.MergeCells=44]="MergeCells",e[e.OpenCreateNewReportWindow=45]="OpenCreateNewReportWindow",e[e.OpenCreateNewCombinedReportWindow=46]="OpenCreateNewCombinedReportWindow",e[e.OpenCreateNewSharedDataSourceWindow=47]="OpenCreateNewSharedDataSourceWindow",e[e.OpenSaveAsWindow=48]="OpenSaveAsWindow",e[e.OpenReportFileBrowserWindow=49]="OpenReportFileBrowserWindow",e[e.OpenAssetManager=50]="OpenAssetManager",e[e.FocusGlobalSearch=51]="FocusGlobalSearch",e[e.TriggerOnboardingExperience=52]="TriggerOnboardingExperience",e[e.SharedDataSourceCreate=53]="SharedDataSourceCreate",e[e.AddExistingSharedDataSource=54]="AddExistingSharedDataSource",e[e.ConvertIdsToSds=55]="ConvertIdsToSds"}(i||(i={}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return s}));var i=r(38);function n(){return e=>{i.a.addEditor(e)}}function s(...e){return t=>{for(let r=0;r<(null==e?void 0:e.length);r++)i.a.addTypeManagedByEditor(t,e[r])}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(542),n=r(4),s=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let a=class extends i.a{constructor(){super(),$.each(window.telerikWebDesignerResources,(e,t)=>{this[e]&&(this[e]=t)})}getString(e){return this[e]}};a.getServiceName=()=>"WebReportDesignerStrings",a=s([Object(n.e)()],a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get WebDesignerClassPrefix(){return"twd"}static get Designer(){return"designer__content"}static get ReportExplorer(){return"-explorer"}static get Toolbox(){return"toolbox__content"}static get ComponentsClassName(){return"twd-components"}static get WebDesignerClassName(){return"twd-designer"}static get WebDesignerOverlayClassName(){return"twd-overlay"}static get WebDesignerPartsClassName(){return"twd-designer-parts"}static get WebDesignerToolboxClassName(){return"twd-toolbox"}static get WebDesignerToolboxTabsClassName(){return"twd-tabs"}static get WebDesignerToolboxTabClassName(){return"twd-tab"}static get WebDesignerCanvasClassName(){return"twd-canvas"}static get WebDesignerCanvasContentClassName(){return"designer__canvas"}static get WebDesignerPropertiesClassName(){return"twd-properties"}static get WebDesignerPreviewClassName(){return"twd-preview"}static get WebDesignerToolClassName(){return"twd-tooltip"}static get WebDesignerNotifications(){return"twd-notifications"}static get WebDesignerTopMenuAreaClassNames(){return"twd-top-menu-area"}static get WebDesignerMainMenuArea(){return"twd-main-menu"}static get WebDesignerOnboardingExperienceClassName(){return"twd-onboarding-experience"}static get TableGlyphs(){return"twd-table-glyphs"}static get TableHeaderHandleGlyph(){return"twd-table-header-handle-glyphs"}static get TableContextMenuGlyph(){return"twd-table-context-menu-glyphs"}static get TableResizeGlyph(){return"twd-table-resize-glyphs"}static get TableCellResizableContainer(){return"twd-table-cell-resizable-container"}static get OverlayNoBorders(){return"-no-borders"}static get OverlayNoBorderTop(){return"-no-border-top"}static get OverlayNoBorderLeft(){return"-no-border-left"}static get OverlayNoBorderRight(){return"-no-border-right"}static get OverlayNoBorderBottom(){return"-no-border-bottom"}static get ModalWindowHeaderClass(){return"k-dialog-titlebar"}static get ModalWindowClasses(){return"twd-editor -pop-up"}static get ConfirmWindowClasses(){return"twd-editor -pop-up -confirm"}static get WizardWindowClasses(){return"-wizard"}static get KendoModalWindowClasses(){return"k-window"}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"c",(function(){return o})),r.d(t,"b",(function(){return l}));var i=r(54),n=r(2),s=r(114);class a extends s.a{constructor(e,t){super(),this.viewParentElement=e,this.provider=t,this.childViews=[],this.childComponents=[],this.templates=i.a,this.onRendered=new l}get ChildComponents(){return this.childComponents}get IsRendering(){return this.isRendering}partialView(e){return kendo.template(e,{useWithBlock:!1})(this)}boundPartialView(e){const t=new kendo.View(e.template,{model:this,evalTemplate:!0,wrap:!0});(null==e?void 0:e.childViews)?e.childViews.push(t):this.childViews.push(t);return t.render().children()}show(){this.view.element.show()}hide(){this.view.element.hide()}beforeInit(){}init(e,t){this.trySetAdditionalFields(t),this.beforeInit(),this.wrapObservables(),this.view=new kendo.View(this.getTemplate(),{model:this,evalTemplate:!0,wrap:!!e,tagName:e}),this.render(),this.afterInit()}render(){const e=$("<span></span>");e.hide(),this.viewParentElement.append(e),this.isRendering=!0,this.view.render(e),this.handleChildComponents(e,this.childComponents),this.isRendering=!1,this.onRendered.next(),this.view.element.unwrap()}trySetAdditionalFields(e){e&&Object.keys(e).forEach(t=>this[t]=e[t])}wrapObservables(){Object.keys(this).forEach(e=>{(this[e]instanceof kendo.data.ObservableObject||this[e]instanceof kendo.data.ObservableArray)&&(this[e]=this.wrap(this[e],e,()=>this))})}escapedVariable(e){return`#: ${e} #`}rawVariable(e){return`#= ${e} #`}escapedBlockExpression(e,t){return`# ${e} { #\n                    ${t}\n                # } #`}afterInit(){}beforeDispose(){}Dispose(){this.beforeDispose(),this.childComponents.forEach(e=>e.Dispose()),this.childComponents=[],this.childViews.forEach(e=>e.destroy()),this.childViews=[],this.view.destroy(),this.afterDispose()}afterDispose(){}handleChildComponents(e,t){const r=this.getChildComponentElements(e),i=[];for(const e of r)this.createChildComponent(e,i);this.initChildComponents(i),t.push(...i)}createChildComponent(e,t){const r=$(e),i=r.prop("tagName"),s=n.c.getComponentBySelector(i).build(r,this.provider,this);t.push(s),r.attr("data-wrd-component-handled","")}getChildComponentElements(e){return e.find("[data-wrd-component]").not("[data-wrd-component-handled]")}initChildComponents(e){for(const t of e)t.init()}}class o{constructor(){this.initialized=!1}_initialize(e,t,r){this.childComponentName=e,this.fieldName=t,this.eventTarget=r,this.eventName=`${this.childComponentName}${this.fieldName}`,this.initialized=!0}get _initialized(){return this.initialized}emit(e){var t;null===(t=this.eventTarget)||void 0===t||t.dispatchEvent(new CustomEvent(this.eventName,{detail:e}))}subscribe(e){var t;null===(t=this.eventTarget)||void 0===t||t.addEventListener(this.eventName,t=>e(t.detail),{capture:!1})}}class l extends kendo.Observable{next(e){this.trigger("next",e)}subscribe(e){this.bind("next",e)}subscribeOnce(e){this.one("next",e)}unsubscribe(e){this.unbind("next",e)}}},function(e,t,r){"use strict";var i;r.d(t,"a",(function(){return i})),function(e){e[e.Create_Components=0]="Create_Components",e[e.Create_Components_ReportItems=1]="Create_Components_ReportItems",e[e.Create_Components_ReportItems_TextBox=2]="Create_Components_ReportItems_TextBox",e[e.Create_Components_ReportItems_HTMLTextBox=3]="Create_Components_ReportItems_HTMLTextBox",e[e.Create_Components_ReportItems_PictureBox=4]="Create_Components_ReportItems_PictureBox",e[e.Create_Components_ReportItems_CheckBox=5]="Create_Components_ReportItems_CheckBox",e[e.Create_Components_ReportItems_Barcode=6]="Create_Components_ReportItems_Barcode",e[e.Create_Components_ReportItems_Shape=7]="Create_Components_ReportItems_Shape",e[e.Create_Components_ReportItems_Panel=8]="Create_Components_ReportItems_Panel",e[e.Create_Components_ReportItems_RadialGauge=9]="Create_Components_ReportItems_RadialGauge",e[e.Create_Components_ReportItems_LinearGauge=10]="Create_Components_ReportItems_LinearGauge",e[e.Create_Components_ReportItems_List=11]="Create_Components_ReportItems_List",e[e.Create_Components_ReportItems_Table=12]="Create_Components_ReportItems_Table",e[e.Create_Components_ReportItems_Crosstab=13]="Create_Components_ReportItems_Crosstab",e[e.Create_Components_ReportItems_SubReport=14]="Create_Components_ReportItems_SubReport",e[e.Create_Components_ReportItems_Map=15]="Create_Components_ReportItems_Map",e[e.Create_Components_ReportItems_Chart=16]="Create_Components_ReportItems_Chart",e[e.Create_Components_ReportSections=17]="Create_Components_ReportSections",e[e.Create_Components_ReportSections_PageHeader=18]="Create_Components_ReportSections_PageHeader",e[e.Create_Components_ReportSections_PageFooter=19]="Create_Components_ReportSections_PageFooter",e[e.Create_Components_ReportSections_ReportHeader=20]="Create_Components_ReportSections_ReportHeader",e[e.Create_Components_ReportSections_ReportFooter=21]="Create_Components_ReportSections_ReportFooter",e[e.Create_Components_ReportSections_TableOfContents=22]="Create_Components_ReportSections_TableOfContents",e[e.Commands=23]="Commands",e[e.Commands_Document=24]="Commands_Document",e[e.Commands_Document_New=25]="Commands_Document_New",e[e.Commands_Document_NewCombined=26]="Commands_Document_NewCombined",e[e.Commands_Document_Open=27]="Commands_Document_Open",e[e.Commands_Document_OpenRecent=28]="Commands_Document_OpenRecent",e[e.Commands_Document_Save=29]="Commands_Document_Save",e[e.Commands_Document_Overwrite=30]="Commands_Document_Overwrite",e[e.Commands_Document_Close=31]="Commands_Document_Close",e[e.Commands_Document_CloseAllButThis=32]="Commands_Document_CloseAllButThis",e[e.Commands_Document_CloseAll=33]="Commands_Document_CloseAll",e[e.Commands_AssetsManager=34]="Commands_AssetsManager",e[e.Commands_AssetsManager_Reports=35]="Commands_AssetsManager_Reports",e[e.Commands_AssetsManager_Resources=36]="Commands_AssetsManager_Resources",e[e.Commands_AssetsManager_SharedDataSources=37]="Commands_AssetsManager_SharedDataSources",e[e.Commands_WorkspacePreferences=38]="Commands_WorkspacePreferences",e[e.Commands_DataSources=39]="Commands_DataSources",e[e.Commands_DataSources_InlineDataSource_Create=40]="Commands_DataSources_InlineDataSource_Create",e[e.Commands_DataSources_InlineDataSource_Create_Sql=41]="Commands_DataSources_InlineDataSource_Create_Sql",e[e.Commands_DataSources_InlineDataSource_Create_Csv=42]="Commands_DataSources_InlineDataSource_Create_Csv",e[e.Commands_DataSources_InlineDataSource_Create_Web=43]="Commands_DataSources_InlineDataSource_Create_Web",e[e.Commands_DataSources_InlineDataSource_Create_Json=44]="Commands_DataSources_InlineDataSource_Create_Json",e[e.Commands_DataSources_InlineDataSource_Create_Object=45]="Commands_DataSources_InlineDataSource_Create_Object",e[e.Commands_DataSources_SharedDataSource=46]="Commands_DataSources_SharedDataSource",e[e.Commands_DataSources_SharedDataSource_Create=47]="Commands_DataSources_SharedDataSource_Create",e[e.Commands_DataSources_SharedDataSource_Edit=48]="Commands_DataSources_SharedDataSource_Edit",e[e.Commands_DataSources_SharedDataSource_Delete=49]="Commands_DataSources_SharedDataSource_Delete"}(i||(i={}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var i=r(9),n=r(149),s=r(19),a=r(4),o=r(199),l=r(8),c=r(144),d=r(322),u=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let h=class extends s.a{constructor(e,t){super(),this.$placeholder=e,this.provider=t,this.sr=this.provider.getService(l.a),this.eventManager=this.provider.getService(o.a),this.notificationTimeout=1e4,this.init()}get VisualElement(){return this.$visualElement}get template(){return`<div class="${i.a.WebDesignerNotifications} ${i.a.WebDesignerPartsClassName}"></div>`}notificationTemplate(e,t,r){const i=this.sr.getString(e)||"",n=`<div class="twd-notification -${e.toLowerCase()} ${r?"-auto-hide":""}">\n            <span tabindex="0" title="${this.sr.Close}" class="k-icon k-i-close notification__close-button"></span>\n            <p class="notification__title ${i.length?"":"-hide"}">${i}</p>\n            <div class="notification__content">${t}</div>\n        </div>`;return $($.parseHTML(n))}init(){this.$placeholder.append(this.template),this.$visualElement=this.$placeholder.find("."+i.a.WebDesignerNotifications),this.$visualElement.off("click").on("click",".notification__close-button",e=>{const t=$(e.target).closest(".twd-notification");this.remove(t)})}remove(e){e.remove()}hideAfter(e){setTimeout(()=>{this.remove(e)},this.notificationTimeout)}add(e,t,r){const i=this.notificationTemplate(e,t,r);this.$visualElement.append(i),r&&this.hideAfter(i)}error(e,t=null,r=!1){this.tryRaiseNotificationEvent(n.a.Error,e,t).isCanceled||this.add(n.a.Error,e,r),a.b.logError(e,t)}warning(e,t=!0){this.tryRaiseNotificationEvent(n.a.Warning,e).isCanceled||this.add(n.a.Warning,e,t),a.b.logWarning(e)}info(e,t=!0){this.tryRaiseNotificationEvent(n.a.Info,e).isCanceled||this.add(n.a.Info,e,t),a.b.logInfo(e)}success(e,t=!0){this.tryRaiseNotificationEvent(n.a.Success,e).isCanceled||this.add(n.a.Success,e,t)}tryRaiseNotificationEvent(e,t,r=null){if(!this.eventManager.hasRegisteredEventHandlers(c.a.NotificationShowing))return p.empty();let i=null==r?new d.c(e,t):new d.b(t,r);return this.eventManager.trigger(c.a.NotificationShowing,i),new p(i.cancel)}};h.getServiceName=()=>"Notifications",h=u([Object(a.e)()],h);class p{constructor(e){this.isCanceled=!1,this.isCanceled=e}static empty(){return new p(!1)}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return l})),r.d(t,"a",(function(){return c}));var i=r(4),n=r(19),s=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};class a extends n.a{constructor(e){if(super(),!e)throw"EventTarget is falsy - to use the WrdEventEmitter an eventTarget is required";this.eventTarget=e}on(e,t,r=!1,i=!1){this.addEventListener(e,t,!1,r,i)}off(e,t,r=!1){if(!e)throw"event type is falsy, please supply an event type to remove";if(!t)throw"eventListener is falsy, please supply an eventListener so that the event can be removed";this.eventTarget.removeEventListener(e.getEventName(),t,{capture:r})}once(e,t,r=!1,i=!1){this.addEventListener(e,t,!0,r,i)}emit(e){if(!e)throw"Event is falsy, please supply an event to emit";return this.eventTarget.dispatchEvent(e)}addEventListener(e,t,r,i,n){if(!e)throw"event type is falsy, please supply an event type to listen for";if(!t)throw"eventListener is falsy, please supply an eventListener";this.eventTarget.addEventListener(e.getEventName(),t,{capture:i,once:r,passive:n})}}let o=class extends a{constructor(e){super(e)}};o.getServiceName=()=>"DesignSurfaceEventEmitter",o=s([Object(i.e)()],o);let l=class extends a{constructor(e){super(e)}};l.getServiceName=()=>"WebDesignerEventEmitter",l=s([Object(i.e)()],l);class c extends a{constructor(e){super(e)}}},function(e,t,r){"use strict";var i,n;r.d(t,"c",(function(){return i})),r.d(t,"b",(function(){return n})),r.d(t,"d",(function(){return s})),r.d(t,"a",(function(){return a})),r.d(t,"e",(function(){return o})),function(e){e.ToolboxAreaLayout="ToolboxAreaLayout",e.ProperiesAreaLayout="ProperiesAreaLayout",e.ToolboxAreaState="ToolboxAreaState",e.ProperiesAreaState="ProperiesAreaState",e.SnapToSnapLines="SnapToSnapLines",e.SnapToGrid="SnapToGrid",e.AssetManagerViewDetails="AssetManagerViewDetails",e.AssetManagerPreviewFile="AssetManagerPreviewFile",e.AssetManagerLayout="AssetManagerLayout",e.PreviouslyOpenedReports="PreviouslyOpenedReports",e.LastOpenedReport="LastOpenedReport",e.RestoreReports="RestoreReports",e.RecentReports="RecentReports",e.RecentFiles="RecentFiles",e.StartedOnboardingGuides="StartedOnboardingGuides"}(i||(i={})),function(e){e.trdx="trdx",e.trdp="trdp",e.trbp="trbp",e.sdsx="sdsx"}(n||(n={}));class s{static get ToolboxAreaPaneID(){return"twd-toolbox-area"}static get ProperiesAreaPaneID(){return"twd-properties-area"}static get ToolboxAreaGridLayout(){return"grid"}static get ToolboxAreaListLayout(){return"list"}static get ProperiesAreaAlphabeticalLayout(){return"alphabetical"}static get ProperiesAreaCategorizedLayout(){return"categorized"}static get DefaultNewName(){return"Report1"}static get Extensions(){return[n.trdp,n.trdx]}}class a{static get DefaultNewName(){return"CombinedReport1"}static get Extensions(){return[n.trbp]}}class o{static get DefaultNewName(){return"SharedDataSource1"}static get Extensions(){return[n.sdsx]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var i=r(1),n=r(0),s=r(255),a=r(257),o=r(165),l=r(39),c=r(137),d=r(196),u=r(237),h=r(72),p=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class m extends l.a{constructor(e,t,r,a=null){super(e,t,r),this.parentGroup=a,this.table=t,this.RowIndex=0,this.ColumnIndex=0,this.ColumnSpan=0,this.RowSpan=0,this.reportItem=null,this.PropertyStore[n.a.NetType]||(this.PropertyStore[n.a.NetType]=i.a.TableGroup),this.PropertyStore[n.a.ChildGroups]||(this.PropertyStore[n.a.ChildGroups]=[]),this.ChildGroups=new u.a(this.PropertyStore[n.a.ChildGroups],this.Parent,this,this.Provider),this.PropertyStore[n.a.Groupings]||(this.PropertyStore[n.a.Groupings]=[]),this.Groupings=new s.a(this.PropertyStore[n.a.Groupings],this,this.Provider)}get ParentGroup(){return this.parentGroup}get Component(){return this.Parent}get ReportItem(){return this.reportItem}set ReportItem(e){this.reportItem=e,this.PropertyStore[n.a.ReportItem]=null==e?void 0:e.PropertyStore}get Depth(){let e=0,t=this;for(;t;)e++,t=t.parentGroup;return e}Initialize(){const e=Object.create(null,{Initialize:{get:()=>super.Initialize}});return p(this,void 0,void 0,(function*(){yield e.Initialize.call(this,this.Type),this.PropertyStore[n.a.ReportItem]&&!this.reportItem&&(this.reportItem=yield this.Component.createChildComponent(this.PropertyStore[n.a.ReportItem])),yield this.ChildGroups.Initialize()}))}SetParentGroup(e){this.parentGroup=e}static Visit(e,t,r){for(let i=0;i<e.Count;i++){const n=e.Get(i);if(r(n,i,t))return!0;if(m.Visit(n.ChildGroups,t+1,r))return!0}return!1}static GetLeafGroups(e){const t=[];return m.Visit(e,0,(e,r,i)=>(m.IsLeafGroup(e)&&t.push(e),!1)),t}static IsLeafGroup(e){return 0===e.ChildGroups.Count}static InitDynamicGroup(e,t,r){return p(this,void 0,void 0,(function*(){e.Name=t,e.Groupings.Clear(),e.Sortings.Clear(),e.Filters.Clear();for(let t=0;t<r.length;t++){const i=r[t];e.Groupings.Add(i),i.Parent=e,i.IsEmpty||e.Sortings.Add(new o.a({[n.a.Expression]:i.Expression,[n.a.Direction]:a.a.Asc},e,e.Provider))}if(yield e.Groupings.Initialize(),yield e.Sortings.Initialize(),yield e.Filters.Initialize(),r.length>0&&e.ReportItem instanceof c.a&&r[0].Expression){e.ReportItem.Value=h.a.ensureExpression(r[0].Expression)}}))}static FindDynamicAncestorOrSelf(e){for(;e&&!l.a.isDynamic(e);)e=e.parentGroup;return e}static GetRootGroup(e){for(;e&&null!=e.parentGroup;)e=e.parentGroup;return e}static CountDynamicDescendants(e){if(!e||0===e.Count)return 0;let t=0;for(const r of e)l.a.isDynamic(r)&&t++,t+=m.CountDynamicDescendants(r.ChildGroups);return t}static GetIndicesOfLeavesOfTableGroup(e,t,r){let i=0;for(const n of e){const e=t+i;i+=m.GetLeafCount(n);const s=t+i-1;if(n===r)return new d.a(e,s);if(!m.IsLeafGroup(n)){const t=m.GetIndicesOfLeavesOfTableGroup(n.ChildGroups,e,r);if(t)return t}}return null}static GetLeafCount(e){if(m.IsLeafGroup(e))return 1;let t=0;for(const r of e.ChildGroups)t+=m.GetLeafCount(r);return t}static SwapContent(e,t){const r=t.ReportItem;t.ReportItem=e.ReportItem,e.ReportItem=r}static GetParentCollection(e){if(null!=e.parentGroup)return e.parentGroup.ChildGroups;if(null!=e.table){if(e.table.RowGroups.IndexOf(e)>-1)return e.table.RowGroups;if(e.table.ColumnGroups.IndexOf(e)>-1)return e.table.ColumnGroups}return null}static DeleteDynamicGroup(e){e.Groupings.Clear(),e.Sortings.Clear(),e.Filters.Clear()}static IsStaticHierarchy(e){if(l.a.isDynamic(e))return!1;for(let t=e.ChildGroups.Count-1;t>=0;t--)if(!m.IsStaticHierarchy(e.ChildGroups.Get(t)))return!1;return!0}static HasDynamicAncestor(e,t){const r=m.GetLeafGroups(e)[t];return null!=m.FindDynamicAncestorOrSelf(r)}static FindFirstDynamicDescendant(e){for(let t=0;t<e.Count;t++){let r=e.Get(t);if(l.a.isDynamic(r))return r;if(r=m.FindFirstDynamicDescendant(r.ChildGroups),null!=r)return r}return null}}m.typeName=i.a.TableGroup},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i,n=r(19),s=r(53),a=r(13),o=r(4),l=r(92),c=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let d=i=class extends n.a{constructor(e){super(),this.provider=e,this.primarySelection=null,this.selection=[],this.selectionChanging=new s.b,this.selectionChanged=new s.a,this.webDesignerEventEmitter=this.provider.getService(a.c)}get PrimarySelection(){return this.primarySelection}get SelectionCount(){return this.selection.length}ComponentSelected(e){for(let t=0;t<this.selection.length;t++)if(this.selection[t]===e)return!0;return!1}GetSelectedComponents(){return this.selection}Select(e,t){const r=this.ComponentSelected(t),n=$.map(this.GetSelectedComponents(),e=>e);let s=[];if(r){s=n;const r=n.indexOf(t);s.splice(r,1),e||s.splice(0,0,t)}else e&&!i.ClientComponentWrapperInvolved(n,t)&&(s=n),s.push(t);return this.SetSelectedComponents(s),s}SelectMultiple(e,t,r=!1){const n=this.GetSelectedComponents().map(e=>e);let s=e?n:[];const a=[...s,...t].filter(e=>i.isClientComponentWrapper(e));if(a.length>0){const e=a[0];return this.SetSelectedComponents([e]),[e]}return t.forEach(e=>{if(s.includes(e)){if(!r){const t=n.indexOf(e);s.splice(t,1)}}else s.push(e)}),this.SetSelectedComponents(s),s}static ClientComponentWrapperInvolved(e,t){return[...e,t].some(e=>i.isClientComponentWrapper(e))}static isClientComponentWrapper(e){return e instanceof l.a}SetSelectedComponents(e){if(this.selectionHasChanged(e)){if(this.webDesignerEventEmitter.emit(this.selectionChanging),this.selection=[],e&&e.length>0){this.primarySelection=e[0],this.primarySelection.Designer&&this.primarySelection.Designer.Overlay&&this.primarySelection.Designer.Overlay.VisualElement&&(this.primarySelection.Designer.Overlay.VisualElement.trigger("click",{isArtClick:!0}),this.primarySelection.Designer.Overlay.VisualElement[0].focus());for(let t=0;t<e.length;t++)this.selection.push(e[t])}this.webDesignerEventEmitter.emit(this.selectionChanged)}}selectionHasChanged(e){const t=e.length;if(t!==this.selection.length)return!0;for(let r=0;r<t;r++)if(e[r]!==this.selection[r])return!0;return!1}ReapplySelection(){this.primarySelection&&(this.webDesignerEventEmitter.emit(this.selectionChanging),this.webDesignerEventEmitter.emit(this.selectionChanged))}};d.getServiceName=()=>"SelectionService",d=i=c([Object(o.e)()],d)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return l})),r.d(t,"c",(function(){return c}));var i=r(123),n=r(21),s=r(4),a=r(183);const o={NewFolder:"TKWRDAssetManagerNewFolderCommand",CopyPath:"TKWRDAssetManagerCopyPathCommand",DownloadFile:"TKWRDAssetManagerDownloadFileCommand",UploadFile:"TKWRDAssetManagerUploadFileCommand",RemoveFromRecent:"TKWRDAssetManagerRemoveFromRecent"};var l;!function(e){e.NewFolder="NewFolderButton",e.DeleteResource="DeleteResourceButton",e.DownloadFile="DownloadFileButton",e.UploadFile="UploadFileButton"}(l||(l={}));class c{static buildFileManagerButtons(e,t){var r,i;let n,s=[];return c.addLeftMostButtons(s,e,t),n={name:"sortField",command:"SortCommand",type:"splitButton",menuButtons:[{name:"nameField",command:"SortCommand",options:'{"field": "name"}'},{name:"sizeField",command:"SortCommand",options:'{"field": "size"}'},{name:"dateCreatedField",command:"SortCommand",options:'{"field": "created"}'},{name:"dateModifiedField",command:"SortCommand",options:'{"field": "modified"}'}]},s=s.concat([n,{name:"sortDirection"},{name:"changeView"},{name:"spacer"}]),c.addRightMostButtons(s,t),s=s.concat([Object.assign({name:"search",text:e.Search,command:"SearchCommand",icon:"search",overflow:"never",options:'{ "field": "name", "operator": "contains" }',width:null===(i=null===(r=t.config.toolbarConfiguration)||void 0===r?void 0:r.search)||void 0===i?void 0:i.width},window.kendo.version>=a.a.kendoR1_2023?{componentOptions:{commandOn:"input",icon:"search",placeholder:e.Search},type:"component",component:"TextBox"}:{type:"fileManagerSearch"})]),s}static getFileManagerGridColumns(e){return[{field:"name",title:e.Name,width:"30%",template:"<div class='file-group'><div class='file-group-icon'><span class='k-icon #: spriteCssClass #'> </span></div><div class='file-name'>#: name #</div></div>"},{field:"size",title:e.Size,width:100,template:"<div class='file-group'><div class='file-name'>#: sizeInKb ?? '' #</div></div>"},{field:"created",title:e.DateCreated,template:"<div class='file-group'><div class='file-name'>#: localFormatDateCreated ?? '' #</div></div>"},{field:"modified",title:e.DateModified,template:"<div class='file-group'><div class='file-name'>#: localFormatDateModified ?? '' #</div></div>"},{field:"uri",title:e.Location,minScreenWidth:1500,template:"<div class='file-group'><div class='file-name'>#: uri #</div></div>"}]}static getNameGridColumnIndex(){return 0}static getFileSpriteCssClass(e){return this.getResourceSpriteCssClass(!1,e)}static getFolderSpriteCssClass(e){return this.getResourceSpriteCssClass(!0,e)}static getResourceSpriteCssClass(e,t){var r;if(e)return t===c.recentFolderName?"k-icon k-i-clock":"k-icon k-i-folder";if(!t)return"";const i=/\.[0-9a-z]+$/i.exec(t);if(!i)return"k-i-file";switch(null===(r=i[0])||void 0===r?void 0:r.toLowerCase()){case".jpg":case".jpeg":case".png":case".img":case".gif":case".svg":case".bmp":return"k-i-file-image";case".txt":case".json":case".csv":return"k-i-file-txt";case".trdp":case".trdx":case".trbp":return"k-i-file-report";default:return"k-i-file"}}static addRightMostButtons(e,t){t.getBooleanConfigValue(e=>e.enableViewDetails)&&e.push({name:"details"}),e.push({id:l.DownloadFile,name:l.DownloadFile,command:o.DownloadFile,icon:"download",type:"button",enable:!1}),e.push({id:l.DeleteResource,name:l.DeleteResource,command:i.a.Delete,icon:"delete",type:"button",enable:!1})}static addLeftMostButtons(e,t,r){e.push({id:l.NewFolder,name:l.NewFolder,command:o.NewFolder,text:t.NewFolder,type:"button",enable:!1}),e.push({id:l.UploadFile,name:l.UploadFile,command:o.UploadFile,text:t.Upload,type:"button",enable:!1})}static trimArtificialPathPart(e,t){if(t=t.replace(s.b.genLTrimRegex(c.reportsBasePathAndUri),"").replace(s.b.genLTrimRegex(c.sharedDataSourcesBasePathAndUri),""),!e){const e=n.a.ensureTrailingPathSeparator(c.resourceFolder.name);t=t.replace(s.b.genLTrimRegex(e),"")}return t}}c.reportsFolderName="Reports",c.sharedDataSourceFolderName="Shared Data Sources",c.recentFolderName="Recently used",c.reportsBasePathAndUri=n.a.ensureTrailingPathSeparator(c.reportsFolderName),c.recentBasePathAndUri=n.a.ensureTrailingPathSeparator(c.recentFolderName),c.sharedDataSourcesBasePathAndUri=n.a.ensureTrailingPathSeparator(c.sharedDataSourceFolderName)},function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return s}));var i=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class n{constructor(e,t,r,i,n){this.isSuccess=e,this.data=t,this.actionMessage=r,this.statusCode=i,this.serverStatusMessage=n}get isError(){return!this.isSuccess}get Data(){if(this.isError)throw new Error("Invalid operation: cannot access data on a failed response");return this.data}get FullMessage(){if(this.actionMessage||this.serverStatusMessage)return this.actionMessage+(this.serverStatusMessage?" "+this.serverStatusMessage:"")}mapSuccess(e){return this.isSuccess?n.createSuccess(e(this.Data),this.statusCode,this.actionMessage,this.serverStatusMessage):this}mapSuccessAsync(e){return i(this,void 0,void 0,(function*(){return this.isSuccess?n.createSuccess(yield e(this.Data),this.statusCode,this.actionMessage,this.serverStatusMessage):this}))}applyOnSuccess(e){return this.isSuccess&&e(this.Data),this}applyOnSuccessAsync(e){return i(this,void 0,void 0,(function*(){return this.isSuccess&&(yield e(this.Data)),this}))}applyOnError(e){return this.isError&&e(this),this}applyOnErrorAsync(e){return i(this,void 0,void 0,(function*(){return this.isError&&(yield e(this)),this}))}outputResultNotification(e=!0,t=!0){return this.FullMessage&&this.notificationService?this.isSuccess&&e?(this.notificationService.success(this.FullMessage),this):(this.isError&&t&&this.notificationService.error(this.FullMessage),this):this}setNotificationService(e){this.notificationService=e}static createSuccess(e,t,r,i){return new n(!0,e,r,t,i)}static createError(e,t,r){return new n(!1,void 0,e,t,r)}}class s{static GetData(e){return i(this,void 0,void 0,(function*(){const t=yield e().then(e=>null==e?void 0:e.outputResultNotification());return t.isSuccess?t.Data:null}))}static Do(e){return i(this,void 0,void 0,(function*(){return e().then(e=>null==e?void 0:e.outputResultNotification())}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(4);class n extends i.a{}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t){this.X=e,this.Y=t}get IsEmpty(){return 0===this.X&&0===this.Y}static get Empty(){return new i(0,0)}static Parse(e,t){let r=e?parseFloat(e):0,n=t?parseFloat(t):0;return new i(r,n)}Offset(e,t){this.X=this.X+e,this.Y=this.Y+t}Equals(e){return this.X===e.X&&this.Y===e.Y}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));const i=new class{constructor(){this.pathSeparator="/",this.altPathSeparator="\\",this.altPathRegExp=/\\/g,this.emptyPathParts=[""],this.invalidFileNameCharacters=["<",">",":",'"',"\\","|","?","*","+"]}ensureTrailingPathSeparator(e){return(e=this.ensurePathSeparator(e))?(e.endsWith(this.pathSeparator)||(e+=this.pathSeparator),e):e}appendFolderPathToPath(e,t){return`${i.ensureTrailingPathSeparator(e)}${i.ensureTrailingPathSeparator(t)}`}appendFilePathToPath(e,t){return`${i.ensureTrailingPathSeparator(e)}${t}`}endsWithPathSeparator(e){return!!e&&(e.endsWith(this.pathSeparator)||e.endsWith(this.altPathSeparator))}ensurePathSeparator(e){return null==e?void 0:e.replace(this.altPathRegExp,this.pathSeparator)}splitPath(e){return(e=this.ensurePathSeparator(e))?e.includes(this.pathSeparator)?e.split(this.pathSeparator).filter(e=>!!e):[e]:this.emptyPathParts}getRelativeFilePath(e,t){let r="";const n=i.splitPath(e),s=i.splitPath(t);let a;for(a=0;a<n.length-1;a++){const e=n[a];if(a>=s.length-1||s[a]!==e)break}return r=(".."+this.pathSeparator).repeat(n.length-1-a),i.appendFilePathToPath(r,s.slice(a).join(this.pathSeparator))}getFileName(e){if(e&&e.trimEnd()&&this.endsWithPathSeparator(e))return"";const t=this.splitPath(e);return 0===t.length?"":t[t.length-1]}getFileNameWithoutExtension(e){return this.getPathWithoutFileExtension(this.getFileName(e))}getPathWithoutFileExtension(e){const t=e.lastIndexOf(".");return t>-1?e.substring(0,t):e}isFolderPath(e){return this.endsWithPathSeparator(e)||!e}getFileNameAndFolderPath(e){const t=(e=this.ensurePathSeparator(e)).lastIndexOf(this.pathSeparator);return-1==t?{fileName:e,folderPath:""}:{fileName:e.substring(t+1,e.length),folderPath:this.getFolderPathCore(this.splitPath(e.substring(0,t)))}}getFolderPath(e){return this.getFileNameAndFolderPath(e).folderPath}getFolderPathCore(e){return i.ensureTrailingPathSeparator(e.join(i.pathSeparator))}getInvalidCharactersInFileName(e){return this.getInvalidCharactersInName(e,!0)}getInvalidCharactersInFolderName(e){return this.getInvalidCharactersInName(e,!1)}getInvalidCharactersInName(e,t){let r=this.invalidFileNameCharacters;t&&(r=[...r],r.push(this.pathSeparator));const i=[];for(const t of r)e.includes(t)&&i.push(t);return i}}},function(e,t,r){"use strict";var i;r.d(t,"a",(function(){return i})),function(e){e[e.Before=0]="Before",e[e.After=1]="After"}(i||(i={}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t){this.width=e,this.height=t}get Width(){return this.width}set Width(e){this.width=e}get Height(){return this.height}set Height(e){this.height=e}static get Empty(){return new i(0,0)}static Parse(e,t){let r=e?parseFloat(e):0,n=t?parseFloat(t):0;return new i(r,n)}IsEmpty(){return 0===this.width&&0===this.height}Resize(e,t){this.width=this.Width+e,this.height=this.Height+t}Equals(e){return this.Width===e.Width&&this.Height===e.Height}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(154),n=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class s{constructor(e,t){this.command=e,this.provider=t,this.targetCommandManager=this.provider.getService(i.a),this.status={available:!0,checked:!0,enabled:!0}}execute(e){this.targetCommandManager.tryExecuteCommand(this.command,e)}executeAsync(e){return n(this,void 0,void 0,(function*(){yield this.targetCommandManager.tryExecuteCommandAsync(this.command,e)}))}updateStatus(){const e=this.targetCommandManager.queryCommandStatus(this.command);this.updateStatusCore(e)}getCommandStatus(){return this.targetCommandManager.queryCommandStatus(this.command)}executeCommand(e){return this.targetCommandManager.tryExecuteCommand(this.command,e)}updateStatusCore(e){this.status.available=e.available,this.status.enabled=e.enabled,this.status.checked=e.checked}}},function(e,t,r){"use strict";var i;r.d(t,"a",(function(){return i})),function(e){e[e.Edit=0]="Edit",e[e.Configure=1]="Configure",e[e.Copy=2]="Copy",e[e.Cut=3]="Cut",e[e.Paste=4]="Paste",e[e.Delete=5]="Delete",e[e.BringToFront=6]="BringToFront",e[e.SendToBack=7]="SendToBack",e[e.AggregateFunction=8]="AggregateFunction",e[e.RemoveItem=9]="RemoveItem",e[e.AddToFields=10]="AddToFields",e[e.MoveUp=11]="MoveUp",e[e.MoveDown=12]="MoveDown",e[e.CopyStyle=13]="CopyStyle",e[e.PasteStyle=14]="PasteStyle",e[e.ResetStyle=15]="ResetStyle",e[e.SaveAsSharedDataSource=16]="SaveAsSharedDataSource",e[e.AddExistingSharedDataSource=17]="AddExistingSharedDataSource"}(i||(i={}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(277),n=r(201);class s extends i.a{constructor(e,t){super(e,new n.a(t.PropertyStore,t.Parent,e,t))}get VisualElement(){return this.Component.Parent.Designer.VisualElement}OnComponentChanged(e){}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static String(e,t,r=!1){let i=e.toString();if(Object.keys(t).length)for(const e in t){const n=r?encodeURIComponent(t[e]):t[e];i=i.replace(new RegExp("\\{"+e+"\\}","gi"),n)}return i}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(8),n=r(10),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends n.a{beforeInit(){var e;this.stringResources=this.provider.getService(i.a),null===(e=this.Model)||void 0===e||e.bind("change",e=>{this.toggleValidationMessage(e)})}get AllowMoveForward(){return this.Model.IsModelValid}get Model(){return this.getByPropertyName(e=>{e.model})}set Model(e){this.setByPropertyName(e=>{e.model},e)}toggleValidationMessage(e=null){}initializePageModel(e){return s(this,void 0,void 0,(function*(){const t=this.getPageModel(e);return yield null==t?void 0:t.Initialize(),t}))}IsPageValid(){return s(this,void 0,void 0,(function*(){return!0}))}OnEnter(){var e;return s(this,void 0,void 0,(function*(){yield null===(e=this.Model)||void 0===e?void 0:e.OnEnter()}))}TryLeave(e){return s(this,void 0,void 0,(function*(){return(yield this.IsPageValid())&&this.Model.IsModelValid?(yield this.Model.OnLeave(e),!0):(this.toggleValidationMessage(),!1)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(322),n=r(199),s=r(144);class a extends Error{constructor(e,t=null,r=null){super(e),this.tryRaiseErrorEvent(null!=r?r:null==t?void 0:t.getService(n.a),e)}tryRaiseErrorEvent(e,t){e&&e.trigger(s.a.Error,new i.a(t,this))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get Pixel(){return"px"}static get Point(){return"pt"}static get Pica(){return"pc"}static get Inch(){return"in"}static get Mm(){return"mm"}static get Cm(){return"cm"}static Parse(e){switch(e.toLowerCase()){case"pixel":case"px":return i.Pixel;case"point":case"pt":return i.Point;case"pica":case"pc":return i.Pica;case"inch":case"in":return i.Inch;case"millimeters":case"mm":return i.Mm;case"centimeters":case"cm":return i.Cm;default:return i.Pixel}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(37),n=r(60);class s{constructor(e,t,r=null,i=n.a.Low){this.SnapLineType=e,this.Offset=t,this.Filter=r,this.Priority=i,this.Tag=""}static get Margin(){return"Margin"}static get MarginBottom(){return"Margin.Bottom"}static get MarginLeft(){return"Margin.Left"}static get MarginRight(){return"Margin.Right"}static get MarginTop(){return"Margin.Top"}static get Padding(){return"Padding"}static get PaddingBottom(){return"Padding.Bottom"}static get PaddingLeft(){return"Padding.Left"}static get PaddingRight(){return"Padding.Right"}static get PaddingTop(){return"Padding.Top"}get IsHorizontal(){return this.SnapLineType===i.a.Top||this.SnapLineType===i.a.Bottom||this.SnapLineType===i.a.Horizontal||this.SnapLineType===i.a.Baseline}get IsVertical(){return this.SnapLineType===i.a.Left||this.SnapLineType===i.a.Right||this.SnapLineType===i.a.Vertical}static ShouldSnap(e,t,r,i){if(e.IsHorizontal!==r.IsHorizontal)return!1;if(e.IsVertical!==r.IsVertical)return!1;if(null==e.Filter&&null==r.Filter)return!0;if(null==e.Filter||null==r.Filter)return!1;if(e.Filter.includes(s.Margin))switch(e.Filter){case s.MarginRight:return s.HorizontalIntersects(t,i)&&(r.Filter===s.MarginLeft||r.Filter===s.PaddingRight);case s.MarginLeft:return s.HorizontalIntersects(t,i)&&(r.Filter===s.MarginRight||r.Filter===s.PaddingLeft);case s.MarginTop:return s.VerticalIntersects(t,i)&&(r.Filter===s.MarginBottom||r.Filter===s.PaddingTop);case s.MarginBottom:return s.VerticalIntersects(t,i)&&(r.Filter===s.MarginTop||r.Filter===s.PaddingBottom)}if(e.Filter.includes(s.Padding))switch(e.Filter){case s.PaddingTop:return s.VerticalIntersects(t,i)&&r.Filter===s.MarginTop;case s.PaddingBottom:return s.VerticalIntersects(t,i)&&r.Filter===s.MarginBottom;case s.PaddingLeft:return s.HorizontalIntersects(t,i)&&r.Filter===s.MarginLeft;case s.PaddingRight:return s.HorizontalIntersects(t,i)&&r.Filter===s.MarginRight}return e.Filter===r.Filter}static HorizontalIntersects(e,t){return e.Top<=t.Top&&t.Top<=e.Bottom||t.Top<=e.Top&&e.Top<=t.Bottom}static VerticalIntersects(e,t){return e.Left<=t.Left&&t.Left<=e.Right||t.Left<=e.Left&&e.Left<=t.Right}AdjustOffset(e){this.Offset+=e}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get DocumentCreateNew(){return"documentNew"}static get DocumentCreateNewCombined(){return"documentNewCombined"}static get DocumentCreateNewSharedDataSource(){return"documentNewSharedDataSource"}static get DocumentSaveAs(){return"documentSaveAs"}static get Cancel(){return"cancel"}static get WorkSpace(){return"workSpace"}static get OpenBrowser(){return"openBrowser"}static get OpenAssetManager(){return"openAssetManager"}static get ClearRecentReports(){return"clearRecentReports"}static get DocumentSave(){return"documentSave"}static get Save(){return"save"}static get SaveAs(){return"saveAs"}static get Close(){return"close"}static get CloseAllButThis(){return"closeAllButThis"}static get CloseAll(){return"closeAll"}static get Open(){return"open"}static get Publish(){return"publish"}static get Revert(){return"revert"}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(78);class n{constructor(e,t){this.command=e,this.provider=t,this._status={available:!0,checked:!1,enabled:!0}}get status(){return this.updateStatus(this._status),this._status}updateStatus(e){e&&(this._status.available=e.available,this._status.enabled=e.enabled,this._status.checked=e.checked)}reset(){}hasExecutePermission(){if(this._permission){return this.provider.getService(i.a).hasPermission(this._permission)}return!0}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var i=r(541),n=r(5),s=r(1),a=r(0),o=r(3),l=r(12),c=r(40),d=r(543),u=r(4),h=r(13),p=r(111),m=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class g{constructor(e,t,r,i=!0){this.typeDescriptor=null,this.propertyStore=e,this.Parent=t,this.Provider=r,this.IsChildOfParent=i,this.propertyDescriptorWrapperFactory=this.Provider.getServiceByName(o.a.IPropertyDescriptorWrapperFactory),this.propertyWrappers=null,this.Children=[],this.Parent&&i&&this.Parent.addChild(this,!0),this.schemaService=r.getServiceByName(o.a.ISchemaService),this.namingService=r.getService(c.a),this.designSurfaceEventEmitter=this.Provider.getService(h.b)}get PropertyStore(){return this.propertyStore}get Name(){return this.getValueRaw(a.a.Name)}get NameAsJQueryAndHtmlSafeString(){return u.b.escapeHtml(this.Name)}get NameAsAttributeSafeString(){return u.b.escapeHtml(this.NameAsJQueryAndHtmlSafeString)}get DisplayName(){return this.getValueRaw(a.a.DisplayName)}get Type(){return this.getValueRaw(a.a.NetType)}get Component(){return this}get Designer(){return this.designer}get VisualElement(){return this.designer.VisualElement}get VisualElementContent(){return this.designer.VisualElementContent}get InstanceFactory(){return this.instanceFactory}get PropertyWrappers(){return this.propertyWrappers||this.propertyDescriptorWrapperFactory.CreateWrappers(this,null)}set PropertyWrappers(e){this.propertyWrappers=e}get BrowsablePropertyWrappers(){return this.PropertyWrappers.filter(e=>e.Browsable)}get PropertyWrappersInitialized(){return null!==this.propertyWrappers}get Margins(){return new i.a(n.a.Zero)}get StyleName(){return this.getPropertyWrapper(a.a.StyleName).GetValue()}set StyleName(e){this.getPropertyWrapper(a.a.StyleName).SetValue(e)}get HideContextMenuButton(){return!1}Initialize(e){return m(this,void 0,void 0,(function*(){const t=this.Provider.getServiceByName(o.a.ITypeDescriptorRepository);this.componentChangeService=this.Provider.getServiceByName(o.a.IComponentChangeService),this.typeDescriptor=yield t.GetComponentTypeDescriptor(e),this.instanceFactory=this.Provider.getServiceByName(o.a.IInstanceFactoryService),this.designer=yield this.createDesigner(),yield this.createChildComponentsFromPropertyStore()}))}createDesigner(){return m(this,void 0,void 0,(function*(){const e=this.typeDescriptor.TypeName,t=this.schemaService.getDesignerType(e);if(!t)throw new Error(`A designer for type '${e}' does not exist.`);const r=new t(this.Provider,this);return yield r.Initialize(),r}))}getProperty(e){return this.typeDescriptor.GetProperty(e)}getPropertyWrapper(e){return this.PropertyWrappers.find(t=>t.Name===e)}createPropertyWrappersWithParent(e){this.propertyDescriptorWrapperFactory.CreateWrappers(this,e)}getProperties(){return this.typeDescriptor.GetProperties()}getCascadingPropertyValue(...e){let t=0;const r=e[t++];let i=this.PropertyWrappers.find(e=>e.Name===r);for(;t<e.length;t++)i=i.GetChildProperty(e[t]);return i.GetValue()}getPropertyValue(...e){const t=this.getPropertyValuesCore(e);return t.InlineValue||t.DefaultValue}raiseComponentChanging(e){this.componentChangeService.OnComponentChanging(this,e)}raiseComponentChanged(e,t,r){if(t===r)return;if(this.Provider.getServiceByName(o.a.IDesignerHost).InTransaction){this.Provider.getService(h.b).once(p.a,()=>{this.componentChangeService.OnComponentChanged(this,e,t,r)})}else this.componentChangeService.OnComponentChanged(this,e,t,r)}getPropertyValuesCore(e){let t=0,r=this.getProperty(e[t++]);void 0===r&&(r=this.getProperty(e[t++]));let i=r.GetValue(this,this.PropertyStore);for(;t<e.length;t++)void 0===i&&(i={}),r=r.GetChildProperty(e[t]),i=r.GetValue(this,i);return new d.a(i,r.DefaultValue)}setParent(e,t){this.Parent.removeChildAndItem(this),e.addChildAndItem(this,t),this.Parent=e;const r=this.VisualElement.detach(),i=e.Designer.VisualElementContent||e.Designer.VisualElement;t?r.appendTo(i):r.prependTo(i)}delete(){this.Parent.removeChildAndItem(this,!1),this.Designer.Dispose(),this.componentChangeService.OnComponentRemoved(this)}removeChildAndItem(e,t=!0){this.removeItem(e.PropertyStore),this.removeChild(e),t&&this.componentChangeService.OnComponentRemoved(e)}addChildAndItem(e,t=!0){this.addItem(e.PropertyStore,t),this.addChild(e,t),this.componentChangeService.OnComponentAdded(e)}addChild(e,t){t?this.Children.push(e):this.Children.splice(0,0,e)}removeChild(e){const t=this.Children.indexOf(e);t>-1&&this.Children.splice(t,1)}addItem(e,t){const r=this.PropertyStore;void 0===r[a.a.Items]&&(r[a.a.Items]=[]);const i=r.Items;t?i.push(e):i.splice(0,0,e)}removeItem(e){const t=this.PropertyStore,r=t[a.a.Items];if(r){const i=r.indexOf(e);i>-1&&(r.splice(i,1),0===r.length&&delete t[a.a.Items])}}canParent(e){return this.canContain(e)}canContain(e){return e!==s.a.Report}canBeAncestorOf(e,t){const r=e[a.a.NetType];if(!this.canContain(r))return!1;if(t){const t=e[a.a.Items];if(t)for(const e of t)if(!this.canBeAncestorOf(e,!0)){return this.Provider.getService(l.a).warning(`'${this.Name}' cannot contain '${e[a.a.NetType]}'.`),!1}}return!0}canDelete(){return!0}accept(e){e.VisitExtension(this)}renderDesigner(){this.designer.Render(this.Parent.VisualElementContent||this.Parent.VisualElement);for(const e of this.Children)e.renderDesigner()}createChildComponentsFromPropertyStore(){return m(this,void 0,void 0,(function*(){if(this.PropertyStore[a.a.Items])for(const e of this.PropertyStore[a.a.Items])yield this.createChildComponent(e)}))}createChildComponent(e){return m(this,void 0,void 0,(function*(){const t=this.Provider.getServiceByName(o.a.IDesignerHost);return yield t.CreateComponent(e[a.a.NetType],e,this,!0)}))}createNonChildComponent(e){return m(this,void 0,void 0,(function*(){const t=this.Provider.getServiceByName(o.a.IDesignerHost);return yield t.CreateComponent(e[a.a.NetType],e,this,!1)}))}getValueRaw(e){return this.PropertyStore[e]}contains(e){for(;e;){if(!(e=e.Parent))return!1;if(e===this)return!0}return!1}createCollectionPropertyComponents(e,t,r=null){return m(this,void 0,void 0,(function*(){const i=(r||this.PropertyStore)[e];if(i&&0===t.length)for(const e of i){e[a.a.Name]||(e[a.a.Name]=this.namingService.CreateName(e[a.a.NetType]));const r=yield this.createNonChildComponent(e);r&&t.push(r)}}))}toString(){return`${this.DisplayName||this.Name} (${this.Type})`}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(5),n=r(23);class s{constructor(e,t){this.width=e,this.height=t}static get Empty(){return new s(i.a.Zero,i.a.Zero)}get Width(){return this.width}get Height(){return this.height}static Parse(e,t){let r=e?i.a.Parse(e):new i.a(0),n=t?i.a.Parse(t):new i.a(0);return new s(r,n)}get IsEmpty(){return 0===this.width.Value&&0===this.height.Value}SetWidth(e){this.Width.Value=e.Value,this.Width.Type=e.Type}SetHeight(e){this.Height.Value=e.Value,this.Height.Type=e.Type}Resize(e,t){this.width=this.Width.Add(e),this.height=this.Height.Add(t)}ToPixels(){return new n.a(this.Width.ToPixels(),this.Height.ToPixels())}Equals(e){return this.Width.Equals(e.Width)&&this.Height.Equals(e.Height)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var i=r(19),n=r(4),s=r(550),a=r(551),o=r(552),l=r(553),c=r(554),d=r(555),u=r(556),h=r(557),p=r(558),m=r(75),g=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let f=class extends i.a{constructor(e,t){var r,i,n;super(),this.ReportServer=new s.a(e.reportServer||{}),this.PersistSession=e.persistSession||!1,this.KeepClientAlive=null===(r=e.keepClientAlive)||void 0===r||r,this.DemoMode=null!==(i=e.demoMode)&&void 0!==i&&i,this.PromptOnDiscardingModifiedReport=null===(n=e.promptOnDiscardingModifiedReport)||void 0===n||n,this.ID=e.id?e.id:t,this.ReportServerLayout=e.reportServerLayout||!1;this.ServiceUrl=e.serviceUrl||e.reportServer.url||"api/reportdesigner/",this.ServiceUrl=this.ServiceUrl.replace(/\/+$/g,"").concat("/"),this.ServerUrl=this.ServiceUrl,this.ReportServerLayout&&(this.ServiceUrl=e.serviceUrl+"api/reportdesigner/",this.ServerUrl=e.serviceUrl+"api/reportserver/"),this.Report=e.report||"",this.ReportViewerUserOptions=e.reportViewerOptions,this.ToolboxArea=new a.a(e),this.PropertiesArea=new o.a(e),this.Preferences=new d.a(e),this.PreviouslyOpenedReports=new l.a(e),this.RecentlyOpenedReports=new c.a(e),this.RecentFiles=new u.a(e),this.AssetManagerOptions=new h.a(e),m.a.IsReportServer=this.ReportServerLayout,this.OnboardingOption=new p.a(e),this.Error=e.error,this.NotificationShowing=e.notificationShowing}};f.getServiceName=()=>"WebReportDesignerOptions",f=g([Object(n.e)()],f)},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get Top(){return"Top"}static get Bottom(){return"Bottom"}static get Left(){return"Left"}static get Right(){return"Right"}static get Horizontal(){return"Horizontal"}static get Vertical(){return"Vertical"}static get Baseline(){return"Baseline"}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(2);class n{constructor(e){this.editorType=e}createInstance(e,t,r,n){const s=i.c.getComponentByType(this.editorType),a=s.builder.build(e,r);return a.EditorDepth=n||0,a.propertyWrapper=t,a.init(s.selector),a}}const s=new class{constructor(){this.mappings={},this.editorBuilders=[]}addEditor(e){this.findOrAddEditorInfo(e)}addTypeManagedByEditor(e,t){const r=this.findOrAddEditorInfo(e);if(this.mappings[t])throw new Error(`Mapping for ${t} already exists! Editor: ${this.mappings[t]}`);this.mappings[t]=r}tryFindEditorType(e){return this.mappings[e]}findEditorBuilder(e){const t=this.tryFindEditorBuilder(e);if(!t)throw new Error("No builder registered for "+e.name);return t}tryFindEditorBuilder(e){return this.editorBuilders.find(t=>t.editorType===e)}findOrAddEditorInfo(e){let t=this.tryFindEditorBuilder(e);return t||(t=new n(e),this.editorBuilders.push(t)),t}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(0),n=r(4),s=r(201),a=r(200),o=r(255),l=r(256),c=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class d extends s.a{constructor(e,t,r){super(e,t,r,t),this.ChildGroups=[],this.Groupings=new o.a(n.b.resolvePropertyStore(this.PropertyStore,i.a.Groupings,()=>[]),this,r),this.Sortings=new l.a(n.b.resolvePropertyStore(this.PropertyStore,i.a.Sortings,()=>[]),this,r),this.Filters=new a.a(n.b.resolvePropertyStore(this.PropertyStore,i.a.Filters,()=>[]),this,r)}createChildComponentsFromPropertyStore(){const e=Object.create(null,{createChildComponentsFromPropertyStore:{get:()=>super.createChildComponentsFromPropertyStore}});return c(this,void 0,void 0,(function*(){yield e.createChildComponentsFromPropertyStore.call(this),yield this.createChildGroups()}))}createChildGroups(){return c(this,void 0,void 0,(function*(){yield this.createCollectionPropertyComponents(i.a.ChildGroups,this.ChildGroups)}))}get Name(){return this.PropertyStore[i.a.Name]}set Name(e){this.PropertyStore[i.a.Name]=e}Initialize(e){const t=Object.create(null,{Initialize:{get:()=>super.Initialize}});return c(this,void 0,void 0,(function*(){yield t.Initialize.call(this,e),yield this.Groupings.Initialize(),yield this.Sortings.Initialize(),yield this.Filters.Initialize()}))}static isStatic(e){return null!=e&&0===e.Groupings.Count}static isDynamic(e){return null!=e&&e.Groupings.Count>0}static isDetail(e){if(null==e)return!1;if(0===e.Groupings.Count)return!1;for(const t of e.Groupings)if(!t.IsEmpty)return!1;return!0}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(19),n=r(4),s=r(29),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{constructor(e){super(),this.provider=e,this.names=[]}CreateName(e){e=this.convertNameToCamelCase(e);for(let t=1;t<Number.MAX_SAFE_INTEGER;t++){const r=e+t;if(this.RegisterName(r))return r}return null}RegisterName(e){if(null==e)throw new s.a("An empty item name was provided.",this.provider);const t=n.b.binarySearch(this.names,e);return t<0&&(this.names.splice(~t,0,e),!0)}UnregisterName(e){let t=this.names.indexOf(e);t>-1&&this.names.splice(t,1)}NameExists(e){return this.names.indexOf(e)>-1}Clear(){this.names=[]}convertNameToCamelCase(e){return e.charAt(0).toLowerCase()+e.slice(1)}};o.getServiceName=()=>"NamingService",o=a([Object(n.e)()],o)},function(e,t,r){"use strict";var i;r.d(t,"a",(function(){return i})),function(e){e[e.ObjectField=0]="ObjectField",e[e.NumericField=1]="NumericField",e[e.BooleanField=2]="BooleanField",e[e.CharacterField=3]="CharacterField",e[e.StringField=4]="StringField",e[e.DateTimeField=5]="DateTimeField",e[e.BinaryField=6]="BinaryField"}(i||(i={}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var i=r(0),n=r(87),s=r(56),a=r(477),o=r(324),l=r(237),c=r(1),d=r(145),u=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class h extends n.a{constructor(e,t,r){super(e,t,r),this.initPropertyStore(),this.rowGroups=new l.a(this.PropertyStore[i.a.RowGroups],this,null,r),this.columnGroups=new l.a(this.PropertyStore[i.a.ColumnGroups],this,null,r),this.body=new a.a(this.PropertyStore[i.a.Body],this),this.corner=new o.a(this.PropertyStore[i.a.Corner],this)}initPropertyStore(){this.PropertyStore[i.a.RowGroups]||(this.PropertyStore[i.a.RowGroups]=[]),this.PropertyStore[i.a.ColumnGroups]||(this.PropertyStore[i.a.ColumnGroups]=[]),this.PropertyStore[i.a.Body]||(this.PropertyStore[i.a.Body]=new a.a([],this)),this.PropertyStore[i.a.Corner]||(this.PropertyStore[i.a.Corner]=new o.a([],this))}get RowGroups(){return this.rowGroups}get ColumnGroups(){return this.columnGroups}get Body(){return this.body}get Corner(){return this.corner}canContain(e){const t=this.InstanceFactory.getInstanceModel(e);return t&&t instanceof s.a&&!(t instanceof d.a)}accept(e){e.VisitTable(this)}createChildComponentsFromPropertyStore(){const e=Object.create(null,{createChildComponentsFromPropertyStore:{get:()=>super.createChildComponentsFromPropertyStore}});return u(this,void 0,void 0,(function*(){yield e.createChildComponentsFromPropertyStore.call(this),yield this.InitializeRowAndColumnGroups(),yield this.body.Initialize(),yield this.corner.Initialize()}))}InitializeRowAndColumnGroups(){return u(this,void 0,void 0,(function*(){yield this.rowGroups.Initialize("detailTableGroup"),yield this.columnGroups.Initialize("tableGroup")}))}addItem(e,t){}}h.typeName=c.a.Table},function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return n}));class i extends CustomEvent{constructor(e,t,r){super(e,Object.assign({detail:t},r))}}class n extends Event{constructor(e,t){super(e,t)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get ClusteredBarGraph(){return"ClusteredBarGraph"}static get StackedBarGraph(){return"StackedBarGraph"}static get Stacked100BarGraph(){return"Stacked100BarGraph"}static get ClusteredColumnGraph(){return"ClusteredColumnGraph"}static get StackedColumnGraph(){return"StackedColumnGraph"}static get Stacked100ColumnGraph(){return"Stacked100ColumnGraph"}static get AreaGraph(){return"AreaGraph"}static get StackedAreaGraph(){return"StackedAreaGraph"}static get Stacked100AreaGraph(){return"Stacked100AreaGraph"}static get LineGraph(){return"LineGraph"}static get StackedLineGraph(){return"StackedLineGraph"}static get Stacked100LineGraph(){return"Stacked100LineGraph"}static get WithMarkersLineGraph(){return"WithMarkersLineGraph"}static get StackedWithMarkersLineGraph(){return"StackedWithMarkersLineGraph"}static get Stacked100WithMarkersLineGraph(){return"Stacked100WithMarkersLineGraph"}static get PieGraph(){return"PieGraph"}static get DoughnutGraph(){return"DoughnutGraph"}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(20),n=r(23),s=r(5);class a{constructor(e,t){this.location=e,this.size=t}get X(){return this.location.X}set X(e){this.location.X=e}get Y(){return this.location.Y}set Y(e){this.location.Y=e}get Width(){return this.size.Width}set Width(e){this.size.Width=e}get Height(){return this.size.Height}set Height(e){this.size.Height=e}get Location(){return this.location}set Location(e){this.location=e}get Size(){return this.size}set Size(e){this.size=e}get Left(){return this.location.X}set Left(e){this.location.X=e}get Top(){return this.location.Y}set Top(e){this.location.Y=e}get Right(){return this.location.X+this.size.Width}get Bottom(){return this.location.Y+this.size.Height}get IsEmpty(){return 0===this.Width||0===this.Height}static get Empty(){return new a(i.a.Empty,n.a.Empty)}Offset(e,t){this.Location.Offset(e,t)}IntersectsWith(e){return e.X+s.a.Epsilon<this.Right&&this.Left+s.a.Epsilon<e.Right&&e.Y+s.a.Epsilon<this.Bottom&&this.Y+s.a.Epsilon<e.Bottom}Equals(e){return this.Location.Equals(e.Location)&&this.Size.Equals(e.Size)}}},function(e,t,r){"use strict";r.d(t,"c",(function(){return d})),r.d(t,"b",(function(){return u})),r.d(t,"a",(function(){return h})),r.d(t,"d",(function(){return p}));var i,n,s,a,o=r(4),l=r(43),c=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let d=i=class extends l.a{constructor(e){super(i.getEventName(),e)}};d.getEventName=()=>"ComponentChangingEvent",d=i=c([Object(o.e)()],d);let u=n=class extends l.a{constructor(e){super(n.getEventName(),e)}};u.getEventName=()=>"ComponentChangedEvent",u=n=c([Object(o.e)()],u);let h=s=class extends l.a{constructor(e){super(s.getEventName(),e)}};h.getEventName=()=>"ComponentAddedEvent",h=s=c([Object(o.e)()],h);let p=a=class extends l.a{constructor(e){super(a.getEventName(),e)}};p.getEventName=()=>"ComponentRemovedEvent",p=a=c([Object(o.e)()],p)},function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return O}));var i,n=r(10),s=r(123),a=r(2),o=r(8),l=r(312),c=r(17),d=r(12),u=r(259),h=r(560),p=r(561),m=r(36),g=r(152),f=r(75),v=r(479),y=r(3),S=r(4),C=r(52),b=r(564),w=r(565),P=r(566),D=r(567),x=r(568),R=r(569),T=r(570),I=r(27),E=r(21),N=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},M=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};!function(e){e.Report="report",e.Resources="resource",e.Recent="recent",e.SharedDataSource="shareddatasource"}(i||(i={}));let O=class extends n.a{constructor(){super(...arguments),this.fileOpened=new n.c,this.filesSelected=new n.c,this.navigated=new n.c,this.onItemAdded=new n.b,this.onItemRemoved=new n.b,this.onExecuteCommand=new n.b,this.onRecentFilesChanged=e=>{this.fileManagerComponent.replaceFolderItems(c.c.recentBasePathAndUri,e)},this.getContent=e=>M(this,void 0,void 0,(function*(){return yield this.assetManagerResourceService.getFolderContent(e)}))}onWindowLoaded(){var e;null===(e=this.fileManagerComponent)||void 0===e||e.onWindowLoaded()}getTemplate(){return this.templates.Layouts.FileManagement.AssetManager.assetManagerTemplate}get AssetsManagerResourceService(){return this.assetManagerResourceService}get AssetsManagerUIService(){return this.assetManagerUIService}get AssetsManagerCommandService(){return this.assetsManagerCommandService}get AssetsManagerSelectedResources(){return this.fileManagerSelectedResources}beforeInit(){super.beforeInit();const e=this.provider.getService(o.a);this.notificationService=this.provider.getService(d.a),this.fileManagerSelectedResources=[],this.recentFilesService=this.provider.getService(g.a),this.assetManagerResourceService=new u.a(this.provider,this.assetManagerConfig.disabledVirtualFolders),this.assetManagerConfiguration=new f.b(this.assetManagerConfig,this.initialPathPartsToNavigateTo,this.assetManagerResourceService),this.assetsManagerCommandService=new b.a(this),this.registerCommands(),this.assetManagerKeyCommandMapper=this.initKeyCommandMapper(),this.assetManagerUIService=new p.a(this.assetManagerResourceService,this.provider,this),this.assetManagerContextMenuService=h.a.getAssetManagerContentMenuServiceType(this.provider,this.assetsManagerCommandService);const t=this.provider.getService(m.a).AssetManagerOptions;this.createFileManagerDataConfig(e,t),this.createFileManagerCallbacks(t),this.recentFilesService.recentFilesChanged.subscribe(this.onRecentFilesChanged)}afterInit(){super.afterInit();this.provider.getServiceByName(y.a.KeyCommandMapperProvider).Set(this.assetManagerKeyCommandMapper)}beforeDispose(){super.beforeDispose(),this.recentFilesService.recentFilesChanged.unsubscribe(this.onRecentFilesChanged);this.provider.getServiceByName(y.a.KeyCommandMapperProvider).Restore()}itemAdded(e){this.onItemAdded.next([e]),this.fileManagerComponent.selectItem(e.name)}itemRemoved(e){this.onItemRemoved.next(e)}copyPath(){const e=this.fileManagerSelectedResources&&this.fileManagerSelectedResources[0];e&&navigator.clipboard.writeText(e.path)}rename(e){this.assetManagerUIService.beginRename(e,this.fileManagerComponent)}removeFromRecent(){var e;null===(e=this.fileManagerSelectedResources)||void 0===e||e.forEach(e=>this.recentFilesService.remove(e))}onFileManagerSelect(e){this.fileManagerSelectedResources=e,this.filesSelected.emit(this.assetManagerResourceService.prepareResourceInfoForOutput(e,this.forReportSelection)),this.setButtonState(),this.setPreviewPaneState(e)}onNavigate(e){e?(this.assetManagerResourceService.CurrentFolder=e,this.fileManagerSelectedResources=[e],this.navigated.emit(this.assetManagerResourceService.prepareResourceInfoForOutput(this.fileManagerSelectedResources,this.forReportSelection)),this.setButtonState()):this.navigated.emit(null)}onFileManagerOpenFile(e){return M(this,void 0,void 0,(function*(){if(this.assetManagerResourceService.currentFolderIsRecent()&&!(yield this.assetManagerResourceService.resourceFileExists(e)))return this.notificationService.error(`File ${e.path} does not exist on the server`),void this.recentFilesService.remove(e);this.fileOpened.emit()}))}setButtonState(){this.assetManagerUIService.toggleButtonState(this.fileManagerDataConfig.toolbarButtons,this.fileManagerComponent,this.fileManagerSelectedResources)}setPreviewPaneState(e){e&&0!==e.length&&this.assetManagerResourceService.fetchFileDescriptions([e[0]]).then(e=>e.onSuccess(()=>this.fileManagerComponent.refreshPreview()))}tryGetTargetFolder(e,t){const r=this.tryGetTargetResource(e,t);return(null==r?void 0:r.isDirectory)?r:void 0}tryGetTargetResource(e,t){if(e.options.target)return t.getCurrentTarget(e.options.target)}registerCommands(){this.assetsManagerCommandService.registerCommand(new w.a(this,this.assetManagerConfiguration,this.provider)),this.assetsManagerCommandService.registerCommand(new P.a(this,this.assetManagerConfiguration,this.provider)),this.assetsManagerCommandService.registerCommand(new D.a(this,this.assetManagerConfiguration,this.provider)),this.assetsManagerCommandService.registerCommand(new x.a(this,this.assetManagerConfiguration,this.provider)),this.assetsManagerCommandService.registerCommand(new R.a(this,this.assetManagerConfiguration,this.provider)),this.assetsManagerCommandService.registerCommand(new T.a(this,this.assetManagerConfiguration,this.provider))}initKeyCommandMapper(){return!0===this.isWindowed?new v.b(this.provider,this.assetsManagerCommandService):!1===this.isWindowed?new v.a(this.provider,this.assetsManagerCommandService):(S.b.logDebug("Property isWindowed is undefined"),null)}createFileManagerCallbacks(e){this.fileManagerCallbacks={requestContent:e=>M(this,void 0,void 0,(function*(){return yield this.getContent(e)})),onItemAdded:this.onItemAdded,onItemRemoved:this.onItemRemoved,viewDetails:t=>e.AssetManagerDetailsOptions.ViewDetails=t,viewChanged:t=>e.Layout=t,executeCommand:this.onExecuteCommand}}createFileManagerDataConfig(e,t){var r;this.fileManagerDataConfig={commands:this.getCommands(),toolbarButtons:c.c.buildFileManagerButtons(e,this.assetManagerConfiguration),contextMenuConfig:this.getContextMenuConfig(),grid:{columns:c.c.getFileManagerGridColumns(e)},initialPathPartsToNavigateTo:this.getInitialPath(e),initialItem:this.initialItem,listTemplate:this.templates.Layouts.FileManagement.AssetManager.assetManagerListViewTemplate,previewPaneSingleFileTemplate:this.assetManagerConfiguration.getBooleanConfigValue(e=>e.enableViewDetails)?this.templates.Layouts.FileManagement.AssetManager.assetManagerPreviewPaneSingleFileTemplate:void 0,initialState:{layout:t.Layout,previewFile:t.AssetManagerDetailsOptions.PreviewFile,viewDetails:!!this.assetManagerConfiguration.getBooleanConfigValue(e=>e.enableViewDetails)&&t.AssetManagerDetailsOptions.ViewDetails},excludedFoldersFromSearchPaths:[c.c.recentBasePathAndUri],treeViewConfig:{initialTreeViewWidth:null===(r=this.assetManagerConfig)||void 0===r?void 0:r.initialTreeViewWidth}}}getInitialPath(e){if(!this.initialPathPartsToNavigateTo||0===this.initialPathPartsToNavigateTo.length)return this.initialPathPartsToNavigateTo;const t=this.initialPathPartsToNavigateTo[0];return this.isInitialFolderDisabled(t)?(this.notificationService.error(I.a.String(e.AssetManagerFolderPermissionError,{folderName:t})),null):this.initialPathPartsToNavigateTo}isInitialFolderDisabled(e){return this.assetManagerConfig.disabledVirtualFolders.includes(i.SharedDataSource)&&(e===c.c.sharedDataSourcesBasePathAndUri||e===c.c.sharedDataSourceFolderName)||this.assetManagerConfig.disabledVirtualFolders.includes(i.Report)&&(e===c.c.reportsBasePathAndUri||e===c.c.reportsFolderName)||this.assetManagerConfig.disabledVirtualFolders.includes(i.Resources)&&(e===E.a.ensureTrailingPathSeparator(c.c.resourceFolder.name)||e===c.c.resourceFolder.name)}getCommands(){const e=[];return e.push({func:(e,t)=>this.copyPath(),name:c.a.CopyPath}),e.push({func:(e,t)=>{const r=this.tryGetTargetResource(e,t),i=void 0!==r?[r]:this.fileManagerSelectedResources;this.assetsManagerCommandService.tryExecuteCommand(C.a.DeleteCommand,{items:i})},name:s.a.Delete}),e.push({func:(e,t)=>{const r=this.fileManagerSelectedResources;this.assetsManagerCommandService.tryExecuteCommand(C.a.DownloadCommand,{items:r})},name:c.a.DownloadFile}),e.push({func:(e,t)=>{var r;const i=null!==(r=this.tryGetTargetFolder(e,t))&&void 0!==r?r:this.assetManagerResourceService.CurrentFolder;this.assetsManagerCommandService.tryExecuteCommand(C.a.NewFolderCommand,{items:[i]})},name:c.a.NewFolder}),e.push({func:(e,t)=>{var r;const i=null!==(r=this.tryGetTargetFolder(e,t))&&void 0!==r?r:this.assetManagerResourceService.CurrentFolder;this.assetsManagerCommandService.tryExecuteCommand(C.a.UploadCommand,{items:[i]})},name:c.a.UploadFile}),e.push({func:(e,t)=>{var r;!e.options.target&&e.options.value&&(e.options.target=e.options.value);const i=null!==(r=t.tryGetSelectedItemFromContentView(e.options.target))&&void 0!==r?r:t.tryGetFolderFromTreeView(e.options.target);this.assetsManagerCommandService.tryExecuteCommand(C.a.RenameCommand,{items:[i],$target:e.options.target})},name:s.a.Rename}),e.push({func:(e,t)=>this.assetsManagerCommandService.tryExecuteCommand(C.a.RemoveFromRecent,{items:this.fileManagerSelectedResources}),name:c.a.RemoveFromRecent}),e}getContextMenuConfig(){return{items:[{name:"",text:"          ",command:"",spriteCssClass:"",index:0}],open:e=>{const t=this.fileManagerComponent.tryGetFolderFromTreeView($(e.target));this.fileManagerSelectedResources=this.fileManagerComponent.selectedItems;(()=>M(this,void 0,void 0,(function*(){t&&(yield this.fileManagerComponent.doNavigation(t.path))})))().then(()=>{this.assetManagerContextMenuService.populateContextMenu(this.fileManagerComponent,e.sender,$(e.target),this.fileManagerSelectedResources)})},activate:e=>{this.assetManagerContextMenuService.addCommandsToMenuItems(e.sender)}}}};N([Object(a.e)(l.a)],O.prototype,"fileManagerComponent",void 0),N([Object(a.b)()],O.prototype,"isWindowed",void 0),N([Object(a.b)()],O.prototype,"initialPathPartsToNavigateTo",void 0),N([Object(a.b)()],O.prototype,"initialItem",void 0),N([Object(a.b)()],O.prototype,"forReportSelection",void 0),N([Object(a.b)()],O.prototype,"isForSelection",void 0),N([Object(a.b)()],O.prototype,"assetManagerConfig",void 0),N([a.d],O.prototype,"fileOpened",void 0),N([a.d],O.prototype,"filesSelected",void 0),N([a.d],O.prototype,"navigated",void 0),O=N([Object(a.a)("asset-manager")],O)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(3),n=r(8),s=r(114),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends s.a{constructor(e,t){super(),this.provider=e,this.wizardModel=t,this.sr=this.provider.getService(n.a)}get IsModelValid(){return!0}Initialize(){return a(this,void 0,void 0,(function*(){return Promise.resolve()}))}OnEnter(){return a(this,void 0,void 0,(function*(){return Promise.resolve()}))}OnLeave(e){return a(this,void 0,void 0,(function*(){return Promise.resolve()}))}GetEnumValues(e){return this.provider.getServiceByName(i.a.ITypeDescriptorRepository).GetPropertyTypeDescriptor(e).GetEnumValues()}readResource(e){return a(this,void 0,void 0,(function*(){return new Promise((t,r)=>{const i=new FileReader;i.onloadend=e=>{t(e.target.result)},i.onerror=e=>{r(e)},i.readAsText(e)})}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(59),n=r(121),s=r(46),a=r(10),o=r(368);class l extends i.a{constructor(){super(...arguments),this.onValueReset=new a.b}get isResettable(){return this.isResetVisible}get isResetVisible(){return!this.Readonly&&!this.Disabled}get canReset(){return this.isResetVisible||this.isResettable}getPropertyWrapperValue(){return this.propertyWrapper.GetValue()}resetToDefaultValue(){this.canReset&&this.resetManager.resetToDefaultValue()}resetToDefaultValueInternal(){this.resetPropertyWrapperValue(),this.refreshValue()}resetPropertyWrapperValue(){this.propertyWrapper.ResetValue()}determineIfResetIsDirty(){return this.propertyWrapper.ShouldSerializeValue()}updateValue(e){}beforeDispose(){super.beforeDispose(),this.boundRefreshIfMatchingProperty&&this.designSurfaceEventEmitter.off(s.b,this.boundRefreshIfMatchingProperty)}beforeInit(){super.beforeInit(),this.boundRefreshIfMatchingProperty=this.refreshIfMatchingProperty.bind(this),this.designSurfaceEventEmitter.on(s.b,this.boundRefreshIfMatchingProperty),this.resetManager=new o.a(()=>this.determineIfResetIsDirty(),()=>this.resetToDefaultValueInternal())}afterInit(){super.afterInit();let e=this.State;n.a.DisabledProperties.includes(this.propertyWrapper.Name)&&(e|=i.b.Disabled),this.propertyWrapper.ReadOnly&&(e|=i.b.ReadOnly),this.State=e}updatePropertyWrapperValue(e){this.propertyWrapper.SetValue(e)}tryUpdatePropertyWrapperValue(e,t,r){let i=!1;try{this.updatePropertyWrapperValue(e)}catch(e){i=!0,t(e)}r&&!i&&r()}refreshIfMatchingProperty(e){const t=e.detail;t.propertyDescriptor===this.propertyWrapper.Property&&void 0!==this.propertyWrapper.Components.find(e=>e===t.component)&&this.refreshValue()}}},function(e,t,r){"use strict";r.d(t,"d",(function(){return i})),r.d(t,"a",(function(){return u})),r.d(t,"c",(function(){return p})),r.d(t,"b",(function(){return m}));var i,n=r(49),s=r(105),a=r(121),o=r(2),l=r(7),c=r(3),d=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};!function(e){e[e.InEditorsContainer=0]="InEditorsContainer",e[e.NextToDescendantsTemplate=1]="NextToDescendantsTemplate"}(i||(i={}));let u=class extends n.a{constructor(){super(...arguments),this.shouldCreateEditor=!0,this.resetPositionEnum=i}get editorInfo(){return""}get classNames(){return`-${this.editorDepth} -expandable`}get resetPosition(){return i.InEditorsContainer}get Expanded(){return this.getByPropertyName(e=>{e.expanded})}set Expanded(e){this.setByPropertyName(e=>{e.expanded},e),this.toggleChildEditors(e)}get $editorsPlaceholder(){return this.$childEditorsContainer}refreshValue(){this.childEditors.forEach(e=>e.refreshValue())}getTemplate(){return this.templates.Editors.ExpandableEditors.expandableEditorComponentTemplate}expandChildEditors(){this.collapseChildEditors(),this.populateChildEditors()}toggleExpandedState(){this.Expanded=!this.Expanded}populateChildEditors(){this.populateChildEditorsCore()}populateChildEditorsCore(e){let t=e?this.childEditorResolver.getChildEditorBuildersByPropertyWrappers(e):this.getChildEditorBuilders();this.populateChildEditorsWithResolvedModels(t)}getChildEditorBuilders(){return this.childEditorResolver.getChildEditorBuilders(this.propertyWrapper)}populateChildEditorsWithResolvedModels(e){const t=a.a.renderPropertyEditorsWithResolvedTypes(this.$editorsPlaceholder,e.map(e=>({propertyWrapper:e.propertyWrapper,builder:e.builder})),this.provider,this.childEditorsDepth);this.childEditors.push(...t)}canCreateEditor(e){return this.provider.getService(s.a).canCreateEditor(e)}collapseChildEditors(){this.disposeChildEditors()}beforeInit(){this.createChildEditorResolver(),super.beforeInit(),this.Expanded=!1}createChildEditorResolver(){if(!this.childEditorResolver){const e=this.provider.getServiceByName(c.a.IChildEditorResolverMapService);this.childEditorResolver=e.getChildEditorResolver(this)}}afterInit(){super.afterInit(),this.$childEditorsContainer=this.view.element.find(".editor__editors-container")}updateStateUi(){}getChildProperties(){return this.propertyWrapper.GetChildProperties()}get isResetVisible(){return!1}toggleChildEditors(e){if(e){if(this.expandChildEditors(),this.childEditors.length){for(const e of this.childEditors)e.visualElement.removeClass("twd-editor-last");this.childEditors[this.childEditors.length-1].visualElement.addClass("twd-editor-last")}}else this.collapseChildEditors()}};u=d([Object(o.a)("expandable-editor"),Object(l.b)("ToolTip","ReportParameterAvailableValues","WebServiceAuthentication"),Object(l.b)("WebServiceTwoStepAuthentication","WebServiceBasicAuthentication","GraphLegend"),Object(l.b)("IExtent","Telerik.Reporting.Design.ProjectionEditor"),Object(l.b)("MapScaleLegend","GraticuleLine","LegendItem"),Object(l.b)("MergedDataPoints","SpatialDataSourceTypeBase","PaymentInfo"),Object(l.b)("CreditorInfo","DebtorInfo","AddressInfo","RenderingSettings","ReportEngineSettings","OhlcMarks")],u);class h extends u{}class p extends h{get children(){return this._children||(this._children=this.childEditorResolver.getChildEditorBuilders(this.propertyWrapper)),this._children}}class m extends u{}},function(e,t,r){"use strict";r.d(t,"b",(function(){return m})),r.d(t,"c",(function(){return g})),r.d(t,"d",(function(){return f})),r.d(t,"h",(function(){return v})),r.d(t,"f",(function(){return y})),r.d(t,"a",(function(){return S})),r.d(t,"g",(function(){return C})),r.d(t,"e",(function(){return b}));var i,n,s,a,o,l,c,d,u=r(4),h=r(43),p=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let m=i=class extends h.a{constructor(e,t){super(i.getEventName(),e,t)}};m.getEventName=()=>"WizardContextMenuItemMovedEvent",m=i=p([Object(u.e)()],m);let g=n=class extends h.a{constructor(e,t){super(n.getEventName(),e,t)}};g.getEventName=()=>"WizardContextMenuItemRemovedEvent",g=n=p([Object(u.e)()],g);let f=s=class extends h.b{constructor(e){super(s.getEventName())}};f.getEventName=()=>"WizardContextMenuUiUpdatedEvent",f=s=p([Object(u.e)()],f);let v=a=class extends h.b{constructor(e){super(a.getEventName(),e)}};v.getEventName=()=>"WizardUiUpdatedEvent",v=a=p([Object(u.e)()],v);let y=o=class extends h.b{constructor(e){super(o.getEventName(),e)}};y.getEventName=()=>"WizardDataSourceUpdatedEvent",y=o=p([Object(u.e)()],y);let S=l=class extends h.a{constructor(e,t){super(l.getEventName(),e,t)}};S.getEventName=()=>"GraphWizardTypeChangedEvent",S=l=p([Object(u.e)()],S);let C=c=class extends h.a{constructor(e,t){super(c.getEventName(),e,t)}};C.getEventName=()=>"WizardFieldArrangementItemInitializedEvent",C=c=p([Object(u.e)()],C);let b=d=class extends h.a{constructor(e,t){super(d.getEventName(),e,t)}};b.getEventName=()=>"WizardDataFieldAddedEvent",b=d=p([Object(u.e)()],b)},function(e,t,r){"use strict";var i;r.d(t,"a",(function(){return i})),function(e){e[e.NewFolderCommand=0]="NewFolderCommand",e[e.UploadCommand=1]="UploadCommand",e[e.RenameCommand=2]="RenameCommand",e[e.DeleteCommand=3]="DeleteCommand",e[e.DownloadCommand=4]="DownloadCommand",e[e.RemoveFromRecent=5]="RemoveFromRecent"}(i||(i={}))},function(e,t,r){"use strict";r.d(t,"b",(function(){return l})),r.d(t,"a",(function(){return c}));var i,n,s=r(43),a=r(4),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=i=class extends s.b{constructor(){super(i.getEventName())}};l.getEventName=()=>"SelectionChangingEvent",l=i=o([Object(a.e)()],l);let c=n=class extends s.b{constructor(){super(n.getEventName())}};c.getEventName=()=>"SelectionChangedEvent",c=n=o([Object(a.e)()],c)},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));const i={Designers:{reportBookDesignerReportsListBoxItemTemplate:'\n            <div class="book__list-item" data-id="#: data.id #">\n                <span class="k-file-icon k-icon k-i-file-report twd-big-icon"></span>\n                <span class="report-name">#: data.name #</span>\n                <a class="remove-report-button -remove -small" title="#: data.title #">\n                    <span class="k-icon k-i-close"></span>\n                </a>\n            </div>\n        ',reportBookDesignerTocListBoxItemTemplate:'\n            <div class="book__list-item" data-id="#: data.id #">\n                <span class="k-file-icon k-icon k-i-file-report twd-big-icon"></span>\n                <span class="report-name">#: data.name #</span>\n                <a class="remove-toc-button -remove -small" title="#: data.title #">\n                    <span class="k-icon k-i-close"></span>\n                </a>\n            </div>\n        '},Editors:{booleanEditorComponentTemplate:'\n            <div id="#: data.id #" class="twd-editor -#: data.editorDepth # -bool">\n                #= data.partialView(data.templates.Editors.resetEditorPartial) #\n                <div class="editor__content">\n                    <span class="k-checkbox-wrap">\n                        <input type="checkbox" id="#: data.id #-checkbox" class="k-checkbox k-checkbox-md k-rounded-md editor__value" data-bind="disabled: isDisabled, checked: Value, events: { change: setPropertyWrapperValue }" />\n                    </span>\n                    <label class="k-checkbox-label editor__name" for="#: data.id #-checkbox" data-bind="style: { flex: nameFlexStyle }, attr: { title: localizedName }, text: localizedName"></label>\n                </div>\n            </div>\n        ',charEditorComponentTemplate:'\n            <div id="#: data.id #" class="twd-editor -#: data.editorDepth # -input">\n                #= data.partialView(data.templates.Editors.resetEditorPartial) #\n                <label class="editor__content">\n                    #= data.partialView(data.templates.Editors.editorNamePartial) #\n                    <input maxlength="1"\n                           onClick="this.setSelectionRange(0, this.value.length)"\n                           data-bind="value: Value, events: { change: setValue }, disabled: Disabled, readonly: Readonly"\n                           class="k-textbox k-input k-input-md k-rounded-md editor__value" />\n                </label>\n            </div>\n        ',colorPickerComponentTemplate:'\n            <div id="#: data.id #" class="twd-editor -#: data.editorDepth # -color-picker">\n                #= data.partialView(data.templates.Editors.resetEditorPartial) #\n                <div class="editor__content">\n                    #= data.partialView(data.templates.Editors.editorNamePartial) #\n                    <div class="editor__inline-values">\n                        <div\n                             class="editor__color"\n                             data-opacity="true"\n                             data-role="colorpicker"\n                             data-preview="false"\n                             data-input="false"\n                             data-views="[\'gradient\']"\n                             data-bind="value: KendoColorString, events: { change: colorChanged }">\n                        </div>\n                        <input data-value-update="keyup" class="k-textbox k-input k-input-md k-rounded-md editor__value" spellcheck="false" data-bind="value: HexColor, events: { keyup: changeColor, blur: changeColor }, css: { k-invalid: ColorValueInvalid }" type="text" />\n                        <span class="editor__picker k-icon k-i-eyedropper"></span>\n                    </div>\n                </div>\n            </div>\n        ',colorPickerEditorComponentTemplate:'\n            <color-picker data-wrd-component\n                          valueChanging="valueChanged"\n                          resetManager="resetManager"\n                          isResetVisible="isResetVisible"\n                          localizedName="localizedName"\n                          nameFlexStyle="nameFlexStyle"\n                          editorDepth="editorDepth"\n                          Value="value">\n            \n            </color-picker>\n        ',dateTimeEditorComponentTemplate:'\n            <div class="twd-editor -radio-buttons">\n                <div class="editor__content">\n                    <span class="editor__name" title="#: data.radioGroupTitle #">#: data.radioGroupTitle #</span>\n                    <div class="editor__controls">\n                        <label title="#: data.stringResources.DateOnly #">\n                            <span class="k-radio-wrap">\n                                <input id="#: data.dateRadioButtonId #"\n                                       type="radio"\n                                       data-bind="checked: SelectedDateTimeEditor, events: { change: editorLayoutChanged }"\n                                       name="#: data.id #-mode"\n                                       class="k-radio k-radio-md editor__value"\n                                       value="0" />\n                            </span>\n                            <span>#: data.stringResources.DateOnly #</span>\n                        </label>\n                        <label title="#: data.stringResources.DateTime #">\n                            <span class="k-radio-wrap">\n                                <input id="#: data.timeRadioButtonId #"\n                                       type="radio"\n                                       data-bind="checked: SelectedDateTimeEditor, events: { change: editorLayoutChanged }"\n                                       name="#: data.id #-mode"\n                                       class="k-radio k-radio-md editor__value"\n                                       value="1" />\n                            </span>\n                            <span>#: data.stringResources.DateTime #</span>\n                        </label>\n                    </div>\n                </div>\n            </div>\n            <div class="twd-editor -date-time-picker">\n                <div class="editor__content">\n                    #= data.partialView(data.templates.Editors.editorNamePartial) #\n                    <div class="editor__controls">\n                        <input data-role="datepicker"\n                               data-format="d"\n                               id="#: data.datePickerId #"\n                               class="editor__value"\n                               data-bind="value: Date, events: { change: updatePropertyWrapper }" />\n                    </div>\n                </div>\n            </div>\n            <div class="twd-editor -date-time-picker" data-bind="css: { -hidden: DateTimeEditorDisabled }">\n                <div class="editor__content">\n                    <span class="editor__name" data-bind="style: { flex: nameFlexStyle }">\n                    </span>\n                    <div class="editor__controls">\n                        <input\n                               id="#: data.timePickerId #"\n                               data-format="t"\n                               class="editor__value"\n                               data-role="timepicker"\n                               data-bind="value: DateTime, events: { change: updatePropertyWrapper }" />\n                    </div>\n                </div>\n            </div>\n        ',doubleEditorComponentTemplate:'\n            <div id="#: data.id #" class="twd-editor -#: data.editorDepth # -input">\n                #= data.partialView(data.templates.Editors.resetEditorPartial) #\n                <label class="editor__content">\n                    #= data.partialView(data.templates.Editors.editorNamePartial) #\n                    # if (data.inputStep) { #\n                        <input type="number" step="#: data.inputStep #" class="k-textbox k-input k-input-md k-rounded-md editor__value" data-bind="value: Value, enabled: enableChange, events: { change: setValue }" />\n                    # } else { #\n                        <input type="number" class="k-textbox k-input k-input-md k-rounded-md editor__value" data-bind="value: Value, enabled: enableChange, events: { change: setValue }" />\n                    # } #\n            \n                </label>\n            </div>\n        ',editorModeSwitcherComponentTemplate:'\n            <span id="#: data.uid #" class="editor__switch-buttons">\n                <span class="editor__switch-button -#: data.borderMode.group # k-widget" data-bind="click: switchToGroupMode, css: { twd-selected-border: isGroupMode }">\n                    <input type="radio" name="#: data.uid #-mode" value="#: data.borderMode.group #" data-bind="checked: isGroupMode" />\n                </span>\n                <span class="editor__switch-button -#: data.borderMode.separated # k-widget" data-bind="click: switchToSeparatedMode, css: { twd-selected-border: isSeparatedMode }">\n                    <input type="radio" name="#: data.uid #-mode" value="#: data.borderMode.separated #" data-bind="checked: isSeparatedMode" />\n                </span>\n            </span>\n        ',editorNamePartial:'\n            <span class="editor__name" data-bind="style: { flex: nameFlexStyle }, attr: { title: localizedName }, text: localizedName">\n            </span>\n        ',expressionPopupEditorTemplate:'\n            <div class="twd-editor -expression-builder">\n                <div class="editor__content">\n                    <div class="editor__item k-widget">\n                        <div class="editor__fields"></div>\n                    </div>\n                    <div class="editor__item k-widget">\n                        \x3c!--TODO: check this class name editor_value/editor_values/editor__inline-values--\x3e\n                        <div class="editor__values"></div>\n                    </div>\n                    <div class="editor__item -last k-widget">\n                        <div class="editor__description" style="word-break: break-word;"></div>\n                    </div>\n                </div>\n            </div>\n        ',fontNameEditorComponentTemplate:'\n            <div id="#: data.id #" class="twd-editor -#: data.editorDepth # -enum">\n                #= data.partialView(data.templates.Editors.resetEditorPartial) #\n                <label class="editor__content">\n                    #= data.partialView(data.templates.Editors.editorNamePartial) #\n                    <div class="editor__dropdown">\n                        <input type="text"\n                               data-auto-width="true"\n                               data-role="dropdownlist"\n                               data-bind="source: FontNames, value: SelectedFontName, events: { change: selectedFontNameChanged }" />\n                    </div>\n                </label>\n            </div>\n        ',iconCheckEditorComponentTemplate:'\n            <li id="#: data.id #"\n                class="editor__toggle-button -#: data.editorDepth # -#: data.propertyWrapper.Name.toLowerCase() # k-button k-button-md k-rounded-md k-button-solid k-button-solid-base"\n                data-bind="attr: { title:LocalizedName }, css: { k-selected: Value }">\n                <span class="k-button-icon k-icon k-i-#: data.propertyWrapper.Name.toLowerCase() #"></span>\n                <input type="checkbox" class="editor__value" data-bind="checked: Value, events: { change: setPropertyWrapperValue }" />\n            </li>\n        ',resetEditorPartial:'\n            <div class="editor__reset">\n                <reset-editor data-wrd-component resetManager="resetManager" editorId="id" data-bind="visible: isResetVisible"></reset-editor>\n            </div>\n        ',toggleButtonsEditorComponentTemplate:'\n            <div id="#: data.id #" class="twd-editor -#: data.editorDepth # -wrapper -toggle-buttons">\n                <div class="editor__content">\n                    #= data.partialView(data.templates.Editors.editorNamePartial) #\n            \n                    <ul class="editor__inline-values editor__toggle-buttons k-widget k-button-group" data-bind="repeat: properties.length">\n                        <toggle-buttons-property data-wrd-component selectionChanged="selectionChanged" property="properties[${ data.escapedVariable(\'_$index\') }]" propertySelected="selectedPropertyChanged">\n                        </toggle-buttons-property>\n                    </ul>\n                </div>\n            </div>\n        ',toggleButtonsPropertyComponentTemplate:'\n            <li title="#: data.stringResources.getString(data.property.Name) #"\n                class="editor__toggle-button -#: data.property.Name.toLowerCase() # k-button k-button-md k-rounded-md k-button-solid k-button-solid-base"\n                data-bind="css: { k-selected: isSelected }">\n                <span class="k-button-icon k-icon k-i-align-#: data.property.Name.toLowerCase() #"></span>\n                <input class="editor__value" type="radio" value="#: data.property.Name #" data-bind="checked: isSelected, events: { change: radioSelectionChanged }" />\n            </li>\n        ',uploadImageEditorComponentTemplate:'\n            <div id="#: data.id #" class="twd-editor -#: data.editorDepth # -upload" data-bind="css: { -empty: isEmpty }">\n                #= data.partialView(data.templates.Editors.resetEditorPartial) #\n                <div class="editor__content" data-bind="attr: { style: getContentStyle }">\n                    <div class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base editor__action -add">\n                        <span class="k-button-icon k-icon k-i-folder"></span>\n                        <span class="k-button-text">From assets</span>\n                        <input class="editor__value" data-bind="click: getFileFromAssetManager" />\n                    </div>\n                    <div class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base editor__action -add">\n                        <span class="k-button-icon k-icon k-i-folder"></span>\n                        <span class="k-button-text">From computer</span>\n                        <input id="#: data.id #_add" class="editor__value" accept="image/*" type="file" data-bind="events: { change: setValue }">\n                    </div>\n                    <div class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base editor__action -remove" data-bind="click: resetToDefaultValue">\n                        <span class="k-button-icon k-icon k-i-close"></span>\n                        <span class="k-button-text">#: data.stringResources.Remove #</span>\n                    </div>\n                </div>\n            </div>\n        ',Actions:{targetsEditorComponentTemplate:'\n                <div id="#: data.id #" class="twd-editor -#: data.editorDepth # -top-label">\n                    <div class="editor__content">\n                        <span class="editor__name" data-bind="attr: { title: localizedName }, text: localizedName">\n                        </span>\n                        <div class="editor__inline-values">\n                            <input class="editor__dropdown"\n                                   type="text"\n                                   data-role="dropdowntree"\n                                   data-placeholder="#: data.stringResources.SelectOrTypeToggleTarget #"\n                                   data-filter="contains"\n                                   data-text-field="#: data.textIdentifier #"\n                                   data-auto-width="true"\n                                   data-bind="source: ItemsTreeDataSource, value: SelectedTreeItem, events: { change: updateAddButtonState }" />\n                            <span class="editor__action-button -add -button-look -left-offset"\n                                  data-action="add"\n                                  title="#: data.stringResources.AddItem #"\n                                  data-bind="css: { -disabled: AddTargetButtonDisabled }">\n                                <span class="k-icon k-i-plus"></span>\n                            </span>\n                        </div>\n                    </div>\n                    <div class="editor__editors-container">\n                        <div class="twd-editor -list" data-bind="css: { -hidden: targetsListHidden }">\n                            <div class="editor__content">\n                                <div class="editor__list"\n                                     data-role="listview"\n                                     data-navigatable="true"\n                                     data-bind="source: Targets"\n                                     data-template="targets-editor-list-tempate">\n                                    <script id="targets-editor-list-tempate" type="text/x-kendo-template">\n                                        <div title="#: data.escapedVariable(data.properties.ItemName) #" class="editor__list-item k-chip k-chip-md k-rounded-full k-chip-solid k-chip-solid-base">\n                                            <span class="k-chip-icon k-icon #: data.escapedVariable(\'data.IconClass\') #"></span>\n                                            <span class="k-chip-content"><span class="k-chip-text">#: data.escapedVariable(data.properties.ItemName) #</span></span>\n                                            <span class="k-chip-actions">\n                                                <span class="k-chip-action editor__action-button -remove -small" data-action="remove" title="#: data.stringResources.RemoveItem #">\n                                                    <span class="k-icon k-i-trash"></span>\n                                                </span>\n                                            </span>\n                                        </div>\n                                    <\/script>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            '},DropDownListEditors:{dropDownListEditorTemplate:'\n                <div id="#: data.id #" class="twd-editor -#: data.editorDepth # -enum">\n                    #= data.partialView(data.templates.Editors.resetEditorPartial) #\n                    <label class="editor__content">\n                        #= data.partialView(data.templates.Editors.editorNamePartial) #\n                \n                        <div class="editor__dropdown">\n                            <input type="text"\n                                   data-role="dropdownlist"\n                                   data-text-field="#: data.dataTextFieldName #"\n                                   data-value-field="#: data.dataValueFieldName #"\n                                   data-option-label="#: data.dropDownListOptionLabel #"\n                                   data-auto-width="true"\n                                   data-bind="\n                                    source: dropDownListOptions,\n                                    value: DropDownListValue,\n                                    disabled: IsDropDownDisabled,\n                                    events: { change: dropDownListChanged }" />\n                        </div>\n                    </label>\n                </div>\n            '},EditorWrappers:{alignmentEditorComponentTemplate:'\n                <div id="#: data.id #" class="twd-editor -#: data.editorDepth # -alignment">\n                    #= data.partialView(data.templates.Editors.resetEditorPartial) #\n                    <div class="editor__content">\n                        <div class="editor__inline-values">\n                        </div>\n                    </div>\n                </div>\n            ',expandableEditorWrapperComponentTemplate:'\n                <div id="#: data.id #" data-bind="attr: { class: EditorClassNames }">\n                    <div class="editor__content">\n                        <span class="editor__expand-button" data-bind="click: toggleExpandedState">\n                            <span class="editor__collapse k-icon k-i-arrow-60-right"></span>\n                            <span class="editor__expand k-icon k-i-arrow-60-down"></span>\n                        </span>\n                        <span class="editor__name" data-bind="attr: { title: LocalizedName }, click: toggleExpandedState">\n                            <span data-bind="text: LocalizedName"></span>\n                        </span>\n                    </div>\n                    <div class="editor__editors-container"></div>\n                </div>\n                \n            ',fontStyleEditorComponentTemplate:'\n                <div id="#: data.id #" class="twd-editor -#: data.editorDepth # -multi-select editor__toggle-buttons">\n                    #= data.partialView(data.templates.Editors.resetEditorPartial) #\n                    <div class="editor__content">\n                        <ul class="editor__inline-values">\n                        </ul>\n                    </div>\n                </div>\n            '},ExpandableEditors:{expandableEditorComponentTemplate:'\n                # if (data.shouldCreateEditor) { #\n                    <div id="#: data.id #" class="twd-editor #: data.classNames #" data-bind="css: { -expanded: Expanded }">\n                        <div class="editor__content">\n                            <span class="editor__expand-button" data-bind="click: toggleExpandedState">\n                                <span class="editor__collapse k-icon k-i-arrow-60-right"></span>\n                                <span class="editor__expand k-icon k-i-arrow-60-down"></span>\n                            </span>\n                            <span class="editor__name" data-bind="attr: { title: LocalizedName }, click: toggleExpandedState">\n                                <span data-bind="text: LocalizedName"></span>\n                \n                                # if (data.editorInfo) { #\n                                <span class="editor__info" title="#: data.editorInfo #">\n                                    #: data.editorInfo #\n                                </span>\n                                # } #\n                            </span>\n                            # if (data.addItem) { #\n                                <span class="editor__action-button -add" title="#: data.stringResources.AddItem #" data-bind="click: addItem">\n                                    <span class="k-icon k-i-plus"></span>\n                                </span>\n                            # } #\n                        </div>\n                        <div class="editor__editors-container" # if (data.isEmptyCollection) { #  data-bind="css: { -empty: isEmptyCollection }" # } #" >\n                            # if (data.resetPosition === data.resetPositionEnum.InEditorsContainer) { #\n                                #= data.partialView(data.templates.Editors.resetEditorPartial) #\n                            # } #\n                \n                            # if(data.descendantsTemplate) { #                \n                                #= data.partialView(data.descendantsTemplate) #\n                            # } #\n                        </div>\n                    </div>\n                # } #\n            ',Collection:{collectionEditorComponentDescendantsTemplate:'\n                    <select class="editor__list"\n                            data-role="listbox"\n                            data-draggable="#: data.reorderable #"\n                            data-navigatable="true"\n                            data-template="collectionEditorListBoxTemplate_#: data.uid #"\n                            data-bind="source: Properties, invisible: isEmptyCollection, events: { change: listSelectionChanged }">\n                    </select>\n                    <script type="text/x-kendo-template" id="collectionEditorListBoxTemplate_#: data.uid #">\n                        <div class="editor__list-item k-chip k-chip-md k-chip-solid k-chip-solid-base">\n                            <span class="k-chip-content">\n                                <span>\n                                    #: data.escapedBlockExpression("if (data.additionalTemplate)", data.rawVariable("data.additionalTemplate()")) #\n                                    #: data.escapedVariable("data.transformDisplayText(data." + data.itemIdentifier +")") #\n                                </span>\n                            </span>\n                            <span class="k-chip-actions">\n                                <span\n                                    class="k-chip-action editor__action-button -remove -small"\n                                    title="#: data.stringResources.RemoveItem #"\n                                    data-item-uid="#:  data.escapedVariable(\'data.uid\') #"\n                                    data-bind="click: removeItemClick">\n                                    <span class="k-icon k-i-close"></span>\n                                </span>\n                            </span>\n                        </div>\n                    <\/script>\n                ',Windows:{collectionEditorDropDownEditorComponentNoData:'\n                        <div class="wrd-drop-down-no-data">\n                            <div class="add-item-prompt">\n                                {noDataMsg}\n                            </div>\n                            <div>\n                                <button onclick="$(\'\\#{btnAddNewItem}\').trigger(\'click\');" class="k-primary k-button-solid-primary k-button k-button-sm k-rounded-sm">\n                                    {addNewItemText}\n                                </button>\n                            </div>\n                        </div>\n                        \n                    '}},Image:{imageEditorComponentDescendantsTemplate:'\n                    <div class="twd-editor" id="#: data.id #__imageEditor" style="display: block;" data-bind="css: { visible: ShowImageEditor }">\n                        <div class="twd-editor -enum">\n                            <div class="editor__reset">\x3c!--empty space placeholder--\x3e</div>\n                            <div class="editor__content">\n                                <span class="editor__name" title="#: data.properties.Type #" data-bind="style: { flex: descendantsNameFlexStyle }">\n                                    #: data.properties.Type #\n                                </span>\n                                <div class="editor__dropdown">\n                                    <twd-buttongroup data-wrd-component\n                                                     options="TypeOptions"\n                                                     initialSelectedOption="ChosenType"\n                                                     onOptionSelected="onOptionSelected">\n                                    </twd-buttongroup>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                '},InstanceType:{instanceTypesEditorBaseDescendantsTemplate:'\n                    <div class="twd-editor #: data.editorDepth # -enum -instance-editor" id="#: data.id #__instanceTypesEditor" data-bind="css: { -expanded: Expanded }">\n                        #= data.partialView(data.templates.Editors.resetEditorPartial) #\n                        <div class="editor__content">\n                            <span class="editor__name" title="#: data.properties.Type #" data-bind="style: { flex: descendantsNameFlexStyle }">\n                                #: data.properties.Type #\n                            </span>\n                    \n                            <div class="editor__dropdown">\n                                <input  type="text"\n                                       data-role="dropdownlist"\n                                       data-value-field="Value"\n                                       data-text-field="Text"\n                                       data-auto-width="true"\n                                       data-option-label="#: data.optionLabel #"\n                                       data-bind="source: InstanceTypes, value: SelectedInstanceType, events: { change: changeInstanceType }" />\n                            </div>\n                        </div>\n                        <div class="editor__editors-container"></div>\n                    </div>\n                '}},InputEditors:{extendedEditorPartial:'\n                <span class="editor__edit" data-bind="visible: allowExtendedEditor, click: openExtendEditMode">\n                    <span class="k-icon k-i-more-horizontal"></span>\n                </span>\n            ',inlineSourcePropertyEditorTemplate:'\n                <div id="#: data.id #" class="twd-editor -#: data.editorDepth # -expandable" data-bind="css: { -expanded: Expanded }">\n                    <div class="editor__content">\n                        <span class="editor__expand-button" data-bind="click: toggleExpandedState">\n                            <span class="editor__collapse k-icon k-i-arrow-60-right"></span>\n                            <span class="editor__expand k-icon k-i-arrow-60-down"></span>\n                        </span>\n                        <span class="editor__name" data-bind="style: { flex: nameFlexStyle }, attr: { title: localizedName }, text: localizedName, click: toggleExpandedState">\n                        </span>\n                    </div>\n                    <div class="editor__editors-container">\n                        <div class="twd-editor" id="#: data.id #__inlineSourceEditor" data-bind="css: { visible: Expanded }" style="display: block;">\n                            <div class="twd-editor -enum twd-inline-source-prop-type">\n                                <label class="editor__content">\n                                    <span class="editor__name" title="#: data.propertyTypeString #" style="flex:0 0 calc(50% - 26px);">\n                                        #: data.propertyTypeString #\n                                    </span>\n                \n                                    <twd-buttongroup data-wrd-component\n                                                     options="SourceTypeOptionsAsButtonItems"\n                                                     initialSelectedOption="SourceTypeAsButtonItem"\n                                                     onOptionSelected="onOptionSelected">\n                                    </twd-buttongroup>\n                \n                                </label>\n                            </div>\n                \n                            <div class="twd-editor -input twd-inline-source-prop-data">\n                                <div class="editor__reset">\x3c!--empty space placeholder--\x3e</div>\n                                <label class="editor__content">\n                                    <span class="editor__name" title="#: data.stringResources.Data #" style="flex: 0 0 calc(50% - 11px);">\n                                        #: data.stringResources.Data #\n                                    </span>\n                \n                                    <span class="editor__content" style="padding: 0px; min-height: 0;">\n                                        #= data.partialView(data.templates.Editors.InputEditors.textInputPartial) #\n                                        #= data.partialView(data.templates.Editors.InputEditors.extendedEditorPartial) #\n                                    </span>\n                                    <button data-role="button" class="assetManagerButton" data-icon="file-add" data-bind="events: { click: getPathFromAssetManager }, visible: DisplayAssetManagerButton"></button>\n                                </label>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                \n            ',inputEditorTemplate:'\n                <div id="#: data.id #" class="twd-editor -#: data.EditorDepth # -input">\n                    #= data.partialView(data.templates.Editors.resetEditorPartial) #\n                    <label class="editor__content">\n                            #= data.partialView(data.templates.Editors.editorNamePartial) #\n                            #= data.partialView(data.templates.Editors.InputEditors.textInputPartial) #\n                            #= data.partialView(data.templates.Editors.InputEditors.extendedEditorPartial) #\n                    </label>\n                </div>\n            ',inputWithAssetManagerEditorTemplate:'\n                <div id="#: data.id #" class="twd-editor -#: data.EditorDepth # -input">\n                    #= data.partialView(data.templates.Editors.resetEditorPartial) #\n                    <label class="editor__content">\n                        #= data.partialView(data.templates.Editors.editorNamePartial) #\n                        #= data.partialView(data.templates.Editors.InputEditors.textInputPartial) #\n                        #= data.partialView(data.templates.Editors.InputEditors.extendedEditorPartial) #\n                    </label>\n                    <button data-role="button" class="assetManagerButton" data-icon="file-add" data-bind="events: { click: getPathFromAssetManager }, visible: isAssetManagerButtonVisible"></button>\n                </div>\n            ',multiLineEditorTemplate:'\n                <div id="#: data.id #" class="twd-editor -#: data.editorDepth # -input">\n                    #= data.partialView(data.templates.Editors.resetEditorPartial) #\n                    <label class="editor__content">\n                        #= data.partialView(data.templates.Editors.editorNamePartial) #\n                        <textarea spellcheck="false"\n                                  wrap="hard"\n                                  class="k-textarea k-input k-input-md k-rounded-md editor__value" style="resize:none; overflow:hidden"\n                                  data-value-update="keyup"\n                                  data-bind="\n                                value: value,\n                                disabled: Disabled,\n                                readonly: Readonly,\n                                css: { -readonly: Readonly },\n                                events: { blur: setValue, keyup: setValue }">\n                        </textarea>\n                        #= data.partialView(data.templates.Editors.InputEditors.extendedEditorPartial) #\n                    </label>\n                </div>\n            ',passwordEditorTemplate:'\n                <div id="#: data.id #" class="twd-editor -#: data.editorDepth # -input">\n                    #= data.partialView(data.templates.Editors.resetEditorPartial) #\n                    <label class="editor__content">\n                        #= data.partialView(data.templates.Editors.editorNamePartial) #\n                        <input type="password" class="k-textbox k-input k-input-md k-rounded-md editor__value"\n                               data-value-update="keyup"\n                               data-bind="\n                                value: value,\n                                disabled: Disabled,\n                                readonly: Readonly,\n                                css: { -readonly: Readonly }\n                                events: { blur: setValue, keyup: setValue }" />\n                    </label>\n                </div>\n            ',textInputPartial:'\n                <input spellcheck="false"\n                        data-value-update="keyup"\n                        type="text"\n                        data-bind="\n                            value: value,\n                            disabled: Disabled,\n                            readonly: Readonly,\n                            css: { -readonly: readonly }\n                            events: { blur: setValue, keyup: setValue }"\n                        class="k-textbox k-input k-input-md k-rounded-md editor__value" />\n            '},PopupEditors:{editorWindowComponentTemplate:'\n                <div class="twd-editors -no-bg-color">\n                    <text-area-window data-wrd-component\n                                      valueChanged="setValue"\n                                      hasError="hasError"\n                                      value="value"\n                                      propertyName="propertyName"\n                                      propertyWrapper="propertyWrapper"\n                                      displayExpressionEditor="displayExpressionEditor"\n                                      readonlyState="ReadOnlyState"></text-area-window>\n                </div>\n                <div class="twd-buttons k-window-buttongroup k-actions k-actions-end">\n                    <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-primary" data-bind="click: save, disabled: ReadOnlyState">#: data.stringResources.SaveButton #</button>\n                    <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base" data-bind="click: close">#: data.stringResources.CancelButton #</button>\n                </div>\n            ',expressionEditorWindowComponentTemplate:'\n                <div class="twd-editor -expression-builder">\n                    <div class="editor__content">\n                        <div class="editor__item k-widget">\n                            <div class="editor__fields"\n                                 data-role="treeview"\n                                 data-text-field="name"\n                                 data-bind="source: expressionSchema,\n                                    events: { select: onTreeViewSelect }"></div>\n                        </div>\n                        <div class="editor__item k-widget">\n                            <div class="editor__values">\n                                <div data-bind="\n                                        visible: displayEditorValuesTreeView,\n                                        source: EditorValuesTreeViewDataSource,\n                                        events: { select: onEditorValuesTreeViewSelect }"\n                                     class=\'tab__treeview __treeview\'\n                                     data-role="treeview"></div>\n                                <div data-bind="\n                                        visible: displayEditorItemsListView,\n                                        source: EditorItemsListViewDataSource,\n                                        events: { change: onEditorItemsListViewChange, abcd: onEditorItemsListViewDoubleClick }"\n                                     class=\'tab__treeview __listview\'\n                                     data-selectable="single"\n                                     data-template="expressionEditorValuesListViewTemplate"\n                                     data-role="listview">\n                                    <script type="text/x-kendo-template" id="expressionEditorValuesListViewTemplate">\n                                        <div data-value=\'#: data.escapedVariable("value") #\' class=\'list-item\'>#: data.escapedVariable("name") #</div>\n                                    <\/script>\n                                </div>\n                            </div>\n                        </div>\n                        <div class="editor__item -last k-widget">\n                            <div class="editor__description" style="word-break: break-word;" data-bind="html: Description"></div>\n                        </div>\n                    </div>\n                </div>\n            ',textAreaWindowComponentTemplate:'\n                <span>\n                    <div class="twd-editor -textarea">\n                        <label class="editor__content">\n                            <textarea data-bind="css: { k-invald: hasError }, value: Value, readonly: readonlyState"\n                                      spellcheck="false"\n                                      wrap="hard"\n                                      class="k-textarea k-input k-input-md k-rounded-md editor__value">\n                            </textarea>\n                        </label>\n                    </div>\n                    #if(data.displayExpressionEditor){#\n                        <expression-editor-window data-wrd-component\n                            propertyName="propertyName"\n                            propertyWrapper="propertyWrapper"\n                            inputValueChanged="onExpressionEditorValueChanged">\n                        </expression-editor-window>\n                    #}#\n                </span>\n            '},UnitEditors:{paddingSideEditorComponentTemplate:'\n                <div id="#: data.id #" class="twd-editor -#: data.editorDepth # -padding-side -#: data.propertyWrapper.Name.toLowerCase() #"\n                     data-bind="css: { -set: IsSet }">\n                    <label class="editor__content">\n                        <div class="editor__padding-indicator"></div>\n                        <input tabindex="0"\n                               spellcheck="false"\n                               type="text"\n                               class="k-textbox k-input k-input-md k-rounded-md editor__value"\n                               data-bind="value: Value, attr: { title: Value }, events: { keydown: setValueWithStep, input: setValue, blur: validateValue }" />\n                    </label>\n                </div>\n            ',unitEditorComponentTemplate:'\n                <div id="#: data.id #" class="twd-editor -#: data.editorDepth # -unit">\n                    #= data.partialView(data.templates.Editors.resetEditorPartial) #\n                    <label class="editor__content">\n                        #= data.partialView(data.templates.Editors.editorNamePartial) #\n                        <div class="editor__inline-values">\n                            <input class="k-textbox k-input k-input-md k-rounded-md editor__value"\n                                   spellcheck="false"\n                                   type="text"\n                                   data-bind="value: Value, events: { keydown: setValueWithStep, input: setValue, blur: validateValue }" />\n                            \x3c!--TODO: units is not consistent, -units --\x3e\n                            <input class="editor__dropdown units"\n                                   type="text"\n                                   data-role="dropdownlist"\n                                   data-text-field="Description"\n                                   data-value-field="Description"\n                                   data-auto-width="true"\n                                   data-bind="value: UnitType, source: unitTypes, events: { change: unitTypeSelected }" />\n                        </div>\n                    </label>\n                </div>\n            '},Wizards:{closeConfirmationWindowComponentTemplate:'\n                <div class="#: data.classNames.ConfirmWindowClasses #">\n                    <div class="twd-editors -no-bg-color">\n                        #: data.stringResources.QuitWizardDialogueConfirmationMessage #\n                    </div>\n                    <div class="twd-buttons k-window-buttongroup k-actions k-actions-end">\n                        <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-primary" data-bind="click: quitWizard">#: data.stringResources.QuitWizardButton #</button>\n                        <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base" data-bind="click: close">#: data.stringResources.CancelQuitWizardButton #</button>\n                    </div>\n                </div>\n            ',wizardStepComponentTemplate:'\n                <span class="wizard-steps__item k-item k-widget"\n                      data-bind="css: { \n                      k-selected: isCurrentStep,\n                      -set: isStepSet\n                      }">#: data.step #</span>\n                <span data-bind="css: {\n                      -selected: isCurrentStep,\n                      -set: isStepSet\n                      }" class="wizard-steps__separator k-widget"></span>\n                \n            ',wizardStepsComponentTemplate:'\n                <div class="twd-wizard-steps" data-bind="repeat: stepsCount">\n                    <wizard-step class="wizard-steps__step k-list"\n                                 data-wrd-component currentStep="currentStep"\n                                 [step]="${ data.escapedVariable(\'_$index\') } + 1"></wizard-step>\n                </div>\n            ',wizardWindowComponentTemplate:'\n                <wizard-steps data-wrd-component\n                              stepsCount="stepsCount"\n                              stepNumberChangedObservable="stepNumberChangedObservable">\n                </wizard-steps>\n                <div class="twd-editors">\n                </div>\n                <div class="twd-buttons k-window-buttongroup k-actions k-actions-end">\n                    <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base -left"\n                            data-bind="\n                                    click: moveToPreviousPage,\n                                    visible: IsPreviousButtonVisible">\n                        <span class="k-icon k-i-arrow-chevron-left"></span>\n                        #: data.stringResources.BackButton #\n                    </button>\n                    <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base right-icon"\n                            data-bind="\n                                    click: moveToNextPage,\n                                    visible: IsNextButtonVisible,\n                                    enabled: CurrentPageModel.IsModelValid">\n                        #: data.stringResources.NextButton #\n                        <span class="k-icon k-i-arrow-chevron-right"></span>\n                    </button>\n                    <button class="k-primary k-button-solid-primary k-button k-button-md k-button-rectangle k-rounded-md k-button-solid k-button-solid-base"\n                            data-bind="click: saveChanges">\n                        #: data.stringResources.FinishButton #\n                    </button>\n                    <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base"\n                            data-bind="click: cancelChanges">\n                        #: data.stringResources.CancelButton #\n                    </button>\n                </div>\n                \n            ',CsvDataSource:{Pages:{chooseDataSourcePageComponentTemplate:'\n                        <div class="twd-editor -header">\n                            <h3 title="#: data.stringResources.CsvDataSourceHeader #">#: data.stringResources.CsvDataSourceHeader #</h3>\n                        </div>\n                        <div class="twd-editor -top-label -radio-enum -upload -dropzone" data-bind="css: { -invalid: isExternalFileInvalid }">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <span class="k-radio-wrap">\n                                        <input type="radio"\n                                               data-type="number"\n                                               name="external-file"\n                                               id="radio-external-file"\n                                               class="k-radio k-radio-md"\n                                               data-bind="checked:  Model.SelectedType " value="1" />\n                                    </span>\n                                    <label title="#: data.stringResources.CsvUploadFile #"\n                                            class="k-radio-label"\n                                            for="radio-external-file">\n                                        #: data.stringResources.CsvUploadFile #\n                                    </label>\n                                </div>\n                                <div class="editor__value">\n                                    <div class="editor__upload">\n                                        <input id="input-external-file"\n                                               type="file"\n                                               accept=".csv, .tsv, .txt"\n                                               data-role="upload"\n                                               data-async="{ saveUrl: \'chunkSave\', removeUrl: \'remove\', autoUpload: false }"\n                                               data-localization="{ select: \'Choose file...\', dropFilesHere: \'or Drop file here to upload...\' }"\n                                               data-multiple="false"\n                                               data-bind="enabled: Model.UseExternalFile, events: { select: uploadFile, remove: fileRemoved  }" />\n                                    </div>\n                                </div>\n                                <span class="editor__info" title="#: data.stringResources.CsvEditFileMessage #">\n                                    #: data.stringResources.CsvEditFileMessage #\n                                </span>\n                                <div class="editor__error">\n                                    <span data-bind="text: ExternalFileError"></span>\n                                </div>\n                            </div>\n                        </div>\n                        <div class="twd-editor -top-label -radio-enum" data-bind="css: { -invalid: isExistingFileInvalid }">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <span class="k-radio-wrap">\n                                        <input type="radio"\n                                               data-type="number"\n                                               name="external-file"\n                                               id="radio-existing-file"\n                                               class="k-radio k-radio-md"\n                                               data-bind="checked: Model.SelectedType"\n                                               value="2" />\n                                    </span>\n                                    <label title="#: data.stringResources.CsvUseExistingFile #" class="k-radio-label" for="radio-existing-file">\n                                        #: data.stringResources.CsvUseExistingFile #\n                                    </label>\n                                </div>\n                                <div class="editor__value">\n                                    <input class="editor__dropdown"\n                                           data-role="dropdownlist"\n                                           data-auto-bind="false"\n                                           data-option-label="Select a file"\n                                           data-text-field="fullName"\n                                           data-value-field="uri"\n                                           data-filter="contains"\n                                           data-bind="value: Model.SelectedFile, enabled: Model.UseExistingFile, source: Model.ExistingFiles" />\n                                </div>\n                                <span class="editor__info" title="#: data.stringResources.CsvEditFileMessage #">#: data.stringResources.CsvEditFileMessage #</span>\n                            </div>\n                        </div>\n                        <div class="twd-editor -top-label -radio-enum" data-bind="css: { -invalid: isInlineCsvInvalid }">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <span class="k-radio-wrap">\n                                        <input type="radio"\n                                               data-type="number"\n                                               name="inline-csv"\n                                               id="radio-inline-csv"\n                                               class="k-radio k-radio-md"\n                                               data-bind="checked: Model.SelectedType"\n                                               value="3" />\n                                    </span>\n                                    <label title="#: data.stringResources.CsvUseInline #" class="k-radio-label" for="radio-inline-csv">\n                                        #: data.stringResources.CsvUseInline #\n                                    </label>\n                                </div>\n                                <div class="editor__value">\n                                    <div class="twd-editor -top-label -textarea" data-bind="css: { -invalid: isInlineCsvInvalid }">\n                                        <div class="editor__content">\n                                            <label data-bind="attr: { data-enabled:  Model.UseInlineCsv }"\n                                                   class="editor__name"\n                                                   title="#: data.stringResources.CsvEnterTextPlaceholder #">\n                                                #: data.stringResources.CsvEnterTextPlaceholder #\n                                            </label>\n                                            <textarea spellcheck="false"\n                                                      wrap="hard"\n                                                      class="k-textarea k-input k-input-md k-rounded-md editor__value"\n                                                      data-value-update="input"\n                                                      data-bind="value: Model.InlineText, enabled: Model.UseInlineCsv">\n                                            </textarea>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        \n                    ',configureEscapeFormatPageComponentTemplate:'\n                        <div class="twd-editor -header">\n                            <h3 title="#: data.stringResources.CsvConfigureEscapeFormatHeader #">\n                                #: data.stringResources.CsvConfigureEscapeFormatHeader #\n                            </h3>\n                        </div>\n                        <div class="twd-editor -top-label -grid -gridlayout -columns5040">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <label title="#: data.stringResources.CsvEscapeFormat #">\n                                        #: data.stringResources.CsvEscapeFormat #\n                                    </label>\n                                </div>\n                                <input class="editor__value editor__dropdown"\n                                       data-role="dropdownlist"\n                                       data-auto-bind="false"\n                                       data-bind="value:  Model.EscapeFormat, source: Model.EscapeFormats" />\n                            </div>\n                        </div>\n                        <div class="twd-editor -top-label -grid -gridlayout -columns5040">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <label title="#: data.stringResources.CsvQuoteSymbol #">\n                                        #: data.stringResources.CsvQuoteSymbol #\n                                    </label>\n                                </div>\n                                <input class="editor__value editor__dropdown"\n                                       data-role="dropdownlist"\n                                       data-auto-bind="false"\n                                       data-text-field="name"\n                                       data-value-field="value"\n                                       data-bind="value: Model.QuoteSymbol, source: Model.QuoteSymbols " />\n                                <input class="k-textbox k-input k-input-md k-rounded-md editor__value col2"\n                                       spellcheck="false"\n                                       type="text"\n                                       placeholder="#: data.stringResources.CsvSymbolPlaceholder #"\n                                       data-bind="value: Model.OtherQuoteSymbol, enabled: Model.IsOtherQuoteSymbol " />\n                                <span class="editor__info" title="#: data.stringResources.CsvQuoteSymbolMessage #">#: data.stringResources.CsvQuoteSymbolMessage #</span>\n                            </div>\n                        </div>\n                        <div class="twd-editor -top-label -grid -gridlayout -columns5040">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <label title="#: data.stringResources.CsvCommentSymbol #">\n                                        #: data.stringResources.CsvCommentSymbol #\n                                    </label>\n                                </div>\n                                <input class="k-textbox k-input k-input-md k-rounded-md editor__value"\n                                       spellcheck="false"\n                                       type="text"\n                                       placeholder="#: data.stringResources.CsvSymbolPlaceholder #"\n                                       data-bind="value: Model.CommentSymbol" />\n                            </div>\n                        </div>\n                    ',configureSeparatorsPageComponentTemplate:'\n                        <div class="twd-editor -header">\n                            <h3 title="#: data.stringResources.CsvConfigureSeparatorsHeader #">\n                                #: data.stringResources.CsvConfigureSeparatorsHeader #\n                            </h3>\n                        </div>\n                        <div class="twd-editor -top-label -grid -gridlayout -columns5040" data-bind="css: { -invalid: SelectedFieldsSeparatorsEmpty }">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <label title="#: data.stringResources.CsvFieldColumnSeparators #">\n                                        #: data.stringResources.CsvFieldColumnSeparators #\n                                    </label>\n                                </div>\n                                <select class="editor__value editor__dropdown"\n                                        data-role="multiselect"\n                                        data-auto-bind="false"\n                                        data-text-field="name"\n                                        data-value-field="value"\n                                        data-bind="value:  Model.SelectedFieldSeparators, source: Model.FieldSeparators, events: { change:  onFieldSeparatorsChanged }">\n                                </select>\n                                <input class="k-textbox k-input k-input-md k-rounded-md"\n                                       spellcheck="false"\n                                       type="text"\n                                       placeholder="#: data.stringResources.CsvSymbolPlaceholder #"\n                                       data-bind="value:  Model.OtherFieldSeparator, enabled: Model.IsOtherFieldSeparator, css: { k-invalid: isOtherFieldSeparatorInvalid, k-disabled: Model.isNotOtherFieldSeparator  } " />\n                                <div class="editor__error">\n                                    <span>#: data.stringResources.CsvDataSourceMissingSeparatorError #</span>\n                                </div>\n                                <div>\n                                    <span class="k-checkbox-wrap">\n                                        <input type="checkbox"\n                                               id="checkbox-consecutive-field-separators"\n                                               class="k-checkbox k-checkbox-md k-rounded-md"\n                                               data-bind="checked:  Model.ConsecutiveFieldSeparatorsAsOne " />\n                                    </span>\n                                    <label title="#: data.stringResources.CsvConsecutiveFieldSeparators #" class="k-checkbox-label" for="checkbox-consecutive-field-separators">\n                                        #: data.stringResources.CsvConsecutiveFieldSeparators #\n                                    </label>\n                                </div>\n                            </div>\n                        </div>\n                        <div class="twd-editor -top-label -grid -gridlayout -columns5040" data-bind="css: { -invalid: SelectedRecordSeparatorsEmpty }">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <label title="#: data.stringResources.CsvRecordRowSeparators #">\n                                        #: data.stringResources.CsvRecordRowSeparators #\n                                    </label>\n                                </div>\n                                <select class="editor__value editor__dropdown"\n                                        data-role="multiselect"\n                                        data-auto-bind="false"\n                                        data-text-field="name"\n                                        data-value-field="value"\n                                        data-bind="value: Model.SelectedRecordSeparators, source: Model.RecordSeparators, events: { change: onRecordSeparatorsChanged }">\n                                </select>\n                                <input class="k-textbox k-input k-input-md k-rounded-md m-r-6"\n                                       spellcheck="false"\n                                       type="text"\n                                       placeholder="#: data.stringResources.CsvSymbolPlaceholder #"\n                                       data-bind="value: Model.OtherRecordSeparator, enabled: Model.IsOtherRecordSeparator, css: { k-invalid: isOtherRecordSeparatorInvalid, k-disabled: Model.isNotOtherRecordSeparator  } " />\n                                <div class="editor__error">\n                                    <span>#: data.stringResources.CsvDataSourceMissingSeparatorError #</span>\n                                </div>\n                                <div>\n                                    <span class="k-checkbox-wrap">\n                                        <input type="checkbox"\n                                               id="checkbox-consecutive-record-separators"\n                                               class="k-checkbox k-checkbox-md k-rounded-md"\n                                               data-bind="checked: Model.ConsecutiveRecordSeparatorsAsOne " />\n                                    </span>\n                                    <label title="#: data.stringResources.CsvConsecutiveRecordSeparators #" class="k-checkbox-label" for="checkbox-consecutive-record-separators">\n                                        #: data.stringResources.CsvConsecutiveRecordSeparators #\n                                    </label>\n                                </div>\n                            </div>\n                        </div>\n                        <div class="twd-editor -top-label -grid -gridlayout -columns5040">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <label title="#: data.stringResources.CsvHeader #">\n                                        #: data.stringResources.CsvHeader #\n                                    </label>\n                                </div>\n                                <div>\n                                    <span class="k-checkbox-wrap">\n                                        <input type="checkbox"\n                                               id="checkbox-has-header-row"\n                                               class="k-checkbox k-checkbox-md k-rounded-md"\n                                               data-bind="checked:  Model.HasHeaders " />\n                                    </span>\n                                    <label title="#: data.stringResources.CsvHasHeaderRow #" class="k-checkbox-label" for="checkbox-has-header-row">\n                                        #: data.stringResources.CsvHasHeaderRow #\n                                    </label>\n                                </div>\n                            </div>\n                        </div>\n                    ',mapColumnTypesPageComponentTemplate:'\n                        <div class="twd-editor -header">\n                            <h3 title="#: data.stringResources.CsvDataSourceMapColumnTypesHeader #">#: data.stringResources.CsvDataSourceMapColumnTypesHeader #</h3>\n                        </div>\n                        <div class="twd-editor -top-label -grid -gridlayout -columns5050">\n                            <div class="editor__content">\n                                <div class="twd-editor -header -types">\n                                    <div class="editor__content">\n                                        <div class="editor__name">\n                                            <h4 title="#: data.stringResources.CsvDataSourceAvailableColumns #">\n                                                #: data.stringResources.CsvDataSourceAvailableColumns #\n                                            </h4>\n                                        </div>\n                                        <div class="editor__value">\n                                            <div class="editor__grid editor__grid-types" data-role="grid"\n                                                 data-sortable="false"\n                                                 data-editable="true"\n                                                 data-scrollable="false"\n                                                 data-selectable="false"\n                                                 data-bind="source: Columns"\n                                                 data-auto-bind="false"\n                                                 data-columns="[\n                                                    { \'field\': \'Name\', \'width\': \'40%\', template: \'<div data-bind=&quot;text: Name, css: { twd-kendo-grid-cell-error: isInvalid }&quot;></div><span class=&quot; twd-grid-cell-error-icon k-icon k-i-warning &quot; data-bind=&quot; visible: isInvalid, attr: { title: errorTitle } &quot;></span>\' },\n                                                    { \'field\': \'Type\', \'width\': \'60%\'}]">\n                                            </div>\n                                        </div>\n                                        <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base data-reset-columns m-t-10 m-b-10" data-bind="click: resetColumns">\n                                            #: data.stringResources.CsvDataSourceResetColumns #\n                                        </button>\n                                    </div>\n                                </div>\n                        \n                                <div class="twd-editor -header -top-label  -gridlayout -columns4050 col2">\n                                    <div class="editor__content">\n                                        <div class="editor__name">\n                                            <h4 title="#: data.stringResources.CsvDataSourceFieldsTypeConversion #">\n                                                #: data.stringResources.CsvDataSourceFieldsTypeConversion #\n                                            </h4>\n                                        </div>\n                                        <div class="twd-editor">\n                                            <div class="editor__content">\n                                                <div class="editor__name">\n                                                    <label title="#: data.stringResources.CsvDataSourceDecimalSeparator #">\n                                                        #: data.stringResources.CsvDataSourceDecimalSeparator #\n                                                    </label>\n                                                </div>\n                                                <input class="k-textbox k-input k-input-md k-rounded-md editor__value col2"\n                                                       spellcheck="false"\n                                                       type="text"\n                                                       placeholder="#: data.stringResources.CsvSymbolPlaceholder #"\n                                                       data-bind=" value: Model.DecimalSeparator" />\n                                            </div>\n                                        </div>\n                                        <div class="twd-editor">\n                                            <div class="editor__content">\n                                                <div class="editor__name">\n                                                    <label title="#: data.stringResources.CsvDataSourceThousandSeparator #">\n                                                        #: data.stringResources.CsvDataSourceThousandSeparator #\n                                                    </label>\n                                                </div>\n                                                <input class="k-textbox k-input k-input-md k-rounded-md editor__value col2"\n                                                       spellcheck="false"\n                                                       type="text"\n                                                       placeholder="#: data.stringResources.CsvSymbolPlaceholder #"\n                                                       data-bind=" value: Model.ThousandsSeparator" />\n                                            </div>\n                                        </div>\n                                        <div class="twd-editor">\n                                            <div class="editor__content">\n                                                <div class="editor__name">\n                                                    <label title="#: data.stringResources.CsvDataSourceDateFormat #">\n                                                        #: data.stringResources.CsvDataSourceDateFormat #\n                                                    </label>\n                                                </div>\n                                                <input class="k-textbox k-input k-input-md k-rounded-md editor__value col2" spellcheck="false" type="text" placeholder="#: data.stringResources.CsvSymbolPlaceholder #"\n                                                       data-bind=" value: Model.DateFormat" />\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    ',modifyDataSourcePageComponentTemplate:'\n                        <div class="twd-editor -header">\n                            <h3 title="#: data.stringResources.CsvModifyDataSourceHeader #">#: data.stringResources.CsvModifyDataSourceHeader #</h3>\n                        </div>\n                        <div class="twd-editor -top-label -radio-enum">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <span class="k-checkbox-wrap">\n                                        <input type="checkbox"\n                                               id="checkbox-embed-file"\n                                               class="k-checkbox k-checkbox-md k-rounded-md"\n                                               data-bind="checked: Model.UseInlineCsv " />\n                                    </span>\n                                    <label title="#: data.stringResources.CsvEmbedInReportDefinition #" class="k-checkbox-label" for="checkbox-embed-file">\n                                        #: data.stringResources.CsvEmbedInReportDefinition #\n                                    </label>\n                                </div>\n                                <div class="editor__value">\n                                    <div class="twd-editor -top-label -textarea -data-preview">\n                                        <div class="editor__content">\n                                            <label data-bind="attr: { data-enabled: Model.UseInlineCsv }"\n                                                   class="editor__name"\n                                                   title="#: data.stringResources.CsvInlineFileMessage #">\n                                                #: data.stringResources.CsvInlineFileMessage #\n                                            </label>\n                                            <textarea spellcheck="false"\n                                                      wrap="hard"\n                                                      class="k-textbox k-input k-input-md k-rounded-md editor__value"\n                                                      data-bind="enabled: Model.UseInlineCsv, value: Model.InlineText">\n                                            </textarea>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    ',previewDataSourcePageComponentTemplate:'\n                        <div class="twd-editor -header">\n                            <h3 title="#: data.stringResources.PreviewResultsHeader #">#: data.stringResources.PreviewResultsHeader #</h3>\n                        </div>\n                        <div class="twd-editor">\n                            <div class="editor__content" data-bind="renderIf: Columns">\n                                <div class="editor__grid"\n                                     data-role="grid"\n                                     data-columns="#= data.escapedVariable(\'data.Columns\') #"\n                                     data-editable="false"\n                                     data-sortable="false"\n                                     data-selectable="false"\n                                     data-scrollable="false"\n                                     data-bind="source: Model.Rows">\n                                </div>\n                            </div>\n                        </div>\n                    '}},Embedded:{CategoryItems:{numericTextCategoryItem:'\n                        <input type="number" class="k-textbox k-input k-input-md k-rounded-md editor__value" />\n                        \n                    ',textCategoryItem:'\n                        <span style="display: flex;">\n                            <input spellcheck="false"\n                                   type="text"\n                                   class="k-textbox k-input k-input-md k-rounded-md editor__value" />\n                            <span class="editor__edit">\n                                <span class="k-icon k-i-more-horizontal"></span>\n                            </span>\n                        </span>\n                        \n                    '},Gauge:{CategoryItems:{rangeCategoryItem:'\n                            <div class="gauge-range-category-item-slider">\n                                <input />\n                                <input />\n                            </div>\n                            \n                        '}}},JsonDataSource:{Pages:{chooseDataSourcePageComponentTemplate:'\n                        <div class="twd-editor -header">\n                            <h3 title="#: data.stringResources.JsonDataSourceHeader #">#: data.stringResources.JsonDataSourceHeader #</h3>\n                        </div>\n                        <upload-json-file data-wrd-component\n                                          [title]="\'#: data.stringResources.JsonUploadFile #\'"\n                                          [additionalInformation]="\'#: data.stringResources.JsonEditFileMessage #\'"\n                                          model="UploadJsonFileModel"\n                                          selectedTypeChanged="uploadJsonFileSelected">\n                        </upload-json-file>\n                        <div class="twd-editor -top-label -radio-enum" data-bind="css: { -invalid: isExistingFileInvalid }">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <span class="k-radio-wrap">\n                                        <input type="radio" data-type="number" name="external-file" id="radio-existing-file" class="k-radio k-radio-md"\n                                               data-bind="checked: model.SelectedType" value="2" />\n                                    </span>\n                                    <label title="#: data.stringResources.JsonUseExistingFile #" class="k-radio-label" for="radio-existing-file">\n                                        #: data.stringResources.JsonUseExistingFile #\n                                    </label>\n                                </div>\n                                <div class="editor__value">\n                                    <input class="editor__dropdown"\n                                           data-role="dropdownlist"\n                                           data-auto-bind="false"\n                                           data-option-label="Select a file"\n                                           data-text-field="fullName"\n                                           data-value-field="uri"\n                                           data-filter="contains"\n                                           data-bind="\n                                               value: model.SelectedFile,\n                                               enabled: model.UseExistingFile,\n                                               source: model.ExistingFiles" />\n                                </div>\n                                <span class="editor__info" title="#: data.stringResources.JsonEditFileMessage #">#: data.stringResources.JsonEditFileMessage#</span>\n                            </div>\n                        </div>\n                        <edit-inline-json data-wrd-component\n                                          [title]="\'#: data.stringResources.JsonUseInline #\'"\n                                          model="EditInlineJsonModel"\n                                          selectedTypeChanged="inlineTextSelected">\n                        </edit-inline-json>\n                        <div class="twd-editor -top-label -last -border-top">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <label title="#: data.stringResources.DataSourceDataSelector#">\n                                        #: data.stringResources.DataSourceDataSelector #\n                                    </label>\n                                </div>\n                                <div class="w-100">\n                                    <input class="k-textbox k-input k-input-md k-rounded-md editor__value" spellcheck="false" type="text" placeholder="#: data.stringResources.DataSourceDataSelectorPlaceholder #"\n                                           data-bind=" value: model.dataSelector" />\n                                </div>\n                            </div>\n                        </div>\n                    ',modifyDataSourcePageComponentTemplate:'\n                        <div class="twd-editor -header">\n                            <h3 title="#: data.stringResources.JsonModifyDataSourceHeader #">#: data.stringResources.JsonModifyDataSourceHeader #</h3>\n                        </div>\n                        <div class="twd-editor -top-label -radio-enum" data-bind="css: { -invalid: inlineJsonInvalid }">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <span class="k-checkbox-wrap">\n                                        <input type="checkbox" id="checkbox-embed-file" class="k-checkbox k-checkbox-md k-rounded-md"\n                                               data-bind="checked: model.UseInlineJson" />\n                                    </span>\n                                    <label title="#: data.stringResources.JsonEmbedInReportDefinition #" class="k-checkbox-label" for="checkbox-embed-file">\n                                        #: data.stringResources.JsonEmbedInReportDefinition #\n                                    </label>\n                                </div>\n                                <div class="editor__value">\n                                    <div class="twd-editor -top-label -textarea  -data-preview" data-bind="css: { -invalid: inlineJsonInvalid }">\n                                        <label class="editor__content">\n                                            <span data-bind="attr: { data-enabled: model.UseInlineJson }"\n                                                  class="editor__name" title="#: data.stringResources.JsonInlineFileMessage #">#: data.stringResources.JsonInlineFileMessage #</span>\n                                            <textarea spellcheck="false" wrap="hard" class="k-textbox k-input k-input-md k-rounded-md editor__value"\n                                                      data-bind="enabled: model.UseInlineJson, value: model.InlineText">\n                                            </textarea>\n                                        </label>\n                                    </div>\n                                </div>\n                                <div class="editor__error">\n                                    <span>#: data.stringResources.DataSourceInvalidJsonData #</span>\n                                </div>\n                            </div>\n                        </div>\n                    ',previewDataSourcePageComponentTemplate:'\n                        <div class="twd-editor -header">\n                            <h3 title="#: data.stringResources.PreviewResultsHeader #">#: data.stringResources.PreviewResultsHeader #</h3>\n                        </div>\n                        <div class="twd-editor -data-preview">\n                            <div class="editor__content">\n                                <div class="k-widget editor__preview-wrapper">\n                                    <div wrap="hard" class="editor__value ws-p"\n                                         data-bind="text: model.previewText">\n                                    </div>\n                                </div>\n                                <div>#: data.stringResources.DataSourcePreviewTotalRows #: #: data.model.totalRows #</div>\n                            </div>\n                        </div>\n                    '}},ObjectDataSource:{Pages:{chooseBusinessObjectPageComponentTemplate:'\n                        <div class="twd-editor -header">\n                            <h3 title="#: data.stringResources.ObjectDataSourceChooseBusinessObject #">#: data.stringResources.ObjectDataSourceChooseBusinessObject #</h3>\n                            <div class="editor__info">#: data.stringResources.ObjectDataSourceChooseBusinessObjectDescription #</div>\n                        </div> \n                            <div class="twd-editor -top-label -ods">\n                                <div class="editor__content">\n                                    <div class="editor__name">\n                                        <span class="k-checkbox-wrap">\n                                            <input type="checkbox" id="checkbox-data-components" class="k-checkbox k-checkbox-md k-rounded-md"\n                                                   data-bind="checked: model.ShowDataComponentsOnly" />\n                                        </span>\n                                        <label title="#: data.stringResources.ObjectDataSourceShowDataObjectsOnly #" class="k-checkbox-label" for="checkbox-data-components">\n                                            #: data.stringResources.ObjectDataSourceShowDataObjectsOnly #\n                                        </label>\n                                    </div>\n                                    <div class="editor__value">\n                                        <div data-role="treeview"\n                                             data-bind="source: model.typeModelTreeViewDataSource,\n                                                events: { select: onTypeModelTreeViewSelect, dataBound: onTypeModelTreeViewDataBound }"\n                                             data-text-field="[\'Namespace\', \'DisplayName\']"\n                                             data-load-on-demand="false">\n                                        </div>\n                                    </div>\n                                    <div class="editor__nodata" data-bind="visible: model.IsTypeModelEmpty">#: data.stringResources.ObjectDataSourceNoTypeModelMessage #</div>\n                                </div>\n                            </div>\n                        \n                            <div class="twd-editor -top-label -border-top -ods">\n                                <div class="editor__content">\n                                    <div class="editor__name">#: data.stringResources.ObjectDataSourceSelectedObjectLabel #</div>\n                                    <input class="k-textbox k-input k-input-md k-rounded-md editor__value" spellcheck="false" type="text" readonly\n                                            data-bind="value: model.dataSource" />\n                                </div>\n                            </div> \n                        \n                    ',chooseDataMemberPageComponentTemplate:'\n                        <div class="twd-editor -header">\n                            <h3 title="#: data.stringResources.ObjectDataSourceChooseDataMember #">#: data.stringResources.ObjectDataSourceChooseDataMember #</h3>\n                            <div class="editor__info">#: data.stringResources.ObjectDataSourceChooseDataMemberDescription #</div>\n                        </div> \n                        <div class="twd-editor -top-label -radio-enum -ods">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <span class="k-radio-wrap">\n                                        <input type="radio" data-type="boolean" name="ctor-or-data-member-group" id="radio-use-ctor" class="k-radio k-radio-md"\n                                               data-bind="checked: model.UseDefaultCtor" value="true" />\n                                    </span>\n                                    <label title="#: data.stringResources.ObjectDataSourceUseDefaultCtor #" class="k-radio-label" for="radio-use-ctor">\n                                        #: data.stringResources.ObjectDataSourceUseDefaultCtor #\n                                    </label>\n                                </div>\n                            </div>\n                        </div>\n                        <div class="twd-editor -top-label -radio-enum -ods -data-members" data-bind="css: { -invalid: model.UseDefaultCtor }">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <span class="k-radio-wrap">\n                                        <input type="radio" data-type="boolean" name="ctor-or-data-member-group" id="radio-data-member" class="k-radio k-radio-md"\n                                               data-bind="checked: model.UseDefaultCtor, disabled: model.IsDataMemberModelEmpty" value="false" />\n                                    </span>\n                                    <label title="#: data.stringResources.ObjectDataSourceUseDataMember #" class="k-radio-label" for="radio-data-member">\n                                        #: data.stringResources.ObjectDataSourceUseDataMember #\n                                    </label>\n                                </div>\n                                <div class="editor__value" data-bind="childTreeviewDisabled: model.UseDefaultCtor">\n                                    <div data-role="treeview"\n                                            data-bind="source: model.dataMembersTreeViewDataSource,\n                                            events: { select: onDataMembersTreeViewSelect, dataBound: onDataMembersTreeViewDataBound }"\n                                            data-text-field="DisplayName"\n                                            data-load-on-demand="false">\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class="twd-editor -top-label -border-top -ods">\n                            <div class="editor__content">\n                                <div class="editor__name">#: data.stringResources.ObjectDataSourceSelectedMemberLabel #</div>\n                                <input class="k-textbox k-input k-input-md k-rounded-md editor__value" spellcheck="false" type="text" readonly\n                                        placeholder="#: data.stringResources.ObjectDataSourceSelectedDataMemberPlaceholder #"\n                                        data-bind="value: model.dataMember" />\n                            </div>\n                        </div> \n                        \n                    ',configureParametersPageComponentTemplate:"\n                        <div class=\"twd-editor -header\">\n                            <h3 title=\"#: data.stringResources.ObjectDataSourceConfigureParameters #\">#: data.stringResources.ObjectDataSourceConfigureParameters #</h3>\n                            <div class=\"editor__info\">#: data.stringResources.ObjectDataSourceConfigureParametersDescription #</div>\n                        </div>\n                        \n                        <div class=\"twd-editor -top-label -ods -data-preview\">\n                            <div class=\"editor__content\">\n                                <div class=\"editor__name\">#: data.stringResources.ObjectDataSourceParameterLabel #</div>\n                                    <div class=\"editor__grid-parameters\"\n                                         data-role=\"grid\"\n                                         data-editable=\"true\"\n                                         data-sortable=\"false\"\n                                         data-scrollable=\"false\"\n                                         data-selectable=\"false\"\n                                         data-bind=\"source: model.parametersDataSource\"\n                                         data-columns=\"[\n                                     { 'field': 'name', title: '#: data.stringResources.ObjectDataSourceParameterName #', 'width': '20%' },\n                                     { 'field': 'dataType', title: '#: data.stringResources.ObjectDataSourceParameterType #', 'width': '20%' },\n                                     { 'field': 'value', title: '#: data.stringResources.ObjectDataSourceParameterValue #','width': '30%' },\n                                     { 'field': 'designTimeValue', title: '#: data.stringResources.ObjectDataSourceParameterDesignValue #', 'width': '30%' },\n                                     ]\">\n                                </div>\n                            </div>\n                        </div>\n                    ",previewDataSourcePageComponentTemplate:'\n                        <div class="twd-editor -header">\n                            <h3 title="#: data.stringResources.PreviewResultsHeader #">#: data.stringResources.PreviewResultsHeader #</h3>\n                            <div class="editor__info">#: data.stringResources.ObjectDataSourcePreviewResultsDescription #</div>\n                        </div>\n                        <div class="twd-editor -ods -data-preview">\n                            <div class="editor__content">\n                        \n                                <div class="k-widget editor__preview-wrapper -showData" data-bind="visible: model.TotalRows">\n                                    <div class="editor__grid-parameters"\n                                         data-role="grid"\n                                         data-sortable="false"\n                                         data-editable="false"\n                                         data-scrollable="false"\n                                         data-selectable="false"\n                                         data-bind="source: model.previewGridDataSource"\n                                         data-auto-bind="false">\n                                    </div>\n                                </div>\n                                <span class="editor__total" data-bind="visible: model.TotalRows">#: data.stringResources.DataSourcePreviewTotalRows #: <span data-bind="text: model.TotalRows"></span></span>\n                                <span data-bind="visible: model.IsLoading">Loading...</span>\n                                <span data-bind="visible: model.HasNoData">#: data.stringResources.ObjectDataSourcePreviewNoData #</span>\n                            </div>\n                        </div>\n                        \n                    '}},Shared:{editInlineJsonComponentTemplate:'\n                    <div class="twd-editor -top-label -radio-enum" data-bind="css: { -invalid: isInlineJsonContentInvalid }">\n                        <div class="editor__content">\n                            <div class="editor__name">\n                                <span class="k-radio-wrap">\n                                    <input type="radio"\n                                           data-type="number"\n                                           name="inline-json"\n                                           id="radio-inline-json"\n                                           class="k-radio k-radio-md"\n                                           value="1"\n                                           data-bind="checked: RadioChecked, events: { change: selectionChanged }" />\n                                </span>\n                                <label title="#: data.title #" class="k-radio-label" for="radio-inline-json">\n                                    #: data.title #\n                                </label>\n                            </div>\n                            <div class="editor__value">\n                                <div class="twd-editor -top-label -textarea" data-bind="css: { -invalid: isInlineJsonInvalid }">\n                                    <label class="editor__content">\n                                        <span data-bind="attr: { data-enabled: isEnabled }"\n                                              class="editor__name"\n                                              title="#: data.stringResources.JsonEnterTextPlaceholder #">\n                                            #: data.stringResources.JsonEnterTextPlaceholder #\n                                        </span>\n                    \n                                        <textarea spellcheck="false"\n                                                  wrap="hard"\n                                                  class="k-textbox k-input k-input-md k-rounded-md editor__value"\n                                                  data-value-update="input"\n                                                  data-bind="value: model.InlineText, enabled: isEnabled">\n                                        </textarea>\n                                    </label>\n                                </div>\n                            </div>\n                            <div class="editor__error">\n                                <span>#: data.stringResources.DataSourceInvalidJsonData #</span>\n                            </div>\n                        </div>\n                    </div>\n                ',uploadJsonFileComponentTemplate:'\n                    <div class="twd-editor -top-label -radio-enum -upload -dropzone" data-bind="css: { -invalid: isExternalFileInvalid }">\n                        <div class="editor__content">\n                            <div class="editor__name">\n                                <span class="k-radio-wrap">\n                                    <input type="radio"\n                                           data-type="number"\n                                           name="external-file"\n                                           id="radio-external-file"\n                                           class="k-radio k-radio-md"\n                                           value="1"\n                                           data-bind="checked: RadioChecked, events: { change: selectionChanged }" />\n                                </span>\n                                <label title="#: data.title #" class="k-radio-label" for="radio-external-file">\n                                    #: data.title #\n                                </label>\n                            </div>\n                            <div class="editor__value">\n                                <div class="editor__upload">\n                                    <input id="input-external-file"\n                                           type="file"\n                                           accept=".json"\n                                           data-role="upload"\n                                           data-async="{ saveUrl: \'chunkSave\', removeUrl: \'remove\', autoUpload: false }"\n                                           data-localization="{ select: \'Choose file...\', dropFilesHere: \'or Drop file here to upload...\' }"\n                                           data-multiple="false"\n                                           data-bind="enabled: isEnabled, events: { select: uploadFile, remove: fileRemoved }" />\n                                </div>\n                            </div>\n                            # if (data.additionalInformation) { #\n                                <span class="editor__info" title="#: data.additionalInformation #">\n                                    #: data.additionalInformation #\n                                </span>\n                            # } #\n                            <div class="editor__error">\n                                <span data-bind="text: ExternalFileError"></span>\n                            </div>\n                        </div>\n                    </div>\n                '},SqlDataSource:{Pages:{chooseDataConnectionPageComponentTemplate:'\n                        <div class="twd-editor -header">\n                            <h3 title="#: data.stringResources.SQLDataConnectionHeader #">#: data.stringResources.SQLDataConnectionHeader #</h3>\n                        </div>\n                        <div class="twd-editor -top-label -radio-enum">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <span class="k-radio-wrap">\n                                        <input type="radio"\n                                               data-type="boolean"\n                                               name="sql-connection"\n                                               id="existingSQLConnection"\n                                               class="k-radio k-radio-md"\n                                               data-bind="checked: Model.UsePredefinedConnection"\n                                               value="true" />\n                                    </span>\n                                    <label title="#: data.stringResources.SQLExistingDataConnection #" class="k-radio-label" for="existingSQLConnection">\n                                        #: data.stringResources.SQLExistingDataConnection #\n                                    </label>\n                                </div>\n                                <div class="editor__value">\n                                    <div class="twd-editor -top-label -enum">\n                                        <label class="editor__content">\n                                            <input class="editor__value editor__dropdown"\n                                                   data-role="dropdownlist"\n                                                   data-text-field="Name"\n                                                   data-value-field="Name"\n                                                   data-auto-bind="false"\n                                                   data-bind="value: Model.SelectedConnectionName,\n                                                                enabled: Model.UsePredefinedConnection,\n                                                                source: Model.AvailableConnections" />\n                                        </label>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class="twd-editor -top-label -radio-enum">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <span class="k-radio-wrap">\n                                        <input type="radio" data-type="boolean"\n                                               name="sql-connection"\n                                               id="newSQLConnection"\n                                               class="k-radio k-radio-md"\n                                               data-bind="enabled: Model.CanAddConnection, checked: Model.UsePredefinedConnection"\n                                               value="false" />\n                                    </span>\n                                    <label title="#: data.stringResources.SQLNewDataConnection #" class="k-radio-label" for="newSQLConnection">\n                                        #: data.stringResources.SQLNewDataConnection #\n                                    </label>\n                                </div>\n                                <div class="editor__value">\n                                    <div class="twd-editor -top-label -enum">\n                                        <label class="editor__content">\n                                            <span data-bind="attr: { data-disabled: Model.UsePredefinedConnection }"\n                                                  class="editor__name"\n                                                  title="#: data.stringResources.SQLDataProvider #">\n                                                #: data.stringResources.SQLDataProvider #\n                                            </span>\n                                            <input id="twd-sql-ds-available-providers"\n                                                   class="editor__value editor__dropdown"\n                                                   data-role="combobox"\n                                                   data-auto-bind="false"\n                                                   data-filter="contains"\n                                                   data-suggest="true"\n                                                   data-bind="value: Model.ProviderName,\n                                                                    disabled: Model.UsePredefinedConnection,\n                                                                    source: Model.AvailableProviders" />\n                                        </label>\n                                    </div>\n                                    <div class="twd-editor -top-label -textarea">\n                                        <label class="editor__content">\n                                            <span data-bind="attr: { data-disabled: Model.UsePredefinedConnection }"\n                                                  class="editor__name"\n                                                  title="#: data.stringResources.SQLConnectionString #">\n                                                #: data.stringResources.SQLConnectionString #\n                                            </span>\n                                            <textarea spellcheck="false"\n                                                      wrap="hard"\n                                                      class="k-textbox k-input k-input-md k-rounded-md editor__value"\n                                                      data-value-update="input"\n                                                      data-bind="value: Model.ConnectionString, disabled: Model.UsePredefinedConnection">\n                                            </textarea>\n                                        </label>\n                                    </div>\n                        \n                                    <div class="twd-editor -top-label -last"\n                                         data-bind="css: { -invalid: Model.ConnectionError }">\n                                        <div class="editor__content">\n                                            <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base test-connection" data-bind="disabled: Model.UsePredefinedConnection, click: testConnectionClick">\n                                                #: data.stringResources.TestSqlConnection #\n                                            </button>\n                        \n                                            <div class="editor__error">\n                                                <span>#: data.stringResources.ConnectionError #</span>\n                                                <span data-bind="text: Model.ConnectionError"></span>\n                                            </div>\n                        \n                                            <div class="editor__success connection-success" data-bind="style: { display: getSuccessMessageDisplay }">\n                                                <span>#: data.stringResources.ConnectionSuccess #</span>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    ',configureDataSourceCommandPageComponentTemplate:'\n                        <div class="twd-editor -header">\n                            <h3 title="#: data.stringResources.SQLDataCommandHeader #">#: data.stringResources.SQLDataCommandHeader #</h3>\n                            <div class="editor__info">#: data.stringResources.SQLDataCommandSubHeader #</div>\n                        </div>\n                        <div class="twd-editor -textarea -top-label -radio-enum">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <span class="k-radio-wrap">\n                                        <input type="radio"\n                                               name="sql-command"\n                                               id="input-select-statement"\n                                               class="k-radio k-radio-md"\n                                               value="true"\n                                               data-type="boolean"\n                                               data-bind="checked: Model.IsSelectCommandType" />\n                                    </span>\n                                    <label title="#: data.stringResources.SQLDataCommandSelectStatement #"\n                                           class="k-radio-label"\n                                           for="input-select-statement">\n                                        #: data.stringResources.SQLDataCommandSelectStatement #\n                                    </label>\n                                </div>\n                                <div class="editor__value">\n                                    <div class="twd-editor -textarea -top-label">\n                                        <label class="editor__content">\n                                            <textarea spellcheck="false"\n                                                      wrap="hard"\n                                                      class="k-textarea k-input k-input-md k-rounded-md editor__value"\n                                                      data-value-update="input"\n                                                      data-bind="value: Model.SelectStatement, enabled: Model.IsSelectCommandType">\n                                            </textarea>\n                                            <div class="editor__error">\n                                                <span>#: data.stringResources.SqlDataCommandSelectStatementValidation #</span>\n                                            </div>\n                                        </label>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class="twd-editor -top-label -radio-enum">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <span class="k-radio-wrap">\n                                        <input type="radio"\n                                               name="sql-command"\n                                               data-type="boolean"\n                                               id="input-stored-procedure"\n                                               class="k-radio k-radio-md"\n                                               value="false"\n                                               data-bind="checked: Model.IsSelectCommandType" />\n                                    </span>\n                                    <label\n                                           title="#: data.stringResources.SQLDataCommandStoredProcedure #"\n                                           class="k-radio-label"\n                                           for="input-stored-procedure">\n                                        #: data.stringResources.SQLDataCommandStoredProcedure #\n                                    </label>\n                                </div>\n                                <div class="editor__value" style="height: auto;">\n                                    <input class="editor__dropdown"\n                                           data-role="dropdownlist"\n                                           data-auto-bind="true"\n                                           data-value-primitive="true"\n                                           data-option-label="Select stored procedure"\n                                           data-bind="value: Model.SelectedProcedure,\n                                                        disabled: Model.IsSelectCommandType,\n                                                        source: Model.Procedures" />\n                                    <div class="editor__error">\n                                        <span>#: data.stringResources.SqlDataCommandStoredProcedureValidation #</span>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    ',configureDataSourceParametersPageTemplate:"\n                        <div class=\"twd-editor -header\">\n                            <h3 title=\"#: data.stringResources.SQLDataParametersHeader #\">#: data.stringResources.SQLDataParametersHeader #</h3>\n                            <div class=\"editor__info\">#: data.stringResources.SQLDataParametersSubHeader #</div>\n                        </div>\n                        \n                        <div class=\"twd-editor -grid -parameters\">\n                            <div class=\"editor__content\">\n                                <div class=\"editor__grid-parameters\" data-role=\"grid\"\n                                     data-sortable=\"false\"\n                                     data-editable=\"true\"\n                                     data-scrollable=\"false\"\n                                     data-selectable=\"false\"\n                                     data-toolbar=\"[{'text':'#: data.stringResources.SQLDataAddparameters #', iconClass: 'k-icon k-i-plus', 'name':'addParameter'}]\"\n                                     data-bind=\"source: Model.Parameters,\n                                                events: { save: Model.validateParameterName }\"\n                                     data-auto-bind=\"false\"\n                                     data-columns=\"[\n                                                        { 'field': 'Name', title: '#: data.stringResources.SQLDataParameterName #', 'width': '20%'},\n                                                        { 'field': 'DbType', title: '#: data.stringResources.SQLDataParameterDBType #', 'width': '20%'},\n                                                        { 'field': 'Value.Value', title: '#: data.stringResources.SQLDataParameterValue #'},\n                                                        { 'command': [{\n                                                            name: 'destroy',\n                                                            text: '',\n                                                            className: 'k-button-icon',\n                                                            iconClass: 'k-icon k-i-delete'\n                                                        }], 'width': 50, title: '#: data.stringResources.SQLDataParameterDelete #', }\n                                                    ]\">\n                                </div>\n                        \n                                <div class=\"editor__error\">#: data.stringResources.SQLDataParameterNameValidation #</div>\n                            </div>\n                        </div>\n                    ",configureDesignTimeParametersPageTemplate:'\n                        <div class="twd-editor -header">\n                            <h3 title="#: data.stringResources.SQLDataDesignerParametersHeader #">#: data.stringResources.SQLDataDesignerParametersHeader #</h3>\n                            <div class="editor__info">#: data.stringResources.SQLDataDesignerParametersSubHeader #</div>\n                        </div>\n                        \n                        <div class="twd-editor -grid -designer-parameters">\n                            <div class="editor__content">\n                                <div class="editor__grid-parameters" data-role="grid"\n                                     data-sortable="false"\n                                     data-editable="true"\n                                     data-scrollable="false"\n                                     data-selectable="false"\n                                     data-bind="source: Model.DesignTimeParameters"\n                                     data-auto-bind="false"\n                                     data-columns="[\n                                                        { \'field\': \'Name\', title: \'#: data.stringResources.SQLDataParameterName #\', \'width\': \'20%\'},\n                                                        { \'field\': \'Value.Value\', title: \'#: data.stringResources.SQLDataParameterValue #\'},\n                                                    ]">\n                                </div>\n                            </div>\n                        </div>\n                    ',dataConnectionOptionsPageComponentTemplate:'\n                        <div class="twd-editor -header">\n                            <h3 title="#: data.stringResources.SQLDataSourceSaveConnectionHeader #">#: data.stringResources.SQLDataSourceSaveConnectionHeader #</h3>\n                        </div>\n                        <div class="twd-editor -top-label -radio-enum">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <span class="k-radio-wrap">\n                                        <input type="radio" data-type="boolean" value="true"\n                                               name="sql-connection-option" id="input-connection-name" class="k-radio k-radio-md" data-bind="checked: Model.UseAsShared" />\n                                    </span>\n                                    <label title="#: data.stringResources.SQLDataSourceSharedConnection #" class="k-radio-label" for="input-connection-name">\n                                        #: data.stringResources.SQLDataSourceSharedConnection #\n                                    </label>\n                                    <div class="editor__info" data-bind="text: Model.SharedDescription"></div>\n                                </div>\n                                <div class="editor__value">\n                                    <div class="twd-editor -top-label -input">\n                                        <label class="editor__content">\n                                            <span class="editor__name" title="#: data.stringResources.SQLDataSourceConnectionAlias #">#: data.stringResources.SQLDataSourceConnectionAlias #</span>\n                                            <input spellcheck="false"\n                                                   type="text"\n                                                   data-value-update="input"\n                                                   data-bind="value: Model.ConnectionName, enabled: Model.CanAddConnection"\n                                                   class="k-textbox k-input k-input-md k-rounded-md editor__value" />\n                                        </label>\n                                    </div>\n                                    <div class="editor__error">\n                                        <span>#: data.stringResources.SqlDataSourceSharedConnectionError #</span>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class="twd-editor -top-label -radio-enum">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <span class="k-radio-wrap">\n                                        <input type="radio" data-type="boolean" value="false" name="sql-connection-option"\n                                               id="existingSQLConnection" class="k-radio k-radio-md"\n                                               data-bind="checked: Model.UseAsShared, enabled: Model.CanEmbeddedConnection" />\n                                    </span>\n                                    <label title="#: data.stringResources.SQLDataEmbeddedConnection #" class="k-radio-label" for="existingSQLConnection">\n                                        #: data.stringResources.SQLDataEmbeddedConnection #\n                                    </label>\n                                    <div class="editor__info" data-bind="text: Model.EmbeddedDescription"></div>\n                                </div>\n                            </div>\n                        </div>\n                    ',previewDataSourcePageComponentTemplate:'\n                        <div class="twd-editor -header">\n                            <h3 title="#: data.stringResources.PreviewResultsHeader #">#: data.stringResources.PreviewResultsHeader #</h3>\n                            <div class="editor__info">#: data.stringResources.SQLDataPreviewSubHeader #</div>\n                        </div>\n                        <div class="twd-editor -data-query">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <div>\n                                        #: data.stringResources.SQLDataPreviewShowRows #\n                                        <input type="number" class="k-textbox k-input k-input-md k-rounded-md data-rows"\n                                               data-bind="value: Model.Rows, change: " /> \n                                        #: data.stringResources.SQLDataPreviewRows #\n                                    </div>\n                                    <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base data-execute-query" data-bind="click: executeQuery">#: data.stringResources.SQLDataPreviewQueryButton #</button>\n                                </div>\n                            </div>\n                        </div>\n                        <div class="twd-editor -data-preview" data-bind="css: { -invalid: HasError }">\n                            <div class="editor__error">\n                                <span>#: data.stringResources.SQLDataPreviewError #</span>\n                                <span data-bind="text: Error"></span>\n                            </div>\n                            <div class="editor__content -sql">\n                                <div class="k-widget editor__preview-wrapper" data-bind="css: { -showData: ShowData, -invalid: HasError }">\n                                    <span>#: data.stringResources.SQLDataPreviewQuery #</span>\n                                    <div class="editor__grid-parameters"\n                                         data-role="grid"\n                                         data-sortable="false"\n                                         data-editable="false"\n                                         data-scrollable="false"\n                                         data-selectable="false"\n                                         data-bind="source: Model.QueryDataSource"\n                                         data-auto-bind="false">\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    '}},WebServiceDataSource:{Pages:{basicAuthenticationPageComponentTemplate:'\n                        <div class="twd-editor -header">\n                            <h3 title="#: data.stringResources.WebServiceDataSourceBasicAuthenticationHeader #">#: data.stringResources.WebServiceDataSourceBasicAuthenticationHeader #</h3>\n                        </div>\n                        <div class="twd-editor">\n                            <label title="#: data.stringResources.WebServiceDataSourceUsernamePassword #">\n                                #: data.stringResources.WebServiceDataSourceUsernamePassword #\n                            </label>\n                        </div>\n                        <div class="m-b-10">\n                            <input id="input-username"\n                                   class="k-textbox k-input k-input-md k-rounded-md"\n                                   spellcheck="false"\n                                   type="text"\n                                   placeholder="#: data.stringResources.WebServiceDataSourceAuthenticationUsernamePlaceholder #"\n                                   data-value-update="input"\n                                   data-bind="value: Model.Username" />\n                        </div>\n                        <div>\n                            <input id="input-password"\n                                   class="k-textbox k-input k-input-md k-rounded-md"\n                                   spellcheck="false"\n                                   type="password"\n                                   placeholder="#: data.stringResources.WebServiceDataSourceAuthenticationPasswordPlaceholder #"\n                                   data-value-update="input"\n                                   data-bind="value: Model.Password" />\n                        </div>\n                    ',chooseDataSourcePageComponentTemplate:'\n                        <div class="twd-editor -header">\n                            <h3 title="#: data.stringResources.WebServiceDataSourceHeader #">#: data.stringResources.WebServiceDataSourceHeader #</h3>\n                        </div>\n                        <div class="twd-editor -top-label -services -last">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <label title="#: data.stringResources.WebServiceDataSourceSettings #">\n                                        #: data.stringResources.WebServiceDataSourceSettings #\n                                    </label>\n                                </div>\n                                <div class="editor__value">\n                                    <div class="twd-editor -top-label -gridlayout -textarea">\n                                        <div class="editor__content">\n                                            <input id="input-serviceurl"\n                                                   class="k-textbox k-input k-input-md k-rounded-md editor__value"\n                                                   spellcheck="false"\n                                                   type="text"\n                                                   placeholder="#: data.stringResources.WebServiceDataSourceServiceUrlPlaceholder #"\n                                                   data-value-update="input"\n                                                   data-bind=" value: Model.ServiceUrl, css: { error: hasServiceUrlError }" />\n                                            <input class="editor__value col2" data-role="dropdownlist"\n                                                   data-bind="value: Model.AuthType,\n                                                                              source: Model.AuthenticationTypes" />\n                                            <input class="editor__value col3" data-role="dropdownlist"\n                                                   data-bind="value: Model.RequestType,\n                                                                              source: Model.RequestTypes" />\n                                            <textarea spellcheck="false"\n                                                      wrap="hard"\n                                                      class="k-textbox k-input k-input-md k-rounded-md editor__value"\n                                                      placeholder="#: data.stringResources.WebServiceDataSourceRequestBodyPlaceholder #"\n                                                      data-bind="value: Model.RequestBody, enabled: Model.IsPostRequest">\n                                            </textarea>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class="twd-editor -top-label">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <label title="#: data.stringResources.WebServiceDataSourceRequestEncoding #">\n                                        #: data.stringResources.WebServiceDataSourceRequestEncoding #\n                                    </label>\n                                </div>\n                                <div class="editor__value">\n                                    <input class="editor__dropdown"\n                                           data-role="dropdownlist"\n                                           data-text-field="Description"\n                                           data-value-field="CodePage"\n                                           data-bind="value: Model.Encoding,\n                                                                    source: Model.Encodings" />\n                                </div>\n                            </div>\n                        </div>\n                        <div class="twd-editor -top-label -last -border-top">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <label title="#: data.stringResources.DataSourceDataSelector #">\n                                        #: data.stringResources.DataSourceDataSelector #\n                                    </label>\n                                </div>\n                                <input class="k-textbox k-input k-input-md k-rounded-md editor__value" spellcheck="false" type="text" placeholder="#: data.stringResources.DataSourceDataSelectorPlaceholder #"\n                                       data-bind=" value: Model.DataSelector" />\n                            </div>\n                        </div>\n                    ',configureAuthenticationParametersPageComponentTemplate:"\n                        <div class=\"twd-editor -header\">\n                            <h3 title=\"#: data.stringResources.WebServiceDataSourceAuthenticationParametersHeader #\">#: data.stringResources.WebServiceDataSourceAuthenticationParametersHeader #</h3>\n                            <div class=\"editor__info\">#: data.stringResources.WebServiceDataSourceParametersSubHeader #</div>\n                        </div>\n                        \n                        <div class=\"twd-editor -grid -parameters\">\n                            <div class=\"editor__content\">\n                                <div class=\"editor__grid-parameters\" data-role=\"grid\"\n                                     data-sortable=\"false\"\n                                     data-editable=\"true\"\n                                     data-scrollable=\"false\"\n                                     data-selectable=\"false\"\n                                     data-toolbar=\"[{'text':'#: data.stringResources.WebServiceDataSourceAddParameter #', iconClass: 'k-icon k-i-plus', 'name':'addParameter'}]\"\n                                     data-bind=\"source: Model.RequestParameters,\n                                                               events: { save: validateParameterName }\"\n                                     data-auto-bind=\"false\"\n                                     data-columns=\"[\n                                                        { 'field': 'name', title: '#: data.stringResources.WebServiceDataSourceParameterName #', 'width': '20%'},\n                                                        { 'field': 'type', title: '#: data.stringResources.WebServiceDataSourceParameterType #', 'width': '20%'},\n                                                        { 'field': 'value', title: '#: data.stringResources.WebServiceDataSourceParameterValue #'},\n                                                        { 'field': 'designTimeValue', title: '#: data.stringResources.WebServiceDataSourceParameterDesignValue #'},\n                                                        { 'command': [{\n                                                            name: 'destroy',\n                                                            text: '',\n                                                            className: 'k-button-icon',\n                                                            iconClass: 'k-icon k-i-delete'\n                                                        }], 'width': 50, title: '#: data.stringResources.WebServiceDataSourceParameterDelete #', }\n                                                    ]\">\n                                </div>\n                        \n                                <div class=\"editor__error\">#: data.stringResources.WebServiceDataSourceParameterNameValidation #</div>\n                            </div>\n                        </div>\n                    ",configureDesignTimePageComponentTemplate:'\n                        <div class="twd-editor -header">\n                            <h3 title="#: data.stringResources.WebServiceDataSourceDesignTimeDataHeader #">#: data.stringResources.WebServiceDataSourceDesignTimeDataHeader #</h3>\n                        </div>\n                        <div class="twd-editor -top-label -radio-enum">\n                            <div class="editor__content">\n                                <div class="editor__name">\n                                    <span class="k-radio-wrap">\n                                        <input type="radio" data-type="number" id="radio-real-data" class="k-radio k-radio-md"\n                                               data-bind="checked: Model.SelectedType" value="1" />\n                                    </span>\n                                    <label title="#: data.stringResources.WebServiceDataSourceUseRealData #" class="k-radio-label" for="radio-real-data">\n                                        #: data.stringResources.WebServiceDataSourceUseRealData #\n                                    </label>\n                                </div>\n                            </div>\n                        </div>\n                        <upload-json-file data-wrd-component\n                                          [title]="\'#: data.stringResources.JsonUploadFile #\'"\n                                          [additionalInformation]="\'#: data.stringResources.WebServiceDataSourceUploadFile #\'"\n                                          model="UploadJsonFileModel"\n                                          selectedTypeChanged="uploadJsonFileSelected">\n                        </upload-json-file>\n                        <edit-inline-json data-wrd-component\n                                          [title]="\'#: data.stringResources.WebServiceDataSourceUseInline #\'"\n                                          model="EditInlineJsonModel"\n                                          selectedTypeChanged="inlineTextSelected">\n                        </edit-inline-json>\n                    ',configureParametersPageComponentTemplate:"\n                        <div class=\"twd-editor -header\">\n                            <h3 title=\"#: data.stringResources.WebServiceDataSourceParametersHeader #\">#: data.stringResources.WebServiceDataSourceParametersHeader #</h3>\n                            <div class=\"editor__info\">#: data.stringResources.WebServiceDataSourceParametersSubHeader #</div>\n                        </div>\n                        \n                        <div class=\"twd-editor -grid -parameters\">\n                            <div class=\"editor__content\">\n                                <div class=\"editor__grid-parameters\" data-role=\"grid\"\n                                     data-sortable=\"false\"\n                                     data-editable=\"true\"\n                                     data-scrollable=\"false\"\n                                     data-selectable=\"false\"\n                                     data-toolbar=\"[{'text':'#: data.stringResources.WebServiceDataSourceAddParameter #', iconClass: 'k-icon k-i-plus', 'name':'addParameter'}]\"\n                                     data-bind=\"source: Model.RequestParameters,\n                                                               events: { save: validateParameterName }\"\n                                     data-auto-bind=\"false\"\n                                     data-columns=\"[\n                                                        { 'field': 'name', title: '#: data.stringResources.WebServiceDataSourceParameterName #', 'width': '20%'},\n                                                        { 'field': 'type', title: '#: data.stringResources.WebServiceDataSourceParameterType #', 'width': '20%'},\n                                                        { 'field': 'value', title: '#: data.stringResources.WebServiceDataSourceParameterValue #'},\n                                                        { 'field': 'designTimeValue', title: '#: data.stringResources.WebServiceDataSourceParameterDesignValue #', 'width': '20%'},\n                                                        { 'command': [{\n                                                            name: 'destroy',\n                                                            text: '',\n                                                            className: 'k-button-icon',\n                                                            iconClass: 'k-icon k-i-delete'\n                                                        }], 'width': 50, title: '#: data.stringResources.WebServiceDataSourceParameterDelete #', }\n                                                    ]\">\n                                </div>\n                        \n                                <div class=\"editor__error\">#: data.stringResources.WebServiceDataSourceParameterNameValidation #</div>\n                            </div>\n                        </div>\n                    ",previewDataSourcePageComponentTemplate:'\n                        <div class="twd-editor -header">\n                            <h3 title="#: data.stringResources.PreviewResultsHeader #">#: data.stringResources.PreviewResultsHeader #</h3>\n                        </div>\n                        <div class="twd-editor -data-preview">\n                            <div class="editor__content">\n                                <div class="k-widget editor__preview-wrapper">\n                                    <div wrap="hard" class="editor__value"\n                                         data-bind="source: Model.PreviewData"></div>\n                                </div>\n                            </div>\n                        </div>\n                    ',twoStepAuthenticationPageComponentTemplate:'\n                        <div class="twd-editor -header">\n                            <h3 title="#: data.stringResources.WebServiceDataSourceTwoStepAuthenticationHeader #">#: data.stringResources.WebServiceDataSourceTwoStepAuthenticationHeader #</h3>\n                        </div>\n                        <div class="twd-editor -header -two-step-authentication">\n                            <h4 title="#: data.stringResources.WebServiceDataSourceLoginSettings #">\n                                #: data.stringResources.WebServiceDataSourceLoginSettings #\n                            </h4>\n                        </div>\n                        <div class="m-b-15">\n                            <input style="width: 86%;" id="input-loginUrl"\n                                   class="k-textbox k-input k-input-md k-rounded-md"\n                                   spellcheck="false"\n                                   type="text"\n                                   placeholder="#: data.stringResources.WebServiceDataSourceAuthenticationLoginUrlPlaceholder #"\n                                   data-value-update="input"\n                                   data-bind="value: Model.LoginUrl, css: { error: hasLoginUrlError }" />\n                            <input style="width: 12%; float: right;"\n                                   data-role="dropdownlist"\n                                   data-bind="value: Model.LoginRequestType, source: Model.RequestTypes" />\n                        </div>\n                        <div class="twd-editor -textarea">\n                            <label class="editor__content">\n                                <textarea spellcheck="false" wrap="hard" class="k-textarea k-input k-input-md k-rounded-md editor__value" placeholder="#: data.stringResources.WebServiceDataSourceRequestBodyPlaceholder #"\n                                          data-bind="value: Model.RequestBody,\n                                                                enabled: Model.IsPostRequest"></textarea>\n                            </label>\n                        </div>\n                        <div class="m-b-15">\n                            <label title="#: data.stringResources.WebServiceDataSourceUsernamePassword #">\n                                #: data.stringResources.WebServiceDataSourceUsernamePassword #\n                            </label>\n                        </div>\n                        <div class="twd-editor m-b-10">\n                            <input style="margin-right: 30px;"\n                                   id="input-username"\n                                   class="k-textbox k-input k-input-md k-rounded-md"\n                                   spellcheck="false"\n                                   type="text"\n                                   placeholder="#: data.stringResources.WebServiceDataSourceAuthenticationUsernamePlaceholder #"\n                                   data-bind=" value: Model.Username" />\n                            <input style="float: right;"\n                                   id="input-password"\n                                   class="k-textbox k-input k-input-md k-rounded-md"\n                                   spellcheck="false"\n                                   type="password"\n                                   placeholder="#: data.stringResources.WebServiceDataSourceAuthenticationPasswordPlaceholder #"\n                                   data-bind=" value: Model.Password" />\n                        </div>\n                        <div class="m-b-15">\n                            <label title="#: data.stringResources.WebServiceDataSourceAuthenticationResponseType #">\n                                #: data.stringResources.WebServiceDataSourceAuthenticationResponseType #\n                            </label>\n                        </div>\n                        <div class="twd-editor -two-step-authentication">\n                            <div class="w-100">\n                                <input class="editor__dropdown"\n                                       data-role="dropdownlist"\n                                       data-bind="value: Model.ResponseFormat, source: Model.ResponseFormats" />\n                            </div>\n                        </div>\n                        <div class="m-b-15">\n                            <label title="#: data.stringResources.WebServiceDataSourceAuthenticationTokenPath #">\n                                #: data.stringResources.WebServiceDataSourceAuthenticationTokenPath #\n                            </label>\n                        </div>\n                        <div class="twd-editor -two-step-authentication">\n                            <div>\n                                <input class="k-textbox k-input k-input-md k-rounded-md editor__value"\n                                       spellcheck="false"\n                                       type="text"\n                                       placeholder="#: data.stringResources.WebServiceDataSourceAuthenticationTokenPathPlaceholder #"\n                                       data-bind="value: Model.TokenPath" />\n                            </div>\n                        </div>\n                        <div class="twd-editor -header -border-top" style="margin-bottom: 0;">\n                            <div class="editor__content w-100">\n                                <div class="editor__name">\n                                    <h4 title="#: data.stringResources.WebServiceDataSourceLogoutSettings #">\n                                        #: data.stringResources.WebServiceDataSourceLogoutSettings #\n                                    </h4>\n                                </div>\n                            </div>\n                        </div>\n                        <div>\n                            <input style="width: 86%;"\n                                   id="input-logoutUrl"\n                                   class="k-textbox k-input k-input-md k-rounded-md"\n                                   spellcheck="false"\n                                   type="text"\n                                   placeholder="#: data.stringResources.WebServiceDataSourceAuthenticationLogoutUrlPlaceholder #"\n                                   data-bind=" value: Model.LogoutUrl" />\n                            <input style="width: 12%; float: right;"\n                                   data-role="dropdownlist"\n                                   data-bind="value: Model.LogoutRequestType, source: Model.RequestTypes" />\n                        </div>\n                    '}}}},Layouts:{FileManagement:{singleFileTemplate:'\n                <div>\n                    <div class="k-file-info">\n                        <div class="k-file-preview">\n                            <span class="k-file-icon k-icon #=selection[0].spriteCssClass#"></span>\n                        </div>\n                        <span class="k-file-name">#= selection[0].name #</span>\n                        <dl class="k-file-meta">\n                            <dt class="k-file-meta-label">Extension: </dt>\n                            <dd class="k-file-meta-value k-file-type">\n                                #= selection[0].isDirectory ? "Folder" : "File" #\n                            </dd>\n                            <dd class="k-line-break"></dd>\n                \n                            #if(selection[0].size) {#\n                            <dt class="k-file-meta-label">\n                                Size:\n                            </dt>\n                            <dd class="k-file-meta-value k-file-size"> \n                                #=selection[0].sizeInKb #\n                            </dd>\n                            <dd class="k-line-break"></dd>\n                            #}\n                \n                            if(selection[0].created) {#\n                                <dt class="k-file-meta-label">\n                                    Date Created:\n                                </dt>\n                                <dd class="k-file-meta-value k-file-created">\n                                    #=selection[0].localFormatDateCreated #\n                                </dd>\n                                <dd class="k-line-break"></dd>\n                            #}\n                            \n                            if(selection[0].modified) {#\n                                <dt class="k-file-meta-label">\n                                    Date Modified:\n                                </dt>\n                                <dd class="k-file-meta-value k-file-modified">\n                                    #=selection[0].localFormatDateModified #\n                                </dd>\n                                <dd class="k-line-break"></dd>\n                            #}\n                \n                            if(selection[0].uri && !selection[0].isDirectory) {#\n                                <dt class="k-file-meta-label">\n                                    Location:\n                                </dt>\n                                <dd class="k-file-meta-value k-file-uri">\n                                    "#=selection[0].path #"\n                                </dd>\n                                <dd class="k-line-break"></dd>\n                            #}#\n                        </dl>\n                    </div>\n                </div>\n            ',AssetManager:{assetManagerListViewTemplate:'\n                    <div class="k-listview-item" title="#: name #">\n                        <div class="k-file-preview">\n                            <span class="k-file-icon k-icon #: spriteCssClass #"></span>\n                        </div>\n                        <div class="k-file-name file-name">#: name #</div>\n                    </div>\n                ',assetManagerPreviewPaneSingleFileTemplate:'\n                    <div>\n                        <div class="k-file-info">\n                            <div class="k-file-preview">\n                                <span class="k-file-icon k-icon #=selection[0].spriteCssClass#"></span>\n                            </div>\n                            <span class="k-file-name">#= selection[0].name #</span>\n                            <dl class="k-file-meta">\n                                <dt class="k-file-meta-label">Extension:&nbsp</dt>\n                                <dd class="k-file-meta-value k-file-type">\n                                    #= selection[0].isDirectory ? "Folder" : "File" #\n                                </dd>\n                                <dd class="k-line-break"></dd>\n                    \n                                #if(selection[0].size) {#\n                                <dt class="k-file-meta-label">\n                                    Size:&nbsp\n                                </dt>\n                                <dd class="k-file-meta-value k-file-size">\n                                    #=selection[0].sizeInKb #\n                                </dd>\n                                <dd class="k-line-break"></dd>\n                                #}\n                    \n                                if(selection[0].created) {#\n                                <dt class="k-file-meta-label">\n                                    Date Created:&nbsp\n                                </dt>\n                                <dd class="k-file-meta-value k-file-created">\n                                    #=selection[0].localFormatDateCreated #\n                                </dd>\n                                <dd class="k-line-break"></dd>\n                                #}\n                    \n                                if(selection[0].modified) {#\n                                <dt class="k-file-meta-label">\n                                    Date Modified:&nbsp\n                                </dt>\n                                <dd class="k-file-meta-value k-file-modified">\n                                    #=selection[0].localFormatDateModified #\n                                </dd>\n                                <dd class="k-line-break"></dd>\n                                #}\n                    \n                                if(selection[0].uri && !selection[0].isDirectory) {#\n                                <dt class="k-file-meta-label">\n                                    Location:&nbsp\n                                </dt>\n                                <dd class="k-file-meta-value k-file-uri">\n                                    #=selection[0].path #\n                                </dd>\n                                <dd class="k-line-break"></dd>\n                                #}\n                    \n                                if(selection[0].canHaveDescription) {#\n                                <dt class="k-file-meta-label">\n                                    Description:&nbsp\n                                </dt>\n                                <dd class="k-file-meta-value k-file-modified">\n                                    # if (selection[0].description) { #\n                                    #=selection[0].description #\n                                    # } else {\n                                    # (none) #\n                                    } #\n                                </dd>\n                                <dd class="k-line-break"></dd>\n                                #}#\n                            </dl>\n                        </div>\n                    </div>\n                ',assetManagerTemplate:'\n                    <div class="designer__canvas">\n                        <file-manager data-wrd-component\n                                      id="filemanager-comp"\n                                      callbacks="fileManagerCallbacks"\n                                      itemsSelected="onFileManagerSelect" \n                                      fileDoubleClicked="onFileManagerOpenFile"\n                                      navigated="onNavigate"\n                                      dataConfig="fileManagerDataConfig">\n                        </file-manager> \n                    </div>\n                ',Editors:{assetManagerInlineEditorComponentTemplate:'\n                        <div class="twd-filemanager-inline-edit-container">\n                            <input class="file-manager-inline-edit"\n                                   type="text" data-value-update="keyup"\n                                   data-bind="value: Value, events: { keydown: onKeyDown }" />\n                        </div>\n                    ',assetManagerNewFolderWindowTemplate:'\n                        <div class="twd-editors">\n                            <div class="twd-editor -input -top-label">\n                                <label class="editor__content">\n                                    <span class="editor__name" title="#: data.stringResources.Name #">\n                                        #: data.stringResources.Name #\n                                    </span>\n                                    <input spellcheck="false"\n                                           tabindex="1"\n                                           data-value-update="keyup"\n                                           type="text"\n                                           data-bind="value: FolderName, events: { keydown: onKeyDown }"\n                                           class="k-textbox k-input k-input-md k-rounded-md editor__value" />\n                                </label>\n                            </div>\n                        </div>\n                        <div class="twd-buttons k-window-buttongroup k-actions k-actions-end">\n                            <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-primary" data-bind="click: onSave">#: data.stringResources.CreateButton #</button>\n                            <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base" data-bind="click: onClose">#: data.stringResources.CancelButton #</button>\n                        </div>\n                    '},Window:{assetManagerWindowTemplate:'\n                        <div class="k-panelbar twd-assetmanager-window" style="height: calc(100% - 57px);">\n                            <asset-manager filesSelected="onFileSelected"\n                                           navigated="onFileSelected"\n                                           forReportSelection="forReportSelection" \n                                           fileOpened="onFileOpened"\n                                           assetManagerConfig="assetManagerConfig"\n                                           initialPathPartsToNavigateTo="initialPath"\n                                           isWindowed="isWindowed"\n                                           initialItem="initialItem"\n                                           data-wrd-component></asset-manager>\n                        </div>\n                        <div class="twd-buttons k-window-buttongroup k-actions k-actions-end">\n                            <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-primary" data-bind="click: save, enabled: HasSelectedFile">#: data.stringResources.SaveButton #</button>\n                            <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base" data-bind="click: cancel">#: data.stringResources.CancelButton #</button>\n                        </div>\n                    '}},UploadComponent:{UploadComponentTemplate:'\n                    <div class="twd-dropzone-wrapper" style="height: 50%;">\n                        <div class="dropzone-element"\n                             style="height:100%; background-color: rgb(247, 247, 247); display:flex; flex-direction:column; align-items:center; border-style: dashed; border-width: 1px; border-color: rgb(202,202,202);">\n                            <div style="text-align: center; height: 55%; display: flex; align-items: flex-end">\n                                <div>\n                                    <span class="k-icon k-i-bac" style="transform: scale(2); margin-bottom:16px"></span>\n                                    <br />#: data.stringResources.DragAndDropFilesHere #<br />#: data.stringResources.Or #\n                                </div>\n                            </div> \n                            <button id="browseFiles" class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base" data-bind="click: onBrowse" style="margin-top: 16px;">#: data.stringResources.Browse #</button>\n                            <input class="twd-uploadComponent"\n                                   multiple="#: data.multipleFilesAllowed #"\n                                   accept="#: data.combinedExtensionsAllowed #"\n                                   type="file"\n                                   style="display:none"\n                                   data-bind="events: { change: onBrowseSelect }" />\n                        </div>\n                    </div>\n                    <div class="twd-upload-file-list"\n                         data-bind="repeat: UploadFilesModel.FilesToUploadLength">\n                        <div class="twd-upload-file-list-item" data-bind="css: {\n                                twd-file-upload-success: #: \'UploadFilesModel.FilesToUpload[\' + data.escapedVariable(\'_$index\') + \'].IsSuccess\' #,\n                                twd-file-upload-error: #: \'UploadFilesModel.FilesToUpload[\' + data.escapedVariable(\'_$index\') + \'].IsError\' #\n                            }">\n                            <span class="k-icon k-i-file"></span>\n                            <div class="file-name">\n                                <span>#: data.escapedVariable(\'data.UploadFilesModel.FilesToUpload[_$index].file.name\') # </span>\n                                <span>#: data.escapedVariable(\'data.getFileFormattedSize(data.UploadFilesModel.FilesToUpload[_$index])\') # KB</span>\n                            </div>\n                            <div class="twd-file-upload-response-placeholder" data-bind="text: #: \'UploadFilesModel.FilesToUpload[\' + data.escapedVariable(\'_$index\') + \'].StatusText\' #">\n                            </div>\n                            <span class="twd-upload-success-icon k-icon k-i-success"\n                                  data-bind="visible: #: \'UploadFilesModel.FilesToUpload[\' + data.escapedVariable(\'_$index\') + \'].IsSuccess\' #">\n                            </span>\n                            <a class="action-button -remove"\n                               data-bind="click: onRemove, invisible: #: \'UploadFilesModel.FilesToUpload[\' + data.escapedVariable(\'_$index\') + \'].HasSetStatus\' #"\n                               data-file-name="#: data.escapedVariable(\'data.UploadFilesModel.FilesToUpload[_$index].file.name\') #">\n                                <span class="k-icon k-i-close"></span>\n                            </a>\n                        </div>\n                    </div>\n                    \n                ',UploadWindowTemplate:'\n                    <div class="twd-upload-window" style="height:calc(100% - 57px); background-color:white">\n                        <upload-component data-wrd-component\n                                          uploadFile="onUpload"\n                                          emitUploadTriggered="emitUploadTriggered"\n                                          multipleFilesAllowed="multipleFilesAllowed"\n                                          extensionsAllowed="extensionsAllowed"\n                                          uploadAllowedChanging="uploadAllowedChanged"\n                                          uploadSucceeded="onUploadSucceeded"></upload-component>\n                    </div>\n                    \n                    <div style="width:100%">\n                        <div class="twd-buttons k-window-buttongroup k-actions k-actions-end">\n                            <button id="uploadButton" class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-primary" data-bind="click: onUploadButtonClick, enabled: UploadEnabled">#: data.stringResources.Upload #</button>\n                            <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base" data-bind="click: onClose">#: data.stringResources.CancelButton #</button>\n                        </div>\n                    </div>\n                    \n                '}},OnboardingExperience:{OnboardingExperienceTemplate:'\n                <div class="twd-onboarding-experience">\n                    <div class="k-window-content">\n                        <div class="twd-onb-title-step">\n                            <div class="twd-onb-title">\n                                <span data-bind="text: currentStep.title">\n                                </span>\n                            </div>\n                            <div class="twd-onb-stepper"></div>\n                        </div>\n                        <div class="twd-onb-step-content">\n                            <span data-bind="text: currentStep.content">\n                            </span>\n                        </div>\n                    </div>\n                    <div class="twd-onb-buttons k-window-buttongroup k-actions k-actions-end k-var--primary">\n                        <button class="twd-onb-button twd-onb-button-end k-button k-button-md k-rounded-md k-button-solid k-button-solid-primary" data-bind="text: buttonText, click: onClose"></button>\n                        <button class="twd-onb-button twd-onb-button-next k-button k-button-md k-rounded-md k-button-solid k-button-solid-primary" data-bind="text: stringResources.OnboardingExperienceNextButton, click: onClick">Next Step</button>\n                    </div>\n                </div> \n                \n                \n            '},ReportWindows:{reportCreationWindowTemplate:'\n                <div class="twd-editors twd-report-creation-window">\n                    <div class="twd-editor -input -top-label">\n                        <label class="editor__content">\n                            <span class="editor__name" title="#: data.stringResources.NewReporFileName #">#: data.stringResources.NewReporFileName #</span>\n                            <input spellcheck="false" type="text" data-bind="value: newDocumentName" value="newDocumentName" class="k-textbox k-input k-input-md k-rounded-md editor__value" />\n                        </label>\n                    </div>\n                    <div class="twd-editor -enum -top-label">\n                        <label class="editor__content">\n                            <span class="editor__name" title="#: data.stringResources.NewReporFileType #">#: data.stringResources.NewReporFileType #</span>\n                            <input class="editor__dropdown" data-role="dropdownlist" data-auto-bind="false" data-text-field="extension"\n                                   data-value-field="extension" data-bind="value: selectedExtension, source: extensions" />\n                        </label>\n                    </div>\n                    <div class="twd-editor -input -top-label">\n                        <label class="editor__content">\n                            <span class="editor__name" title="#: data.stringResources.Location #">#: data.stringResources.Location #</span>\n                            <input spellcheck="false" type="text" data-bind="value: DocLocationDisplayValue" value="DocLocationDisplayValue" class="k-textbox k-input k-input-md k-rounded-md editor__value" />\n                        </label>\n                        <button data-role="button"\n                                class="twd-open-asset-manager-button"\n                                data-icon="file-add"\n                                data-bind="\n                                events: {\n                                    click: getPathFromAssetManager\n                                }">\n                        </button>\n                    </div>\n                </div>\n                <div class="twd-buttons k-window-buttongroup k-actions k-actions-end">\n                    <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-primary" data-bind="click: onSave">#: data.stringResources.SaveButton #</button>\n                    <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base" data-bind="click: onClose">#: data.stringResources.CancelButton #</button>\n                </div>\n            ',sharedDataSourceCreationWindowTemplate:'\n                <div class="twd-editors twd-report-creation-window">\n                    <div class="twd-editor -enum -top-label">\n                        <label class="editor__content">\n                            <span class="editor__name" title="#: data.stringResources.Type #">#: data.stringResources.Type #</span>\n                            <input class="editor__dropdown" data-role="dropdownlist" data-auto-bind="false" data-text-field="displayValue"\n                                   data-value-field="type" data-bind="value: selectedDataSourceType, source: dataSourceTypes, enabled: enableDsTypeSelection" />\n                        </label>\n                    </div>\n                    <div class="twd-editor -input -top-label">\n                        <label class="editor__content">\n                            <span class="editor__name" title="#: data.stringResources.NewReporFileName #">#: data.stringResources.NewReporFileName #</span>\n                            <input spellcheck="false" type="text" data-bind="value: newDocumentName" value="newDocumentName" class="k-textbox k-input k-input-md k-rounded-md editor__value" />\n                        </label>\n                    </div>\n                    \x3c!--<div class="twd-editor -enum -top-label"> TO BE ENABLED WHEN WE SUPPORT MULTIPLE SDS EXTENSIONS\n                        <label class="editor__content">\n                            <span class="editor__name" title="#: data.stringResources.NewReporFileType #">#: data.stringResources.NewReporFileType #</span>\n                            <input class="editor__dropdown" data-role="dropdownlist" data-auto-bind="false" data-text-field="extension"\n                                   data-value-field="extension" data-bind="value: selectedExtension, source: extensions" />\n                        </label>\n                    </div>--\x3e\n                    <div class="twd-editor -input -top-label">\n                        <label class="editor__content">\n                            <span class="editor__name" title="#: data.stringResources.Location #">#: data.stringResources.Location #</span>\n                            <input spellcheck="false" type="text" data-bind="value: DocLocationDisplayValue" value="DocLocationDisplayValue" class="k-textbox k-input k-input-md k-rounded-md editor__value" />\n                        </label>\n                        <button data-role="button"\n                                class="twd-open-asset-manager-button"\n                                data-icon="file-add"\n                                data-bind="\n                                events: {\n                                    click: getPathFromAssetManager\n                                }">\n                        </button>\n                    </div>\n                    # if (data.additionalEditors) { #\n                        #= data.partialView(data.additionalEditors) #\n                    # } #\n                </div>\n                <div class="twd-buttons k-window-buttongroup k-actions k-actions-end">\n                    <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-primary -save" data-bind="click: onSave">#: data.stringResources.SaveButton #</button>\n                    # if (data.additionalButtons) { #\n                    #= data.partialView(data.additionalButtons) #\n                    # } #\n                    <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base -close" data-bind="click: onClose">#: data.stringResources.CancelButton #</button>\n                </div>\n            ',ReportFileBrowserWindow:{reportFileBrowserWindowTemplate:'\n                    <div class="twd-report-file-browser-window-fm-container">\n                        <asset-manager filesSelected="onFilesSelected"\n                                       forReportSelection="forReportSelection"\n                                       fileOpened="onFileOpened"\n                                       initialPathPartsToNavigateTo="initialPath"\n                                       assetManagerConfig="assetManagerConfig"\n                                       isWindowed="isWindowed"\n                                       data-wrd-component>\n                        </asset-manager>\n                    </div>\n                    <div class="twd-buttons twd-designer-parts k-window-buttongroup k-actions k-actions-end twd-report-file-browser-window-buttons">\n                        <button id="openButton" class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-primary" data-bind="click: open, enabled: HasSelectedFile">#: data.stringResources.OpenButton #</button>\n                        <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base" data-bind="click: cancel">#: data.stringResources.CloseButton #</button>\n                    </div>\n                '}}},Search:{GlobalSearchComponent:{globalSearchComponentTemplate:'\n                <div class="twd-global-search-wrapper" data-bind="events: { click: openPopup }">\n                    <input class="twd-global-search"\n                           maxlength="255"\n                           data-role="autocomplete"\n                           data-placeholder="#: data.stringResources.GlobalSearchPlaceholder #"\n                           data-delay="250"\n                           data-height="430"\n                           data-template="globalSearchWindowListItemTemplate"\n                           data-footer-template="globalSearchWindowListFooterTemplate"\n                           data-no-data-template="globalSearchWindowNoDataTemplate"\n                           data-bind="source: SearchResults,\n                                      enabled: IsEnabled,\n                                      events: {\n                                          filtering: onFiltering,\n                                          select: onSelect,\n                                          open: onOpen\n                                      }" />\n                \n                    <script type="text/x-kendo-template" id="globalSearchWindowListItemTemplate">\n                        #= data.listItemTemplate #\n                    <\/script>\n                    <script type="text/x-kendo-template" id="globalSearchWindowListFooterTemplate">\n                        #= data.footerTemplate #\n                    <\/script>\n                    <script type="text/x-kendo-template" id="globalSearchWindowNoDataTemplate">\n                        #: data.stringResources.NoResultsFound #\n                    <\/script>\n                </div>\n            '}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t,r){Array.isArray(e)?this.Modifiers=e:this.Modifiers=[e],this.Modifiers=this.Modifiers.filter(e=>null!=e),this.CommandName=t,this.ExcludedTargetClassNames=r}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(35),n=r(5),s=r(0),a=r(82),o=r(1);class l extends a.a{canContain(e){return!1}accept(e){e.VisitReportItem(this)}get Width(){const e=this.getProperty(s.a.Width);return n.a.Parse(e.GetValue(this,this.PropertyStore))}set Width(e){this.getProperty(s.a.Width).SetValue(e.ToString(),this,this.PropertyStore)}get Height(){const e=this.getProperty(s.a.Height);return n.a.Parse(e.GetValue(this,this.PropertyStore))}set Height(e){this.getProperty(s.a.Height).SetValue(e.ToString(),this,this.PropertyStore)}get Size(){return new i.a(this.Width,this.Height)}set Size(e){const t=this.getProperty(s.a.Width),r=this.getProperty(s.a.Height);t.SetValue(e.Width.ToString(),this,this.PropertyStore),r.SetValue(e.Height.ToString(),this,this.PropertyStore)}get Visible(){return this.getProperty(s.a.Visible).GetValue(this,this.PropertyStore)}}l.typeName=o.a.ReportItem},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(17);class n{static get reportsFolder(){return[i.c.reportsFolderName]}static get recentFolder(){return[i.c.recentFolderName]}static get resourceFolder(){return[i.c.resourceFolder.name]}static get sharedDataSourceFolder(){return[i.c.sharedDataSourceFolderName]}static get dataResourceFolder(){return[i.c.resourceFolder.name,"Data"]}static get imagesResourceFolder(){return[i.c.resourceFolder.name,"Images"]}static get stylesResourceFolder(){return[i.c.resourceFolder.name,"Styles"]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static Separator(){return"->"}static FormatText(e,t,r){const n=i.Separator();let s=e?e.Name:"";if(null==s&&(s=e.NetType,s||(s=`(${e.constructor.name})`)),t){let e=t.join(n);""!==s&&(e=`${e}${n}${s}`),s=e}return null!=r&&(s=`${s}${n}${r}`),s}static FormatFakeNodeText(e){return`[${e}]`}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return h}));var i,n=r(8),s=r(153),a=r(13),o=r(10),l=r(2),c=r(3),d=r(91),u=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};!function(e){e[e.Normal=0]="Normal",e[e.ReadOnly=1]="ReadOnly",e[e.Disabled=2]="Disabled"}(i||(i={}));class h extends o.a{constructor(e,t){super(e,t),this.childEditors=[],this.designSurfaceEventEmitter=this.provider.getService(a.b),this.stringResources=this.provider.getService(n.a),this._id=s.a.generate()}beforeInit(){super.beforeInit();const e=this.provider.getServiceByName(c.a.IEditorNameResolverService);this.setLocalizedName(e.resolve(this,this.stringResources,this.propertyWrapper))}get $scrollTarget(){return this.focusStrategy.$focusTarget}createFocusStrategy(){return new d.b(this.visualElement)}focus(){this.focusStrategy.focus()}unfocus(){this.focusStrategy.unfocus()}get LocalizedName(){return this.getByPropertyName(e=>{e.localizedName})}setLocalizedName(e){this.setByPropertyName(e=>{e.localizedName},e)}get visualElement(){return this.view.element}refreshValue(){}get id(){return this._id}get defaultLocalizedName(){return"UNNAMED EDITOR"}get EditorDepth(){return this.getByPropertyName(e=>{e.editorDepth})}set EditorDepth(e){this.setByPropertyName(e=>{e.editorDepth},e)}get State(){return this.get("state")}set State(e){this.set("state",e),this.updateStateUi()}get Enabled(){return(this.State&i.Disabled)!==i.Disabled}set Enabled(e){this.State=e?this.State&~i.Disabled:this.State|i.Disabled}get Disabled(){return!this.Enabled}set Disabled(e){this.State=i.Disabled}get Readonly(){return(this.State&i.ReadOnly)===i.ReadOnly}set Readonly(e){this.State=i.ReadOnly}get childEditorsDepth(){return this.EditorDepth+1}afterInit(){super.afterInit(),this.setNameFlexStyle(),this.State=i.Normal,this.focusStrategy=this.createFocusStrategy()}beforeDispose(){super.beforeDispose(),this.disposeChildEditors()}disposeChildEditors(){this.childEditors.length&&this.childEditors.forEach(e=>e.Dispose()),this.childEditors=[]}set NameFlexStyle(e){this.set("nameFlexStyle",e)}setNameFlexStyle(){this.LocalizedName.length&&this.EditorDepth>0&&(this.NameFlexStyle=`0 0 calc(50% - ${this.EditorDepth}*11px)`)}}u([Object(l.b)()],h.prototype,"editorDepth",void 0),u([Object(l.b)()],h.prototype,"propertyWrapper",void 0)},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get Low(){return 1}static get Medium(){return 2}static get High(){return 3}static get Always(){return 4}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{}i.TableWizard="TableWizard",i.CrosstabWizard="CrosstabWizard",i.SqlDataSourceWizard="SqlDataSourceWizard",i.JsonDataSourceWizard="JsonDataSourceWizard",i.CsvDataSourceWizard="CsvDataSourceWizard",i.WebServiceDataSourceWizard="WebServiceDataSourceWizard",i.ObjectDataSourceWizard="ObjectDataSourceWizard",i.BarGraphWizard="BarGraphWizard",i.LineGraphWizard="LineGraphWizard",i.PieGraphWizard="PieGraphWizard",i.AreaGraphWizard="AreaGraphWizard",i.ColumnGraphWizard="ColumnGraphWizard",i.RadialGaugeWizard="RadialGaugeWizard",i.LinearGaugeWizard="LinearGaugeWizard"},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(0);class n{static get Background(){return[i.a.BackgroundColor,i.a.BackgroundImage]}static get BackgroundImage(){return[i.a.ImageData,i.a.Repeat,i.a.MimeType]}static get BorderSides(){return[i.a.Default,i.a.Left,i.a.Right,i.a.Top,i.a.Bottom]}static get Alignments(){return[i.a.TextAlign,i.a.VerticalAlign]}static get TextAlign(){return[i.a.Left,i.a.Center,i.a.Justify,i.a.Right]}static get VerticalAlign(){return[i.a.Top,i.a.Middle,i.a.Bottom]}static get Style(){return[i.a.Visible,i.a.BackgroundColor,i.a.BackgroundImage,i.a.Padding,i.a.Border,i.a.FontCollection,i.a.Line]}static get FontCollection(){return[i.a.Font,i.a.Alignment,i.a.Color]}static get Font(){return[i.a.Name,i.a.Size,i.a.FontStyle]}static get FontStyle(){return[i.a.Bold,i.a.Italic,i.a.Underline,i.a.Strikeout]}static get Line(){return[i.a.LineStyle,i.a.LineWidth,i.a.LineColor]}static get Padding(){return[i.a.Left,i.a.Right,i.a.Top,i.a.Bottom]}static get Location(){return[i.a.Left,i.a.Top]}static get Size(){return[i.a.Width,i.a.Height]}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return c})),r.d(t,"a",(function(){return d}));var i=r(50),n=r(0),s=r(3),a=r(112),o=r(49),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c extends i.b{constructor(){super(...arguments),this.properties=n.a}get descendantsTemplate(){return this.templates.Editors.ExpandableEditors.InstanceType.instanceTypesEditorBaseDescendantsTemplate}get isResetVisible(){return!0}get resetPosition(){return i.d.NextToDescendantsTemplate}get instanceTypeName(){var e;return null===(e=this.SelectedInstanceType)||void 0===e?void 0:e.Value}get initialExpandedState(){return!1}get InstanceTypes(){return this.getByPropertyName(e=>{e.instanceTypes})}set InstanceTypes(e){this.setByPropertyName(e=>{e.instanceTypes},e)}get SelectedInstanceType(){return this.getByPropertyName(e=>{e.selectedInstanceType})}set SelectedInstanceType(e){this.setByPropertyName(e=>{e.selectedInstanceType},e)}get $editorsPlaceholder(){return $("#"+this.id+"__instanceTypesEditor").find(" > .editor__editors-container")}get optionLabel(){return this.stringResources.ChooseAnOption}refreshValue(){super.refreshValue(),this.SelectedInstanceType=this.InstanceTypes.find(e=>e.Value===this.getPropertyType())}initEditors(e){super.disposeChildEditors(),this.populateChildEditorsCore(e.filter(e=>e.Browsable))}beforeInit(){super.beforeInit(),this.InstanceTypes=this.getInstanceTypes(),this.SelectedInstanceType=this.InstanceTypes.find(e=>e.Value===this.getPropertyType())}afterInit(){super.afterInit(),this.Expanded=this.initialExpandedState}getInstanceTypes(){return this.propertyWrapper.Property.InstanceTypes.map(e=>{var t;return new d(e,null!==(t=this.stringResources.getString(e))&&void 0!==t?t:e)})}changeInstanceType(){this.changingInstanceType=!0,this.getInstanceTypeProperties().then(e=>{this.initEditors(e),this.changingInstanceType=!1}),this.resetManager.checkAndUpdateReset()}getChildEditorBuilders(){return this.childEditorResolver.getChildEditorBuilders(this.propertyWrapper,this.instanceTypeName)}getPropertyType(){const e=this.getPropertyWrapperValue();return e?e[n.a.NetType]:null}resetToDefaultValueInternal(){this.childEditors.forEach(e=>{e instanceof o.a&&e.resetToDefaultValue()}),super.resetToDefaultValueInternal(),this.childEditors.forEach(e=>e.Dispose())}descendantsNameFlexStyle(){return`0 0 calc(50% - ${this.childEditorsDepth} * 11px)`}getInstanceTypeProperties(){return l(this,void 0,void 0,(function*(){const e=this.instanceTypeName;if(!e)return this.resetToDefaultValue(),[];const t=this.provider.getServiceByName(s.a.ITypeDescriptorRepository);let r=t.GetPropertyTypeDescriptor(e);if(!r&&(r=yield t.GetComponentTypeDescriptor(e),!r))throw new Error(`Cannot resolve type descriptor for instance type '${e}'`);const i=this.createTypeInstance(r);return this.updatePropertyWrapperValue(i),r.GetProperties().map(e=>new a.a(this.propertyWrapper.Components,[i],e,this.propertyWrapper))}))}createTypeInstance(e){const t={};t[n.a.NetType]=e.TypeName;for(const r of e.GetProperties().filter(e=>e.Browsable))t[r.Name]=r.DefaultValue;return t}}class d{constructor(e,t){this.Value=e,this.Text=t}}},function(e,t,r){"use strict";r.d(t,"c",(function(){return c})),r.d(t,"b",(function(){return d})),r.d(t,"a",(function(){return u}));var i,n,s,a=r(4),o=r(43),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let c=i=class extends o.a{constructor(e){super(i.getEventName(),e)}};c.getEventName=()=>"DesignSurfaceModifiedStateChangedEvent",c=i=l([Object(a.e)()],c);let d=n=class extends o.b{constructor(){super(n.getEventName())}};d.getEventName=()=>"ActiveDesignSurfaceChangingEvent",d=n=l([Object(a.e)()],d);let u=s=class extends o.b{constructor(){super(s.getEventName())}};u.getEventName=()=>"ActiveDesignSurfaceChangedEvent",u=s=l([Object(a.e)()],u)},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get UploadImageEditorFileChanged(){return"UploadImageEditorFileChanged"}static get PopupUpdateValue(){return"PopupUpdateValue"}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return n})),r.d(t,"c",(function(){return s}));class i{constructor(e,t,r,i,n,s){this.isDraggable=!1,this.hasContextMenu=!1,this.displayText=e,this.fullName=t,this.spriteCssClass=r,this.nodes=[],this.selected=!1,this.expanded=!0,this.isDraggable=i,this.dataType=n,this.draggableTypeName=s}getDisplayText(){return this.displayText}getValueText(){return this.displayText}overrideEnableContextMenu(){this.hasContextMenu=!0}}class n extends i{constructor(e,t,r,i,s,a,o){super(null!=t?t:e,r,i,s,a,o),this.nodes.push=(...e)=>(n.updateValueText(this,e),Array.prototype.push.apply(this.nodes,e)),this.valueTextPath=this.valueText=null!=e?e:t}static updateValueText(e,t){t.forEach(t=>{t instanceof n&&(t.valueTextPath=e.valueTextPath+"."+t.valueText,n.updateValueText(t,t.nodes))})}getValueText(){return this.valueTextPath}}var s;!function(e){e.ReportParameter="ReportParameter",e.DataField="DataField"}(s||(s={}))},function(e,t,r){"use strict";r.d(t,"g",(function(){return a})),r.d(t,"a",(function(){return o})),r.d(t,"i",(function(){return l})),r.d(t,"c",(function(){return c})),r.d(t,"e",(function(){return d})),r.d(t,"j",(function(){return u})),r.d(t,"k",(function(){return h})),r.d(t,"h",(function(){return p})),r.d(t,"b",(function(){return m})),r.d(t,"f",(function(){return g})),r.d(t,"d",(function(){return f}));class i{constructor(e,t){this.isOk=e,this.errorMessage=t}}const n=e=>{const t=[];for(const r in e)e[r]||t.push(r);if(t.length>0){const e=t.join(" and ");return new i(!1,e+" cannot be falsy")}return new i(!0)};class s{}class a extends s{static validate(e){return void 0===e.uri&&(e.uri=""),new i(!0)}static getBody(e){return null}}class o extends s{static validate(e){return n({name:e.name})}static getBody(e){return JSON.stringify(e)}}class l extends s{constructor(){super(...arguments),this.oldUri=void 0,this.name=void 0}static validate(e){return n({oldUri:e.oldUri,name:e.name})}static getBody(e){return JSON.stringify(e)}}class c extends s{static validate(e){return n({uri:e.uri})}static getBody(e){return null}}class d extends s{static validate(e){return n({uri:e.uri})}static getBody(e){return null}}class u extends s{static validate(e){return void 0===e.parentUri&&(e.parentUri=""),n({name:e.name,asset:e.asset})}static getBody(e){return"string"==typeof e.asset?e.asset:JSON.stringify(e.asset)}}class h extends s{static validate(e){return n({name:e.name,asset:e.asset})}static getBody(e){return e.asset}}class p extends s{static validate(e){return n({oldUri:e.oldUri,name:e.name})}static getBody(e){return JSON.stringify(e)}}class m extends s{static validate(e){return n({uri:e.uri})}static getBody(e){return null}}class g extends s{static validate(e){const t=void 0!==e.dataSourceModel;return new i(t,t?void 0:"Property 'extension' can not be falsy")}static getBody(e){return JSON.stringify(e.dataSourceModel)}}class f extends s{static validate(e){const t=void 0!==e.extension&&""!==e.extension;return new i(t,t?void 0:"Property 'extension' can not be falsy")}static getBody(e){return null}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get ReportStyleSheet(){return"ReportStyleSheet"}static get ReportDataSources(){return"ReportDataSources"}static get ReportParameters(){return"ReportParameters"}static get ReportGroups(){return"Groups"}static get TableGroups(){return"TableGroups"}static get TablePart(){return"TablePart"}static get DesignTimeReportSource(){return"DesignTimeReportSource"}static get None(){return"(none)"}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return p}));var i,n,s=r(19),a=r(18),o=r(27),l=r(8),c=r(12),d=r(4),u=r(458),h=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};!function(e){e.get="GET",e.put="PUT",e.post="POST",e.delete="DELETE"}(i||(i={})),function(e){e.octetStream="application/octet-stream",e.json="application/json",e.formData="multipart/form-data"}(n||(n={}));class p extends s.a{constructor(e,t,r){super(),this.provider=e,this.reportDesignerApiUrl=t,this.storageUri=r,this.stringResources=e.getService(l.a),this.notifications=e.getService(c.a)}performFetch(e,t,r,i=n.json){return h(this,void 0,void 0,(function*(){const n={},s=new Headers;r&&(n.body=r,"string"==typeof r&&s.append("Content-Type","application/json")),s.append("Accept",i),n.method=t,n.headers=s;const a=this.reportDesignerApiUrl+this.storageUri+e;return yield fetch(a,n)}))}performRequest(e,t,r,i){return h(this,void 0,void 0,(function*(){const n=e.validate(t);if(!n.isOk)return a.b.createError("Validation of request model failed for the following reason: "+n.errorMessage);const s=e.getBody(t),l=o.a.String(r.uri,t,!0);let c;try{c=yield this.performFetch(l,r.httpMethod,s,i)}catch(e){const t=a.b.createError("A problem occurred while trying to fetch data. "+e.message);return t.setNotificationService(this.notifications),t}const d=yield c.ok?this.handleSuccess(c,r,t):this.handleError(c,r,t);return d.setNotificationService(this.notifications),d}))}handleError(e,t,r){return h(this,void 0,void 0,(function*(){if(413===e.status)return a.b.createError("File is too big for upload",e.status.toString());const i=e.headers.get("content-type");if(null==i?void 0:i.includes(n.json)){const i=yield e.json();if(u.a.isErrorResponse(i)||u.a.isExceptionResponse(i))return a.b.createError(t.errorMessage(r,e),i.errorCode?i.errorCode:"",d.b.getErrorMessage(i));if(u.a.isReportServerPascalCaseErrorResponse(i))return a.b.createError(t.errorMessage(r,e),e.status.toString(),i.Message);if("string"==typeof i)return a.b.createError(t.errorMessage(r,e),e.status.toString(),i)}if(null==i?void 0:i.includes("text")){const i=yield e.text();return a.b.createError(t.errorMessage(r,e)+" "+i,e.status.toString())}return a.b.createError(t.errorMessage(r,e)+" Unknown error",e.status.toString())}))}handleSuccess(e,t,r){return h(this,void 0,void 0,(function*(){const i=e.headers.get("content-type");if(null==i?void 0:i.includes(n.json)){const i=yield e.json();return a.b.createSuccess(i,e.status.toString(),t.successMessage(r,e))}if(null==i?void 0:i.includes(n.octetStream)){const i=yield e.blob();return a.b.createSuccess(i,e.status.toString(),t.successMessage(r,e))}return a.b.createSuccess(void 0,e.status.toString(),t.successMessage(r,e))}))}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return u})),r.d(t,"a",(function(){return p}));var i=r(2),n=r(10),s=r(85),a=r(9),o=r(8),l=r(65),c=r(459),d=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};class u extends n.a{onWindowOpened(){this.includeWebDesignerPartsClassName&&this._$kendoWindowInstance.element.closest(".k-window").addClass(a.a.WebDesignerPartsClassName),this._$kendoWindowInstance.element.closest(".k-window").find(".k-window-titlebar").addClass(a.a.ModalWindowHeaderClass)}get includeWebDesignerPartsClassName(){return!0}}let h=class extends u{get Value(){return this.getByPropertyName(e=>{e.value})}set Value(e){this.setByPropertyName(e=>{e.value},e)}getTemplate(){return this.templates.Editors.PopupEditors.editorWindowComponentTemplate}get ReadOnlyState(){return this._$injectedInputData.readonlyState}beforeInit(){super.beforeInit(),this.Value=this._$injectedInputData.value,this.stringResources=this.provider.getService(o.a)}afterInit(){super.afterInit(),this.$textArea=this.textAreaComponent.view.element.find(".editor__value")}onWindowOpened(){super.onWindowOpened(),this._$kendoWindowInstance.element.mousedown(e=>{this.$textArea.is(e.target)||(this.$textArea.change(),e.preventDefault())}),this._$kendoWindowInstance.element.click(e=>{this.$textArea.focus()})}onPopupUpdateValue(e){this.view.element.on(l.a.PopupUpdateValue,e)}get displayExpressionEditor(){return this._$injectedInputData.displayExpressionEditor}get propertyName(){return this._$injectedInputData.propertyName}get propertyWrapper(){return this._$injectedInputData.propertyWrapper}set HasError(e){this.setByPropertyName(()=>{this.hasError},e)}setValue(e){this.Value=e}save(){this.view.element.trigger(l.a.PopupUpdateValue,this.Value)}close(){this._$kendoWindowInstance.close()}};d([Object(i.e)(c.a)],h.prototype,"textAreaComponent",void 0),h=d([Object(i.a)("editor-window-component")],h);class p{constructor(e){this.provider=e,this.stringResources=this.provider.getService(o.a)}get defaultPopupTitle(){return this.stringResources.Edit}create(e,t){const r=new s.a(this.provider);let i;i=t.displayExpressionEditor?{width:800,height:644,minWidth:300,minHeight:244,maxWidth:1200}:{width:800,height:309,minWidth:300,minHeight:244,maxWidth:1200},r.withComponent(h).withTitle(null!=e?e:this.defaultPopupTitle).withVisible(!1).withWindowDimensions(i).withModal(!0);return r.build({data:t})}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return D}));var i=r(1),n=r(0),s=r(103),a=r(87),o=r(140),l=r(217),c=r(136),d=r(218),u=r(220),h=r(173),p=r(174),m=r(94),g=r(221),f=r(150),v=r(5),y=r(146),S=r(147),C=r(145),b=r(46),w=r(29),P=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class D extends a.a{constructor(e,t,r){super(e,t,r),this.DataSources=[],this.PropertyStore[n.a.DataSources]||(this.PropertyStore[n.a.DataSources]=[]),this.ReportParameters=[],this.StyleSheet=[],this.ExternalStyleSheets=[],this.Groups=[],this.Watermarks=[],this.CrossSectionItems=[],this.RuntimeSettings=[],this.styleRulesCache=new WeakMap,this.height=v.a.Zero,this.sectionsOrder=[u.a,p.a,y.a,l.a,S.a,h.a,d.a],this.designSurfaceEventEmitter.on(b.a,e=>this.onReportSectionAddedOrRemoved(e)),this.designSurfaceEventEmitter.on(b.d,e=>this.onReportSectionAddedOrRemoved(e))}onReportSectionAddedOrRemoved(e){const t=null==e?void 0:e.detail;(null==t?void 0:t.component)instanceof m.a&&(this.Designer.UpdateOverlay(!0),this.Designer.Redraw(!1,null))}get Height(){return this.height}get PageHeaderSection(){return this.Children.find(e=>e.Type===i.a.PageHeaderSection)}get TocSection(){return this.Children.find(e=>e.Type===i.a.TocSection)}get ReportHeaderSection(){return this.Children.find(e=>e.Type===i.a.ReportHeaderSection)}get DetailSection(){return this.Children.find(e=>e.Type===i.a.DetailSection)}get ReportFooterSection(){return this.Children.find(e=>e.Type===i.a.ReportFooterSection)}get PageFooterSection(){return this.Children.find(e=>e.Type===i.a.PageFooterSection)}get UnitOfMeasure(){return this.getPropertyValue(n.a.UnitOfMeasure)}clearStyleRulesCache(){this.styleRulesCache=new WeakMap}canContain(e){return this.canParent(e)}canParent(e){const t=this.InstanceFactory.getInstanceModel(e);return!!t&&(t instanceof o.a||(t instanceof C.a||t instanceof m.a&&(t instanceof c.a?super.canParent(e):!this.Children.some(t=>t.Type===e))))}accept(e){e.VisitReport(this)}renderDesigner(){const e=this.Provider.getService(s.a);this.Designer.Render(e.visualElement);for(const e of this.Children)e.renderDesigner();this.TocSection&&this.Designer.UpdateChildrenOverlay()}updateHeight(){this.height=v.a.Zero;for(const e of this.Children){const t=v.a.Parse(e.getCascadingPropertyValue(n.a.Height));this.height=this.Height.Add(t)}}createChildComponentsFromPropertyStore(){return P(this,void 0,void 0,(function*(){yield this.createStyleSheet(),yield this.createExternalStyleSheets(),yield this.createSectionsAndCSIFromItems(),yield this.createGroups(),this.updateHeight(),yield this.createDataSources(),yield this.createReportParameters(),yield this.createConditionalFormatting(),yield this.createWatermarks(),yield this.createRuntimeSettings(),yield this.Groupings.Initialize(),yield this.Sortings.Initialize(),yield this.Filters.Initialize()}))}createSectionsAndCSIFromItems(){return P(this,void 0,void 0,(function*(){const e=this.PropertyStore[n.a.Items];if(e)for(const t of e){const e=yield this.createChildComponent(t);e instanceof C.a&&this.CrossSectionItems.push(e)}}))}createDataSources(){return P(this,void 0,void 0,(function*(){return this.createCollectionPropertyComponents(n.a.DataSources,[])}))}createReportParameters(){return P(this,void 0,void 0,(function*(){return this.createCollectionPropertyComponents(n.a.ReportParameters,this.ReportParameters)}))}createStyleSheet(){return P(this,void 0,void 0,(function*(){return this.createCollectionPropertyComponents(n.a.StyleSheet,this.StyleSheet)}))}createExternalStyleSheets(){return P(this,void 0,void 0,(function*(){return this.createCollectionPropertyComponents(n.a.ExternalStyleSheets,this.ExternalStyleSheets)}))}createGroups(){return P(this,void 0,void 0,(function*(){return this.createCollectionPropertyComponents(n.a.Groups,this.Groups)}))}createWatermarks(){return P(this,void 0,void 0,(function*(){return this.createCollectionPropertyComponents(n.a.Watermarks,this.Watermarks,this.PropertyStore[n.a.PageSettings])}))}createRuntimeSettings(){return P(this,void 0,void 0,(function*(){return this.createCollectionPropertyComponents(n.a.RuntimeSettings,this.RuntimeSettings)}))}determineSectionsOrdering(e){if(!e)return this.sectionsOrder;const t=e.PropertyStore[n.a.Position]||f.a.BeforeReportHeader,r=this.sectionsOrder.slice();let i=0;switch(t){case f.a.BeforeReportHeader:i=r.indexOf(p.a);break;case f.a.AfterReportHeader:i=r.indexOf(p.a)+1;break;case f.a.BeforeReportFooter:i=r.indexOf(h.a);break;case f.a.AfterReportFooter:i=r.indexOf(h.a)+1;break;default:throw new Error("TocPosition not supported.")}return r.splice(i,0,g.a),r}addChild(e,t){this.Children.push(e),this.sortSections()}removeChildAndItem(e,t=!0){e.IsChildOfParent&&super.removeChildAndItem(e,t)}sortSections(){const e=this.determineSectionsOrdering(this.TocSection);this.Children.sort((t,r)=>{const i=t.constructor,n=r.constructor;let s=0,a=0;if(i===n){if(i===y.a)s=this.Groups.findIndex(e=>e.Header===t),a=this.Groups.findIndex(e=>e.Header===r);else if(i===S.a)a=this.Groups.findIndex(e=>e.Footer===t),s=this.Groups.findIndex(e=>e.Footer===r);else{if(i!==C.a)throw new w.a(`Section ${i.name} cannot be repeated.`,this.Provider);s=this.Children.indexOf(t),a=this.Children.indexOf(r)}s<0&&(s=Number.MAX_VALUE),a<0&&(a=Number.MAX_VALUE)}else s=e.findIndex(e=>e===i),a=e.findIndex(e=>e===n);return s>a?1:-1})}}D.typeName=i.a.Report},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(122);class n{static ensureExpression(e){if(!(e=e.trim()))throw new Error("Empty expression.");return i.a.IsExpression(e)?e:n.expressionPrefixForAppend+e}static getExpression(e,t){const r=n.getExpressionBody(e,t);return n.ensureExpression(r)}static getExpressionBody(e,t){return t?`${t}(${null!=e?e:""})`:null!=e?e:""}static getDataFieldIdentifier(e,t=!0){return n.getFormattedIdentifier(n.fieldsPrefix,e,"",t)}static getParameterValueIdentifier(e,t=!0){return n.getFormattedIdentifier(n.parametersPrefix,e,n.parametersValueSufix,t)}static getParameterLabelIdentifier(e){return n.getFormattedIdentifier(n.parametersPrefix,e,n.parametersLabelSufix)}static getFormattedIdentifier(e,t,r,i=!0){return t?(i&&(t=n.getEscapedString(t).trim()),e&&t.startsWith(e)&&(t=t.substring(e.length)),r&&t.endsWith(r)&&(t=t.substring(0,t.length-r.length)),e+(t=t.trim())+r):t}static getEscapedString(e){if(!e)return e;const t=e.replace("[","[").replace("]","]");return t.length>e.length||!t.match(n.nameExpr)?`[${t}]`:e}}n.nameExpr=/^(\p{L}|_)(\p{L}|\d|_)*$/u,n.fieldsPrefix="Fields.",n.parametersPrefix="Parameters.",n.parametersValueSufix=".Value",n.parametersLabelSufix=".Label",n.expressionPrefixForAppend="= "},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(0),n=r(92),s=r(1);class a extends n.a{constructor(e,t,r){super(e,t,r),this.PropertyStore[i.a.NetType]||(this.PropertyStore[i.a.NetType]=s.a.Grouping),this.PropertyStore[i.a.Name]||(this.PropertyStore[i.a.Name]=this.namingService.CreateName(this.PropertyStore[i.a.NetType]))}get IsEmpty(){return!this.PropertyStore.hasOwnProperty(i.a.Expression)}get Expression(){return this.PropertyStore[i.a.Expression]}set Expression(e){this.PropertyStore[i.a.Expression]=e}getType(){return s.a.Grouping}}a.typeName=s.a.Grouping},function(e,t,r){"use strict";r.d(t,"a",(function(){return m})),r.d(t,"b",(function(){return g}));var i=r(9),n=r(0),s=r(3),a=r(16),o=r(438),l=r(8),c=r(85),d=r(70),u=r(10),h=r(636),p=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class m extends d.b{constructor(){super(...arguments),this.stepNumberChangedObservable=new u.b}getTemplate(){return this.templates.Editors.Wizards.wizardWindowComponentTemplate}beforeInit(){super.beforeInit(),this.classNames=i.a,this.stringResources=this.provider.getService(l.a),this.component=this._$injectedInputData.component,this.closeConfirmationWindowManager=new h.a(this.provider)}afterDispose(){super.afterDispose(),this.pageArranger.Dispose()}get CurrentPageModel(){return this.getByPropertyName(e=>{e.currentPageModel})}set CurrentPageModel(e){this.setByPropertyName(e=>{e.currentPageModel},e)}get IsNextButtonVisible(){return this.getByPropertyName(e=>{e.isNextButtonVisible})}set IsNextButtonVisible(e){this.setByPropertyName(e=>{e.isNextButtonVisible},e)}get IsPreviousButtonVisible(){return this.getByPropertyName(e=>{e.isPreviousButtonVisible})}set IsPreviousButtonVisible(e){this.setByPropertyName(e=>{e.isPreviousButtonVisible},e)}get StepsCount(){return this.getByPropertyName(e=>{e.stepsCount})}set StepsCount(e){this.setByPropertyName(e=>{e.stepsCount},e)}get canFinish(){return!this.pageArranger.hasNextPage||this.pageArranger.allowMoveForward}onBeforeWindowOpened(){return p(this,void 0,void 0,(function*(){this.model=yield this.createModel()}))}onWindowOpened(){const e=Object.create(null,{onWindowOpened:{get:()=>super.onWindowOpened}});return p(this,void 0,void 0,(function*(){e.onWindowOpened.call(this),this.view.element.addClass(i.a.ModalWindowClasses),this.view.element.addClass(i.a.WizardWindowClasses),this.pageArranger=this.createPageArranger(),this.pageArranger.currentPageChanged.subscribe(()=>{this.updateStep(),this.updateButtonVisibility(),this.CurrentPageModel=this.pageArranger.currentPage.Model}),yield this.pageArranger.init(),this.StepsCount=this.pageArranger.totalPages}))}cancelChanges(){return p(this,void 0,void 0,(function*(){this.canceled=!0;const e=this.closeConfirmationWindowManager.create();e.component.onQuitWizardClicked.subscribe(()=>{this._$kendoWindowInstance.close()}),e.component.onCancelWindowClicked.subscribe(()=>{this.canceled=!1}),yield e.open()}))}close(){if(!this.canceled){const e=this.provider.getService(a.a),t=this.component.Parent,r=t.getProperty(n.a.Items);this.component.createChildComponentsFromPropertyStore(),t.raiseComponentChanged(r,null,null),e.SetSelectedComponents([this.component])}this._$kendoWindowInstance.close()}moveToPreviousPage(){return p(this,void 0,void 0,(function*(){yield this.pageArranger.tryLeave(new o.a(!1)),yield this.pageArranger.getPreviousPage()}))}moveToNextPage(){return p(this,void 0,void 0,(function*(){(yield this.pageArranger.tryLeave(new o.a(!0)))&&(yield this.pageArranger.getNextPage())}))}saveChanges(){return p(this,void 0,void 0,(function*(){(yield this.pageArranger.tryLeave(new o.a(!0)))&&(yield this.model.Save(),this.close())}))}updateStep(){this.stepNumberChangedObservable.next({stepNumber:this.pageArranger.getCurrentPageIndex()+1})}updateButtonVisibility(){this.IsNextButtonVisible=this.pageArranger.hasNextPage,this.IsPreviousButtonVisible=this.pageArranger.hasPreviousPage}}class g{constructor(e,t){this.provider=e,this.wizardComponentType=t,this.stringResources=this.provider.getService(l.a)}getDefaultPopupTitle(e){return`${this.stringResources.Configure} ${e.NameAsJQueryAndHtmlSafeString}`}create(e){const t=new c.a(this.provider);let r;r={width:.85*this.provider.getServiceByName(s.a.WebDesignerEventsElement).clientWidth,height:794,minWidth:300,minHeight:444,maxWidth:1200},t.withComponent(this.wizardComponentType).withTitle(this.getDefaultPopupTitle(e.component)).withVisible(!1).withWindowDimensions(r).withModal(!0);return t.build({data:e,additionalConfigCallback:e=>e.resizable=!1})}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return l}));var i=r(47),n=r(4),s=r(11),a=r(78);class o{constructor(e,t,r){this.config=e,this.initalPathToNavigateTo=t,this.resourceService=r}getBooleanConfigValue(e){const t=e(this.config);return this.getPropValue(t)}getPropValue(e){return!("boolean"==typeof e||void 0===e)?e[this.getCurrentVirtualFolder()]:e}getCurrentVirtualFolder(){if(null==this.resourceService.CurrentFolder&&void 0!==this.initalPathToNavigateTo){const e=this.initalPathToNavigateTo[0];return this.resourceService.pathIsReportsOrInReports(e)?i.b.Report:this.resourceService.pathIsResourcesOrInResources(e)?i.b.Resources:i.b.Recent}return this.resourceService.currentFolderIsInReports()?i.b.Report:this.resourceService.currentFolderIsRecent()?i.b.Recent:i.b.Resources}}class l{static get IsReportServer(){return this.isReportServer}static set IsReportServer(e){void 0!==this.isReportServer&&n.b.logDebug("Static property isReportServer should only be set once"),this.isReportServer=e}static getDefaultNonReportServer(e){const t=e.getService(a.a);let r=[];return t.hasPermission(s.a.Commands_AssetsManager_Reports)||r.push(i.b.Report),t.hasPermission(s.a.Commands_AssetsManager_Resources)||r.push(i.b.Resources),t.hasPermission(s.a.Commands_AssetsManager_SharedDataSources)||r.push(i.b.SharedDataSource),{enableNewFolder:{report:!0,resource:!0,recent:!1,shareddatasource:!0},enableUpload:{report:!0,resource:!0,recent:!1,shareddatasource:!0},enableDownload:{report:!0,resource:!0,recent:!0,shareddatasource:!0},enableDelete:{report:!0,resource:!0,recent:!1,shareddatasource:!0},enableRename:{report:!0,resource:!0,recent:!1,shareddatasource:!0},disabledVirtualFolders:r,enableViewDetails:!0,initialTreeViewWidth:"215px",toolbarConfiguration:{search:{width:"200px"}}}}static get reportServerDefault(){return{enableNewFolder:{report:!1,resource:!0,recent:!1,shareddatasource:!0},enableUpload:{report:!1,resource:!0,recent:!1,shareddatasource:!0},enableDownload:{report:!0,resource:!0,recent:!0,shareddatasource:!0},enableDelete:{report:!1,resource:!0,recent:!1,shareddatasource:!0},enableRename:{report:!1,resource:!0,recent:!1,shareddatasource:!0},disabledVirtualFolders:[],enableViewDetails:!0,initialTreeViewWidth:"215px",toolbarConfiguration:{search:{width:"200px"}}}}static default(e){return this.isReportServer?l.reportServerDefault:l.getDefaultNonReportServer(e)}static getFullAssetsManagerConfig(e){return l.default(e)}static getSelectResourceConfig(e){const t=l.default(e);return l.addDisabledVirtualFolder(t,i.b.Report),l.addDisabledVirtualFolder(t,i.b.SharedDataSource),t}static getSelectReportConfig(e){const t=l.default(e);return l.addDisabledVirtualFolder(t,i.b.Resources),l.addDisabledVirtualFolder(t,i.b.SharedDataSource),t}static getOpenReportConfig(e){const t=l.default(e);return l.addDisabledVirtualFolder(t,i.b.Resources),t}static getSelectReportFolderConfig(e){const t=l.default(e);return t.enableUpload.report=!1,l.addDisabledVirtualFolder(t,i.b.Resources),l.addDisabledVirtualFolder(t,i.b.Recent),l.addDisabledVirtualFolder(t,i.b.SharedDataSource),t}static getSelectSdsFolderConfig(e){const t=l.default(e);return t.enableUpload.shareddatasource=!1,l.addDisabledVirtualFolder(t,i.b.Resources),l.addDisabledVirtualFolder(t,i.b.Recent),l.addDisabledVirtualFolder(t,i.b.Report),t}static getSelectSdsConfig(e){const t=l.default(e);return l.addDisabledVirtualFolder(t,i.b.Resources),l.addDisabledVirtualFolder(t,i.b.Report),t}static addDisabledVirtualFolder(e,t){e.disabledVirtualFolders.includes(t)||e.disabledVirtualFolders.push(t)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static IsValidHexColor(e){return RegExp("^#((0x){0,1}|#{0,1})([0-9A-F]{8}|[0-9A-F]{6}|[0-9A-F]{3})$","ig").test(e)}static IsNullOrWhiteSpace(e){return null==e||null!==e.match(/^ *$/)}static IsExpression(e){return!i.IsNullOrWhiteSpace(e)&&e.startsWith("=")}static IsNumber(e){return!i.IsNullOrWhiteSpace(e)&&!isNaN(+e)}static IsIntNumber(e){return i.IsNumber(e)&&Number.isInteger(+e)}static IsPositiveIntNumber(e){return i.IsIntNumber(e)&&+e>0}static IsPositiveOrZeroIntNumber(e){return i.IsIntNumber(e)&&+e>=0}static IsIntOrExpression(e){return i.IsExpression(e)||i.IsIntNumber(e)}static IsPositiveIntOrExpression(e){return i.IsExpression(e)||i.IsPositiveIntNumber(e)}static IsPositiveZeroIntOrExpression(e){return i.IsExpression(e)||i.IsPositiveOrZeroIntNumber(e)}static IsString(e){return"string"==typeof e||e instanceof String}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t,r){this.NetType=e,this.Path=t,this.Value=r}get Text(){return this.Path||i.DecodeValue(this.Value)}static EncodeValue(e){return e?(e=(e=(e=e.replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/\n/g,"\r\n"),btoa(e)):""}static DecodeValue(e){return e?atob(e):""}Clear(){this.NetType=void 0,this.Path=void 0,this.Value=void 0}clone(){const e=new i(this.NetType,this.Path,this.Value);return this.hasOwnProperty("Path")?this.hasOwnProperty("Value")||delete e.Value:delete e.Path,e}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i,n=r(11),s=r(19),a=r(4),o=r(3),l=r(354),c=r(14),d=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let u=i=class extends s.a{constructor(){super(),this.deniedPermissionsSet=new Set}init(e){if(e){const t=Object.values(n.a).filter(e=>"string"==typeof e).map(e=>e);e.forEach(e=>{this.addDeniedPermissions([e]);const r=e+i.separator;this.addDeniedPermissions(t.filter(e=>e.startsWith(r)))})}}addDeniedPermissions(e){e.forEach(e=>{this.deniedPermissionsSet.add(this.convertToPermission(e))})}hasPermission(e){return!this.deniedPermissionsSet.has(e)}checkCreateDocumentPermission(e,t,r,i,s){let a,d=null;if(t)a=n.a.Commands_Document_Overwrite,d=i.OverwriteDocumentPermissionError;else if(r===o.a.SharedDataSourceStorageService)a=n.a.Commands_DataSources_SharedDataSource_Create,d=i.CreateSDSPermissionError;else{l.a.getReportExtension(e)===c.b.trbp?(a=n.a.Commands_Document_NewCombined,d=i.CreateDocumentCombinedPermissionError):(a=n.a.Commands_Document_New,d=i.CreateDocumentPermissionError)}const u=this.hasPermission(a);return u||s.error(d),u}convertToPermission(e){const t=n.a[e];return void 0===t&&console.log("Missing permission enum value "+e),t}};u.separator="_",u.getServiceName=()=>"WebReportDesignerPermissions",u=i=d([Object(a.e)()],u)},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(0),n=r(122),s=r(87),a=r(237),o=r(42);class l{static GetContainer(e,t){let r=e;for(;r;){let e=!0;for(const i of t)e=e&&r.canBeAncestorOf(i,!0)&&this.canTableContain(r);if(e)return r;r=r.Parent}return null}static GetContainerForNewItem(e,t){let r=e;for(;r&&!this.canContainItem(r,t);)r=r.Parent;return r}static canContainItem(e,t){return e.canParent(t)&&this.canTableContain(e)}static canTableContain(e){var t,r;return!(e instanceof o.a)||(null===(r=null===(t=e.Designer)||void 0===t?void 0:t.TableLayout)||void 0===r?void 0:r.HasSelectedCells())}static GetContainerByTypeName(e,t){let r=e;for(;r&&r.Type!==t;)r=r.Parent;return r}static GetParentByTypeRecursive(e,t){let r=e;for(;r&&!(r instanceof t);)r=r.Parent;return r}static GetParentByTypesRecursiveOr(e,...t){let r=e;for(;r&&!t.some(e=>r instanceof e);)r=r.Parent;return r}static GetParentByTypesRecursiveAnd(e,...t){let r=e;for(;r&&!t.every(e=>r instanceof e);)r=r.Parent;return r}static FindByName(e,t,r){if(e.Name===t)return e;for(const i of l.enumItems(e.Children,r))if(i.Name===t)return i;return null}static*Find(e,t,r){const i=e.Children;if(i&&i.length>0)for(const e of l.enumItems(i,r))e instanceof t&&(yield e)}static*enumItems(e,t){if(e)for(const r of e)yield r,t&&(yield*l.enumItems(r.Children,!0))}static GetFromCollection(e,t){if(e instanceof Array)return e[t];if(e instanceof a.a){return e.Get(t)}let r=0;const i=e[Symbol.iterator]();if(i)for(const e of i){if(r===t)return e;r++}}static*GetAssociatedComponents(e){if(e){yield e;for(const t of e.Children)yield*l.GetAssociatedComponents(t)}}static getDataSourceNameRecursively(e){if(e.DataSourceName||!e.Parent)return e.DataSourceName;let t=!1;const r=e.PropertyStore[i.a.Bindings];if(r&&r.length){const e=r.find(e=>i.a.comparePropertyNames(e.Path,i.a.DataSource));e&&n.a.IsReportItemDataObjectExpression(e.Expression)&&(t=!0)}if(t=t||e.CanResolveParentDataContext,t){const t=l.GetParentByTypeRecursive(e.Parent,s.a);return this.getDataSourceNameRecursively(t)}return null}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(56),n=r(1),s=r(0);class a extends i.a{get Value(){return this.getProperty(s.a.Value).GetValue(this,this.PropertyStore)}set Value(e){this.getProperty(s.a.Value).SetValue(e,this,this.PropertyStore)}get Format(){return this.getProperty(s.a.Format).GetValue(this,this.PropertyStore)}set Format(e){this.getProperty(s.a.Format).SetValue(e,this,this.PropertyStore)}}a.typeName=n.a.TextItemBase},function(e,t,r){"use strict";r.d(t,"a",(function(){return h})),r.d(t,"b",(function(){return p}));var i=r(49),n=r(1),s=r(0),a=r(7),o=r(54),l=r(2),c=r(70),d=r(91),u=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};class h extends i.a{get IsExtendedEditorAllowed(){return this.Enabled}get isExpressionEditorAllowed(){return this.propertyWrapper.EditorType!==n.a.String}get Value(){return this.get("value")}set Value(e){this.set("value",e)}beforeInit(){super.beforeInit(),this.setExtendedEditorVisibility(),this.valueChanged=!1,this.initializeValueInBeforeInit()}setExtendedEditorVisibility(){this.AllowExtendedEditor=this.IsExtendedEditorAllowed}createFocusStrategy(){return new d.c(this.visualElement)}initializeValueInBeforeInit(){this.initValue(this.propertyWrapper.GetValue()||"")}get isResetVisible(){return this.propertyWrapper.Name!==s.a.Name&&!this.Readonly&&!this.Disabled}set AllowExtendedEditor(e){this.set("allowExtendedEditor",e)}openExtendEditMode(){const e=`${this.stringResources.Edit} ${this.LocalizedName}`;this.extendEditPopup=new c.a(this.provider).create(e,{value:this.Value,displayExpressionEditor:this.isExpressionEditorAllowed,propertyName:this.LocalizedName,propertyWrapper:this.propertyWrapper,readonlyState:this.Readonly}),this.extendEditPopup.component.onPopupUpdateValue((e,t)=>{this.updateValue(t)}),this.extendEditPopup.open()}updateValue(e){null!=e&&this.tryUpdatePropertyWrapperValue(e,e=>{this.refreshValue(),this.setExtendedEditPopupErrorState()},()=>{this.resetManager.checkAndUpdateReset(),this.tryCloseExtendedEditPopup()})}updatePropertyWrapperValue(e){const t=this.prepareValueForPropertyWrapper(e);super.updatePropertyWrapperValue(t),this.refreshValue()}initValue(e){this.setValueFromProperty(e)}refreshValue(){this.setValueFromProperty(this.getPropertyWrapperValue())}updateStateUi(){}tryCloseExtendedEditPopup(){this.extendEditPopup&&this.extendEditPopup.isOpen&&this.extendEditPopup.close()}setExtendedEditPopupErrorState(){this.extendEditPopup&&this.extendEditPopup.isOpen&&(this.extendEditPopup.component.HasError=!0,this.extendEditPopup.component.setValue(this.Value))}setValue(e,t){if(this.Disabled||this.Readonly)return;const r=e;13!==r.which&&"blur"!==r.type||!this.valueChanged?this.valueChanged=this.getValueForInput(this.getPropertyWrapperValue())!==this.Value:(this.tryUpdatePropertyWrapperValue(this.Value,e=>this.refreshValue()),this.valueChanged=!1),this.resetManager.checkAndUpdateReset()}setValueFromProperty(e){this.Value=this.getValueForInput(e)}}let p=class extends h{getTemplate(){return o.a.Editors.InputEditors.inputEditorTemplate}prepareValueForPropertyWrapper(e){return e}getValueForInput(e){return e}};p=u([Object(l.a)("input-editor"),Object(a.b)(n.a.String,"EmbeddedExpressionEditor")],p)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(0),n=r(34),s=r(1),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends n.a{constructor(e,t,r,i=!0){super(e,t,r,i),this.formattingRules=[]}get ConditionalFormatting(){return this.formattingRules}createChildComponentsFromPropertyStore(){const e=Object.create(null,{createChildComponentsFromPropertyStore:{get:()=>super.createChildComponentsFromPropertyStore}});return a(this,void 0,void 0,(function*(){yield e.createChildComponentsFromPropertyStore.call(this),yield this.createConditionalFormatting()}))}createConditionalFormatting(){return a(this,void 0,void 0,(function*(){yield this.createCollectionPropertyComponents(i.a.ConditionalFormatting,this.ConditionalFormatting)}))}}o.typeName=s.a.ReportItemBase},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get SingleRangeRadialGauge(){return"SingleRangeRadialGauge"}static get MultiRangeRadialGauge(){return"MultiRangeRadialGauge"}static get HorizontalSingleRangeLinearGauge(){return"HorizontalSingleRangeLinearGauge"}static get HorizontalMultiRangeLinearGauge(){return"HorizontalMultiRangeLinearGauge"}static get VerticalSingleRangeLinearGauge(){return"VerticalSingleRangeLinearGauge"}static get VerticalMultiRangeLinearGauge(){return"VerticalMultiRangeLinearGauge"}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get None(){return 1}static get LeftSizeable(){return 2}static get RightSizeable(){return 4}static get TopSizeable(){return 8}static get BottomSizeable(){return 16}static get AllSizeable(){return i.LeftSizeable|i.RightSizeable|i.TopSizeable|i.BottomSizeable}static get Moveable(){return 1<<28}static get Visible(){return 1<<30}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i,n=r(2),s=r(9),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};!function(e){e.activate="activate",e.close="close",e.deactivate="deactivate",e.dragend="dragend",e.dragstart="dragstart",e.error="error",e.maximize="maximize",e.minimize="minimize",e.open="open",e.refresh="refresh",e.resize="resize",e.restore="restore"}(i||(i={}));class o{constructor(e){this.provider=e}withComponent(e){return this.component=e,this}withPosition(e){return this.windowPosition=e,this}withWindowDimensions(e){return this.windowDimensions=e,this}withTitle(e){return this.title=e,this}withModal(e){return this.modal=e,this}withVisible(e){return this.visible=e,this}build(e){const t={title:this.title,visible:this.visible,actions:[],position:this.windowPosition,width:this.windowDimensions.width,height:this.windowDimensions.height,minWidth:this.windowDimensions.minWidth,minHeight:this.windowDimensions.minHeight,maxWidth:this.windowDimensions.maxWidth,maxHeight:this.windowDimensions.maxHeight,modal:this.modal};return(null==e?void 0:e.additionalConfigCallback)&&e.additionalConfigCallback(t),this.createInstance({kendoWindowOptions:t,data:null==e?void 0:e.data,additionalComponentBeforeInitConfig:null==e?void 0:e.additionalComponentBeforeInitConfig})}createInstance(e){const t=$(".twd-designer"),r=$('<div class="kendo-window-content-wrapper"></div>'),a=n.c.getComponentByType(this.component),o=a.builder.build(r,this.provider);r.hide(),t.append(r),e.additionalComponentBeforeInitConfig&&e.additionalComponentBeforeInitConfig(o),o.init(a.selector,{_$injectedInputData:e.data});const c={appendTo:t,draggable:{containment:t}};void 0!==e.kendoWindowOptions.draggable&&(c.draggable=e.kendoWindowOptions.draggable),void 0!==e.kendoWindowOptions.appendTo&&(c.appendTo=e.kendoWindowOptions.appendTo);const d=$(r.children()[0]).kendoWindow(Object.assign(Object.assign({},e.kendoWindowOptions),c)).data("kendoWindow");return d.element.addClass(s.a.ModalWindowClasses),o._$kendoWindowInstance=d,d.bind(i.deactivate,()=>{o.Dispose(),d.destroy(),r.remove()}),new l(d,o)}}class l{constructor(e,t){this.kendoWindow=e,this.component=t}get isOpen(){return this.kendoWindow&&!this.kendoWindow.wrapper.is(":hidden")}open(){return a(this,void 0,void 0,(function*(){const e=yield this.collectWindowHooksRecursive(this.component);if(e.canOpen){this.kendoWindow.bind(i.activate,()=>{for(const t of e.onOpenAnimationCompleteImplementers)t.onWindowOpenAnimationComplete()});for(const t of e.onBeforeOpenImplementers)yield t.onBeforeWindowOpened();this.kendoWindow.center().open(),$(".k-overlay").css("position","absolute");for(const t of e.onOpenedImplementers)t.onWindowOpened()}else this.kendoWindow.trigger(i.deactivate)}))}collectWindowHooksRecursive(e,t){return a(this,void 0,void 0,(function*(){t||(t={canOpen:!0,onBeforeOpenImplementers:[],onOpenedImplementers:[],onOpenAnimationCompleteImplementers:[]});const r=e;r.onWindowOpened&&t.onOpenedImplementers.push(r);const i=e;if(i.canOpenWindow&&(t.canOpen=yield i.canOpenWindow(),!t.canOpen))return t;const n=e;n.onWindowOpenAnimationComplete&&t.onOpenAnimationCompleteImplementers.push(n);const s=e;s.onBeforeWindowOpened&&t.onBeforeOpenImplementers.push(s);for(const r of e.ChildComponents)this.collectWindowHooksRecursive(r,t);return t}))}close(){this.kendoWindow.close()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(153),n=r(8),s=r(13);class a{constructor(e,t){this.provider=e,this.$parent=t,this.visible=!0,this.sr=this.provider.getService(n.a),this.id=i.a.generate(),this.parentElementEventEmitter=new s.a(t[0])}get Id(){return this.id}get template(){return`<div id="${this.id}" data-group="${this.id}" class="twd-editor ${this.class}">\n                            <div class="editor__content">\n                                <span class="editor__name" title="${this.title}">\n                                    ${this.title}\n                                </span>\n                            </div>\n                            <div class="editor__inner-template">${this.innerTemplate}</div>\n                    </div>`}prepareAndCloneDraggableItem(e){const t=e.clone().removeClass(["k-list-item","k-selected"]);t.find(".k-list-item-text").removeClass(),t.find(".k-chip-content").removeClass(),t.find(".k-chip-text").removeClass(),t.find(".k-chip-actions").removeClass(),t.find(".editor__edit").removeClass(".k-chip-action"),t.find(".k-icon").removeClass();return t.find(".editor__list-item").removeClass().addClass("editor__list-item"),t}setInitialValue(){}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r(1),n=r(0),s=r(4),a=r(200),o=r(255),l=r(256),c=r(350),d=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class u extends c.a{constructor(e,t,r,i=!0){super(e,t,r,i),this.Groupings=new o.a(s.b.resolvePropertyStore(this.PropertyStore,n.a.Groupings,()=>[]),this,r),this.Sortings=new l.a(s.b.resolvePropertyStore(this.PropertyStore,n.a.Sortings,()=>[]),this,r),this.Filters=new a.a(s.b.resolvePropertyStore(this.PropertyStore,n.a.Filters,()=>[]),this,r)}createChildComponentsFromPropertyStore(){const e=Object.create(null,{createChildComponentsFromPropertyStore:{get:()=>super.createChildComponentsFromPropertyStore}});return d(this,void 0,void 0,(function*(){yield e.createChildComponentsFromPropertyStore.call(this),yield this.Groupings.Initialize(),yield this.Sortings.Initialize(),yield this.Filters.Initialize()}))}accept(e){e.VisitDataItem(this)}get CanResolveParentDataContext(){return!1}}u.typeName=i.a.DataItem},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(5),n=r(30),s=r(29);class a{constructor(e,t,r){this.Index=e,this.tableLayout=t,this.size=r,this.TableRatio=0}static get MinSize(){return new i.a(10,n.a.Pixel)}get TableLayout(){return this.tableLayout}get Size(){return this.size}SetSize(e,t){const r=this.GetMinSizeNotRelative();if(e.LessThan(r))throw new s.a(`${this.MemberName} size less than ${r} is not supported. You may delete the ${this.MemberName.toLowerCase()} or hide all items that form it instead.`,this.TableLayout.provider);this.size=i.a.FromPixels(e.ToPixels(),this.size.Type),this.tableLayout&&this.tableLayout.UpdateTableAndContentSize()}Dispose(){this.tableLayout=null}SetSizeCore(e){this.size=e}GetMinSize(){return a.MinSize}GetMinSizeNotRelative(){return a.MinSize}*GetCells(){return null}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static ToHexColor(e){if(e){if(e.startsWith("#"))return e;const t=i.ColorNameToHex(e);if(t)return t;if(!e.includes(","))return"#000000";const r=e.split(",").map(e=>e.trim());let n=0,s=1,a=2;r.length>3&&(n=1,s=2,a=3);const o=parseInt(r[n]||"0"),l=parseInt(r[s]||"0"),c=parseInt(r[a]||"0");return"#"+this.colorComponentToHex(o)+this.colorComponentToHex(l)+this.colorComponentToHex(c)}return null}static ToRgbColor(e){if(e&&e.length<6){let t=1,r=e.split("");for("#"!==r[0]&&(t=0);t<r.length;t++)r[t]=r[t]+r[t];e=r.join("")}const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?`${parseInt(t[1],16)}, ${parseInt(t[2],16)}, ${parseInt(t[3],16)}`:null}static ToRgbaColor(e){let t;if(i.IsRgbColor(e)){t=e.split(",").map(e=>e.trim());let r=t[0],n=t[1],s=t[2];const a=i.GetAlpha(e);return t.length>3&&(r=t[1],n=t[2],s=t[3]),`${r},${n},${s},${a}`}const r=i.ToHexColor(e),n=i.ToRgbColor(r),s=i.GetAlpha(e);return n?`${n}, ${s}`:n}static IsRgbColor(e){return!!e&&e.indexOf(",")>-1}static GetAlpha(e){if("Transparent"===e)return 0;if(!i.IsRgbColor(e))return 1;const t=e.split(",").map(e=>e.trim());return 4===t.length?parseFloat((parseFloat(t[0])/255).toFixed(2)):1}static ColorNameToHex(e){return{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",transparent:"#ffffff"}[e.toLowerCase()]}static colorComponentToHex(e){const t=e.toString(16);return 1===t.length?"0"+t:t}}},function(e,t,r){"use strict";r.d(t,"c",(function(){return s})),r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return o}));var i=r(59),n=r(3);class s extends i.a{get $editorsPlaceholder(){return this.$visualElement}get $visualElement(){return $("#"+this.id)}afterInit(){if(this.childEditorManager=this.createChildEditorManager(),this.initEditorsByOrder(),this.childEditors.length){for(const e of this.childEditors)e.visualElement.removeClass("twd-editor-last");this.childEditors[this.childEditors.length-1].visualElement.addClass("twd-editor-last")}super.afterInit()}initEditorsByOrder(){this.childEditorManager.initEditorsByOrder(this.$editorsPlaceholder,this.childEditorsDepth,this.childEditors)}refreshValue(){this.childEditors.forEach(e=>e.refreshValue())}}class a{constructor(e,t){this.provider=e,this.propertyWrapper=t}}class o extends a{constructor(e,t){super(e,t)}initEditorsByOrder(e,t,r){this.getEditorBuilders().forEach(i=>{const n=i.builder.createInstance(e,i.propertyWrapper,this.provider,t);r.push(n)})}getEditorBuilders(){const e=this.provider.getServiceByName(n.a.ISchemaService),t=[];for(const r of this.propertiesOrder){const i=this.propertyWrapper.find(e=>e.Name===r);i&&t.push({builder:e.getEditorType(r,null),propertyWrapper:i})}return t}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return o})),r.d(t,"d",(function(){return l})),r.d(t,"e",(function(){return c})),r.d(t,"f",(function(){return d}));class i{constructor(e){this.$editorVisualElement=e}}class n extends i{get $focusTarget(){return $(this.$editorVisualElement.find(".editor__name")[0])}focus(){this.$focusTarget.addClass(n.nameFocusedClassName)}unfocus(){this.$focusTarget.removeClass(n.nameFocusedClassName)}}n.nameFocusedClassName="editor__name-focused";class s extends i{focus(){this.$focusTarget.addClass(s.borderFocusedClassName)}unfocus(){this.$focusTarget.removeClass(s.borderFocusedClassName)}}s.borderFocusedClassName="editor__border-focused";class a extends n{focus(){super.focus();const e=this.$editorVisualElement.find(".editor__value")[0];e&&this.focusInput(e)}focusInput(e){e instanceof HTMLInputElement?this.setSelectionOnHtmlInputElement(e):e.setSelectionRange(0,e.value.length),e.focus()}setSelectionOnHtmlInputElement(e){const t=e.type;try{e.type="text",e.setSelectionRange(0,e.value.length)}finally{e.type=t}}}class o extends s{get $focusTarget(){return this.$editorVisualElement.find(".-toggle-buttons .editor__inline-values")}}class l extends s{get $focusTarget(){return this.$editorVisualElement.find(".editor__content .editor__toggle-button")}}class c extends s{get $focusTarget(){return $(this.$editorVisualElement.find(".editor__content")[0])}}class d extends s{get $focusTarget(){return this.$editorVisualElement.find(".editor__content")}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(3),n=r(201),s=r(0),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends n.a{constructor(e,t,r){super(e,t,r,t),this.clientPropertyStore=e}get HideContextMenuButton(){return!0}Initialize(){const e=Object.create(null,{Initialize:{get:()=>super.Initialize}});return a(this,void 0,void 0,(function*(){const t=this.getType(),r=this.Provider.getServiceByName(i.a.ISchemaService);r.typeSchemaExists(t)||r.setTypeSchema(t,this.getTypeSchema()),yield e.Initialize.call(this,this.getType())}))}getTypeSchema(){return{[s.a.Type]:this.getType(),[s.a.Properties]:this.clientPropertyStore}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i,n=r(153),s=r(481),a=r(19),o=r(4),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let c=i=class extends a.a{constructor(e,t=s.a.big,r=!1){super(),this.$placeholder=e,this.size=t,this.removeWhenDisposed=r,this.isVisible=!0,this.id=n.a.generate(),this.init()}static StartNew(e,t=s.a.big){return new i(e,t,!0).Start()}get template(){return`<div id=${this.id} class="twd-loader -${this.size}">\n                    <div class="loader__container">\n                        <div class="loader__item -cube1 twd-selected-bg"></div>\n                        <div class="loader__item -cube2 twd-selected-bg"></div>\n                        <div class="loader__item -cube3 twd-selected-bg"></div>\n                        <div class="loader__item -cube4 twd-selected-bg"></div>\n                        <div class="loader__item -cube5 twd-selected-bg"></div>\n                        <div class="loader__item -cube6 twd-selected-bg"></div>\n                        <div class="loader__item -cube7 twd-selected-bg"></div>\n                        <div class="loader__item -cube8 twd-selected-bg"></div>\n                        <div class="loader__item -cube9 twd-selected-bg"></div>\n                    </div>\n                </div>`}get VisibilityState(){return this.isVisible}Start(){return this.show(),this}Dispose(){this.hide(),this.removeWhenDisposed&&this.$placeholder.find("#"+this.id).remove()}hide(){this.isVisible=!1,this.$visualElement.addClass("-hidden")}show(){this.isVisible=!0,this.$visualElement.removeClass("-hidden")}init(){this.$placeholder.append(this.template),this.$visualElement=this.$placeholder.find(".twd-loader")}};c.getServiceName=()=>"Loader",c=i=l([Object(o.e)()],c)},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(56),n=r(82),s=r(1);class a extends n.a{canContain(e){const t=this.InstanceFactory.getInstanceModel(e);return!!(t&&t instanceof i.a)&&super.canContain(e)}accept(e){e.VisitReportSectionBase(this)}}a.typeName=s.a.ReportSectionBase},function(e,t,r){"use strict";var i;r.d(t,"a",(function(){return i})),function(e){e[e.Inside=0]="Inside",e[e.Outside=1]="Outside"}(i||(i={}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};function n(e,t){return i(this,void 0,void 0,(function*(){try{yield t(e)}finally{e.Dispose()}}))}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(3),n=r(8),s=r(210),a=r(0),o=r(13),l=r(111),c=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class d extends s.a{constructor(e,t){super(e,t),this.postponedResetItemImage=!1,this.renderService=this.Provider.getServiceByName(i.a.IRenderService),this.sr=this.Provider.getService(n.a),this.designerHost=this.Provider.getServiceByName(i.a.IDesignerHost)}get RenderService(){return this.renderService}get DesignerClassName(){throw new Error(`Designer class name for '${d.name}' not specified.`)}get VisualElementContentWrapper(){return this.VisualElementContent}CreateVisualElement(){const e=`<div class="${this.ClassName} -${this.DesignerClassName}">\n                            <div class="components__content"></div>\n                          </div>`,t=$.parseHTML(e);return $(t)}Render(e){const t=super.Render(e);return t.append(`<div class="components__loading">${this.sr.GeneratingPreview}</div>`),this.resetItemImage(t),t}Redraw(e=!1,t){super.Redraw(e),this.mustReloadItemImage(t)&&this.resetItemImage(this.VisualElement)}mustReloadItemImage(e){if(!e||!e.propertyDescriptor)return!0;const t=e.propertyDescriptor;return t.Name!==a.a.Left&&t.Name!==a.a.Top}resetItemImage(e){return c(this,void 0,void 0,(function*(){if(e)if(this.toggleLoadingMessage(!0),this.designerHost.InTransaction){if(!this.postponedResetItemImage){this.postponedResetItemImage=!0;const e=this.resetCore.bind(this);this.Provider.getService(o.b).once(l.a,e)}}else yield this.resetCore(null)}))}resetCore(e){return c(this,void 0,void 0,(function*(){if(e){if(!e.detail.TransactionCommitted)return}this.postponedResetItemImage=!1;const t=this.Component,r=this.designerHost.RootComponent,i=yield this.RenderItem(r.PropertyStore,t.Name);this.VisualElementContentWrapper.empty();let n=i.Content;i.Success?(n=decodeURIComponent(escape(atob(n))),this.VisualElementContentWrapper.append(n)):(this.VisualElementContentWrapper.append('<span class="runtime-item-error"></span>'),this.VisualElementContentWrapper.find(".runtime-item-error").text(n)),this.toggleLoadingMessage(!1)}))}toggleLoadingMessage(e){return c(this,void 0,void 0,(function*(){e?this.VisualElement.addClass("-runtime-item-generating-preview"):this.VisualElement.removeClass("-runtime-item-generating-preview")}))}}},function(e,t,r){"use strict";var i;r.d(t,"a",(function(){return i})),function(e){e[e.Overlapped=0]="Overlapped",e[e.Clustered=1]="Clustered",e[e.Stacked=2]="Stacked",e[e.Stacked100=3]="Stacked100"}(i||(i={}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get Functions(){return"Functions"}static get ReportParameters(){return"ReportParameters"}static get Operators(){return"Operators"}static get Constants(){return"Constants"}static get Fields(){return"Fields"}static get ReportConstants(){return"ReportConstants"}static get GlobalObjects(){return"GlobalObjects"}}},function(e,t,r){"use strict";r.d(t,"d",(function(){return s})),r.d(t,"g",(function(){return a})),r.d(t,"c",(function(){return o})),r.d(t,"f",(function(){return l})),r.d(t,"b",(function(){return c})),r.d(t,"a",(function(){return d})),r.d(t,"e",(function(){return u}));var i=r(143),n=r(1);class s extends i.a{}s.typeName=n.a.MapSeriesBase;class a extends s{}a.typeName=n.a.ShapeMapSeries;class o extends s{}o.typeName=n.a.LocationMapSeries;class l extends o{}l.typeName=n.a.PointMapSeries;class c extends l{}c.typeName=n.a.GraphMapSeries;class d extends c{}d.typeName=n.a.BarGraphMapSeries;class u extends c{}u.typeName=n.a.PieGraphMapSeries},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(4),n=r(29);class s{constructor(e,t,r=null,s=null){if(this.propertyStore=e,this.parent=r,this.provider=s,this.items=[],!i.b.isIterable(this.propertyStore))throw new n.a("ReportObjectCollection requires an iterable property store.",s);this.init(t)}*[Symbol.iterator](){for(let e of this.items)yield e}get Provider(){return this.provider}get Count(){return this.items.length}Get(e){return this.items[e]}IndexOf(e){return this.items.indexOf(e)}Add(e){this.push(e)}AddRange(e){for(let t=0;t<e.length;t++)this.Add(e[t])}Insert(e,t){this.items.splice(e,0,t),this.propertyStore.splice(e,0,t.PropertyStore)}Remove(e){const t=this.items.indexOf(e);this.RemoveAt(t)}RemoveAt(e){this.items.splice(e,1),this.propertyStore.splice(e,1)}Clear(){this.items.length=0,this.propertyStore.length=0}MoveTo(e,t){for(let r=t;r<this.Count;r++)e.push(this.Get(r));this.Clear()}length(){return this.items.length}pop(){return this.propertyStore.pop(),this.items.pop()}push(e){return this.propertyStore.push(e.PropertyStore),this.items.push(e)}join(e=""){return this.items.join(e)}shift(){return this.propertyStore.shift(),this.items.shift()}slice(e,t){return this.items.slice(e,t)}splice(e,t){return this.propertyStore.splice(e,t),this.items.splice(e,t)}unshift(e){return this.propertyStore.unshift(e.PropertyStore),this.items.unshift(e)}indexOf(e,t=0){return this.items.indexOf(e,t)}init(e){for(const t of this.propertyStore)this.items.push(new e(t))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(34),n=r(3);class s extends i.a{canContain(e){return!1}deleteCollectionComponent(e,t){const r=e.indexOf(this);e.splice(r,1);const i=this.Parent.PropertyStore[t],s=i.indexOf(this.PropertyStore);i.splice(s,1),0===i.length&&delete this.Parent.PropertyStore[t],this.Designer.Dispose();this.Provider.getServiceByName(n.a.IComponentChangeService).OnComponentRemoved(this)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return G}));var i=r(131),n=r(1),s=r(0),a=r(3),o=r(571),l=r(355),c=r(19),d=r(93),u=r(575),h=r(261),p=r(40),m=r(16),g=r(325),f=r(216),v=r(96),y=r(4),S=r(13),C=r(111),b=r(576),w=r(64),P=r(46),D=r(36),x=r(14),R=r(21),T=r(8),I=r(202),E=r(18),N=r(577),M=r(27),O=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},k=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let G=class extends c.a{constructor(e,t,r,n){super(),this.provider=e,this.loader=this.provider.getService(d.a),this.serviceContainer=new g.a(e.getService(g.a)),this.storageService=this.provider.getServiceByName(n),this.documentId=r;const s=y.b.parseDocumentId(this.documentId),c=R.a.getFileNameAndFolderPath(s.Name);this.documentName=c.fileName,this.documentPath=c.folderPath,this.documentExtension=s.Extension,this.visualElement=$($.parseHTML(this.template)),t.append(this.visualElement),this.serviceContainer.AddNamedService(a.a.DesignSurfaceEventsElement,this.visualElement[0]),this.serviceContainer.AddService(new S.b(this.serviceContainer.getServiceByName(a.a.DesignSurfaceEventsElement))),this.designerHost=new o.a(this),this.serviceContainer.AddService(this),this.serviceContainer.AddNamedService(a.a.IDesignerHost,this.designerHost),this.serviceContainer.AddService(new p.a(this)),this.selectionService=new m.a(this),this.serviceContainer.AddService(this.selectionService),this.serviceContainer.AddService(new l.a(this)),this.undoManager=new f.a(this),this.serviceContainer.AddService(this.undoManager),this.behaviorService=new i.a(this),this.serviceContainer.AddService(this.behaviorService),this.behaviorService.Zoom=1,this.initEventListener(),this.componentChangeService=this.provider.getServiceByName(a.a.IComponentChangeService),this.isModified=!1,this.webDesignerEventEmitter=e.getService(S.c);const u=new b.a(this.isModified,r);this.designSurfaceModifiedStateChanged=new w.c(u),this.positionsService=new h.a,this.serviceContainer.AddService(this.positionsService),this.UpdateUI=new I.a}get Zoom(){return this.behaviorService.Zoom}get RootComponent(){return this.designerHost.RootComponent}get template(){return'<div class="twd-design-surface"></div>'}get IsModified(){return this.isModified}set IsModified(e){if(this.isModified!==e){this.isModified=e;this.designSurfaceModifiedStateChanged.detail.isModified=e,this.webDesignerEventEmitter.emit(this.designSurfaceModifiedStateChanged);const t=this.storageService;e&&this.storageIsReportStorage(t)&&E.a.Do(()=>t.lock({uri:this.documentId})),this.webDesignerEventEmitter.emit(this.UpdateUI)}}get DocumentLoaded(){return this.documentLoaded}get IsSharedDataSourceSurface(){return!this.storageIsReportStorage(this.storageService)}get StringResources(){return this.stringResources||(this.stringResources=this.provider.getService(T.a)),this.stringResources}get documentNameAndExtension(){return this.documentName+(this.documentExtension?"."+this.documentExtension:"")}getSaveAssetRequestModel(e){return this.storageIsReportStorage(this.storageService)?{name:this.documentId,asset:e}:{name:this.documentNameAndExtension,parentUri:this.documentPath,asset:e}}createBlankDocument(e){return k(this,void 0,void 0,(function*(){const t=this.provider.getServiceByName(a.a.ISchemaService),r=yield t.getDefaultPropertyStore(this.getNetTypeByExtension());r.Name=null!=e?e:this.documentName;const i=yield E.a.Do(()=>this.storageService.Save(this.getSaveAssetRequestModel(r)));return i.isSuccess&&(yield this.loadDesignerHost(r)),i.isSuccess}))}createDocument(e){return k(this,void 0,void 0,(function*(){const t=yield E.a.Do(()=>this.storageService.Save(this.getSaveAssetRequestModel(e)));return t.isSuccess&&(yield this.loadDesignerHost(e)),t.isSuccess}))}openDocument(){return k(this,void 0,void 0,(function*(){const e=yield E.a.Do(()=>this.storageService.Get({uri:this.documentId})),t=e.isSuccess?e.Data:void 0;if(t){if(t.Localizable){const e=this.provider.getService(D.a).ReportServerLayout?this.StringResources.OpenLocalizedReportConfirmationMessageOnReportServer:this.StringResources.OpenLocalizedReportConfirmationMessage;if(!window.confirm(e))return;delete t.Localizable}yield this.loadDesignerHost(t)}}))}saveDocument(){return k(this,void 0,void 0,(function*(){let e;if(this.documentLoaded){const t=this.designerHost.RootComponent.PropertyStore;this.IsModified&&(e=yield E.a.Do(()=>this.storageService.Save(this.getSaveAssetRequestModel(t))),e.isSuccess&&(this.IsModified=!1))}return e.isSuccess}))}publishDocument(){return k(this,void 0,void 0,(function*(){if((!this.IsModified||(yield this.saveDocument()))&&this.storageIsReportStorage(this.storageService)){const e=this.storageService.publish;yield E.a.Do(()=>e({uri:this.documentId}))}}))}revertDocument(){return k(this,void 0,void 0,(function*(){this.documentLoaded&&this.storageIsReportStorage(this.storageService)&&(yield this.storageService.unlock({uri:this.documentId}).then(()=>{this.IsModified=!1,location.reload(!1)}))}))}reload(e,t){return k(this,void 0,void 0,(function*(){yield Object(v.a)(this.loader.Start(),()=>k(this,void 0,void 0,(function*(){yield this.designerHost.Reload(e);const r=this.designerHost.Components.filter(e=>t.includes(e.Name));if(r&&r.length>0){this.provider.getService(m.a).SetSelectedComponents(r)}})))}))}hide(){this.visualElement.hide()}show(){this.visualElement.show(),this.selectionService.ReapplySelection()}delete(){this.Dispose()}Dispose(){this.disposing||(this.disposing=!0,this.removeDesignSurfaceParts(),this.serviceContainer.Dispose(),this.disposing=!1)}removeDesignSurfaceParts(){this.documentLoaded?(this.designerHost.RootComponent.Designer.Dispose(),this.designerHost.RootComponent=null,this.visualElement.remove()):this.visualElement.remove()}updateZoom(e){this.visualElement.find("div").first().css({transform:"scale("+e+")"}),this.behaviorService.Zoom=e;const t=this.selectionService.GetSelectedComponents();this.designerHost.RootComponent.Designer.UpdateOverlay(!0);for(const e of t)e.Designer.UpdateResizable()}createNewComponent(e,t,r,i,n=!0){return k(this,void 0,void 0,(function*(){if(t||(t=yield this.getDefaultPropertyStore(e)),n&&!N.a.hasCreatePermission(e,this.provider))throw new Error(M.a.String(this.StringResources.CreateComponentPermissionError,{componentType:e}));i&&u.a.adjustPosition(i,t);const a=yield this.designerHost.CreateComponent(e,t,r);if(a){a.IsChildOfParent&&r.addItem(a.PropertyStore,!0);const e=new Map([[s.a.Name,a.Name]]);a.Designer.InitializeNewComponent(e),a.renderDesigner()}return this.componentChangeService.OnComponentAdded(a),a}))}getService(e){return this.serviceContainer.getService(e)}getServiceByName(e){return this.serviceContainer.getServiceByName(e)}canBePreviewed(){return this.getNetTypeByExtension()!==n.a.SharedDataSource}loadDesignerHost(e){return k(this,void 0,void 0,(function*(){yield this.designerHost.Load(e,this.visualElement),this.documentLoaded=!0}))}initEventListener(){const e=this.getService(S.b);e.on(P.b,e=>{e.detail.component.Designer.OnComponentChanged(e.detail)}),e.on(C.a,e=>{this.IsModified=this.IsModified||e.detail.TransactionCommitted})}getDefaultPropertyStore(e){return k(this,void 0,void 0,(function*(){const t=this.provider.getServiceByName(a.a.ISchemaService);return yield t.getDefaultPropertyStore(e)}))}getNetTypeByExtension(){return this.documentExtension===x.b.trbp?n.a.ReportBook:this.documentExtension===x.b.sdsx?n.a.SharedDataSource:n.a.Report}storageIsReportStorage(e){return void 0!==e.publish}};G.getServiceName=()=>"DesignSurface",G=O([Object(y.e)()],G)},function(e,t,r){"use strict";r.d(t,"a",(function(){return S}));var i=r(9),n=r(6),s=r(3),a=r(19),o=r(204),l=r(580),c=r(24),d=r(581),u=r(8),h=r(582),p=r(4),m=r(36),g=r(2),f=r(583),v=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},y=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let S=class extends a.a{constructor(e,t,r){super(),this.activeAssetsManagerOverlay=!1,this.provider=t,this.$visualElement=e,this.$loadedReportsList=null,this.designSurfaceManager=this.provider.getServiceByName(s.a.IDesignSurfaceManager),this.sr=this.provider.getService(u.a);const i=this.provider.getService(m.a);this.reportServerLayout=i.ReportServerLayout,this.removeListener=!1,this.init(r)}get header(){return"Telerik Report Designer"}get template(){return`<div class="twd-top-menu-area k-toolbar k-flex-none ${this.reportServerLayout?"-report-server":""} ${i.a.WebDesignerPartsClassName}">\n            <div class="top-menu-area__menu k-widget"></div>\n            <div class="top-menu-area__switch">\n                <input type="text" />\n            </div>\n            <div class="top-menu-area__search">\n            </div>\n            <div class="top-menu-area__actions">\n                <button title="${this.sr.UndoButton}" class="top-menu-area__button -undo -design-mode"></button>\n                <button title="${this.sr.RedoButton}" class="top-menu-area__button -redo -design-mode"></button>\n\n                <button class="top-menu-area__button -preview -design-mode k-primary k-button-solid-primary">${this.sr.PreviewButton}</button>\n                <button class="top-menu-area__button -design -preview-mode k-primary k-button-solid-primary">${this.sr.DesignButton}</button>\n            </div>\n        </div>`}init(e){return y(this,void 0,void 0,(function*(){const t=this.template;this.$visualElement.prepend(t),this.$visualElement=this.$visualElement.find(".twd-top-menu-area"),this.mainMenu=new h.a(this.$visualElement.find(".top-menu-area__menu"),this.provider),this.InitClipboardControls();const r=new c.a(n.a.DocumentPreview,this.provider);this.previewButton=this.$visualElement.find(".-preview").kendoButton({icon:"preview",click:e=>{r.execute(this.designSurfaceManager.ActiveDesignSurface.documentId),this.reportServerLayout||(this.$visualElement.removeClass("-design"),this.$visualElement.addClass("-preview"),this.$loadedReportsList.enable(!1),this.mainMenu.Enable(!1),this.globalSearchComponent.disable())}}).data("kendoButton");const i=new c.a(n.a.DocumentDesign,this.provider);this.$visualElement.find(".-design").kendoButton({icon:"track-changes-enable",click:e=>{i.execute(null),this.$visualElement.removeClass("-preview"),this.$visualElement.addClass("-design"),this.$loadedReportsList.enable(!0),this.mainMenu.Enable(!0),this.globalSearchComponent.enable()}});const s=this.$visualElement.find(".top-menu-area__switch");this.$loadedReportsList=s.find("input").kendoDropDownList({dataSource:[],autoWidth:!0,value:e,dataTextField:"DocumentId",dataValueField:"DocumentId",valueTemplate:kendo.template("<span>#= data.DocumentId #</span><span class='twd-disabled'>#= data.IsModified ? '*' : '' #</span>"),template:kendo.template(`<span class='twd-report-item'><span>#= data.DocumentId #</span><span>#= data.IsModified ? '*' : '' #</span><span title="${this.sr.Remove}" class='k-icon k-i-close twd-close-report' data-report='#= data.DocumentId #'></span></span>`),change:e=>{new c.a(n.a.DocumentOpen,this.provider).execute({DocumentId:e.sender.value(),CheckPermission:!0})},open:e=>{this.removeListener||setTimeout(()=>{this.initRemoveListener()},100)}}).data("kendoDropDownList");const a=g.c.getComponentByType(f.a);this.globalSearchComponent=a.builder.build(this.$visualElement.find(".top-menu-area__search"),this.provider),this.globalSearchComponent.init(a.selector)}))}focusGlobalSearch(){this.globalSearchComponent.focus()}initRemoveListener(){this.$loadedReportsList.popup.element.off("click",".twd-close-report").on("click",".twd-close-report",()=>{}),this.removeListener=!0}InitClipboardControls(){const e=this.provider.getService(o.a);e.registerCommand(new d.a(this.$visualElement.find(".-undo"),this.provider)),e.registerCommand(new l.a(this.$visualElement.find(".-redo"),this.provider))}createAssetManagerOverlay(e){this.activeAssetsManagerOverlay=!0,this.hideMainMenu(),this.updatePreviewButtonState(),this.globalSearchComponent.disable();const t=$("#twd-assetmanager-close-tab");$("#twd-assetmanager-close-tab").find(".twd-tab-close-x").click(()=>{this.activeAssetsManagerOverlay=!1,this.restoreMainMenu(t,e)})}hideMainMenu(){this.$loadedReportsList.wrapper.css("display","none"),this.mainMenu.VisualElement().hide(),this.mainMenu.VisualElement().after(`\n            <div id="twd-assetmanager-close-tab" class="twd-menu-box-tab">\n                <span class="twd-tab-text">${this.sr.AssetManager}</span>\n                <span class="twd-tab-close-x k-icon k-i-close k-i-x"></span>\n            </div>`)}restoreMainMenu(e,t){this.$loadedReportsList.wrapper.css("display",""),this.mainMenu.VisualElement().show(),this.designSurfaceManager.ActiveDesignSurface&&this.updatePreviewButtonState(),this.globalSearchComponent.enable(),e.remove(),t()}Update(){const e=this.designSurfaceManager.GetLoadedDocuments;if(this.$loadedReportsList.setDataSource(e),this.designSurfaceManager.ActiveDesignSurface){const e=this.designSurfaceManager.ActiveDesignSurface.documentId;this.$loadedReportsList.value(e),this.updatePreviewButtonState()}this.$loadedReportsList.refresh()}updatePreviewButtonState(){this.previewButton.enable(!this.activeAssetsManagerOverlay&&this.designSurfaceManager.ActiveDesignSurface.canBePreviewed())}};S.getServiceName=()=>"TopMenuArea",S=v([Object(p.e)()],S)},function(e,t,r){"use strict";r.d(t,"a",(function(){return C}));var i=r(14),n=r(3),s=r(19),a=r(16),o=r(8),l=r(367),c=r(296),d=r(121),u=r(607),h=r(13),p=r(53),m=r(608),g=r(4),f=r(50),v=r(106),y=r(36),S=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let C=class extends s.a{constructor(e,t){super(),this.provider=t,this.$placeholder=e,this.$placeholder.append(this.template),this.$visualElement=this.$placeholder.find(".properties__content"),this.$header=null,this.$description=null,this.options=this.provider.getService(y.a).PropertiesArea,this.editors=[],this.notAllowedEditorNames=[],this.$editorsDom=null,this.category={SelectedIndex:null,Expanded:!0},this.init()}get template(){return'\n            <div class="properties__content"></div>\n        '}get headerTemplate(){return'\n            <div class="twd-editor -header"><h3></h3></div>\n        '}get descriptionTemplate(){return'\n            <div class="properties__description k-widget">\n                <h5></h5>\n                <p></p>\n            </div>\n        '}get ParentVisualElement(){return this.$placeholder}get Editors(){return this.editors}get groupWrapperTemplate(){return'<div class="twd-editors"></div>'}groupHeaderTemplate(e){return`<span class="expander__header">${e}</span>`}categoryTemplate(e){return`<li class="expander__items" data-index="category-${e}"></li>`}init(){this.sr=this.provider.getService(o.a),this.$visualElement.append(this.headerTemplate),this.$header=this.$visualElement.find(".twd-editor h3"),this.initLayoutSwitcher(),this.$visualElement.append("<div class='properties__editors'></div>"),this.$editorsDom=this.$visualElement.find(".properties__editors"),this.$visualElement.append(this.descriptionTemplate),this.$description=this.$visualElement.find(".properties__description");const e=this.provider.getService(h.c);e.on(p.a,()=>{if(this.provider.getServiceByName(n.a.IDesignSurfaceManager).ActiveDesignSurface){const e=this.provider.getService(a.a).GetSelectedComponents();this.update(e)}else this.clear()},!1),e.on(m.a,e=>this.updateDescription(e.detail))}initLayoutSwitcher(){const e=this.provider.getService(o.a),t=new Map;t.set(i.d.ProperiesAreaCategorizedLayout,new c.a(this.options.Layout===i.d.ProperiesAreaCategorizedLayout,e.PropertiesCategorized,"propertiesOrder",i.d.ProperiesAreaCategorizedLayout,"k-i-categorize")),t.set(i.d.ProperiesAreaAlphabeticalLayout,new c.a(this.options.Layout===i.d.ProperiesAreaAlphabeticalLayout,e.PropertiesAlphabetical,"propertiesOrder",i.d.ProperiesAreaAlphabeticalLayout,"k-i-convert-uppercase"));const r=this.$visualElement.find(".twd-editor");new l.a(r,this.layoutChanged.bind(this),t,"left")}layoutChanged(e){this.options.Layout=e,this.updateEditor(this.currentComponents())}update(e){if(!e||0===e.length)return void this.clear();let t=`${e[0].DisplayName||e[0].NameAsJQueryAndHtmlSafeString} (${e[0].Type})`,r="";switch(e.length){case 1:break;case 2:t=`${t}, ${e[1].DisplayName||e[1].NameAsJQueryAndHtmlSafeString} (${e[1].Type})`;break;default:t=`${t}, +${e.length-1} ${this.sr.More}`}e.forEach(e=>{r=`${r}, ${e.DisplayName||e.NameAsJQueryAndHtmlSafeString} (${e.Type})`}),r=r.substring(2),this.$header.html(t).attr("title",r),this.$description.hide(),this.updateEditor(e)}updateDescription(e){e?(this.$description.show(),this.$description.find("h5").html(e.name),this.$description.find("p").html(e.description)):this.$description.hide()}clear(){this.$header.html("").attr("title",""),d.a.ClearProperties(this.$editorsDom,this.editors),this.editors=[]}updateEditor(e){var t,r;const s=this.options.Layout===i.d.ProperiesAreaAlphabeticalLayout;let a=this.getEditorsScrollableContainer(s);const o=null===(t=a[0])||void 0===t?void 0:t.scrollTop,l=null===(r=a[0])||void 0===r?void 0:r.scrollHeight,c=this.getExpandedEditorsStates(this.Editors);d.a.ClearProperties(this.$editorsDom,this.editors),this.editors=[];const u=this.provider.getServiceByName(n.a.IPropertyDescriptorWrapperFactory),h=e.length>1?u.CreateMergeableWrappers(e,null):e[0].BrowsablePropertyWrappers;this.initNotAllowedEditorNames(h),s?this.renderAlphabetically(h):this.renderInCategories(h),this.restoreExpandableEditorsStates(c,this.Editors),a=this.getEditorsScrollableContainer(s),this.setEditorsContainerScrollTop(o,l,a)}getEditorsScrollableContainer(e){return e?this.$editorsDom:this.$visualElement.find(".twd-expander")}getExpandedEditorsStates(e){const t=[];for(const r of e)if(this.isEditorExapandable(r)&&r.Expanded){const e=new u.a(r.LocalizedName);t.push(e);const i=r.childEditors;i.length>0&&(e.children=this.getExpandedEditorsStates(i))}return t}restoreExpandableEditorsStates(e,t){if(e.length>0)for(const r of t){let t;t=r.LocalizedName;const i=e.find(e=>e.name===t);if(i&&this.isEditorExapandable(r)){const e=r;e.Expanded||(e.Expanded=!0),i.children.length>0&&this.restoreExpandableEditorsStates(i.children,e.childEditors)}}}getExapandableEditorsIn(e){return e.filter(this.isEditorExapandable)}isEditorExapandable(e){return e instanceof v.a||e instanceof f.a}tryExpandCategory(e){if(this.options.Layout===i.d.ProperiesAreaAlphabeticalLayout)return;if(Array.isArray(e.propertyWrapper))return void g.b.logDebug(`First level editor ${e.constructor.name} - ${e.LocalizedName}\n                has a property wrapper Array! Cannot retrieve the category name`);const t=this.getPropertyWrapperCategory(e.propertyWrapper),r=this.getCategoryItemByName(t);this.expandCategoryItem(r),this.selectPanelBarCategoryItem(r)}setEditorsContainerScrollTop(e,t,r){var i;const n=null===(i=r[0])||void 0===i?void 0:i.scrollHeight,s=Math.round(e*(n/t));r.scrollTop(s)}initNotAllowedEditorNames(e){this.notAllowedEditorNames=[];for(const t of d.a.MaskedPropertyInfos)if(e.find(e=>e.Name===t.AllowedProperty)){e.filter(e=>t.MaskedProperties.includes(e.Name)).length===t.MaskedProperties.length&&(this.notAllowedEditorNames=[...this.notAllowedEditorNames,...t.MaskedProperties])}}groupByCategory(e){const t={},r={};return e.forEach(e=>{const r=this.getPropertyWrapperCategory(e);t[r]||(t[r]=[]),t[r].push(e)}),Object.keys(t).sort().forEach(e=>{r[e]=t[e]}),r}getPropertyWrapperCategory(e){return e.Category||"General"}renderAlphabetically(e){this.categoryPanelBar=null,this.$editorsDom.append(this.groupWrapperTemplate),this.editors=d.a.RenderPropertyEditors(this.$editorsDom.find(".twd-editors"),e,this.provider,e=>this.canCreateEditor(e))}renderInCategories(e){this.$editorsDom.append('<ul class="twd-expander -properties"></ul>');const t=this.$visualElement.find(".twd-expander"),r=this.groupByCategory(e);$.each(r,(e,r)=>{t.append(this.categoryTemplate(e));const i=t.find("[data-index='category-"+e+"']"),n=this.sr.getString(e+"Category");i.append(this.groupHeaderTemplate(null!=n?n:e)),i.append(this.groupWrapperTemplate);const s=i.find(".twd-editors"),a=d.a.RenderPropertyEditors(s,r,this.provider,e=>this.canCreateEditor(e));a.length?this.addEditor(a):i.hide()});const i=Object.keys(r)[0];this.categoryPanelBar=t.kendoPanelBar({expandMode:"single",select:e=>{const r=$(e.item),i=r.attr("data-index");let n=!0;if(void 0===r.attr("data-expanded"))t.find(".expander__items").removeAttr("data-expanded"),r.attr("data-expanded","true");else{const e=r.attr("data-expanded");r.removeAttr("data-expanded"),this.categoryPanelBar.collapse(r[0],!0),n="false"===e}this.category.SelectedIndex=i,this.category.Expanded=n}}).data("kendoPanelBar");const n=this.category.SelectedIndex?$('[data-index="'+this.category.SelectedIndex+'"]').attr("data-expanded",String(this.category.Expanded)):this.getCategoryItemByName(i);this.category.Expanded&&this.expandCategoryItem(n),this.selectPanelBarCategoryItem(n)}expandCategoryItem(e){this.categoryPanelBar.expand(e,!1)}getCategoryItemByName(e){return $('[data-index="category-'+e+'"]').attr("data-expanded","true")}selectPanelBarCategoryItem(e){var t;null===(t=this.categoryPanelBar)||void 0===t||t.select(e)}canCreateEditor(e){return!this.notAllowedEditorNames.includes(e.Name)}scrollToEditor(e){const t=e.$scrollTarget,r=$(".twd-properties").find(".properties__editors");r.animate({scrollTop:r.scrollTop()+t.offset().top-r.offset().top},750)}addEditor(e){e.forEach(e=>{this.editors.push(e)})}currentComponents(){return this.provider.getService(a.a).GetSelectedComponents()}};C.getServiceName=()=>"PropertiesArea",C=S([Object(g.e)()],C)},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(90);class n extends i.c{getTemplate(){return this.templates.Editors.EditorWrappers.expandableEditorWrapperComponentTemplate}afterInit(){super.afterInit(),this.EditorClassNames=this.classNames}get EditorClassNames(){return this.getByPropertyName(e=>{e.editorClassNames})}set EditorClassNames(e){this.setByPropertyName(e=>{e.editorClassNames},e)}get classNames(){return"twd-editor -expandable -"+this.editorDepth}addClass(e){this.EditorClassNames+=" "+e}removeClass(e){this.EditorClassNames=this.EditorClassNames.replace(" "+e,"")}toggleExpandedState(){this.Expanded=!this.Expanded}get $editorsPlaceholder(){return this.$visualElement.find(" > .editor__editors-container")}get Expanded(){return this.getByPropertyName(e=>{e.expanded})}set Expanded(e){this.setByPropertyName(e=>{e.expanded},e),e?this.addClass("-expanded"):this.removeClass("-expanded")}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return d})),r.d(t,"a",(function(){return h}));var i=r(79),n=r(0),s=r(3),a=r(12),o=r(16),l=r(33),c=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class d extends l.a{constructor(e,t){super(t,e),this.wizards=new Map}execute(e){return c(this,void 0,void 0,(function*(){const t=this.provider.getService(o.a),r=this.provider.getServiceByName(s.a.IDesignSurfaceManager),l=this.provider.getServiceByName(s.a.IDesignerHost).CreateTransaction(`New '${e.NetType}' item`);try{const s=t.PrimarySelection;if(!s)throw new Error("No target container is selected.");const a=i.a.GetContainerForNewItem(s,e.NetType);if(!a)throw new Error(`Cannot add new '${e.NetType}' in '${s.Name}'.`);const o=a.getProperty(n.a.Items);a.raiseComponentChanging(o),yield this.executeWizard(e,r,a),l.Commit()}catch(e){this.provider.getService(a.a).error(e.message,e),l.Rollback()}}))}}const u=new class{setCurrentActiveWizard(e){this.currentActiveWizard=e}disposeCurrentActiveWizard(){var e;null===(e=this.currentActiveWizard)||void 0===e||e.close()}};class h extends d{executeWizard(e,t,r){return c(this,void 0,void 0,(function*(){u.disposeCurrentActiveWizard(),u.setCurrentActiveWizard(yield this.createEmbeddedWizard(e,t,r))}))}}},function(e,t,r){"use strict";var i;r.d(t,"a",(function(){return i})),function(e){e.None="No authentication",e.Basic="Basic",e.TwoStep="2-Step"}(i||(i={}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return o}));var i=r(59);class n extends i.a{constructor(e,t){throw super(e,t),new Error("InvalidOperation: Cannot create an instance of FakeInlineSourcePropertyChildEditor, as it is only a placeholder for searching")}updateStateUi(){throw new Error("Method not implemented.")}getTemplate(){throw new Error("Method not implemented.")}static getTypeName(){throw new Error("Must be implemented in child class")}}class s extends n{static getTypeName(){return"FakeInlineSourcePropertyUriEditor"}}class a extends n{static getTypeName(){return"FakeInlineSourcePropertyPathEditor"}}class o extends n{static getTypeName(){return"FakeInlineSourcePropertyTextEditor"}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(191),n=r(7),s=r(2),a=r(415),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends a.a{getPopupWindowData(){return{component:this.selectedComponent,canCreateEditorCallback:e=>this.canCreateEditor(e),propertyWrapper:this.propertyWrapper}}createWindowManager(){return new i.b(this.provider)}};l=o([Object(s.a)("component-collection-editor"),Object(n.b)("Telerik.Reporting.Design.GraphGroupCollectionEditor","Telerik.Reporting.Design.MapGroupCollectionEditor"),Object(n.b)("ReportParameterCollection","ParameterCollection","SortingCollection","FilterCollection"),Object(n.b)("GroupingCollection","MapTitleCollection","ConditionalFormatting","SqlDataSourceParameterCollection"),Object(n.b)("ObjectDataSourceParameterCollection","WebServiceParameterCollection","CalculatedFieldCollection","GraphTitleCollection"),Object(n.b)("DataColumnCollection","MapLegendCollection","RenderingSettingsCollection","Telerik.Reporting.Design.GeoLocationMapGroupCollectionEditor"),Object(n.b)("RadialGaugeRangeCollection","RadialGaugeTicksCollection","RadialGaugeLabelsCollection"),Object(n.b)("LinearGaugeRangeCollection","LinearGaugeScaleCollection","LinearGaugeTicksCollection","LinearGaugeLabelsCollection")],l)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i,n=r(43),s=r(4),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=i=class extends n.a{constructor(e){super(i.getEventName(),e)}};o.getEventName=()=>"TransactionClosedEvent",o=i=a([Object(s.e)()],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(82),n=r(759),s=r(0),a=r(3),o=r(12);class l{constructor(e,t,r,i){this.components=e,this.propertyStores=t,this.storesCount=t.length,this.property=r,this.parentWrapper=i,this.parentProperties=null,this.value=null}get Name(){return this.property.Name}get Type(){const e=this.Value;return e&&e.NetType?e.NetType:this.property.Type}get EditorType(){return this.property.EditorType}get Description(){return this.property.Description}get Category(){return this.property.Category}get Browsable(){return this.property.Browsable}get Mergeable(){return this.property.Mergeable}get BindingScope(){return this.property.BindingScope}get ReadOnly(){return this.property.ReadOnly}get Components(){return this.components}get ParentWrapper(){return this.parentWrapper}get Property(){return this.property}get Value(){return this.value||(this.value=this.GetValue()),this.value}GetValue(){let e=this.getValuePerComponent(this.components[0],this.propertyStores[0]);for(let t=1;t<this.storesCount;t++){if(e!==this.getValuePerComponent(this.components[t],this.propertyStores[t]))return null}return e}ShouldSerializeValue(){for(const e of this.propertyStores)if(this.property.ShouldSerializeValue(e))return!0;return!1}getDefaultValue(){let e;for(const t of this.components)if(e=this.getLinkedPropertyValue(t),e)break;return null!=e?e:this.property.DefaultValue}getValuePerComponent(e,t){const r=this.getHorizontalValue(this.property,e,t);if(void 0===r&&this.property.UseParentValue){let t=e.Parent;const r=this.getParentPropertiesChain();for(;t;){let e=t.PropertyStore;for(let i=0;i<r.length&&(e=this.getHorizontalValue(r[i],t,e),void 0!==e);i++)if(i===r.length-1)return e;t=t.Parent}}return void 0===r?this.getDefaultValue():r}getHorizontalValue(e,t,r){const i=e.GetValue(t,r);return void 0===i?this.getLinkedPropertyValue(t):i}getLinkedPropertyValue(e){const t=this.getParentPropertiesChain().map(e=>e.Name);let r;if(this.isStyleChildProperty(t)){const s=e.Provider.getServiceByName(a.a.IDesignerHost).RootComponent;if(s&&e instanceof i.a){let i=s.styleRulesCache.get(e);i||(i=(new n.a).GetRulesToApply(e,s.StyleSheet),s.styleRulesCache.set(e,i));for(const e of i){const i=e.getPropertyValue(...t);i&&(r=i)}}}return r}isStyleChildProperty(e){return e.includes(s.a.Style)}getParentPropertiesChain(){if(!this.parentProperties){this.parentProperties=[],this.parentProperties.unshift(this.Property);let e=this.parentWrapper;for(;e;)this.parentProperties.unshift(e.Property),e=e.ParentWrapper}return this.parentProperties}SetValue(e){this.applyForEach((t,r)=>this.property.SetValue(e,t,r),"Change",this.property.NotifyParentProperty),this.value=null}ResetValue(){this.applyForEach((e,t)=>this.property.ResetValue(e,t),"Reset",this.property.NotifyParentProperty),this.value=null}SetValueRaw(e){for(let t=0;t<this.storesCount;t++)this.propertyStores[t][this.property.Name]=e}GetChildProperties(){const e=this.property.GetChildProperties(this.Type);if(e.length>0){const t=this.propertyStores.map((e,t)=>{let r=this.property.GetValue(this.components[t],e);return r||(r={},e[this.property.Name]=r),r});return e.map(e=>new l(this.components,t,e,this))}return[]}GetChildProperty(e){return this.GetChildProperties().find(t=>t.Name===e)}applyForEach(e,t,r){const i=this.components[0].Provider,n=i.getServiceByName(a.a.IDesignerHost);let s=this.parentWrapper;const l=[];if(r)for(;s;)l.push(s),s=s.ParentWrapper;let c,d=!1;n.InTransaction||(c=n.CreateTransaction(`${t} property '${this.property.Name}' of '${this.Components.map(e=>e.Name).join("', '")}'`),d=!0);try{for(let t=0;t<this.storesCount;t++)e(this.components[t],this.propertyStores[t]);d&&c.Commit()}catch(e){d&&c.Rollback();throw i.getService(o.a).error(`Could not ${t.toLowerCase()} property '${this.property.Name}'. ${e.message}`,e),e}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(71),n=r(16),s=r(8),a=r(33);class o extends a.a{constructor(e,t){super(t,e)}get stringResources(){return this._stringResources||(this._stringResources=this.provider.getService(s.a)),this._stringResources}get selectionService(){return this._selectionService||(this._selectionService=this.provider.getService(n.a)),this._selectionService}reset(){this._selectionService=null}updateStatus(e){e||(e=this._status),this.selectionService&&(e.enabled=this.isValidSelection(this.selectionService.GetSelectedComponents()))}isValidSelectionCore(e){return!this.componentsContainReportItem(e)}isValidSelection(e){return!(!e||0===e.length)&&this.isValidSelectionCore(e)}componentsContainReportItem(e){for(const t of e)if(t instanceof i.a)return!0;return!1}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(4);class n extends kendo.data.ObservableObject{getByPropertyName(e){return this.get(i.b.getPropertyName(e))}setByPropertyName(e,t){this.set(i.b.getPropertyName(e),t)}triggerChangeByPropertyName(e){this.trigger("change",{field:i.b.getPropertyName(e)})}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(48),n=r(3);class s extends i.a{constructor(e,t){super(e,t),this.schemaService=this.provider.getServiceByName(n.a.ISchemaService)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return S}));var i=r(131),n=r(20),s=r(45),a=r(23),o=r(9),l=r(25),c=r(1),d=r(0),u=r(3),h=r(111),p=r(13),m=r(769),g=r(775),f=r(8),v=r(117),y=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class S{constructor(e,t){this.provider=e,this.component=t,this.$visualElement=this.CreateVisualElement(),this.$visualElementContent=null,this.resizable=g.a.get(this,this.provider),this.overlay=new m.a(this,this.provider),this.cssBuilder=null,this.behaviorService=this.provider.getService(i.a),this.zoom=this.behaviorService.Zoom,this.postponedRedraw=!1}get stringResources(){return this._stringResources||(this._stringResources=this.provider.getService(f.a)),this._stringResources}static get ButterflyEffectProperties(){return[d.a.Style,d.a.Items,d.a.Width,d.a.Height,d.a.Top,d.a.Left]}GetContextMenuCommands(){return[l.a.Cut,l.a.Copy,l.a.Paste,l.a.Delete]}get ClassName(){return o.a.ComponentsClassName}get Provider(){return this.provider}get Component(){return this.component.Component}get ParentDesigner(){const e=this.Component.Parent;return e?e.Designer:null}get VisualElement(){return this.$visualElement}get VisualElementContent(){return this.$visualElementContent}get GetResizableHandles(){return""}get Resizable(){return this.resizable}get Overlay(){return this.overlay}CreateVisualElement(){const e=`<div class="${this.ClassName}">\n                            <div class="components__content"></div>\n                          </div>`,t=$.parseHTML(e);return $(t)}InitializeVisualElementContent(){this.$visualElementContent=this.VisualElement.find(".components__content"),this.VisualElementContent.css(this.cssBuilder.ContentStyles)}Initialize(){return y(this,void 0,void 0,(function*(){}))}InitializeNewComponent(e){this.initDefaultProperty(this.Component.getPropertyWrapper(d.a.Text),c.a.String,e.get(d.a.Name))}initDefaultProperty(e,t,r){r&&e&&!e.GetValue()&&e.Type.toUpperCase()===t.toUpperCase()&&e.Browsable&&!e.ReadOnly&&e.SetValue(r)}OnComponentChanged(e){const t=this.provider.getServiceByName(u.a.IDesignerHost);if(this.redrawChildren=!!e.propertyDescriptor&&S.ButterflyEffectProperties.includes(e.propertyDescriptor.Name),t.InTransaction){if(!this.postponedRedraw){this.postponedRedraw=!0;this.provider.getService(p.b).once(h.a,this.RedrawPostponed.bind(this,e))}}else this.clearStyleRulesCache(e),this.Redraw(this.redrawChildren,e)}RedrawPostponed(e){this.postponedRedraw=!1,this.clearStyleRulesCache(e),this.Redraw(this.redrawChildren,e)}Render(e){return this.createCssBuilder(),this.VisualElement.css(this.cssBuilder.Styles),this.VisualElement.attr("data-component-selection",this.Component.NameAsAttributeSafeString),this.AttachToParent(e,this.VisualElement),this.AttachKeyHandlers(),this.InitializeVisualElementContent(),this.InitializeOverlay(),this.SetTooltipGlyphs(),this.VisualElement}AttachToParent(e,t){e.append(t)}InitializeOverlay(){this.overlay.Initialize(!1,!1,!0)}Resize(e){}OnResizeStart(){}Drag(e){}Redraw(e=!1,t=null){this.createCssBuilder(),this.VisualElement.removeAttr("style"),this.VisualElement.css(this.cssBuilder.Styles),this.VisualElement.attr("data-component-selection",this.Component.NameAsAttributeSafeString),this.VisualElementContent.removeAttr("style"),this.VisualElementContent.css(this.cssBuilder.ContentStyles),this.UpdateOverlay(),this.UpdateResizable(),e&&this.RedrawChildren(t),this.SetTooltipGlyphs(!0)}RedrawChildren(e=null){for(const t of this.Component.Children){const r=t.Designer;r&&r.Redraw(!0,e)}}UpdateResizable(){this.resizable.Update()}UpdateOverlay(e=!1){this.overlay.Update(),e&&this.UpdateChildrenOverlay()}UpdateChildrenOverlay(){for(const e of this.Component.Children){const t=e.Designer;t&&t.UpdateOverlay(!0)}}SetTooltipGlyphs(e=!1){}ToggleInteractivity(e){e?(this.resizable.IsInitialized?this.resizable.Update():this.resizable.Initialize(),this.overlay.Enable()):(this.resizable.Dispose(),this.overlay.Disable())}AttachKeyHandlers(){}Dispose(){this.provider.getServiceByName(u.a.IDesignerHost).UnregisterComponent(this.Component);for(const e of this.Component.Children)e.Designer&&e.Designer.Dispose();this.overlay.Dispose(),this.resizable.Dispose(),this.VisualElement.remove()}get Zoom(){return this.zoom}GetBounds(e){return s.a.Empty}GetAbsoluteBounds(){return s.a.Empty}GetLocation(e){return n.a.Empty}GetClientBounds(e){throw new Error("Method not implemented.")}GetAbsoluteClientBounds(){throw new Error("Method not implemented.")}GetAbsoluteClientLocation(){throw new Error("Method not implemented.")}GetClientLocation(e){throw new Error("Method not implemented.")}GetPadding(e,t,r,i){throw new Error("Method not implemented.")}GetSize(){return a.a.Empty}createCssBuilder(){this.cssBuilder=new v.a(this.component)}clearStyleRulesCache(e){if(e.propertyDescriptor&&e.propertyDescriptor.Name===d.a.StyleName){this.provider.getServiceByName(u.a.IDesignerHost).RootComponent.clearStyleRulesCache()}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(5),n=r(30),s=r(0),a=r(89),o=r(780);class l{constructor(e,t=!0){this.component=e,this.propertyWrappers=e.PropertyWrappers,this.Styles={},this.ContentStyles={},this.styleProperty=this.getPropertyByName(s.a.Style),this.addStyles(t)}get Designer(){return this.component.Designer}getPropertyByName(e){return this.propertyWrappers.find(t=>t.Name===e)}addStyles(e){const t=this.getBorderPx(e);this.addPositionDeclarations(t),this.addSizeDeclarations(t),this.styleProperty&&(this.addTextDeclarations(),this.addFontDeclarations(),this.addBorderDeclarations(e),this.addBackgroundDeclarations(),this.addPaddingDeclarations(t))}addPositionDeclarations(e){const t=this.Designer.GetLocation(!1);if(this.component.Parent){const e=this.component.Parent.Designer.GetClientLocation(!1);t.Offset(e.X,e.Y)}t.Offset(-e.Left/2,-e.Top/2),this.addDeclaration("left",new i.a(t.X).ToString()),this.addDeclaration("top",new i.a(t.Y).ToString())}addSizeDeclarations(e){const t=this.Designer.GetSize();if(t.Width){const r=t.Width+((e.Left||0)+(e.Right||0))/2;this.addDeclaration("width",new i.a(r).ToString())}if(t.Height){const r=t.Height+((e.Top||0)+(e.Bottom||0))/2;this.addDeclaration("height",new i.a(r).ToString())}}addTextDeclarations(){const e=this.styleProperty.GetChildProperty(s.a.TextIndent);if(e){const t=i.a.Parse(e.GetValue());this.addDeclaration("text-indent",t.ToUnit(n.a.Pixel).ToString())}const t=this.getPropertyByName(s.a.TextWrap);t&&(t.GetValue()?this.addDeclaration("word-wrap","break-word"):(this.addDeclaration("word-wrap","normal"),this.addDeclaration("white-space","nowrap")))}addFontDeclarations(){const e=this.styleProperty.GetChildProperty(s.a.Color);this.addContentDeclaration("color",a.a.ToHexColor(e.GetValue()));const t=this.styleProperty.GetChildProperty(s.a.Font),r=t.GetChildProperty(s.a.Name).GetValue();this.addContentDeclaration("font-family",r);const i=t.GetChildProperty(s.a.Size).GetValue();this.addContentDeclaration("font-size",i);const n=t.GetChildProperty(s.a.Italic).GetValue();n&&"true"===n.toLowerCase()&&this.addContentDeclaration("font-style","italic");const o=t.GetChildProperty(s.a.Bold).GetValue();o&&"true"===o.toLowerCase()&&this.addContentDeclaration("font-weight","bold");let l="";const c=t.GetChildProperty(s.a.Underline).GetValue();c&&"true"===c.toLowerCase()&&(l+="underline");const d=t.GetChildProperty(s.a.Strikeout).GetValue();d&&"true"===d.toLowerCase()&&(l+=" line-through"),""!==l&&this.addContentDeclaration("text-decoration",l.trim());const u=this.styleProperty.GetChildProperty(s.a.VerticalAlign).GetValue();let h=!1;if("Top"!==u){let e="baseline";switch(u){case"Middle":e="center";break;case"Bottom":e="flex-end"}this.addContentDeclaration("display","flex"),this.addContentDeclaration("align-items",e),h=!0}let p="start",m="flex-start";switch(this.styleProperty.GetChildProperty(s.a.TextAlign).GetValue()){case"Right":p="end",m="flex-end";break;case"Center":p="center",m="center";break;case"Justify":p="justify"}this.addContentDeclaration("text-align",p),h&&this.addContentDeclaration("justify-content",m)}addBorderDeclarations(e){if(!e)return;const t=this.styleProperty.GetChildProperty(s.a.BorderStyle),r=this.styleProperty.GetChildProperty(s.a.BorderWidth),n=this.styleProperty.GetChildProperty(s.a.BorderColor),o=t.GetChildProperty(s.a.Left).GetValue(),l=t.GetChildProperty(s.a.Top).GetValue(),c=t.GetChildProperty(s.a.Right).GetValue(),d=t.GetChildProperty(s.a.Bottom).GetValue(),u=i.a.Parse(r.GetChildProperty(s.a.Left).GetValue()),h=i.a.Parse(r.GetChildProperty(s.a.Top).GetValue()),p=i.a.Parse(r.GetChildProperty(s.a.Right).GetValue()),m=i.a.Parse(r.GetChildProperty(s.a.Bottom).GetValue()),g=n.GetChildProperty(s.a.Left).GetValue(),f=n.GetChildProperty(s.a.Top).GetValue(),v=n.GetChildProperty(s.a.Right).GetValue(),y=n.GetChildProperty(s.a.Bottom).GetValue();"None"!==o&&u.ToPixels()>.5&&this.addDeclaration("border-left",`${u.ToString()} ${String(o).toLowerCase()} ${a.a.ToHexColor(g)||""}`),"None"!==l&&h.ToPixels()>.5&&this.addDeclaration("border-top",`${h.ToString()} ${String(l).toLowerCase()} ${a.a.ToHexColor(f)||""}`),"None"!==c&&p.ToPixels()>.5&&this.addDeclaration("border-right",`${p.ToString()} ${String(c).toLowerCase()} ${a.a.ToHexColor(v)||""}`),"None"!==d&&m.ToPixels()>.5&&this.addDeclaration("border-bottom",`${m.ToString()} ${String(d).toLowerCase()} ${a.a.ToHexColor(y)||""}`)}addBackgroundDeclarations(){const e=this.styleProperty.GetChildProperty(s.a.BackgroundColor).GetValue(),t=this.ToCssRgbaColor(e);this.addDeclaration("background-color",t);const r=this.styleProperty.GetChildProperty(s.a.BackgroundImage);if(r){const e=r.GetChildProperty(s.a.ImageData).GetValue();if(e){const t=`url('data:${r.GetChildProperty(s.a.MimeType).GetValue()};base64,${e}')`;this.addDeclaration("background-image",t);const i=r.GetChildProperty(s.a.Repeat).GetValue();i&&("Repeat"===i&&this.addDeclaration("background-repeat","repeat"),"NoRepeat"===i&&this.addDeclaration("background-repeat","no-repeat"),"RepeatX"===i&&this.addDeclaration("background-repeat","repeat-x"),"RepeatY"===i&&this.addDeclaration("background-repeat","repeat-y"))}}}ToCssRgbaColor(e){return`rgba( ${a.a.ToRgbaColor(e)} )`}addPaddingDeclarations(e){const t=this.Designer.GetPadding(!0,!0,!0,!0);this.addContentDeclaration("padding-left",Math.max(0,t.Left)),this.addContentDeclaration("padding-top",Math.max(0,t.Top)),this.addContentDeclaration("padding-right",Math.max(0,t.Width)),this.addContentDeclaration("padding-bottom",Math.max(0,t.Height)),this.addContentDeclaration("top",-e.Top/2),this.addContentDeclaration("left",-e.Left/2),this.addContentDeclaration("right",-e.Right/2),this.addContentDeclaration("bottom",-e.Bottom/2)}getBorderPx(e){const t=new o.a(0,0,0,0);if(!this.styleProperty||!e)return t;const r=this.styleProperty.GetChildProperty(s.a.BorderStyle),n=this.styleProperty.GetChildProperty(s.a.BorderWidth),a=r.GetChildProperty(s.a.Left).GetValue(),l=n.GetChildProperty(s.a.Left).GetValue();"None"!==a&&(t.Left=i.a.Parse(l).ToPixels());const c=r.GetChildProperty(s.a.Top).GetValue(),d=n.GetChildProperty(s.a.Top).GetValue();"None"!==c&&(t.Top=i.a.Parse(d).ToPixels());const u=r.GetChildProperty(s.a.Right).GetValue(),h=n.GetChildProperty(s.a.Right).GetValue();"None"!==u&&(t.Right=i.a.Parse(h).ToPixels());const p=r.GetChildProperty(s.a.Bottom).GetValue(),m=n.GetChildProperty(s.a.Bottom).GetValue();return"None"!==p&&(t.Bottom=i.a.Parse(m).ToPixels()),t}addDeclaration(e,t){void 0!==t&&(this.Styles[e]=t)}addContentDeclaration(e,t){void 0!==t&&(this.ContentStyles[e]=t)}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return a}));var i=r(105),n=r(3);class s{constructor(e){this.provider=e,this.propertiesArea=this.provider.getService(i.a),this.schemaService=this.provider.getServiceByName(n.a.ISchemaService)}getChildEditorBuilders(e){const t=this.getChildProperties(e).filter(e=>Array.isArray(e)||this.canCreateEditor(e));return this.getChildEditorBuildersByPropertyWrappers(t)}getChildEditorBuildersByPropertyWrappers(e){return e.filter(e=>e.Browsable).map(e=>({builder:this.schemaService.getEditorType(e.EditorType,e.Type),propertyWrapper:e})).filter(e=>!!e.builder)}getChildProperties(e){return e.GetChildProperties()}canCreateEditor(e){return this.propertiesArea.canCreateEditor(e)}}class a extends s{getChildProperties(e){const t=super.getChildProperties(e),r=[];for(const e of this.propertiesOrder)for(const i of t)if(i.Name===e){r.push(i);break}return r}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e){this.restore(e)}getOption(e){return localStorage.getItem(e)}saveOption(e,t){localStorage.setItem(e,t)}clearOption(e){localStorage.removeItem(e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(5),n=r(20);class s{constructor(e,t){this.x=e,this.y=t}get X(){return this.x}get Y(){return this.y}static get Empty(){return new s(new i.a(0),new i.a(0))}static Parse(e,t){let r=e?i.a.Parse(e):new i.a(0),n=t?i.a.Parse(t):new i.a(0);return new s(r,n)}Offset(e,t){this.x=this.x.Add(e),this.y=this.y.Add(t)}ToPixels(){return new n.a(this.X.ToPixels(),this.Y.ToPixels())}Equals(e){return this.X.Equals(e.X)&&this.Y.Equals(e.Y)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(3),n=r(482),s=r(0);class a{static get MaskedPropertyInfos(){return[new n.a(s.a.Location,[s.a.Left,s.a.Top]),new n.a(s.a.Size,[s.a.Width,s.a.Height])]}static get DisabledProperties(){return[s.a.Docking,s.a.Anchoring,s.a.Password,s.a.Source]}static ClearProperties(e,t){t.forEach(e=>e.Dispose()),e.empty()}static RenderPropertyEditors(e,t,r,n=null,s=0){const o=r.getServiceByName(i.a.ISchemaService),l=[];for(const e of t.filter(e=>!!e.EditorType))if(!n||n(e)){const t=o.getEditorType(e.EditorType,e.Type);t&&l.push({builder:t,propertyWrapper:e})}return a.renderPropertyEditorsWithResolvedTypes(e,l,r,s)}static renderPropertyEditorsWithResolvedTypes(e,t,r,i=0){const n=[];for(let s of t)n.push(s.builder.createInstance(e,s.propertyWrapper,r,i));if(n.length){const e=n[n.length-1];e.view.bind("init",()=>e.visualElement.addClass("twd-editor-last"))}return n}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(0);class n{static GetFieldReference(e){if(e){let t=e.match(/^=\s*Fields\.(\w+)$/);if(t&&0!==t.length||(t=e.match(/^=\s*(\w+)$/)),t&&t.length>1)return t[1]}return""}static IsNumericType(e){return!0}static IsExpression(e){return(""+e).startsWith("=")}static IsAggregateExpression(e){e=e.toLowerCase();for(const t of n.Aggregates){const r=`=${t}(`;if(e.startsWith(r))return!0}return!1}static IsReportItemDataObjectExpression(e){const t=e.trim();return this.IsExpression(t)&&i.a.comparePropertyNames(t.substring(1),`${i.a.ReportItem}.${i.a.DataObject}`)}}n.Aggregates=["sum","avg","count","first","last","min","max","stdev","var"]},function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return o}));var i,n=r(4);!function(e){e.ChangeView="ChangeViewCommand",e.TogglePane="TogglePaneCommand",e.Delete="DeleteCommand",e.Rename="RenameCommand"}(i||(i={}));class s{setState(e){this.state=e}restore(){kendo.ui.filemanager.commands=this.state.commands;a()._breadcrumbChange=this.state.breadcrumbChange}}function a(){return kendo.ui.FileManager.fn}class o{static addPatches(e,t){const r=kendo.ui.filemanager,i=a(),n=new s;return n.setState({commands:r.commands,breadcrumbChange:i._breadcrumbChange}),t.forEach(t=>o.setCommand(r,t,e)),this.setKendoFileManagerBreadcrumbBreadcrumbChange(),n}static setCommand(e,t,r){e.commands[t.name]=e.FileManagerCommand.extend({exec:function(){t.func(this,r)}})}static getLocalization(e){return{toolbar:{gridView:e.GridView,listView:e.ListView,sortDirection:e.SortDirection,sortDirectionAsc:e.SortDirectionAsc,sortDirectionDesc:e.SortDirectionDesc,sortField:e.SortBy,nameField:e.Name,sizeField:e.Size,dateModifiedField:e.DateModified,dateCreatedField:e.DateCreated,search:e.Search,details:e.ViewDetails,detailsChecked:e.ViewDetailsChecked,detailsUnchecked:e.ViewDetalisUnchecked},previewPane:{noFileSelected:e.NoFileSelected,extension:e.Extension,size:e.Size,created:e.DateCreated,modified:e.DateModified,items:e.Items}}}static setKendoFileManagerBreadcrumbBreadcrumbChange(){a()._breadcrumbChange=function(e){var t=e.sender.items().filter((function(t){let r=t.path,i=e.value.substring(1);return r&&i&&(r=n.b.rTrim(r,"/"),i=n.b.rTrim(i,"/")),r===i})).shift();this._navigate({path:t?t.id:""})}}}o.fileManagerSchema={data:function(e){return e.items||e||[]},model:{id:"path",hasChildren:"hasDirectories",fields:{name:{editable:!0,type:"String",defaultValue:"New Folder",field:"name"},size:{editable:!1,type:"Number",field:"size"},path:{editable:!1,type:"String",field:"path"},extension:{editable:!1,type:"String",field:"extension"},isDirectory:{editable:!1,defaultValue:!0,type:"Boolean",field:"isDirectory"},hasDirectories:{editable:!1,defaultValue:!1,type:"Boolean",field:"hasDirectories"},created:{type:"Date",editable:!1,field:"created"},createdUtc:{type:"Date",editable:!1,field:"createdUtc"},modified:{type:"Date",editable:!1,field:"modified"},modifiedUtc:{type:"Date",editable:!1,field:"modifiedUtc"}}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(478),n=r(17),s=r(21);class a extends i.b{static createFolder(e,t,r,i,n,s,o,l,c){return new a(e,t,r,i,n,s,o,l,c)}static createArtificialFolder(e,t,r,i,n){return new a(e,null,null,null,t,r,null,i,n)}}class o extends i.a{static createFile(e,t,r,i,n,s,a,l){return new o(e,t,r,i,n,s,a,l)}}const l=new class{fromListingModel(e,t){var r=e.folders.map(e=>this.fromFolderModel(e,t)),i=e.files.map(e=>this.fromResourceModel(e,t));return r.concat(i)}fromArtificialFolderInfo(e){return a.createArtificialFolder(e.name,e.hasDirectories,e.path,e.path,n.c.getFolderSpriteCssClass(e.name))}fromFolderModel(e,t){const r=this.getPath(t);return a.createFolder(e.name,e.createdOn,e.modifiedOn,null,e.hasSubFolders,e.uri,r,`${r}${e.name}`,n.c.getFolderSpriteCssClass(e.name))}fromResourceModel(e,t){const r=this.getPath(t);return o.createFile(e.fileName,e.createdOn,e.modifiedOn,e.size,e.uri,r,`${r}${e.fileName}`,n.c.getFileSpriteCssClass(e.fileName))}fromReportFile(e,t){const r={fileName:e.name,uri:s.a.appendFilePathToPath(n.c.trimArtificialPathPart(!0,t.path),e.name),createdOn:new Date(e.lastModified),modifiedOn:new Date(e.lastModified),size:Math.ceil(e.size/1024),fullPath:null,fullName:null},i=this.fromResourceModel(r,t);return i.spriteCssClass=n.c.getFileSpriteCssClass(i.name),i}deepCloneFile(e){return o.createFile(e.name,e.created,e.modified,e.size,e.uri,e.parentPath,e.path,e.spriteCssClass)}getPath(e){return e&&e.path?e.path:""}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return n}));const i=[{name:"Comma",value:","},{name:"Semicolon",value:";"},{name:"Tab",value:"\t"},{name:"Space",value:" "},{name:"Other",value:""}],n=[{name:"New line (\\r\\n)",value:"\r\n"},{name:"Semicolon",value:";"},{name:"Other",value:""}]},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(94),n=r(1);class s extends i.a{accept(e){e.VisitReportSection(this)}}s.typeName=n.a.ReportSection},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var i=r(70),n=r(85),s=r(10),a=r(2),o=r(8),l=r(152),c=r(17),d=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let u=class extends i.b{constructor(){super(...arguments),this.onClosing=new s.b}get HasSelectedFile(){return this.getByPropertyName(e=>{e.hasSelectedFile})}set HasSelectedFile(e){this.setByPropertyName(e=>{e.hasSelectedFile},e)}beforeInit(){super.beforeInit(),this.stringResources=this.provider.getService(o.a),this.recentFilesService=this.provider.getService(l.a)}onWindowLoaded(){var e;this.ChildComponents.length>0&&(null===(e=this.ChildComponents[0])||void 0===e||e.onWindowLoaded())}onWindowOpenAnimationComplete(){this.onWindowLoaded()}get initialPath(){return this._$injectedInputData.initialPath}get initialItem(){return this._$injectedInputData.initialItem}get forReportSelection(){return this._$injectedInputData.forReportSelection}get isWindowed(){return!0}get assetManagerConfig(){return this._$injectedInputData.assetManagerConfig}getTemplate(){return this.templates.Layouts.FileManagement.AssetManager.Window.assetManagerWindowTemplate}onFileSelected(e){var t;if(1!=(null===(t=null==e?void 0:e.filesData)||void 0===t?void 0:t.length))return void this.clearSelection();const r=e.files[0];!r.isDirectory||this._$injectedInputData.enableFolderSelection&&!this.folderIsRecent(r)?(this.selectedFileData=e.filesData[0],this.selectedFile=r,this.HasSelectedFile=!0):this.clearSelection()}folderIsRecent(e){return e.uri===c.c.recentBasePathAndUri}clearSelection(){this.selectedFileData=null,this.selectedFile=null,this.HasSelectedFile=!1}save(){this.exitWithFile()}cancel(){this._$kendoWindowInstance.close()}onFileOpened(){this.exitWithFile()}exitWithFile(){this.HasSelectedFile&&!this.selectedFile.isDirectory&&this.recentFilesService.add(this.selectedFile),this.onClosing.next(this.selectedFileData),this._$kendoWindowInstance.close()}};u=d([Object(a.a)("asset-manager-window")],u);class h{constructor(e){this.provider=e,this.stringResources=this.provider.getService(o.a)}get defaultPopupTitle(){return this.stringResources.Edit}create(e,t){const r=new n.a(this.provider);let i;i={width:960,height:644,minWidth:600,minHeight:444,maxHeight:1/0,maxWidth:1/0},r.withComponent(u).withTitle(null!=e?e:this.defaultPopupTitle).withVisible(!1).withWindowDimensions(i).withModal(!0);return r.build({data:t})}}},function(e,t,r){"use strict";var i;r.d(t,"a",(function(){return i})),function(e){e.group="group",e.separated="separated"}(i||(i={}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(9),n=r(138);class s{constructor(e){this.KeyCodesToPreventDefault=[n.a.KeyCodes.s,n.a.KeyCodes.w,n.a.KeyCodes.n],this.Provider=e}GetCommand(e){const t=this.getKeyCode(e),r=this.keyCodeMap[t];if(!r)return null;const i=e.target,n=this.getParentClassNames(i);this.addUniqueClassNames(n,i);for(const t of r){if(t.ExcludedTargetClassNames)for(const e of t.ExcludedTargetClassNames)if(n.includes(e))return null;let r=!0;if(t.Modifiers&&t.Modifiers.length&&(r=t.Modifiers.every(t=>e[t])),r)return t.CommandName}return null}ShouldPreventDefault(e){const t=this.getKeyCode(e);return e.ctrlKey&&this.KeyCodesToPreventDefault.some(e=>e===t)}getElementClassNames(e){return Array.from(e.classList)}getParentClassNames(e){const t=$(e).parentsUntil("."+i.a.Designer),r=[];return t.each((e,t)=>this.addUniqueClassNames(r,t)),r}addUniqueClassNames(e,t){for(const r of this.getElementClassNames(t))e.includes(r)||e.push(r)}getKeyCode(e){return e.keyCode||e.which}isCurrentElementTagIgnored(e){const t=null!==e?e.tagName:null;return!t||n.a.IgnoredHtmlElements.includes(t.toLowerCase())}}s.globallyAvailableKeyCodesExcludedDomTargetsExceptTopMenu=[i.a.WizardWindowClasses,i.a.ModalWindowClasses,i.a.WebDesignerPreviewClassName,i.a.KendoModalWindowClasses],s.globallyAvailableKeyCodesExcludedDomTargets=[...s.globallyAvailableKeyCodesExcludedDomTargetsExceptTopMenu,i.a.WebDesignerTopMenuAreaClassNames]},function(e,t,r){"use strict";r.d(t,"g",(function(){return i})),r.d(t,"f",(function(){return n})),r.d(t,"c",(function(){return h})),r.d(t,"b",(function(){return m})),r.d(t,"d",(function(){return g})),r.d(t,"j",(function(){return f})),r.d(t,"h",(function(){return v})),r.d(t,"a",(function(){return y})),r.d(t,"i",(function(){return S})),r.d(t,"e",(function(){return C}));var i,n,s=r(9),a=r(327),o=r(230),l=r(391),c=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};function d(e,t,r,i){return new Promise((n,s)=>{i.once(e,()=>{setTimeout(()=>{s(new Error(`Waiting for the event to be fired timed out after ${t/1e3} seconds`))},t),n(r)})})}!function(e){e[e.Off=0]="Off",e[e.On=1]="On"}(i||(i={})),function(e){e[e.zIndex=3e4]="zIndex"}(n||(n={}));class u{constructor(e){this.highlightIndex=n.zIndex,this.autoIndex="auto",this.borderClass="highlight-borders",this.create(e)}switch(e){var t,r;return c(this,void 0,void 0,(function*(){for(const{isContainer:t,originalZIndex:r,selector:n}of this.highlightableElements)if(e===i.Off)this.setZIndex(n,r);else{const e=t?this.autoIndex:this.highlightIndex;this.setZIndex(n,e)}e===i.On?(null===(t=$(this.borderAreaSelector))||void 0===t||t.addClass(this.borderClass),this.putOverlay()):(null===(r=$(this.borderAreaSelector))||void 0===r||r.removeClass(this.borderClass),this.removeOverlay())}))}putOverlay(){var e;null===(e=this.overlayManager)||void 0===e||e.putOverlay()}removeOverlay(){var e;null===(e=this.overlayManager)||void 0===e||e.removeOverlay()}create(e){for(let t=0;t<e.length;t++){const r=e[t];r.originalZIndex=$(r.selector).css("z-index"),this.highlightableElements||(this.highlightableElements=[]),this.highlightableElements.push(r)}}getZIndex(e){return $(e).css("z-index")}setZIndex(e,t){$(e).css("z-index",t)}}class h extends u{constructor(){super(...arguments),this.borderAreaSelector="."+s.a.WebDesignerCanvasClassName,this.overlayManager=new o.b}}class p extends u{constructor(e,t){super(e),this.wrdEventEmitter=t,this.twdTabsSelector="."+s.a.WebDesignerToolboxTabsClassName,this.borderAreaSelector=".k-tabstrip-content",this.overlayManager=new o.g}switch(e){const t=Object.create(null,{switch:{get:()=>super.switch}});return c(this,void 0,void 0,(function*(){if(e===i.On){this.$activeHeader=$(".tabs_header-item")[this.tabStripIndex],this.$activeHeader.click();const e=$(this.twdTabsSelector).css("position");"static"===e&&(this.originalPosition=e,$(this.twdTabsSelector).css("position","relative")),this.enableBorders();const t=d(l.a,2e3,"The WRD main menu was loaded",this.wrdEventEmitter);yield t}e===i.Off&&(this.originalPosition&&$(this.twdTabsSelector).css("position",this.originalPosition),this.disableBorders()),t.switch.call(this,e)}))}disableBorders(){$(this.$activeHeader).removeClass("highlight-tabstrip-borders"),$(".k-tabstrip-items-wrapper").removeClass("highlight-bottom-border")}enableBorders(){$(this.$activeHeader).addClass("highlight-tabstrip-borders"),$(".k-tabstrip-items-wrapper").addClass("highlight-bottom-border")}}class m extends p{constructor(){super(...arguments),this.tabStripIndex=0}}class g extends p{constructor(){super(...arguments),this.tabStripIndex=1}}class f extends u{constructor(){super(...arguments),this.borderAreaSelector="."+s.a.WebDesignerPropertiesClassName,this.overlayManager=new o.f}switch(e){const t=Object.create(null,{switch:{get:()=>super.switch}});var r,n,a;return c(this,void 0,void 0,(function*(){this.$propertiesArea=$("."+s.a.WebDesignerPropertiesClassName),e===i.On&&(this.originalBackground=null===(r=this.$propertiesArea)||void 0===r?void 0:r.css("background"),null===(n=this.$propertiesArea)||void 0===n||n.css("background","white")),e===i.Off&&(null===(a=this.$propertiesArea)||void 0===a||a.css("background",this.originalBackground)),t.switch.call(this,e)}))}}class v extends u{constructor(e,t){super(e),this.wrdEventEmitter=t,this.borderAreaSelector="."+s.a.WebDesignerMainMenuArea,this.overlayManager=new o.d}switch(e){const t=Object.create(null,{switch:{get:()=>super.switch}});return c(this,void 0,void 0,(function*(){e===i.On&&(yield this.waitMenuAnimation(),this.enableBorders()),e===i.Off&&this.disableBorders(),t.switch.call(this,e)}))}waitMenuAnimation(){return c(this,void 0,void 0,(function*(){const e=`.${s.a.WebDesignerMainMenuArea}>ul:first-child>li:first-child`;$(e).click();const t=d(a.a,2e3,"The WRD main menu was loaded",this.wrdEventEmitter);yield t;$(".main-menu__wrapper").data("kendoMenu").bind("close",(function(e){e.preventDefault()}))}))}enableBorders(){$(`.${s.a.WebDesignerMainMenuArea} .k-animation-container>ul`).addClass(this.borderClass),$(`.${s.a.WebDesignerMainMenuArea} .k-animation-container>ul>li`).addClass("border-top-none")}disableBorders(){$(`.${s.a.WebDesignerMainMenuArea} .k-animation-container>ul`).removeClass(this.borderClass),$(`.${s.a.WebDesignerMainMenuArea} .k-animation-container>ul>li`).removeClass("border-top-none")}}class y extends u{constructor(){super(...arguments),this.borderAreaSelector="[data-action='openAssetManager']",this.overlayManager=new o.a}switch(e){const t=Object.create(null,{switch:{get:()=>super.switch}});return c(this,void 0,void 0,(function*(){e===i.On&&(this.styleMenu(),this.disableClicking()),e===i.Off&&(this.closeMenu(),this.enableClicking()),t.switch.call(this,e)}))}styleMenu(){$(`.${s.a.WebDesignerMainMenuArea} .k-animation-container>ul`).css("background-color","grey"),$("[data-action='openAssetManager']").css("background-color","white")}closeMenu(){const e=`.${s.a.WebDesignerMainMenuArea}>ul:first-child>li:first-child`;$(`.${s.a.WebDesignerMainMenuArea} .k-animation-container>ul`).css("background-color","white");$(".main-menu__wrapper").data("kendoMenu").unbind("close"),$(e).click()}disableClicking(){$(".main-menu__wrapper").css("pointer-events","none")}enableClicking(){$(".main-menu__wrapper").css("pointer-events","unset")}}class S extends u{constructor(){super(...arguments),this.overlayManager=new o.e,this.containerSelector=".top-menu-area__actions",this.highlightClass="-preview-highlight"}switch(e){const t=Object.create(null,{switch:{get:()=>super.switch}});return c(this,void 0,void 0,(function*(){if(e===i.On){this.container=$(this.containerSelector),this.originalPositionType=this.container.css("position"),this.container.css("position","relative");const e=document.createElement("div");$(e).addClass(this.highlightClass),this.container.append(e)}e==i.Off&&(this.container.children().last().remove(),this.container.css("position",this.originalPositionType)),t.switch.call(this,e)}))}}class C extends S{constructor(){super(...arguments),this.containerSelector=".top-menu-area__search",this.highlightClass="highlight-search-area",this.overlayManager=new o.c}switch(e){const t=Object.create(null,{switch:{get:()=>super.switch}});return c(this,void 0,void 0,(function*(){e===i.On?$(this.highlightableElements[0]).css("position","relative"):$(this.highlightableElements[0]).css("position","static"),t.switch.call(this,e)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var i=r(5),n=r(30),s=r(3),a=r(19),o=r(434),l=r(435),c=r(547),d=r(549),u=r(4),h=r(36),p=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let m=class extends a.a{constructor(e){super(),this.provider=e,this.host=this.provider.getServiceByName(s.a.IDesignerHost),this.dimensionLinesAdorner=new o.a("Measure Lines",l.a.DimensionLines),this.SnapLinesAdorner=new o.a("Snap Lines",l.a.SnapLines),this.dragFrameAdorner=new o.a("Drag Frame",l.a.DragFrame),this.adorners=[],this.adorners.push(this.dimensionLinesAdorner,this.SnapLinesAdorner,this.dragFrameAdorner),this.adornerWindow=null,this.snapGridService=null,this.Zoom=1,this.behaviorPreferences=e.getService(h.a).Preferences.BehaviorPreferences,this.ShowDimensions=!0}get SnapToSnapLines(){return this.behaviorPreferences.SnapToSnapLines}set SnapToSnapLines(e){this.behaviorPreferences.SnapToSnapLines=e}get SnapToGrid(){return this.behaviorPreferences.SnapToGrid}set SnapToGrid(e){this.behaviorPreferences.SnapToGrid=e}get SnapGridService(){return this.snapGridService||(this.snapGridService=new c.a(this.host.RootComponent.Designer,this)),this.snapGridService}get SnapGridSize(){return new i.a(5,n.a.Pixel)}get ShowSnapGrid(){return!0}get ShouldSnap(){return this.SnapToGrid}get AdornerWindow(){return this.adornerWindow||(this.adornerWindow=new d.a(this)),this.adornerWindow}};m.getServiceName=()=>"BehaviorService",m=p([Object(u.e)()],m)},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(33),n=r(57),s=r(21);class a extends i.a{constructor(e,t,r,i){super(e,t),this.assetsManager=r,this.configuration=i}get status(){return this._status}updateStatus(e){throw new Error("Use updateStatusWithTarget instead")}allowedInConfig(e,t){let r;if(void 0!==e.items&&e.items.length>0){const i=this.assetsManager.AssetsManagerResourceService.getVirtualRootFolderForElement(e.items[0]);r=this.configuration.getBooleanConfigValue(e=>e[t][i])}else r=this.configuration.getBooleanConfigValue(e=>e[t]);return r}getVirtualRootFolder(e){return void 0===e||0===e.length?null:this.assetsManager.AssetsManagerResourceService.getVirtualRootFolderForElement(e[0])}areAnyItemsDefaultFolders(e){const t=e=>{let t;for(const r of e)t=t?s.a.appendFolderPathToPath(t,r):s.a.ensureTrailingPathSeparator(r);return s.a.ensureTrailingPathSeparator(t)},r=[t(n.a.recentFolder),t(n.a.reportsFolder),t(n.a.resourceFolder),t(n.a.dataResourceFolder),t(n.a.stylesResourceFolder),t(n.a.imagesResourceFolder),t(n.a.sharedDataSourceFolder)];return e.some(e=>r.includes(e.path))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(0),n=r(3),s=r(12),a=r(203),o=r(140),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c extends o.a{constructor(e,t,r){super(e,t,r),this.DataModel=this.createEmptyDataModel(),this.Parameters=[],this.CalculatedFields=[]}createChildComponentsFromPropertyStore(){const e=Object.create(null,{createChildComponentsFromPropertyStore:{get:()=>super.createChildComponentsFromPropertyStore}});return l(this,void 0,void 0,(function*(){yield this.createParameters(),yield this.createCalculatedFields(),yield e.createChildComponentsFromPropertyStore.call(this)}))}TryInitializeDataModel(){return l(this,void 0,void 0,(function*(){this.DataModel=this.CanLoadDataModel()?yield this.loadDataModel():this.createEmptyDataModel()}))}accept(e){e.VisitDataSource(this)}canContain(e){return!1}loadDataModel(){var e,t,r;return l(this,void 0,void 0,(function*(){const o=this.Provider.getServiceByName(n.a.ISqlDataConnectionService),l=this.Parent,c=null!==(t=null!==(e=null==l?void 0:l.getValueRaw(i.a.SchemaKey))&&void 0!==e?e:this.getValueRaw(i.a.SchemaKey))&&void 0!==t?t:null===(r=null==l?void 0:l.Parent)||void 0===r?void 0:r.getValueRaw(i.a.SchemaKey),d={};jQuery.extend(d,this.PropertyStore,{[i.a.SchemaKey]:c});const u={[i.a.NetType]:this.Type,[i.a.DataSource]:d};try{const e=yield o.GetDataModel(u);if(200===e.status){const t=yield e.json();return new a.a(t)}throw{message:yield e.text()}}catch(e){return this.Provider.getService(s.a).error(`An error occurred while loading the data schema for "${this.Name}": ${e.message}`,e),this.createEmptyDataModel()}}))}createParameters(){return l(this,void 0,void 0,(function*(){this.createCollectionPropertyComponents(i.a.DataSourceParameters,this.Parameters)}))}createCalculatedFields(){return l(this,void 0,void 0,(function*(){this.createCollectionPropertyComponents(i.a.CalculatedFields,this.CalculatedFields)}))}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return h})),r.d(t,"c",(function(){return m})),r.d(t,"a",(function(){return g}));var i=r(127),n=r(21),s=r(408),a=r(2),o=r(7),l=r(81),c=r(75),d=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let h=class extends l.b{constructor(){super(...arguments),this.initialPath=[],this.originalRootPath=[],this.isAssetManagerButtonVisible=!0}beforeInit(){super.beforeInit(),this.reportUriResolver=this.createUriResolver()}createUriResolver(){return new p}getTemplate(){return this.templates.Editors.InputEditors.inputWithAssetManagerEditorTemplate}get isExpressionEditorAllowed(){return void 0===this.useExpressionEditor?super.isExpressionEditorAllowed:this.useExpressionEditor}set isExpressionEditorAllowed(e){this.useExpressionEditor=e}get AssetManagerWindowRef(){return this.assetManagerWindowRef}setOriginalRootPath(e){this.originalRootPath=this.initialPath=e}setPathAndFile(e){const t=this.initialPath.length>0&&this.Value?[this.initialPath[0]]:this.originalRootPath,r=s.a.getRootedFolderPathAndFileNameFromRelativePath(t,e);r&&(this.initialPath=r.folderPath,this.initialFile=r.fileName)}get IsAssetManagerButtonVisible(){return this.getByPropertyName(e=>{e.isAssetManagerButtonVisible})}set IsAssetManagerButtonVisible(e){this.setByPropertyName(e=>{e.isAssetManagerButtonVisible},e)}prepareValueForPropertyWrapper(e){return e}getValueForInput(e){return e}getPathFromAssetManager(){this.setPathAndFile(this.Value),this.withAssetManager(e=>u(this,void 0,void 0,(function*(){this.setPathAndFile(e.path),this.updateValue(this.reportUriResolver.resolveUri(e.path))})))}getAssetManagerConfig(){return c.a.getSelectResourceConfig(this.provider)}getAssetsManagerWindowTitle(){return this.stringResources.SelectFile}withAssetManager(e){this.assetManagerWindowRef=new i.a(this.provider).create(this.getAssetsManagerWindowTitle(),{initialPath:this.initialPath,initialItem:this.initialFile,assetManagerConfig:this.getAssetManagerConfig()}),this.assetManagerWindowRef.component.onClosing.subscribeOnce(e),this.assetManagerWindowRef.open()}};h=d([Object(a.a)("input-with-asset-manager-editor"),Object(o.a)()],h);class p{resolveUri(e){return e}}class m{resolveUri(e){return n.a.getPathWithoutFileExtension(e)}}class g{constructor(e){this.designSurfaceManager=e}resolveUri(e){var t,r;const i=null!==(r=null===(t=this.designSurfaceManager.ActiveDesignSurface)||void 0===t?void 0:t.documentId)&&void 0!==r?r:"";return n.a.getRelativeFilePath(i,e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u})),r.d(t,"b",(function(){return h}));var i=r(8),n=r(3),s=r(7),a=r(2),o=r(106),l=r(90),c=r(0),d=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};class u extends l.b{constructor(e,t){super(e,t),this.stringResources=this.provider.getService(i.a),this.schemaService=this.provider.getServiceByName(n.a.ISchemaService)}initEditorsByOrder(e,t,r){this.getEditorBuilders().forEach(i=>this.createChildEditor(i,e,t,r))}getEditorBuilders(){return this.propertyWrapper.map(e=>({builder:this.schemaService.getEditorType(e.EditorType,null),propertyWrapper:e}))}createChildEditor(e,t,r,i){const n=e.propertyWrapper,s=e.builder.createInstance(t,n,this.provider,r);i.push(s)}}let h=class extends o.a{createChildEditorManager(){return new u(this.provider,this.propertyWrapper)}updateStateUi(){}get classNames(){return super.classNames+" -border-side"}get $scrollTarget(){return this.isDefaultBorderSideEditor()?this.view.element.find(".editor__editors-container"):super.$scrollTarget}isDefaultBorderSideEditor(){return this.propertyWrapper.length&&this.propertyWrapper[0].Name===c.a.Default}afterInit(){super.afterInit(),this.addClass("-"+this.LocalizedName.toLowerCase())}setLocalizedName(e){super.setLocalizedName(e)}};h=d([Object(a.a)("border-side-editor"),Object(s.b)("BorderSide")],h)},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(126),n=r(1);class s extends i.a{constructor(e,t,r){super(e,t,r,!0)}accept(e){e.VisitGroupSection(this)}canDelete(){return!1}}s.typeName=n.a.GroupSection},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(80),n=r(1);class s extends i.a{accept(e){e.VisitTextBox(this)}}s.typeName=n.a.TextBox},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get AvailableLetterKeyCodes(){return Object.keys(i.LetterKeyCodes).map(e=>this.LetterKeyCodes[e])}}i.LetterKeyCodes={s:83,z:90,y:89,n:78,w:87,f:70},i.KeyCodes=Object.assign(Object.assign({},i.LetterKeyCodes),{tab:9,esc:27,space:32,leftArrow:37,upArrow:38,rightArrow:39,downArrow:40,delete:46,c:67,m:77,v:86,x:88,f2:113,bracketOpen:219,bracketClose:221}),i.ModifierKeys={CONTROL:"ctrlKey",SHIFT:"shiftKey",ALT:"altKey"},i.IgnoredHtmlElements=["input","textarea","select","button","span"]},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(10),n=r(3),s=r(285),a=r(415);class o extends a.a{constructor(){super(...arguments),this.componentChanged=new i.b,this.updateItem=e=>{this.isInstanceTypeSelected=e.isInstanceTypeSelected,this.instanceTypeName=e.instanceTypeName,this.lastListBoxItem&&super.removeItem(this.lastListBoxItem.uid),super.addItem().then(e=>this.componentChanged.next(e))}}getPopupWindowData(){const e=this.provider.getServiceByName(n.a.ISchemaService).getEditorType(this.collectionItemType,null);return{component:this.selectedComponent,canCreateEditorCallback:e=>this.canCreateEditor(e),propertyWrapper:this.propertyWrapper,editorType:e,componentChanged:this.componentChanged}}windowOpened(){this.kendoWindowRef.component.typeInstanceTypesEditorValueChanged.subscribe(this.updateItem)}windowClosing(){this.kendoWindowRef.component.typeInstanceTypesEditorValueChanged.unsubscribe(this.updateItem)}createWindowManager(){return new s.b(this.provider)}getNewItemType(){return this.isInstanceTypeSelected?this.instanceTypeName:super.getNewItemType()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(34),n=r(0),s=r(3),a=r(203),o=r(71),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c extends i.a{constructor(e,t,r){if(super(e,t,r,!1),this.designerHost=r.getServiceByName(s.a.IDesignerHost),t instanceof o.a){t.DataSources.push(this);t.PropertyStore[n.a.DataSources].includes(this.PropertyStore)||t.PropertyStore[n.a.DataSources].push(this.PropertyStore)}}createEmptyDataModel(){return new a.a({})}createChildComponentsFromPropertyStore(){return l(this,void 0,void 0,(function*(){yield this.TryInitializeDataModel()}))}get ReferencingDataSourceContainers(){return this.designerHost.Components.filter(e=>e&&e.DataSourceName===this.Name)}get ReferencingReportParameterAvailableValuesDataSource(){return this.designerHost.RootComponent.ReportParameters.filter(e=>{const t=e.PropertyStore[n.a.AvailableValues];return t&&t[n.a.DataSourceName]===this.Name})}delete(){const e=this.Parent,t=e.DataSources.indexOf(this);e.DataSources.splice(t,1);const r=e.PropertyStore[n.a.DataSources],i=r.indexOf(this.PropertyStore);r.splice(i,1),this.ReferencingDataSourceContainers.forEach(e=>e.DataSourceName=null),this.ReferencingReportParameterAvailableValuesDataSource.forEach(e=>delete e.PropertyStore[n.a.AvailableValues]),this.Designer.Dispose();this.Provider.getServiceByName(s.a.IComponentChangeService).OnComponentRemoved(this)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var i=r(31),n=r(60),s=r(37),a=r(20),o=r(45),l=r(23),c=r(35),d=r(5),u=r(0),h=r(116),p=r(25);class m extends h.a{get ParentItemDesigner(){const e=this.Component;return e&&null!==e.Parent?e.Parent.Designer:null}SnapLines(){const e=[];return this.addRectangleSnapLines(this.GetAbsoluteClientBounds(),e),e}CalculateMinSize(){const e=new c.a(new d.a(5),new d.a(5));let t=e.Width.ToPixels(),r=e.Height.ToPixels();for(const e of this.Component.Children){const i=e.Designer;if(i){const e=i.GetBounds(!1);t=Math.max(t,e.Right),r=Math.max(r,e.Bottom)}}return new c.a(new d.a(t),new d.a(r))}GetBounds(e){return new o.a(this.GetLocation(e),this.GetSize())}GetAbsoluteBounds(){return new o.a(this.GetAbsoluteLocation(),this.GetSize())}GetClientBounds(e){return new o.a(this.GetClientLocation(e),this.GetClientSize())}GetAbsoluteClientBounds(){return new o.a(this.GetAbsoluteClientLocation(),this.GetClientSize())}GetLocation(e){const t=this.Component;let r=t.PropertyStore[u.a.Left];r||(r=new d.a(0).ToString());let i=t.PropertyStore[u.a.Top];i||(i=new d.a(0).ToString());const n=new a.a(d.a.Parse(r).ToPixels()*this.Zoom,d.a.Parse(i).ToPixels()*this.Zoom);if(e&&this.Component.Parent&&this.Component.Parent.Designer){const e=this.Component.Parent.Designer;if(e){const t=e.GetAbsoluteClientLocation();n.Offset(t.X,t.Y)}}return n}GetAbsoluteLocation(){const e=this.Component;let t=e.PropertyStore[u.a.Left];t||(t=new d.a(0).ToString());let r=e.PropertyStore[u.a.Top];r||(r=new d.a(0).ToString());const i=new a.a(d.a.Parse(t).ToPixels()*this.Zoom,d.a.Parse(r).ToPixels()*this.Zoom);if(this.Component.Parent&&this.Component.Parent.Designer){const e=this.Component.Parent.Designer;if(e){const t=e.GetAbsoluteClientLocation();i.Offset(t.X,t.Y)}}return i}GetClientLocation(e){const t=this.GetPadding(!0,!0,!1,!1);if(e){const r=this.GetLocation(e);t.Location.Offset(r.X,r.Y)}return t.Location}GetAbsoluteClientLocation(){const e=this.GetPadding(!0,!0,!1,!1),t=this.GetAbsoluteLocation();return e.Location.Offset(t.X,t.Y),e.Location}GetSize(){const e=this.Component;let t=e.PropertyStore[u.a.Width];t||(t=new d.a(0).ToString());let r=e.PropertyStore[u.a.Height];r||(r=new d.a(0).ToString());return new l.a(d.a.Parse(t).ToPixels()*this.Zoom,d.a.Parse(r).ToPixels()*this.Zoom)}GetClientSize(){const e=this.GetSize(),t=this.GetPadding(!1,!1,!0,!0),r=Math.max(0,e.Width-t.Left-t.Right),i=Math.max(0,e.Height-t.Top-t.Bottom);return new l.a(r,i)}GetPadding(e,t,r,i){const n=o.a.Empty;return e&&(n.X=this.getZoomedPadding(this.Component.getCascadingPropertyValue(u.a.Style,u.a.Padding,u.a.Left))),t&&(n.Y=this.getZoomedPadding(this.Component.getCascadingPropertyValue(u.a.Style,u.a.Padding,u.a.Top))),r&&(n.Width=this.getZoomedPadding(this.Component.getCascadingPropertyValue(u.a.Style,u.a.Padding,u.a.Right))),i&&(n.Height=this.getZoomedPadding(this.Component.getCascadingPropertyValue(u.a.Style,u.a.Padding,u.a.Bottom))),n}getZoomedPadding(e){let t=0;return e&&(t=d.a.Parse(e).ToPixels()*this.Zoom),t}addRectangleSnapLines(e,t){t.push(new i.a(s.a.Vertical,e.Left,i.a.PaddingLeft,n.a.Always)),t.push(new i.a(s.a.Vertical,e.Right,i.a.PaddingRight,n.a.Always)),t.push(new i.a(s.a.Horizontal,e.Top,i.a.PaddingTop,n.a.Always)),t.push(new i.a(s.a.Horizontal,e.Bottom,i.a.PaddingBottom,n.a.Always))}GetContextMenuCommands(){const e=super.GetContextMenuCommands();return e.push(p.a.CopyStyle,p.a.PasteStyle,p.a.ResetStyle),e}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(34),n=r(1);class s extends i.a{}s.typeName=n.a.CrossAxisPosition},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(34),n=r(0),s=r(1),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends i.a{constructor(e,t,r,i=!0){super(e,t,r,i),this.dataPointFormattingRules=[],this.dataPointLabelFormattingRules=[]}get PropertyStore(){return super.PropertyStore}get DataPointConditionalFormatting(){return this.dataPointFormattingRules}get DataPointLabelConditionalFormatting(){return this.dataPointLabelFormattingRules}createChildComponentsFromPropertyStore(){const e=Object.create(null,{createChildComponentsFromPropertyStore:{get:()=>super.createChildComponentsFromPropertyStore}});return a(this,void 0,void 0,(function*(){yield e.createChildComponentsFromPropertyStore.call(this),yield this.CreateConditionalFormattingProperties()}))}CreateConditionalFormattingProperties(){return a(this,void 0,void 0,(function*(){yield this.createCollectionPropertyComponents(n.a.DataPointConditionalFormatting,this.DataPointConditionalFormatting),yield this.createCollectionPropertyComponents(n.a.DataPointLabelConditionalFormatting,this.DataPointLabelConditionalFormatting)}))}}o.typeName=s.a.GraphSeries},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get Error(){return"ERROR"}static get NotificationShowing(){return"NOTIFICATION_SHOWING"}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(56),n=r(1),s=r(0);class a extends i.a{accept(e){e.VisitShape(this)}get BeginSectionName(){return this.PropertyStore[s.a.BeginSectionName]}set BeginSectionName(e){}get EndSectionName(){return this.PropertyStore[s.a.EndSectionName]}set EndSectionName(e){}}a.typeName=n.a.CrossSectionItem},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(136),n=r(1);class s extends i.a{accept(e){e.VisitGroupHeaderSection(this)}}s.typeName=n.a.GroupHeaderSection},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(136),n=r(1);class s extends i.a{accept(e){e.VisitGroupFooterSection(this)}}s.typeName=n.a.GroupFooterSection},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e="",t="String",r=null){this.Name=e,this.DbType=t,r?void 0!==r.Value&&(r=r.Value):r="",this.Value={NetType:"String",Value:r},this.NetType="SqlDataSourceParameter"}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get Error(){return"Error"}static get Warning(){return"Warning"}static get Info(){return"Info"}static get Success(){return"Success"}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get BeforeReportHeader(){return"BeforeReportHeader"}static get AfterReportHeader(){return"AfterReportHeader"}static get BeforeReportFooter(){return"BeforeReportFooter"}static get AfterReportFooter(){return"AfterReportFooter"}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get Standard(){return"Standard"}static get Margin(){return"Margin"}static get Padding(){return"Padding"}static get Baseline(){return"Baseline"}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(4),n=r(19),s=r(10),a=r(36),o=r(124),l=r(17),c=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let d=class extends n.a{constructor(e){super(),this.recentFilesChanged=new s.b,this.recentFilesOptions=e.getService(a.a).RecentFiles}static getServiceName(){return"AssetManagerRecentFilesService"}get files(){return this.recentFilesOptions.Files}add(e){if(e.isDirectory)return void i.b.logError(`Invalid add to recent files: trying to add folder ${e.uri} ${e.path} as a recent file`);const t=this.prepareAndClone(e);this.recentFilesOptions.addFile(t),this.emitChanged()}change(e,t){if(t.isDirectory)return void i.b.logError(`Invalid change to recent files: trying to add folder ${t.uri} ${t.path} as a recent file`);if(!this.recentFilesOptions.existsInRecent(e))return;this.recentFilesOptions.removeFile(e);const r=this.prepareAndClone(t);this.recentFilesOptions.addFile(r),this.emitChanged()}remove(e){this.recentFilesOptions.removeFile(e.uri),this.emitChanged()}emitChanged(){this.recentFilesChanged.next(this.files)}prepareAndClone(e){const t=o.a.deepCloneFile(e);return t.parentPath=l.c.recentBasePathAndUri,t}};d=c([Object(i.e)()],d)},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static generate(){const e=window.crypto;return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t=>(t^e.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var i=r(3),n=r(19),s=r(16),a=r(13),o=r(64),l=r(4),c=r(353),d=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let h=class extends n.a{constructor(e){super(),this.provider=e,this.commandManager=new c.a;this.provider.getService(a.c).on(o.a,e=>{this.provider.getServiceByName(i.a.IDesignSurfaceManager).ActiveDesignSurface&&this.refreshCommands()})}registerCommand(e){this.commandManager.registerCommand(e)}queryCommandStatus(e){return this.commandManager.queryCommandStatus(e)}tryExecuteCommand(e,t){return this.commandManager.tryExecuteCommand(e,t)}tryExecuteCommandAsync(e,t){return u(this,void 0,void 0,(function*(){return this.commandManager.tryExecuteCommandAsync(e,t)}))}refreshCommands(){this.commandManager.refreshCommands();this.provider.getService(s.a).ReapplySelection()}};h.getServiceName=()=>"DesignSurfaceCommandService",h=d([Object(l.e)()],h)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(363),n=r(364),s=r(601),a=r(602),o=r(604),l=r(605),c=r(606);class d extends c.a{constructor(e,t,r,c){super(e,t,r,c),this.categories.push({items:[new l.a(this.provider,this.$parent,this.model)]},{title:this.sr.GraphDataCategory,items:[new i.a(this.provider,this.$parent,this.model),new n.a(this.provider,this.$parent,this.model)]},{title:this.sr.GraphFieldsCategory,items:[new s.a(this.provider,this.$parent,this.model),new o.a(this.provider,this.$parent,this.model),new a.a(this.provider,this.$parent,this.model)]})}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(25),n=r(268),s=r(4),a=r(51),o=r(13),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c extends n.a{constructor(e,t,r){super(e,t,r,!1),this.targetElementEventEmitter=new o.a(e[0])}addMenuItems(){return l(this,void 0,void 0,(function*(){const e={Name:i.a[i.a.MoveUp],Title:this.sr.MoveUp,Action:this.moveUp.bind(this)};this.menuItems.push(e);const t={Name:i.a[i.a.MoveDown],Title:this.sr.MoveDown,ClassName:"-border-bottom",Action:this.moveDown.bind(this)};this.menuItems.push(t);const r={Name:i.a[i.a.RemoveItem],Title:this.sr.Remove,Action:this.remove.bind(this)};this.menuItems.push(r)}))}init(){return l(this,void 0,void 0,(function*(){this.$targetElement.append(this.template),this.$visualElement=this.$targetElement.find(".twd-context-menu"),yield this.initMenuItems(),this.initContextMenu("left")}))}onContextMenuDeactivate(){}onContextMenuOpen(e){setTimeout(()=>{const t=this.widget.element.parent()[0].getBoundingClientRect().right,r=$(e.target).parent(),i=e.target.getBoundingClientRect().right,n=+r.css("padding-right").replace("px",""),s=+r.css("border-width").replace("px","");this.widget.element.css("right",Math.round(t-i-n-s)+"px")})}getTargetElementId(e){return e.target.parentElement.id}moveUp(e){this.targetElementEventEmitter.emit(new a.b([this.getTargetElementId(e),-1],{bubbles:!0}))}moveDown(e){this.targetElementEventEmitter.emit(new a.b([this.getTargetElementId(e),1],{bubbles:!0}))}remove(e){this.targetElementEventEmitter.emit(new a.c(this.getTargetElementId(e),{bubbles:!0}))}addAggregateMenuItems(e,t){return l(this,void 0,void 0,(function*(){const r=yield e.getAggregateFunctions();r.unshift(this.sr.NoneSelected);const n={Name:i.a[i.a.AggregateFunction],Title:this.sr.Function,SubMenu:"initSubMenu",Children:s.b.convertStringsToMenuItems(r,i.a[i.a.AggregateFunction]),Action:t.bind(this)};this.menuItems.push(n)}))}addAggregateFunction(e,t){let r=$(e.item).attr("data-document-id");r&&(r===this.sr.NoneSelected&&(r=""),t.aggregateFunction=r.replace("()",""),this.targetElementEventEmitter.emit(new a.d({bubbles:!0})))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(610);class n extends i.a{constructor(e,t){super(e,t),this.measureFields=[]}get hasSelection(){return this.measureFields.length>0}resetFields(){super.resetFields(),this.measureFields=[]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class n{constructor(e,t){this.component=e,this.provider=t,this.properties=e.PropertyWrappers}GetPropertyValue(e){const t=this.getProperty(e);return t?t.GetValue():null}SetPropertyValue(e,t){this.getProperty(e).SetValue(t)}readResource(e){return i(this,void 0,void 0,(function*(){return new Promise((t,r)=>{const i=new FileReader;i.onloadend=e=>{t(e.target.result)},i.onerror=e=>{r(e)},i.readAsText(e)})}))}getProperty(e){return this.properties.find(t=>t.Name===e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(2),n=r(10),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a{constructor(e,t,r){this.$parentElement=e,this.provider=t,this.wizardModel=r,this.modelCache=[],this.currentPageChanged=new n.b}get currentPage(){return this.activePage}getPreviousPage(){return s(this,void 0,void 0,(function*(){return yield this.createPage(this.pageOrder[this.pageOrder.findIndex(e=>e===this.currentPage.constructor)-1])}))}getNextPage(){return s(this,void 0,void 0,(function*(){return yield this.createPage(this.pageOrder[this.pageOrder.findIndex(e=>e===this.currentPage.constructor)+1])}))}getCurrentPageIndex(){return this.pageOrder.findIndex(e=>e===this.currentPage.constructor)}get hasNextPage(){return this.pageOrder.findIndex(e=>e===this.currentPage.constructor)<this.pageOrder.length-1}get hasPreviousPage(){return this.pageOrder.findIndex(e=>e===this.currentPage.constructor)>0}get totalPages(){return this.pageOrder.length}get allowMoveForward(){return this.currentPage.AllowMoveForward}tryLeave(e){return this.currentPage.TryLeave(e)}Dispose(){this.currentPage.Dispose()}createPage(e){return s(this,void 0,void 0,(function*(){const t=i.c.getComponentByType(e).builder.build(this.$parentElement,this.provider),r=this.modelCache.find(t=>t.page===e);if(r)t.Model=r.model;else{const r=yield t.initializePageModel(this.wizardModel);this.modelCache.push({page:e,model:r})}return t.init(),this.setCurrentPage(t),yield t.OnEnter(),this.currentPageChanged.next(),t}))}setCurrentPage(e){var t;e&&(null===(t=this.activePage)||void 0===t||t.Dispose(),this.activePage=e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static isJsonValid(e){try{JSON.parse(e)}catch(e){return!1}return!0}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(35),n=r(5),s=r(203),a=r(0),o=r(247),l=r(116),c=r(1);class d extends l.a{constructor(e,t){super(e,t)}PropertiesThatUpdateDataModel(){return[a.a.CalculatedFields]}CalculateMinSize(){return new i.a(new n.a(0),new n.a(0))}Render(e){return this.Component.Parent.Designer.VisualElement}Redraw(e=!1){}UpdateOverlay(){}UpdateChildrenOverlay(){}ToggleInteractivity(e){}OnComponentChanged(e){if(e.propertyDescriptor.Name!==a.a.DataModel&&(super.OnComponentChanged(e),this.PropertiesThatUpdateDataModel().includes(e.propertyDescriptor.Name))){const t=this.Component;t.TryInitializeDataModel().then(()=>{const r=new o.a({[a.a.Name]:a.a.DataModel,[a.a.Type]:s.a.name},this.Provider,null);t.raiseComponentChanged(r,e.oldValue,e.newValue)})}}GetContextMenuCommands(){return this.Component.Parent.Type===c.a.SharedDataSource?[]:super.GetContextMenuCommands()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(401);class n extends i.a{}},function(e,t,r){"use strict";r.d(t,"a",(function(){return f})),r.d(t,"b",(function(){return v}));var i=r(0),n=r(62),s=r(128),a=r(2),o=r(7),l=r(38),c=r(106),d=r(135),u=r(90),h=r(825),p=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};class m{constructor(e){this.name=e,this.propertyWrappers=[]}}class g{constructor(){this.borderWidth=new m(i.a.BorderWidth),this.borderStyle=new m(i.a.BorderStyle),this.borderColor=new m(i.a.BorderColor)}*iterateBorderProperties(){yield this.borderWidth,yield this.borderStyle,yield this.borderColor}}class f extends u.b{constructor(e,t){super(e,t),this.borderProps=new g,this.filterProperties()}initEditorsByOrder(e,t,r){this.getEditorBuilders().forEach(i=>this.createChildEditor(i,t,e,r))}createChildEditor(e,t,r,n){const s=(Array.isArray(e.propertyWrapper)?e.propertyWrapper[0].Name:e.propertyWrapper.Name)===i.a.Default?t-1:t,a=e.builder.createInstance(r,e.propertyWrapper,this.provider,s);n.push(a)}getEditorBuilders(){const e=l.a.findEditorBuilder(d.b),t=[];let r=[];for(const i of n.a.BorderSides){for(const e of this.borderProps.iterateBorderProperties()){const t=e.propertyWrappers.find(e=>e.Name===i);t&&r.push(t)}t.push({builder:e,propertyWrapper:r}),r=[]}return t}findBorderMode(){const e={};for(const t of this.borderProps.iterateBorderProperties())e[t.name]="";for(const t of n.a.BorderSides)for(const r of this.borderProps.iterateBorderProperties()){const i=r.propertyWrappers.find(e=>e.Name===t);if(i){const t=i.GetValue();if(""===e[r.name]&&(e[r.name]=t),e[r.name]!==t||null===t)return s.a.separated}}return s.a.group}filterProperties(){for(const e of this.propertyWrapper)e.Name===this.borderProps.borderWidth.name?this.borderProps.borderWidth.propertyWrappers=e.GetChildProperties():e.Name===this.borderProps.borderStyle.name?this.borderProps.borderStyle.propertyWrappers=e.GetChildProperties():e.Name===this.borderProps.borderColor.name&&(this.borderProps.borderColor.propertyWrappers=e.GetChildProperties())}}let v=class extends c.a{createChildEditorManager(){return new f(this.provider,this.propertyWrapper)}updateStateUi(){}beforeInit(){super.beforeInit(),this.modeChanged=e=>{this.removeBorderModeClass(),this.borderMode=e.borderMode,this.refreshValue(),this.addBorderModeClass()}}changeBorderMode(e){this.modeSwitcher.State=e}afterInit(){super.afterInit(),this.borderMode=this.childEditorManager.findBorderMode(),this.addBorderModeClass(),this.addModeSwicher()}get classNames(){return super.classNames+" -border"}beforeDispose(){super.beforeDispose(),this.modeSwitcher.borderModeChanged.unsubscribe(this.modeChanged),this.modeSwitcher.Dispose()}addBorderModeClass(){this.addClass("-"+this.borderMode)}removeBorderModeClass(){this.removeClass("-"+this.borderMode)}addModeSwicher(){const e=a.c.getComponentByType(h.a);this.modeSwitcher=e.builder.build(this.$visualElement.find("> .editor__content"),this.provider),this.modeSwitcher.init(e.selector),this.modeSwitcher.borderModeChanged.subscribe(this.modeChanged)}};v=p([Object(a.a)("border-editor"),Object(o.b)("Border")],v)},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(0),n=r(118);class s extends n.b{getInstanceTypeName(e,t){if(t)return t;const r=e.GetValue();return r?r[i.a.NetType]:null}getChildEditorBuilders(e,t){const r=this.getChildProperties(e,t).filter(e=>Array.isArray(e)||this.canCreateEditor(e));return this.getChildEditorBuildersByPropertyWrappers(r)}getChildProperties(e,t){return this.getInstanceTypeName(e,t)?super.getChildProperties(e):[]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(0),n=r(92),s=r(1),a=r(257);class o extends n.a{constructor(e,t,r){super(e,t,r),this.PropertyStore[i.a.NetType]||(this.PropertyStore[i.a.NetType]=s.a.Sorting),this.PropertyStore[i.a.Name]||(this.PropertyStore[i.a.Name]=this.namingService.CreateName(this.PropertyStore[i.a.NetType]))}get IsEmpty(){return!this.PropertyStore.hasOwnProperty(i.a.Expression)}get Expression(){return this.PropertyStore[i.a.Expression]}set Expression(e){this.PropertyStore[i.a.Expression]=e}get Direction(){return this.PropertyStore[i.a.Direction]||a.a.Asc}set Direction(e){this.PropertyStore[i.a.Direction]=e}getType(){return s.a.Sorting}}o.typeName=s.a.Sorting},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(87),n=r(94),s=r(219),a=r(1);class o extends n.a{canContain(e){const t=this.InstanceFactory.getInstanceModel(e);return!(!t||t instanceof i.a||t instanceof s.a)&&super.canContain(e)}accept(e){e.VisitPageSection(this)}}o.typeName=a.a.PageSection},function(e,t,r){"use strict";r.d(t,"b",(function(){return u})),r.d(t,"a",(function(){return h}));var i=r(9),n=r(70),s=r(4),a=r(8),o=r(127),l=r(21),c=r(12),d=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class u{constructor(e){this.extension=e}}class h extends n.b{constructor(){super(...arguments),this.classNames=i.a}beforeInit(){super.beforeInit(),this.stringResources=this.provider.getService(a.a),this.notifications=this.provider.getService(c.a),this.assetManagerConfig=this.getDocumentLocationAssetsManagerConfig(this.provider)}get NewDocumentName(){return this.getByPropertyName(e=>{e.newDocumentName})}set NewDocumentName(e){this.setByPropertyName(e=>{e.newDocumentName},e)}get NewDocumentLocation(){return this.getByPropertyName(e=>{e.newDocumentLocation})||""}set NewDocumentLocation(e){e=e.replace(s.b.genLTrimRegex(l.a.pathSeparator),""),this.setByPropertyName(e=>{e.newDocumentLocation},e)}get DocLocationDisplayValue(){return l.a.pathSeparator+this.NewDocumentLocation}set DocLocationDisplayValue(e){this.NewDocumentLocation=e}get SelectedExtension(){return this.getByPropertyName(e=>{e.selectedExtension})}set SelectedExtension(e){this.setByPropertyName(e=>{e.selectedExtension},e)}get Extensions(){return this.getByPropertyName(e=>{e.extensions})}set Extensions(e){this.setByPropertyName(e=>{e.extensions},e)}get AssetManagerWindowRef(){return this.assetManagerWindowRef}getPathFromAssetManager(){this.withAssetManager(e=>d(this,void 0,void 0,(function*(){l.a.isFolderPath(e.path)?this.NewDocumentLocation=e.path:this.initalizeFromFilePath(e)})))}initalizeFromFilePath(e){const{fileName:t,folderPath:r}=l.a.getFileNameAndFolderPath(e.path),i=s.b.parseDocumentId(t);this.setExtensionIfExists(i.Extension),this.NewDocumentLocation=r,this.NewDocumentName=i.Name}setExtensionIfExists(e){const t=this.Extensions.find(t=>t.extension===e);t&&(this.SelectedExtension=t.extension)}withAssetManager(e){this.assetManagerWindowRef=new o.a(this.provider).create(this.stringResources.BrowseForFolderWindowTitle,{initialPath:this.getDocumentLocationAssetsManagerInitialPath(),assetManagerConfig:this.assetManagerConfig,enableFolderSelection:!0}),this.assetManagerWindowRef.component.onClosing.subscribeOnce(t=>{e(t),this.assetManagerWindowRef.close()}),this.assetManagerWindowRef.open()}onSave(){return d(this,void 0,void 0,(function*(){if(!this.validateDocumentLocation())return!1;return yield this.getAndValidateDocumentName(e=>d(this,void 0,void 0,(function*(){return!!(yield this.saveWithValidatedState(e,this.NewDocumentName))&&(yield this.onSuccessfulSave(),!0)})))}))}onSuccessfulSave(){return d(this,void 0,void 0,(function*(){this._$kendoWindowInstance.close()}))}getAndValidateDocumentName(e){return d(this,void 0,void 0,(function*(){const t=`${l.a.ensureTrailingPathSeparator(this.NewDocumentLocation)}${this.NewDocumentName}.${this.SelectedExtension}`;if(!this.NewDocumentName)return this.notifications.error(`Please enter a name for the ${this.getDocumentType()}.`),!1;const r=l.a.getInvalidCharactersInFileName(this.NewDocumentName);return r.length>0?(this.notifyInvalidCharacters(r,this.getDocumentType()+" name"),!1):yield e(t)}))}notifyInvalidCharacters(e,t){const r=e.map(e=>`' ${e} '`);this.notifications.error(`${t} contains invalid characters - ${r.join(", ")}`)}onClose(){this._$kendoWindowInstance.close()}validateDocumentLocation(){const e=l.a.getInvalidCharactersInFolderName(this.NewDocumentLocation);return!(e.length>0)||(this.notifyInvalidCharacters(e,this.getDocumentType()+" location"),!1)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var i=r(27),n=r(1),s=r(0),a=r(3),o=r(122),l=r(12),c=r(4),d=r(8),u=r(140),h=r(29),p=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class m extends u.a{constructor(){super(...arguments),this.dataSourceReferenceSetValueCallback=(e,t,r,i)=>{var n,s,a;if((null==e?void 0:e.Parent)instanceof m||(null===(n=null==e?void 0:e.Parent)||void 0===n?void 0:n.Parent)instanceof m||(null===(a=null===(s=e.Parent)||void 0===s?void 0:s.Parent)||void 0===a?void 0:a.Parent)instanceof m)throw new h.a("Data Source reference of a Shared Data Source can not be edited inside a Report. Open the Shared Data Source file to perform edits.",this.Provider)}}canContain(e){return!1}Initialize(e){const t=Object.create(null,{Initialize:{get:()=>super.Initialize}});return p(this,void 0,void 0,(function*(){yield this.retrieveDsReference(),yield t.Initialize.call(this,e)}))}createChildComponentsFromPropertyStore(){return p(this,void 0,void 0,(function*(){this.DataSourceReferencePropertyStore&&(yield this.createDsReferenceInstance(),this.applySetValueCallback(this.DataSourceReference.PropertyWrappers))}))}get BrowsablePropertyWrappers(){return this.PropertyWrappers.filter(e=>e.Browsable&&e.Name!==s.a.DataSourceReference)}updateDataSourceReference(){return p(this,void 0,void 0,(function*(){(yield this.retrieveDsReference())&&(yield this.createDsReferenceInstance())}))}createDsReferenceInstance(){return p(this,void 0,void 0,(function*(){this.DataSourceReference=yield this.createChildComponent(this.DataSourceReferencePropertyStore),this.DataSourceReference.PropertyWrappers=this.Provider.getServiceByName(a.a.IPropertyDescriptorWrapperFactory).CreateWrappers(this.DataSourceReference,this.getPropertyWrapper(s.a.DataSourceReference))}))}applySetValueCallback(e){e.forEach(e=>{e.Property.SetValueCallback=this.dataSourceReferenceSetValueCallback;const t=e.GetChildProperties();t&&this.applySetValueCallback(t)})}renderDesigner(){}retrieveDsReference(){return p(this,void 0,void 0,(function*(){this.DataSourceReferencePropertyStore=void 0;const e=yield this.EnsureEvaluatedPath(this.PropertyStore[s.a.Path]),t=this.Provider.getServiceByName(a.a.SharedDataSourceStorageService),r=yield t.Get({uri:e});if(r.isError){const e=this.Provider.getService(l.a),t=this.Provider.getService(d.a);return e.error(i.a.String(t.CouldNotRetrieveSdsRef,{sdsName:this.Name})),!1}const n=r.Data[s.a.DataSourceReference];return this.DataSourceReferencePropertyStore=n,!0}))}EnsureEvaluatedPath(e){return p(this,void 0,void 0,(function*(){if(o.a.IsExpression(e))try{const t=this.Provider.getServiceByName(a.a.ISchemaService),r=this.Parent;r&&(e=yield t.evaluateExpression(r.PropertyStore,e))}catch(e){this.Provider.getService(l.a).info(c.b.getErrorMessage(e),!0)}return e}))}get DataModel(){return this.DataSourceReference.DataModel}TryInitializeDataModel(){return p(this,void 0,void 0,(function*(){yield this.DataSourceReference.TryInitializeDataModel()}))}}m.typeName=n.a.SharedDataSource},function(e,t,r){"use strict";r.d(t,"b",(function(){return p})),r.d(t,"c",(function(){return m})),r.d(t,"a",(function(){return v}));var i=r(2),n=r(10),s=r(170),a=r(0),o=r(54),l=r(27),c=r(8),d=r(153),u=r(76),h=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let p=class extends s.a{constructor(){super(...arguments),this.editorComponentMap={string:g,filteroperator:f,dropdown:v}}loadEditors(e){const t=this.orderProperties(this._$injectedInputData.typeSchema[a.a.Properties]);for(const r of t){const t=r[a.a.Name],n=this.getComponentType(r),s=i.c.getComponentByType(n),o=s.builder.build(e,this.provider);(o instanceof g||o instanceof v)&&(o.title=this.stringResources.getString(t),o.valueFieldName=r[a.a.Name],o.model=this._$injectedInputData.item,o instanceof v&&(o.$editorsPlaceholder=e)),o.init(s.selector),this.childEditors.push(o)}}getComponentType(e){return this.editorComponentMap.string}orderProperties(e){return e}};p=h([Object(i.a)("collection-editor-window")],p);class m extends s.b{get component(){return p}}let g=class extends n.a{getTemplate(){return'<div class="twd-editor -input">\n                <div class="editor__reset">\x3c!--empty space placeholder--\x3e</div>\n                <label class="editor__content">\n                    <span class="editor__name" title="#: data.title #">#: data.title #</span>\n                    <input spellcheck="false" type="text"\n                        data-bind="value: model.#: data.valueFieldName #" class="k-textbox k-input k-input-md k-rounded-md editor__value" />\n                </label>\n            </div>'}};h([Object(i.b)()],g.prototype,"title",void 0),h([Object(i.b)()],g.prototype,"valueFieldName",void 0),h([Object(i.b)()],g.prototype,"model",void 0),g=h([Object(i.a)("collection-editor-text-editor")],g);let f=class extends n.a{getTemplate(){return'<div class="twd-editor -enum">\n                <label class="editor__content">\n                    <span class="editor__name" title="#: data.title #">#: data.title #</span>\n                    <input class="editor__value"\n                        data-role="dropdownlist"\n                        data-text-field="#: data.textFieldName #"\n                        data-value-field="#: data.textFieldName #"\n                        data-bind="??" />\n                </label>\n            </div>'}};h([Object(i.b)()],f.prototype,"title",void 0),h([Object(i.b)()],f.prototype,"textFieldName",void 0),h([Object(i.b)()],f.prototype,"valueFieldName",void 0),h([Object(i.b)()],f.prototype,"model",void 0),f=h([Object(i.a)("collection-editor-enum-editor")],f);let v=class extends n.a{constructor(e,t){super(e,t),this.addNewBtnId=d.a.generate()}getTemplate(){return`<div class="twd-editor -dropdown">\n                    <div class="editor__reset">\x3c!--empty space placeholder--\x3e</div>\n                    <label class="editor__content">\n                        <span class="editor__name" title="#: data.title #">#: data.title #</span>\n                        <input class="editor__value"\n                            data-role="dropdownlist"\n                            data-text-field="#: data.valueFieldName #"\n                            data-value-field="#: data.valueFieldName #"\n                            data-bind="value: model.#: data.valueFieldName #"\n                          />\n                    </label>\n                    <button id="${this.addNewBtnId}" style="display:none">\n                    </button>\n                </div>`}setDataSource(e){const t=this.getKendoDropDown();if(t){const r=new kendo.data.DataSource({data:e.map(e=>({[this.valueFieldName]:e}))});t.setDataSource(r);const i=this.model.get(this.valueFieldName);u.a.IsNullOrWhiteSpace(i)||(e.includes(i)?t.value(i):this.addAndSelectNewItem(i))}}getDataSource(){const e=this.getKendoDropDown();return e?e.dataSource:null}enableAddingItem(){const e=this.getKendoDropDown();e&&(e.setOptions({filter:"contains",noDataTemplate:this.getNoDataTemplate()}),$("#"+this.addNewBtnId).click(this.addNewItemClicked.bind(this)))}addNewItemClicked(){const e=this.getKendoDropDown();e&&this.addAndSelectNewItem(e.filterInput.val())}addAndSelectNewItem(e){const t=this.getKendoDropDown();if(!t)return;const r={[this.valueFieldName]:e};t.dataSource.add(r),t.value(e),this.model.set(this.valueFieldName,e),t.close()}getNoDataTemplate(){const e=this.provider.getService(c.a),t=l.a.String(e.CollectionEditorDropDownEditorNoData,{newItemValue:"<strong>'#: instance.filterInput?.val() #'</strong>"}),r=e.CollectionEditorDropDownEditorNoDataAddNew;return l.a.String(o.a.Editors.ExpandableEditors.Collection.Windows.collectionEditorDropDownEditorComponentNoData,{noDataMsg:t,addNewItemText:r,btnAddNewItem:this.addNewBtnId})}getEditor(){const e=this.$editorsPlaceholder.find("#"+this.addNewBtnId);return e.length>0?e.parent():null}getKendoDropDown(){const e=this.getEditor();return e?e.find("input.editor__value").data("kendoDropDownList"):null}};h([Object(i.b)()],v.prototype,"title",void 0),h([Object(i.b)()],v.prototype,"valueFieldName",void 0),h([Object(i.b)()],v.prototype,"model",void 0),v=h([Object(i.a)("collection-drop-down-editor")],v)},function(e,t,r){"use strict";r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return c}));var i=r(70),n=r(85),s=r(8),a=r(10),o=r(9);class l extends i.b{constructor(){super(...arguments),this.childEditors=[],this.classNames=o.a,this.onClosing=new a.b}get additionalEditorTemplate(){return""}get $editorsPlaceholder(){return this.view.element.find(".editors-placeholder")}getTemplate(){return'<div class="twd-editors editors-placeholder k-panelbar">\n                        #= data.additionalEditorTemplate #\n                </div>\n                <div class="twd-buttons k-window-buttongroup k-actions k-actions-end">\n                    <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-primary" data-bind="click: save">#: data.stringResources.SaveButton #</button>\n                    <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base" data-bind="click: cancel">#: data.stringResources.CancelButton #</button>\n                </div>'}beforeInit(){super.beforeInit(),this.stringResources=this.provider.getService(s.a)}afterInit(){super.afterInit(),this.loadEditors(this.$editorsPlaceholder)}cancel(){this.onClosing.next({cancelled:!0}),this._$kendoWindowInstance.close()}save(){this.onClosing.next({cancelled:!1}),this._$kendoWindowInstance.close()}beforeDispose(){super.beforeDispose(),this.childEditors.forEach(e=>e.Dispose()),this.childEditors=[]}}class c{constructor(e){this.provider=e,this.stringResources=this.provider.getService(s.a)}getWindowDimensions(){return{minWidth:340,minHeight:344,width:370,height:494}}create(e,t){const r=new n.a(this.provider),i=this.getWindowDimensions();r.withComponent(this.component).withTitle(t).withVisible(!1).withWindowDimensions(i).withModal(!0);return r.build({data:e})}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(258),n=r(5),s=r(0),a=r(1);class o extends i.a{constructor(e){super(e),e.hasOwnProperty(s.a.NetType)||(e[s.a.NetType]=a.a.Column),this.width=n.a.Parse(this.PropertyStore[s.a.Width])}get Width(){return this.width}set Width(e){this.width=new n.a(e.Value,e.Type),this.PropertyStore[s.a.Width]=e.ToString()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(258),n=r(5),s=r(0),a=r(1);class o extends i.a{constructor(e){super(e),e.hasOwnProperty(s.a.NetType)||(e[s.a.NetType]=a.a.Row),this.height=n.a.Parse(this.PropertyStore[s.a.Height])}get Height(){return this.height}set Height(e){this.height=new n.a(e.Value,e.Type),this.PropertyStore[s.a.Height]=e.ToString()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(126),n=r(1);class s extends i.a{accept(e){e.VisitReportFooterSection(this)}}s.typeName=n.a.ReportFooterSection},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(126),n=r(1);class s extends i.a{accept(e){e.VisitReportHeaderSection(this)}}s.typeName=n.a.ReportHeaderSection},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(380),n=r(54),s=r(70);class a extends i.a{constructor(e,t,r,i,n){super(e,t,r,i,n)}get innerTemplate(){return n.a.Editors.Wizards.Embedded.CategoryItems.textCategoryItem}init(){super.init(),this.$element.find(".editor__edit").click(this.openExtendEditMode.bind(this))}openExtendEditMode(){const e=`${this.sr.Edit} ${this.propertyTitle}`;this.extendEditPopup=new s.a(this.provider).create(e,{value:this.$inputElement.val()+"",displayExpressionEditor:!0,readonlyState:!1}),this.extendEditPopup.component.onPopupUpdateValue((e,t)=>{this.updateInput(t),this.closeExtendedEditPopup()}),this.extendEditPopup.open()}closeExtendedEditPopup(){this.extendEditPopup&&this.extendEditPopup.isOpen&&this.extendEditPopup.close()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get SimpleLayout(){return"No subtotals and grand totals"}static get BlockedBelow(){return"Blocked layout, subtotals below"}static get BlockedAbove(){return"Blocked layout, subtotals above"}static get SteppedAbove(){return"Stepped layout, subtotals above"}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return s})),r.d(t,"d",(function(){return a})),r.d(t,"c",(function(){return o}));var i=r(212);class n extends i.a{constructor(e,t,r,i){super(e,t,i),this.pathArray=r}get displayPath(){return!0}getTypeName(){return n.getTypeName()}getIconClass(){return"k-i-saturation"}static getTypeName(){return"EditorSearchResultModel"}}class s extends n{constructor(e,t,r,i,n){super(e,t,r,n),this.borderMode=i}getTypeName(){return s.getTypeName()}static getTypeName(){return"BorderSideEditorSearchResultModel"}}class a extends n{getTypeName(){return a.getTypeName()}static getTypeName(){return"InlineSourcePropertyEditorSearchResultModel"}}class o extends n{constructor(e,t,r,i,n){super(e,t,r,i),this.fakeEditorTypeName=n}getTypeName(){return o.getTypeName()}static getTypeName(){return"FakeInlineSourcePropertyEditorSearchResultModel"}}},function(e,t,r){"use strict";r.d(t,"i",(function(){return h})),r.d(t,"c",(function(){return p})),r.d(t,"b",(function(){return g})),r.d(t,"d",(function(){return f})),r.d(t,"h",(function(){return v})),r.d(t,"f",(function(){return y})),r.d(t,"a",(function(){return S})),r.d(t,"g",(function(){return C})),r.d(t,"e",(function(){return b}));var i=r(229),n=r(130),s=r(9),a=r(13),o=r(8),l=r(103),c=r(36),d=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class u{constructor(e,t){this.stringResources=e.getService(o.a),this.title=this.stringResources["OnboardingExperienceStepTitle"+t],this.content=this.stringResources["OnboardingExperienceStepContent"+t]}getPosition(){var e;return null===(e=this.locator)||void 0===e?void 0:e.getPosition()}positionArrow(){var e;null===(e=this.locator)||void 0===e||e.positionArrow()}removeArrow(){var e;null===(e=this.locator)||void 0===e||e.removeArrow()}highlight(){var e;return d(this,void 0,void 0,(function*(){yield null===(e=this.highlighter)||void 0===e?void 0:e.switch(n.g.On)}))}restore(){var e;return d(this,void 0,void 0,(function*(){yield null===(e=this.highlighter)||void 0===e?void 0:e.switch(n.g.Off)}))}putOverlay(){var e;null===(e=this.highlighter)||void 0===e||e.putOverlay()}createClassSelectorFromClassName(e){return"."+e}}class h extends u{constructor(e,t){super(e,t);!!e.getService(l.a)||(this.title=this.stringResources.OnboardingExperienceErrorTitle,this.content=this.stringResources.OnboardingExperienceErrorContent)}}class p extends u{constructor(e,t){super(e,t),this.highlightableElements=[{selector:"[data-id='twd-canvas-area']",isContainer:!1}],this.locator=new i.b,this.highlighter=new n.c(this.highlightableElements)}}class m extends u{constructor(e,t){super(e,t),this.highlightableElements=[{selector:this.createClassSelectorFromClassName(s.a.WebDesignerToolboxClassName),isContainer:!0},{selector:".k-tabstrip-items-wrapper",isContainer:!1},{selector:this.createClassSelectorFromClassName(s.a.WebDesignerToolboxTabsClassName),isContainer:!1},{selector:".k-splitbar:first-child",isContainer:!1}],this.locator=new i.g}}class g extends m{constructor(e,t){super(e,t);const r=e.getService(a.c);this.highlighter=new n.b(this.highlightableElements,r)}}class f extends m{constructor(e,t){super(e,t);const r=e.getService(a.c);this.highlighter=new n.d(this.highlightableElements,r)}}class v extends u{constructor(e,t){super(e,t),this.highlightableElements=[{selector:this.createClassSelectorFromClassName(s.a.WebDesignerPropertiesClassName),isContainer:!1}],this.locator=new i.f,this.highlighter=new n.j(this.highlightableElements)}}class y extends u{constructor(e,t){super(e,t),this.highlightableElements=[{selector:this.createClassSelectorFromClassName(s.a.WebDesignerMainMenuArea),isContainer:!1}];const r=e.getService(a.c);e.getService(c.a).ReportServerLayout&&(this.content=this.stringResources.OnboardingExperienceReportServerMenuStepContent),this.locator=new i.d,this.highlighter=new n.h(this.highlightableElements,r)}}class S extends u{constructor(e,t){super(e,t),this.highlightableElements=[{selector:".main-menu__wrapper>li:first-child",isContainer:!0},{selector:".k-animation-container",isContainer:!1}],this.locator=new i.a,this.highlighter=new n.a(this.highlightableElements)}}class C extends u{constructor(e,t){super(e,t),this.highlightableElements=[{selector:".top-menu-area__button.-preview",isContainer:!1}],this.locator=new i.e,this.highlighter=new n.i(this.highlightableElements)}}class b extends u{constructor(e,t){super(e,t),this.highlightableElements=[{selector:"global-search",isContainer:!1}],this.title=this.stringResources.OnboardingExperienceFinalStepTitle,this.content=this.stringResources.OnboardingExperienceFinalStepContent,this.locator=new i.c,this.highlighter=new n.e(this.highlightableElements)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(116);class n extends i.a{get DesignerClassName(){return this.Component.Type}Render(e){return e}Redraw(e=!1,t=null){}CalculateMinSize(){throw new Error("Method not implemented.")}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(316);class n extends i.a{}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(0),n=r(169),s=r(190),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends s.a{createWindowManager(){return new n.c(this.provider)}createPropertyWrapperProperties(){let e=this.propertyWrapper.GetValue();return e||(this.propertyWrapper.SetValueRaw([]),e=this.propertyWrapper.GetValue()),e}addItem(){return a(this,void 0,void 0,(function*(){this.BeginAddItem();const e=yield this.itemDefaultPropertyStore();return this.prepareNewItem(e),this.propertyWrapperProperties.push(e),this.Properties.push(e),this.EndAddItem(),e}))}prepareNewItem(e){}removeItem(e){this.designerHost.WithTransactionDo("Delete item",()=>{const t=this.getKendoListItemByUid(e);for(let e=0;e<this.Properties.length;e++){const r=this.Properties[e],i=t.get(this.itemIdentifier);if(r[this.itemIdentifier]===i){this.deleteItemAndNotify(i,e);break}}})}deleteItemAndNotify(e,t){this.namingService.UnregisterName(e),this.Properties.splice(t,1),this.propertyWrapperProperties.splice(t,1),this.component.raiseComponentChanged(this.propertyWrapper.Property,{},{})}itemDefaultPropertyStore(){return a(this,void 0,void 0,(function*(){const e=this.propertyWrapper.Type,t=yield this.schemaService.getTypeSchema(e);let r;for(const e of t.Properties)if(e[i.a.Name]===i.a.Item){r=yield this.schemaService.getDefaultPropertyStore(e.Type),r[i.a.Name]=this.namingService.CreateName(r[i.a.NetType]);break}return r}))}saveChanges(){this.commitTransactions(),this.updatePropertyWrapperProperty(),this.updatePropertyStore()}updatePropertyStore(){this.propertyWrapper.SetValueRaw(this.propertyWrapperProperties),this.propertyWrapper.Components.forEach(e=>e.Designer.Redraw(!0,void 0))}editProperties(e){return a(this,void 0,void 0,(function*(){this.rollbackPropertiesTransaction(),this.selectedItem=e,this.selectedIndex=this.kendoList.dataItems().indexOf(e);const t=this.getSelectedItemType(e);this.openPopUp({typeSchema:yield this.schemaService.getTypeSchema(t),item:this.selectedItem,component:this.component})}))}getSelectedItemType(e){return e[i.a.NetType]}updatePropertyWrapperProperty(){const e=this.propertyWrapperProperties[this.selectedIndex];for(const t in e)e[t]!==this.selectedItem.get(t)&&(e[t]=this.selectedItem.get(t))}commitTransactions(){this.commitPropertiesTransaction(),this.commitItemTransaction()}commitItemTransaction(){this.itemTransaction&&(this.itemTransaction.Commit(),this.itemTransaction=null)}commitPropertiesTransaction(){this.propertiesTransaction&&(this.propertiesTransaction.Commit(),this.propertiesTransaction=null)}rollbackPropertiesTransaction(){this.propertiesTransaction&&(this.propertiesTransaction.Rollback(),this.propertiesTransaction=null)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return g})),r.d(t,"b",(function(){return f}));var i=r(1),n=r(68),s=r(0),a=r(3),o=r(57),l=r(112),c=r(2),d=r(7),u=r(63),h=r(21),p=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},m=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class g extends u.b{get initialExpandedState(){return!0}refreshValue(){super.refreshValue(),this.changingInstanceType||(this.expandChildEditors(),this.resetManager.checkAndUpdateReset())}populateChildEditorsWithResolvedModels(e){for(const t of e){const e=t.propertyWrapper;if(e.Name===s.a.Parameters)this.prepareAndCreateParamCollectionEditor(t);else if(e.Name===i.a.Uri)this.createAssetManagerEditor(t,e);else if(e.Name===s.a.Xml)this.createXmlReportSourceEditor(t,e);else{const r=t.builder.createInstance(this.$editorsPlaceholder,e,this.provider,this.childEditorsDepth);this.childEditors.push(r)}}}prepareAndCreateParamCollectionEditor(e){const t=this.propertyWrapper.GetValue();this.createReportSourceComponent(t).then(r=>this.createParamCollectionEditor(r,t,e))}createAssetManagerEditor(e,t){const r=e.builder.createInstance(this.$editorsPlaceholder,t,this.provider,this.childEditorsDepth);let i=[...o.a.reportsFolder];if(r.Value){const e=h.a.splitPath(h.a.getFolderPath(r.Value));e.length>0&&(i=[...i,...e])}r.setOriginalRootPath(i),r.isExpressionEditorAllowed=this.supportsUriExpression,this.childEditors.push(r)}createXmlReportSourceEditor(e,t){const r=e.builder.createInstance(this.$editorsPlaceholder,t,this.provider,this.childEditorsDepth);r.isExpressionEditorAllowed=this.supportsUriExpression,this.childEditors.push(r)}createParamCollectionEditor(e,t,r){const i=this.propertyWrapper.GetChildProperty(s.a.Parameters).Property,n=new l.a([e],[t],i,this.propertyWrapper),a=r.builder.createInstance(this.$editorsPlaceholder,n,this.provider,this.editorDepth);this.childEditors.push(a)}createReportSourceComponent(e){return m(this,void 0,void 0,(function*(){const t=this.propertyWrapper.Components[0];return this.provider.getServiceByName(a.a.IDesignerHost).CreateComponent(n.a.DesignTimeReportSource,e,t,!1)}))}}let f=class extends g{get supportsUriExpression(){return!0}};f=p([Object(c.a)("report-source-editor"),Object(d.b)("Telerik.Reporting.Design.ReportSourceEditor")],f)},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(4);class n{static scrollTreeViewToSelectedNode(e,t,r=0){const i=e.select(),s=e.wrapper.scrollParent();if((null==s?void 0:s.length)>0&&i&&i.offset()){const a=s[0],o=i.offset().top-e.wrapper.offset().top;if(!(a instanceof Document)){const i=a.getBoundingClientRect();(a.scrollTop>o||a.scrollTop+i.height<o+n.getTreeNodeHeight(e))&&(t?s.stop(!0,!0).animate({scrollTop:o-r},200,"linear"):s.scrollTop(o-r))}}}static getTreeNodeHeight(e,t=n.defaultNodeHeight){var r;try{if((null===(r=null==e?void 0:e.dataSource)||void 0===r?void 0:r.data().length)>0)return $(e.wrapper).find("div.k-treeview-top").first()[0].getBoundingClientRect().height}catch(e){i.b.logError("Could not find tree node height.",e)}return t}}n.kendoR1_2023="2023.1.117",n.kendoR1_2023_SP1="2023.1.314"},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(1),n=r(0),s=r(103),a=r(34),o=r(16),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c extends a.a{constructor(e,t,r){super(e,t,r)}getProperties(){return[]}get HideContextMenuButton(){return!0}renderDesigner(){const e=this.Provider.getService(s.a);this.Designer.Render(e.visualElement);for(const e of this.Children)e.renderDesigner()}accept(e){e.VisitSharedDataSourceFile(this)}createChildComponentsFromPropertyStore(){const e=Object.create(null,{createChildComponentsFromPropertyStore:{get:()=>super.createChildComponentsFromPropertyStore}});return l(this,void 0,void 0,(function*(){this.DataSourceReference=yield this.createChildComponent(this.PropertyStore[n.a.DataSourceReference]),e.createChildComponentsFromPropertyStore.call(this)}))}createDesigner(){return l(this,void 0,void 0,(function*(){const e=new(this.schemaService.getDesignerType("SharedDataSourceFile"))(this.Provider,this);return yield e.Initialize(),e}))}get ReportParameters(){return[]}SetInitiallySelectedComponent(){if(null!=this.DataSourceReference){const e=this.Provider.getService(o.a);e&&e.SetSelectedComponents([this.DataSourceReference])}}}c.typeName=i.a.SharedDataSource},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(5),n=r(88);class s extends n.a{constructor(e,t,r){super(t,e,r),this.Cells=[];for(let r=0;r<e.Columns.length;r++)this.Cells.push(e.CreateCell(t,r))}get Top(){let e=i.a.Zero;for(let t=0;t<this.Index;t++)e=e.Add(this.TableLayout.Rows[t].Size);return e}get MemberName(){return"Row"}Dispose(){for(let e of this.Cells)e.Dispose();this.Cells.length=0,super.Dispose()}*GetCells(){return this.Cells}GetMinSize(){let e=super.GetMinSize();for(const t of this.Cells){let r=i.a.Zero;const n=t.MergeTarget;n?r=n.GetMinHeight().Multiply(this.Size.Ratio(n.Bounds.Height)):(r=t.GetMinHeight(),t.RowSpan>1&&(r=r.Multiply(this.Size.Ratio(t.Bounds.Height)))),e=i.a.Max(e,r)}return e}GetMinSizeNotRelative(){let e=super.GetMinSize();for(const t of this.Cells){let r;const n=t.MergeTarget;n?r=this.Size.Subtract(n.Bounds.Height.Subtract(n.GetMinHeight())):(r=t.GetMinHeight(),t.RowSpan>1&&(r=this.Size.Subtract(t.Bounds.Height.Subtract(r)))),e=i.a.Max(e,r)}return e}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(5),n=r(88);class s extends n.a{constructor(e,t,r){super(t,e,r)}*GetCells(){for(let e=0;e<this.TableLayout.rows.length;e++)yield this.TableLayout.rows[e].Cells[this.Index]}*[Symbol.iterator](){for(let e=0;e<this.TableLayout.rows.length;e++)yield this.TableLayout.rows[e].Cells[this.Index]}get Left(){let e=i.a.Zero;for(let t=0;t<this.Index;t++)e=e.Add(this.TableLayout.Columns[t].Size);return e}get MemberName(){return"Column"}GetMinSize(){let e=super.GetMinSize();for(const t of this.GetCells()){let r;const n=t.MergeTarget;null!==n?r=n.GetMinWidth().Multiply(this.Size.Ratio(n.Bounds.Width)):(r=t.GetMinWidth(),t.ColSpan>1&&(r=r.Multiply(this.Size.Ratio(t.Bounds.Width)))),e=i.a.Max(e,r)}return e}GetMinSizeNotRelative(){let e=super.GetMinSize();for(const t of this.GetCells()){let r;const n=t.MergeTarget;n?r=this.Size.Subtract(n.Bounds.Width.Subtract(n.GetMinWidth())):(r=t.GetMinWidth(),t.ColSpan>1&&(r=this.Size.Subtract(t.Bounds.Width.Subtract(r)))),e=i.a.Max(e,r)}return e}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(34),n=r(1),s=r(0),a=r(40),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends i.a{constructor(e,t,r,i=!0){super(e,t,r,i),this.graph=this.Parent}get PropertyStore(){return super.PropertyStore}get DefaultAxisDimension1(){return this.defaultAxisD1}get DefaultAxisDimension2(){return this.defaultAxisD2}get Graph(){return this.graph}AddNewGraphAxis(e){const t=this.GetDefaultAxis(e),r=this.namingService.CreateName(t.Type);t.PropertyStore.Name=r,this.PropertyStore[e]=r;let i=this.Graph.PropertyStore.Axes;return i||(i=this.Graph.PropertyStore.Axes=[]),i.push(t.PropertyStore),this.Graph.Axes.push(t),t}createDefaultAxes(){return o(this,void 0,void 0,(function*(){const e=yield this.schemaService.getDefaultPropertyStore(n.a.GraphAxis);e[s.a.Name]="prevent_naming";const t={};jQuery.extend(!0,t,e),this.defaultAxisD1=yield this.createNonChildComponent(e),this.defaultAxisD2=yield this.createNonChildComponent(t)}))}DeleteAxes(){if(!this.Graph.Axes.length||!this.GetAxes().length)return;const e=this.Graph.Axes,t=this.Graph.PropertyStore.Axes;for(const r of this.GetAxes()){this.namingService.UnregisterName(r.Name);let i=e.findIndex(e=>e.Name===r.Name);i>-1&&e.splice(i,1),i=t.findIndex(e=>e[s.a.Name]===r.Name),i>-1&&t.splice(i,1)}}GetAxes(){const e=this.GetDimension1AxisName(),t=this.GetDimension2AxisName();return e||t?this.Graph.Axes.filter(r=>r.Name===e||r.Name===t):[]}Initialize(e){const t=Object.create(null,{Initialize:{get:()=>super.Initialize}});return o(this,void 0,void 0,(function*(){this.namingService=this.Provider.getService(a.a),yield this.createDefaultAxes(),yield t.Initialize.call(this,e)}))}GetDimension1AxisName(){return null}GetDimension2AxisName(){return null}}l.typeName=n.a.GraphCoordinateSystem},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(1),n=r(282);class s extends n.a{getType(){return i.a.ReportSource}}s.typeName=i.a.ReportSource},function(e,t,r){"use strict";r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return d}));var i=r(4),n=r(3),s=r(106),a=r(90),o=r(410),l=r(38);class c extends a.b{constructor(e,t){super(e,t),this.pwFactory=this.provider.getServiceByName(n.a.IPropertyDescriptorWrapperFactory)}initEditorsByOrder(e,t,r){this.getEditorBuilders().forEach(i=>this.createChildEditor(i,e,t,r))}createChildEditor(e,t,r,i){const n=e.builder.createInstance(t,e.propertyWrapper,this.provider,r);i.push(n)}getEditorBuilders(){const e=this.pairPropertyNames[0],t=this.pairPropertyNames[1];let r=null,i=null;for(const n of this.getPropertyWrappers())if(r||n.Name!==e||(r=n),i||n.Name!==t||(i=n),r&&i)break;return this.logDebug(r,i),r&&i?this.buildEditorModelsArray(r,i):[]}logDebug(e,t){e&&t||window.TelerikWebReportDesignerDebugMode&&i.b.logError(`DEBUG: Cannot get UnitEditor required properties from ${this.propertyWrapper.Name}.\n                    Property1: ${null==e?e:e.Name},\n                    Property2: ${null==t?t:t.Name}.`)}buildEditorModelsArray(e,t){const r=l.a.findEditorBuilder(o.a);return[{builder:r,propertyWrapper:e},{builder:r,propertyWrapper:t}]}getPropertyWrappers(){let e=null;return e=Array.isArray(this.propertyWrapper)?this.propertyWrapper[0]:this.propertyWrapper,e.ParentWrapper?e.ParentWrapper.GetChildProperties():this.pwFactory.CreateMergeableWrappers(e.Components,null)}}class d extends s.a{get classNames(){return super.classNames+" -pair"}initEditorsByOrder(){super.initEditorsByOrder(),this.childEditors.length||this.visualElement.hide()}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return l})),r.d(t,"a",(function(){return c}));var i=r(50),n=r(223),s=r(40),a=r(3),o=r(0);class l extends n.a{constructor(e,t){super(e),this.transformDisplayTextItemFunc=t,this.addTransformDisplayTextToItem=e=>e.transformDisplayText=e=>this.transformDisplayTextItemFunc(e),this.addTransformDisplayTextToCurrentItems()}push(...e){null==e||e.forEach(this.addTransformDisplayTextToItem);return super.push(...e)}addTransformDisplayTextToCurrentItems(){this.forEach(this.addTransformDisplayTextToItem)}}class c extends i.b{get Properties(){return this.getByPropertyName(e=>{e.properties})}set Properties(e){this.setByPropertyName(e=>{e.properties},e)}get additionalListBoxItemTemplate(){return""}get SelectedProperty(){return this.getByPropertyName(e=>{e.selectedProperty})}set SelectedProperty(e){this.setByPropertyName(e=>{e.selectedProperty},e)}get descendantsTemplate(){return this.templates.Editors.ExpandableEditors.Collection.collectionEditorComponentDescendantsTemplate}get classNames(){return super.classNames+" -list"}get lastListBoxItem(){const e=this.kendoList.dataItems();return e.length?e[e.length-1]:null}get isResettable(){return!1}get isResetVisible(){return!1}get EditorsTemplate(){return""}get reorderable(){return!1}get itemIdentifier(){return o.a.Name}beforeInit(){super.beforeInit(),this.schemaService=this.provider.getServiceByName(a.a.ISchemaService),this.namingService=this.provider.getService(s.a),this.designerHost=this.provider.getServiceByName(a.a.IDesignerHost),this.component=this.propertyWrapper.Components[0];const e=this.createPropertyWrapperProperties();this.propertyWrapperProperties=e,this.Properties=this.createCollectionEditorListBoxArray(e,this.transformDisplayText),this.windowManager=this.createWindowManager()}afterInit(){super.afterInit(),this.$editorsPlaceholder.attr("data-content",this.stringResources.EmptyCollectionEditor),this.selectedItem=null,this.kendoList=this.view.element.find("select.editor__list").data("kendoListBox")}transformDisplayText(e){return e||""}refreshValue(){this.Properties=this.createCollectionEditorListBoxArray(this.propertyWrapper.GetValue(),this.transformDisplayText),this.propertyWrapperProperties=this.propertyWrapper.GetValue()}createCollectionEditorListBoxArray(e,t){return new l(e,t)}removeItemClick(e){this.removeItem($(e.currentTarget).data("item-uid"))}getListBoxItemHtmlElement(e){return this.kendoList.wrapper.find("[data-uid='"+e.uid+"']")}getKendoListItemByUid(e){return this.kendoList.dataItems().find(t=>t.uid===e)}populateChildEditors(){}isEmptyCollection(){return!this.Properties.length}collapseChildEditors(){}listSelectionChanged(e,t,r){const i=this.kendoList.dataItem(this.kendoList.select());this.editProperties(i)}openPopUp(e){const t=this.addNewItem?this.stringResources.AddItem:this.stringResources.EditItem;this.designerHost.InTransaction||(this.propertiesTransaction=this.designerHost.CreateTransaction(`Edit ${this.propertyWrapper.Name} ${this.id}`));const r=this.windowManager.create(e,t);r.component.onClosing.subscribeOnce(e=>{this.addNewItem=!1,e.cancelled?(this.kendoList.clearSelection(),this.cancelChanges()):this.saveChanges(),this.refreshValue(),this.clearTransaction()}),r.open(),this.kendoWindowRef=r,this.kendoWindowRef.kendoWindow.one("close",()=>{this.windowClosing(),this.kendoWindowRef=null})}windowClosing(){}BeginAddItem(){this.addNewItem=!0,this.designerHost.InTransaction||(this.itemTransaction=this.designerHost.CreateTransaction(`Add new '${this.propertyWrapper.Name}' item`))}EndAddItem(){this.Expanded=!0,this.getListBoxItemHtmlElement(this.lastListBoxItem).trigger("click")}cancelChanges(){const e=this.propertyWrapperProperties[this.selectedIndex];for(const t in e)e[t]!==this.selectedItem.get(t)&&this.selectedItem.set(t,e[t])}clearTransaction(){this.propertiesTransaction&&(this.propertiesTransaction.Rollback(),this.propertiesTransaction=null),this.itemTransaction&&(this.itemTransaction.Rollback(),this.itemTransaction=null)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return l}));var i=r(2),n=r(170),s=r(121),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends n.a{loadEditors(e){const t=this._$injectedInputData.component;t.createPropertyWrappersWithParent(this._$injectedInputData.propertyWrapper);const r=t.BrowsablePropertyWrappers;for(const t of s.a.RenderPropertyEditors(e,r,this.provider,e=>this._$injectedInputData.canCreateEditorCallback(e)))this.childEditors.push(t)}};o=a([Object(i.a)("component-collection-editor-window")],o);class l extends n.b{get component(){return o}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return h})),r.d(t,"b",(function(){return p}));var i=r(0),n=r(3),s=r(57),a=r(2),o=r(7),l=r(319),c=r(248),d=r(526),u=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let h=class extends l.a{get isResetVisible(){return!1}getTypeDescriptor(){const e=this.provider.getServiceByName(n.a.ITypeDescriptorRepository),t=e.GetPropertyTypeDescriptor(this.propertyWrapper.Type).GetProperty(i.a.Item).Type;return e.GetPropertyTypeDescriptor(t)}getPropertyType(){return this.propertyWrapper.Components[0].Type}};h=u([Object(a.a)("collection-type-instance-types"),Object(o.a)()],h);let p=class extends h{populateChildEditorsWithResolvedModels(e){const t=e.find(e=>e.builder.editorType===c.a),r=e.find(e=>e.builder.editorType===d.a);t&&(e=e.filter(e=>e.builder.editorType!==c.a)),r&&(e=e.filter(e=>e.builder.editorType!==d.a)),super.populateChildEditorsWithResolvedModels(e),t&&this.createAssetManagerEditor(t),r&&this.createXmlEditor(r)}createAssetManagerEditor(e){const t=e.builder.createInstance(this.$editorsPlaceholder,e.propertyWrapper,this.provider,this.childEditorsDepth);t.setOriginalRootPath(s.a.reportsFolder),this.childEditors.push(t)}createXmlEditor(e){const t=e.builder.createInstance(this.$editorsPlaceholder,e.propertyWrapper,this.provider,this.childEditorsDepth);t.isExpressionEditorAllowed=!1,this.childEditors.push(t)}};p=u([Object(a.a)("report-source-collection-type-instance-types-editor"),Object(o.a)()],p)},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get MaxCount(){return 10}static get Items(){return[{Name:"1",Colors:["#4bacc6"]},{Name:"2",Colors:["#4bacc6","#c0504d"]},{Name:"3",Colors:["#4bacc6","#f79646","#c0504d"]},{Name:"4",Colors:["#4bacc6","#f79646","#f95e41","#c0504d"]},{Name:"5",Colors:["#4bacc6","#0a7b91","#f79646","#f95e41","#c0504d"]},{Name:"6",Colors:["#4bacc6","#0a7b91","#064551","#f79646","#f95e41","#c0504d"]},{Name:"7",Colors:["#4bacc6","#0a7b91","#064551","#f79646","#f95e41","#c0504d","#9da600"]},{Name:"8",Colors:["#4bacc6","#0a7b91","#064551","#f79646","#f95e41","#c0504d","#9da600","#0d770a"]},{Name:"9",Colors:["#4bacc6","#0a7b91","#064551","#9597ff","#f79646","#f95e41","#c0504d","#9da600","#0d770a"]},{Name:"10",Colors:["#4bacc6","#0a7b91","#064551","#9597ff","#7158bb","#f79646","#f95e41","#c0504d","#9da600","#0d770a"]}]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return d}));var i=r(14),n=r(85),s=r(8),a=r(57),o=r(75),l=r(167);class c extends l.a{getTemplate(){return this.templates.Layouts.ReportWindows.reportCreationWindowTemplate}beforeInit(){super.beforeInit(),this.Extensions=i.d.Extensions.map(e=>new l.b(e))}getDocumentLocationAssetsManagerConfig(e){return o.a.getSelectReportFolderConfig(e)}getDocumentLocationAssetsManagerInitialPath(){return a.a.reportsFolder}}class d{constructor(e){this.provider=e,this.stringResources=this.provider.getService(s.a)}create(e){const t=new n.a(this.provider);t.withComponent(this.component).withTitle(this.title).withVisible(!1).withWindowDimensions({height:314,width:480,minWidth:300,minHeight:234}).withModal(!0);return t.build({data:e})}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u})),r.d(t,"b",(function(){return h}));var i=r(1),n=r(14),s=r(85),a=r(8),o=r(57),l=r(75),c=r(167);class d{constructor(e,t){this.type=e,this.displayValue=t}}class u extends c.a{constructor(){super(...arguments),this.supportedDataSourceTypes=[i.a.CsvDataSource,i.a.JsonDataSource,i.a.SqlDataSource,i.a.WebServiceDataSource,i.a.ObjectDataSource]}beforeInit(){super.beforeInit(),this.Extensions=n.e.Extensions.map(e=>new c.b(e)),this.DataSourceTypes=this.supportedDataSourceTypes.map(e=>new d(e,this.stringResources.getString(e))),this.NewDocumentName=n.e.DefaultNewName,this.SelectedExtension=n.e.Extensions[0],this.SelectedDataSourceType=this.dataSourceTypes[0].type}get SelectedDataSourceType(){return this.getByPropertyName(e=>{e.selectedDataSourceType})}set SelectedDataSourceType(e){this.setByPropertyName(e=>{e.selectedDataSourceType},e)}get DataSourceTypes(){return this.getByPropertyName(e=>{e.dataSourceTypes})}set DataSourceTypes(e){this.setByPropertyName(e=>{e.dataSourceTypes},e)}get enableDsTypeSelection(){return!0}getDocumentLocationAssetsManagerConfig(e){return l.a.getSelectSdsFolderConfig(e)}getTemplate(){return this.templates.Layouts.ReportWindows.sharedDataSourceCreationWindowTemplate}getDocumentLocationAssetsManagerInitialPath(){return o.a.sharedDataSourceFolder}getDocumentType(){return this.stringResources.SharedDataSource}}class h{constructor(e){this.provider=e,this.defaultWindowDimensions={height:314,width:480,minWidth:300,minHeight:234},this.stringResources=this.provider.getService(a.a)}create(e){const t=new s.a(this.provider);t.withComponent(this.component).withTitle(this.title).withVisible(!1).withWindowDimensions(this.defaultWindowDimensions).withModal(!0);return t.build({data:e})}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t){this.IndexOfFirstLeaf=e,this.IndexOfLastLeaf=t}}},function(e,t,r){"use strict";r.d(t,"d",(function(){return s})),r.d(t,"c",(function(){return a})),r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return l}));var i=r(34),n=r(1);class s extends i.a{}s.typeName=n.a.Watermark;class a extends s{}a.typeName=n.a.TextWatermark;class o extends s{}o.typeName=n.a.PictureWatermark;class l extends o{}l.typeName=n.a.BackgroundOverlay},function(e,t,r){"use strict";r.r(t),r.d(t,"WebReportDesigner",(function(){return C}));var i=r(9),n=r(14),s=r(537),a=r(538),o=r(4),l=r(883),c=r(19),d=r(214),u=(r(948),r(952),r(36)),h=r(536),p=r(17),m=r(3),g=r(18),f=r(78),v=r(199),y=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},S=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let C=class extends c.a{constructor(e,t){super(),this.visualElement=e,this.options=new u.a(t,$(this.visualElement).attr("id")),this.permissions=new f.a,this.eventsManager=new v.a(this,this.options),this.$webDesignerWrapper=$(e),this.$webDesignerContent=null,this.styles=[],this.baseUrl=this.resolveBaseUrl,window.TelerikWebReportDesignerDebugMode?(this.styles.push("/styles/webReportDesignerTheme-17.2.23.1114.css"),this.styles.push("/styles/webReportDesigner-17.2.23.1114.css")):(this.styles.push(this.baseUrl+"designerresources/ext_styles/webReportDesignerTheme-17.2.23.1114.min.css/"),this.styles.push(this.baseUrl+"designerresources/styles/webReportDesigner-17.2.23.1114.min.css/")),this.styles.push(this.baseUrl+"resources/font/fonticons-17.2.23.1114.css/"),this.initWithPromise()}get template(){return`<div class="designer__content k-flex-1">\n            <div class="${i.a.WebDesignerCanvasContentClassName} k-content" role="form" tabindex="0">\n                <div data-id="${n.d.ToolboxAreaPaneID}" class="${i.a.WebDesignerToolboxClassName} ${i.a.WebDesignerPartsClassName} k-widget k-header"></div>\n                <div data-id="twd-canvas-area" class="${i.a.WebDesignerCanvasClassName} k-widget"></div>\n                <div data-id="${n.d.ProperiesAreaPaneID}" class="${i.a.WebDesignerPropertiesClassName} ${i.a.WebDesignerPartsClassName} k-widget k-header"></div>\n            </div>\n            <div class="${i.a.WebDesignerPreviewClassName} ${i.a.WebDesignerPartsClassName}" id="${this.id}_preview"></div>\n        </div>`}static PluginName(){return"telerik_WebReportDesigner"}Dispose(){this.disposed||(this.shell.Dispose(),h.a.unregister(this.options),this.disposed=!0)}dispose(){this.Dispose()}Show(){this.$webDesignerContent.show()}Hide(){this.$webDesignerContent.hide()}bind(e,t){this.eventsManager.bind(e,t)}unbind(e,t){this.eventsManager.unbind(e,t)}get resolveBaseUrl(){let e=this.options.ServiceUrl,t="";return this.options.ReportServer.Url&&(t=o.b.rTrim(this.options.ReportServer.Url,"\\/"),e=t+"/api/reportdesigner/"),o.b.rTrim(e,"\\/")+"/"}initWithPromise(){window.Promise&&window.Event&&window.CustomEvent&&window.fetch&&window.Symbol&&window.Symbol.iterator?this.initWithClipboard():o.b.loadScript("https://polyfill.io/v3/polyfill.min.js?features=es5%2Ces2015%2Cdefault%2CArray.prototype.map%2CArray.prototype.flatMap%2CArray.prototype.forEach%2CArray.prototype.includes%2CArray.prototype.indexOf%2CArray.of%2CEvent%2CMap%2CObject.assign%2CObject.defineProperties%2CObject.defineProperty%2CObject.create%2CObject.getOwnPropertyDescriptor%2CObject.getOwnPropertyDescriptors%2CObject.getOwnPropertyNames%2CObject.getPrototypeOf%2CPromise%2CPromise.prototype.finally%2CString.prototype.includes%2CString.prototype.startsWith%2CString.prototype.trim%2CSymbol.iterator%2CSymbol.split%2CWeakMap%2Cfetch",()=>this.initWithClipboard())}initWithClipboard(){navigator.clipboard?this.initWithJQueryUi():o.b.loadScript(this.baseUrl+"designerresources/ext_js/clipboard.polyfill-2.8.1.min.js/",()=>this.initWithJQueryUi())}initWithJQueryUi(){window.jQuery.ui?this.init():(o.b.loadScript(this.baseUrl+"designerresources/ext_js/jquery.ui-1.12.1.min.js/",()=>this.init()),this.styles.push(this.baseUrl+"designerresources/ext_styles/jquery.ui-1.12.1.min.css/"))}init(){this.id=this.$webDesignerWrapper.attr("id");let e=!0;this.$webDesignerWrapper.html(this.template).addClass(""+i.a.WebDesignerClassName);const t=this.$webDesignerWrapper.find("."+i.a.WebDesignerPropertiesClassName);this.$webDesignerContent=this.$webDesignerWrapper.find("."+i.a.WebDesignerCanvasContentClassName),this.loadStyles().then(()=>{this.$webDesignerContent.kendoSplitter({panes:[{min:"250px",size:"250px",collapsible:!0,collapsed:this.options.ToolboxArea.Collapsed},{},{min:"340px",size:"340px",collapsible:!0,collapsed:this.options.PropertiesArea.Collapsed}],resize:()=>{e&&this.onSectionsResize(t),e=!0},expand:t=>{e=!1;const r=$(t.pane).attr("data-id");this.setPaneState(r,!1)},collapse:t=>{e=!1;const r=$(t.pane).attr("data-id");this.setPaneState(r,!0)}}).data("kendoSplitter")}).catch(e=>{console.log(e)}),this.initPermissions()}initPermissions(){this.loadPermissions(this.options.ReportServerLayout).then(e=>{this.setPermissions(e),this.onPermissionsLoaded()})}onPermissionsLoaded(){const e=this.$webDesignerWrapper.find("."+i.a.WebDesignerToolboxClassName),t=this.$webDesignerWrapper.find("."+i.a.WebDesignerPropertiesClassName),r=this.$webDesignerWrapper.find("."+i.a.WebDesignerCanvasClassName),n=this.$webDesignerWrapper.find("."+i.a.WebDesignerPreviewClassName);this.shell=new a.a(this.options,this.eventsManager,this.$webDesignerWrapper,e,t,r,n,this,this.permissions);const s=this.shell.getServiceByName(m.a.ResourceStorageService);g.a.GetData(()=>s.getFolder({uri:""})).then(e=>p.c.resourceFolder=e),Object(l.a)(),d.a.registerBinders(),h.a.register(this.shell,this.options)}setPermissions(e){this.permissions.init(e)}onSectionsResize(e){}setPaneState(e,t){switch(e){case n.d.ToolboxAreaPaneID:this.options.ToolboxArea.Collapsed=t;break;case n.d.ProperiesAreaPaneID:this.options.PropertiesArea.Collapsed=t}}loadStyles(){return S(this,void 0,void 0,(function*(){const e=new s.a,t=[];for(const r of this.styles)t.push(e.Css(r));return Promise.all(t)}))}loadPermissions(e){return S(this,void 0,void 0,(function*(){if(e)return Promise.resolve([]);const t=yield fetch(this.options.ServiceUrl+"deniedPermissions");return t.ok?yield t.json():(console.error("Could not get permissions."),null)}))}};C.getServiceName=()=>"WebReportDesigner",C=y([Object(o.e)()],C);const b=C.PluginName();jQuery.fn[b]=function(e){return this.selector&&!e.selector&&(e.selector=this.selector),$.each(this,(function(){$.data(this,b)||$.data(this,b,new C(this,e))}))}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(144),n=r(19),s=r(4),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends n.a{constructor(e,t){super(),this.designer=e,this.options=t,this.countRegistedEventHandlers=new Map,this.attachEventHandlers()}bind(e,t){this.eventBinder(e,t,!0)}unbind(e,t){this.eventBinder(e,t,!1)}eventBinder(e,t,r){"function"==typeof t?(r?$(this.designer).on(e,{sender:this.designer},t):$(this.designer).off(e,t),this.countRegistedEventHandlers.has(e)?this.countRegistedEventHandlers.set(e,this.countRegistedEventHandlers.get(e)+(r?1:-1)):r&&this.countRegistedEventHandlers.set(e,1)):t||r||($(this.designer).off(e),this.countRegistedEventHandlers.set(e,0))}trigger(e,t){$(this.designer).trigger(e,t)}hasRegisteredEventHandlers(e){return this.countRegistedEventHandlers.get(e)>0}attachEventHandlers(){this.options.Error&&this.bind(i.a.Error,this.options.Error),this.options.NotificationShowing&&this.bind(i.a.NotificationShowing,this.options.NotificationShowing)}detachAllEventHandlers(){this.unbind(i.a.Error,null)}Dispose(){this.detachAllEventHandlers()}};o.getServiceName=()=>"WebReportDesignerEventManager",o=a([Object(s.e)()],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(101),n=r(323),s=r(0),a=r(1),o=r(40),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c extends i.a{constructor(e,t,r){super(e,n.a,t,r),this.namingService=r.getService(o.a)}Initialize(){return l(this,void 0,void 0,(function*(){for(let e=0;e<this.items.length;e++){const t=this.items[e];t.PropertyStore[s.a.Name]=this.namingService.CreateName(a.a.Filter),yield t.Initialize()}}))}init(e){for(const t of this.propertyStore)this.items.push(new e(t,this.parent,this.provider))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(102);class n extends i.a{constructor(e,t,r,i){super(e,t,r,!1),this.component=i||t}get Component(){return this.component}canContain(e){return!1}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i,n=r(43),s=r(4),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=i=class extends n.b{constructor(){super(i.getEventName())}};o.getEventName=()=>"UpdateUIEvent",o=i=a([Object(s.e)()],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(0),n=r(578);class s{constructor(e){this.Name=e[i.a.Name],this.Expression=e[i.a.Expression],this.Parent=e[i.a.Parent],this.Description=e[i.a.Description],this.Measures=[];const t=e[i.a.Measures];if(t&&t.length)for(const e of t)this.Measures.push(new n.a(e))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(19),n=r(13),s=r(202),a=r(4),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends i.a{constructor(e){super(),this.provider=e,this.registeredUiCommands=[];this.provider.getService(n.c).on(s.a,()=>this.refreshCommands(),!1)}registerCommand(e){if(this.registeredUiCommands.indexOf(e)>-1)throw new Error(`Command ${e.command.toString()} already exists.`);this.registeredUiCommands.push(e)}refreshCommands(){for(const e of this.registeredUiCommands.values())e.updateStatus()}};l.getServiceName=()=>"UiCommandManager",l=o([Object(a.e)()],l)},function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var i=r(27),n=r(6),s=r(3),a=r(21),o=r(93),l=r(12),c=r(24),d=r(96),u=r(8),h=r(263),p=r(29),m=r(78),g=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class f extends h.a{get StorageService(){return this.storageService||(this.storageService=this.provider.getServiceByName(s.a.ReportStorageService)),this.storageService}get StringResources(){return this.stringResources||(this.stringResources=this.provider.getService(u.a)),this.stringResources}executeGenerateDocument(e,t,r){return g(this,void 0,void 0,(function*(){const i=this.provider.getService(o.a);yield Object(d.a)(i.Start(),()=>g(this,void 0,void 0,(function*(){const i=this.DesignSurfaceManager.ActiveDesignSurface,s=i?i.documentId:null,a=this.getDocumentIdFromArgs(e);yield this.validateDocumentId(a);const o=this.provider.getServiceByName(r),l=yield o.Exists({uri:a});if(l.isError)return void this.Notifications.error("Could not create document. "+l.serverStatusMessage);if(!this.provider.getService(m.a).checkCreateDocumentPermission(a,l.Data,r,this.StringResources,this.Notifications))return;l.Data&&this.confirmDocumentDeletion(a),this.tryDeleteDesignSurface(a);const d=this.DesignSurfaceManager.createDesignSurface(a,r);(yield t(d))?(this.reportOptionsService.onReportCreated(a),this.TopMenuArea.Update()):(this.tryDeleteDesignSurface(a),s&&(yield new c.a(n.a.DocumentOpen,this.provider).executeAsync({DocumentId:s,CheckPermission:!1})))}))),this.TriggerDocumentUILoadedEvent()}))}confirmDocumentDeletion(e){if(!window.confirm(this.StringResources.ConfirmOverwriteExistingDocument))throw new p.a("Document overwriting was canceled by user.",this.provider);this.tryDeleteDesignSurface(e)}tryDeleteDesignSurface(e){const t=this.DesignSurfaceManager.getDesignSurface(e);t&&(this.validateDesignSurfaceState(t),this.DesignSurfaceManager.deleteDesignSurface(t.documentId,!1))}validateDesignSurfaceState(e){if(e.IsModified){const t=this.provider.getService(l.a),r=i.a.String(this.StringResources.CannotOverwriteReportHasUnsavedChanges,{documentId:e.documentId});throw t.warning(r),new Error(r)}}getDocumentIdFromArgs(e){return e instanceof String||"string"==typeof e?e:e.newDocumentId}validateDocumentId(e){return g(this,void 0,void 0,(function*(){let t;if(""===a.a.getFileNameWithoutExtension(e).trim()&&(t=this.StringResources.CannotCreateReportWithEmptyName),t)throw this.Notifications.error(t),new Error(t)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(365),n=r(156);class s extends i.a{constructor(){super(...arguments),this.class="-top-label -list -draggable-list -sortable-list",this.visible=this.model.hasLayoutType}initContextMenu(e,t){return this.contextMenu=new n.a(e,t,this.provider),this.contextMenu.init()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(12),n=r(19),s=r(4),a=r(29),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let c=class extends n.a{constructor(e,t){super(),this.provider=e,this.reportDesignerApiUrl=t}get Notifications(){return this.notifications||(this.notifications=this.provider.getService(i.a)),this.notifications}getTypeModel(){return l(this,void 0,void 0,(function*(){const e=yield fetch(this.reportDesignerApiUrl+"data/ods/types");if(!e.ok){const t=yield e.text();return this.Notifications.error("Could not list the available types.",new a.a(t,this.provider)),null}return e.json()}))}getDataMembersModel(e,t=!1){return l(this,void 0,void 0,(function*(){const r={typeName:e,dataMembersOnly:t},i=yield fetch(this.reportDesignerApiUrl+"data/ods/members",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),n=yield i.json();if(!i.ok){const t=`${n.message} ${n.exceptionMessage}`;return this.Notifications.error(`Could not list the available data members of type '${e}'.`,new a.a(t,this.provider)),null}return n}))}getPreviewData(e){return l(this,void 0,void 0,(function*(){const t=yield fetch(this.reportDesignerApiUrl+"data/ods/preview",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok){const e=yield t.text();return this.Notifications.error("Could not get preview.",new a.a(e,this.provider)),null}const r=yield t.json(),i=[];for(const e of r)i.push(e.RawData);return i}))}};c.getServiceName=()=>"ObjectDataSourceService",c=o([Object(s.e)()],c)},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var i=r(3),n=r(19),s=r(16),a=r(8),o=r(748),l=r(756),c=r(450),d=r(13),u=r(53),h=r(4),p=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let m=class extends n.a{constructor(e,t){super(),this.$toolboxArea=e,this.provider=t,this.init()}get Tabs(){return this.tabs}selectExplorerItemElement(e,t){this.Tabs.openExplorerTab(()=>{this.Tabs.getExplorerTab().selectElement(t)})}selectToolbBoxItemElement(e,t){const r=this.getToolboxItemVisualElement(e,t);e===this.sr.DataSourcesGroupTitle?r.click():this.Tabs.openToolboxTab(()=>{this.Tabs.Editors.find(e=>e instanceof c.a).scrollToItem(e,t),r.addClass("twd-toolbox-item-selected")})}removeSelectionFromToolboxItemElement(e,t){this.getToolboxItemVisualElement(e,t).removeClass("twd-toolbox-item-selected")}getToolboxItemVisualElement(e,t){return this.Tabs.Editors.find(e=>e instanceof c.a).getItemVisualElement(e,t)}init(){this.sr=this.provider.getService(a.a),this.tabs=new l.a(this.$toolboxArea,this.provider,[{title:this.sr.ToolboxAreaTitle,editor:c.a},{title:this.sr.ExplorerTitle,editor:o.a}]);this.provider.getService(d.c).on(u.a,()=>{if(this.provider.getServiceByName(i.a.IDesignSurfaceManager).ActiveDesignSurface){const e=this.provider.getService(s.a).GetSelectedComponents();this.tabs.UpdateActiveTab(e)}},!1)}};m.getServiceName=()=>"ToolboxArea",m=p([Object(h.e)()],m)},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(268),n=r(25),s=r(24),a=r(6),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends i.a{constructor(e,t,r,i){super(e,t,i,!0),this.selectedComponent=r}addMenuItems(){return o(this,void 0,void 0,(function*(){return this.addCommand(a.a.CopyStyle,n.a.CopyStyle,this.sr.CopyStyleButton,"Ctrl+Shift+C"),this.addCommand(a.a.PasteStyle,n.a.PasteStyle,this.sr.PasteStyleButton,"Ctrl+Shift+V"),this.addCommand(a.a.ResetStyle,n.a.ResetStyle,this.sr.ResetStyleButton,"Ctrl+Shift+Space","-border-bottom"),this.addMenuItemsCore()}))}addMenuItemsCore(){return o(this,void 0,void 0,(function*(){this.addCommand(a.a.BringToFront,n.a.BringToFront,this.sr.BringToFrontButton,"Ctrl+]"),this.addCommand(a.a.SendToBack,n.a.SendToBack,this.sr.SendToBackButton,"Ctrl+[","-border-bottom"),this.addCommand(a.a.Cut,n.a.Cut,this.sr.CutButton,"Ctrl+X"),this.addCommand(a.a.Copy,n.a.Copy,this.sr.CopyButton,"Ctrl+C"),this.addCommand(a.a.Paste,n.a.Paste,this.sr.PasteButton,"Ctrl+V","-border-bottom"),this.addCommand(a.a.Delete,n.a.Delete,this.sr.DeleteButton,"Del")}))}onContextMenuOpen(e){}onContextMenuDeactivate(){this.Dispose()}addCommand(e,t,r,i,a=""){if(!this.selectedComponent.Designer.GetContextMenuCommands().some(e=>e===t))return;const o={Name:n.a[t],Title:r,ShortCut:i,ClassName:a},l=new s.a(e,this.provider);l.getCommandStatus().enabled||(o.ClassName=o.ClassName+" k-disabled"),o.Action=l.executeAsync.bind(l),this.menuItems.push(o)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var i=r(31),n=r(60),s=r(37),a=r(5),o=r(42),l=r(25),c=r(0),d=r(3),u=r(12),h=r(141),p=r(117);class m extends h.a{get ReportItem(){return this.Component}get IsTableCell(){return this.ReportItem.Parent instanceof o.a}SnapLines(){const e=super.SnapLines();if(!this.IsTableCell){const t=this.GetAbsoluteBounds(),r=this.Component.Margins,a=this.Zoom;e.push(new i.a(s.a.Top,t.Top,null,n.a.Low)),e.push(new i.a(s.a.Bottom,t.Bottom,null,n.a.Low)),e.push(new i.a(s.a.Left,t.Left,null,n.a.Low)),e.push(new i.a(s.a.Right,t.Right,null,n.a.Low)),e.push(new i.a(s.a.Horizontal,t.Top-a*r.Top.ToPixels(),i.a.MarginTop,n.a.Always)),e.push(new i.a(s.a.Horizontal,t.Bottom+a*r.Bottom.ToPixels(),i.a.MarginBottom,n.a.Always)),e.push(new i.a(s.a.Vertical,t.Left-a*r.Left.ToPixels(),i.a.MarginLeft,n.a.Always)),e.push(new i.a(s.a.Vertical,t.Right+a*r.Right.ToPixels(),i.a.MarginRight,n.a.Always))}return e}GetLocation(e){if(this.IsTableCell){const e=this.ParentItemDesigner;if(e){const t=e.GetCell(this.ReportItem);if(t)return t.Bounds.Location.ToPixels()}}return super.GetLocation(e)}GetAbsoluteLocation(){if(this.IsTableCell){const e=this.ParentItemDesigner;if(e){const t=e.GetCell(this.ReportItem);if(t){const r=t.Bounds.Location.ToPixels(),i=e.GetAbsoluteBounds();return r.Offset(i.X,i.Y),r}}}return super.GetAbsoluteLocation()}InitializeOverlay(){this.Overlay.Initialize(!this.IsTableCell,!1,!0)}Resize(e){const t=this.Provider.getServiceByName(d.a.IDesignerHost),r=this.Provider.getService(u.a);if(this.IsTableCell){const i=t.CreateTransaction(`Resize '${this.Component.Name}'`);try{const t=this.ParentItemDesigner;if(t){const r=this.ReportItem.Size,i=a.a.FromPixels(e.Size.Width,r.Width.Type),n=a.a.FromPixels(e.Size.Height,r.Height.Type);t.ResizeMemberByItem(this.ReportItem,i,n)}i.Commit()}catch(e){i.Rollback(),r.error(`Could not resize '${this.Component.Name}'.`,e)}}else{const i=t.CreateTransaction(`Resize '${this.Component.Name}'`);try{const t=this.Component.PropertyStore;this.setPosition(t,e.Location),this.setSize(t,e.Size),i.Commit()}catch(e){i.Rollback(),r.error(`Could not resize '${this.Component.Name}'.`,e)}}}Drag(e){const t=this.Component.PropertyStore,r=this.Provider.getService(u.a);let i=this.Provider.getServiceByName(d.a.IDesignerHost).CreateTransaction(`Move '${this.Component.Name}'`);try{this.setPosition(t,e),i.Commit()}catch(e){i.Rollback(),r.error(`Could not move '${this.Component.Name}'.`,e)}}createCssBuilder(){this.createCssComponentBuilder(),this.cssBuilder.Styles.position="absolute",this.cssBuilder.Styles.overflow="hidden"}createCssComponentBuilder(){this.cssBuilder=new p.a(this.Component)}get GetResizableHandles(){return this.IsTableCell?"s, se, e":"n, ne, s, se, e, w, nw, sw"}setPosition(e,t){const r=this.Component.getProperty(c.a.Top),i=this.Component.getProperty(c.a.Left),n=a.a.Parse(r.GetValue(this.Component,e)),s=a.a.FromPixels(t.Y,n.Type),o=a.a.Parse(i.GetValue(this.Component,e)),l=a.a.FromPixels(t.X,o.Type);n.Equals(s)||r.SetValue(s.ToString(),this.Component,e),o.Equals(l)||i.SetValue(l.ToString(),this.Component,e)}setSize(e,t){const r=this.Component.getProperty(c.a.Width),i=this.Component.getProperty(c.a.Height),n=a.a.Parse(r.GetValue(this.Component,e)),s=a.a.FromPixels(t.Width,n.Type),o=a.a.Parse(i.GetValue(this.Component,e)),l=a.a.FromPixels(t.Height,o.Type);n.Equals(s)||r.SetValue(s.ToString(),this.Component,e),o.Equals(l)||i.SetValue(l.ToString(),this.Component,e)}GetContextMenuCommands(){const e=super.GetContextMenuCommands();return this.IsTableCell||e.push(l.a.BringToFront,l.a.SendToBack),e}CalculateMinSize(){if(this.IsTableCell){return this.ParentItemDesigner.CalculateItemMinSize(this.Component)}return super.CalculateMinSize()}SetTooltipGlyphs(e=!1){if(!this.IsTableCell){this.RemoveOverlappingGlyph();const t=this.GetOverlappingItems();if(t.length>0&&this.AddOverlappingGlyph(this.Component,t),e)for(const e of this.Component.Parent.Children)this.Component!==e&&e.Designer instanceof m&&e.Designer.SetTooltipGlyphs()}}AddOverlappingGlyph(e,t){this.Overlay.SetOverlap(!0,e.Name,t.map(e=>e.Name).join("', '"))}RemoveOverlappingGlyph(){this.Overlay.SetOverlap()}GetOverlappingItems(){const e=this.Component.Parent,t=this.GetBounds(!1),r=[];if(e&&e.Children.length>0)for(const i of e.Children)if(i!=this.Component){const e=i.Designer;e instanceof m&&t.IntersectsWith(e.GetBounds(!1))&&r.push(i)}return r}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(10),n=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class s extends class{constructor(e,t){this.searchStrategy=e,this.sortingStrategy=t,this.searchCircumstancesChanged=new i.b,this.notifySearchCircumstancesChange=()=>{this.searchCircumstancesChanged.next()}}getResultsWithLimit(e,t){return n(this,void 0,void 0,(function*(){const r=yield this.getRankedSearchResults(e,t);return this.buildModel(this.sortingStrategy.sort(r).slice(0,t).map(e=>e.model))}))}Dispose(){}}{buildModel(e){return{searchResults:e,order:this.order}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(4),n=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let s=class extends i.a{constructor(e,t,r){super(),this.displayText=e,this.highlights=t,this.parentPath=r,this.hintText=this.buildHintText()}static getTypeName(){throw new Error("Must be implemented in children")}buildHintText(){return this.parentPath&&this.parentPath.length?this.convertParentPathToHintText()+" -> "+this.displayText:this.displayText}convertParentPathToHintText(){return this.parentPath.reduce((e,t)=>`${e} -> ${t}`)}};s=n([Object(i.e)()],s)},function(e,t,r){"use strict";var i;r.d(t,"a",(function(){return i})),function(e){e[e.Properties=0]="Properties",e[e.Toolbox=1]="Toolbox",e[e.ReportItems=2]="ReportItems",e[e.Commands=3]="Commands"}(i||(i={}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return n}));const i=new class{constructor(){this.addedBinders=[]}addBinder(e,t){if(this.addedBinders.some(t=>t.name===e))throw new Error(`WRD Binder with name ${e} already exists`);if(kendo.data.binders[e])throw new Error(`Kendo Binder with name ${e} already exists`);this.addedBinders.push({name:e,constructor:t})}registerBinders(){for(const e of this.addedBinders)kendo.data.binders[e.name]=e.constructor}};function n(e){return t=>{i.addBinder(e,t)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(258),n=r(0),s=r(1),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends i.a{constructor(e){super(e),e.hasOwnProperty(n.a.NetType)||(e[n.a.NetType]=s.a.TableCell),this.component=null}get RowIndex(){return parseInt(this.PropertyStore[n.a.RowIndex])}set RowIndex(e){this.PropertyStore[n.a.RowIndex]=e}get ColumnIndex(){return parseInt(this.PropertyStore[n.a.ColumnIndex])}set ColumnIndex(e){this.PropertyStore[n.a.ColumnIndex]=e}get RowSpan(){return parseInt(this.PropertyStore[n.a.RowSpan])}set RowSpan(e){this.PropertyStore[n.a.RowSpan]=e}get ColumnSpan(){return parseInt(this.PropertyStore[n.a.ColumnSpan])}set ColumnSpan(e){this.PropertyStore[n.a.ColumnSpan]=e}get Component(){return this.component}DeserializeContent(e){return a(this,void 0,void 0,(function*(){this.PropertyStore[n.a.ReportItem]&&!this.component&&(this.component=yield e.createChildComponent(this.PropertyStore[n.a.ReportItem]))}))}get ReportItem(){return this.component}set ReportItem(e){this.component=e,e?this.PropertyStore[n.a.ReportItem]=e.PropertyStore:delete this.PropertyStore[n.a.ReportItem]}Dispose(){this.ReportItem&&(this.ReportItem.Parent=null,this.ReportItem=null)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var i=r(3),n=r(103),s=r(19),a=r(4),o=r(13),l=r(111),c=r(202),d=r(260),u=r(46),h=r(16),p=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},m=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let g=class extends s.a{constructor(e){super(),this.provider=e,this.undoStack=[],this.index=-1,this.designSurfaceEventEmitter=this.provider.getService(o.b),this.webDesignerEventEmitter=this.provider.getService(o.c),this.UpdateUI=new c.a,this.designSurfaceEventEmitter.on(d.a,()=>{if(-1===this.index){const e=this.provider.getServiceByName(i.a.IDesignerHost);this.PushState(`Report '${e.RootComponent.Name}' loaded`)}}),this.designSurfaceEventEmitter.on(u.b,e=>{const t=this.provider.getServiceByName(i.a.IDesignerHost);if(t&&!t.InTransaction){const t=e.detail.propertyDescriptor,r=t?`Change property '${t.Name}'`:"Change";this.PushState(r)}});this.provider.getService(o.b).on(l.a,e=>{e.detail.TransactionCommitted&&this.PushState(e.detail.TransactionName)})}get UndoAvailable(){return this.index>0}get RedoAvailable(){return this.index<this.undoStack.length-1}PushState(e){this.RedoAvailable&&(this.undoStack=this.undoStack.slice(0,this.index+1));const t=this.getCurrentState();(this.index<0||this.undoStack[this.index].stateJson!==t)&&(this.undoStack.push({name:e,stateJson:t,selection:this.provider.getService(h.a).GetSelectedComponents().map(e=>e.Name)}),this.index++,this.webDesignerEventEmitter.emit(this.UpdateUI))}Undo(){this.UndoAvailable?(this.index--,this.applyCurrentState(),this.webDesignerEventEmitter.emit(this.UpdateUI)):a.b.logInfo("Undo operation not available.")}Redo(){this.RedoAvailable?(this.index++,this.applyCurrentState(),this.webDesignerEventEmitter.emit(this.UpdateUI)):a.b.logInfo("Redo operation not available.")}applyCurrentState(){return m(this,void 0,void 0,(function*(){const e=this.undoStack[this.index],t=this.provider.getService(n.a),r=JSON.parse(e.stateJson);yield t.reload(r,e.selection),t.IsModified=!0}))}getCurrentState(){const e=this.provider.getServiceByName(i.a.IDesignerHost).RootComponent;return JSON.stringify(e.PropertyStore)}};g.getServiceName=()=>"UndoManager",g=p([Object(a.e)()],g)},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(126),n=r(1);class s extends i.a{accept(e){e.VisitDetailSection(this)}canDelete(){return!1}}s.typeName=n.a.DetailSection},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(166),n=r(1);class s extends i.a{accept(e){e.VisitPageFooterSection(this)}}s.typeName=n.a.PageFooterSection},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(1),n=r(0),s=r(350),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends s.a{constructor(e,t,r){super(e,t,r),this.reportSourceParameters=[]}get Parameters(){return this.reportSourceParameters}createChildComponentsFromPropertyStore(){const e=Object.create(null,{createChildComponentsFromPropertyStore:{get:()=>super.createChildComponentsFromPropertyStore}});return a(this,void 0,void 0,(function*(){yield e.createChildComponentsFromPropertyStore.call(this),yield this.createReportSourceParameters()}))}createReportSourceParameters(){return a(this,void 0,void 0,(function*(){const e=this.PropertyStore[n.a.ReportSource];if(e){const t=e[n.a.Parameters];if(t&&0===this.reportSourceParameters.length)for(const e of t){e[n.a.Name]||(e[n.a.Name]=this.namingService.CreateName(e[n.a.NetType]));const t=yield this.createNonChildComponent(e);t&&this.reportSourceParameters.push(t)}}}))}accept(e){e.VisitSubreport(this)}}o.typeName=i.a.SubReport},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(166),n=r(1);class s extends i.a{accept(e){e.VisitPageHeaderSection(this)}}s.typeName=n.a.PageHeaderSection},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(0),n=r(126),s=r(326),a=r(1),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends n.a{constructor(e,t,r){super(e,t,r)}get Title(){return this.PropertyStore[i.a.Title]||""}get TitleStyle(){return this.PropertyStore[i.a.TitleStyle]}get Levels(){return this.Children}createChildComponentsFromPropertyStore(){const e=Object.create(null,{createChildComponentsFromPropertyStore:{get:()=>super.createChildComponentsFromPropertyStore}});return o(this,void 0,void 0,(function*(){if(yield e.createChildComponentsFromPropertyStore.call(this),this.PropertyStore[i.a.Levels])for(const e of this.PropertyStore[i.a.Levels])yield this.createChildComponent(e)}))}addItem(e,t){const r=this.PropertyStore;void 0===r[i.a.Levels]&&(r[i.a.Levels]=[]);const n=r.Items;t?n.push(e):n.splice(0,0,e)}removeItem(e){const t=this.PropertyStore,r=t[i.a.Levels];if(r){const n=r.indexOf(e);n>-1&&(r.splice(n,1),0===r.length&&delete t[i.a.Levels])}}canContain(e){const t=this.InstanceFactory.getInstanceModel(e);return!!(t&&t instanceof s.a)}accept(e){e.VisitTocSection(this)}}l.typeName=a.a.TocSection},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(148);class n{static UpdateParameters(e,t){var r;if(!e)return void t.splice(0,t.length);const n=[];for(const s of e){const e=t.find(e=>e.Name===s.Name);e?n.push(new i.a(s.Name,s.ClientDbType,null===(r=e.Value)||void 0===r?void 0:r.Value)):n.push(new i.a(s.Name,s.ClientDbType))}t.splice(0,t.length);for(const e of n)t.push(e)}static CloneCollection(e){const t=[];if(!e)return t;for(const r of e)t.push(new i.a(r.Name,r.DbType,r.Value));return t}static PrepareDesignTimeParametersObject(e){const t={},r=[];for(const t of e){const e=new i.a(t.Name,t.DbType,null);e.Value=t.Value.Value,r.push(e)}for(const e of r)t[e.Name]=e.Value;return JSON.stringify(t)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i extends kendo.data.ObservableArray{constructor(e){super(e)}every(e){return super.every(e)}filter(e){return super.filter(e)}find(e){return super.find(e)}forEach(e){return super.forEach(e)}indexOf(e){return super.indexOf(e)}map(e){return super.map(e)}push(...e){return super.push(...e)}remove(e){super.remove(e)}shift(){return super.shift()}slice(e,t){return super.slice(e,t)}some(e){return super.some(e)}sort(e){return super.sort(e)}unshift(...e){return super.unshift(...e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(56),n=r(1);class s extends i.a{canContain(e){const t=this.InstanceFactory.getInstanceModel(e);return t&&t instanceof i.a}accept(e){e.VisitPanel(this)}}s.typeName=n.a.Panel},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e="",t="Inline",r="",i=""){this.name=e,this.type=t,this.value=r,this.designTimeValue=i}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r(102),n=r(0),s=r(3),a=r(1),o=r(256),l=r(200),c=r(4),d=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class u extends i.a{constructor(e,t,r,i=!0){super(e,t,r,i),this.AvailableValues||(this.AvailableValues={}),this.Sortings=new o.a(c.b.resolvePropertyStore(this.AvailableValues,n.a.Sortings,()=>[]),this,r),this.Filters=new l.a(c.b.resolvePropertyStore(this.AvailableValues,n.a.Filters,()=>[]),this,r)}get AvailableValues(){return this.PropertyStore[n.a.AvailableValues]}set AvailableValues(e){this.PropertyStore[n.a.AvailableValues]=e}get DataSourceName(){return this.AvailableValues?this.AvailableValues.DataSourceName:null}get CanResolveParentDataContext(){return!1}set DataSourceName(e){const t=this.Provider.getServiceByName(s.a.IDesignerHost);let r;if(t.InTransaction||(r=t.CreateTransaction(`Change property '${n.a.DataSourceName}' of '${this.Name}.AvailableValues'`)),this.raiseComponentChanging(null),e){const t=this.AvailableValues.DataSourceName;this.AvailableValues.DataSourceName=e,this.raiseComponentChanged(null,t,e)}else{const e=this.AvailableValues.DataSourceName;delete this.AvailableValues.DataSourceName,this.raiseComponentChanged(null,e,void 0)}r&&r.Commit()}delete(){const e=this.Parent;super.deleteCollectionComponent(e.ReportParameters,n.a.ReportParameters)}createChildComponentsFromPropertyStore(){const e=Object.create(null,{createChildComponentsFromPropertyStore:{get:()=>super.createChildComponentsFromPropertyStore}});return d(this,void 0,void 0,(function*(){yield e.createChildComponentsFromPropertyStore.call(this),yield this.Sortings.Initialize(),yield this.Filters.Initialize()}))}}u.typeName=a.a.ReportParameter},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(0),n=r(87),s=r(1),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends n.a{constructor(e,t,r,i=!0){super(e,t,r,i),this.categoryGroups=[],this.seriesGroups=[],this.titles=[],this.coordinateSystems=[],this.axes=[],this.series=[]}get Axes(){return this.axes}get CategoryGroups(){return this.categoryGroups}get CoordinateSystems(){return this.coordinateSystems}get PropertyStore(){return super.PropertyStore}get Series(){return this.series}get SeriesGroups(){return this.seriesGroups}get Titles(){return this.titles}accept(e){e.VisitGraph(this)}canContain(e){const t=this.InstanceFactory.getInstanceModel(e);return t&&t instanceof o&&t.canBeContained()}canBeContained(){return!0}createChildComponentsFromPropertyStore(){const e=Object.create(null,{createChildComponentsFromPropertyStore:{get:()=>super.createChildComponentsFromPropertyStore}});return a(this,void 0,void 0,(function*(){yield e.createChildComponentsFromPropertyStore.call(this),yield this.createGroups(),yield this.createCollectionPropertyComponents(i.a.Titles,this.titles),yield this.createCollectionPropertyComponents(i.a.CoordinateSystems,this.coordinateSystems),yield this.createCollectionPropertyComponents(i.a.Axes,this.axes),yield this.createCollectionPropertyComponents(i.a.Series,this.series)}))}createGroups(){return a(this,void 0,void 0,(function*(){yield this.createCollectionPropertyComponents(i.a.CategoryGroups,this.categoryGroups),yield this.createCollectionPropertyComponents(i.a.SeriesGroups,this.seriesGroups)}))}}o.typeName=s.a.Graph},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get String(){return"String"}static get Integer(){return"Integer"}static get Boolean(){return"Boolean"}static get DateTime(){return"DateTime"}static get Float(){return"Float"}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"g",(function(){return l})),r.d(t,"f",(function(){return c})),r.d(t,"d",(function(){return d})),r.d(t,"a",(function(){return u})),r.d(t,"e",(function(){return h})),r.d(t,"c",(function(){return p}));var i=r(300),n=r(9),s=r(4);class a{constructor(){this.arrowSide="left"}getPosition(){const[e]=$(this.selector),t=e.getBoundingClientRect(),r={left:this.calculateLeft(t),top:this.calculateTop(t)};return this.positionArrow(),r}positionArrow(){$("."+n.a.WebDesignerOnboardingExperienceClassName).addClass("onb-arrow-"+this.arrowSide)}removeArrow(){$("."+n.a.WebDesignerOnboardingExperienceClassName).removeClass("onb-arrow-"+this.arrowSide)}createClassLocatorFromClassName(e){return"."+e}calculateLeft(e){const t=this.getParentOffset();return(this.isLeft?e.left-i.b.Width-15:e.right+15)-(null==t?void 0:t.left)}calculateTop(e){const t=this.getParentOffset();return(this.isTop?e.top:e.bottom)-(null==t?void 0:t.top)}getParentOffset(){const[e]=$(this.createClassLocatorFromClassName(n.a.WebDesignerClassName)),t=null==e?void 0:e.getBoundingClientRect();return t||(s.b.logError("The top menu area does not exist, the onboarding window will be moved according to the whole viewport."),null)}}class o extends a{constructor(){var e;super(),this.selector=this.createClassLocatorFromClassName(n.a.WebDesignerCanvasClassName),this.arrowSide="right",this.isTop=!0,this.isLeft=!0;$(this.selector)[0].getBoundingClientRect().left-(null===(e=this.getParentOffset())||void 0===e?void 0:e.left)<i.b.Width&&(this.arrowSide="left",this.isLeft=!1)}}class l extends a{constructor(){super(...arguments),this.selector=".k-tabstrip-items-wrapper"}}class c extends a{constructor(){super(...arguments),this.selector=this.createClassLocatorFromClassName(n.a.WebDesignerPropertiesClassName),this.isTop=!0,this.isLeft=!0,this.arrowSide="right"}}class d extends a{constructor(){super(...arguments),this.selector=".main-menu__wrapper>.main-menu__item>.k-animation-container>ul>li:first-child",this.isTop=!0}}class u extends a{constructor(){super(...arguments),this.selector="[data-action='openAssetManager']",this.isTop=!0}calculateTop(e){return super.calculateTop(e)-5}}class h extends a{constructor(){super(...arguments),this.selector=".top-menu-area__button.-preview",this.arrowSide="top"}calculateLeft(e){return super.calculateLeft(e)-i.b.Width-15}calculateTop(e){return super.calculateTop(e)+23}}class p extends a{constructor(){super(...arguments),this.selector=".twd-global-search-wrapper",this.isLeft=!0,this.arrowSide="top-center"}calculateTop(e){return super.calculateTop(e)+7}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"g",(function(){return o})),r.d(t,"f",(function(){return l})),r.d(t,"d",(function(){return c})),r.d(t,"a",(function(){return d})),r.d(t,"e",(function(){return u})),r.d(t,"c",(function(){return h}));var i=r(9),n=r(130);class s{putOverlay(){var e;this.removeOverlay();for(const t of this.overlaySelectors){const r=null===(e=$(t)[0])||void 0===e?void 0:e.getBoundingClientRect();if(!r)continue;const[s]=$("."+i.a.WebDesignerClassName),a=null==s?void 0:s.getBoundingClientRect(),o=document.createElement("div");o.classList.add("twd-onb-overlay"),o.style.position="absolute",o.style.top=(r.y-a.top).toString()+"px",o.style.left=(r.x-a.left).toString()+"px",o.style.width=r.width.toString()+"px",o.style.height=r.height.toString()+"px",o.style.background="#f7f7f7",o.style.opacity="0.3",o.style.zIndex=(n.f.zIndex+1).toString(),s.append(o)}}removeOverlay(){$(".twd-onb-overlay").remove()}}class a extends s{constructor(){super(...arguments),this.overlaySelectors=["."+i.a.WebDesignerCanvasClassName]}}class o extends s{constructor(){super(...arguments),this.overlaySelectors=[`.${i.a.WebDesignerToolboxTabClassName}.k-active`,".tabs_header-item.k-tabstrip-item.k-active"]}}class l extends s{constructor(){super(...arguments),this.overlaySelectors=["."+i.a.WebDesignerPropertiesClassName]}}class c extends s{constructor(){super(...arguments),this.overlaySelectors=["."+i.a.WebDesignerMainMenuArea,`.${i.a.WebDesignerClassName} .highlight-borders:last`]}}class d extends s{constructor(){super(...arguments),this.overlaySelectors=[`.${i.a.WebDesignerMainMenuArea} [data-action='openAssetManager']`]}}class u extends s{constructor(){super(...arguments),this.overlaySelectors=[`.${i.a.WebDesignerClassName} .-preview-highlight`]}}class h extends s{constructor(){super(...arguments),this.overlaySelectors=[`.${i.a.WebDesignerClassName} .highlight-search-area`]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return b}));var i,n=r(7),s=r(54),a=r(81),o=r(77),l=r(1),c=r(0),d=r(2),u=r(70),h=r(59),p=r(127),m=r(57),g=r(462),f=r(91),v=r(75),y=r(408),S=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},C=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let b=i=class extends a.a{constructor(){super(...arguments),this.otherTypeBackupValue="",this.originalRootPath=[]}beforeInit(){super.beforeInit(),this.setOriginalRootPath(m.a.dataResourceFolder)}getTemplate(){return s.a.Editors.InputEditors.inlineSourcePropertyEditorTemplate}openExtendEditMode(){const e=`${this.LocalizedName} ${this.stringResources.Data}`;this.extendEditPopup=new u.a(this.provider).create(e,{value:this.Value,displayExpressionEditor:!1,readonlyState:this.Readonly}),this.extendEditPopup.component.onPopupUpdateValue((e,t)=>{this.updateValue(t)}),this.extendEditPopup.open()}onOptionSelected(e){const t=this.findSourceTypeById(e.value);this.SourceType=t,this.updateValue(this.Value)}afterInit(){super.afterInit(),this.setEditorState(this.SourceType.Id),this.dataFocusStrategy=new f.c(this.view.element.find(".twd-inline-source-prop-data")),this.typeFocusStrategy=new f.b(this.view.element.find(".twd-inline-source-prop-type"))}getPathFromAssetManager(){this.setPathAndFile(this.Value),this.withAssetManager(e=>C(this,void 0,void 0,(function*(){this.setPathAndFile(e.path),this.updateValue(e.path)})))}setOriginalRootPath(e){this.originalRootPath=this.initialPath=e}get disableButtongroup(){return this.Readonly||this.Disabled}setPathAndFile(e){const t=this.initialPath.length>0&&this.Value?[this.initialPath[0]]:this.originalRootPath,r=y.a.getRootedFolderPathAndFileNameFromRelativePath(t,e);r&&(this.initialPath=r.folderPath,this.initialFile=r.fileName)}withAssetManager(e){const t=new p.a(this.provider).create(null,{assetManagerConfig:v.a.getSelectResourceConfig(this.provider),initialPath:this.initialPath,initialItem:this.initialFile});t.component.onClosing.subscribeOnce(e),t.open()}get isResetVisible(){return!1}switchToExternalFile(){this.typeButtonGroup.setSelected(this.SourceTypeOptionsAsButtonItems.find(e=>e.value===i.defaultNetTypeUri))}switchToInlineData(){this.typeButtonGroup.setSelected(this.SourceTypeOptionsAsButtonItems.find(e=>e.value===l.a.String))}focusType(){this.typeFocusStrategy.focus()}unfocusType(){this.typeFocusStrategy.unfocus()}focusData(){this.dataFocusStrategy.focus()}unfocusData(){this.dataFocusStrategy.unfocus()}get SourceTypeOptions(){return[{Id:i.defaultNetTypeUri,Text:this.stringResources.ExternalFile},{Id:l.a.String,Text:this.stringResources.InlineData}]}get SourceTypeOptionsAsButtonItems(){return this.SourceTypeOptions.map(e=>({value:e.Id,text:e.Text}))}get Expanded(){return this.getByPropertyName(e=>{e.expanded})}set Expanded(e){this.setByPropertyName(e=>{e.expanded},e)}toggleExpandedState(){this.Expanded=!this.Expanded}get SourceType(){return this.getByPropertyName(e=>{e.sourceType})}set SourceType(e){this.setByPropertyName(e=>{e.sourceType},e),this.setEditorState(e.Id)}get SourceTypeAsButtonItem(){const e=this.SourceType;return{value:e.Id,text:e.Text}}get DisplayAssetManagerButton(){return this.SourceType.Id===i.defaultNetTypeUri}get propertyTypeString(){return c.a.Type}initValue(e){var t;const r=null!==(t=null==e?void 0:e.NetType)&&void 0!==t?t:i.defaultNetTypeUri;this.sourceModel=new o.a(r,null==e?void 0:e.Path,null==e?void 0:e.Value),this.SourceType=this.findSourceTypeById(r),super.initValue(this.sourceModel)}prepareValueForPropertyWrapper(e){const t=this.SourceType.Id;return e!==this.sourceModel.Text?this.setTextValue(t,e):t!==this.sourceModel.NetType&&this.switchSourceType(t),this.sourceModel.clone()}setTextValue(e,t){e===l.a.Uri?this.sourceModel.Path=t:this.sourceModel.Value=o.a.EncodeValue(t)}switchSourceType(e){this.sourceModel.NetType=e,e===l.a.Uri?this.switchToExternalFileText():this.switchToInlineDataText()}switchToInlineDataText(){this.sourceModel.Value=this.otherTypeBackupValue,this.otherTypeBackupValue=this.sourceModel.Path,delete this.sourceModel.Path}switchToExternalFileText(){this.sourceModel.Path=this.otherTypeBackupValue,this.otherTypeBackupValue=this.sourceModel.Value,delete this.sourceModel.Value}setValueFromProperty(e){this.SourceType={Id:e.NetType},this.sourceModel=e.clone(),super.setValueFromProperty(e)}getValueForInput(e){return null==e?void 0:e.Text}setEditorState(e){e===i.defaultNetTypeUri?this.State=h.b.Normal:this.State=h.b.Disabled}findSourceTypeById(e){return this.SourceTypeOptions.find(t=>t.Id===e)}};b.defaultNetTypeUri=l.a.Uri,S([Object(d.e)(g.a)],b.prototype,"typeButtonGroup",void 0),b=i=S([Object(d.a)("inline-property-editor"),Object(n.b)("Telerik.WebReportDesigner.DataSourceInlineSourcePropertyEditor")],b)},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(49),n=r(59),s=r(10);class a extends i.a{constructor(){super(...arguments),this.onDropDownListValueChangedObservable=new s.b}beforeInit(){super.beforeInit(),this.DropDownListValue=this.getDropDownListInitialValue(this.dropDownListOptions)}get isResetVisible(){return!!this.getDefaultValueFromPropertyWrapperAndOptions(this.dropDownListOptions)}get dropDownListOptionLabel(){return""}get dataTextFieldName(){return"Name"}get dataValueFieldName(){return"Name"}get Value(){return this.DropDownListValue}get DropDownListValue(){return this.getByPropertyName(e=>{e.dropDownListValue})}set DropDownListValue(e){this.setByPropertyName(e=>{e.dropDownListValue},null!=e?e:this.getDefaultValue(this.dropDownListOptions)),this.onDropDownListValueChangedObservable.next({dropDownListValue:this.DropDownListValue}),this.resetManager.checkAndUpdateReset()}get IsDropDownDisabled(){return this.getByPropertyName(e=>{e.isDropDownDisabled})}set IsDropDownDisabled(e){this.setByPropertyName(e=>{e.isDropDownDisabled},e)}updateValue(e){this.DropDownListValue=e}refreshValue(){this.DropDownListValue=this.getPropertyWrapperValue()}updateStateUi(){this.IsDropDownDisabled=!!(this.State&n.b.Disabled)||!!(this.State&n.b.ReadOnly)}dropDownListChanged(e){this.updatePropertyWrapperValue(this.DropDownListValue),this.resetManager.checkAndUpdateReset()}getDropDownListInitialValue(e){var t;return null!==(t=this.tryGetExisitingInitialValue())&&void 0!==t?t:this.getDefaultValue(e,!0)}tryGetExisitingInitialValue(){return this.getPropertyWrapperValue()}getDefaultValue(e,t=!1){if(e&&e.length){const r=this.getDefaultValueFromPropertyWrapperAndOptions(e);return r||(t&&this.updatePropertyWrapperValue(e[0].Name),e[0].Name)}return""}getDefaultValueFromPropertyWrapperAndOptions(e){const t=this.propertyWrapper.getDefaultValue();if(e.find(e=>e.Name===t))return t}getTemplate(){return this.templates.Editors.DropDownListEditors.dropDownListEditorTemplate}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(232),n=r(7),s=r(1),a=r(2),o=r(3),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let c=class extends i.a{get dropDownListOptions(){return this.provider.getServiceByName(o.a.ITypeDescriptorRepository).GetPropertyTypeDescriptor(this.propertyWrapper.Type).GetEnumValues()}};c=l([Object(a.a)("enum-editor"),Object(n.b)(s.a.Enum,s.a.Type,s.a.LineStyle,"Telerik.Reporting.Design.GraphItemPositionEditor"),Object(n.b)(s.a.CsvEscapeFormat,s.a.GraphScaleCrossAxisPosition)],c)},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(316);class n extends i.a{}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(50),n=r(5),s=r(62),a=r(3),o=r(2),l=r(7),c=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let d=class extends i.c{constructor(){super(...arguments),this.disposeChildEditors=()=>{var e,t;null===(e=this.unitsDropDownList)||void 0===e||e.destroy(),this.unitsDropDownList=void 0,null===(t=this.$editorsPlaceholder)||void 0===t||t.find(".editor__dropdown").remove(),super.disposeChildEditors()}}get propertiesOrder(){return s.a.Padding}get classNames(){return`-${this.editorDepth} -expandable -padding`}get unitTemplate(){return'<input class="editor__dropdown units" type="text" />'}toggleResetButton(e){this.resetManager.IsResetDirty=e}expandChildEditors(){this.collapseChildEditors();const e=this.children[0].propertyWrapper.GetValue();this.unitTypes=this.getUnitTypes(),this.unit=n.a.Parse(e);for(const e of this.children){const t=e.builder.createInstance(this.$editorsPlaceholder,e.propertyWrapper,this.provider,this.childEditorsDepth);t.setUnitType(this.unit.Type),this.childEditors.push(t)}this.initUnit(),this.resetManager.checkAndUpdateReset()}resetToDefaultValueInternal(){this.childEditors.forEach(e=>e.resetToDefaultValue()),this.unit=this.getDefaultUnitValue(),this.unitsDropDownList.value(this.unit.Type)}determineIfResetIsDirty(){return this.childEditors.some(e=>e.propertyWrapper.ShouldSerializeValue())||this.children&&this.children.length&&this.unit&&!this.unit.Equals(this.getDefaultUnitValue())}get isResetVisible(){return!1}getUnitTypes(){return this.provider.getServiceByName(a.a.ITypeDescriptorRepository).GetPropertyTypeDescriptor("UnitType").GetEnumValues()}initUnit(){this.$editorsPlaceholder.append(this.unitTemplate),this.unitsDropDownList=this.$editorsPlaceholder.find(".editor__dropdown").kendoDropDownList({autoWidth:!0,dataSource:{data:this.unitTypes},change:e=>{const t=e.sender.value(),r=this.unit.ToUnit(t);this.unit=r,this.updateValues(e),this.resetManager.checkAndUpdateReset()},value:this.unit.Type,dataTextField:"Description",dataValueField:"Description"}).data("kendoDropDownList")}updateValues(e){this.childEditors.forEach(t=>t.updateUnitType(e,this.unit.Type))}getDefaultUnitValue(){return n.a.Parse(this.children[0].propertyWrapper.getDefaultValue())}};d=c([Object(o.a)("padding-editor"),Object(l.b)("Padding")],d)},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{}i.ActionTargetCollection="ActionTargetCollection",i.AnchoringStyles="AnchoringStyles",i.AngularAxisLabelOrientation="AngularAxisLabelOrientation",i.AreaSeries="AreaSeries",i.ArrowShape="ArrowShape",i.AxisPositionMode="AxisPositionMode",i.BackgroundImage="BackgroundImage",i.BackgroundRepeat="BackgroundRepeat",i.Barcode="Barcode",i.BarDataPointLabelAlignment="BarDataPointLabelAlignment",i.BarGraphMapSeries="BarGraphMapSeries",i.BarSeries="BarSeries",i.Binding="Binding",i.BindingCollection="BindingCollection",i.BingLocationProvider="BingLocationProvider",i.BingMapsTileProvider="BingMapsTileProvider",i.BorderColor="BorderColor",i.BorderStyle="BorderStyle",i.BorderType="BorderType",i.BorderWidth="BorderWidth",i.CalculatedField="CalculatedField",i.CalculatedFieldCollection="CalculatedFieldCollection",i.CartesianCoordinateSystem="CartesianCoordinateSystem",i.CategoryScale="CategoryScale",i.CategoryScaleCrossAxisPosition="CategoryScaleCrossAxisPosition",i.CategoryScaleCrossAxisPositionCollection="CategoryScaleCrossAxisPositionCollection",i.CheckBox="CheckBox",i.CodabarEncoder="CodabarEncoder",i.Code11Encoder="Code11Encoder",i.Code128AEncoder="Code128AEncoder",i.Code128BEncoder="Code128BEncoder",i.Code128CEncoder="Code128CEncoder",i.Code128Encoder="Code128Encoder",i.Code25Encoder="Code25Encoder",i.Code25InterleavedEncoder="Code25InterleavedEncoder",i.Code25StandardEncoder="Code25StandardEncoder",i.Code39Encoder="Code39Encoder",i.Code39ExtendedEncoder="Code39ExtendedEncoder",i.Code93Encoder="Code93Encoder",i.Code93ExtendedEncoder="Code93ExtendedEncoder",i.CodeMode="CodeMode",i.CodeMSIEncoder="CodeMSIEncoder",i.ColorPalette="ColorPalette",i.ColumnMapSeries="ColumnMapSeries",i.ConditionalFormatting="ConditionalFormatting",i.CrossSectionItem="CrossSectionItem",i.CrossShape="CrossShape",i.Crosstab="Crosstab",i.CsvDataSource="CsvDataSource",i.CsvEscapeFormat="CsvEscapeFormat",i.CustomAction="CustomAction",i.CustomValueObject="CustomValueObject",i.DataColumn="DataColumn",i.DataColumnCollection="DataColumnCollection",i.DataPointMarkerType="DataPointMarkerType",i.DateTimeScale="DateTimeScale",i.DateTimeScaleCrossAxisPosition="DateTimeScaleCrossAxisPosition",i.DateTimeScaleCrossAxisPositionCollection="DateTimeScaleCrossAxisPositionCollection",i.DateTimeScaleUnits="DateTimeScaleUnits",i.DbType="DbType",i.DetailSection="DetailSection",i.DistanceUnitType="DistanceUnitType",i.DockingStyle="DockingStyle",i.EAN128AEncoder="EAN128AEncoder",i.EAN128BEncoder="EAN128BEncoder",i.EAN128CEncoder="EAN128CEncoder",i.EAN128Encoder="EAN128Encoder",i.EAN13Encoder="EAN13Encoder",i.EAN8Encoder="EAN8Encoder",i.ECIMode="ECIMode",i.EllipseShape="EllipseShape",i.Encoder="Encoder",i.EncodingMode="EncodingMode",i.ErrorCorrectionLevel="ErrorCorrectionLevel",i.ExternalStyleSheet="ExternalStyleSheet",i.ExternalStyleSheetCollection="ExternalStyleSheetCollection",i.Filter="Filter",i.FilterCollection="FilterCollection",i.FilterOperator="FilterOperator",i.FNC1Mode="FNC1Mode",i.Font="Font",i.FormattingRule="FormattingRule",i.GenericTileProvider="GenericTileProvider",i.GeoLocationMapGroup="GeoLocationMapGroup",i.GeoLocationMapGroupCollection="GeoLocationMapGroupCollection",i.GradientPalette="GradientPalette",i.Graph="Graph",i.GraphAxis="GraphAxis",i.GraphAxisLabelPlacement="GraphAxisLabelPlacement",i.GraphAxisTickMarkDisplayType="GraphAxisTickMarkDisplayType",i.GraphAxisTitlePlacement="GraphAxisTitlePlacement",i.GraphCoordinateSystem="GraphCoordinateSystem",i.GraphCoordinateSystemCollection="GraphCoordinateSystemCollection",i.GraphGroup="GraphGroup",i.GraphGroupCollection="GraphGroupCollection",i.GraphItemPosition="GraphItemPosition",i.GraphLegend="GraphLegend",i.GraphMapSeries="GraphMapSeries",i.GraphScaleCrossAxisPosition="GraphScaleCrossAxisPosition",i.GraphSeries="GraphSeries",i.GraphSeriesArrangeMode="GraphSeriesArrangeMode",i.GraphSeriesCollection="GraphSeriesCollection",i.GraphTitle="GraphTitle",i.GraphTitleCollection="GraphTitleCollection",i.GraticuleLine="GraticuleLine",i.Group="Group",i.GroupCollection="GroupCollection",i.GroupFooterSection="GroupFooterSection",i.GroupHeaderSection="GroupHeaderSection",i.Grouping="Grouping",i.GroupingCollection="GroupingCollection",i.GroupKeepTogether="GroupKeepTogether",i.HorizontalAlign="HorizontalAlign",i.HtmlTextBox="HtmlTextBox",i.IAction="IAction",i.IActionTarget="IActionTarget",i.IColorPalette="IColorPalette",i.IExtent="IExtent",i.ILocationProvider="ILocationProvider",i.ImagerySet="ImagerySet",i.ImageSizeMode="ImageSizeMode",i.IProjection="IProjection",i.ISelector="ISelector",i.ITileProvider="ITileProvider",i.JsonDataSource="JsonDataSource",i.LegendItem="LegendItem",i.LineDataPointLabelAlignment="LineDataPointLabelAlignment",i.LineDirection="LineDirection",i.LineSeries="LineSeries",i.LineShape="LineShape",i.LineStyle="LineStyle",i.LineTypes="LineTypes",i.List="List",i.LogarithmicScale="LogarithmicScale",i.LogarithmicScaleCrossAxisPosition="LogarithmicScaleCrossAxisPosition",i.LogarithmicScaleCrossAxisPositionCollection="LogarithmicScaleCrossAxisPositionCollection",i.Map="Map",i.MapGroup="MapGroup",i.MapGroupBase="MapGroupBase",i.MapGroupBaseCollection="MapGroupBaseCollection",i.MapGroupCollection="MapGroupCollection",i.MapLegend="MapLegend",i.MapLegendCollection="MapLegendCollection",i.MapQuestLocationProvider="MapQuestLocationProvider",i.MapQuestOpenAPILocationProvider="MapQuestOpenAPILocationProvider",i.MapScaleLegend="MapScaleLegend",i.MapSeriesBase="MapSeriesBase",i.MapSeriesBaseCollection="MapSeriesBaseCollection",i.MapTitle="MapTitle",i.MapTitleCollection="MapTitleCollection",i.MarginsU="MarginsU",i.MercatorProjection="MercatorProjection",i.MergedDataPoints="MergedDataPoints",i.MergeMode="MergeMode",i.MonochromaticPalette="MonochromaticPalette",i.NavigateToBookmarkAction="NavigateToBookmarkAction",i.NavigateToReportAction="NavigateToReportAction",i.NavigateToUrlAction="NavigateToUrlAction",i.NumericalScale="NumericalScale",i.NumericalScaleCrossAxisPosition="NumericalScaleCrossAxisPosition",i.NumericalScaleCrossAxisPositionCollection="NumericalScaleCrossAxisPositionCollection",i.OhlcMarkerType="OhlcMarkerType",i.OhlcMarks="OhlcMarks",i.OhlcSeries="OhlcSeries",i.Padding="Padding",i.PageBreak="PageBreak",i.PageFooterSection="PageFooterSection",i.PageHeaderSection="PageHeaderSection",i.PageNumberingStyle="PageNumberingStyle",i.PageSettings="PageSettings",i.Panel="Panel",i.PaperKind="PaperKind",i.Parameter="Parameter",i.ParameterCollection="ParameterCollection",i.PDF417Encoder="PDF417Encoder",i.PictureBox="PictureBox",i.PictureWatermark="PictureWatermark",i.BackgroundOverlay="BackgroundOverlay",i.PieGraphMapSeries="PieGraphMapSeries",i.PieMapSeries="PieMapSeries",i.PointMapSeries="PointMapSeries",i.PointU="PointU",i.PolarCoordinateSystem="PolarCoordinateSystem",i.PolygonShape="PolygonShape",i.PostnetEncoder="PostnetEncoder",i.Product1DEncoder="Product1DEncoder",i.QRCodeEncoder="QRCodeEncoder",i.RadialGauge="RadialGauge",i.RadialGaugeNeedle="RadialGaugeNeedle",i.RadialGaugeRange="RadialGaugeRange",i.RadialGaugeTicks="RadialGaugeTicks",i.RadialGaugeLabels="RadialGaugeLabels",i.LinearGauge="LinearGauge",i.LinearGaugeIndicator="LinearGaugeIndicator",i.LinearGaugeRange="LinearGaugeRange",i.LinearGaugeTicks="LinearGaugeTicks",i.LinearGaugeLabels="LinearGaugeLabels",i.LinearGaugeScale="LinearGaugeScale",i.RangeGroupings="RangeGroupings",i.Report="Report",i.ReportBook="ReportBook",i.ReportFooterSection="ReportFooterSection",i.ReportHeaderSection="ReportHeaderSection",i.ReportItemBase="ReportItemBase",i.ReportParameter="ReportParameter",i.ReportParameterAvailableValues="ReportParameterAvailableValues",i.ReportParameterCollection="ReportParameterCollection",i.ReportParameterType="ReportParameterType",i.ReportSource="ReportSource",i.ResourceKind="ResourceKind",i.Scale="Scale",i.SelectorCollection="SelectorCollection",i.Shape="Shape",i.ShapeBase="ShapeBase",i.ShapeMapGroup="ShapeMapGroup",i.ShapeMapGroupCollection="ShapeMapGroupCollection",i.ShapeMapSeries="ShapeMapSeries",i.SimpleType="SimpleType",i.SizeU="SizeU",i.SortDirection="SortDirection",i.Sorting="Sorting",i.SortingAction="SortingAction",i.SortingCollection="SortingCollection",i.SpatialDataSourceTypeBase="SpatialDataSourceTypeBase",i.SqlDataSource="SqlDataSource",i.SqlDataSourceCommandType="SqlDataSourceCommandType",i.SqlDataSourceParameter="SqlDataSourceParameter",i.SqlDataSourceParameterCollection="SqlDataSourceParameterCollection",i.StarShape="StarShape",i.Style="Style",i.StyleRule="StyleRule",i.StyleSheet="StyleSheet",i.SubReport="SubReport",i.SwissQRCodeEncoder="SwissQRCodeEncoder",i.Table="Table",i.TableGroup="TableGroup",i.TextBox="TextBox",i.TextWatermark="TextWatermark",i.ThresholdMode="ThresholdMode",i.TocLevel="TocLevel",i.TocLevelCollection="TocLevelCollection",i.TocPosition="TocPosition",i.TocSection="TocSection",i.ToggleVisibilityAction="ToggleVisibilityAction",i.ToolTip="ToolTip",i.Type="Type",i.Unit="Unit",i.UnitType="UnitType",i.UPCAEncoder="UPCAEncoder",i.UPCEEncoder="UPCEEncoder",i.UPCSupplement2Encoder="UPCSupplement2Encoder",i.UPCSupplement5Encoder="UPCSupplement5Encoder",i.UriReportSource="UriReportSource",i.UrlTarget="UrlTarget",i.VerticalAlign="VerticalAlign",i.Watermark="Watermark",i.WatermarkCollection="WatermarkCollection",i.WatermarkOrientation="WatermarkOrientation",i.WatermarkPosition="WatermarkPosition",i.WatermarkSizeMode="WatermarkSizeMode",i.WebServiceDataSource="WebServiceDataSource",i.XmlReportSource="XmlReportSource"},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(101),n=r(40),s=r(15),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends i.a{constructor(e,t,r,i){super(e,s.a,t,i),this.ParentGroup=r}init(e){}Initialize(e=null){return a(this,void 0,void 0,(function*(){const t=this.Provider.getService(n.a);for(const r of this.propertyStore){const i=new s.a(r,this.parent,this.Provider,this.ParentGroup);i.Name?t.RegisterName(i.Name):e&&(i.Name=t.CreateName(e)),this.items.push(i)}for(let e=0;e<this.items.length;e++){const t=this.items[e];yield t.Initialize()}}))}Add(e){super.Add(e),e.SetParentGroup(this.ParentGroup)}AddRange(e){super.AddRange(e);for(const t of e)t.SetParentGroup(this.ParentGroup)}Insert(e,t){super.Insert(e,t),t.SetParentGroup(this.ParentGroup)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(120),n=r(35),s=r(5),a=r(45),o=r(20),l=r(23);class c{constructor(e,t){this.location=e,this.size=t}static get Empty(){return new c(new i.a(s.a.Zero,s.a.Zero),new n.a(s.a.Zero,s.a.Zero))}get X(){return this.location.X}get Y(){return this.location.Y}get Width(){return this.size.Width}get Height(){return this.size.Height}get Location(){return this.location}get Size(){return this.size}get Left(){return this.location.X}get Top(){return this.location.Y}get Right(){return new s.a(this.location.X.ToPixels()+this.size.Width.ToPixels())}get Bottom(){return new s.a(this.location.Y.ToPixels()+this.size.Height.ToPixels())}ToRectangleF(){return new a.a(new o.a(this.Left.ToPixels(),this.Top.ToPixels()),new l.a(this.Width.ToPixels(),this.Height.ToPixels()))}Equals(e){return this.Location.Equals(e.Location)&&this.Size.Equals(e.Size)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(586),n=r(19),s=r(12),a=r(587),o=r(4),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let d=class extends n.a{constructor(e){super(),this.provider=e,this.initStorage()}initStorage(){const e=new a.a;navigator.clipboard?this.storage=(new i.a).AddFallbackStorage(e):(o.b.logWarning("Clipboard is not supported in your browser. Falling back to local field storage."),this.storage=e)}AddComponents(e){return c(this,void 0,void 0,(function*(){const t=[];return e.forEach(e=>{t.push(e.PropertyStore)}),this.storage.Add(JSON.stringify(t))}))}GetPropertyStores(){return c(this,void 0,void 0,(function*(){let e=null;try{e=yield this.storage.Get()}catch(e){this.provider.getService(s.a).error("Could not access the clipboard.",e)}if(e){let t=[];try{if(t=JSON.parse(e),!Array.isArray(t))throw new Error}catch(e){o.b.logInfo("Cannot parse clipboard data to JSON.")}return t}return[]}))}};d.getServiceName=()=>"ClipboardService",d=l([Object(o.e)()],d)},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(153),n=r(72);class s{constructor(e,t,r="",n){this.name=e,this.dataType=t,this.aggregateFunction=r,this.id=n,this.id=null!=n?n:i.a.generate(),this.aggregateFunction=r.replace("()","")}get ExpressionBody(){const e=n.a.getDataFieldIdentifier(this.name);return n.a.getExpressionBody(e,this.aggregateFunction)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(380),n=r(54);class s extends i.a{constructor(e,t,r,i,n){super(e,t,r,i,n)}get innerTemplate(){return n.a.Editors.Wizards.Embedded.CategoryItems.numericTextCategoryItem}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a}));var i=r(1);const n=new class{get hasCopiedStylePropertyStore(){return!!this.copiedStylePropertyStore}copyStylePropertyStore(e){this.copiedStylePropertyStore=e.PropertyStore.Style}pasteStylePropertyStore(e,t,r){s(e,t,r,e=>e.SetValue(this.copiedStylePropertyStore))}};function s(e,t,r,n){n(r.CreateMergeableWrappers(e,null).find(e=>e.Name===i.a.Style)),e.forEach(e=>e.Designer.Redraw(!0,void 0)),t.ReapplySelection()}function a(e,t,r){s(e,t,r,e=>e.ResetValue())}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e){this.component=e}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t){this.Success=e,this.Content=t}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(39),n=r(1);class s extends i.a{}s.typeName=n.a.MapGroup},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(1),n=r(87);class s extends n.a{get CanResolveParentDataContext(){return!0}}s.typeName=i.a.Gauge},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(0),n=r(3);class s{constructor(e,t,r){this.propertySchema=e,this.name=e.Name,this.provider=t,this.setValueCallback=r}get Name(){return this.name}get Type(){return this.propertySchema.Type}get Description(){return this.propertySchema.Description}get EditorType(){return this.propertySchema.WebDesignerEditor||this.propertySchema.Editor||this.propertySchema.Type}get Category(){return this.propertySchema.Category}get Mergeable(){return this.propertySchema.Mergeable||!1}get Browsable(){return!this.propertySchema.hasOwnProperty("Browsable")||this.propertySchema.Browsable}get BindingScope(){const e="BindingScope";return this.propertySchema.hasOwnProperty(e)?this.propertySchema[e]:"NotSet"}get ReadOnly(){return this.propertySchema.ReadOnly||!1}get InstanceTypes(){return this.propertySchema.InstanceTypes?this.propertySchema.InstanceTypes.split(";"):[]}get UseParentValue(){const e=this.propertySchema[i.a.ReportProperty];return e&&e[i.a.UseParentValue]}get NotifyParentProperty(){return this.propertySchema[i.a.NotifyParentProperty]}get DefaultValue(){let e;const t=this.propertySchema[i.a.ReportProperty];return e=t?t[i.a.DefaultValue]:this.propertySchema[i.a.DefaultValue],"null"!==e&&"Null"!==e||(e=null),e}set SetValueCallback(e){this.setValueCallback=e}GetValue(e,t){const r=t[this.name];return void 0===r?this.getShortcutPropertyValue(t):r}SetValue(e,t,r){let i=r[this.name];this.CanCallSetValueCallback(t,r)&&this.setValueCallback(t,this,i,e),t.raiseComponentChanging(this),r[this.name]=e,t.raiseComponentChanged(this,i,e)}CanCallSetValueCallback(e,t){return this.setValueCallback&&e.PropertyStore===t}ResetValue(e,t){e.raiseComponentChanging(this);const r=t[this.name];delete t[this.name],e.raiseComponentChanged(this,r,null)}ShouldSerializeValue(e){return void 0!==e[this.name]}GetChildProperties(e=null){const t=this.provider.getServiceByName(n.a.ITypeDescriptorRepository),r=e||this.propertySchema.Type,i=t.GetPropertyTypeDescriptor(r);return i?i.GetProperties():[]}GetChildProperty(e){return this.GetChildProperties().find(t=>t.Name===e)}getShortcutPropertyValue(e){const t=this.propertySchema[i.a.ReportProperty];if(t&&t[i.a.Parent])return e[i.a.Default]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(2),n=r(7),s=r(134),a=r(416),o=r(75),l=r(27),c=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let d=class extends s.b{createUriResolver(){return a.a.createReportUriResolver(this.provider)}getAssetManagerConfig(){return o.a.getSelectReportConfig(this.provider)}getAssetsManagerWindowTitle(){return l.a.String(this.stringResources.SelectItem,{item:this.stringResources.Report})}};d=c([Object(i.a)("uri-report-source-editor"),Object(n.a)()],d)},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(299),n=r(1);class s{static convertToParametersWithDesignTimeValues(e,t){var r;const n=[];if(!e)return n;for(const t of e)n.push(new i.b(t.Name,t.DataType,null===(r=t.Value)||void 0===r?void 0:r.Value));return s.fillDesignTimeParametersValues(n,t),n}static getRawParameters(e){const t=[];for(const r of e){const e={Value:r.value,NetType:n.a.String};t.push(new i.a(r.name,r.dataType,e))}return t}static getRawDesignTimeParametersForPreview(e){const t=[];for(const r of e){const e={Value:r.designTimeValue,NetType:n.a.String};t.push(new i.a(r.name,r.dataType,e))}return t}static getRawDesignTimeParametersAsJson(e){const t={};for(const r of e)r.designTimeValue&&(t[r.name]=r.designTimeValue);return JSON.stringify(t)}static getRawDesignTimeParametersFromDataMember(e){const t={};for(const r of e)r.designTimeValue&&(t[r.name]=r.designTimeValue);return JSON.stringify(t)}static fillDesignTimeParametersValues(e,t){if(!t)return;const r=JSON.parse(t);if(r)for(const t of e)r[t.name]&&(t.designTimeValue=r[t.name])}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return p})),r.d(t,"c",(function(){return m})),r.d(t,"b",(function(){return g}));var i=r(73),n=r(65),s=r(0),a=r(3),o=r(95),l=r(22),c=r(12),d=r(209),u=r(751),h=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class p extends d.a{constructor(e,t,r,i){super(e,t,r,i),this.selectedComponent=r,this.tableDesigner=this.selectedComponent.Parent.Designer,this.tableLayout=this.tableDesigner.TableLayout}get includeRowItems(){return!0}get includeColumnItems(){return!0}get includeMergeSplit(){return!0}addMenuItemsCore(){const e=Object.create(null,{addMenuItemsCore:{get:()=>super.addMenuItemsCore}});return h(this,void 0,void 0,(function*(){yield e.addMenuItemsCore.call(this);const t=this.tableDesigner.GetCell(this.selectedComponent);if(t){const e=[];this.AddCellContextMenuItems(e,t),e.length&&(e[0].ClassName="-border-top",this.menuItems.push(...e))}}))}AddCellContextMenuItems(e,t){this.AddGridItems(e,this.includeRowItems,this.includeColumnItems,this.includeMergeSplit),this.AddLayoutItems(e),this.AddGroupItems(e),this.AddTotalItems(e,t)}AddGridItems(e,t,r,i){if(r){const t={Name:"Insert Column",Title:this.sr.InsertColumn,SubMenu:"initSubMenu",Children:[]};e.push(t);const r=this.tableLayout.CanInsertColumnBeforeOutsideGroup(),i=this.tableLayout.CanInsertColumnAfterOutsideGroup();r||i?(t.Children.push({Name:t.Name+">Inside Group Left",Title:this.sr.InsertColumnInsideGroupLeft,Action:()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.InsertColumn(l.a.Before,o.a.Inside)}))}),t.Children.push({Name:t.Name+">Inside Group Right",Title:this.sr.InsertColumnInsideGroupRight,Action:()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.InsertColumn(l.a.After,o.a.Inside)}))}),t.Children.push({Name:t.Name+">Outside Group Left",Title:this.sr.InsertColumnOutsideGroupLeft,ClassName:r?"":"k-disabled",Action:()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.InsertColumn(l.a.Before,o.a.Outside)}))}),t.Children.push({Name:t.Name+">Outside Group Right",Title:this.sr.InsertColumnOutsideGroupRight,ClassName:i?"":"k-disabled",Action:()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.InsertColumn(l.a.After,o.a.Outside)}))})):(t.Children.push({Name:t.Name+">Left",Title:this.sr.InsertColumnLeft,Action:()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.InsertColumn(l.a.Before,o.a.Inside)}))}),t.Children.push({Name:t.Name+">Right",Title:this.sr.InsertColumnRight,Action:()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.InsertColumn(l.a.After,o.a.Inside)}))}))}if(t){const t={Name:"Insert Row",Title:this.sr.InsertRow,SubMenu:"initSubMenu",Children:[]};e.push(t);const r=this.tableLayout.CanInsertRowBeforeOutsideGroup(),i=this.tableLayout.CanInsertRowAfterOutsideGroup();r||i?(t.Children.push({Name:t.Name+">Inside Group Above",Title:this.sr.InsertRowInsideGroupAbove,Action:()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.InsertRow(l.a.Before,o.a.Inside)}))}),t.Children.push({Name:t.Name+">Inside Group Below",Title:this.sr.InsertRowInsideGroupBelow,Action:()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.InsertRow(l.a.After,o.a.Inside)}))}),t.Children.push({Name:t.Name+">Outside Group Above",Title:this.sr.InsertRowOutsideGroupAbove,ClassName:r?"":"k-disabled",Action:()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.InsertRow(l.a.Before,o.a.Outside)}))}),t.Children.push({Name:t.Name+">Outside Group Below",Title:this.sr.InsertRowOutsideGroupBelow,ClassName:i?"":"k-disabled",Action:()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.InsertRow(l.a.After,o.a.Outside)}))})):(t.Children.push({Name:t.Name+">Above",Title:this.sr.InsertRowAbove,Action:()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.InsertRow(l.a.Before,o.a.Inside)}))}),t.Children.push({Name:t.Name+">Below",Title:this.sr.InsertRowBelow,Action:()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.InsertRow(l.a.After,o.a.Inside)}))}))}r&&e.push({Name:"Delete Columns",Title:this.sr.DeleteColumns,Action:()=>{this.tableLayout.DeleteColumns(!0,!0)}}),t&&e.push({Name:"Delete Rows",Title:this.sr.DeleteRows,Action:()=>{this.tableLayout.DeleteRows(!0,!0)}}),i&&this.tableLayout.CanSplitSelectedCells()&&e.push({Name:"Split Cells",Title:this.sr.SplitCells,Action:()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.SplitSelectedCells()}))})}AddLayoutItems(e){e.push({Name:"Rotate Layout",Title:this.sr.RotateLayout,Action:()=>{this.tableLayout.RotateLayout()}})}AddGroupItems(e){const t=null!=this.tableLayout.GetSingleSelectedDynamicRowGroup(),r=null!=this.tableLayout.GetSingleSelectedDynamicColumnGroup(),i=null!=this.tableLayout.GetNewRowGroupReferenceGroup(),n=null!=this.tableLayout.GetNewColumnGroupReferenceGroup();if(i||n){const t={Name:"Add Group",Title:this.sr.AddGroup,SubMenu:"initSubMenu",Children:[],ClassName:"-border-top"};e.push(t),this.InitAddGroupDropDownMenu(t,i,n)}if(r){const t={Name:"Column Group",Title:this.sr.ColumnGroup,SubMenu:"initSubMenu",Children:[]};e.push(t),t.Children.push({Name:t.Name+">Delete Group Only",Title:this.sr.ColumnGroupDeleteGroupOnly,Action:()=>{this.tableLayout.DeleteColumnGroup(!0,!1)}}),t.Children.push({Name:t.Name+">Delete Group and Related Columns",Title:this.sr.ColumnGroupDeleteGroupAndColumns,Action:()=>{this.tableLayout.DeleteColumnGroup(!0,!0)}})}if(t){const t={Name:"Row Group",Title:this.sr.RowGroup,SubMenu:"initSubMenu",Children:[]};e.push(t),t.Children.push({Name:t.Name+">Delete Group Only",Title:this.sr.RowGroupDeleteGroupOnly,Action:()=>{this.tableLayout.DeleteRowGroup(!0,!1)}}),t.Children.push({Name:t.Name+">Delete Group and Related Columns",Title:this.sr.RowGroupDeleteGroupAndRows,Action:()=>{this.tableLayout.DeleteRowGroup(!0,!0)}})}}openPopup(e=!1){return h(this,void 0,void 0,(function*(){$("body").find(".targetHidden").length||$("body").append(' <input class="targetHidden" type="hidden" />'),this.el=$("body").find(".targetHidden"),this.popup=new u.a(this.el,this.provider,this.tableDesigner,e),yield this.popup.openPopup()}))}ExecuteInTransaction(e,t){return h(this,void 0,void 0,(function*(){const r=this.provider.getServiceByName(a.a.IDesignerHost);let i=null;r.InTransaction||(i=r.CreateTransaction(e));try{yield t(),null==i||i.Commit()}catch(t){null==i||i.Rollback();this.provider.getService(c.a).error(`Could not complete operation: ${e}.`,t)}}))}InitAddGroupDropDownMenu(e,t,r){if(r){const t={Name:e.Name+">Column Group",Title:this.sr.AddGroupColumnGroup,ClassName:"k-disabled -border-bottom -opaque -bold"};e.Children.push(t),e.Children.push({Name:t.Name+"Parent Group",Title:this.sr.AddGroupParentGroup,Action:()=>h(this,void 0,void 0,(function*(){yield this.openPopup(),this.el.off(n.a.PopupUpdateValue).on(n.a.PopupUpdateValue,(e,t)=>h(this,void 0,void 0,(function*(){this.popup=null;const e=t.Expression.map(e=>new i.a({[s.a.Expression]:e},null,this.tableDesigner.Provider));this.ExecuteInTransaction("Insert outer column group",()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.InsertOuterColumnGroup("ColumnGroup",e,t.AddHeader,t.AddFooter,!0)})))})))}))}),e.Children.push({Name:t.Name+"Child Group",Title:this.sr.AddGroupChildGroup,ClassName:this.tableLayout.CanAddInnerColumnGroup()?"":"k-disabled",Action:()=>h(this,void 0,void 0,(function*(){yield this.openPopup(),this.el.off(n.a.PopupUpdateValue).on(n.a.PopupUpdateValue,(e,t)=>h(this,void 0,void 0,(function*(){this.popup=null;const e=t.Expression.map(e=>new i.a({[s.a.Expression]:e},null,this.tableDesigner.Provider));this.ExecuteInTransaction("Insert inner column group",()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.InsertInnerColumnGroup("ColumnGroup",e,t.AddHeader,t.AddFooter,!0)})))})))}))}),e.Children.push({Name:t.Name+"Adjacent Left",Title:this.sr.AddGroupAdjacentLeft,Action:()=>h(this,void 0,void 0,(function*(){yield this.openPopup(),this.el.off(n.a.PopupUpdateValue).on(n.a.PopupUpdateValue,(e,t)=>h(this,void 0,void 0,(function*(){this.popup=null;let e=[];t.GroupBy?e=t.Expression.map(e=>new i.a({[s.a.Expression]:e},null,this.tableDesigner.Provider)):e.push(new i.a({},null,this.tableDesigner.Provider)),this.ExecuteInTransaction("Insert adjacent left column group",()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.InsertAdjacentColumnGroup(l.a.Before,"ColumnGroup",e,!0)})))})))}))}),e.Children.push({Name:t.Name+"Adjacent Right",Title:this.sr.AddGroupAdjacentRight,Action:()=>h(this,void 0,void 0,(function*(){yield this.openPopup(),this.el.off(n.a.PopupUpdateValue).on(n.a.PopupUpdateValue,(e,t)=>h(this,void 0,void 0,(function*(){this.popup=null;let e=[];t.GroupBy?e=t.Expression.map(e=>new i.a({[s.a.Expression]:e},null,this.tableDesigner.Provider)):e.push(new i.a({},null,this.tableDesigner.Provider)),this.ExecuteInTransaction("Insert adjacent after column group",()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.InsertAdjacentColumnGroup(l.a.After,"ColumnGroup",e,!0)})))})))}))})}if(t){const t={Name:e.Name+">Row Group",Title:this.sr.AddGroupRowGroup,ClassName:"k-disabled -border-bottom -opaque -bold"};e.Children.push(t),r&&(t.ClassName+=" -border-top"),e.Children.push({Name:t.Name+"Parent Group",Title:this.sr.AddGroupParentGroup,Action:()=>h(this,void 0,void 0,(function*(){yield this.openPopup(),this.el.off(n.a.PopupUpdateValue).on(n.a.PopupUpdateValue,(e,t)=>h(this,void 0,void 0,(function*(){this.popup=null;const e=t.Expression.map(e=>new i.a({[s.a.Expression]:e},null,this.tableDesigner.Provider));this.ExecuteInTransaction("Insert outer row group",()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.InsertOuterRowGroup("RowGroup",e,t.AddHeader,t.AddFooter,!0)})))})))}))}),e.Children.push({Name:t.Name+"Child Group",Title:this.sr.AddGroupChildGroup,ClassName:this.tableLayout.CanAddInnerRowGroup()?"":"k-disabled",Action:()=>h(this,void 0,void 0,(function*(){yield this.openPopup(),this.el.off(n.a.PopupUpdateValue).on(n.a.PopupUpdateValue,(e,t)=>h(this,void 0,void 0,(function*(){this.popup=null;const e=t.Expression.map(e=>new i.a({[s.a.Expression]:e},null,this.tableDesigner.Provider));this.ExecuteInTransaction("Insert inner row group",()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.InsertInnerRowGroup("RowGroup",e,t.AddHeader,t.AddFooter,!0)})))})))}))}),e.Children.push({Name:t.Name+"Adjacent Above",Title:this.sr.AddGroupAdjacentAbove,Action:()=>h(this,void 0,void 0,(function*(){yield this.openPopup(!0),this.el.off(n.a.PopupUpdateValue).on(n.a.PopupUpdateValue,(e,t)=>h(this,void 0,void 0,(function*(){this.popup=null;let e=[];t.GroupBy?e=t.Expression.map(e=>new i.a({[s.a.Expression]:e},null,this.tableDesigner.Provider)):e.push(new i.a({},null,this.tableDesigner.Provider)),this.ExecuteInTransaction("Insert adjacent above row group",()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.InsertAdjacentRowGroup(l.a.Before,"RowGroup",e,!0)})))})))}))}),e.Children.push({Name:t.Name+"Adjacent Below",Title:this.sr.AddGroupAdjacentBelow,Action:()=>h(this,void 0,void 0,(function*(){yield this.openPopup(!0),this.el.off(n.a.PopupUpdateValue).on(n.a.PopupUpdateValue,(e,t)=>h(this,void 0,void 0,(function*(){this.popup=null;let e=[];t.GroupBy?e=t.Expression.map(e=>new i.a({[s.a.Expression]:e},null,this.tableDesigner.Provider)):e.push(new i.a({},null,this.tableDesigner.Provider)),this.ExecuteInTransaction("Insert adjacent below row group",()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.InsertAdjacentRowGroup(l.a.After,"RowGroup",e,!0)})))})))}))})}}AddTotalItems(e,t){const r={Name:"Add Total",Title:this.sr.AddTotal,ClassName:"k-disabled"};if(e.length>0&&(r.ClassName+=" -border-top"),this.tableLayout.IsRowHeaderCell(t))this.tableLayout.CanAddTotalRow(t)&&(e.push(r),r.ClassName="-border-top -opaque",r.SubMenu="initSubMenu",r.Children=[],r.Children.push({Name:r.Name+">Before",Title:this.sr.AddTotalBefore,Action:()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.AddTotalForGroup(t.RowGroup,l.a.Before,!1)}))}),r.Children.push({Name:r.Name+">After",Title:this.sr.AddTotalAfter,Action:()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.AddTotalForGroup(t.RowGroup,l.a.After,!1)}))}));else if(this.tableLayout.IsColumnHeaderCell(t))this.tableLayout.CanAddTotalColumn(t)&&(e.push(r),r.ClassName="-border-top -opaque",r.SubMenu="initSubMenu",r.Children=[],r.Children.push({Name:r.Name+">Before",Title:this.sr.AddTotalBefore,Action:()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.AddTotalForGroup(t.ColumnGroup,l.a.Before,!0)}))}),r.Children.push({Name:r.Name+">After",Title:this.sr.AddTotalAfter,Action:()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.AddTotalForGroup(t.ColumnGroup,l.a.After,!0)}))}));else if(this.tableLayout.IsBodyCell(t)){const i=this.tableLayout.CanAddTotalRow(t),n=this.tableLayout.CanAddTotalColumn(t);i&&n?(e.push(r),r.ClassName="-border-top -opaque",r.SubMenu="initSubMenu",r.Children=[],r.Children.push({Name:r.Name+">Row",Title:this.sr.AddTotalRow,Action:()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.AddTotalRowAfterBodyCell()}))}),r.Children.push({Name:r.Name+">Column",Title:this.sr.AddTotalColumn,Action:()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.AddTotalColumnAfterBodyCell()}))})):i?(e.push(r),r.ClassName="-border-top -opaque",r.Title=this.sr.AddTotalRowFull,r.Action=()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.AddTotalRowAfterBodyCell()})),delete r.SubMenu,delete r.Children):n&&(e.push(r),r.ClassName="-border-top -opaque",r.Title=this.sr.AddTotalColumnFull,r.Action=()=>h(this,void 0,void 0,(function*(){yield this.tableLayout.AddTotalColumnAfterBodyCell()})),delete r.SubMenu,delete r.Children)}}}class m extends p{get includeColumnItems(){return!1}}class g extends p{get includeRowItems(){return!1}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return k}));var i=r(301),n=r(302),s=r(87),a=r(217),o=r(227),l=r(303),c=r(147),d=r(146),u=r(136),h=r(304),p=r(166),m=r(218),g=r(220),f=r(224),v=r(305),y=r(71),S=r(173),C=r(174),b=r(56),w=r(82),P=r(126),D=r(94),x=r(306),R=r(219),T=r(307),I=r(308),E=r(42),N=r(137),M=r(80),O=r(221);class k{constructor(e){this.Type=e||w.a}Match(e){const t=this.Type;return!!e&&e instanceof t}}k.Types={[i.a.typeName]:i.a,[n.a.typeName]:n.a,[T.a.typeName]:T.a,[s.a.typeName]:s.a,[a.a.typeName]:a.a,[o.a.typeName]:o.a,[c.a.typeName]:c.a,[d.a.typeName]:d.a,[u.a.typeName]:u.a,[h.a.typeName]:h.a,[I.a.typeName]:I.a,[l.a.typeName]:l.a,[m.a.typeName]:m.a,[g.a.typeName]:g.a,[p.a.typeName]:p.a,[f.a.typeName]:f.a,[v.a.typeName]:v.a,[y.a.typeName]:y.a,[S.a.typeName]:S.a,[C.a.typeName]:C.a,[b.a.typeName]:b.a,[w.a.typeName]:w.a,[P.a.typeName]:P.a,[D.a.typeName]:D.a,[x.a.typeName]:x.a,[R.a.typeName]:R.a,[E.a.typeName]:E.a,[N.a.typeName]:N.a,[M.a.typeName]:M.a,[O.a.typeName]:O.a}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get Categories(){return"categories"}static get Functions(){return"Functions"}static get Aggregates(){return"Aggregates"}static get Items(){return"items"}static get Value(){return"value"}}},function(e,t,r){"use strict";var i;r.d(t,"a",(function(){return i})),function(e){e[e.Text=0]="Text",e[e.StoredProcedure=1]="StoredProcedure"}(i||(i={}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get NotSet(){return"NotSet"}static get ParentDataSource(){return"ParentDataSource"}static get Self(){return"Self"}static get ChildDataSource(){return"ChildDataSource"}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(101),n=r(73),s=r(40),a=r(0),o=r(1),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c extends i.a{constructor(e,t,r){super(e,n.a,t,r),this.namingService=r.getService(s.a)}Initialize(){return l(this,void 0,void 0,(function*(){for(let e=0;e<this.items.length;e++){const t=this.items[e];t.PropertyStore[a.a.Name]=this.namingService.CreateName(o.a.Grouping),yield t.Initialize()}}))}init(e){for(const t of this.propertyStore)this.items.push(new e(t,this.parent,this.provider))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(101),n=r(165),s=r(0),a=r(1),o=r(40),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c extends i.a{constructor(e,t,r){super(e,n.a,t,r),this.namingService=r.getService(o.a)}Initialize(){return l(this,void 0,void 0,(function*(){for(let e=0;e<this.items.length;e++){const t=this.items[e];t.PropertyStore[s.a.Name]=this.namingService.CreateName(a.a.Sorting),yield t.Initialize()}}))}init(e){for(const t of this.propertyStore)this.items.push(new e(t,this.parent,this.provider))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get Asc(){return"Asc"}static get Desc(){return"Desc"}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e){this.PropertyStore=e}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return v}));var i=r(12),n=r(8),s=r(21),a=r(4),o=r(47),l=r(152),c=r(124),d=r(18),u=r(17),h=r(27),p=r(3),m=r(29),g=r(199),f=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class v{constructor(e,t){this.disabledViews=t,this.notificationService=e.getService(i.a),this.stringResources=e.getService(n.a),this.resourceService=e.getServiceByName(p.a.ResourceStorageService),this.sharedDataSourcesStorageService=e.getServiceByName(p.a.SharedDataSourceStorageService),this.storageService=e.getServiceByName(p.a.ReportStorageService),this.resourcesFolderName=u.c.resourceFolder.name,this.resourcesBasePath=s.a.ensureTrailingPathSeparator(this.resourcesFolderName),this.recentFilesService=e.getService(l.a),this.eventManagerService=e.getService(g.a)}getRecentFiles(){let e=this.recentFilesService.files;return this.disabledViews.includes(o.b.SharedDataSource)&&(e=e.filter(e=>!e.path.startsWith(u.c.sharedDataSourcesBasePathAndUri))),this.disabledViews.includes(o.b.Report)&&(e=e.filter(e=>!e.path.startsWith(u.c.reportsBasePathAndUri))),this.disabledViews.includes(o.b.Resources)&&(e=e.filter(e=>!e.path.startsWith(u.c.resourceFolder.name))),e}get CurrentFolder(){return this.currentFolder}set CurrentFolder(e){this.currentFolder=e}currentFolderIsRecent(){var e;return(null===(e=this.CurrentFolder)||void 0===e?void 0:e.path)===u.c.recentBasePathAndUri}currentFolderIsReports(){var e;return(null===(e=this.CurrentFolder)||void 0===e?void 0:e.path)===u.c.reportsBasePathAndUri}currentFolderIsInReports(){var e;return this.pathIsReportsOrInReports(null===(e=this.CurrentFolder)||void 0===e?void 0:e.path)}currentFolderIsSharedDataSources(){var e;return(null===(e=this.CurrentFolder)||void 0===e?void 0:e.path)===u.c.sharedDataSourcesBasePathAndUri}currentFolderIsInSharedDataSources(){var e;return v.pathIsSharedDataSourcesOrInSharedDataSources(null===(e=this.currentFolder)||void 0===e?void 0:e.path)}pathIsReportsOrInReports(e){var t;return null===(t=s.a.ensureTrailingPathSeparator(e))||void 0===t?void 0:t.startsWith(u.c.reportsBasePathAndUri)}pathIsResourcesOrInResources(e){var t;return null===(t=s.a.ensureTrailingPathSeparator(e))||void 0===t?void 0:t.startsWith(u.c.resourceFolder.name)}pathIsInRecent(e){var t;return null===(t=s.a.ensureTrailingPathSeparator(e))||void 0===t?void 0:t.startsWith(u.c.recentBasePathAndUri)}static pathIsSharedDataSourcesOrInSharedDataSources(e){var t;return null===(t=s.a.ensureTrailingPathSeparator(e))||void 0===t?void 0:t.startsWith(u.c.sharedDataSourcesBasePathAndUri)}prepareResourceInfoForOutput(e,t){return{files:e,filesData:e.map(e=>this.getOutputModel(t,e))}}deleteResources(e){return f(this,void 0,void 0,(function*(){if(!e||!e.length)return this.notificationService.info("No files / folders selected"),[];let t;if(t=1===e.length?h.a.String(this.stringResources.ConfirmDeleteOperation,{resourceName:e[0].name}):h.a.String(this.stringResources.ConfirmMultipleDeleteOperation,{numberOfFiles:e.length}),e.some(e=>v.pathIsSharedDataSourcesOrInSharedDataSources(e.path))&&(t=this.stringResources.ConfirmSharedDataSourceFileDeleteOperationPrefix+" "+t),!window.confirm(t))return[];const r=yield this.executeDeleteOperation(e);return r.filter(e=>!e.isDirectory).forEach(e=>this.recentFilesService.remove(e)),r}))}renameResource(e,t,r){return f(this,void 0,void 0,(function*(){if(v.pathIsSharedDataSourcesOrInSharedDataSources(null==e?void 0:e.path)&&!window.confirm(this.stringResources.ConfirmSharedDataSourceFileRenameOperationPrefix+" "+h.a.String(this.stringResources.ConfirmRenameOperation,{resourceName:e.name,resourceNewName:t})))return null;r=null!=r?r:this.CurrentFolder;const i=e.isDirectory?yield this.renameFolder(e,t):yield this.renameFile(e,t);if(!i)return null;let n;if(e.isDirectory){n=c.a.fromFolderModel(i,r);const e=n;e.items=yield this.getFolderContent(e)}else n=c.a.fromResourceModel(i,r);const s=e.uri;return e.update(n),e.isDirectory||this.recentFilesService.change(s,e),e}))}renameFile(e,t){return f(this,void 0,void 0,(function*(){return d.a.GetData(()=>this.getStorageForAsset(e).Rename({oldUri:e.uri,name:t}))}))}renameFolder(e,t){return f(this,void 0,void 0,(function*(){return d.a.GetData(()=>this.getStorageForAsset(e).RenameFolder({oldUri:e.uri,name:t}))}))}getFolderContent(e){return f(this,void 0,void 0,(function*(){if(e&&!e.isDirectory)throw new m.a(`Attempting to retrieve content for ${e.uri} ${e.path}, which is not a directory!`,null,this.eventManagerService);if(!e||!e.uri)return yield this.getBaseDirContents();if(e.uri===u.c.recentBasePathAndUri)return this.getRecentFiles();const t=this.isVirtualRootFolder(e.path)?"":null==e?void 0:e.uri,r=yield d.a.GetData(()=>this.getStorageForAsset(e).GetFolderContents({uri:t}));return c.a.fromListingModel(r,e)}))}isVirtualRootFolder(e){return!![s.a.ensureTrailingPathSeparator(u.c.resourceFolder.name),u.c.reportsBasePathAndUri,u.c.sharedDataSourcesBasePathAndUri].find(t=>t===e)}resourceFileExists(e){return f(this,void 0,void 0,(function*(){const t=this.pathIsReportsOrInReports(e.path)?e.name:e.uri;return(yield this.getStorageForAsset(e).Exists({uri:t})).Data}))}createFolder(e,t){return f(this,void 0,void 0,(function*(){if(!(e=null!=e?e:this.CurrentFolder))return this.notificationService.error("Cannot create folder in base directory"),null;const r={name:null!=t?t:this.stringResources.NewFolder,parentUri:u.c.trimArtificialPathPart(!1,e.uri)},i=yield d.a.Do(()=>this.getStorageForAsset(e).CreateFolder(r));return i.isSuccess?c.a.fromFolderModel(i.Data,e):null}))}downloadFiles(e){return f(this,void 0,void 0,(function*(){for(const t of e){const e=yield this.getStorageForAsset(t).GetBlob({uri:t.uri});e.outputResultNotification(!1,!0),e.applyOnSuccess(e=>a.b.downloadFile(e,t.name))}}))}uploadFile(e,t){return f(this,void 0,void 0,(function*(){t=null!=t?t:this.CurrentFolder;const r=this.folderIsReportsOrInReports(t),i={name:e.name,parentUri:u.c.trimArtificialPathPart(r,t.uri),asset:e};return(yield d.a.Do(()=>this.getStorageForAsset(t).Upload(i))).mapSuccess(i=>r?c.a.fromReportFile(e,t):c.a.fromResourceModel(i,t))}))}getVirtualRootFolderForElement(e){if(this.folderIsRecent(e)||this.pathIsInRecent(e.parentPath))return o.b.Recent;if(this.pathIsReportsOrInReports(e.path))return o.b.Report;if(this.pathIsResourcesOrInResources(e.path))return o.b.Resources;if(v.pathIsSharedDataSourcesOrInSharedDataSources(e.path))return o.b.SharedDataSource;throw new m.a("folder does not have path?",null,this.eventManagerService)}folderIsResourcesOrInResources(e){return this.pathIsResourcesOrInResources(e.path)}folderIsReportsOrInReports(e){return this.pathIsReportsOrInReports(e.path)}folderIsSharedDataSourceOrInSharedDataSource(e){return v.pathIsSharedDataSourcesOrInSharedDataSources(e.path)}folderIsRecent(e){return e.uri===u.c.recentBasePathAndUri}removeUnexistingFilesFromFileArray(e){return f(this,void 0,void 0,(function*(){const t=[];for(const r of e){(yield this.getStorageForAsset(r).Exists({uri:r.uri})).applyOnSuccess(e=>{e||(this.recentFilesService.remove(r),t.push(r))})}if(1===t.length)this.notificationService.error(`File '${t[0].path}' does not exist on the server.`);else if(t.length>1){const e=t.map(e=>""+e.path).join(", ");this.notificationService.error(`Files ${e} do not exist on the server.`)}return t.forEach(t=>e.splice(e.indexOf(t),1)),e}))}fetchFileDescriptions(e){return f(this,void 0,void 0,(function*(){let t=!1;const r=e.map(e=>f(this,void 0,void 0,(function*(){if(!e.description&&v.pathIsSharedDataSourcesOrInSharedDataSources(e.path)&&!e.isDirectory){(yield this.sharedDataSourcesStorageService.GetModel({uri:e.uri})).applyOnSuccess(r=>{t=!0,e.description=a.b.escapeHtml(r.description)})}})));yield Promise.all(r);return{onSuccess:e=>{t&&e()}}}))}getBaseDirContents(){return f(this,void 0,void 0,(function*(){const e=new Array;return this.disabledViews.includes(o.b.Recent)||this.addRecent(e),this.disabledViews.includes(o.b.Report)||(yield this.addReports(e)),this.disabledViews.includes(o.b.Resources)||(yield this.addResources(e)),this.disabledViews.includes(o.b.SharedDataSource)||(yield this.addSharedDataSources(e)),e}))}addResources(e){return f(this,void 0,void 0,(function*(){try{const t=yield d.a.GetData(()=>this.resourceService.GetFolderContents({uri:""}));this.createArtificialFolderContents(e,t,this.resourcesFolderName,this.resourcesBasePath)}catch(e){}}))}addReports(e){return f(this,void 0,void 0,(function*(){try{const t=yield d.a.GetData(()=>this.storageService.GetFolderContents({}));this.createArtificialFolderContents(e,t,u.c.reportsFolderName,u.c.reportsBasePathAndUri)}catch(e){}}))}addSharedDataSources(e){return f(this,void 0,void 0,(function*(){try{const t=(yield this.sharedDataSourcesStorageService.GetFolderContents({})).outputResultNotification().Data;this.createArtificialFolderContents(e,t,u.c.sharedDataSourceFolderName,u.c.sharedDataSourcesBasePathAndUri)}catch(e){}}))}createArtificialFolderContents(e,t,r,i){const n={name:r,path:i,hasDirectories:t.folders.length>0};this.withAddedArtificialFolderToRootDo(e,n,e=>e.items=c.a.fromListingModel(t,e))}addRecent(e){try{const t={name:u.c.recentFolderName,path:u.c.recentBasePathAndUri,hasDirectories:!1};this.withAddedArtificialFolderToRootDo(e,t,e=>e.items=this.getRecentFiles().map(e=>c.a.deepCloneFile(e)))}catch(e){}}withAddedArtificialFolderToRootDo(e,t,r){const i=c.a.fromArtificialFolderInfo(t);r(i),e.push(i)}executeDeleteOperation(e){return f(this,void 0,void 0,(function*(){const t=(e,t)=>f(this,void 0,void 0,(function*(){return(yield d.a.Do(()=>t(e))).isSuccess?e:null})),r=[];for(const i of e){const e=this.getStorageForAsset(i);r.push(i.isDirectory?yield t(i,t=>e.DeleteFolder({uri:i.uri})):yield t(i,t=>e.Delete({uri:i.uri})))}return r.filter(e=>!!e)}))}getOutputModel(e,t){var r;return{path:null!==(r=u.c.trimArtificialPathPart(e,null==t?void 0:t.path))&&void 0!==r?r:"",uri:t.uri}}getStorageForAsset(e){if(this.pathIsReportsOrInReports(e.path))return this.storageService;if(this.pathIsResourcesOrInResources(e.path))return this.resourceService;if(v.pathIsSharedDataSourcesOrInSharedDataSources(e.path))return this.sharedDataSourcesStorageService;throw new m.a("Unknown storage for asset",null,this.eventManagerService)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i,n=r(43),s=r(4),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=i=class extends n.b{constructor(){super(i.getEventName())}};o.getEventName=()=>"DefinitionLoadCompleteEvent",o=i=a([Object(s.e)()],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(20),n=r(19),s=r(4),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends n.a{constructor(){super(),this.positions=[],this.offsets=[]}get Positions(){return this.positions}get Offsets(){return this.offsets}SavePositions(e){let t=e.GetBounds(!1),r=new i.a(t.Left,t.Top);this.positions.splice(0,0,r)}SavePositionsOffsets(e){this.offsets.splice(0,0,e)}Reset(){this.positions=[],this.offsets=[]}};o.getServiceName=()=>"PositionsService",o=a([Object(s.e)()],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(239),n=r(16),s=r(113);class a extends s.a{constructor(e,t){super(e,t)}AddCurrentSelectionToClipboard(){const e=this.provider.getService(n.a);this.AddToClipboard(e.GetSelectedComponents())}AddToClipboard(e){this.provider.getService(i.a).AddComponents(e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var i=r(33),n=r(104),s=r(12),a=r(3),o=r(264),l=r(13),c=r(360),d=r(354),u=r(14),h=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class p extends i.a{constructor(e,t){super(t,e),this.DocumentExtensionStorageServiceNameMap={[u.b.sdsx]:a.a.SharedDataSourceStorageService,[u.b.trbp]:a.a.ReportStorageService,[u.b.trdp]:a.a.ReportStorageService,[u.b.trdx]:a.a.ReportStorageService},this.reportOptionsService=e.getService(o.a),this.webDesignerEventEmitter=this.provider.getService(l.c)}get DesignSurfaceManager(){return this.designSurfaceManager||(this.designSurfaceManager=this.provider.getServiceByName(a.a.IDesignSurfaceManager)),this.designSurfaceManager}get TopMenuArea(){return this.topMenuArea||(this.topMenuArea=this.provider.getService(n.a)),this.topMenuArea}get Notifications(){return this.notifications||(this.notifications=this.provider.getService(s.a)),this.notifications}TriggerDocumentUILoadedEvent(){const e=new c.a;this.webDesignerEventEmitter.emit(e)}getStorageServiceName(e){return h(this,void 0,void 0,(function*(){const t=d.a.getReportExtension(e);if(t)return this.DocumentExtensionStorageServiceNameMap[t];const r=this.provider.getServiceByName(a.a.ReportStorageService),i=this.provider.getServiceByName(a.a.SharedDataSourceStorageService),n=yield r.Exists({uri:e}),s=yield i.Exists({uri:e});if(n.Data&&!s.Data)return a.a.ReportStorageService;if(s.Data&&!n.Data)return a.a.SharedDataSourceStorageService;throw new Error("unable to resolve storage from document ID")}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return u}));var i=r(36),n=r(19),s=r(4),a=r(3),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let c=class extends n.a{constructor(e){super(),this.provider=e,this.options=e.getService(i.a)}onReportOpened(e){this.addInAllOptions(e)}onReportSwitchedTo(e){return l(this,void 0,void 0,(function*(){this.addInAllOptions(e)}))}onReportCreated(e){this.addInAllOptions(e)}onReportClosed(e){this.options.PreviouslyOpenedReports.removeReportId(e)}onReportNotExisting(e){this.options.RecentlyOpenedReports.removeReportId(e),this.options.PreviouslyOpenedReports.removeReportId(e)}addInAllOptions(e){this.options.RecentlyOpenedReports.addReportId(e),this.options.PreviouslyOpenedReports.addReportId(e),this.options.PreviouslyOpenedReports.LastOpenedReportId=e}};c.getServiceName=()=>"ReportOptionsService",c=o([Object(s.e)()],c);class d extends c{constructor(e){super(e),this.storageService=this.provider.getServiceByName(a.a.ReportStorageService)}onReportCreated(e){}onReportSwitchedTo(e){const t=Object.create(null,{onReportSwitchedTo:{get:()=>super.onReportSwitchedTo}});return l(this,void 0,void 0,(function*(){(yield this.storageService.Exists({uri:e})).Data&&t.onReportSwitchedTo.call(this,e)}))}}class u{static create(e){return e.getService(i.a).DemoMode?new d(e):new c(e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(19),n=r(4),s=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let a=class extends i.a{constructor(e,t,r,i){super(),this.$visualElement=e,this.serviceUrl=t,this.reportViewer=null,this.keepClientAlive=r,this.reportViewerUserOptions=i}Show(e){this.reportViewer?this.update(e):this.init(e),this.$visualElement.show()}Hide(){this.$visualElement.hide()}init(e){var t,r,i,n,s,a,o,l,c;this.reportViewer=this.$visualElement.telerik_ReportViewer({serviceUrl:this.serviceUrl,reportSource:{report:e},templateUrl:null===(t=this.reportViewerUserOptions)||void 0===t?void 0:t.templateUrl,viewMode:null!==(i=null===(r=this.reportViewerUserOptions)||void 0===r?void 0:r.viewMode)&&void 0!==i?i:telerikReportViewer.ViewModes.INTERACTIVE,scaleMode:null!==(s=null===(n=this.reportViewerUserOptions)||void 0===n?void 0:n.scaleMode)&&void 0!==s?s:telerikReportViewer.ScaleModes.SPECIFIC,scale:null!==(o=null===(a=this.reportViewerUserOptions)||void 0===a?void 0:a.scale)&&void 0!==o?o:1,keepClientAlive:this.keepClientAlive,pageMode:null!==(c=null===(l=this.reportViewerUserOptions)||void 0===l?void 0:l.pageMode)&&void 0!==c?c:telerikReportViewer.PageModes.CONTINUOUS_SCROLL}).data("telerik_ReportViewer")}update(e){this.reportViewer.reportSource({report:e})}Dispose(){var e;null===(e=this.reportViewer)||void 0===e||e.dispose(),this.$visualElement.html(""),this.reportViewer=null}};a.getServiceName=()=>"PreviewArea",a=s([Object(n.e)()],a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(1),n=r(98),s=r(267);class a extends s.a{createCoordinateSystem(){const e={NetType:i.a.CartesianCoordinateSystem,Name:this.namingService.CreateName(i.a.CartesianCoordinateSystem)},t={NetType:i.a.GraphAxis,Name:this.namingService.CreateName(i.a.GraphAxis)};t.Scale=this.extender.createScale(this.model,t),e.XAxis=t.Name,this.graphPropertyStore.Axes=this.graphPropertyStore.Axes||[],this.graphPropertyStore.Axes.push(t);const r={NetType:i.a.GraphAxis,Name:this.namingService.CreateName(i.a.GraphAxis)},s={NetType:i.a.NumericalScale};return r.Scale=s,this.getArrangeMode()===n.a.Stacked100&&(r.LabelFormat="{0:P0}"),e.YAxis=r.Name,this.graphPropertyStore.Axes.push(r),e}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(1),n=r(72),s=r(295),a=r(98),o=r(596);class l extends o.a{applyCore(e,t){const r=this.addCoordinateSystem();for(const a of this.model.measureFields){const o=this.createSeries();o.CoordinateSystem=r.Name;const l=s.a.getLeaf(t);o.SeriesGroup=l.Name;const c=s.a.getLeaf(e);o.CategoryGroup=c.Name;const d=n.a.getExpression(n.a.getDataFieldIdentifier(a.name),a.aggregateFunction);o.DataPointLabel=d,o.DataPointLabelStyle=o.DataPointLabelStyle||{NetType:i.a.Style},o.DataPointLabelStyle.Visible=!1;let u=s.a.getExpression(t);this.model.measureFields.length>1&&(u&&""!==u.trim()&&(u+=" + '/' + "),u+=`'${a.ExpressionBody}'`),u&&""!==u.trim()||(u=a.name),o.LegendItem=o.LegendItem||{NetType:i.a.LegendItem},o.LegendItem.Value=u,this.setToolTips(o,u,d),this.initializeSeries(o,d),this.graphPropertyStore.Series=this.graphPropertyStore.Series||[],this.graphPropertyStore.Series.push(o)}}getArrangeMode(){return this.model.selectedSubType===this.sr.Stacked100BarGraph||this.model.selectedSubType===this.sr.Stacked100LineGraph||this.model.selectedSubType===this.sr.Stacked100WithMarkersLineGraph||this.model.selectedSubType===this.sr.Stacked100AreaGraph||this.model.selectedSubType===this.sr.Stacked100ColumnGraph?a.a.Stacked100:this.model.selectedSubType===this.sr.StackedBarGraph||this.model.selectedSubType===this.sr.StackedLineGraph||this.model.selectedSubType===this.sr.StackedWithMarkersLineGraph||this.model.selectedSubType===this.sr.StackedAreaGraph||this.model.selectedSubType===this.sr.StackedColumnGraph?a.a.Stacked:a.a.Clustered}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(3),n=r(8),s=r(12),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o{constructor(e,t,r,i){this.$targetElement=e,this.filter=t,this.provider=r,this.alignToAnchor=i,this.template='<ul class="twd-context-menu twd-designer-parts"></ul>',this.menuTemplate="<ul></ul>",this.sr=this.provider.getService(n.a),this.$visualElement=null,this.widget=null,this.menuItems=[]}Dispose(){this.widget&&this.widget.destroy(),this.widget&&this.widget.element&&this.widget.element.remove(),this.widget=null}init(){return a(this,void 0,void 0,(function*(){this.$targetElement.append(this.template),this.$visualElement=this.$targetElement.find(".twd-context-menu"),yield this.initMenuItems(),this.initContextMenu()}))}initMenuItems(){return a(this,void 0,void 0,(function*(){yield this.addMenuItems();for(const e of this.menuItems)this.$visualElement.append(this.getMenuItemTemplate(e)),e.SubMenu&&this.initSubMenu(this.$visualElement.find("> li").last(),e)}))}initSubMenu(e,t){e.append(this.menuTemplate);const r=e.find("ul");for(const e of t.Children)r.append(this.getSubMenuItemTemplate(e))}initContextMenu(e="right"){const t={target:this.$targetElement,filter:this.filter,direction:e,alignToAnchor:this.alignToAnchor,showOn:"click",copyAnchorStyles:!1,closeOnClick:!0,appendTo:"body",animation:!1,select:e=>{this.onContextMenuSelect(e)},open:e=>{this.onContextMenuOpen(e)},deactivate:e=>{e.item[0]instanceof HTMLLIElement||this.onContextMenuDeactivate(e)}};this.widget=this.$visualElement.kendoContextMenu(t).data("kendoContextMenu")}onContextMenuSelect(e){return a(this,void 0,void 0,(function*(){const t=$(e.item).attr("data-action"),r=this.retrieveMenuItem(t);if(r&&r.Action){const n=this.provider.getServiceByName(i.a.IDesignerHost);let a=null;n.InTransaction||(a=n.CreateTransaction(t));try{yield r.Action(e),null==a||a.Commit()}catch(e){null==a||a.Rollback();this.provider.getService(s.a).error(`Could not complete operation ${t}.${e.message?" "+e.message:""}`,e)}}}))}retrieveMenuItem(e){let t=this.menuItems.find(t=>t.Name===e);return t||(t=this.retrieveHierarchicalMenuItem(e)),t}retrieveHierarchicalMenuItem(e){const t=e.split(">");let r,i=this.menuItems;for(const n of t)r=i.find(e=>e.Name===n)||i.find(t=>t.Name===e),i=r.Children;return r}getMenuItemTemplate(e){return`<li data-action="${e.Name}" class="context-menu__item k-widget ${e.ClassName?e.ClassName:""}">\n                    <span class="context-menu__text">${e.Title}</span>\n                    <span class="context-menu__short-cut">${e.ShortCut?e.ShortCut:""}</span>\n                </li>`}getSubMenuItemTemplate(e){return`<li data-action="${e.Name}" data-document-id="${e.Title}" class="context-menu__item ${e.ClassName?e.ClassName:""}">\n                    <span>${e.Title}</span>\n                </li>`}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(365),n=r(156);class s extends i.a{constructor(){super(...arguments),this.class="-top-label -list -draggable-list -sortable-list"}initContextMenu(e,t){return this.contextMenu=new n.a(e,t,this.provider),this.contextMenu.init()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r(8),n=r(13),s=r(53),a=r(64),o=r(51),l=r(105),c=r(42),d=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class u{constructor(e){this.provider=e;const t=this.provider.getService(l.a);this.$parent=t.ParentVisualElement,this.sr=this.provider.getService(i.a),this.webDesignerEventEmitter=this.provider.getService(n.c),this.categories=[],this.isOpen=!1,this.isInitialized=!1}get sectionsTemplate(){let e="";for(const t in this.categories){let r="";const i=this.categories[t];i.items.map(e=>r+=e.template),i.title?e+=`<li class="expander__items" data-index="group-${t}">\n                                <span class="expander__header">${i.title}</span>\n                                <div class="twd-editor -expandable">\n                                    ${r}\n                                </div>\n                            </li>`:e+=`<li class="expander__items -flat" data-index="group-${t}">\n                                <div class="twd-editor -editor-category">\n                                    ${r}\n                                </div>\n                            </li>`}return e}get template(){return`<div class="twd-slide-panel -component-wizard">\n                    <div class="twd-editor -header">\n                        <h3 title="${this.WizardHeader}">${this.WizardHeader}</h3>\n                    </div>\n                    <div class='slide-panel__content k-panelbar'>\n                        <ul class="twd-expander -properties -no-text-transform">\n                            ${this.sectionsTemplate}\n                        </ul>\n                    </div>\n                    <div class="slide-panel__action-bar">\n                        <button class="slide-panel__button -create k-button k-button-md k-rounded-md k-button-solid k-button-solid-primary">${this.sr.CreateButton}</button>\n                        <button class="slide-panel__button m-l-10 -cancel">${this.sr.CancelButton}</button>\n                    </div>\n                </div>`}showCategoryItem(e,t){const r=this.findCategory(e);r&&r.find("#"+t).show()}hideCategoryItem(e,t){const r=this.findCategory(e);r&&r.find("#"+t).hide()}findCategory(e){const t=this.categories.indexOf(e);return t<0?null:this.$parent.find(`[data-index="group-${t}"]`)}addEventListeners(){this.closeEventListener=()=>{this.close()},this.enableCreateEventListener=()=>{this.createButton.enable(this.model.hasSelection)},this.webDesignerEventEmitter.on(s.a,this.closeEventListener,!1),this.webDesignerEventEmitter.on(a.a,this.closeEventListener,!1),this.webDesignerEventEmitter.on(o.h,this.enableCreateEventListener,!1)}Dispose(){this.webDesignerEventEmitter.off(s.a,this.closeEventListener,!1),this.webDesignerEventEmitter.off(a.a,this.closeEventListener,!1),this.webDesignerEventEmitter.off(o.h,this.enableCreateEventListener,!1),this.categories.forEach(e=>e.items.forEach(e=>e.Dispose()))}initControls(){for(const e of this.categories)for(const t of e.items)t.init();this.createButton=this.$visualElement.find(".-create").kendoButton({enable:!1,click:e=>{this.save()}}).data("kendoButton"),this.$visualElement.find(".-cancel").kendoButton({click:e=>{this.close()}})}open(){this.isInitialized||this.init(),this.isOpen||(this.$visualElement.addClass("-open"),this.isOpen=!0)}removeEvents(){this.$visualElement.off("change")}animationEnd(){return d(this,void 0,void 0,(function*(){return new Promise(e=>{this.$visualElement.on("transitionend",t=>{$(t.target).hasClass("-component-wizard")&&e()})})}))}init(){this.$parent.append(this.template),this.$visualElement=this.$parent.find(".twd-slide-panel.-component-wizard");const e=this.$visualElement.find(".twd-expander").kendoPanelBar().data("kendoPanelBar");e.expand($('[data-index^="group"]'),!1),e.select('[data-index="group-snapping"]'),this.initControls(),this.addEventListeners(),this.setDefaults(),this.isInitialized=!0}setDefaults(){}embedNewComponent(e,t){e instanceof c.a&&e.Designer.nestInTableCell(t)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(240),n=r(3),s=r(252),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o{constructor(e){this.provider=e}get dataFields(){const e=[];if(this.dataSource)for(const t of this.dataSource.DataModel.Measures)e.push(new i.a(t.Name,t.DataType));return e}getAggregateFunctions(){return a(this,void 0,void 0,(function*(){const e=this.provider.getServiceByName(n.a.ISchemaService);return(yield e.getExpressionBuilderSchema())[s.a.Categories].find(e=>e.name===s.a.Functions)[s.a.Categories].find(e=>e.name===s.a.Aggregates)[s.a.Items].map(e=>e[s.a.Value])}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(8),n=r(376),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends n.a{constructor(e,t,r){super(e,t,r),this.sr=this.provider.getService(i.a)}CreateColumnGroups(e){return s(this,void 0,void 0,(function*(){if(this.HasColumnGroups){const t=this.StyleSheet.TableGroup,r=[];for(const i of this.ColumnGroups){const n=yield this.CreateBoundGroup(i,t);r.push(n),e.Add(n),e=n.ChildGroups}this.HasManyValues&&(yield this.CreateHeaderGroups(e)),yield this.CreateGroupTotals(r)}else yield this.CreateHeaderGroups(e)}))}CreateColumnItems(e){const t=this.ColumnGroups.length,r=this.DetailValues.length;for(let i=0;i<r;i++)for(let r=0;r<=t;r++)e.Columns.Add(this.CreateTableColumn())}CreateColumnTotals(e){return s(this,void 0,void 0,(function*(){if(this.HasColumnGroups&&this.HasDetailValues){const t=this.StyleSheet.GrandTotal,r=yield this.CreateStaticGroup(this.sr.Total,t),i=r.ReportItem,n=this.ColumnGroups.length;i.Height=i.Height.Multiply(n),e.Add(r),e=r.ChildGroups,this.HasManyValues&&(yield this.CreateHeaderGroups(e))}}))}CreateCornerItems(e){return s(this,void 0,void 0,(function*(){this.HasRowGroups&&(this.HasColumnGroups?this.HasManyValues?(yield this.CreateEmptyCorner(e),yield this.CreateSmallHeader(e)):yield this.CreateLargeHeader(e):this.HasDetailValues&&(yield this.CreateSmallHeader(e)))}))}CreateDetailItems(e){return s(this,void 0,void 0,(function*(){const t=this.StyleSheet.TableBody,r=this.StyleSheet.SubTotal,i=this.StyleSheet.GrandTotal,n=e.Rows.Count,s=this.ColumnGroups.length,a=this.DetailValues.length;e.Rows.Add(this.CreateTableRow());for(let o=0;o<a;o++){const l=this.DetailValues[o];if(this.HasColumnGroups){const c=yield this.CreateTotalTextBox(l,t);e.SetCellContent(n,o,c);for(let t=1;t<s;t++){const i=yield this.CreateTotalTextBox(l,r),s=t*a+o;e.SetCellContent(n,s,i)}const d=yield this.CreateTotalTextBox(l,i),u=s*a+o;e.SetCellContent(n,u,d)}else{const r=yield this.CreateBoundTextBox(l,t);e.SetCellContent(n,o,r)}}}))}CreateEmptyCorner(e){return s(this,void 0,void 0,(function*(){const t=this.StyleSheet.TableCorner,r=this.ColumnGroups.length,i=this.RowGroups.length,n=yield this.CreateStaticTextBox("",t);e.SetCellContentExtended(0,0,n,r,i)}))}CreateGrandItems(e){return s(this,void 0,void 0,(function*(){if(this.HasRowGroups){const t=this.StyleSheet.GrandTotal,r=e.Rows.Count,i=this.ColumnGroups.length,n=this.DetailValues.length;e.Rows.Add(this.CreateTableRow());for(let s=0;s<n;s++){const a=this.DetailValues[s];for(let o=0;o<=i;o++){const i=yield this.CreateTotalTextBox(a,t),l=o*n+s;e.SetCellContent(r,l,i)}}}}))}CreateGroupTotals(e){return s(this,void 0,void 0,(function*(){if(this.HasDetailValues){const t=this.StyleSheet.SubTotal,r=e.length-1;for(let i=0;i<r;i++){let n=e[i].ChildGroups;const s=yield this.CreateStaticGroup(this.sr.Total,t),a=s.ReportItem,o=r-i;a.Height=a.Height.Multiply(o),n.Add(s),n=s.ChildGroups,this.HasManyValues&&(yield this.CreateHeaderGroups(n))}}}))}CreateHeaderGroups(e){return s(this,void 0,void 0,(function*(){if(this.HasDetailValues){const t=this.StyleSheet.TableHeader;for(const r of this.DetailValues){const i=yield this.CreateStaticGroup(r.name,t);e.Add(i)}}}))}CreateLargeHeader(e){return s(this,void 0,void 0,(function*(){const t=this.StyleSheet.TableHeader,r=this.ColumnGroups.length,i=this.RowGroups.length;for(let n=0;n<i;n++){const i=this.RowGroups[n],s=yield this.CreateStaticTextBox(i.name,t);e.SetCellContentExtended(0,n,s,r,1)}}))}CreateRowTotals(e){return s(this,void 0,void 0,(function*(){if(this.HasRowGroups&&this.HasDetailValues){const t=this.StyleSheet.GrandTotal,r=yield this.CreateStaticGroup(this.sr.Total,t),i=r.ReportItem,n=this.RowGroups.length;i.Width=i.Width.Multiply(n),e.Add(r)}}))}CreateSmallHeader(e){return s(this,void 0,void 0,(function*(){const t=this.StyleSheet.TableHeader,r=this.ColumnGroups.length,i=this.RowGroups.length;for(let n=0;n<i;n++){const i=this.RowGroups[n],s=yield this.CreateStaticTextBox(i.name,t);e.SetCellContent(r,n,s)}}))}CreateSubTotals(e){return s(this,void 0,void 0,(function*(){if(this.HasDetailValues){const t=this.StyleSheet.SubTotal,r=e.length-1;for(let i=0;i<r;i++){const n=e[i].ChildGroups,s=yield this.CreateStaticGroup(this.sr.Total,t),a=s.ReportItem,o=r-i;a.Width=a.Width.Multiply(o),n.Add(s)}}}))}CreateTableContent(e){return s(this,void 0,void 0,(function*(){yield this.CreateColumnGroups(e.ColumnGroups),yield this.CreateColumnTotals(e.ColumnGroups),yield this.CreateRowGroups(e.RowGroups),yield this.CreateRowTotals(e.RowGroups),yield this.CreateCornerItems(e.Corner),yield this.CreateBodyItems(e.Body)}))}CreateTotalItems(e){return s(this,void 0,void 0,(function*(){if(this.HasRowGroups){const t=this.StyleSheet.SubTotal,r=this.StyleSheet.GrandTotal,i=this.ColumnGroups.length;let n=this.RowGroups.length;const s=this.DetailValues.length;this.HasColumnGroups&&n--;for(let a=0;a<n;a++){const n=e.Rows.Count;e.Rows.Add(this.CreateTableRow());for(let a=0;a<s;a++){const o=this.DetailValues[a];if(this.HasColumnGroups){for(let r=0;r<i;r++){const i=yield this.CreateTotalTextBox(o,t),l=r*s+a;e.SetCellContent(n,l,i)}const l=yield this.CreateTotalTextBox(o,r),c=i*s+a;e.SetCellContent(n,c,l)}else{const r=yield this.CreateTotalTextBox(o,t);e.SetCellContent(n,a,r)}}}}}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(113),n=r(82),s=r(12),a=r(27),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends i.a{execute(){return o(this,void 0,void 0,(function*(){const e=this.getSelectedComponents();if(!e||!e.length)return;const t=e.filter(e=>!(e instanceof n.a));if(t.length){const e=this.provider.getService(s.a);t.forEach(t=>e.error(a.a.String(this.stringResources.ComponentDoesNotSupportStyleModification,{componentType:t.Type})))}else yield this.executeWithSelectedComponent(e)}))}getSelectedComponents(){return this.selectionService.GetSelectedComponents()}updateStatus(e){}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(33),n=r(6),s=r(300),a=r(36),o=r(390),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c extends i.a{constructor(e){super(n.a.TriggerOnboardingExperience,e)}execute(e){return l(this,void 0,void 0,(function*(){if(this.shouldStartOnboarding()||e){const e=new s.a(this.provider).create(!1);yield e.open()}}))}shouldStartOnboarding(){return this.provider.getService(a.a).OnboardingOption.LastOnboardingStep<o.a.stepTypes.length}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r(6),n=r(1),s=r(3),a=r(61),o=r(8),l=r(20),c=r(11),d=r(78);class u{static Toolbox(e){const t=e.getService(o.a),r=e.getServiceByName(s.a.ISchemaService);return u.applyPermissions([{GroupName:t.ReportItemsGroupTitle,Items:[{Title:t.TextBox,IconName:r.getIconClass(n.a.TextBox),NetType:n.a.TextBox,Command:i.a.NewItem,Draggable:!0,AllowPermission:c.a.Create_Components_ReportItems_TextBox},{Title:t.HtmlTextBox,IconName:r.getIconClass(n.a.HtmlTextBox),NetType:n.a.HtmlTextBox,Command:i.a.NewItem,Draggable:!0,AllowPermission:c.a.Create_Components_ReportItems_HTMLTextBox},{Title:t.PictureBox,IconName:r.getIconClass(n.a.PictureBox),NetType:n.a.PictureBox,Command:i.a.NewItem,Draggable:!0,AllowPermission:c.a.Create_Components_ReportItems_PictureBox},{Title:t.CheckBox,IconName:r.getIconClass(n.a.CheckBox),NetType:n.a.CheckBox,Command:i.a.NewItem,Draggable:!0,AllowPermission:c.a.Create_Components_ReportItems_CheckBox},{Title:t.Barcode,IconName:r.getIconClass(n.a.Barcode),NetType:n.a.Barcode,Command:i.a.NewItem,Draggable:!0,AllowPermission:c.a.Create_Components_ReportItems_Barcode},{Title:t.Shape,IconName:r.getIconClass(n.a.Shape),NetType:n.a.Shape,Command:i.a.NewItem,Draggable:!0,AllowPermission:c.a.Create_Components_ReportItems_Shape},{Title:t.Panel,IconName:r.getIconClass(n.a.Panel),NetType:n.a.Panel,Command:i.a.NewItem,Draggable:!0,AllowPermission:c.a.Create_Components_ReportItems_Panel},{Title:t.RadialGaugeWizard,IconName:r.getIconClass(a.a.RadialGaugeWizard),TemplateType:a.a.RadialGaugeWizard,Command:i.a.NewGaugeWizard,NetType:n.a.RadialGauge,Position:l.a.Empty,Draggable:!0,AllowPermission:c.a.Create_Components_ReportItems_RadialGauge},{Title:t.LinearGaugeWizard,IconName:r.getIconClass(a.a.LinearGaugeWizard),TemplateType:a.a.LinearGaugeWizard,Command:i.a.NewGaugeWizard,NetType:n.a.LinearGauge,Position:l.a.Empty,Draggable:!0,AllowPermission:c.a.Create_Components_ReportItems_LinearGauge}]},{GroupName:t.TablesGroupTitle,Items:[{Title:t.List,IconName:r.getIconClass(n.a.List),NetType:n.a.List,Command:i.a.NewItem,Draggable:!0,AllowPermission:c.a.Create_Components_ReportItems_List},{Title:t.Table,IconName:r.getIconClass(n.a.Table),NetType:n.a.Table,Command:i.a.NewItem,Draggable:!0,AllowPermission:c.a.Create_Components_ReportItems_Table},{Title:t.Crosstab,IconName:r.getIconClass(n.a.Crosstab),NetType:n.a.Crosstab,Command:i.a.NewItem,Draggable:!0,AllowPermission:c.a.Create_Components_ReportItems_Crosstab},{Title:t.TableWizard,IconName:r.getIconClass(n.a.TableWizard),TemplateType:a.a.TableWizard,Command:i.a.NewTableWizard,NetType:n.a.Table,Position:l.a.Empty,Draggable:!0,AllowPermission:c.a.Create_Components_ReportItems_Table},{Title:t.CrosstabWizard,IconName:r.getIconClass(n.a.CrosstabWizard),TemplateType:a.a.CrosstabWizard,Command:i.a.NewTableWizard,NetType:n.a.Crosstab,Position:l.a.Empty,Draggable:!0,AllowPermission:c.a.Create_Components_ReportItems_Crosstab}]},{GroupName:t.ReportsGroupTitle,Items:[{Title:t.SubReport,IconName:r.getIconClass(n.a.SubReport),NetType:n.a.SubReport,Command:i.a.NewItem,Draggable:!0,AllowPermission:c.a.Create_Components_ReportItems_SubReport}]},{GroupName:t.MapsGroupTitle,Items:[{Title:t.Map,IconName:r.getIconClass(n.a.Map),NetType:n.a.Map,Command:i.a.NewItem,Draggable:!0,AllowPermission:c.a.Create_Components_ReportItems_Map},{Title:t.Choropleth,IconName:r.getIconClass(n.a.Choropleth),NetType:n.a.Map,Command:i.a.NewItem,Draggable:!0,AllowPermission:c.a.Create_Components_ReportItems_Map}]},{GroupName:t.ChartsGroupTitle,Items:[{Title:t.BarGraphWizard,IconName:r.getIconClass(a.a.BarGraphWizard),TemplateType:a.a.BarGraphWizard,Command:i.a.NewGraphWizard,NetType:n.a.Graph,Position:l.a.Empty,Draggable:!0,AllowPermission:c.a.Create_Components_ReportItems_Chart},{Title:t.ColumnGraphWizard,IconName:r.getIconClass(a.a.ColumnGraphWizard),TemplateType:a.a.ColumnGraphWizard,Command:i.a.NewGraphWizard,NetType:n.a.Graph,Position:l.a.Empty,Draggable:!0,AllowPermission:c.a.Create_Components_ReportItems_Chart},{Title:t.AreaGraphWizard,IconName:r.getIconClass(a.a.AreaGraphWizard),TemplateType:a.a.AreaGraphWizard,Command:i.a.NewGraphWizard,NetType:n.a.Graph,Position:l.a.Empty,Draggable:!0,AllowPermission:c.a.Create_Components_ReportItems_Chart},{Title:t.LineGraphWizard,IconName:r.getIconClass(a.a.LineGraphWizard),TemplateType:a.a.LineGraphWizard,Command:i.a.NewGraphWizard,NetType:n.a.Graph,Position:l.a.Empty,Draggable:!0,AllowPermission:c.a.Create_Components_ReportItems_Chart},{Title:t.PieGraphWizard,IconName:r.getIconClass(a.a.PieGraphWizard),TemplateType:a.a.PieGraphWizard,Command:i.a.NewGraphWizard,NetType:n.a.Graph,Position:l.a.Empty,Draggable:!0,AllowPermission:c.a.Create_Components_ReportItems_Chart}]},{GroupName:t.SectionsGroupTitle,Items:[{Title:t.PageHeaderSection,IconName:r.getIconClass(n.a.PageHeaderSection),NetType:n.a.PageHeaderSection,Command:i.a.NewItem,Draggable:!1,AllowPermission:c.a.Create_Components_ReportSections_PageHeader},{Title:t.PageFooterSection,IconName:r.getIconClass(n.a.PageFooterSection),NetType:n.a.PageFooterSection,Command:i.a.NewItem,Draggable:!1,AllowPermission:c.a.Create_Components_ReportSections_PageFooter},{Title:t.ReportHeaderSection,IconName:r.getIconClass(n.a.ReportHeaderSection),NetType:n.a.ReportHeaderSection,Command:i.a.NewItem,Draggable:!1,AllowPermission:c.a.Create_Components_ReportSections_ReportHeader},{Title:t.ReportFooterSection,IconName:r.getIconClass(n.a.ReportFooterSection),NetType:n.a.ReportFooterSection,Command:i.a.NewItem,Draggable:!1,AllowPermission:c.a.Create_Components_ReportSections_ReportFooter},{Title:t.TocSection,IconName:r.getIconClass(n.a.TocSection),NetType:n.a.TocSection,Command:i.a.NewItem,Draggable:!1,AllowPermission:c.a.Create_Components_ReportSections_TableOfContents}]},{GroupName:t.DataSourcesGroupTitle,Items:[{Title:t.SqlDataSource,IconName:r.getIconClass(n.a.SqlDataSource),TemplateType:a.a.SqlDataSourceWizard,Command:i.a.NewSqlDataSourceWizard,NetType:n.a.SqlDataSource,Draggable:!1,AllowPermission:c.a.Commands_DataSources_InlineDataSource_Create_Sql},{Title:t.CsvDataSource,IconName:r.getIconClass(n.a.CsvDataSource),TemplateType:a.a.CsvDataSourceWizard,Command:i.a.NewCsvDataSourceWizard,NetType:n.a.CsvDataSource,Draggable:!1,AllowPermission:c.a.Commands_DataSources_InlineDataSource_Create_Csv},{Title:t.WebServiceDataSource,IconName:r.getIconClass(n.a.WebServiceDataSource),TemplateType:a.a.WebServiceDataSourceWizard,Command:i.a.NewWebServiceDataSourceWizard,NetType:n.a.WebServiceDataSource,Draggable:!1,AllowPermission:c.a.Commands_DataSources_InlineDataSource_Create_Web},{Title:t.JsonDataSource,IconName:r.getIconClass(n.a.JsonDataSource),TemplateType:a.a.JsonDataSourceWizard,Command:i.a.NewJsonDataSourceWizard,NetType:n.a.JsonDataSource,Draggable:!1,AllowPermission:c.a.Commands_DataSources_InlineDataSource_Create_Json},{Title:t.ObjectDataSource,IconName:r.getIconClass(n.a.ObjectDataSource),TemplateType:a.a.ObjectDataSourceWizard,Command:i.a.NewObjectDataSourceWizard,NetType:n.a.ObjectDataSource,Draggable:!1,AllowPermission:c.a.Commands_DataSources_InlineDataSource_Create_Object}]}],e)}static applyPermissions(e,t){const r=t.getService(d.a);return e.forEach(e=>{e.Items=e.Items.filter(e=>r.hasPermission(e.AllowPermission))}),e.filter(e=>e.Items.length>0)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(1),n=r(0),s=r(133);class a extends s.a{get Source(){return this.getValueRaw(n.a.Source)}CanLoadDataModel(){return a.IsSourceValid(this.Source)}static IsSourceValid(e){if(!e)return!1;const t=e.NetType;return!!t&&(t==i.a.String?!!e.Value:!!e.Path)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(20),n=r(45),s=r(23),a=r(201),o=r(25),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c{constructor(e,t){if(!(t instanceof a.a))throw new Error(`ComponentWrapperDesigner must be created only for ComponentWrapper instances! CurrentInstance: ${t.Type}.`);this.provider=e,this.componentWrapper=t}get Component(){return this.componentWrapper.Component}get ComponentWrapper(){return this.componentWrapper}GetContextMenuCommands(){return[o.a.Delete]}get Provider(){return this.provider}get VisualElement(){return this.Component.Designer.VisualElement}get VisualElementContent(){return this.Component.Designer.VisualElementContent}get Overlay(){return null}Dispose(){}Resize(e){}OnResizeStart(){}Drag(e){throw new Error("Method not implemented.")}UpdateOverlay(e){throw new Error("Method not implemented.")}CalculateMinSize(){throw new Error("Method not implemented.")}GetClientBounds(e){throw new Error("Method not implemented.")}GetAbsoluteClientBounds(){throw new Error("Method not implemented.")}GetClientLocation(e){throw new Error("Method not implemented.")}GetAbsoluteClientLocation(){throw new Error("Method not implemented.")}GetPadding(e,t,r,i){throw new Error("Method not implemented.")}UpdateChildrenOverlay(){throw new Error("Method not implemented.")}UpdateResizable(){throw new Error("Method not implemented.")}Initialize(){return l(this,void 0,void 0,(function*(){}))}InitializeNewComponent(e){}Render(e){return this.VisualElement}Redraw(e=!1){}RedrawChildren(){}ToggleInteractivity(e){}GetBounds(e){return n.a.Empty}GetAbsoluteBounds(){return n.a.Empty}GetLocation(e){return i.a.Empty}GetSize(){return s.a.Empty}OnComponentChanged(e){}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(277);class n extends i.a{constructor(e,t){super(e,t)}ToggleInteractivity(e){this.ToggleVirtualSelectionStyle(this.GetReportItem()),this.ToggleInteractivityOverride(e)}ToggleVirtualSelectionStyle(e){e&&e.VisualElement.toggleClass("-table-part-selection")}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(506);class n extends i.a{getImplementationEventMap(){const e=i.a.prototype,t=Object.getOwnPropertyNames(e).filter(e=>"constructor"!==e),r=this.getInheritedClass().prototype,n=Object.getOwnPropertyNames(r).filter(e=>t.includes(e)),s=new Map;return this.getEventMap().forEach((e,t)=>{n.includes(t)&&s.set(t,e)}),s}getEventMap(){return new Map([[this.OnClick.name,"click"],[this.OnContextMenu.name,"contextmenu"],[this.OnDoubleClick.name,"dblclick"],[this.OnFocus.name,"focus"],[this.OnFocusIn.name,"focusin"],[this.OnFocusOut.name,"focusout"],[this.OnBlur.name,"blur"],[this.OnHover.name,"hover"],[this.OnKeyPress.name,"keypress"],[this.OnKeyDown.name,"keydown"],[this.OnKeyUp.name,"keyup"],[this.OnMouseDown.name,"mousedown"],[this.OnMouseEnter.name,"mouseenter"],[this.OnMouseLeave.name,"mouseleave"],[this.OnMouseMove.name,"mousemove"],[this.OnMouseOut.name,"mouseout"],[this.OnMouseOver.name,"mouseover"],[this.OnMouseUp.name,"mouseup"],[this.OnScroll.name,"scroll"]])}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(816),n=r(88),s=r(42),a=r(185),o=r(186);class l extends i.a{constructor(e,t,r,i){super(i),this.component=e,this.selectedGlyphClassname="glyph-selected",r.append(this.getTemplate()),this.visualElement=r.children().last(),this.bounds=this.calculateBounds(t),this.applySize(),this.setupHandledEventListeners(),e instanceof n.a&&this.visualElement.attr("index",e.Index)}applySize(){this.visualElement.css("width",this.bounds.Width),this.visualElement.css("height",this.bounds.Height),this.visualElement.css("left",this.bounds.Left),this.visualElement.css("top",this.bounds.Top)}cellsToReportItems(e){const t=[];return Array.from(e,e=>{var r;t.push(null!==(r=e.ReportItem)&&void 0!==r?r:e.MergeTarget.ReportItem)}),t}get ComponentReportItems(){return this.component instanceof a.a?this.cellsToReportItems(this.component.Cells):this.component instanceof o.a?this.cellsToReportItems(this.component.GetCells()):this.component instanceof s.a?[this.component]:null}get Component(){return this.component}static getClassName(){throw new Error("Must be implemented in derived class")}static getGlyphTypes(){throw new Error("Must be implemented in derived class")}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(0),n=r(102);class s extends n.a{get Value(){return this.getPropertyValue(i.a.Value)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(0),n=r(92),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends n.a{constructor(e,t,r){super(e,t,r),this.parameters=[]}get Parameters(){return this.parameters}Initialize(){const e=Object.create(null,{Initialize:{get:()=>super.Initialize}});return s(this,void 0,void 0,(function*(){this.PropertyStore[i.a.NetType]||(this.PropertyStore[i.a.NetType]=this.getType()),e.Initialize.call(this)}))}createChildComponentsFromPropertyStore(){const e=Object.create(null,{createChildComponentsFromPropertyStore:{get:()=>super.createChildComponentsFromPropertyStore}});return s(this,void 0,void 0,(function*(){yield e.createChildComponentsFromPropertyStore.call(this),yield this.createCollectionPropertyComponents(i.a.Parameters,this.Parameters)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return h})),r.d(t,"b",(function(){return p}));var i=r(59),n=r(2),s=r(7),a=r(189),o=r(90),l=r(337),c=r(338),d=r(38),u=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};class h extends o.b{initEditorsByOrder(e,t,r){const i=this.getEditorBuilders();this.widthEditor=this.createChildEditor(i,l.a,e,t),this.heightEditor=this.createChildEditor(i,c.a,e,t),r.push(this.widthEditor,this.heightEditor)}createChildEditor(e,t,r,i){const n=e.find(e=>e.builder.editorType===t);return n.builder.createInstance(r,n.propertyWrapper,this.provider,i)}getEditorBuilders(){const e=[];return e.push({builder:d.a.findEditorBuilder(l.a),propertyWrapper:this.propertyWrapper}),e.push({builder:d.a.findEditorBuilder(c.a),propertyWrapper:this.propertyWrapper}),e}updateChildEditorDisabledState(e){this.widthEditor.setEnabled(!e),this.heightEditor.setEnabled(!e)}}let p=class extends a.b{createChildEditorManager(){if(Array.isArray(this.propertyWrapper))throw new Error("SizeU editor must be initialized with a single propertyWrapper rather than array.");return new h(this.provider,this.propertyWrapper)}updateStateUi(){const e=(this.State&i.b.Disabled)===i.b.Disabled,t=(this.State&i.b.ReadOnly)===i.b.ReadOnly,r=this.$editorsPlaceholder.find(":input.editor__value");r.length&&(r.prop("disabled",e),r.prop("readonly",t),r.toggleClass("-readonly",t)),this.childEditorManager.updateChildEditorDisabledState(e)}};p=u([Object(n.a)("compound-property-unit-pair-editor"),Object(s.a)()],p)},function(e,t,r){"use strict";r.d(t,"a",(function(){return y}));var i,n=r(65),s=r(12),a=r(49),o=r(2),l=r(7),c=r(4),d=r(127),u=r(57),h=r(91),p=r(75),m=r(3),g=r(29),f=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},v=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let y=i=class extends a.a{get AssetManagerWindowRef(){return this.assetManagerWindowRef}updateStateUi(){}getTemplate(){return this.templates.Editors.uploadImageEditorComponentTemplate}createFocusStrategy(){return new h.f(this.visualElement)}get Value(){return this.getByPropertyName(e=>{e.value})}set Value(e){this.setByPropertyName(e=>{e.value},e)}get MimeType(){return this.getByPropertyName(e=>{e.mimeType})}set MimeType(e){this.setByPropertyName(e=>{e.mimeType},e)}refreshValue(){this.Value=this.propertyWrapper.GetValue()}beforeInit(){super.beforeInit(),this.Value=this.propertyWrapper.GetValue(),this.resourceService=this.provider.getServiceByName(m.a.ResourceStorageService)}isEmpty(){return!this.Value}getContentStyle(){return this.Value?`background-image: url("data:${this.MimeType};base64,${this.Value}")`:""}getFileFromAssetManager(){this.assetManagerWindowRef=new d.a(this.provider).create(null,{initialPath:u.a.imagesResourceFolder,assetManagerConfig:p.a.getSelectResourceConfig(this.provider)}),this.assetManagerWindowRef.component.onClosing.subscribeOnce(e=>v(this,void 0,void 0,(function*(){const t=yield this.resourceService.GetBlob({uri:e.uri});Object(c.d)(t.Data,e=>this.setImageData(e))}))),this.assetManagerWindowRef.open()}resetToDefaultValueInternal(){super.resetToDefaultValueInternal(),this.Value=null,this.view.element.parent().trigger(n.a.UploadImageEditorFileChanged,this.Value)}setValue(e){const t=$(e.currentTarget);i.readImage(t,this.provider).fail(e=>this.provider.getService(s.a).error(e)).done(e=>{e&&(t.val(""),this.setImageData(e))})}setImageData(e){this.Value=e.split(",")[1],this.MimeType=e.split(";")[0].split(":")[1],this.updatePropertyWrapperValue(this.Value),this.view.element.parent().trigger(n.a.UploadImageEditorFileChanged,this.mimeType),this.resetManager.checkAndUpdateReset()}static readImage(e,t){const r=$.Deferred(),n=e.get(0).files;if(n&&n[0]){const e=n[0].name;i.isSvgFileSelected(e)&&r.reject(new g.a("SVG files are not supported for image upload. Set the file path or the SVG markup as expression in the property editor.",t)),i.isImageFile(e)||r.reject(new g.a(e+" is not a supported image file",t));const s=new FileReader;s.onload=e=>r.resolve(e.target.result),s.readAsDataURL(n[0])}else r.resolve(void 0);return r.promise()}static isSvgFileSelected(e){return e.toLowerCase().endsWith(".svg")}static isImageFile(e){const t=e.toLowerCase();return["bmp","gif","jpg","jpeg","png","ico","b64","svg"].some(e=>t.endsWith("."+e))}};f([Object(o.b)()],y.prototype,"MimeType",null),y=i=f([Object(o.a)("upload-image-editor"),Object(l.b)("Image","Telerik.WebReportDesigner.WebDesignerUploadImageEditor")],y)},function(e,t,r){"use strict";r.d(t,"a",(function(){return p})),r.d(t,"b",(function(){return m}));var i=r(2),n=r(10),s=r(170),a=r(192),o=r(3),l=r(339),c=r(112),d=r(38),u=r(182),h=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let p=class extends s.a{constructor(){super(...arguments),this.typeInstanceTypesEditorValueChanged=new n.b,this.typeInstanceEditorValueChanging=e=>{e.detail.cancel=!0,this.typeInstanceTypesEditorValueChanged.next({isInstanceTypeSelected:this.isInstanceTypeSelected,instanceTypeName:this.typeInstanceTypesEditor.instanceTypeName})},this.componentChanged=e=>{this.typeInstanceTypesEditor.initEditors(e.BrowsablePropertyWrappers)}}get isInstanceTypeSelected(){return!!this.typeInstanceTypesEditor&&!!this.typeInstanceTypesEditor.instanceTypeName}get additionalEditorTemplate(){return`<div id="${this.uid}__instanceTypesCollectionEditor">\n                </div>`}get $editorsPlaceholder(){return $("#"+this.uid+"__instanceTypesCollectionEditor")}beforeInit(){super.beforeInit(),this.schemaService=this.provider.getServiceByName(o.a.ISchemaService)}afterInit(){super.afterInit(),this._$injectedInputData.componentChanged.subscribe(this.componentChanged)}loadEditors(e){if(this._$injectedInputData.editorType){const e=this._$injectedInputData.component,t=this._$injectedInputData.propertyWrapper,r=new c.a([e],[e.PropertyStore],t.Property,t);this.typeInstanceTypesEditor=this.getCollectionTypeInstanceEditor(r),this.typeInstanceTypesEditor.EventsEmitter.on(l.a,this.typeInstanceEditorValueChanging),this.typeInstanceTypesEditor.Expanded=!0,this.childEditors.push(this.typeInstanceTypesEditor)}}beforeDispose(){super.beforeDispose(),this.typeInstanceTypesEditor&&this.typeInstanceTypesEditor.EventsEmitter.off(l.a,this.typeInstanceEditorValueChanging),this._$injectedInputData.componentChanged.unsubscribe(this.componentChanged)}getCollectionTypeInstanceEditor(e){return this._$injectedInputData.editorType.editorType===u.b?d.a.findEditorBuilder(a.b).createInstance(this.$editorsPlaceholder,e,this.provider):d.a.findEditorBuilder(a.a).createInstance(this.$editorsPlaceholder,e,this.provider)}};p=h([Object(i.a)("instace-types-collection-editor-window")],p);class m extends s.b{get component(){return p}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d})),r.d(t,"b",(function(){return u}));var i=r(62),n=r(2),s=r(7),a=r(90),o=r(417),l=r(91),c=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};class d extends a.a{get propertiesOrder(){return i.a.Alignments}}let u=class extends o.a{createChildEditorManager(){return new d(this.provider,this.propertyWrapper)}updateStateUi(){}createFocusStrategy(){return new l.a(this.visualElement)}get $editorsPlaceholder(){return this.$visualElement.find(" > .editor__content .editor__inline-values")}getTemplate(){return this.templates.Editors.EditorWrappers.alignmentEditorComponentTemplate}};u=c([Object(n.a)("alignment-editor"),Object(s.b)("Alignment")],u)},function(e,t,r){"use strict";r.d(t,"a",(function(){return u})),r.d(t,"b",(function(){return h}));var i=r(62),n=r(3),s=r(0),a=r(7),o=r(2),l=r(106),c=r(90),d=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};class u extends c.b{constructor(e,t){super(e,t),this.schemaService=this.provider.getServiceByName(n.a.ISchemaService)}initEditorsByOrder(e,t,r){this.getEditorBuilders().forEach(i=>this.createChildeEitor(i,e,t,r))}createChildeEitor(e,t,r,i){const n=e.builder.createInstance(t,e.propertyWrapper,this.provider,r);i.push(n)}getEditorBuilders(){const e=[];for(const t of i.a.FontCollection){const r=this.schemaService.getEditorType(t,null);for(const i of this.propertyWrapper)if(t===i.Name||t===s.a.Alignment){this.addChildModels(t,i,e,r);break}}return e}addChildModels(e,t,r,i){const n=e===s.a.Alignment?this.propertyWrapper:t;r.push({builder:i,propertyWrapper:n})}}let h=class extends l.a{createChildEditorManager(){return new u(this.provider,this.propertyWrapper)}updateStateUi(){}};h=d([Object(o.a)("font-collection-editor"),Object(a.b)("FontCollection")],h)},function(e,t,r){"use strict";r.d(t,"a",(function(){return h})),r.d(t,"b",(function(){return p}));var i=r(829),n=r(62),s=r(2),a=r(7),o=r(90),l=r(417),c=r(38),d=r(91),u=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};class h extends o.b{initEditorsByOrder(e,t,r){this.getEditorBuilders().forEach(i=>this.createChildEditor(i,e,t,r))}createChildEditor(e,t,r,i){const n=e.builder.createInstance(t,e.propertyWrapper,this.provider,r);i.push(n)}getEditorBuilders(){const e=[];for(const t of n.a.FontStyle){const r=this.propertyWrapper.find(e=>e.Name===t);r&&e.push({builder:c.a.findEditorBuilder(i.a),propertyWrapper:r})}return e}}let p=class extends l.a{getTemplate(){return this.templates.Editors.EditorWrappers.fontStyleEditorComponentTemplate}createFocusStrategy(){return new d.d(this.visualElement)}createChildEditorManager(){return new h(this.provider,this.propertyWrapper)}updateStateUi(){}get $editorsPlaceholder(){return this.$visualElement.find(" > .editor__content .editor__inline-values")}};p=u([Object(s.a)("font-style-editor"),Object(a.b)("FontStyle")],p)},function(e,t,r){"use strict";r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return d}));var i=r(62),n=r(7),s=r(2),a=r(106),o=r(90),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};class c extends o.a{get propertiesOrder(){return i.a.Line}}let d=class extends a.a{createChildEditorManager(){return new c(this.provider,this.propertyWrapper)}updateStateUi(){}get $editorsPlaceholder(){return this.$visualElement.find(".editor__editors-container")}};d=l([Object(s.a)("line-editor"),Object(n.b)("Line")],d)},function(e,t,r){"use strict";r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return c}));var i=r(62),n=r(7),s=r(2),a=r(189),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};class l extends a.a{get pairPropertyNames(){return i.a.Location}}let c=class extends a.b{updateStateUi(){}createChildEditorManager(){return new l(this.provider,this.propertyWrapper)}};c=o([Object(s.a)("location-editor"),Object(n.b)("PointU")],c)},function(e,t,r){"use strict";r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return c}));var i=r(62),n=r(7),s=r(2),a=r(189),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};class l extends a.a{get pairPropertyNames(){return i.a.Size}}let c=class extends a.b{createChildEditorManager(){return new l(this.provider,this.propertyWrapper)}updateStateUi(){}};c=o([Object(s.a)("size-editor"),Object(n.b)("SizeU")],c)},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(69),n=r(21);function s(e,t){return{GetFolderContents:{uri:"/folder/contents?uri={uri}",httpMethod:i.b.get,errorMessage:(t,r)=>`Could not retrieve contents for ${t.uri?"folder 'model.uri'":"base "+e+" folder"}.`,successMessage:(e,t)=>{}},CreateFolder:{uri:"/folder",httpMethod:i.b.post,errorMessage:(e,t)=>`Could not create folder '${e.name}'.`,successMessage:(e,t)=>`Folder '${e.name}' created.`},RenameFolder:{uri:"/folder/rename",httpMethod:i.b.put,errorMessage:(e,t)=>`Could not rename folder '${e.name}'.`,successMessage:(e,t)=>`Folder renamed to '${e.name}'.`},DeleteFolder:{uri:"/folder/delete?uri={uri}",httpMethod:i.b.delete,errorMessage:(e,t)=>`Could not delete folder '${e.uri}'.`,successMessage:(e,t)=>`Folder '${e.uri}' deleted.`},Get:{uri:"?uri={uri}",httpMethod:i.b.get,errorMessage:(e,t)=>`Could not retrieve '${e.uri}'.`,successMessage:(e,t)=>{}},Save:{uri:"/save?name={name}&parentUri={parentUri}",httpMethod:i.b.post,errorMessage:(e,t)=>`Could not save '${e.name}'.`,successMessage:(e,t)=>`'${n.a.appendFilePathToPath(e.parentUri,e.name)}' saved.`},Delete:{uri:"/delete?uri={uri}",httpMethod:i.b.delete,errorMessage:(e,t)=>`Could not delete '${e.uri}'.`,successMessage:(e,t)=>`'${e.uri}' deleted.`},Rename:{uri:"/rename",httpMethod:i.b.put,errorMessage:(e,t)=>`Could not rename to '${e.name}'.`,successMessage:(e,t)=>`Renamed to '${e.name}'.`},Upload:{uri:"/raw?name={name}&parentUri={parentUri}",httpMethod:i.b.post,errorMessage:(e,t)=>`Could not upload '${e.name}'.`,successMessage:(e,t)=>`'${e.name}' uploaded.`},GetBlob:{uri:"/raw?uri={uri}",httpMethod:i.b.get,errorMessage:(e,t)=>`Could not retrieve '${e.uri}'.`,successMessage:(e,t)=>{}},Exists:{uri:"/exists?uri={uri}",httpMethod:i.b.get,errorMessage:(e,t)=>`'${e.uri}' does not exists.`,successMessage:(e,t)=>{}}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(67),n=r(18),s=r(69),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends s.a{constructor(e,t,r){super(e,t,r),this.provider=e,this.reportDesignerApiUrl=t,this.storageUri=r,this.endpointData=this.getEndpointData()}Exists(e){var t;return a(this,void 0,void 0,(function*(){const r=yield this.performRequest(i.e,e,this.endpointData.Exists);return(null===(t=r.serverStatusMessage)||void 0===t?void 0:t.includes("not found"))?n.b.createSuccess(!1,r.statusCode,r.FullMessage):r.isError?n.b.createError(r.actionMessage,r.statusCode,r.serverStatusMessage):r.mapSuccess(e=>{var t;return null!=e?e:null===(t=r.statusCode)||void 0===t?void 0:t.startsWith("204")})}))}GetFolderContents(e){return a(this,void 0,void 0,(function*(){return yield this.performRequest(i.g,e,this.endpointData.GetFolderContents)}))}Get(e){return a(this,void 0,void 0,(function*(){return yield this.performRequest(i.e,e,this.endpointData.Get)}))}Save(e){return a(this,void 0,void 0,(function*(){return yield this.performRequest(i.j,e,this.endpointData.Save)}))}Delete(e){return a(this,void 0,void 0,(function*(){return yield this.performRequest(i.b,e,this.endpointData.Delete)}))}Rename(e){return a(this,void 0,void 0,(function*(){return yield this.performRequest(i.h,e,this.endpointData.Rename)}))}GetBlob(e){return a(this,void 0,void 0,(function*(){return yield this.performRequest(i.e,e,this.endpointData.GetBlob)}))}Upload(e){return a(this,void 0,void 0,(function*(){return yield this.performRequest(i.k,e,this.endpointData.Upload)}))}CreateFolder(e){return a(this,void 0,void 0,(function*(){return yield this.performRequest(i.a,e,this.endpointData.CreateFolder)}))}DeleteFolder(e){return a(this,void 0,void 0,(function*(){return yield this.performRequest(i.c,e,this.endpointData.DeleteFolder)}))}RenameFolder(e){return a(this,void 0,void 0,(function*(){return yield this.performRequest(i.i,e,this.endpointData.RenameFolder)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(27),n=r(12),s=r(8),a=r(18),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l{constructor(e,t,r){this.originalStorage=r,this.sr=e.getService(s.a),this.notifications=e.getService(n.a)}GetFolderContents(e){return this.originalStorage.GetFolderContents(e)}Get(e){return this.originalStorage.Get(e)}GetBlob(e){return this.originalStorage.GetBlob(e)}Exists(e){return this.originalStorage.Exists(e)}RenameFolder(e){return o(this,void 0,void 0,(function*(){return this.displayDemoModeWarning(this.sr.Rename),a.b.createError("")}))}DeleteFolder(e){return o(this,void 0,void 0,(function*(){return this.displayDemoModeWarning(this.sr.DeleteButton),a.b.createError("")}))}Rename(e){return o(this,void 0,void 0,(function*(){return this.displayDemoModeWarning(this.sr.Rename),a.b.createError("")}))}Save(e){return o(this,void 0,void 0,(function*(){return this.displayDemoModeWarning(this.sr.SaveButton),a.b.createError("")}))}Delete(e){return o(this,void 0,void 0,(function*(){return this.displayDemoModeWarning(this.sr.DeleteButton),a.b.createError("")}))}Upload(e){return o(this,void 0,void 0,(function*(){this.displayDemoModeWarning(this.sr.Upload);const e=i.a.String(this.sr.ActionDisabledInDemoMode,{action:this.sr.Upload});return Promise.resolve(a.b.createError(e))}))}CreateFolder(e){return o(this,void 0,void 0,(function*(){return this.displayDemoModeWarning(this.sr.CreateNewFolder),Promise.resolve(a.b.createError("DemoMode"))}))}displayDemoModeWarning(e){const t=i.a.String(this.sr.ActionDisabledInDemoMode,{action:e});this.notifications.warning(t)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static getExpression(e){const t=i.getExpressionRecursive(e);return t?"="+t:""}static getLeaf(e){if(e.ChildGroups)for(const t of e.ChildGroups)return i.getLeaf(t);return e}static getExpressionRecursive(e){let t="";if(e.Groupings)for(const r of e.Groupings){t.length>0&&(t+=" + '/' + ");let e=r.Expression;e.startsWith("=")&&(e=e.substring(1)),t+=e}if(e.ChildGroups)for(const r of e.ChildGroups)return`${t} + '/' + ${i.getExpressionRecursive(r)}`;return t}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t,r,i,n){this.IsChecked=e,this.Title=t,this.Name=r,this.IconName=n,this.Value=i}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return o}));var i=r(114),n=r(10),s=r(8);class a extends i.a{constructor(e,t){super(),this.isEnabledChanged=new n.b,this.IsEnabled=e}get IsEnabled(){return this.getByPropertyName(e=>{e.isEnabled})}set IsEnabled(e){this.setByPropertyName(e=>{e.isEnabled},e),this.isEnabledChanged.next()}}class o extends n.a{constructor(){super(...arguments),this.selectedTypeChanged=new n.c}beforeInit(){super.beforeInit(),this.stringResources=this.provider.getService(s.a),this.RadioChecked=this.isEnabled?1:null,this.model.isEnabledChanged.subscribe(()=>{this.RadioChecked=this.isEnabled?1:null})}get RadioChecked(){return this.getByPropertyName(e=>{e.radioChecked})}set RadioChecked(e){this.setByPropertyName(e=>{e.radioChecked},e)}selectionChanged(e){this.selectedTypeChanged.emit()}get isEnabled(){return this.model.IsEnabled}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return c})),r.d(t,"a",(function(){return d}));var i=r(10),n=r(2),s=r(297),a=r(3),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c extends s.b{constructor(e,t){super(e),this.externalFileChanged=new i.b,this.IsEnabled=e,this.ExternalFile=t}get ExternalFile(){return this.getByPropertyName(e=>{e.externalFile})}set ExternalFile(e){this.setByPropertyName(e=>{e.externalFile},e),this.externalFileChanged.next()}}let d=class extends s.a{constructor(){super(...arguments),this.selectedTypeChanged=new i.c,this.isExternalFileValid=()=>l(this,void 0,void 0,(function*(){let e=!1;this.model.ExternalFile&&(e=(yield this.resourceService.Exists({uri:this.model.ExternalFile.name})).Data,e?(this.model.ExternalFile=void 0,this.ExternalFileAlreadExists=!0):this.ExternalFileAlreadExists=!1),this.ExternalFileError=e?this.stringResources.DataSourceExistingFileError:this.stringResources.DataSourceExternalFileError}))}getTemplate(){return this.templates.Editors.Wizards.Shared.uploadJsonFileComponentTemplate}get ExternalFileError(){return this.getByPropertyName(e=>{e.externalFileError})}set ExternalFileError(e){this.setByPropertyName(e=>{e.externalFileError},e)}get UploadFileHasIncorrectExtension(){return this.getByPropertyName(e=>{e.uploadFileHasIncorrectExtension})}set UploadFileHasIncorrectExtension(e){this.setByPropertyName(e=>{e.uploadFileHasIncorrectExtension},e)}get ExternalFileAlreadExists(){return this.getByPropertyName(e=>{e.externalFileAlreadExists})}set ExternalFileAlreadExists(e){this.setByPropertyName(e=>{e.externalFileAlreadExists},e)}get isExternalFileInvalid(){return this.model.IsEnabled&&(!this.model.ExternalFile||this.UploadFileHasIncorrectExtension||this.ExternalFileAlreadExists)}uploadFile(e){const t=e.files;t&&t[0]&&(this.UploadFileHasIncorrectExtension=!t[0].name.endsWith(".json"),this.UploadFileHasIncorrectExtension||(this.model.ExternalFile=t[0]))}fileRemoved(e){var t;const r=e.files;r&&r[0]&&(r[0].rawFile===(null===(t=this.model.ExternalFile)||void 0===t?void 0:t.rawFile)&&(this.model.ExternalFile=void 0),this.isExternalFileValid())}beforeInit(){super.beforeInit(),this.resourceService=this.provider.getServiceByName(a.a.ResourceStorageService),this.UploadFileHasIncorrectExtension=!1,this.model.externalFileChanged.subscribe(this.isExternalFileValid),this.ExternalFileError=this.stringResources.DataSourceExternalFileError}renderInitialFiles(){this.model.ExternalFile&&this.view.element.find("#input-external-file").data("kendoUpload")._renderInitialFiles([{name:this.model.ExternalFile.name,size:this.model.ExternalFile.size,extension:this.model.ExternalFile.extension}])}beforeDispose(){super.beforeDispose(),this.model.externalFileChanged.unsubscribe(this.isExternalFileValid)}};o([Object(n.b)()],d.prototype,"title",void 0),o([Object(n.b)({updateOnChange:!0})],d.prototype,"model",void 0),o([Object(n.b)()],d.prototype,"additionalInformation",void 0),o([n.d],d.prototype,"selectedTypeChanged",void 0),d=o([Object(n.a)("upload-json-file")],d)},function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return s}));var i=r(1);class n{constructor(e="",t="",r="",i=""){this.name=e,this.dataType=t,this.value=r,this.designTimeValue=i}}class s{constructor(e,t,r={Value:"",NetType:i.a.String},n=i.a.ObjectDataSourceParameter){this.Name=e,this.DataType=t,this.Value=r,this.NetType=n}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return l}));var i,n=r(85),s=r(390),a=r(13),o=r(392);!function(e){e[e.Width=300]="Width",e[e.Height=150]="Height"}(i||(i={}));class l{constructor(e){this.provider=e}create(e){const t=new n.a(this.provider),r=this.provider.getService(a.c),l=new o.a,c={minHeight:i.Height,minWidth:i.Width,maxHeight:i.Height+20,maxWidth:i.Width};t.withComponent(s.a).withTitle(e).withVisible(!1).withWindowDimensions(c).withModal(!0);return t.build({additionalConfigCallback:e=>{e.resizable=!1,e.activate=e=>r.emit(l)}})}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(56),n=r(1),s=r(0),a=r(76);class o extends i.a{accept(e){e.VisitBarcode(this)}get Encoder(){return this.getPropertyValue(s.a.Encoder)}get ValueFromBillData(){const e=this.Encoder;if(e&&e[s.a.NetType]===n.a.SwissQRCodeEncoder){const t=this.getProperty(s.a.Encoder).GetChildProperties(n.a.SwissQRCodeEncoder).find(e=>e.Name===s.a.ValueFromBillData),r=t.GetValue(this,e)||t.DefaultValue;return a.a.IsString(r)?"true"===r.toLowerCase():r}return!1}}o.typeName=n.a.Barcode},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(80),n=r(1);class s extends i.a{accept(e){e.VisitCheckBox(this)}}s.typeName=n.a.CheckBox},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(0),n=r(227),s=r(1),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends n.a{constructor(e,t,r,i=!0){super(e,t,r,i),this.mapLegends=[],this.baseCategoryGroups=[]}canContain(e){return!1}canBeContained(){return!1}get Legends(){return this.mapLegends}get GeoLocationGroups(){return this.baseCategoryGroups}get ShapeMapGroups(){return this.baseCategoryGroups}createChildComponentsFromPropertyStore(){const e=Object.create(null,{createChildComponentsFromPropertyStore:{get:()=>super.createChildComponentsFromPropertyStore}});return a(this,void 0,void 0,(function*(){yield e.createChildComponentsFromPropertyStore.call(this),yield this.createCollectionPropertyComponents(i.a.Legends,this.mapLegends),yield this.createCollectionPropertyComponents(i.a.GeoLocationGroups,this.baseCategoryGroups),yield this.createCollectionPropertyComponents(i.a.ShapeMapGroups,this.baseCategoryGroups)}))}accept(e){e.VisitMap(this)}}o.typeName=s.a.Map},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(0),n=r(56),s=r(1);class a extends n.a{get Value(){return this.getPropertyValue(i.a.Value)}accept(e){e.VisitHtmlTextBox(this)}}a.typeName=s.a.HtmlTextBox},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(56),n=r(1);class s extends i.a{accept(e){e.VisitPictureBox(this)}}s.typeName=n.a.PictureBox},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(56),n=r(1);class s extends i.a{accept(e){e.VisitShape(this)}}s.typeName=n.a.Shape},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(42),n=r(1),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends i.a{InitializeRowAndColumnGroups(){return s(this,void 0,void 0,(function*(){yield this.rowGroups.Initialize("rowGroup"),yield this.columnGroups.Initialize("columnGroup")}))}}a.typeName=n.a.Crosstab},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(42),n=r(1);class s extends i.a{}s.typeName=n.a.List},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(68),n=r(0),s=r(92);class a extends s.a{constructor(e,t,r){super(a.getPropertyStore(),t,r),this.groups=e}get Groups(){return this.groups}static getPropertyStore(){return{[n.a.NetType]:"ItemCollection",[n.a.Type]:"ItemCollection",[n.a.Name]:"Groups"}}getType(){return i.a.TableGroups}}a.typeName=i.a.TableGroups},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(68),n=r(0),s=r(92);class a extends s.a{constructor(e,t,r){super(a.getPropertyStore(),t,r),this.CellContainer=e}static getPropertyStore(){return{[n.a.NetType]:"ItemCollection",[n.a.Type]:"ItemCollection",[n.a.Name]:"Cells"}}getType(){return i.a.TablePart}}a.typeName=i.a.TablePart},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(0);class n{static resetPropertyWrapperValue(e){const t=e.ParentWrapper;for(const r of t.Components){const i=r.PropertyStore[t.Name];i&&delete i[e.Name]}}static updatePropertyWrapperValue(e,t){const r=e.ParentWrapper;if(!t||""===t)return!1;for(const s of r.Components){let a,o;e.Name===i.a.Expression?(a=n.createExpressionPropertyStore(t),o=i.a.Image):(a=n.createImagePropertyStore(t),o=i.a.Expression);let l=s.PropertyStore[r.Name];l?(l[e.Name]=t,delete l[o]):l=s.PropertyStore[r.Name]=a}return e.SetValueRaw(null),!0}static createExpressionPropertyStore(e){return{[i.a.NetType]:i.a.ImageSource,[i.a.Expression]:e}}static createImagePropertyStore(e){return{[i.a.NetType]:i.a.ImageSource,[i.a.Image]:e}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var i,n=r(123),s=r(559),a=r(8),o=r(10),l=r(2),c=r(21),d=r(4),u=r(183),h=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},p=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let m=i=class extends o.a{constructor(){super(...arguments),this.itemsSelected=new o.c,this.fileDoubleClicked=new o.c,this.navigated=new o.c}getTemplate(){return'<div class="twd-filemanager"></div>'}get toolbarButtons(){return this.fileManager.toolbar.options.items}get viewType(){return this.fileManager._viewType}get selectedItems(){return this.fileManager.getSelected()}selectItem(e){var t,r,i=null===(r=null===(t=this.fileManager)||void 0===t?void 0:t._view)||void 0===r?void 0:r.listView;null==i||i.select(i.element.find(`[title='${e}']`).first()),null==i||i.trigger("change")}togglePreview(){const e=this.fileManager.toolbar.fileManagerDetailsToggle.switchInstance;e.toggle(),e.trigger("change")}replaceFolderItems(e,t){const r=this.fileManagerService.findResourceByRecursive(this.rootLevel,t=>t.uri===e);r?r.isDirectory?(r.items=t,this.fileManager.refresh()):d.b.logError(e+" is not a folder!"):d.b.logError(`Folder ${e} not found when trying to replace items!`)}tryGetSelectedItemFromContentView(e){return this.fileManagerService.tryGetSelectedItemFromContentView(e,this.fileManager,this.rootLevel)}tryGetFolderFromTreeView(e){return this.fileManagerService.tryGetFolderFromTreeView(this.fileManager,e,this.rootLevel)}refresh(){this.fileManager.refresh()}toggleToolbarButton(e,t){this.fileManager.toolbar.enable(this.getToolbarButtonElement(e),t)}getToolbarButtonElement(e){return $("#"+e.id)}getCurrentTarget(e){return this.fileManagerService.tryGetSelectedItem(e,this.fileManager,this.rootLevel)}doNavigation(e){return p(this,void 0,void 0,(function*(){if(!e)return this.fileManager.navigate(e),void this.navigated.emit(null);e=c.a.ensureTrailingPathSeparator(e),this.navigated.emit(this.findFolderByPath(e)),yield this.fileManagerService.getContentsForFolder(e,this.rootLevel,this.callbacks.requestContent),this.fileManager.navigate(e),this.refresh()}))}beforeInit(){super.beforeInit(),this.fileManagerService=new s.a(this.dataConfig.excludedFoldersFromSearchPaths),this.stringResources=this.provider.getService(a.a)}afterInit(){super.afterInit(),this.initFileManagerWidget(),this.callbacks.onItemAdded.subscribe(e=>p(this,void 0,void 0,(function*(){return yield this.addItemFromData(e)}))),this.callbacks.onItemRemoved.subscribe(e=>p(this,void 0,void 0,(function*(){return yield this.removeItemFromData(e)}))),this.callbacks.requestContent().then(e=>p(this,void 0,void 0,(function*(){this.rootLevel=e,this.setFileManagerDataSource({schema:n.b.fileManagerSchema,data:this.rootLevel}),yield this.navigateToInitialPath(),this.dataConfig.initialState.viewDetails&&this.togglePreview()}))),this.callbacks.executeCommand.subscribe(e=>this.fileManager.executeCommand({command:e.command,options:e.args}))}onDataLoaded(){this.dataLoaded=!0,this.PerformPostloadingOperations()}onWindowLoaded(){this.windowLoaded=!0,this.PerformPostloadingOperations()}PerformPostloadingOperations(){this.dataLoaded&&this.windowLoaded&&(u.a.scrollTreeViewToSelectedNode(this.fileManager.treeView.widgetComponent,!1),this.selectItem(this.dataConfig.initialItem))}beforeDispose(){super.beforeDispose(),this.fileManagerMemento.restore(),this.fileManager.destroy()}setFileManagerDataSource(e){this.fileManager.setDataSource(e),this.configureFileManager()}initFileManagerWidget(){var e,t,r;this.fileManagerMemento=n.b.addPatches(this,this.dataConfig.commands),this.fileManager=$(".twd-filemanager").kendoFileManager({dataSource:{schema:kendo.data.schemas.filemanager,data:this.rootLevel},toolbar:{items:this.dataConfig.toolbarButtons},views:{grid:{columns:null===(e=this.dataConfig.grid)||void 0===e?void 0:e.columns,resizable:null===(r=null===(t=this.dataConfig.grid)||void 0===t?void 0:t.resizable)||void 0===r||r},list:{template:this.dataConfig.listTemplate},tree:{expand:e=>this.onTreeViewExpandFromIcon(e)}},initialView:i.listViewType,contextMenu:this.dataConfig.contextMenuConfig,previewPane:{singleFileTemplate:this.dataConfig.previewPaneSingleFileTemplate},draggable:!1,resizable:!0,breadcrumb:!0,height:"100%",open:e=>this.onOpen(e),select:e=>this.onSelect(e),navigate:e=>this.onNavigate(e),messages:n.b.getLocalization(this.stringResources),execute:e=>{e.command===n.a.ChangeView&&this.callbacks.viewChanged?this.callbacks.viewChanged(e.options):e.command===n.a.TogglePane&&this.callbacks.viewDetails&&this.callbacks.viewDetails(this.fileManager.toolbar.fileManagerDetailsToggle.switchInstance.value())}}).data("kendoFileManager"),this.configureFileManager()}onTreeViewExpandFromIcon(e){e.preventDefault();const t=this.tryGetFolderFromTreeView($(e.node));if(t){this.doNavigation(t.path);var r=this.fileManager._view.listView;r.select(r.element.find("div.k-listview-item").first())}else d.b.logDebug("Could not find folder when expanding from treeView expand icon! Debug info:",e.node,e.sender)}findFolderByPath(e){return this.fileManagerService.findFolderByPathRecursive(e,this.rootLevel)}refreshPreview(){this.fileManager._setPreviewPaneContent()}configureFileManager(){this.configureTreeView(),this.configureToolbar()}configureTreeView(){var e;const t=null===(e=this.dataConfig.treeViewConfig)||void 0===e?void 0:e.initialTreeViewWidth;t&&this.view.element.find(".k-filemanager-navigation").width(t)}configureToolbar(){for(let e of this.fileManager.toolbar.options.items){const t=e,r=this.getToolbarButtonElement(t);if(!r||!r.length||!t.width)continue;let i;i="search"===t.name?this.view.element.find(".k-toolbar-item .k-searchbox"):"details"===t.name?this.fileManager.toolbar.fileManagerDetailsToggle.element:r,i.width(t.width)}}navigateToInitialPath(){return p(this,void 0,void 0,(function*(){yield this.navigateToPath(this.dataConfig.initialPathPartsToNavigateTo),this.onDataLoaded()}))}navigateToPath(e){return p(this,void 0,void 0,(function*(){if(e&&e.length){let t;for(const r of e)t=t?c.a.appendFolderPathToPath(t,r):c.a.ensureTrailingPathSeparator(r),yield this.doNavigation(t)}}))}onNavigate(e){var t;return p(this,void 0,void 0,(function*(){e.preventDefault(),yield this.doNavigation(null===(t=e.path)||void 0===t?void 0:t.replace(d.b.genLTrimRegex("/"),""))}))}onSelect(e){this.itemsSelected.emit(e.entries)}onOpen(e){e.entry.isDirectory||this.fileDoubleClicked.emit(e.entry)}addItemFromData(e){return p(this,void 0,void 0,(function*(){e.forEach(e=>p(this,void 0,void 0,(function*(){e.parentPath?this.findFolderByPath(e.parentPath).items.push(e):(this.rootLevel.push(e),this.fileManager.setFileManagerDataSource(this.rootLevel));this.refresh()})))}))}removeItemFromData(e,t=!0){return p(this,void 0,void 0,(function*(){if(!e.length)return;let r;if(e.forEach(e=>{if(e.parentPath){var t=this.findFolderByPath(e.parentPath);r=r||1===t.items.filter(e=>e.isDirectory).length&&e.isDirectory,t.items.splice(t.items.findIndex(t=>t.uri===e.uri),1)}else this.rootLevel=this.rootLevel.filter(t=>t.uri!==e.uri),this.fileManager.setFileManagerDataSource(this.rootLevel)}),t&&(this.refresh(),yield this.navigateToPath(c.a.splitPath(e[0].parentPath)),r)){const e=this.fileManager.treeView.treeView.dataSource.data().find(e=>"Reports"===e.name).items;e.forEach(t=>e.pop())}}))}};m.listViewType="list",h([Object(l.b)()],m.prototype,"dataConfig",void 0),h([Object(l.b)()],m.prototype,"callbacks",void 0),h([l.d],m.prototype,"itemsSelected",void 0),h([l.d],m.prototype,"fileDoubleClicked",void 0),h([l.d],m.prototype,"navigated",void 0),m=i=h([Object(l.a)("file-manager")],m)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(232),n=r(71),s=r(68),a=r(79);class o extends i.a{get Report(){return this.report||(this.report=this.findReportComponent()),this.report}refreshValue(){var e;this.DropDownListValue=null!==(e=this.getPropertyWrapperValue())&&void 0!==e?e:s.a.None}get isResetVisible(){return!0}getDefaultValue(e,t=!1){return s.a.None}findReportComponent(){for(const e of this.propertyWrapper.Components)return a.a.GetParentByTypeRecursive(e,n.a);return null}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r(50),n=r(0),s=r(71),a=r(2),o=r(7),l=r(315),c=r(413),d=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let u=class extends i.a{expandChildEditors(){super.expandChildEditors();const e=this.propertyWrapper.Components.find(e=>e instanceof s.a);if(e){const t=e.getPropertyValue(n.a.PageSettings,n.a.PaperKind);this.updatePaperSizeEditorUI(t)}}canCreateEditor(e){return!c.b.nonAllowedEditors.includes(e.Name)}updatePaperSizeEditorUI(e){const t=this.childEditors.find(e=>e instanceof l.a);t&&t.updateEditorUi(e)}};u=d([Object(a.a)("page-settings-editor"),Object(o.b)("Telerik.Reporting.Design.PageSettingsEditor")],u)},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(3),n=r(7),s=r(2),a=r(283),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let c=class extends a.b{updateEditorUi(e){const t="custom"===e.toLowerCase();this.Enabled=t,t||this.setUnitEditorsValue(e)}setUnitEditorsValue(e){return l(this,void 0,void 0,(function*(){const t=this.provider.getServiceByName(i.a.ISchemaService),r=yield t.getPaperSize(e);if(r){const e=`${r.Width}${t.CultureContext.listSeparator} ${r.Height}`;this.propertyWrapper.SetValue(e),this.refreshValue()}}))}};c=o([Object(s.a)("paper-size-editor"),Object(n.b)("Telerik.WebReportDesigner.WebDesignerPaperSizeEditor")],c)},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(232);class n extends i.a{beforeInit(){this.seriesBase=this.propertyWrapper.Components[0],this.graphBase=this.seriesBase.Parent,super.beforeInit()}get componentSeries(){return this.seriesBase}get component(){return this.graphBase}get dropDownListOptions(){return this.getGraphItemCollection().map(e=>({Name:e.Name})).sort()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(414),n=r(2),s=r(7),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{};o=a([Object(n.a)("picture-box-image-editor"),Object(s.b)("Telerik.WebReportDesigner.PictureBoxImageEditor")],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r(50),n=r(0),s=r(62),a=r(65),o=r(2),l=r(7),c=r(284),d=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let u=class extends i.c{afterInit(){super.afterInit(),this.view.element.on(a.a.UploadImageEditorFileChanged,(e,t)=>{this.updateMimeType(t)})}populateChildEditors(){for(const e of this.children){const t=this.mimeType,r=e.builder.createInstance(this.$editorsPlaceholder,e.propertyWrapper,this.provider,this.childEditorsDepth);e.propertyWrapper.Name===n.a.ImageData&&r instanceof c.a&&(r.MimeType=t),this.childEditors.push(r)}}get propertiesOrder(){return s.a.BackgroundImage}get mimeType(){for(const e of this.children.map(e=>e.propertyWrapper))if(e.Name===n.a.MimeType)return e.GetValue();return""}updateMimeType(e){const t=this.propertiesOrder.indexOf(n.a.MimeType);this.childEditors[t].updateValue(e)}};u=d([Object(o.a)("background-image-editor"),Object(l.b)("BackgroundImage")],u)},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(63),n=r(13),s=r(339),a=r(828),o=r(4);class l extends i.b{get TypeDescriptor(){return this.typeDescriptor}beforeInit(){this.typeDescriptor=this.getTypeDescriptor(),super.beforeInit()}afterInit(){super.afterInit(),this.eventsEmitter=new n.a(this.view.element.get(0))}get EventsEmitter(){return this.eventsEmitter}getInstanceTypes(){return this.typeDescriptor.InstanceTypes?this.typeDescriptor.InstanceTypes.map(e=>{var t;return new i.a(e,null!==(t=this.stringResources.getString(e))&&void 0!==t?t:e)}):(o.b.logError(`No InstanceTypes were loaded for type descriptor ${this.typeDescriptor.TypeName}.`),[])}updatePropertyWrapperValue(e){const t=new s.a(new a.a(e,!1));this.EventsEmitter.emit(t),t.detail.cancel||this.propertyWrapper.SetValue(e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(319),n=r(3),s=r(2),a=r(7),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends i.a{getTypeDescriptor(){return this.provider.getServiceByName(n.a.ITypeDescriptorRepository).GetPropertyTypeDescriptor(this.propertyWrapper.Type)}};l=o([Object(s.a)("type-instance-types-editor"),Object(a.b)("Watermark","GraphCoordinateSystem","GraphSeries","MapSeriesBase")],l)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d})),r.d(t,"b",(function(){return u}));var i=r(62),n=r(0),s=r(3),a=r(49),o=r(2),l=r(7),c=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};class d{constructor(e){this.schemaService=e.getServiceByName(s.a.ISchemaService)}get propertiesOrder(){return i.a.Font}getChildEditorBuilders(e){const t=e.GetChildProperties();return this.propertiesOrder.map(r=>this.getModelForProperty(e,r,t))}getModelForProperty(e,t,r){const i=e.GetChildProperty(t),s=i?i.Property.EditorType:t;return{builder:this.schemaService.getEditorType(s,null),propertyWrapper:t===n.a.FontStyle?r:i}}}let u=class extends a.a{get isResettable(){return!1}get isResetVisible(){return!1}afterInit(){super.afterInit(),new d(this.provider).getChildEditorBuilders(this.propertyWrapper).map(e=>{const t=e.builder.createInstance(this.visualElement,e.propertyWrapper,this.provider,this.editorDepth);this.childEditors.push(t)})}updateStateUi(){}getTemplate(){return'<div id="#: data.id #" class="twd-editor -#: data.editorDepth # -font"></div>'}refreshValue(){this.childEditors.forEach(e=>e.refreshValue())}beforeDispose(){super.beforeDispose(),this.childEditors.forEach(e=>e.Dispose()),this.childEditors=[]}};u=c([Object(o.a)("font-editor"),Object(l.b)("Font")],u)},function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"c",(function(){return o})),r.d(t,"b",(function(){return l}));var i=r(149);class n{constructor(e){this.message="",this.message=e}}class s extends n{constructor(e,t){super(e),this.error=t}}class a extends n{constructor(e){super(e),this.cancel=!1}}class o extends a{constructor(e,t){super(t),this.type=e.toLowerCase()}}class l extends o{constructor(e,t){super(i.a.Error,e),this.error=t}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(0),n=r(92),s=r(1);class a extends n.a{constructor(e,t,r){super(e,t,r)}get IsEmpty(){return!this.PropertyStore.hasOwnProperty(i.a.Expression)}get Expression(){return this.PropertyStore[i.a.Expression]}set Expression(e){this.PropertyStore[i.a.Expression]=e}get Operator(){return this.PropertyStore[i.a.Operator]}set Operator(e){this.PropertyStore[i.a.Operator]=e}get Value(){return this.PropertyStore[i.a.Value]}set Value(e){this.PropertyStore[i.a.Value]=e}getType(){return s.a.Filter}}a.typeName=s.a.Filter},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(0),n=r(546),s=r(215),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o{constructor(e,t){this.propertyStore=e,this.parent=t,this.propertyStore[i.a.Cells]||(this.propertyStore[i.a.Cells]=[]),this.cells=new n.a(e[i.a.Cells],t)}get Cells(){return this.cells}Initialize(){return a(this,void 0,void 0,(function*(){yield this.cells.Initialize()}))}GetAt(e,t){for(const r of this.cells)if(r.RowIndex===e&&r.ColumnIndex===t)return r;return null}ResolveAt(e,t){const r=this.GetAt(e,t);return null===r?this.cells.CreateDummyCell(e,t,0,0,null):r}SetCellContent(e,t,r){this.SetCellContentExtended(e,t,r,1,1)}SetCellContentExtended(e,t,r,n,a){if(r){const o=this.cells.FindAll(r=>e<=r.RowIndex&&r.RowIndex<e+n&&t<=r.ColumnIndex&&r.ColumnIndex<t+a);for(let e=0;e<o.length;e++){const t=o[e];this.Cells.Remove(t),t.Dispose()}const l=this.GetAt(e,t);if(l)l.ReportItem=r,r.Parent=this.parent;else{const o=new s.a({[i.a.RowIndex]:e,[i.a.ColumnIndex]:t,[i.a.RowSpan]:n,[i.a.ColumnSpan]:a});o.ReportItem=r,r.Parent=this.parent,this.cells.Add(o)}}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(19),n=r(4),s=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let a=class extends i.a{constructor(e=null){super(),this.services=new Map,this.parentContainer=e,this.AddService(this)}AddService(e,t=!1){if(!e)throw"Service implementation is falsy, please supply a service implementation";const r=e.constructor.getServiceName();if(!r)throw e.constructor.name+".getServiceName() returned a falsy value, please make sure that the correct name is returned";this.AddNamedService(r,e,t)}AddNamedService(e,t,r=!1){if(!e)throw"serviceName is falsy, please provide a service name";if(!t)throw"Service implementation is falsy, please supply a service implementation";if(r)this.parentContainer.AddNamedService(e,t,!1);else{if(this.services.has(e))throw new Error(`Service with name ${e} already exists.`);this.services.set(e,t)}}RemoveService(e,t=!1){t?this.parentContainer.RemoveService(e,!1):this.services.delete(e)}Dispose(){this.disposing||(this.disposing=!0,this.services.forEach(e=>{const t=e;(null==t?void 0:t.Dispose)&&t.Dispose()}),this.disposing=!1)}getService(e){if(!e)throw"type is falsy - please supply a type";const t=e.getServiceName();if(!t)throw e.name+".getServiceName() returned a falsy value, please make sure that the correct name is returned";return this.getServiceByName(t)}getServiceByName(e){if(!e)throw"serviceName is falsy, please supply a service name";return this.services.has(e)?this.services.get(e):null!==this.parentContainer?this.parentContainer.getServiceByName(e):null}};a.getServiceName=()=>"ServiceContainer",a=s([Object(n.e)()],a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(35),n=r(5),s=r(0),a=r(34),o=r(1);class l extends a.a{get LeaderSymbol(){return this.PropertyStore[s.a.LeaderSymbol]||"."}canContain(e){return!1}accept(e){e.VisitTocLevel(this)}get Width(){const e=this.getProperty(s.a.Width);return n.a.Parse(e.GetValue(this,this.PropertyStore))}get Height(){const e=this.getProperty(s.a.Height);return n.a.Parse(e.GetValue(this,this.PropertyStore))}get Size(){return new i.a(this.Width,this.Height)}set Size(e){const t=this.getProperty(s.a.Width),r=this.getProperty(s.a.Height);t.SetValue(e.Width.ToString(),this,this.PropertyStore),r.SetValue(e.Height.ToString(),this,this.PropertyStore)}get Visible(){return this.getProperty(s.a.Visible).GetValue(this,this.PropertyStore)}}l.typeName=o.a.TocLevel},function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return l}));var i,n=r(43),s=r(4),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=i=class extends n.a{constructor(e){super(i.getEventName(),e)}};o.getEventName=()=>"MenuAnimationFinishedEvent",o=i=a([Object(s.e)()],o);class l{constructor(){this.isComplete=!0}}},function(e,t,r){"use strict";var i;r.d(t,"a",(function(){return i})),function(e){e[e.BetweenTicks=0]="BetweenTicks",e[e.OnTicks=1]="OnTicks"}(i||(i={}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get OpenExpressionWindow(){return"OpenExpressionWindow"}static get OpenNewParameterWindow(){return"OpenNewParameterWindow"}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get encodings(){return[{CodePage:37,Name:"IBM037",Description:"IBM EBCDIC (US-Canada)"},{CodePage:437,Name:"IBM437",Description:"OEM United States"},{CodePage:500,Name:"IBM500",Description:"IBM EBCDIC (International)"},{CodePage:708,Name:"ASMO-708",Description:"Arabic (ASMO 708)"},{CodePage:720,Name:"DOS-720",Description:"Arabic (DOS)"},{CodePage:737,Name:"ibm737",Description:"Greek (DOS)"},{CodePage:775,Name:"ibm775",Description:"Baltic (DOS)"},{CodePage:850,Name:"ibm850",Description:"Western European (DOS)"},{CodePage:852,Name:"ibm852",Description:"Central European (DOS)"},{CodePage:855,Name:"IBM855",Description:"OEM Cyrillic"},{CodePage:857,Name:"ibm857",Description:"Turkish (DOS)"},{CodePage:858,Name:"IBM00858",Description:"OEM Multilingual Latin I"},{CodePage:860,Name:"IBM860",Description:"Portuguese (DOS)"},{CodePage:861,Name:"ibm861",Description:"Icelandic (DOS)"},{CodePage:862,Name:"DOS-862",Description:"Hebrew (DOS)"},{CodePage:863,Name:"IBM863",Description:"French Canadian (DOS)"},{CodePage:864,Name:"IBM864",Description:"Arabic (864)"},{CodePage:865,Name:"IBM865",Description:"Nordic (DOS)"},{CodePage:866,Name:"cp866",Description:"Cyrillic (DOS)"},{CodePage:869,Name:"ibm869",Description:"Greek, Modern (DOS)"},{CodePage:870,Name:"IBM870",Description:"IBM EBCDIC (Multilingual Latin-2)"},{CodePage:874,Name:"windows-874",Description:"Thai (Windows)"},{CodePage:875,Name:"cp875",Description:"IBM EBCDIC (Greek Modern)"},{CodePage:932,Name:"shift_jis",Description:"Japanese (Shift-JIS)"},{CodePage:936,Name:"gb2312",Description:"Chinese Simplified (GB2312)"},{CodePage:949,Name:"ks_c_5601-1987",Description:"Korean"},{CodePage:950,Name:"big5",Description:"Chinese Traditional (Big5)"},{CodePage:1026,Name:"IBM1026",Description:"IBM EBCDIC (Turkish Latin-5)"},{CodePage:1047,Name:"IBM01047",Description:"IBM Latin-1"},{CodePage:1140,Name:"IBM01140",Description:"IBM EBCDIC (US-Canada-Euro)"},{CodePage:1141,Name:"IBM01141",Description:"IBM EBCDIC (Germany-Euro)"},{CodePage:1142,Name:"IBM01142",Description:"IBM EBCDIC (Denmark-Norway-Euro)"},{CodePage:1143,Name:"IBM01143",Description:"IBM EBCDIC (Finland-Sweden-Euro)"},{CodePage:1144,Name:"IBM01144",Description:"IBM EBCDIC (Italy-Euro)"},{CodePage:1145,Name:"IBM01145",Description:"IBM EBCDIC (Spain-Euro)"},{CodePage:1146,Name:"IBM01146",Description:"IBM EBCDIC (UK-Euro)"},{CodePage:1147,Name:"IBM01147",Description:"IBM EBCDIC (France-Euro)"},{CodePage:1148,Name:"IBM01148",Description:"IBM EBCDIC (International-Euro)"},{CodePage:1149,Name:"IBM01149",Description:"IBM EBCDIC (Icelandic-Euro)"},{CodePage:1200,Name:"utf-16",Description:"Unicode"},{CodePage:1201,Name:"utf-16BE",Description:"Unicode (Big-Endian)"},{CodePage:1250,Name:"windows-1250",Description:"Central European (Windows)"},{CodePage:1251,Name:"windows-1251",Description:"Cyrillic (Windows)"},{CodePage:1252,Name:"Windows-1252",Description:"Western European (Windows)"},{CodePage:1253,Name:"windows-1253",Description:"Greek (Windows)"},{CodePage:1254,Name:"windows-1254",Description:"Turkish (Windows)"},{CodePage:1255,Name:"windows-1255",Description:"Hebrew (Windows)"},{CodePage:1256,Name:"windows-1256",Description:"Arabic (Windows)"},{CodePage:1257,Name:"windows-1257",Description:"Baltic (Windows)"},{CodePage:1258,Name:"windows-1258",Description:"Vietnamese (Windows)"},{CodePage:1361,Name:"Johab",Description:"Korean (Johab)"},{CodePage:1e4,Name:"macintosh",Description:"Western European (Mac)"},{CodePage:10001,Name:"x-mac-japanese",Description:"Japanese (Mac)"},{CodePage:10002,Name:"x-mac-chinesetrad",Description:"Chinese Traditional (Mac)"},{CodePage:10003,Name:"x-mac-korean",Description:"Korean (Mac)"},{CodePage:10004,Name:"x-mac-arabic",Description:"Arabic (Mac)"},{CodePage:10005,Name:"x-mac-hebrew",Description:"Hebrew (Mac)"},{CodePage:10006,Name:"x-mac-greek",Description:"Greek (Mac)"},{CodePage:10007,Name:"x-mac-cyrillic",Description:"Cyrillic (Mac)"},{CodePage:10008,Name:"x-mac-chinesesimp",Description:"Chinese Simplified (Mac)"},{CodePage:10010,Name:"x-mac-romanian",Description:"Romanian (Mac)"},{CodePage:10017,Name:"x-mac-ukrainian",Description:"Ukrainian (Mac)"},{CodePage:10021,Name:"x-mac-thai",Description:"Thai (Mac)"},{CodePage:10029,Name:"x-mac-ce",Description:"Central European (Mac)"},{CodePage:10079,Name:"x-mac-icelandic",Description:"Icelandic (Mac)"},{CodePage:10081,Name:"x-mac-turkish",Description:"Turkish (Mac)"},{CodePage:10082,Name:"x-mac-croatian",Description:"Croatian (Mac)"},{CodePage:12e3,Name:"utf-32",Description:"Unicode (UTF-32)"},{CodePage:12001,Name:"utf-32BE",Description:"Unicode (UTF-32 Big-Endian)"},{CodePage:2e4,Name:"x-Chinese-CNS",Description:"Chinese Traditional (CNS)"},{CodePage:20001,Name:"x-cp20001",Description:"TCA Taiwan"},{CodePage:20002,Name:"x-Chinese-Eten",Description:"Chinese Traditional (Eten)"},{CodePage:20003,Name:"x-cp20003",Description:"IBM5550 Taiwan"},{CodePage:20004,Name:"x-cp20004",Description:"TeleText Taiwan"},{CodePage:20005,Name:"x-cp20005",Description:"Wang Taiwan"},{CodePage:20105,Name:"x-IA5",Description:"Western European (IA5)"},{CodePage:20106,Name:"x-IA5-German",Description:"German (IA5)"},{CodePage:20107,Name:"x-IA5-Swedish",Description:"Swedish (IA5)"},{CodePage:20108,Name:"x-IA5-Norwegian",Description:"Norwegian (IA5)"},{CodePage:20127,Name:"us-ascii",Description:"US-ASCII"},{CodePage:20261,Name:"x-cp20261",Description:"T.61"},{CodePage:20269,Name:"x-cp20269",Description:"ISO-6937"},{CodePage:20273,Name:"IBM273",Description:"IBM EBCDIC (Germany)"},{CodePage:20277,Name:"IBM277",Description:"IBM EBCDIC (Denmark-Norway)"},{CodePage:20278,Name:"IBM278",Description:"IBM EBCDIC (Finland-Sweden)"},{CodePage:20280,Name:"IBM280",Description:"IBM EBCDIC (Italy)"},{CodePage:20284,Name:"IBM284",Description:"IBM EBCDIC (Spain)"},{CodePage:20285,Name:"IBM285",Description:"IBM EBCDIC (UK)"},{CodePage:20290,Name:"IBM290",Description:"IBM EBCDIC (Japanese katakana)"},{CodePage:20297,Name:"IBM297",Description:"IBM EBCDIC (France)"},{CodePage:20420,Name:"IBM420",Description:"IBM EBCDIC (Arabic)"},{CodePage:20423,Name:"IBM423",Description:"IBM EBCDIC (Greek)"},{CodePage:20424,Name:"IBM424",Description:"IBM EBCDIC (Hebrew)"},{CodePage:20833,Name:"x-EBCDIC-KoreanExtended",Description:"IBM EBCDIC (Korean Extended)"},{CodePage:20838,Name:"IBM-Thai",Description:"IBM EBCDIC (Thai)"},{CodePage:20866,Name:"koi8-r",Description:"Cyrillic (KOI8-R)"},{CodePage:20871,Name:"IBM871",Description:"IBM EBCDIC (Icelandic)"},{CodePage:20880,Name:"IBM880",Description:"IBM EBCDIC (Cyrillic Russian)"},{CodePage:20905,Name:"IBM905",Description:"IBM EBCDIC (Turkish)"},{CodePage:20924,Name:"IBM00924",Description:"IBM Latin-1"},{CodePage:20932,Name:"EUC-JP",Description:"Japanese (JIS 0208-1990 and 0212-1990)"},{CodePage:20936,Name:"x-cp20936",Description:"Chinese Simplified (GB2312-80)"},{CodePage:20949,Name:"x-cp20949",Description:"Korean Wansung"},{CodePage:21025,Name:"cp1025",Description:"IBM EBCDIC (Cyrillic Serbian-Bulgarian)"},{CodePage:21866,Name:"koi8-u",Description:"Cyrillic (KOI8-U)"},{CodePage:28591,Name:"iso-8859-1",Description:"Western European (ISO)"},{CodePage:28592,Name:"iso-8859-2",Description:"Central European (ISO)"},{CodePage:28593,Name:"iso-8859-3",Description:"Latin 3 (ISO)"},{CodePage:28594,Name:"iso-8859-4",Description:"Baltic (ISO)"},{CodePage:28595,Name:"iso-8859-5",Description:"Cyrillic (ISO)"},{CodePage:28596,Name:"iso-8859-6",Description:"Arabic (ISO)"},{CodePage:28597,Name:"iso-8859-7",Description:"Greek (ISO)"},{CodePage:28598,Name:"iso-8859-8",Description:"Hebrew (ISO-Visual)"},{CodePage:28599,Name:"iso-8859-9",Description:"Turkish (ISO)"},{CodePage:28603,Name:"iso-8859-13",Description:"Estonian (ISO)"},{CodePage:28605,Name:"iso-8859-15",Description:"Latin 9 (ISO)"},{CodePage:29001,Name:"x-Europa",Description:"Europa"},{CodePage:38598,Name:"iso-8859-8-i",Description:"Hebrew (ISO-Logical)"},{CodePage:50220,Name:"iso-2022-jp",Description:"Japanese (JIS)"},{CodePage:50221,Name:"csISO2022JP",Description:"Japanese (JIS-Allow 1 byte Kana)"},{CodePage:50222,Name:"iso-2022-jp",Description:"Japanese (JIS-Allow 1 byte Kana - SO/SI)"},{CodePage:50225,Name:"iso-2022-kr",Description:"Korean (ISO)"},{CodePage:50227,Name:"x-cp50227",Description:"Chinese Simplified (ISO-2022)"},{CodePage:51932,Name:"euc-jp",Description:"Japanese (EUC)"},{CodePage:51936,Name:"EUC-CN",Description:"Chinese Simplified (EUC)"},{CodePage:51949,Name:"euc-kr",Description:"Korean (EUC)"},{CodePage:52936,Name:"hz-gb-2312",Description:"Chinese Simplified (HZ)"},{CodePage:54936,Name:"GB18030",Description:"Chinese Simplified (GB18030)"},{CodePage:57002,Name:"x-iscii-de",Description:"ISCII Devanagari"},{CodePage:57003,Name:"x-iscii-be",Description:"ISCII Bengali"},{CodePage:57004,Name:"x-iscii-ta",Description:"ISCII Tamil"},{CodePage:57005,Name:"x-iscii-te",Description:"ISCII Telugu"},{CodePage:57006,Name:"x-iscii-as",Description:"ISCII Assamese"},{CodePage:57007,Name:"x-iscii-or",Description:"ISCII Oriya"},{CodePage:57008,Name:"x-iscii-ka",Description:"ISCII Kannada"},{CodePage:57009,Name:"x-iscii-ma",Description:"ISCII Malayalam"},{CodePage:57010,Name:"x-iscii-gu",Description:"ISCII Gujarati"},{CodePage:57011,Name:"x-iscii-pa",Description:"ISCII Punjabi"},{CodePage:65e3,Name:"utf-7",Description:"Unicode (UTF-7)"},{CodePage:65001,Name:"utf-8",Description:"Unicode (UTF-8)"}]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var i=r(133),n=r(42),s=r(209),a=r(749),o=r(750),l=r(250),c=r(753),d=r(8),u=r(168),h=r(11),p=r(78);class m{static getComponentContextMenuType(e){if(e instanceof i.a)return a.a;if(e instanceof u.a)return o.a;if(e.Parent&&e.Parent instanceof n.a){const t=e.Parent.Designer.TableLayout,r=t.GetCell(e),i=t.IsEntireColumnSelected(r.ColIndex),n=t.IsEntireRowSelected(r.RowIndex);return i&&!n?l.b:n&&!i?l.c:l.a}return s.a}static getDataSourcesNodeContextMenuType(e,t){const r=t.getService(d.a),i=t.getService(p.a);return e.includes(r.SharedDataSource)&&i.hasPermission(h.a.Commands_AssetsManager_SharedDataSources)?c.a:null}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(0),n=r(58),s=r(66),a=r(1),o=r(394),l=r(168);class c{constructor(e,t){this.schemaService=e,this.strings=t}CreateDataSourceNodes(e,t){const r=[t,i.a.DataSources],n=this.schemaService.getFullIconClass(a.a.DataSourceCollection),s=this.schemaService.getFullIconClass(a.a.SharedDataSource),o=this.strings.InlineDataSources,c=this.strings.SharedDataSources,d=this.CreateDataSourcesNode(e,o,r,n,e=>e.filter(e=>!(e instanceof l.a))),u=this.CreateDataSourcesNode(e,c,r,s,e=>e.filter(e=>e instanceof l.a));return u.overrideEnableContextMenu(),{idsNode:d,sdsNode:u}}CreateDataSourcesNode(e,t,r,i,a){const l=n.a.FormatFakeNodeText(t),c=new s.b(l,n.a.FormatText(null,this.insertDesignerInPath(r),null),i);return e&&a(e).forEach(t=>{let i;if(t instanceof o.a)i=this.createUnsupportedDataSourceNode(t);else{const s=n.a.FormatText(null,r,e.indexOf(t));i=this.CreateDataSourceNode(t,s)}c.nodes.push(i)}),c}CreateDataSourceNode(e,t){var r;let n=e.Type;n===a.a.SharedDataSource&&(n=null===(r=e.DataSourceReference)||void 0===r?void 0:r.Type);const o=new s.b(e.Name,t,this.schemaService.getFullIconClass(n));return n?(this.createMeasureNodes(o,[o.fullName,i.a.DataModel,i.a.Measures],e.DataModel.Measures),o):o}createUnsupportedDataSourceNode(e){return new s.b(e.Name+this.strings.DataSourceReadOnlySuffix,"",this.schemaService.getFullIconClass(e.Type))}createMeasureNodes(e,t,r){for(let a=0;a<r.length;a++){const o=r[a],l=new s.a(o.ExpressionName,o.Name,n.a.FormatText(null,t,a),this.schemaService.getFullIconClass(o.DataType),!0,this.schemaService.getDataTypeAttribute(o.DataType),s.c.DataField);o.Measures.length&&(t.push(a.toString(),i.a.Measures),this.createMeasureNodes(l,t,o.Measures),t.splice(t.length-2,2)),l.expanded=!1,e.nodes.push(l)}}insertDesignerInPath(e){const t=Array.from(e);return t.splice(1,0,"Designer"),t}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var i=r(1),n=r(0),s=r(228),a=r(3),o=r(8),l=r(395),c=r(66),d=r(58),u=r(332);class h{constructor(e){this.provider=e,this.sr=this.provider.getService(o.a),this.schemaService=this.provider.getServiceByName(a.a.ISchemaService)}static CreateEmptyReportNode(){return new c.b("","",null)}static Separator(){return"->"}CreateDataSourcesNode(e,t){return new u.a(this.schemaService,this.sr).CreateDataSourceNodes(e,t)}CreateSharedDataSourceFileDataNode(e,t){return new u.a(this.schemaService,this.sr).CreateDataSourceNode(e,d.a.FormatText(null,[t,n.a.DataSourceReference],null))}FillItem(e,t){e.fullName=d.a.FormatText(t,null,null),e.displayText=e.fullName,e.spriteCssClass=this.schemaService.getFullIconClass(t.Type)}FillGraph(e,t){}FillMap(e,t){}CreateTableRowGroupsNode(e,t){return this.createTableGroupsNode(this.insertDesignerInPath([e.Name,n.a.RowGroups]),t.RowGroups,d.a.FormatFakeNodeText(this.sr.RowGroups))}CreateTableColumnGroupsNode(e,t){return this.createTableGroupsNode(this.insertDesignerInPath([e.Name,n.a.ColumnGroups]),t.ColumnGroups,d.a.FormatFakeNodeText(this.sr.ColumnGroups))}CreateTableCornerNode(e,t){return this.createTableCellContainerNode(this.insertDesignerInPath([e.Name,n.a.Corner]),t.Corner,d.a.FormatFakeNodeText(this.sr.Corner))}CreateTableBodyNode(e,t){return this.createTableCellContainerNode(this.insertDesignerInPath([e.Name,n.a.Body]),t.Body,d.a.FormatFakeNodeText(this.sr.Body))}createTableGroupsNode(e,t,r){const s=this.schemaService.getFullIconClass(i.a.GroupCollection),a=this.schemaService.getFullIconClass(i.a.TableGroup),o=new c.b(r,d.a.FormatText(null,e,null),s),l=t.Groups;if(l)for(let t=0;t<l.Count;t++){const r=Array.from(e);r.push(n.a.Groups);const i=l.Get(t),s=this.generateTableGroupNodes(i,r,t,a);o.nodes.push(s)}return o}generateTableGroupNodes(e,t,r,i){let s=e.PropertyStore[n.a.Name];s||(s="n/a");const a=d.a.FormatText(null,t,r);let o=new c.b(s,a,i),l=new c.b;e.ReportItem&&(this.FillItem(l,e.ReportItem),o.nodes.push(l));const u=e.ChildGroups;if(u&&u.Count>0){t.push(r.toString(),n.a.ChildGroups);for(let r=0;r<u.Count;r++){const n=e.ChildGroups.Get(r),s=this.generateTableGroupNodes(n,t,r,i);o.nodes.push(s)}t.splice(t.length-2,2)}return o}createTableCellContainerNode(e,t,r){const n=this.schemaService.getFullIconClass(i.a.CellCollection),s=new c.b(r,d.a.FormatText(null,e,null),n);if(t&&t.CellContainer){const e=t.CellContainer;for(const t of e.Cells){new l.a(this.provider,null).BuildNode(s,t.ReportItem)}}return s}CreateReportParametersNode(e,t){const r=[t,n.a.ReportParameters],a=this.schemaService.getFullIconClass(i.a.ReportParametersCollection),o=this.schemaService.getDataTypeAttribute(i.a.ReportParametersCollection),l=d.a.FormatFakeNodeText(this.sr.Parameters),u=new c.b(l,d.a.FormatText(null,this.insertDesignerInPath(r),null),a);if(e)for(let t=0;t<e.length;t++){const i=e[t],n=i.PropertyStore.Type||s.a.String,a=this.schemaService.getFullIconClass(n),l=new c.b(i.Name,d.a.FormatText(null,r,t),a,!0,o,c.c.ReportParameter);u.nodes.push(l)}return u}CreateStyleSheetNode(e,t){const r=[t,n.a.StyleSheet],s=this.schemaService.getFullIconClass(i.a.StyleSheet),a=this.schemaService.getFullIconClass(i.a.StyleRule),o=d.a.FormatFakeNodeText(this.sr.Styles),l=new c.b(o,d.a.FormatText(null,this.insertDesignerInPath(r),null),s);if(e)for(let t=0;t<e.length;t++){const i=e[t],n=new c.b(d.a.FormatText(i,null,null),d.a.FormatText(null,r,t),a);l.nodes.push(n)}return l}CreateGroupsNode(e,t){const r=[t,n.a.Groups],s=this.schemaService.getFullIconClass(i.a.GroupCollection),a=this.schemaService.getFullIconClass(i.a.Group),o=d.a.FormatFakeNodeText(this.sr.Groups),l=new c.b(o,d.a.FormatText(null,this.insertDesignerInPath(r),null),s);if(e)for(let t=0;t<e.length;t++){const i=e[t],n=new c.b(d.a.FormatText(i,null,null),d.a.FormatText(null,r,t),a);l.nodes.push(n)}return l}createGroupNode(e,t,r,i,n){if(e&&e.length>t){const s=e[t],a=new c.b(s.Name,d.a.FormatText(s,r,null),i);n.nodes.push(a);const o=Array.from(r);o.push(s.Name),this.createGroupNode(e,++t,o,i,a)}}CreateCrossSectionItemsNode(e,t){const r=[t,n.a.CrossSectionItems],s=this.schemaService.getFullIconClass(i.a.Table),a=this.schemaService.getFullIconClass("Default"),o=d.a.FormatFakeNodeText(this.sr.CrossSectionItems),l=new c.b(o,d.a.FormatText(null,this.insertDesignerInPath(r),null),s);if(e)for(let t=0;t<e.length;t++){const i=e[t],n=new c.b(d.a.FormatText(i,null,null),d.a.FormatText(null,r,t),a);l.nodes.push(n)}return l}insertDesignerInPath(e){const t=Array.from(e);return t.splice(1,0,"Designer"),t}addChildNodes(e,t){for(const r of t)e.nodes.push(r)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(34),n=r(1),s=r(0),a=r(103),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends i.a{constructor(e,t,r){super(e,t,r),this.ReportSources=[],this.PropertyStore[s.a.ReportSources]||(this.PropertyStore[s.a.ReportSources]=[]),this.DataSources=[],this.ReportParameters=[],this.StyleSheet=[],this.ExternalStyleSheets=[],this.Groups=[],this.CrossSectionItems=[],this.RuntimeSettings=[],this.Watermarks=[]}get TocReportSource(){return this.PropertyStore[s.a.TocReportSource]}set TocReportSource(e){this.PropertyStore[s.a.TocReportSource]=e}get HideContextMenuButton(){return!0}renderDesigner(){const e=this.Provider.getService(a.a);this.Designer.Render(e.visualElement);for(const e of this.Children)e.renderDesigner()}accept(e){e.VisitReportBook(this)}createChildComponentsFromPropertyStore(){return o(this,void 0,void 0,(function*(){yield this.createReportSources()}))}canParent(e){return!1}createReportSources(){return o(this,void 0,void 0,(function*(){return this.createCollectionPropertyComponents(s.a.ReportSources,this.ReportSources)}))}}l.typeName=n.a.ReportBook},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(102),n=r(1);class s extends i.a{}s.typeName=n.a.Parameter},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(1),n=r(188),s=r(0);class a extends n.a{get Uri(){return this.PropertyStore[s.a.Uri]}canContain(e){return!1}getType(){return i.a.UriReportSource}}a.typeName=i.a.UriReportSource},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(412),n=r(7),s=r(2),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{get Index(){return 0}};o=a([Object(s.a)("combined-width-editor"),Object(n.a)()],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(412),n=r(7),s=r(2),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{get Index(){return 1}};o=a([Object(s.a)("combined-height-editor"),Object(n.a)()],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i,n=r(43),s=r(4),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=i=class extends n.a{constructor(e){super(i.getEventName(),e)}};o.getEventName=()=>"TypeInstanceValueChangingEvent",o=i=a([Object(s.e)()],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(1),n=r(188),s=r(0);class a extends n.a{get Xml(){return this.PropertyStore[s.a.Xml]}canContain(e){return!1}getType(){return i.a.XmlReportSource}}a.typeName=i.a.XmlReportSource},function(e,t,r){"use strict";r.d(t,"d",(function(){return a})),r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return l})),r.d(t,"c",(function(){return c}));var i=r(6),n=r(362);class s extends n.a{constructor(e,t,r,i){super(e,t,r,i,!1),this.offsetX=r,this.offsetY=i}}class a extends s{constructor(e){super(e,i.a.MoveSelectionUpSmallStep,0,-1)}}class o extends s{constructor(e){super(e,i.a.MoveSelectionDownSmallStep,0,1)}}class l extends s{constructor(e){super(e,i.a.MoveSelectionLeftSmallStep,-1,0)}}class c extends s{constructor(e){super(e,i.a.MoveSelectionRightSmallStep,1,0)}}},function(e,t,r){"use strict";var i;r.d(t,"a",(function(){return i})),function(e){e[e.Auto=0]="Auto",e[e.Seconds=1]="Seconds",e[e.Minutes=2]="Minutes",e[e.Hours=3]="Hours",e[e.Days=4]="Days",e[e.Months=5]="Months",e[e.Years=6]="Years"}(i||(i={}))},function(e,t,r){"use strict";r.d(t,"c",(function(){return a})),r.d(t,"d",(function(){return o})),r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return c}));var i=r(6),n=r(362);class s extends n.a{constructor(e,t,r,i){super(e,t,r,i,!0),this.offsetX=r,this.offsetY=i}isValidSelectionCore(e){return!0}}class a extends s{constructor(e){super(e,i.a.ShrinkSelectionHorizontally,-1,0)}}class o extends s{constructor(e){super(e,i.a.ShrinkSelectionVertically,0,-1)}}class l extends s{constructor(e){super(e,i.a.GrowSelectionHorizontally,1,0)}}class c extends s{constructor(e){super(e,i.a.GrowSelectionVertically,0,1)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(28),n=r(706),s=r(2),a=r(225),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends i.a{getTemplate(){return this.templates.Editors.Wizards.WebServiceDataSource.Pages.configureParametersPageComponentTemplate}afterInit(){super.afterInit(),this.adjustGrid()}getPageModel(e){return this.Model=new n.a(this.provider,e),this.Model}adjustGrid(){this.grid=this.view.element.parent().find(".editor__grid-parameters[data-role='grid']").data("kendoGrid"),$.each(this.grid.columns,(e,t)=>{var r;switch(null===(r=t.field)||void 0===r?void 0:r.toLowerCase()){case"type":t.editor=this.typeEditor.bind(this)}}),this.grid.element.find(".k-grid-toolbar").on("click",".k-button",this.addParameter.bind(this)),this.grid.element.find(".k-grid-toolbar").insertAfter(this.grid.element.find("table"))}typeEditor(e,t){$("<input name='"+t.field+"'/>").appendTo(e).kendoDropDownList({dataSource:{data:this.Model.ParameterTypes},value:t.model.parameterType})}validateParameterName(e){let t=!1;const r=e.values.name;if(r){this.Model.RequestParameters.some(e=>e.name===r)&&(e.preventDefault(!0),t=!0)}e.container.toggleClass("k-error",t)}addParameter(){return event.preventDefault(),this.Model.RequestParameters.push(new a.a),!1}};l=o([Object(s.a)("web-service-configure-parameters-page")],l)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(28),n=r(707),s=r(2),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{getTemplate(){return this.templates.Editors.Wizards.WebServiceDataSource.Pages.basicAuthenticationPageComponentTemplate}getPageModel(e){return this.Model=new n.a(this.provider,e),this.Model}toggleValidationMessage(){$("#input-username").toggleClass("error",!this.Model.Username),$("#input-password").toggleClass("error",!this.Model.Password)}};o=a([Object(s.a)("web-service-basic-authentication-page")],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(28),n=r(447),s=r(2),a=r(298),o=r(385),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let d=class extends i.a{constructor(){super(...arguments),this.setInlineText=()=>this.Model.InlineText=this.EditInlineJsonModel.InlineText,this.setExternalFile=()=>this.Model.ExternalFile=this.UploadJsonFileModel.ExternalFile,this.selectedTypeChanged=()=>{this.UploadJsonFileModel.IsEnabled=this.Model.UseExternalFile,this.EditInlineJsonModel.IsEnabled=this.Model.UseInline}}getTemplate(){return this.templates.Editors.Wizards.WebServiceDataSource.Pages.configureDesignTimePageComponentTemplate}get UploadJsonFileModel(){return this.getByPropertyName(e=>{e.uploadJsonFileModel})}set UploadJsonFileModel(e){this.setByPropertyName(e=>{e.uploadJsonFileModel},e)}get EditInlineJsonModel(){return this.getByPropertyName(e=>{e.editInlineJsonModel})}set EditInlineJsonModel(e){this.setByPropertyName(e=>{e.editInlineJsonModel},e)}beforeInit(){super.beforeInit(),this.UploadJsonFileModel=new a.b(this.Model.UseExternalFile),this.EditInlineJsonModel=new o.a(this.Model.UseInline),this.UploadJsonFileModel.externalFileChanged.subscribe(this.setExternalFile),this.EditInlineJsonModel.inlineTextChanged.subscribe(this.setInlineText),this.Model.selectedTypeChanged.subscribe(this.selectedTypeChanged)}OnEnter(){const e=Object.create(null,{OnEnter:{get:()=>super.OnEnter}});return c(this,void 0,void 0,(function*(){yield e.OnEnter.call(this),this.UploadJsonFileModel.ExternalFile=this.Model.ExternalFile,this.EditInlineJsonModel.InlineText=this.Model.InlineText,this.uploadJsonFileComponent.renderInitialFiles()}))}getPageModel(e){return this.Model=new n.a(this.provider,e),this.Model}uploadJsonFileSelected(){this.Model.SelectedType=n.b.ExternalFile}inlineTextSelected(){this.Model.SelectedType=n.b.Inline}};l([Object(s.e)(a.a)],d.prototype,"uploadJsonFileComponent",void 0),d=l([Object(s.a)("web-service-configure-design-time-page")],d)},function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return a}));var i=r(34),n=r(1);class s extends i.a{constructor(e,t,r,i=!0){super(e,t,r,i)}get PropertyStore(){return super.PropertyStore}}s.typeName=n.a.GraphTitle;class a extends s{}a.typeName=n.a.MapTitle},function(e,t,r){"use strict";r.d(t,"d",(function(){return d})),r.d(t,"a",(function(){return u})),r.d(t,"c",(function(){return h})),r.d(t,"b",(function(){return p}));var i,n=r(177),s=r(105),a=r(163),o=r(231),l=r(109);class c{constructor(e){this.propertiesArea=e.getService(s.a)}select(e){this.currentEditor=this.selectPath(e),this.focusEditor(e),window.setTimeout(()=>{$(window).one("click",()=>{this.removeSelection()})},500),this.propertiesArea.scrollToEditor(this.currentEditor)}focusEditor(e){this.currentEditor.focus()}removeSelection(){var e;null===(e=this.currentEditor)||void 0===e||e.unfocus(),this.currentEditor=null}selectPath(e){let t;for(let r=0;r<e.pathArray.length;r++){const i=this.getNextEditor(t,e,e.pathArray[r]);if(!i)return t;t=i,0===r&&this.propertiesArea.tryExpandCategory(t),this.modifyCurrentLevel(e,t),this.propertiesArea.isEditorExapandable(t)&&(t.Expanded=!0)}return t}getNextEditor(e,t,r){return e?e.childEditors.find(e=>e.LocalizedName===r):this.propertiesArea.Editors.find(e=>e.LocalizedName===r)}}class d extends c{constructor(){super(...arguments),this.managedTypeName=n.b.getTypeName()}modifyCurrentLevel(e,t){}}class u extends c{constructor(){super(...arguments),this.managedTypeName=n.a.getTypeName()}modifyCurrentLevel(e,t){t instanceof a.b&&t.changeBorderMode(e.borderMode)}}class h extends c{constructor(){super(...arguments),this.managedTypeName=n.d.getTypeName()}modifyCurrentLevel(e,t){t instanceof o.a&&(t.Expanded=!0)}}!function(e){e[e.Type=0]="Type",e[e.Data=1]="Data"}(i||(i={}));class p extends h{constructor(){super(...arguments),this.managedTypeName=n.c.getTypeName()}focusEditor(e){const t=this.currentEditor;e.fakeEditorTypeName===l.b.getTypeName()?(t.switchToInlineData(),this.focusType()):e.fakeEditorTypeName===l.a.getTypeName()?(t.switchToExternalFile(),this.focusType()):e.fakeEditorTypeName===l.c.getTypeName()&&(t.focusData(),this.selectField=i.Data)}focusType(){this.currentEditor.focusType(),this.selectField=i.Type}removeSelection(){this.selectField===i.Type?this.currentEditor.unfocusType():this.selectField===i.Data&&this.currentEditor.unfocusData(),this.currentEditor=null,this.selectField=null}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(56),n=r(82),s=r(42),a=r(3),o=r(113),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c extends o.a{constructor(e,t,r){super(e,t),this.bringToFront=r}isValidSelectionCore(e){for(const t of e)if(t.Parent instanceof s.a||!(t instanceof i.a))return!1;return!0}static CompareReportItemZIndex(e,t){if(e!==t){const r=e instanceof n.a,i=t instanceof n.a;if(!r)return i?-1:0;if(!i)return 1;const s=e,a=t,o=s.Parent,l=a.Parent;if(o===l){const e=s.Parent;return e?e.Children.indexOf(s)>e.Children.indexOf(a)?-1:1:0}return!o||s.contains(a)?1:!l||a.contains(s)?-1:this.CompareReportItemZIndex(o,l)}return 0}execute(e){return l(this,void 0,void 0,(function*(){this.ExecuteZOrderSelection(this.bringToFront)}))}ExecuteZOrderSelection(e){let t=this.selectionService.GetSelectedComponents();if(!t||0===t.length)return;const r=[],i=t.map(e=>e.Name).join("', '"),n=e?`Bring '${i}' to front`:`Send '${i}' to back`,s=this.provider.getServiceByName(a.a.IDesignerHost).CreateTransaction(n);try{t=this.selectionService.GetSelectedComponents();const i=t.slice(0);i.sort(c.CompareReportItemZIndex);for(const e of i){if(!e)continue;const t=e.Parent;t&&(r.includes(t)||r.push(t))}for(const r of t){const t=r.Parent;r.setParent(t,e)}s.Commit()}catch(e){s.Rollback()}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(1),n=r(0),s=r(3),a=r(56);class o extends a.a{constructor(e,t,r,i=!0){super(e,t,r,i)}get DataSourceName(){return this.PropertyStore[n.a.DataSourceName]}set DataSourceName(e){const t=this.Provider.getServiceByName(s.a.IDesignerHost);let r;if(t.InTransaction||(r=t.CreateTransaction(`Change property '${n.a.DataSourceName}' of '${this.Name}'`)),this.raiseComponentChanging(null),e){const t=this.PropertyStore[n.a.DataSourceName];this.PropertyStore[n.a.DataSourceName]=e,this.raiseComponentChanged(null,t,e)}else{const e=this.PropertyStore[n.a.DataSourceName];delete this.PropertyStore[n.a.DataSourceName],this.raiseComponentChanged(null,e,void 0)}r&&r.Commit()}}o.typeName=i.a.DataItem},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(119);class n extends i.a{get Layout(){return this.layout}set Layout(e){this.layout=e,this.updateLocalStorageForLayout(e)}get Collapsed(){return this.collapsed}set Collapsed(e){this.collapsed=e,this.updateLocalStorageForCollapsed(e)}restore(e){this.layout=this.getLayoutFromLocalStorage(e),this.collapsed=this.getCollapsedFromLocalStorage(e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(119);class n extends i.a{restore(e){if(!this.reportOption)throw new Error("WebReportReportIdsOption.reportOption needs to be set");const t=this.getOption(this.reportOption);this.deserializeReportIds(t)}get ReportIds(){return new Set(this.reportIds)}addReportId(e){this.reportIds.add(e)&&this.serializeReportIds()}removeReportId(e){this.reportIds.delete(e)&&this.serializeReportIds()}deserializeReportIds(e){this.reportIds=e?new Set(JSON.parse(e)):new Set}serializeReportIds(){const e=Array.from(this.reportIds);this.saveOption(this.reportOption,JSON.stringify(e))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class n{constructor(){this.registeredCommands=new Map}registerCommand(e){const t=e.command;if(this.findCommand(t))throw new Error(`Command ${t} already exists.`);this.registeredCommands.set(t,e)}queryCommandStatus(e){if(this.registeredCommands.has(e)){return this.registeredCommands.get(e).status}return null}tryExecuteCommand(e,t){if(this.registeredCommands.has(e)){const r=this.registeredCommands.get(e);return r.status.enabled&&r.execute(t),!0}return!1}tryExecuteCommandAsync(e,t){return i(this,void 0,void 0,(function*(){if(this.registeredCommands.has(e)){const r=this.registeredCommands.get(e);return r.status.enabled&&(yield r.execute(t)),!0}return!1}))}findCommand(e){return this.registeredCommands.get(e)}refreshCommands(){for(const e of this.registeredCommands.values())e.reset()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(14);class n{static getInvalidCharactersInDocumentName(e){const t=["<",">",":",'"',"/","\\","|","?","*","+"],r=[];for(const i of t)e.includes(i)&&r.push(i);return r}static getFilenameWithoutExtension(e){const t=e.match(/(.+?)(\.[^.]*$|$)/i);return t&&t.length>0?t[1]:null}static getFileExtension(e){const t=e.match(/\.[0-9a-z]+$/i);return t?t[0]:null}static getReportExtension(e){var t;const r=null===(t=n.getFileExtension(e))||void 0===t?void 0:t.replace(".","");return r&&Object.values(i.b).includes(r)?r:null}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var i=r(20),n=r(23),s=r(5),a=r(0),o=r(3),l=r(19),c=r(12),d=r(16),u=r(4),h=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let p=class extends l.a{constructor(e){super(),this.provider=e}Initialize(e){this.resizing=e;const t=this.provider.getServiceByName(o.a.IDesignSurfaceManager).ActiveDesignSurface;this.zoom=t.Zoom,this.behaviorService=t.behaviorService,this.snapInfo=this.behaviorService.SnapGridService.GetSnapGridInfo(),this.selectionService=this.provider.getService(d.a)}Adjust(e,t){const r=this.getMovableComponents();if(0===r.length)return;const i=this.provider.getServiceByName(o.a.IDesignerHost).CreateTransaction(`${this.resizing?"Resize":"Move"} '${r.map(e=>e.Name).join("', '")}'.`);try{const n=this.calculateDelta(e,t);for(const e of r)this.resizing?this.resize(e,n):this.move(e,n);i.Commit()}catch(e){i.Rollback();this.provider.getService(c.a).error(`Could not ${this.resizing?"resize":"move"} '${r.map(e=>e.Name).join("', '")}'.`,e)}}getMovableComponents(){const e=[],t=this.selectionService.GetSelectedComponents();if(t&&t.length)for(const r of t)this.isValidNudgeTarget(r)&&e.push(r);return e}isValidNudgeTarget(e){const t=e.PropertyStore;if(this.resizing){const e=t[a.a.Width],r=t[a.a.Height];return null!==e||null!==r}{const e=t[a.a.Left],r=t[a.a.Top];return null!==e||null!==r}}calculateDelta(e,t){const r=this.selectionService.PrimarySelection.Designer,s=r.GetBounds(!0),a=this.resizing?new i.a(s.Right,s.Bottom):new i.a(s.Location.X,s.Location.Y);if(this.behaviorService.SnapToGrid){const r=1+this.snapInfo.GridSize/2;e*=r,t*=r}if(a.Offset(e,t),this.behaviorService.SnapToGrid){const r=this.snapInfo.Snap(a,0!==e,0!==t);a.Offset(r.Width,r.Height)}let o=this.resizing?a.X-s.Right:a.X-s.Left,l=this.resizing?a.Y-s.Bottom:a.Y-s.Top;if(this.resizing){const e=r.CalculateMinSize().ToPixels();s.Width+o<e.Width&&(o=e.Width-s.Width),s.Height+l<e.Height&&(l=e.Height-s.Height)}else{const e=r.Component.Parent.Designer.GetClientBounds(!0);s.X+o<e.X&&(o=e.X-s.X),s.Y+l<e.Y&&(l=e.Y-s.Y)}return new n.a(o,l)}resize(e,t){const r=this.selectionService.PrimarySelection.Designer,i=r.GetBounds(!0),n=r.CalculateMinSize().ToPixels();let s=t.Width;i.Width+s<n.Width&&(s=n.Width-i.Width);let o=t.Height;i.Height+o<n.Height&&(o=n.Height-i.Height),0!==s&&this.setPropertyValue(e,a.a.Width,s),0!==o&&this.setPropertyValue(e,a.a.Height,o)}move(e,t){const r=e.Designer,i=r.Component.Parent.Designer,n=r.GetBounds(!0),s=i.GetClientBounds(!0);let o=t.Width;n.X+o<s.X&&(o=s.X-n.X);let l=t.Height;n.Y+l<s.Y&&(l=s.Y-n.Y),0!==o&&this.setPropertyValue(e,a.a.Left,o),0!==l&&this.setPropertyValue(e,a.a.Top,l)}setPropertyValue(e,t,r){const i=e.PropertyStore[t];if(i){const n=s.a.Parse(i),a=s.a.FromPixels(n.ToPixels()+r/this.zoom,n.Type);e.getProperty(t).SetValue(a.ToString(),e,e.PropertyStore)}}};p.getServiceName=()=>"NudgeHelper",p=h([Object(u.e)()],p)},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(24);class n extends i.a{constructor(e,t,r){super(t,r),this.$visualElement=e,this.init()}updateStatusCore(e){this.status.enabled=e.enabled,this.toggleDisabled()}toggleDisabled(){this.visualControl.enable(this.status.enabled)}init(){this.initControl(),this.toggleDisabled(),this.initEvent()}initControl(){this.visualControl=this.$visualElement.kendoButton().data("kendoButton")}initEvent(){this.$visualElement.off("click").on("click",e=>{this.execute(null)}).off("keydown").on("keydown",e=>{13===e.which&&this.execute(null)})}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i,n=r(43),s=r(4),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=i=class extends n.b{constructor(){super(i.getEventName())}};o.getEventName=()=>"OpenPreferencesEvent",o=i=a([Object(s.e)()],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(4),n=r(19),s=r(10),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let l=class extends n.a{constructor(e){super(),this.searchProviders=e,this.searchCurcimstancesChanged=new s.b,this.onSearchProviderCurcimstancesChanged=()=>{this.searchCurcimstancesChanged.next()},this.searchProviders.forEach(e=>e.searchCircumstancesChanged.subscribe(this.onSearchProviderCurcimstancesChanged))}getResultsWithLimit(e,t){return o(this,void 0,void 0,(function*(){if(!e)return{results:[],hasMore:!1};let r=[];for(let i of this.searchProviders)r.push(yield i.getResultsWithLimit(e,t+1));return this.limitSearchResults(r.sort((e,t)=>t.order-e.order).map(e=>e.searchResults),t)}))}Dispose(){this.searchProviders.forEach(e=>e.searchCircumstancesChanged.unsubscribe(this.onSearchProviderCurcimstancesChanged)),this.searchProviders.forEach(e=>e.Dispose())}limitSearchResults(e,t){let r=t,i=[],n=0;for(;0!==r;){for(let t=0;t<e.length;t++){i[t]||(i[t]=[]);const s=e[t],a=i[t];if(s.length>n&&(a.push(s[n]),r--),0===r)break}if(0===r)break;if(n++,e.every(e=>n>=e.length))break}return this.createSearchResultsModel(e,i,t)}createSearchResultsModel(e,t,r){const i=e.flatMap(e=>e.length).reduce((e,t)=>e+t,0);return{results:t.flat(),hasMore:i>r}}};l.getServiceName=()=>"GlobalSearchService",l=a([Object(i.e)()],l)},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(19),n=r(4),s=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let a=class extends i.a{constructor(e){super(),this.selectionProviders=e}select(e){const t=this.selectionProviders.find(t=>e.getTypeName()===t.managedTypeName);if(!t)throw new Error(`No selection provider for ${e.getTypeName()}!`);t.select(e)}removeSelection(){this.selectionProviders.forEach(e=>e.removeSelection())}};a.getServiceName=()=>"GlobalSearchSelectionService",a=s([Object(n.e)()],a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i,n=r(43),s=r(4),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=i=class extends n.b{constructor(){super(i.getEventName())}};o.getEventName=()=>"DefinitionUILoadCompleteEvent",o=i=a([Object(s.e)()],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var i=r(1),n=r(0),s=r(3),a=r(12),o=r(16),l=r(262),c=r(184),d=r(27),u=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class h extends l.a{constructor(e,t){super(e,t)}execute(){return u(this,void 0,void 0,(function*(){const e=this.provider.getService(o.a),t=e.PrimarySelection;if(!t)return;const r=e.GetSelectedComponents();if(0===r.length)return;if(r.some(e=>e instanceof c.a||e.Parent instanceof c.a))return;this.ProcessSelectedComponents(r);const i=this.provider.getServiceByName(s.a.IDesignerHost).CreateTransaction(`Delete '${r.map(e=>e.Name).join("', '")}'`),l=[];try{const o=this.provider.getServiceByName(s.a.IDesignSurfaceManager).ActiveDesignSurface;for(const e of r)if(e.canDelete()){const t=e.Parent,r=t.getProperty(n.a.Items);t.raiseComponentChanging(r);const i=e.Designer;i.IsTableCell?yield this.handleDeleteTableCell(i,o):e.delete(),t.raiseComponentChanged(r,null,null)}else l.push(`'${e.Name}'`);if(i.Commit(),l.length){const e=d.a.String(this.stringResources.FollowingItemsFromSelectionCouldNotBeDeleted,{itemList:l.join(", ")});this.provider.getService(a.a).warning(e)}t.Parent&&e.SetSelectedComponents([t.Parent])}catch(e){try{i.Rollback()}catch(t){throw e}this.provider.getService(a.a).error(e.message,e)}}))}isValidSelectionCore(e){return super.isValidSelectionCore(e)&&e.some(e=>e.canDelete())}handleDeleteTableCell(e,t){return u(this,void 0,void 0,(function*(){if(e.Component.Type===i.a.TextBox)e.Component.getPropertyWrapper(n.a.Value).SetValue("");else{const r=yield t.createNewComponent(i.a.TextBox,null,e.Component.Parent,null,!1);yield r.createDesigner();const n=e.ParentDesigner,s=n.GetCell(e.Component);n.TableLayout.ReplaceCellContentExtended(s,r,null,null)}}))}ProcessSelectedComponents(e){}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(355),n=r(113),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends n.a{constructor(e,t,r,i,n){super(e,t),this.offsetX=r,this.offsetY=i,this.resizing=n}execute(e){return s(this,void 0,void 0,(function*(){const e=this.provider.getService(i.a);e&&(e.Initialize(this.resizing),e.Adjust(this.offsetX,this.offsetY))}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(86),n=r(13),s=r(51);class a extends i.a{constructor(e,t,r){super(e,t),this.model=r,this.class="",this.innerTemplate='<input class="editor__dropdown" type="text" />'}get title(){return this.sr.DataSourceTitle}Dispose(){}init(){const e=this.$parent.find("#"+this.id);e.find("input").kendoDropDownList({dataSource:this.model.dataSources.map(e=>({Name:e.Name})),dataTextField:"Name",value:this.model.dataSource?this.model.dataSource.Name:null,optionLabel:{Name:this.sr.NoDataSourceTitle},select:t=>{this.model.dataSource=this.model.dataSources.find(e=>e.Name===t.dataItem.Name),this.model.resetFields(),new n.a(e[0]).emit(new s.f({bubbles:!0}))}})}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(86),n=r(240),s=r(600),a=r(51),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends i.a{constructor(e,t,r){super(e,t),this.model=r,this.class="-top-label -list -draggable-list",this.visible=!0,this.innerTemplate='<div id="data-fields" class="editor__list"></div>',this.contextMenuItems=[],this.addEventListeners()}get title(){return this.sr.DataSourceFieldsTitle}Dispose(){this.parentElementEventEmitter.off(a.f,this.setDataSourceBound),this.parentElementEventEmitter.off(a.g,this.fillContextMenuItemsEventListener),this.parentElementEventEmitter.off(a.e,this.addDataFieldEventListener),this.contextMenu&&(this.contextMenu.Dispose(),this.contextMenu=void 0)}init(){const e=this.$parent.find("#"+this.id).find(".editor__list"),t=this.model.dataFields.map(e=>new n.a(e.name,e.dataType,e.aggregateFunction));this.dataFieldsList=e.kendoListBox({template:kendo.template(this.getListBoxItemTemplate()),reorder:e=>{e.preventDefault()},draggable:{enabled:!0,hint:e=>this.prepareAndCloneDraggableItem(e).addClass("twd-drag -designer-wizard -reorderable").width(e.innerWidth())},dataSource:{data:t},dataBound:()=>o(this,void 0,void 0,(function*(){var e;yield null===(e=this.contextMenu)||void 0===e?void 0:e.init()})),remove:e=>{e.preventDefault()}}).data("kendoListBox"),this.contextMenu=new s.a(this.$parent.find("#"+this.id),".k-chip-actions",this.provider,this.contextMenuItems),this.toggleDataFieldsListVisibility()}addEventListeners(){this.setDataSourceBound=this.setDataSource.bind(this),this.fillContextMenuItemsEventListener=e=>{this.fillContextMenuItems(e.detail)},this.addDataFieldEventListener=e=>{this.addDataField(e.detail)},this.parentElementEventEmitter.on(a.f,this.setDataSourceBound),this.parentElementEventEmitter.on(a.g,this.fillContextMenuItemsEventListener),this.parentElementEventEmitter.on(a.e,this.addDataFieldEventListener)}addDataField(e){const t=this.dataFieldsList.select(),r=this.dataFieldsList.dataItem(t);this.$parent[0].dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:r}))}fillContextMenuItems(e){this.contextMenuItems.push(e)}setDataSource(){const e=this.model.dataFields.map(e=>new n.a(e.name,e.dataType,e.aggregateFunction));this.dataFieldsList.setDataSource(new kendo.data.DataSource({data:e})),this.toggleDataFieldsListVisibility()}toggleDataFieldsListVisibility(){const e=this.$parent.find("#"+this.id).find(".editor__list");this.model.dataFields.length?(e.show(),this.dataFieldsList.element.hide()):e.hide()}getListBoxItemTemplate(){return'<div id="#: id #"\n                    class="editor__list-item k-chip k-chip-md k-rounded-full k-chip-solid k-chip-solid-base">\n                    <span class="k-chip-content">\n                        <span class="k-chip-text">#: name #</span>\n                    </span>\n                    <span class="k-chip-actions">\n                        <span class="k-chip-action editor__edit">\n                            <span class="k-icon k-i-more-vertical"></span>\n                        </span>\n                    </span>\n                </div>'}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(240),n=r(86),s=r(13),a=r(51),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends n.a{constructor(e,t,r){super(e,t),this.model=r,this.visible=!0,this.innerTemplate=this.getListTemplate()}Dispose(){this.currentElementEventEmitter.off(a.c,this.removeDataFieldEventListener),this.currentElementEventEmitter.off(a.b,this.reorderDataFieldsEventListener),this.currentElementEventEmitter.off(a.d,this.updateDataSourceEventListener),this.parentElementEventEmitter.off(a.f,this.updateDataSourceEventListener),this.$parent[0].removeEventListener(this.title,this.addDataFieldEventListener,!1),this.contextMenu&&(this.contextMenu.Dispose(),this.contextMenu=void 0)}init(){const e=this.getDataSource(),t=this.$parent.find("#"+this.id);this.currentElement=t[0],this.currentElementEventEmitter=new s.a(this.currentElement),this.listBox=t.find(".editor__list").kendoListBox({dropSources:this.dropSources,draggable:{enabled:!0,placeholder:e=>e.clone().addClass("twd-placeholder -designer-wizard"),hint:e=>this.prepareAndCloneDraggableItem(e).addClass("twd-drag -designer-wizard -reorderable").width(e.innerWidth())},add:e=>o(this,void 0,void 0,(function*(){e.preventDefault();const t=this.getDataFields(),r=this.getNewDataField(e.dataItems[0]),i=e.sender.wrapper.find("li").index(e.sender.wrapper.find(".twd-placeholder")[0]);t.splice(i,0,r),this.updateDataSource(),yield this.initContextMenu(e.sender.wrapper,".k-chip-actions")})),remove:e=>{this.removeDataField(e.dataItems[0].id)},drop:e=>{e.sender._draggable.hint.hide();const t=kendo.elementUnderCursor(e.draggableEvent);$(t).closest(".k-listbox").length||this.removeDataField(e.dataItems[0].id)},reorder:e=>{this.reorderDataFields([e.dataItems[0].id,e.offset])},dataSource:e,dataTextField:"name",dataValueField:"id",navigatable:!0,selectable:"single",template:kendo.template(this.getDroppableListTemplate()),dataBound:e=>{e.sender.wrapper.toggleClass("-empty",0===e.sender.dataSource.data().length)}}).data("kendoListBox"),this.listBox.wrapper.attr("data-content",this.sr.DragAndDropPlaceholder),this.listBox.wrapper.addClass("-sortable-list"),this.listBox.wrapper.on("keydown",e=>{e.stopImmediatePropagation()}),this.addEventListeners(),this.parentElementEventEmitter.emit(new a.g(this.title,{bubbles:!1}))}getNewDataField(e){return new i.a(e.name,e.dataType)}addEventListeners(){this.removeDataFieldEventListener=e=>{this.removeDataField(e.detail)},this.reorderDataFieldsEventListener=e=>{this.reorderDataFields(e.detail)},this.updateDataSourceEventListener=this.updateDataSource.bind(this),this.addDataFieldEventListener=e=>{this.addDataField(e.detail)},this.currentElementEventEmitter.on(a.c,this.removeDataFieldEventListener),this.currentElementEventEmitter.on(a.b,this.reorderDataFieldsEventListener),this.currentElementEventEmitter.on(a.d,this.updateDataSourceEventListener),this.parentElementEventEmitter.on(a.f,this.updateDataSourceEventListener),this.$parent[0].addEventListener(this.title,this.addDataFieldEventListener,!1)}getDataSource(){return new kendo.data.DataSource({data:this.getDataFields()})}getDroppableListTemplate(){return'<div id="#: id #"\n                    class="editor__list-item k-chip k-chip-md k-rounded-full k-chip-solid k-chip-solid-base">\n                    <span class="k-chip-content">\n                        <span class="k-chip-text">#: name #</span>\n                    </span>\n                    <span class="k-chip-actions">\n                        <span class="k-chip-action editor__edit">\n                            <span class="k-icon k-i-more-vertical"></span>\n                        </span>\n                    </span>\n                </div>'}removeDataField(e){const t=this.getDataFields(),r=t.findIndex(t=>t.id===e);r>-1&&(t.splice(r,1),this.updateDataSource())}addDataField(e){return o(this,void 0,void 0,(function*(){const t=this.getDataFields(),r=this.getNewDataField(e);t.push(r),this.updateDataSource(),yield this.initContextMenu(this.$parent.find("#"+this.id),".k-chip-actions")}))}reorderDataFields(e){const t=this.getDataFields(),r=t.find(t=>t.id===e[0]),i=t.indexOf(r),n=i+e[1];n>-1&&n<t.length&&(t.splice(i,1),t.splice(n,0,r),this.updateDataSource())}updateDataSource(){const e=this.getDataSource();this.listBox.setDataSource(e),this.currentElementEventEmitter.emit(new a.h({bubbles:!0}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(41),n=r(1);class s{}s.fieldTypes=[[n.a.Byte,i.a.NumericField],[n.a.SByte,i.a.NumericField],[n.a.SqlByte,i.a.NumericField],[n.a.Int16,i.a.NumericField],[n.a.UInt16,i.a.NumericField],[n.a.SqlInt16,i.a.NumericField],[n.a.Int32,i.a.NumericField],[n.a.UInt32,i.a.NumericField],[n.a.SqlInt32,i.a.NumericField],[n.a.Int64,i.a.NumericField],[n.a.UInt64,i.a.NumericField],[n.a.SqlInt64,i.a.NumericField],[n.a.Single,i.a.NumericField],[n.a.SqlSingle,i.a.NumericField],[n.a.Double,i.a.NumericField],[n.a.SqlDouble,i.a.NumericField],[n.a.Decimal,i.a.NumericField],[n.a.SqlDecimal,i.a.NumericField],[n.a.SqlMoney,i.a.NumericField],[n.a.Boolean,i.a.BooleanField],[n.a.SqlBoolean,i.a.BooleanField],[n.a.DateTime,i.a.DateTimeField],[n.a.TimeSpan,i.a.DateTimeField],[n.a.SqlDateTime,i.a.DateTimeField],[n.a.Char,i.a.CharacterField],[n.a.SqlChars,i.a.StringField],[n.a.String,i.a.StringField],[n.a.SqlString,i.a.StringField],[n.a.Image,i.a.BinaryField],[n.a.Icon,i.a.BinaryField],[n.a.Bitmap,i.a.BinaryField],[n.a.Metafile,i.a.BinaryField],[n.a.ByteArray,i.a.BinaryField],[n.a.SqlBinary,i.a.BinaryField],[n.a.Object,i.a.ObjectField],[n.a.Color,i.a.ObjectField],[n.a.Unit,i.a.ObjectField]]},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t,r,i="none"){this.$parent=e,this.model=r,this.border=i,this.selectedClass="-selected",this.init(t)}get template(){return`<div class="twd-toggle-buttons k-widget -${this.border}"></div>`}buttonTemplate(e){return`<div title="${e.Title}" class="toggle-buttons__button ${e.IsChecked?this.selectedClass:""}"> \n                        <input type="radio" name="${e.Name}" value="${e.Value}" ${e.IsChecked?"checked":""} />\n                        <span class="k-icon ${e.IconName} toggle-buttons__icon"></span>\n                    </div>`}init(e){this.$parent.append(this.template),this.$visualElement=this.$parent.find(".twd-toggle-buttons");for(const e of this.model.values())this.$visualElement.append(this.buttonTemplate(e));this.$parent.off("change","[type=radio]").on("change","[type=radio]",t=>{const r=$(t.currentTarget);this.updateSelected(r),e(r.val().toString())})}updateSelected(e){this.$visualElement.find("."+this.selectedClass).removeClass(this.selectedClass),e.closest(".toggle-buttons__button").addClass(this.selectedClass)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(114),n=r(10);class s extends i.a{constructor(e,t){super(),this.determineIfResetIsDirty=e,this.resetToDefaultValueCallback=t,this.onResetDirtyChanged=new n.b,this.checkAndUpdateReset()}get IsResetDirty(){return this.getByPropertyName(e=>{e.isResetDirty})}set IsResetDirty(e){this.setByPropertyName(e=>{e.isResetDirty},e),this.onResetDirtyChanged.next({resetDirty:e})}resetToDefaultValue(){this.IsResetDirty&&(this.resetToDefaultValueCallback(),this.unMarkResetDirty())}checkAndUpdateReset(){this.IsResetDirty=this.determineIfResetIsDirty()}unMarkResetDirty(){this.IsResetDirty=!1}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(1),n=r(370),s=r(371),a=r(613);class o{static InitializeSeries(e,t){if(e&&t){o.getInitializer(e,t).initialize(t)}}static getInitializer(e,t){var r;const o=null===(r=e.CoordinateSystems)||void 0===r?void 0:r.find(e=>e.Name===t.CoordinateSystem);if(o)return t.NetType===i.a.BarSeries?o.NetType===i.a.PolarCoordinateSystem?new a.a:new n.a:new s.a}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(5),n=r(1),s=r(371);class a extends s.a{initialize(e){super.initialize(e);const t=e;t.DataPointLabelConnectorStyle=t.DataPointLabelConnectorStyle||{NetType:n.a.Style},t.DataPointLabelConnectorStyle.Visible=!1,t.DataPointLabelConnectorStyle.Padding=t.DataPointLabelConnectorStyle.Padding||{NetType:n.a.Padding},t.DataPointLabelConnectorStyle.Padding.Top=i.a.Point(2).ToString(),t.DataPointLabelConnectorStyle.Padding.Bottom=i.a.Point(2).ToString()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{initialize(e){}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(1),n=r(266),s=r(98);class a extends n.a{createSeries(){return{NetType:i.a.LineSeries}}initializeSeries(e,t){e.X=this.extender.getSeriesExpression(),e.Y=t,e.ArrangeMode=s.a[this.getArrangeMode()],e.DataPointStyle=e.DataPointStyle||{NetType:i.a.Style},e.DataPointStyle.Visible=!1,e.MissingValuesLineStyle=e.MissingValuesLineStyle||{NetType:i.a.Style},e.MissingValuesLineStyle.Visible=!1}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(5),n=r(1),s=r(369),a=r(328),o=r(98),l=r(267);class c extends l.a{get shouldAddToggleVisibilityActions(){return!1}createCoordinateSystem(){const e={NetType:n.a.PolarCoordinateSystem,Name:this.namingService.CreateName(n.a.PolarCoordinateSystem)},t={NetType:n.a.GraphAxis,Name:this.namingService.CreateName(n.a.GraphAxis)},r={NetType:n.a.NumericalScale};t.Scale=r,t.Style={NetType:n.a.Style,Visible:!1},t.Style.Visible=!1,t.MajorGridLineStyle={NetType:n.a.Style,Visible:!1},t.MajorGridLineStyle.Visible=!1,e.AngularAxis=t.Name,this.graphPropertyStore.Axes=this.graphPropertyStore.Axes||[],this.graphPropertyStore.Axes.push(t);const i={NetType:n.a.GraphAxis,Name:this.namingService.CreateName(n.a.GraphAxis)},s=this.extender.createScale(this.model,i);return s.SpacingSlotCount=0,s.NetType===n.a.CategoryScale&&(s.PositionMode=a.a[a.a.OnTicks]),i.Scale=s,i.Style={NetType:n.a.Style,Visible:!1},i.Style.Visible=!1,i.MajorGridLineStyle={NetType:n.a.Style,Visible:!1},i.MajorGridLineStyle.Visible=!1,e.RadialAxis=i.Name,this.graphPropertyStore.Axes.push(i),e}createSeries(){return{NetType:n.a.BarSeries}}initializeSeries(e,t){var r;s.a.InitializeSeries(this.graphPropertyStore,e),e.X=t,e.Y=this.extender.getSeriesExpression();let a=t;a.startsWith("=")&&(a=a.substring(1).trim());const l=`${a} / CDbl(Exec('${this.graphPropertyStore.Name}', ${a}))`;e.DataPointLabel="= "+l,e.DataPointLabelFormat="{0:P}",e.DataPointLabelStyle=e.DataPointLabelStyle||{NetType:n.a.Style},e.DataPointLabelStyle.Visible=!0,e.DataPointLabelConnectorStyle=e.DataPointLabelConnectorStyle||{NetType:n.a.Style},e.DataPointLabelConnectorStyle.Visible=!1,this.setToolTips(e,null===(r=e.ToolTip)||void 0===r?void 0:r.Title,`= Format('{0:P}', ${l})`),e.ArrangeMode=o.a[o.a.Stacked100],e.DataPointStyle=e.DataPointStyle||{NetType:n.a.Style},e.DataPointStyle.LineWidth=i.a.Zero.ToString(),e.DataPointStyle.Visible=!0}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(2),n=r(626),s=r(627),a=r(74),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let c=class extends a.a{createModel(){return l(this,void 0,void 0,(function*(){return this.model=new n.a(this.component,this.provider),yield this.model.Initialize(),this.model}))}createPageArranger(){const e=this.view.element.find(".twd-editors");return new s.a(e,this.provider,this.model)}};c=o([Object(i.a)("sql-data-source-wizard")],c)},function(e,t,r){"use strict";r.d(t,"a",(function(){return b}));var i=r(0),n=r(3),s=r(93),a=r(12),o=r(16),l=r(96),c=r(270),d=r(363),u=r(364),h=r(639),p=r(640),m=r(641),g=r(642),f=r(643),v=r(644),y=r(176),S=r(645),C=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class b extends c.a{constructor(e,t){super(e),this.table=t,this.designer=this.table.Designer,this.model=new S.a(e,t),this.categories.push({title:this.sr.CrosstabDataCategory,items:[new d.a(this.provider,this.$parent,this.model),new u.a(this.provider,this.$parent,this.model)]},{title:this.sr.CrosstabFieldsCategory,items:[new f.a(this.provider,this.$parent,this.model)]},{title:this.sr.CrosstabAppearanceCategory,items:[new v.a(this.provider,this.$parent,this.model)]})}get WizardHeader(){return this.sr.TableWizardHeader}close(e=!0){this.isInitialized&&(e&&this.table.delete(),this.isInitialized=!1,kendo.destroy(this.$visualElement),this.removeEvents(),this.Dispose(),this.$visualElement.remove())}CreateLayoutBuilder(){switch(this.model.layoutType){case y.a.SimpleLayout:return new m.a(this.provider,this.table,this.model);case y.a.BlockedBelow:return new p.a(this.provider,this.table,this.model);case y.a.BlockedAbove:return new h.a(this.provider,this.table,this.model);case y.a.SteppedAbove:return new g.a(this.provider,this.table,this.model);default:throw new Error(`Layout type '${this.model.layoutType}' is not supported.`)}}save(){return C(this,void 0,void 0,(function*(){if(this.isOpen&&(this.$visualElement.removeClass("-open"),this.isOpen=!1,this.Dispose(),this.model.hasSelection)){const e=this.provider.getServiceByName(n.a.IDesignerHost).CreateTransaction("Crosstab wizard create");try{yield this.animationEnd().then(()=>C(this,void 0,void 0,(function*(){this.close(!1)})));const t=this.provider.getService(s.a);yield Object(l.a)(t.Start(),()=>C(this,void 0,void 0,(function*(){const t=this.CreateLayoutBuilder();yield t.CreateTableLayout(),this.designer.TableLayout.PerformLayout();const r=this.table.Parent.getProperty(i.a.Items);this.table.Parent.raiseComponentChanged(r,null,null);this.provider.getService(o.a).SetSelectedComponents([this.table]),e.Commit()})))}catch(t){this.provider.getService(a.a).error(t.message,t),e.Rollback(),this.close()}}}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(73),n=r(165),s=r(15),a=r(40),o=r(377),l=r(72),c=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class d{constructor(e,t,r){this.provider=e,this.component=t,this.model=r,this.DataSource=r.dataSource,this.StyleSheet=r.styleSheet,this.ColumnGroups=r.columnGroups,this.RowGroups=r.rowGroups,this.DetailValues=r.detailValues,this.uniqueNameGenerator=this.provider.getService(a.a),this.ComponentFactory=new o.a(this.component,this.StyleSheet,this.provider)}get HasColumnGroups(){return this.ColumnGroups.length>0}get HasDetailValues(){return this.DetailValues.length>0}get HasManyValues(){return this.DetailValues.length>1}get HasRowGroups(){return this.RowGroups.length>0}CreateBoundGroup(e,t){return c(this,void 0,void 0,(function*(){const r=new s.a({},this.component,this.provider),a=new i.a({},r,this.provider),o=new n.a({},r,this.provider),c=l.a.ensureExpression(e.ExpressionBody),d=yield this.CreateBoundTextBox(e,t);return r.Name=this.uniqueNameGenerator.CreateName(e.name),r.ReportItem=d,a.Expression=c,o.Expression=c,r.Groupings.Add(a),r.Sortings.Add(o),yield r.Initialize(),r}))}CreateBoundTextBox(e,t){return c(this,void 0,void 0,(function*(){const r=l.a.ensureExpression(e.ExpressionBody);return yield this.CreateStaticTextBox(r,t)}))}CreateDetailGroup(){return c(this,void 0,void 0,(function*(){const e=new s.a({},this.component,this.provider),t=new i.a({},e,this.provider);return e.Name="detail",e.Groupings.Add(t),yield e.Initialize(),e}))}CreateFieldGroup(e,t){return c(this,void 0,void 0,(function*(){const r=new s.a({},this.component,this.provider),i=yield this.CreateBoundTextBox(e,t);return r.Name=this.uniqueNameGenerator.CreateName(e.name),r.ReportItem=i,yield r.Initialize(),r}))}CreateLogicGroup(e){return c(this,void 0,void 0,(function*(){const t=new s.a({},this.component,this.provider),r=new i.a({},t,this.provider),a=new n.a({},t,this.provider),o=l.a.ensureExpression(e.ExpressionBody);return t.Name=this.uniqueNameGenerator.CreateName(e.name),r.Expression=o,a.Expression=o,t.Groupings.Add(r),t.Sortings.Add(a),yield t.Initialize(),t}))}CreateStaticGroup(e,t){return c(this,void 0,void 0,(function*(){const r=new s.a({},this.component,this.provider),i=yield this.CreateStaticTextBox(e,t);return r.Name=this.uniqueNameGenerator.CreateName(e),r.ReportItem=i,yield r.Initialize(),r}))}CreateStaticTextBox(e,t){return c(this,void 0,void 0,(function*(){const r=yield this.ComponentFactory.CreateTextBox();return r.Value=e,r.StyleName=t,r}))}CreateTableColumn(){return this.ComponentFactory.CreateTableColumn()}CreateTableContent(e){return c(this,void 0,void 0,(function*(){}))}CreateTableLayout(){return c(this,void 0,void 0,(function*(){const e=this.component;yield this.CreateTableContent(e),e.StyleName||(e.StyleName=this.StyleSheet.TableNormal),yield this.ComponentFactory.ApplyStylePreset(),e.DataSourceName=this.DataSource.Name}))}CreateTableRow(){return this.ComponentFactory.CreateTableRow()}CreateTotalTextBox(e,t){return c(this,void 0,void 0,(function*(){const r=this.GetFieldAggregate(e);return yield this.CreateStaticTextBox(r,t)}))}GetFieldAggregate(e){return l.a.ensureExpression(e.ExpressionBody)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var i=r(35),n=r(5),s=r(171),a=r(172),o=r(1),l=r(0),c=r(3),d=r(40),u=r(378),h=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class p{constructor(e,t,r){this.component=e,this.styleSheet=t,this.provider=r,this.designSurfaceManager=r.getServiceByName(c.a.IDesignSurfaceManager),this.designSurface=this.designSurfaceManager.ActiveDesignSurface,this.defaultSize=new i.a(new n.a(76.8),new n.a(19.2))}ApplyStylePreset(){return h(this,void 0,void 0,(function*(){const e=this.provider.getServiceByName(c.a.IDesignerHost).RootComponent;if(!this.styleSheet.StyleSheet){const e=this.provider.getServiceByName(c.a.ISchemaService),t=yield e.getWizardStyleSheets(this.component.Type);for(const e of u.a.StyleSheets){const r=t[l.a.StyleSheets];e.StyleSheet=r.find(t=>t[l.a.GlobalName]===e.GlobalName)[l.a.StyleSheet]}}let t=!0;const r=e.StyleSheet.filter(e=>e.Selectors.find(e=>e[l.a.StyleName])).map(e=>e.Selectors).reduce((e,t)=>e.concat(t),[]);for(const e of r)if(e[l.a.StyleName].includes(this.styleSheet.GlobalName)){t=!1;break}if(t)for(const t of this.styleSheet.StyleSheet)yield this.createStyleRule(t,e)}))}createStyleRule(e,t){return h(this,void 0,void 0,(function*(){const r=this.provider.getServiceByName(c.a.IDesignerHost);let i=null;r.InTransaction||(i=r.CreateTransaction(`Add new '${o.a.StyleRule}' item`));const n=this.provider.getService(d.a);e[l.a.Name]=n.CreateName(e[l.a.NetType]);const s=yield this.component.createNonChildComponent(e);s&&(t.StyleSheet.push(s),t.PropertyStore[l.a.StyleSheet]||(t.PropertyStore[l.a.StyleSheet]=[]),t.PropertyStore[l.a.StyleSheet].push(e)),i&&i.Commit()}))}CreateTableColumn(){return new s.a({[l.a.NetType]:o.a.Column,[l.a.Width]:this.defaultSize.Width.ToString()})}CreateTableRow(){return new a.a({[l.a.NetType]:o.a.Row,[l.a.Height]:this.defaultSize.Height.ToString()})}CreateTextBox(){return h(this,void 0,void 0,(function*(){const e=yield this.designSurface.createNewComponent(o.a.TextBox,null,this.component,null,!1);return e.PropertyStore[l.a.Width]=this.defaultSize.Width.ToString(),e.PropertyStore[l.a.Height]=this.defaultSize.Height.ToString(),e.PropertyStore[l.a.Value]="",e}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t,r){this.GlobalName=e,this.DisplayName=e,this.ResourceName=t,this.TableNormal=e+".TableNormal",this.TableHeader=e+".TableHeader",this.TableGroup=e+".TableGroup",this.TableCorner=e+".TableCorner",this.TableBody=e+".TableBody",this.SubTotal=e+".SubTotal",this.GrandTotal=e+".GrandTotal",this.ColorScheme=r,this.StyleSheet=null}static get Apex(){return"Apex"}static get Aspect(){return"Aspect"}static get BlueOpal(){return"BlueOpal"}static get Civic(){return"Civic"}static get Corporate(){return"Corporate"}static get Normal(){return"Normal"}static get Office(){return"Office"}static get Solstice(){return"Solstice"}}i.StyleSheets=[new i(i.Normal,"NormalStyleSheet",["#FFFFFF","#FFFFFF","#FFFFFF"]),new i(i.BlueOpal,"BlueOpalSheet",["#E9F4F9","#7CD0F2","#61B4D6"]),new i(i.Apex,"ApexStyleSheet",["#D7D7D8","#69676D","#CEB968"]),new i(i.Aspect,"AspectStyleSheet",["#F1EEE8","#94938F","#323232"]),new i(i.Civic,"CivicStyleSheet",["#F1F5F5","#C5D6D6","#8CAEAD"]),new i(i.Corporate,"CorporateStyleSheet",["#E3E6ED","#8D9CB7","#1C3A70"]),new i(i.Office,"OfficeStyleSheet",["#EEF4FB","#79A7E3","#235CA9"]),new i(i.Solstice,"SolsticeStyleSheet",["#E7DEC9","#D5CABD","#4F271C"])]},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var i=r(270),n=r(653),s=r(654),a=r(175),o=r(3),l=r(93),c=r(96),d=r(0),u=r(16),h=r(12),p=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class m extends i.a{constructor(e,t,r,i){super(e),this.netType=t,this.targetContainer=r,this.position=i}initSubTypeCategoryItems(){}gaugeTypeChangedCallback(){this.model.resetValuesFromPropertyStore(),this.rangesCategoryItems.setMultiRangeItemsVisibility(!this.model.SelectedSubTypeObject.isSingleRange),this.updateCategoriesItems(),this.subTypeCategoryItems&&this.subTypeCategoryItems.forEach((e,t)=>{t===this.model.SelectedSubType?e.forEach(e=>{this.showCategoryItem(this.presentationCategory,e.Id)}):e.forEach(e=>{this.hideCategoryItem(this.presentationCategory,e.Id)})})}updateCategoriesItems(){this.categories.forEach(e=>{e.items.forEach(e=>{e.setInitialValue()})})}initProperties(){return p(this,void 0,void 0,(function*(){this.initModel(),yield this.model.initPropertyStore(),yield this.initCategoryItems(),this.initSubTypeCategoryItems(),this.gaugeTypeCategoryItem=new n.a(this.provider,this.$parent,this.model,this.gaugeTypeChangedCallback.bind(this),this.getTypeTitle()),this.presentationCategory={title:this.sr.GaugeWizardPresentationCategory,items:[]},this.rangesCategoryItems=new s.a(this.provider,this,this.presentationCategory,this.model,this.$parent),this.presentationCategory.items=this.rangesCategoryItems.items.concat(this.allSubTypeCategoryItems).concat(this.categoryItems),this.categories.push({items:[this.gaugeTypeCategoryItem]},{title:this.sr.GaugeWizardAppearanceCategory,items:[new a.a(this.provider,this.$parent,this.sr.GaugeValueTitle,e=>{this.model.Value=e},()=>this.model.Value)]},this.presentationCategory)}))}get allSubTypeCategoryItems(){return this.subTypeCategoryItems?Array.from(this.subTypeCategoryItems.values()).flat():[]}setDefaults(){this.setGaugeType(this.model.getDefaultSubType())}setGaugeType(e){this.gaugeTypeCategoryItem.setValue(e)}setGaugeTypeById(e){const t=this.model.GaugeSubTypes.filter(t=>t.id===e)[0];t&&this.setGaugeType(t)}close(){this.isInitialized&&(this.isInitialized=!1,kendo.destroy(this.$visualElement),this.removeEvents(),this.Dispose(),this.$visualElement.remove())}save(){return p(this,void 0,void 0,(function*(){if(this.isOpen&&(this.$visualElement.removeClass("-open"),this.isOpen=!1,this.Dispose(),this.model.hasSelection)){const e=this.provider.getServiceByName(o.a.IDesignerHost).CreateTransaction("Gauge wizard create");let t=null;try{yield this.animationEnd().then(()=>p(this,void 0,void 0,(function*(){this.close()})));const r=this.provider.getService(l.a);yield Object(c.a)(r.Start(),()=>p(this,void 0,void 0,(function*(){const r=this.createBuilder(),i=this.model.SelectedSubTypeDefaultStore.PropertyStore;r.createGauge(i);const n=this.provider.getServiceByName(o.a.IDesignSurfaceManager);t=yield n.ActiveDesignSurface.createNewComponent(this.netType,i,this.targetContainer,this.position),this.embedNewComponent(this.targetContainer,t);const s=this.targetContainer.getProperty(d.a.Items);this.targetContainer.raiseComponentChanged(s,null,null);this.provider.getService(u.a).SetSelectedComponents([t]),e.Commit()})))}catch(r){this.provider.getService(h.a).error(r.message,r),e.Rollback(),null==t||t.delete(),this.close()}}}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(86),n=r(13),s=r(51);class a extends i.a{constructor(e,t,r,i,n){super(e,t),this.propertyTitle=r,this.setCallback=i,this.getCallback=n,this.class=""}get title(){return this.propertyTitle}init(){this.$element=this.$parent.find("#"+this.id),this.$inputElement=this.$element.find(".editor__value"),this.$inputElement.change(()=>{this.updateValue(this.$inputElement.val()+"")});let e=this.$inputElement[0];this.currentElementEventEmitter=new n.a(e)}Dispose(){}setInitialValue(){if(this.currentElementEventEmitter){const e=this.getCallback();this.updateInput(e)}}updateInput(e){this.updateValue(e),this.$inputElement.val(e)}updateValue(e){this.setCallback(e),this.currentElementEventEmitter.emit(new s.h({bubbles:!0}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(86),n=r(13),s=r(51);class a extends i.a{constructor(e,t,r,i){super(e,t),this.dropDownChangedCallback=r,this.getInitialValueCallback=i,this.class="",this.innerTemplate='<input class="editor__dropdown" type="text" />'}get title(){return this.itemTitle}Dispose(){}init(){const e=this.$parent.find("#"+this.id);this.$inputElement=e.find("input"),this.$inputElement.kendoDropDownList({dataSource:this.items,dataTextField:"Name",dataValueField:"Name",change:e=>{const t=this.getItemByValue(e.sender.value());this.updateValue(t)}}),this.currentElementEventEmitter=new n.a(this.$inputElement[0])}updateInput(e){const t=this.getItemByValue(e);if(t){this.$inputElement.data("kendoDropDownList").value(e),this.updateValue(t)}}updateValue(e){e&&(this.dropDownChangedCallback(e),this.currentElementEventEmitter.emit(new s.h({bubbles:!0})))}getItemByValue(e){return this.items.find(t=>t.Name===e)}setInitialValue(){if(this.currentElementEventEmitter){const e=this.getInitialValueCallback();this.updateInput(e)}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r(271),n=r(659),s=r(8),a=r(3),o=r(193),l=r(76),c=r(660),d=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class u extends i.a{constructor(e){super(e),this.sr=this.provider.getService(s.a),this.schemaService=this.provider.getServiceByName(a.a.ISchemaService),this.GaugeSubTypes=this.getSubTypes(),this.SelectedSubType=this.GaugeSubTypes[0].name,this.HasValueMin=!0,this.HasValueMax=!0,this.Ranges=new Array(o.a.MaxCount);for(let e=0;e<o.a.MaxCount;e++)this.Ranges[e]=new n.a}initPropertyStore(){return d(this,void 0,void 0,(function*(){this.subTypeDefaultStore=new Map;const e=this.GaugeSubTypes.map(e=>d(this,void 0,void 0,(function*(){let t=yield this.schemaService.getDefaultPropertyStore(e.id);this.subTypeDefaultStore.set(e.id,new c.a(t))})));yield Promise.all(e)}))}get SelectedSubTypeObject(){return this.GaugeSubTypes.filter(e=>e.name===this.SelectedSubType)[0]}get SelectedSubTypeDefaultStore(){let e=this.SelectedSubTypeObject.id;return this.subTypeDefaultStore.get(e)}resetValuesFromPropertyStore(){const e=this.SelectedSubTypeDefaultStore;this.Value=e.Value;const t=e.Ranges;this.RangesCount=t.length;for(let e=0;e<t.length;e++)this.Ranges[e].Start=t[e].Start,this.Ranges[e].End=t[e].End;const r=e.Ticks;r.length>0&&(this.MajorTicksSegmentCount=r[0].SegmentCount)}get hasSelection(){return!l.a.IsNullOrWhiteSpace(this.Value)&&this.HasValueMin&&this.HasValueMax&&l.a.IsPositiveIntOrExpression(this.MajorTicksSegmentCount)&&(l.a.IsNullOrWhiteSpace(this.MinorTicksSegmentCount)||l.a.IsPositiveZeroIntOrExpression(this.MinorTicksSegmentCount))}resetFields(){}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(0),n=r(76);class s{constructor(e){this.model=e}createGauge(e){e[i.a.Value]=this.model.Value;const t=e[i.a.Ranges],r=new Array(this.model.RangesCount);for(let e=0;e<r.length;++e){let n=this.createNewObject(e<t.length?t[e]:t[0]),s=this.model.Ranges[e];n[i.a.Start]=s.Start.toString(),n[i.a.End]=s.End.toString(),n[i.a.Style][i.a.BackgroundColor]=s.Color,r[e]=n}if(e[i.a.Ranges]=r,this.model.MajorTicksSegmentCount){e[i.a.Ticks][0][i.a.SegmentCount]=this.model.MajorTicksSegmentCount;e[i.a.Labels][0][i.a.SegmentCount]=this.model.MajorTicksSegmentCount}const s=e[i.a.Ticks];if(n.a.IsIntOrExpression(this.model.MinorTicksSegmentCount)){let e;s.length>1?e=s[1]:(e=this.createNewObject(s[0]),s.push(e)),e[i.a.SegmentCount]=this.model.MinorTicksSegmentCount}else s.length>1&&s.splice(1,1)}createNewObject(e){return JSON.parse(JSON.stringify(e))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(687),n=r(688),s=r(2),a=r(74),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let c=class extends a.a{createModel(){return l(this,void 0,void 0,(function*(){return this.model=new i.a(this.component,this.provider),this.model}))}createPageArranger(){const e=this.view.element.find(".twd-editors");return new n.a(e,this.provider,this.model)}};c=o([Object(s.a)("json-data-source-wizard")],c)},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(2),n=r(297),s=r(160),a=r(10),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};class l extends n.b{constructor(e,t){super(e),this.inlineTextChanged=new a.b,this.InlineText=t}get InlineText(){return this.getByPropertyName(e=>{e.inlineText})}set InlineText(e){this.setByPropertyName(e=>{e.inlineText},e),this.inlineTextChanged.next()}}let c=class extends n.a{constructor(){super(...arguments),this.selectedTypeChanged=new a.c}getTemplate(){return this.templates.Editors.Wizards.Shared.editInlineJsonComponentTemplate}get isInlineJsonInvalid(){return this.model.IsEnabled&&!this.model.InlineText}get isInlineJsonContentInvalid(){return this.model.IsEnabled&&!!this.model.InlineText&&!s.a.isJsonValid(this.model.InlineText)}};o([Object(i.b)()],c.prototype,"title",void 0),o([Object(i.b)({updateOnChange:!0})],c.prototype,"model",void 0),o([i.d],c.prototype,"selectedTypeChanged",void 0),c=o([Object(i.a)("edit-inline-json")],c)},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(692),n=r(702),s=r(2),a=r(74),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let c=class extends a.a{createModel(){return l(this,void 0,void 0,(function*(){return this.model=new n.a(this.component,this.provider),this.model}))}createPageArranger(){const e=this.view.element.find(".twd-editors");return new i.a(e,this.provider,this.model)}};c=o([Object(s.a)("csv-data-source-wizard")],c)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(48),n=r(3),s=r(0),a=r(77),o=r(1),l=r(18),c=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class d extends i.a{constructor(e,t){super(e,t),this.schemaService=this.provider.getServiceByName(n.a.ISchemaService),this.resourceService=this.provider.getServiceByName(n.a.ResourceStorageService);const r=this.wizardModel.component.Parent;this.reportXmlSchema=r.getValueRaw(s.a.SchemaKey)}getPreviewData(e=!0){var t,r,i;return c(this,void 0,void 0,(function*(){const n=jQuery.extend({},this.wizardModel.component.PropertyStore,{[s.a.SchemaKey]:this.reportXmlSchema});n.Source=a.a.EncodeValue(null!==(r=null!==(t=this.wizardModel.InlineText)&&void 0!==t?t:this.wizardModel.ExternalFileText)&&void 0!==r?r:this.wizardModel.ExistingFileText),n.HasHeaders=this.wizardModel.HasHeaders,n.ConsecutiveFieldSeparatorsAsOne=this.wizardModel.ConsecutiveFieldSeparatorsAsOne,n.ConsecutiveRecordSeparatorsAsOne=this.wizardModel.ConsecutiveRecordSeparatorsAsOne,n.FieldSeparators=this.wizardModel.FieldSeparators,n.RecordSeparators=this.wizardModel.RecordSeparators,n.EscapeFormat=this.wizardModel.EscapeFormat,n.Quote=this.wizardModel.QuoteSymbol,n.CommentToken=this.wizardModel.CommentSymbol,n.DecimalSeparator=this.wizardModel.DecimalSeparator,n.ThousandSeparator=this.wizardModel.ThousandsSeparator,n.DateTimeFormat=this.wizardModel.DateFormat,n.DateFormat=this.wizardModel.DateFormat,n.NetType=o.a.CsvDataSource,n.Name=this.wizardModel.GetPropertyValue(s.a.Name),n.Columns=e?null===(i=this.wizardModel.Columns)||void 0===i?void 0:i.map(e=>({Name:e.name,Type:e.type,NetType:o.a.DataColumn})):void 0;const c={[s.a.NetType]:this.wizardModel.component.Type,[s.a.DataSource]:n};return l.a.GetData(()=>this.resourceService.previewCsvData({dataSourceModel:c}))}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(704),n=r(705),s=r(74),a=r(2),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let c=class extends s.a{createModel(){return l(this,void 0,void 0,(function*(){return this.model=new i.a(this.component,this.provider),this.model}))}createPageArranger(){const e=this.view.element.find(".twd-editors");return new n.a(e,this.provider,this.model)}};c=o([Object(a.a)("web-service-data-source-wizard")],c)},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(715),n=r(716),s=r(2),a=r(74),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let c=class extends a.a{createModel(){return l(this,void 0,void 0,(function*(){return this.model=new i.a(this.component,this.provider),this.model}))}createPageArranger(){const e=this.view.element.find(".twd-editors");return new n.a(e,this.provider,this.model)}};c=o([Object(s.a)("object-data-source-wizard")],c)},function(e,t,r){"use strict";r.d(t,"a",(function(){return y}));var i,n=r(10),s=r(2),a=r(36),o=r(178),l=r(742),c=r(13),d=r(392),u=r(103),h=r(9),p=r(8),m=r(274),g=r(360),f=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},v=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let y=i=class extends n.a{constructor(e,t){super(e,t),this.onboardingSelector="."+h.a.WebDesignerOnboardingExperienceClassName,this.resizeCallback=()=>{if(!this._$kendoWindowInstance._closing){if(this.currentNode===this.steps.Head){const e=this._$kendoWindowInstance.center().options.position;this._$kendoWindowInstance.setOptions(e)}else this.currentNode===this.steps.Tail?(this.positionWindowForFinalStep(),this.currentStep.putOverlay()):this._$kendoWindowInstance.setOptions({position:this.currentStep.getPosition()});this.currentStep.putOverlay()}};const r=this.provider.getService(a.a);this.option=r.OnboardingOption,this.propertiesAreaCollapsed=r.PropertiesArea.Collapsed,this.toolboxAreaCollapsed=r.ToolboxArea.Collapsed,this.wrdEventEmitter=this.provider.getService(c.c),this.documentLoaded=!!this.provider.getService(u.a),this.stringResources=this.provider.getService(p.a),this.ButtonText=this.stringResources.OnboardingExperienceEndTourButton}getTemplate(){return this.templates.Layouts.OnboardingExperience.OnboardingExperienceTemplate}onClick(){return v(this,void 0,void 0,(function*(){yield this.currentStep.restore(),this.currentStep.removeArrow(),this.advance(),this.stepper.next(),yield this.currentStep.highlight(),this.currentNode.next?(this._$kendoWindowInstance.setOptions({position:this.currentStep.getPosition()}),this.reachedStepperEnd()&&this.hideCloseButton()):(this.positionWindowForFinalStep(),this.removeStepper(),this.hideNextButton(),this.updateCloseButton())}))}onClose(){return v(this,void 0,void 0,(function*(){yield this.currentStep.restore(),this.currentNode.next?(this.closeMainMenu(),this.removeStepper(),this.currentStep.removeArrow(),this.advanceToFinalStep(),yield this.currentStep.highlight(),this.positionWindowForFinalStep(),this.updateCloseButton()):this.closeOnboarding()}))}beforeInit(){super.beforeInit(),this.wrdEventEmitter.on(d.a,()=>$(".k-window-titleless").addClass("background-transparent")),this.initializeSteps(),window.addEventListener("resize",this.resizeCallback),this.documentLoaded||this.wrdEventEmitter.once(g.a,()=>setTimeout(()=>new m.a(this.provider).execute(),500))}afterInit(){super.afterInit(),this.prepareArrowWrapper(),this.propertiesAreaCollapsed&&this.openPropertiesArea(),this.toolboxAreaCollapsed&&this.openToolboxArea(),this.documentLoaded?this.initializeStepper():(this.hideNextButton(),$(".twd-onb-buttons").css("justify-content","right"),$(".twd-onb-buttons>button").first().removeClass("twd-onb-button-end").addClass("twd-onb-button-next").css("margin-right","20px"),this.ButtonText=this.stringResources.OnboardingExperienceNoDesignSurfaceButton)}initializeStepper(){const e=new Array(i.stepTypes.length-2).fill({icon:"empty"});e.unshift({icon:"empty",selected:!0}),this.stepper=$(".twd-onb-stepper").kendoStepper({linear:!0,label:!1,steps:e}).data("kendoStepper")}initializeSteps(){this.steps=new l.a;const e=this.documentLoaded?i.stepTypes.length:1;for(let t=0;t<e;t++)this.steps.append(new i.stepTypes[t](this.provider,t));this.currentNode=this.steps.Head,this.currentStep=this.currentNode.data}get CurrentStep(){return this.currentStep}set CurrentStep(e){this.setByPropertyName(e=>{e.currentStep},e)}get ButtonText(){return this.buttonText}set ButtonText(e){this.setByPropertyName(e=>{e.buttonText},e)}advance(){const e=this.currentNode.next;this.currentNode=e,this.CurrentStep=e.data}advanceToFinalStep(){const e=this.steps.Tail;this.currentNode=e,this.CurrentStep=e.data}prepareArrowWrapper(){$(this.onboardingSelector).parent().addClass("arrow-wrapper")}cleanUpArrowWrapper(){const e=$(this.onboardingSelector).parent();null==e||e.removeClass("arrow-wrapper")}hideNextButton(){$(".twd-onb-button-next").hide()}hideCloseButton(){$(".twd-onb-button-end").hide(),$(".twd-onb-buttons").css("justify-content","right")}positionWindowForFinalStep(){this._$kendoWindowInstance.center(),this._$kendoWindowInstance.setOptions({position:{top:parseInt(this.currentStep.getPosition().top.toString())+15}})}updateCloseButton(){this.documentLoaded||(this.ButtonText=this.stringResources.OnboardingExperienceFinishButton,$(".twd-onb-buttons>button").first().css("margin-right","14px")),this.buttonText===this.stringResources.OnboardingExperienceEndTourButton&&(this.ButtonText=this.stringResources.OnboardingExperienceFinishButton,this.hideNextButton(),$(".twd-onb-button-end").show(),$(".twd-onb-buttons").css("justify-content","right"),$(".twd-onb-buttons>button:first-child").removeClass("twd-onb-button-end").addClass("twd-onb-button-next"))}closeOnboarding(){this._$kendoWindowInstance.close(),this.cleanUpArrowWrapper(),window.removeEventListener("resize",this.resizeCallback),this.propertiesAreaCollapsed&&this.closePropertiesArea(),this.toolboxAreaCollapsed&&this.closeToolboxArea(),this.documentLoaded&&(this.option.LastOnboardingStep=i.stepTypes.length)}closeMainMenu(){if("none"!==$(".main-menu__wrapper").find(".k-group.k-menu-group.k-menu-group-md").css("display")){const e="."+h.a.WebDesignerMainMenuArea+">ul:first-child>li:first-child";$(".main-menu__wrapper").data("kendoMenu").unbind("close"),$(e).click()}}removeStepper(){var e;null===(e=this.stepper)||void 0===e||e.destroy(),$(".twd-onb-stepper").hide()}reachedStepperEnd(){var e;return null===(e=this.stepper)||void 0===e?void 0:e.steps()[i.stepTypes.length-2].getSelected()}openToolboxArea(){$(`.${h.a.WebDesignerClassName} .k-splitbar:not('.trv-hidden') .k-expand-prev:first`).click()}closeToolboxArea(){$(`.${h.a.WebDesignerClassName} .k-collapse-prev:first`).click()}openPropertiesArea(){$(`.${h.a.WebDesignerClassName} .k-splitbar:not('.trv-hidden') .k-expand-next:last`).click()}closePropertiesArea(){$(`.${h.a.WebDesignerClassName} .k-collapse-next:last`).click()}};y.stepTypes=[o.i,o.c,o.b,o.d,o.h,o.f,o.a,o.g,o.e],y=i=f([Object(s.a)("twd-onboarding-experience")],y)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i,n=r(43),s=r(4),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=i=class extends n.b{constructor(){super(i.getEventName())}};o.getEventName=()=>"TabAreaTabStripActivated",o=i=a([Object(s.e)()],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i,n=r(43),s=r(4),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=i=class extends n.b{constructor(){super(i.getEventName())}};o.getEventName=()=>"OnboardingWindowOpenedEvent",o=i=a([Object(s.e)()],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var i=r(87),n=r(140),s=r(79),a=r(226),o=r(254),l=r(99),c=r(332),d=r(66),u=r(16),h=r(4),p=r(8);class m{constructor(e){this.provider=e,this.localizationResources=e.getService(p.a)}getDataSourceFields(e,t,r,i){const n=new c.a(e,this.localizationResources),s=this.provider.getService(u.a),a=(null==i?void 0:i.Components[0])||s.PrimarySelection,o=this.getBindingScope(i,a,r),d=this.resolveSelectionDataContext(o,a);if(d){const r=t.find(e=>e.Name===d);if(r){const t=n.CreateDataSourceNode(r,"Fields");return t.name=`${this.localizationResources.Fields} - ${t.displayText}`,t.spriteCssClass=e.getFullIconClass(l.a.Fields),t}}return this.dummyDataNode(e.getFullIconClass(l.a.Fields))}getBindingScope(e,t,r){const i=e||(null==t?void 0:t.getPropertyWrapper(r)),n=i?i.BindingScope:o.a.NotSet;return n===o.a.NotSet&&e.ParentWrapper?this.getBindingScope(e.ParentWrapper,null,null):n}resolveSelectionDataContext(e,t){var r,l;let c=null;switch(e){case o.a.ParentDataSource:c=t.Parent;break;case o.a.Self:const e=s.a.GetParentByTypeRecursive(t,a.a);return e?null===(r=e.AvailableValues)||void 0===r?void 0:r.DataSourceName:(h.b.logError("BindingScope is set to Self but the component is not a ReportParameter."),null);case o.a.NotSet:case o.a.ChildDataSource:if(t instanceof i.a)c=t;else{if(t instanceof a.a)return null===(l=t.AvailableValues)||void 0===l?void 0:l.DataSourceName;c=s.a.GetParentByTypesRecursiveOr(t,i.a,n.a)}}return c instanceof i.a?s.a.getDataSourceNameRecursively(c):c instanceof n.a?c.Name:null}dummyDataNode(e){const t=new d.b(this.localizationResources.Fields,"",e);return t.name=t.displayText,t}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(1),n=r(133),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends n.a{constructor(e,t,r){super(e,t,r)}CanLoadDataModel(){return!1}GetType(){return i.a.UnsupportedDataSource}getWizardComponentClass(){}createDesigner(){return s(this,void 0,void 0,(function*(){const e=new(this.schemaService.getDesignerType(this.GetType()))(this.Provider,this);return yield e.Initialize(),e}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(754),n=r(755),s=r(333),a=r(66);class o{constructor(e,t){this.provider=e,this.reportDocument=t,this.stack=new i.a}BuildReportNode(){if(!this.reportDocument)return s.a.CreateEmptyReportNode();const e=this.createNode();return this.BuildNode(e,this.reportDocument),e.nodes[0]}BuildNode(e,t){this.factory=new s.a(this.provider),this.stack.Push(e);new n.a(this).Visit(t)}createNode(){return new a.b}getCurrentNode(){return this.stack.Peek()}BeginItem(){const e=this.createNode();this.getCurrentNode().nodes.push(e),this.stack.Push(e)}EndItem(){this.stack.Pop()}FillItem(e){this.fillNode(this.getCurrentNode(),e)}fillNode(e,t){this.factory.FillItem(e,t)}FillReport(e){const t=this.getCurrentNode();this.fillNode(t,e);const r=t.nodes,i=this.factory.CreateDataSourcesNode(e.DataSources,e.Name);r.push(i.idsNode),r.push(i.sdsNode),r.push(this.factory.CreateReportParametersNode(e.ReportParameters,e.Name)),r.push(this.factory.CreateStyleSheetNode(e.StyleSheet,e.Name)),r.push(this.factory.CreateCrossSectionItemsNode(e.CrossSectionItems,e.Name)),r.push(this.factory.CreateGroupsNode(e.Groups,e.Name))}FillReportBook(e){const t=this.getCurrentNode();this.fillNode(t,e)}FillSharedDataSourceFile(e){const t=this.getCurrentNode();this.fillNode(t,e),t.displayText+=" (SDS)";t.nodes.push(this.factory.CreateSharedDataSourceFileDataNode(e.DataSourceReference,e.Name))}FillGraph(e){const t=this.getCurrentNode();this.fillNode(t,e),this.factory.FillGraph(t,e)}FillMap(e){const t=this.getCurrentNode();this.fillNode(t,e),this.factory.FillMap(t,e)}FillTable(e){const t=this.getCurrentNode();this.fillNode(t,e);const r=e.Designer;t.nodes.push(this.factory.CreateTableRowGroupsNode(e,r)),t.nodes.push(this.factory.CreateTableColumnGroupsNode(e,r)),t.nodes.push(this.factory.CreateTableCornerNode(e,r)),t.nodes.push(this.factory.CreateTableBodyNode(e,r))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{Visit(e){e&&(e.accept(this),this.VisitExtension(e))}VisitExtension(e){if(e)for(const t of e.Children)this.Visit(t)}VisitReport(e){}VisitReportBook(e){}VisitSharedDataSourceFile(e){}VisitReportSectionBase(e){}VisitPageSection(e){this.VisitReportSectionBase(e)}VisitPageHeaderSection(e){this.VisitPageSection(e)}VisitPageFooterSection(e){this.VisitPageSection(e)}VisitReportSection(e){this.VisitReportSectionBase(e)}VisitReportHeaderSection(e){this.VisitReportSection(e)}VisitReportFooterSection(e){this.VisitReportSection(e)}VisitGroupSection(e){this.VisitReportSection(e)}VisitGroupHeaderSection(e){this.VisitGroupSection(e)}VisitGroupFooterSection(e){this.VisitGroupSection(e)}VisitDetailSection(e){this.VisitReportSection(e)}VisitTocSection(e){this.VisitReportSection(e)}VisitReportItem(e){}VisitDataItem(e){this.VisitReportItem(e)}VisitBarcode(e){this.VisitReportItem(e)}VisitTable(e){this.VisitDataItem(e)}VisitShape(e){this.VisitReportItem(e)}VisitSubreport(e){this.VisitReportItem(e)}VisitPictureBox(e){this.VisitReportItem(e)}VisitCheckBox(e){this.VisitReportItem(e)}VisitTextBox(e){this.VisitReportItem(e)}VisitHtmlTextBox(e){this.VisitReportItem(e)}VisitPanel(e){this.VisitReportItem(e)}VisitGraph(e){this.VisitDataItem(e)}VisitMap(e){this.VisitDataItem(e)}VisitDataSource(e){}VisitTocLevel(e){}VisitCrossSectionItem(e){this.VisitReportItem(e)}VisitGauge(e){this.VisitDataItem(e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(251);class n extends i.a{constructor(e,t,r){super(e),this.propertyName=t,this.propertyValue=r}get PropertyName(){return this.propertyName}get PropertyValue(){return this.propertyValue}Match(e){if(e&&super.Match(e)){const t=e.getPropertyValue(...this.propertyName.split("."));return t&&t===this.propertyValue}return!1}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(23),n=r(131),s=r(771);class a{constructor(e,t){if(this.provider=t,this.behaviorService=this.provider.getService(n.a),this.snapLineEngine=null,this.snapInfo=null,this.behaviorService.SnapToSnapLines&&(this.snapLineEngine=new s.a(e,8,t)),this.behaviorService.SnapToGrid){const e=this.behaviorService.SnapGridService;this.snapInfo=e.GetSnapGridInfo()}}Dispose(){this.snapLineEngine&&(this.snapLineEngine.Dispose(),this.snapLineEngine=null),this.behaviorService.SnapToSnapLines&&$(".twd-snapline-container").remove()}AppendSnapLinesTemplate(e){this.behaviorService.SnapToSnapLines&&e.append(this.SnapLinesTemplate)}Snap(e,t,r=null){let n=!1,s=!1,a=i.a.Empty;if(this.snapLineEngine){const e=this.snapLineEngine.Snap(t,r);a=e.SizeF,n=e.SnappedX,s=e.SnappedY}if(this.snapInfo&&(!n||!s)&&this.behaviorService.ShouldSnap){const t=this.snapInfo.Snap(e,!n,!s);n||(a.Width=t.Width),s||(a.Height=t.Height)}return a}Render(){this.behaviorService.SnapToSnapLines&&this.snapLineEngine&&($(".twd-snapline-container").hide(),this.snapLineEngine.Render())}get SnapLinesTemplate(){return'<svg id="snap-to-snapLines-v-left" version="1.1" class="twd-snapline-container" xmlns="http://www.w3.org/2000/svg">\n                    <line class="twd-snapline" x1="0" y1="0" x2="0" y2="0"/>\n               </svg>\n               <svg id="snap-to-snapLines-v-right" version="1.1" class="twd-snapline-container" xmlns="http://www.w3.org/2000/svg">\n                    <line class="twd-snapline" x1="0" y1="0" x2="0" y2="0"/>\n               </svg>\n               <svg id="snap-to-snapLines-h-top" version="1.1" class="twd-snapline-container" xmlns="http://www.w3.org/2000/svg">\n                    <line class="twd-snapline" x1="0" y1="0" x2="0" y2="0"/>\n               </svg>\n               <svg id="snap-to-snapLines-h-bottom" version="1.1" class="twd-snapline-container" xmlns="http://www.w3.org/2000/svg">\n                    <line class="twd-snapline" x1="0" y1="0" x2="0" y2="0"/>\n               </svg>'}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e){this.Behavior=e}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return v}));var i=r(131),n=r(84),s=r(31),a=r(60),o=r(37),l=r(398),c=r(20),d=r(45),u=r(23),h=r(1),p=r(3),m=r(16),g=r(776),f=r(777);class v{constructor(e,t){this.designer=e,this.provider=t,this.isInitialized=!1,this.originalDimensions=d.a.Empty,this.hasHandlers=!0,this.designSurfaceManager=t.getServiceByName(p.a.IDesignSurfaceManager),this.selectionService=t.getService(m.a),this.snappingEngine=null,this.behaviorService=null,this.selectionRules=n.a.None,this.mouseStartPosition=c.a.Empty,this.designSurface=this.designSurfaceManager.ActiveDesignSurface,this.$parent=this.designSurface.visualElement}get VisualElement(){return this.$visualElement}get IsInitialized(){return this.isInitialized}get BehaviorService(){return null===this.behaviorService&&(this.behaviorService=this.provider.getService(i.a)),this.behaviorService}Dispose(){this.isInitialized&&(this.isInitialized=!1,this.$visualElement&&(this.$visualElement.resizable("destroy"),this.$visualElement.remove()))}Initialize(){this.appendVisualElement();const e=this.selectionService.GetSelectedComponents(),t=this.calculateCssResizeDimensions(),r=new d.a(c.a.Empty,u.a.Empty),i=this.getResizableMinimumSize();this.VisualElement.resizable({handles:this.getResizableHandles(),minWidth:i.Width,minHeight:i.Height,start:(t,r)=>this.onStartResizing(t,r,e),resize:(t,i)=>this.onResizing(t,i,e,r),stop:(t,i)=>this.onStopResizing(t,i,e,r)}),this.VisualElement.css(t),this.VisualElement.toggleClass("-no-handlers",!this.hasHandlers),this.isInitialized=!0}getResizableMinimumSize(){const e=this.designer.CalculateMinSize();return new u.a(e.Width.ToPixels(),e.Height.ToPixels())}appendVisualElement(){this.$parent.append(this.template),this.$visualElement=this.$parent.find('[data-component-resizable="'+this.designer.Component.NameAsJQueryAndHtmlSafeString+'"]'),this.$rootVisualElement=this.designSurfaceManager.ActiveDesignSurface.visualElement.children().first()}onStartResizing(e,t,r){if(this.snappingEngine=new l.a(r,this.provider),this.snappingEngine.AppendSnapLinesTemplate(this.$rootVisualElement),this.designer.OnResizeStart(),r.length>1)for(let e=0;e<r.length;e++){const t=r[e].Designer;t.Component.Name!==this.designer.Component.Name&&t.Resizable.SaveCurrentDimensions()}this.designSurface.designerHost.HasActiveResizeOperation=!0}getResizableAxisSafe(){var e;return null!==(e=this.VisualElement.resizable("widget").data().uiResizable.axis)&&void 0!==e?e:"se"}onResizing(e,t,r,i){const n=t.originalPosition.top,s=t.originalPosition.left,a=t.originalSize.width,o=t.originalSize.height,l=t.position.top,c=t.position.left,d=t.size.width,u=t.size.height,h=l+u,p=c+d,m=this.getResizableAxisSafe();let f=this.getMousePosition(m,l,c,d,u);this.mouseStartPosition=this.getMousePosition(m,n,s,a,o);const v=new g.a(r[0].Designer);if(f=this.Snap(f,v),m.includes("n")&&f.Y!==l&&(t.position.top=f.Y,t.size.height+=l-f.Y),m.includes("w")&&f.X!==c&&(t.position.left=f.X,t.size.width+=c-f.X),m.includes("s")&&f.Y!==h&&(t.size.height+=f.Y-h),m.includes("e")&&f.X!==p&&(t.size.width+=f.X-p),i.Left=t.position.left-s,i.Top=t.position.top-n,i.Width=t.size.width-a,i.Height=t.size.height-o,r.length>1)for(let e=0;e<r.length;e++){const t=r[e].Designer;t.Component.Name!==this.designer.Component.Name&&t.Resizable.Resize(i)}this.snappingEngine&&this.snappingEngine.Render()}onStopResizing(e,t,r,i){if(this.UpdateDesigner(i),r.length>1)for(let e=0;e<r.length;e++){const t=r[e].Designer;t.Component.Name!==this.designer.Component.Name&&t.Resizable.UpdateDesigner(i)}this.snappingEngine&&(this.snappingEngine.Dispose(),this.snappingEngine=null),this.designSurface.designerHost.HasActiveResizeOperation=!1}getMousePosition(e,t,r,i,s){const a=new c.a(r,t);return this.selectionRules=0,e.includes("n")&&(this.selectionRules|=n.a.TopSizeable),e.includes("w")&&(this.selectionRules|=n.a.LeftSizeable),e.includes("s")&&(a.Y+=s,this.selectionRules|=n.a.BottomSizeable),e.includes("e")&&(a.X+=i,this.selectionRules|=n.a.RightSizeable),a}Update(){if(!this.IsInitialized)return;const e=this.calculateCssResizeDimensions();this.VisualElement.css(e),this.VisualElement.toggleClass("-no-handlers",!this.hasHandlers)}UpdateDesigner(e){const t=this.designer.GetBounds(!1),r=new d.a(new c.a(t.Left+e.Left,t.Top+e.Top),new u.a(t.Width+e.Width,t.Height+e.Height));this.designer.VisualElementContent&&(r.Width=t.Width+e.Width,r.Height=t.Height+e.Height),this.designer.Resize(r)}Resize(e){const t={width:this.originalDimensions.Width+e.Width+"px",height:this.originalDimensions.Height+e.Height+"px",left:this.originalDimensions.Left+e.Left+"px",top:this.originalDimensions.Top+e.Top+"px"};this.VisualElement.css(t)}UpdatePosition(e){const t={left:this.originalDimensions.Left+e.X+"px",top:this.originalDimensions.Top+e.Y+"px"};this.VisualElement.css(t)}SaveCurrentDimensions(){this.originalDimensions=this.designer.GetBounds(!1)}Enable(){this.IsInitialized&&this.$visualElement.resizable("enable")}Disable(){this.IsInitialized&&this.$visualElement.resizable("disable")}ShowHandlers(){this.hasHandlers=!0}HideHandlers(){this.hasHandlers=!1}Snap(e,t){const r=e;if(this.snappingEngine){const i=this.CreateSnapLines(this.selectionRules,t,e),n=this.snappingEngine.Snap(i.SnapPoint,t.Designer.GetAbsoluteBounds(),i.SnapLines);r.Offset(n.Width,n.Height)}return r}CreateSnapLines(e,t,r){const i=[],l=c.a.Empty,d=!(t.Item.Type===h.a.Report),u=t.Item.Margins,p=this.BehaviorService.Zoom,m=this.CalculateBounds(t,r);return(e&n.a.TopSizeable)===n.a.TopSizeable?(d&&(i.push(new s.a(o.a.Top,m.Top)),i.push(new s.a(o.a.Horizontal,m.Top-p*u.Top.ToPixels(),s.a.MarginTop,a.a.Always))),l.Y=m.Top):(e&n.a.BottomSizeable)===n.a.BottomSizeable&&(d&&(i.push(new s.a(o.a.Bottom,m.Bottom)),i.push(new s.a(o.a.Horizontal,m.Bottom+p*u.Bottom.ToPixels(),s.a.MarginBottom,a.a.Always))),l.Y=m.Bottom),(e&n.a.LeftSizeable)===n.a.LeftSizeable?(d&&(i.push(new s.a(o.a.Left,m.Left)),i.push(new s.a(o.a.Vertical,m.Left-p*u.Left.ToPixels(),s.a.MarginLeft,a.a.Always))),l.X=m.Left):(e&n.a.RightSizeable)===n.a.RightSizeable&&(d&&(i.push(new s.a(o.a.Right,m.Right)),i.push(new s.a(o.a.Vertical,m.Right+p*u.Right.ToPixels(),s.a.MarginRight,a.a.Always))),l.X=m.Right),new f.a(i,l)}CalculateBounds(e,t){const r=new u.a(t.X-this.mouseStartPosition.X,t.Y-this.mouseStartPosition.Y);return e.CalculateBounds(this.selectionRules,r)}calculateCssResizeDimensions(){const e=this.calculateDimensionsOfElement(this.designer);return{width:e.Width+"px",height:e.Height+"px",left:e.Left+"px",top:e.Top+"px"}}calculateDimensionsOfElement(e){const t=(e.VisualElementContent||e.VisualElement)[0].getBoundingClientRect(),r=this.designSurfaceManager.ActiveDesignSurface.visualElement,i=r[0].getBoundingClientRect(),n=r.scrollLeft()+t.left-i.left,s=r.scrollTop()+t.top-i.top;return{Width:t.width,Height:t.height,Left:n,Top:s}}getResizableHandles(){return this.designer.GetResizableHandles}get template(){return`<div tabindex="1000" class="twd-resizable" data-component-resizable="${this.designer.Component.NameAsAttributeSafeString}"></div>`}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(20),n=r(23),s=r(5),a=r(0),o=r(784),l=r(402),c=r(12);class d extends o.a{constructor(e,t){if(super(e,t),this.report=this.Component.Parent,!(this.report.Designer instanceof l.a)){this.Provider.getService(c.a).error(`Section '${this.Component.Name}' has invalid parent.`)}this.reportDesigner=this.report.Designer}get GetResizableHandles(){return"s"}OnComponentChanged(e){this.reportDesigner.Redraw(!0),super.OnComponentChanged(e)}InitializeOverlay(){this.Overlay.Initialize(!1,!0)}Resize(e){const t=this.Component.getProperty(a.a.Height),r=s.a.Parse(t.GetValue(this.Component,this.Component.PropertyStore)),i=s.a.FromPixels(e.Height,r.Type);r.Equals(i)||t.SetValue(i.ToString(),this.Component,this.Component.PropertyStore)}GetLocation(e){const t=i.a.Empty;if(e){const r=this.reportDesigner.GetClientLocation(e);t.Offset(r.X,r.Y)}return t}GetAbsoluteLocation(){const e=this.reportDesigner.GetAbsoluteClientLocation(),t=this.report.Children,r=t.indexOf(this.Component);let i=0;for(var n=0;n<r;n++)i+=t[n].Designer.GetSize().Height;return e.Y+=i,e}GetSize(){const e=this.Component.PropertyStore[a.a.Height],t=e?s.a.ParseToPixels(e):0,r=this.reportDesigner.GetSize().Width;return new n.a(r,t)}AttachToParent(e,t){const r=this.ParentDesigner.Component.Children,i=r.indexOf(this.Component);if(i+1===r.length)e.append(t);else{const n=r[i+1];this.IsAttachedToParent(e,n)?t.insertBefore(r[i+1].Designer.VisualElement):e.append(t)}}IsAttachedToParent(e,t){const r=t.Designer.VisualElement;return e.find(r).length>0}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return y}));var i=r(20),n=r(23),s=r(5),a=r(0),o=r(3),l=r(16),c=r(141),d=r(31),u=r(37),h=r(94),p=r(452),m=r(117),g=r(35),f=r(13),v=r(53);class y extends c.a{constructor(e,t){super(e,t),this.selectionService=this.Provider.getService(l.a),this.webDesignerEventEmitter=this.Provider.getService(f.c),this.dsEventsElement=this.Provider.getServiceByName(o.a.DesignSurfaceEventsElement),this.onSelectionChangingBound=this.onSelectionChanging.bind(this),this.onSelectionChangedBound=this.onSelectionChanged.bind(this),this.webDesignerEventEmitter.on(v.b,this.onSelectionChangingBound),this.webDesignerEventEmitter.on(v.a,this.onSelectionChangedBound)}get GetResizableHandles(){return"e"}SnapLines(){const e=[];if(this.selectionService.PrimarySelection instanceof h.a){const i=this.getZoomedPadding(this.Component.getCascadingPropertyValue(a.a.Style,a.a.Padding,a.a.Right));var t=this.GetHorizontalPageBreaks();if(t.length>1)for(let r=1;r<t.length;r++)e.push(new d.a(u.a.Left,t[r]-i,null,0)),e.push(new d.a(u.a.Right,t[r]-i,null,0)),e.push(new d.a(u.a.Vertical,t[r]-i,d.a.PaddingRight,0));const n=this.Component;if(p.a.IsMulticolumnReport(n)){var r=(this.GetAbsoluteBounds().Left+y.CalculateColumnWidth(n).ToPixels())*this.Zoom-i;e.push(new d.a(u.a.Left,r,null,0)),e.push(new d.a(u.a.Right,r,null,0)),e.push(new d.a(u.a.Vertical,r,null,0))}}return e}static CalculateColumnWidth(e){const t=Math.max(parseInt(e.getPropertyValue(a.a.PageSettings,a.a.ColumnCount)),1),r=s.a.Parse(e.getPropertyValue(a.a.PageSettings,a.a.ColumnSpacing));let i=p.a.CalculatePrintableWidth(e);i=i.Subtract(r.Multiply(t-1)),i=i.Divide(t);const n=s.a.Parse(e.getPropertyValue(a.a.Width));return i.ToUnit(n.Type)}CreateVisualElement(){const e=`<div class="${this.ClassName}"></div>`,t=$.parseHTML(e);return $(t)}InitializeVisualElementContent(){}Redraw(e=!1,t=null){this.Component.updateHeight(),this.createCssBuilder(),this.VisualElement.removeAttr("style"),this.VisualElement.css(this.cssBuilder.Styles),this.VisualElement.attr("data-component-selection",this.Component.NameAsAttributeSafeString),this.UpdateOverlay(),this.UpdateResizable(),e&&this.RedrawChildren(t)}Resize(e){const t=this.Component.getProperty(a.a.Width),r=s.a.Parse(t.GetValue(this.Component,this.Component.PropertyStore)),i=s.a.FromPixels(e.Width,r.Type);if(!r.Equals(i)){let e=i.ToString();t.SetValue(e,this.Component,this.Component.PropertyStore),this.Redraw(!0)}}CalculateMinSize(){const e=new g.a(new s.a(5),new s.a(5));let t=e.Width.ToPixels(),r=e.Height.ToPixels();for(const e of this.Component.Children)for(const r of e.Children){const e=r.Designer;if(e){const r=e.GetBounds(!1);t=Math.max(t,r.Right)}}return new g.a(new s.a(t),new s.a(r))}GetLocation(e){return i.a.Empty}GetAbsoluteLocation(){return i.a.Empty}GetSize(){const e=this.Component.Height.ToPixels(),t=this.Component.PropertyStore[a.a.Width],r=t?s.a.ParseToPixels(t):0;return new n.a(r,e)}GetHorizontalPageBreaks(){const e=[],t=p.a.CalculatePrintableWidth(this.Component).ToPixels()*this.Zoom;if(t>0){const r=this.behaviorService.AdornerWindow.ClientSize,i=this.behaviorService.AdornerWindow.AutoScrollMinSize,n=Math.max(r.Width,i.Width);for(let r=this.GetBounds(!0).Left*this.Zoom;r<n;r+=t)e.push(r)}return e}Destroy(){this.webDesignerEventEmitter.off(v.b,this.onSelectionChangingBound),this.webDesignerEventEmitter.off(v.a,this.onSelectionChangedBound)}onSelectionChanging(e){this.toggleInteractivity(this.selectionService.GetSelectedComponents(),!1)}onSelectionChanged(e){const t=this.selectionService.GetSelectedComponents();this.updateSelectionUI(t),this.toggleInteractivity(t,!0)}toggleInteractivity(e,t){for(let r=0;r<e.length;r++){e[r].Designer.ToggleInteractivity(t)}}updateSelectionUI(e){$(this.dsEventsElement).find(".selected-designer").removeClass("selected-designer");for(let t=0;t<e.length;t++){$('[data-component-selection="'+e[t].NameAsJQueryAndHtmlSafeString+'"]').addClass("selected-designer")}}createCssBuilder(){this.cssBuilder=new m.a(this.Component,!1)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(162);class n extends i.a{}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(401);class n extends i.a{}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(210),n=r(117);class s extends i.a{createCssBuilder(){this.cssBuilder=new n.a(this.Component),this.cssBuilder.Styles.position="absolute",this.cssBuilder.Styles["min-height"]="1px"}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(117);class n extends i.a{addBackgroundDeclarations(){}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(0),n=r(143),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends n.a{constructor(e,t,r,i=!0){super(e,t,r,i),this.formattingRules=[]}get ConditionalFormatting(){return this.formattingRules}CreateConditionalFormattingProperties(){const e=Object.create(null,{CreateConditionalFormattingProperties:{get:()=>super.CreateConditionalFormattingProperties}});return s(this,void 0,void 0,(function*(){yield e.CreateConditionalFormattingProperties.call(this),yield this.createCollectionPropertyComponents(i.a.ConditionalFormatting,this.ConditionalFormatting)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(21);class n{static getRootedFolderPathAndFileNameFromRelativePath(e,t){if(t){const r=i.a.getFileNameAndFolderPath(t),s=i.a.splitPath(r.folderPath);if(s.length>0){const t=n.getRootedPath(e,s);return{fileName:t.isFallBackValue?"":r.fileName,folderPath:t.path}}}return{fileName:"",folderPath:e}}static getFolderPathFromRelativePath(e,t){var r;return null===(r=n.getRootedFolderPathAndFileNameFromRelativePath(e,t))||void 0===r?void 0:r.folderPath}static getRootedPath(e,t){if(1==(null==t?void 0:t.length)&&""===t[0])return{isFallBackValue:!1,path:[e[0]]};for(let r=0;r<e.length-1;r++){if(e[r+1]!=t[r])return{isFallBackValue:!0,path:[...e]};t.shift()}return{isFallBackValue:!1,path:[...e,...t]}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(105),n=r(463);class s{static updateValueUI(e){const t=e.getService(i.a).Editors.find(e=>e instanceof n.a);t&&t.updateValueUI()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var i=r(411),n=r(5),s=r(3),a=r(7),o=r(2),l=r(1),c=r(71),d=r(94),u=r(91),h=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let p=class extends i.a{get UnitType(){return this.getByPropertyName(e=>{e.unitType})}set UnitType(e){this.setByPropertyName(e=>{e.unitType},e)}get Unit(){return this.unit}updateStateUi(){}getTemplate(){return this.templates.Editors.UnitEditors.unitEditorComponentTemplate}beforeInit(){super.beforeInit(),this.unitTypes=this.getUnitTypes(),this.initModel()}afterInit(){super.afterInit(),this.kendoWidget=this.visualElement.find("input.editor__dropdown.units").data("kendoDropDownList")}createFocusStrategy(){return new u.c(this.visualElement)}initModel(){const e=this.getPropertyWrapperValue();this.unit=n.a.Parse(e),this.Value=""+this.unit.Value,this.UnitType=this.unitTypes.find(e=>e.Description===this.unit.Type)}unitTypeSelected(){const e=this.UnitType,t=this.unit.ToUnit(e.Description);this.updatePropertyWrapperValue(t.ToString()),this.resetManager.checkAndUpdateReset()}get isResetVisible(){return super.isResetVisible&&this.Enabled&&this.propertyWrapper.Components.every(e=>!(function(e){return e instanceof c.a||e instanceof d.a}(e)&&"Layout"===this.propertyWrapper.Category&&("Width"===this.LocalizedName||"Height"===this.LocalizedName)))}refreshValue(){this.initModel()}getUnitTypes(){return this.provider.getServiceByName(s.a.ITypeDescriptorRepository).GetPropertyTypeDescriptor("UnitType").GetEnumValues()}};p=h([Object(o.a)("unit-editor"),Object(a.b)(l.a.Unit,"LineWidth")],p)},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(49),n=r(4);class s extends i.a{get Value(){return this.getByPropertyName(e=>{e.value})}set Value(e){this.setByPropertyName(e=>{e.value},e)}setValue(e){const t=$(e.currentTarget).val().toString();this.setValueCore(t)}setValueCore(e){const t=parseFloat(e);isNaN(+e)||isNaN(t)||e.endsWith(n.b.getDecimalSeparator())||(this.unit.Value=t,this.updatePropertyWrapperValue(this.unit.ToString()),this.resetManager.checkAndUpdateReset())}setValueWithStep(e){const t=$(e.currentTarget).val(),r=n.b.getEditorValueWithStep(e,t);t!==r&&(this.Value=r,this.setValue(e))}validateValue(e){const t=$(e.currentTarget).val().toString();(0===t.length||isNaN(+t)||isNaN(parseFloat(t))||t.endsWith(n.b.getDecimalSeparator()))&&(this.Value=""+this.unit.Value,this.setValue(e))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(410),n=r(3),s=r(5);class a extends i.a{beforeInit(){const e=this.provider.getServiceByName(n.a.ISchemaService);this.separator=e.CultureContext.listSeparator+" ",super.beforeInit()}setEnabled(e){this.Enabled=e,this.kendoWidget.enable(e)}getPropertyWrapperValue(){const e=super.getPropertyWrapperValue();if(e&&""!==e){const t=e.split(this.separator);if(this.Index>=t.length)throw new Error(`Index out of bounds for index "${this.Index}" in value "${e}.`);return t[this.Index]}return s.a.Zero}updatePropertyWrapperValue(e){let t=super.getPropertyWrapperValue();t&&""!==t||(t=`0px${this.separator}0px`);const r=t.split(this.separator);if(this.Index>=r.length)throw new Error(`Index out of bounds for index "${this.Index}" in value "${t}.`);r[this.Index]=e,super.updatePropertyWrapperValue(r.join(this.separator))}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return l}));var i=r(0),n=r(118),s=r(38),a=r(163);class o{}o.nonAllowedEditors=[i.a.BorderStyle,i.a.BorderWidth,i.a.BorderColor];class l extends n.b{getChildEditorBuilders(e){const t=super.getChildEditorBuilders(e);return t.push({builder:s.a.findEditorBuilder(a.b),propertyWrapper:e.GetChildProperties()}),t}canCreateEditor(e){return!o.nonAllowedEditors.includes(e.Name)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(50),n=r(0),s=r(65),a=r(3),o=r(57);class l extends i.b{constructor(){super(...arguments),this.properties=n.a}get descendantsTemplate(){return this.templates.Editors.ExpandableEditors.Image.imageEditorComponentDescendantsTemplate}get ChosenType(){return this.getByPropertyName(e=>{e.chosenType})}set ChosenType(e){this.setByPropertyName(e=>{e.chosenType},e)}get TypeOptions(){return[{value:n.a.Expression,text:this.stringResources.Expression},{value:n.a.Embedded,text:this.stringResources.EmbeddedImage}]}get ShowImageEditor(){return this.getByPropertyName(e=>{e.showImageEditor})}set ShowImageEditor(e){this.setByPropertyName(e=>{e.showImageEditor},e)}get ExpressionEditor(){return this.expressionEditor}get UploadImageEditor(){return this.uploadImageEditor}get imageEditorVisualElement(){return $("#"+this.id+"__imageEditor")}beforeInit(){this.createChildEditorResolver(),this.childEditorResolver.init(this.propertyWrapper),this.imageModel=this.childEditorResolver.ImageModel,this.shouldCreateEditor=this.childEditorResolver.mustCreateEditor(),this.shouldCreateEditor&&(this.ChosenType=this.TypeOptions.find(e=>e.value===this.imageModel.Type),this.schemaService=this.provider.getServiceByName(a.a.ISchemaService),super.beforeInit(),this.Expanded=!1)}afterInit(){this.shouldCreateEditor&&(super.afterInit(),this.initEditors())}initEditors(){this.expressionEditor=this.createInputEditor(),this.childEditors.push(this.expressionEditor),this.uploadImageEditor=this.createUploadImageEditor(),this.childEditors.push(this.uploadImageEditor),this.imageEditorVisualElement.on(s.a.UploadImageEditorFileChanged,(e,t)=>{this.childEditorResolver.mimeTypeProperty&&this.childEditorResolver.mimeTypeProperty.SetValue(t)}),this.setEditorsVisibility(this.imageModel.Type)}onOptionSelected(e){this.ChosenType=e,this.imageModel.Type=this.ChosenType.value,this.setEditorsVisibility(this.ChosenType.value)}setEditorsVisibility(e){e===n.a.Expression?this.showExpressionEditor():e===n.a.Embedded&&this.showEmbeddedEditor()}showEmbeddedEditor(){this.childEditorResolver.getExpressionProperty().GetValue()&&this.expressionEditor.resetToDefaultValue(),this.expressionEditor.hide(),this.uploadImageEditor.visualElement.show()}showExpressionEditor(){this.childEditorResolver.getImageProperty().GetValue()&&this.uploadImageEditor.resetToDefaultValue(),this.uploadImageEditor.visualElement.hide(),this.expressionEditor.show()}createInputEditor(){const e=this.childEditorResolver.expressionChildEditorModel,t=e.builder.createInstance(this.imageEditorVisualElement,e.propertyWrapper,this.provider,this.childEditorsDepth);return t.setOriginalRootPath(o.a.imagesResourceFolder),t}createUploadImageEditor(){const e=this.childEditorResolver.imageChildEditorModel;return e.builder.createInstance(this.imageEditorVisualElement,e.propertyWrapper,this.provider,this.childEditorsDepth)}descendantsNameFlexStyle(){return`0 0 calc(50% - ${this.childEditorsDepth} * 26px)`}expandChildEditors(){this.ShowImageEditor=!0}collapseChildEditors(){this.ShowImageEditor=!1}refreshValue(){this.imageModel.Type===n.a.Expression?this.expressionEditor.refreshValue():this.uploadImageEditor.refreshValue()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(190),n=r(101),s=r(3),a=r(0),o=r(4),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c extends i.a{get collectionName(){return this.propertyWrapper.Name}get collectionItemType(){return this.provider.getServiceByName(s.a.ITypeDescriptorRepository).GetPropertyTypeDescriptor(this.propertyWrapper.Type).GetProperty(a.a.Item).Type}saveChanges(){this.propertiesTransaction&&(this.propertiesTransaction.Commit(),this.propertiesTransaction=null),this.itemTransaction&&(this.itemTransaction.Commit(),this.itemTransaction=null),this.component.raiseComponentChanged(this.propertyWrapper.Property,{},{})}addItem(){const e=Object.create(null,{BeginAddItem:{get:()=>super.BeginAddItem},EndAddItem:{get:()=>super.EndAddItem}});return l(this,void 0,void 0,(function*(){e.BeginAddItem.call(this);const t=yield this.schemaService.getDefaultPropertyStore(this.getNewItemType());t[a.a.Name]=this.namingService.CreateName(t[a.a.NetType]);const r=yield this.component.createNonChildComponent(t);return r&&(this.collectionItems instanceof n.a?this.addCollectionItem(r):this.addArrayItem(r,t),e.EndAddItem.call(this)),r}))}editProperties(e){return l(this,void 0,void 0,(function*(){this.initSelectedComponent(e),this.kendoWindowRef||(this.openPopUp(this.getPopupWindowData()),this.windowOpened())}))}removeItem(e){const t=this.designerHost.CreateTransaction("Delete item");try{const r=this.getKendoListItemByUid(e);this.initSelectedComponent(r);const i=r.get(this.itemIdentifier);this.removeItemCore(i),t.Commit(),this.component.raiseComponentChanged(this.propertyWrapper.Property,{},{})}catch(e){t.Rollback()}}beforeInit(){super.beforeInit(),this.designerHost=this.provider.getServiceByName(s.a.IDesignerHost),this.collectionItems=this.component[this.collectionName],this.collectionItems||o.b.logError(`The component ${this.component.Name} does not have a property named ${this.collectionName}.`)}createPropertyWrapperProperties(){let e=this.propertyWrapper.GetValue();return e||(this.propertyWrapper.SetValueRaw([]),e=this.propertyWrapper.GetValue()),e}windowOpened(){}getNewItemType(){return this.collectionItemType}addArrayItem(e,t){this.collectionItems.push(e),this.Properties.push(t),this.propertyWrapperProperties.push(t)}removeItemCore(e){for(let t=0;t<this.Properties.length;t++){if(this.Properties[t][this.itemIdentifier]===e){this.namingService.UnregisterName(e);const r=this.collectionItems;r instanceof n.a?this.removeCollectionItem(t):this.removeArrayItem(t,r),this.component.Designer.Redraw(!0,null);break}}}removeArrayItem(e,t){this.Properties.splice(e,1),this.propertyWrapperProperties.splice(e,1),t.splice(e,1)}addCollectionItem(e){this.collectionItems.Add(e),this.Properties.push(e.PropertyStore)}removeCollectionItem(e){this.Properties.splice(e,1),this.collectionItems.RemoveAt(e)}initSelectedComponent(e){for(const t of this.collectionItems)if(t.Name===e.get(a.a.Name)){this.selectedComponent=t;break}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(3),n=r(36),s=r(134);class a{static createReportUriResolver(e){return e.getService(n.a).ReportServerLayout?new s.c:new s.a(e.getServiceByName(i.a.IDesignSurfaceManager))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(90),n=r(368);class s extends i.c{constructor(){super(...arguments),this.isResetVisible=!0}get resettableChildEditors(){return this.childEditors.filter(e=>!!e.resetManager)}beforeInit(){super.beforeInit(),this.onChildResetStateChanged=()=>{this.resetManager.checkAndUpdateReset()},this.resetManager=new n.a(()=>this.determineIfResetIsDirtyForChildEditors(),()=>this.resetChildEditors())}afterInit(){super.afterInit(),this.bindToChildEditorsResetChanged(this.onChildResetStateChanged),this.resetManager.checkAndUpdateReset()}beforeDispose(){super.beforeDispose(),this.unbindFromChildEditorsResetChanged(this.onChildResetStateChanged)}resetChildEditors(){this.resettableChildEditors.forEach(e=>{e.resetManager&&e.resetManager.resetToDefaultValue()})}determineIfResetIsDirtyForChildEditors(){return this.resettableChildEditors.some(e=>!!e.resetManager&&e.resetManager.IsResetDirty)}bindToChildEditorsResetChanged(e){this.resettableChildEditors.forEach(t=>{t.resetManager&&t.resetManager.onResetDirtyChanged.subscribe(e)})}unbindFromChildEditorsResetChanged(e){this.resettableChildEditors.forEach(t=>{t.resetManager&&t.resetManager.onResetDirtyChanged.unsubscribe(e)})}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{}i.TriggerOnboardingExperience="TriggerOnboardingExperience"},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(212);class n extends i.a{constructor(e,t,r,i,n){super(e,t),this.groupName=r,this.title=i,this.iconClass=n}getTypeName(){return n.getTypeName()}getIconClass(){return this.iconClass}get displayPath(){return!1}}n.getTypeName=()=>"ToolboxSearchResultModel"},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(212);class n extends i.a{constructor(e,t,r,i,n){super(e,t,i),this.fullName=r,this.nodeUid=n}getIconClass(){return"k-i-report-element"}static getTypeName(){return"ReportItemSearchResultModel"}getTypeName(){return n.getTypeName()}get displayPath(){return!1}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(422),n=r(851),s=r(2),a=r(7),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends i.a{updateStateUi(){}getTargetsCollector(e){return new n.a(e)}};l=o([Object(s.a)("toggle-visibility-action-editor"),Object(a.a)()],l)},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(0),n=r(3),s=r(12),a=r(4),o=r(49),l=r(121);class c extends o.a{constructor(){super(...arguments),this.properties=i.a}getTemplate(){return this.templates.Editors.Actions.targetsEditorComponentTemplate}get ItemsTreeDataSource(){return this.getByPropertyName(e=>{e.itemsTreeDataSource})}set ItemsTreeDataSource(e){this.setByPropertyName(e=>{e.itemsTreeDataSource},e)}get Targets(){return this.getByPropertyName(e=>{e.targets})}set Targets(e){this.setByPropertyName(e=>{e.targets},e)}get SelectedTreeItem(){return this.getByPropertyName(e=>{e.selectedTreeItem})}set SelectedTreeItem(e){this.setByPropertyName(e=>{e.selectedTreeItem},e)}get AddTargetButtonDisabled(){return this.getByPropertyName(e=>{e.addTargetButtonDisabled})}set AddTargetButtonDisabled(e){this.setByPropertyName(e=>{e.addTargetButtonDisabled},e)}get isResettable(){return!1}get isResetVisible(){return!1}get actions(){return new Map([["add",this.addTarget.bind(this)],["remove",this.removeTarget.bind(this)]])}get targetsProperty(){var e;return null===(e=this.propertyWrapper)||void 0===e?void 0:e.GetChildProperty(i.a.Targets)}get storedTargets(){var e;return null===(e=this.targetsProperty)||void 0===e?void 0:e.GetValue()}beforeInit(){super.beforeInit(),this.nameIdentifier=Object(a.c)("ItemName"),this.textIdentifier=Object(a.c)("Description"),this.schemaService=this.provider.getServiceByName(n.a.ISchemaService);const e=this.provider.getServiceByName(n.a.IDesignerHost).RootComponent,t=this.getTargetsCollector(this.provider.getServiceByName(n.a.ISchemaService)).collectAllValidTargets(e);this.ItemsTreeDataSource=new kendo.data.HierarchicalDataSource({data:t,schema:{model:{id:this.nameIdentifier,children:Object(a.c)("items")}}});const r=this.getCurrentTargets(t);this.Targets=r,this.AddTargetButtonDisabled=!0}afterInit(){super.afterInit(),this.kendoList=this.visualElement.find(".editor__list").data("kendoListView");const e=this.propertyWrapper.GetChildProperties().filter(e=>e.Name!==i.a.Targets),t=l.a.RenderPropertyEditors(this.visualElement.find(".editor__editors-container"),e,this.provider,null,this.editorDepth);for(const e of t)this.childEditors.push(e);this.visualElement.off("mousedown",".editor__action-button").on("mousedown",".editor__action-button",e=>{e.stopImmediatePropagation(),e.preventDefault(),this.executeAction(e,$(e.currentTarget))})}getCurrentTargets(e){const t=this.propertyWrapper.GetChildProperty(i.a.Targets).GetValue();if(t)for(let r=t.length-1;r>=0;r--){const i=t[r],n=c.findTarget(e,i.ItemName);n?i.IconClass=n.spriteCssClass:t.splice(r,1)}return t}static findTarget(e,t){for(const r of e){if(r.ItemName===t)return r;const e=c.findTarget(r.items,t);if(e)return e}return null}updateAddButtonState(e){const t=e.sender.value().length<=0;this.AddTargetButtonDisabled=t}executeAction(e,t){e.stopPropagation();const r=t.attr("data-action");if(r){this.actions.get(r)(t)}}addTarget(){var e;const t=null!==(e=this.storedTargets)&&void 0!==e?e:[],r=this.SelectedTreeItem;if(!r)return;const i=r.ItemName;if(!i)return;if(t.some(e=>e.ItemName===i)){return void this.provider.getService(s.a).warning(this.stringResources.TheTargetIsAlreadyAdded)}const n={NetType:"Target",ItemName:i,IconClass:this.schemaService.getIconClass(r.Type)};t.push(n),this.targetsProperty.SetValue(t),this.Targets=t}targetsListHidden(){return!(this.Targets&&this.Targets.length)}removeTarget(e){if(!this.storedTargets)return;e=e.closest(".editor__list-item");const t=this.kendoList.dataItem(e);this.Targets=this.Targets.filter(e=>e.ItemName!==t.ItemName);const r=this.storedTargets.findIndex(e=>e.ItemName===t.ItemName);r>-1&&this.storedTargets.splice(r,1),this.targetsProperty.SetValue(this.storedTargets)}refreshValue(){this.childEditors.forEach(e=>e.refreshValue())}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(852);class n extends i.a{constructor(e){super(),this.schemaService=e,this.targetsNameMap=new Map,this.targets=[]}collectAllValidTargets(e){return this.Visit(e),this.targets}addTarget(e){if(!e.Name)return;const t=this.createTarget(e);this.targetsNameMap.set(e.Name,t);let r,i=e.Parent;for(;i;){if(r=this.targetsNameMap.get(i.Name),r){r.items.push(t);break}i=i.Parent}r||this.targets.push(t)}createTarget(e){return{ItemName:e.Name,Type:e.Type,Description:`${e.Name} (${e.Type})`,items:[],spriteCssClass:this.schemaService.getFullIconClass(e.Type),expanded:!0}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(853),n=r(422),s=r(2),a=r(7),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends n.a{updateStateUi(){}getTargetsCollector(e){return new i.a(e)}};l=o([Object(s.a)("sorting-action-editor"),Object(a.a)()],l)},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(164);class n extends i.a{getChildProperties(e,t){return this.getInstanceTypeName(e,t)?e.Components[0].BrowsablePropertyWrappers:super.getChildProperties(e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(865),n=r(0);class s{constructor(e){this.provider=e}init(e){this.imageModel=new i.a(this.isEmbeddedImageProperty(),e.GetValue()),this.imageChildEditorModel={builder:this.getUploadImageEditorBuilder(),propertyWrapper:this.getImageProperty()},this.expressionChildEditorModel={builder:this.getInputEditorBuilder(),propertyWrapper:this.getExpressionProperty()}}getChildEditorBuilders(){return this.mustCreateEditor()?this.ImageModel.Type===n.a.Expression?[this.expressionChildEditorModel]:this.ImageModel.Type===n.a.Embedded?[this.imageChildEditorModel]:[]:[]}getChildProperties(e){throw new Error("Method not implemented.")}canCreateEditor(e){throw new Error("Method not implemented.")}getChildEditorBuildersByPropertyWrappers(e){throw new Error("Method not implemented.")}get ImageModel(){return this.imageModel}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var i=r(19),n=r(286),s=r(163),a=r(135),o=r(283),l=r(287),c=r(288),d=r(289),u=r(290),h=r(291),p=r(4),m=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let g=class extends i.a{constructor(e){super(),this.provider=e,this.editorMap=new Map,this.editorMap.set(n.b,n.a),this.editorMap.set(s.b,s.a),this.editorMap.set(a.b,a.a),this.editorMap.set(l.b,l.a),this.editorMap.set(c.b,c.a),this.editorMap.set(d.b,d.a),this.editorMap.set(u.b,u.a),this.editorMap.set(h.b,h.a),this.editorMap.set(o.b,o.a)}getChildEditorResolver(e,t){for(let r of this.editorMap)if(e===r[0]||e.prototype instanceof r[0])return new r[1](this.provider,t);throw new Error("Not found")}};g.getServiceName=()=>"EditorWrapperChildEditorResolverMapService",g=m([Object(p.e)()],g)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(4),n=r(67),s=r(292),a=r(293),o=r(69),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let d=class extends a.a{constructor(e,t){super(e,t,"definitionresources")}getAll(e){return c(this,void 0,void 0,(function*(){return yield this.performRequest(n.d,e,this.resourceSpecificEndpointData.getAll)}))}getFolder(e){return c(this,void 0,void 0,(function*(){return yield this.performRequest(n.g,e,this.resourceSpecificEndpointData.getFolder)}))}GetText(e){const t=Object.create(null,{GetBlob:{get:()=>super.GetBlob}});return c(this,void 0,void 0,(function*(){return(yield t.GetBlob.call(this,e)).mapSuccessAsync(e=>c(this,void 0,void 0,(function*(){return yield e.text()})))}))}previewJsonData(e){return c(this,void 0,void 0,(function*(){const t=yield this.performRequest(n.f,e,this.resourceSpecificEndpointData.previewJsonData);return yield t.mapSuccess(e=>{const t=[];for(const r of e)t.push(JSON.stringify(r.rawData));return t})}))}previewCsvData(e){return c(this,void 0,void 0,(function*(){return yield this.performRequest(n.f,e,this.resourceSpecificEndpointData.previewCsvData)}))}previewWebServiceData(e){return c(this,void 0,void 0,(function*(){return yield this.performRequest(n.f,e,this.resourceSpecificEndpointData.previewWebServiceData)}))}get resourceSpecificEndpointData(){const e=(e,t)=>{},t=(e,t)=>"Could not get preview..";return{previewWebServiceData:{uri:"/preview/webservice",httpMethod:o.b.post,successMessage:e,errorMessage:t},previewCsvData:{uri:"/preview/csv",httpMethod:o.b.post,successMessage:e,errorMessage:t},previewJsonData:{uri:"/preview/json",httpMethod:o.b.post,successMessage:e,errorMessage:t},getFolder:{uri:"/folder/model?uri={uri}",httpMethod:o.b.get,successMessage:e,errorMessage:(e,t)=>`Could not retrieve information for folder ${e.uri}.`},getAll:{uri:"?extension={extension}",httpMethod:o.b.get,successMessage:e,errorMessage:(e,t)=>"Could not list the available resources."}}}Get(e){return c(this,void 0,void 0,(function*(){throw yield this.performRequest(n.e,e,this.endpointData.Get),new Error("Not implemented")}))}getEndpointData(){const e=Object(s.a)("Resources",this.stringResources);return e.Upload.uri="/save?name={name}&parentUri={parentUri}",e}};d.getServiceName=()=>"ResourceService",d=l([Object(i.e)()],d)},function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var i=r(27),n=r(14),s=r(4),a=r(36),o=r(67),l=r(292),c=r(18),d=r(69),u=r(293),h=r(21),p=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},m=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let g=class extends u.a{constructor(e,t){super(e,t,"reports"),this.publish=e=>m(this,void 0,void 0,(function*(){var t;return yield null===(t=this.reportServerEndpointService)||void 0===t?void 0:t.publish(e)})),this.unlock=e=>m(this,void 0,void 0,(function*(){var t;return yield null===(t=this.reportServerEndpointService)||void 0===t?void 0:t.unlock(e)})),this.provider=e,this.reportDesignerApiUrl=t;const r=e.getService(a.a).ReportServerLayout;this.reportServerEndpointService=r?new f(e,t):null}lock(e){var t;return m(this,void 0,void 0,(function*(){return yield null===(t=this.reportServerEndpointService)||void 0===t?void 0:t.lock(e)}))}Save(e){return m(this,void 0,void 0,(function*(){return yield this.performRequest(y,e,this.endpointData.Save)}))}Rename(e){const t=Object.create(null,{Rename:{get:()=>super.Rename}});return m(this,void 0,void 0,(function*(){const r=s.b.parseDocumentId(e.name);return Object.values(n.b).some(e=>e===r.Extension)||window.confirm(i.a.String(this.stringResources.ConfirmRenameToNoneReportExtension,{fileExtension:r.Extension}))?yield t.Rename.call(this,e):c.b.createError("Operation was canceled")}))}Upload(e){return m(this,void 0,void 0,(function*(){return yield this.performRequest(v,e,this.endpointData.Upload)}))}getEndpointData(){const e=Object(l.a)("Reports",this.stringResources);e.GetFolderContents.uri="/folders/contents?uri={uri}",e.Get.uri="/report?uri={uri}";const t=e.Get.errorMessage;return e.Get.errorMessage=(e,r)=>404===r.status?`Report '${e.uri}' is no longer available on the server.`:t(e,r),e.Save.uri="/save?uri={name}",e.Save.successMessage=(e,t)=>`'${e.name}' saved.`,e.Upload.uri="/file?uri={name}",e.GetBlob.uri="/file?uri={uri}",e}};g.getServiceName=()=>"ReportStorageService",g=p([Object(s.e)()],g);class f extends d.a{constructor(e,t){super(e,t,"reports"),this.provider=e,this.webDesignerOptions=this.provider.getService(a.a),this.originalDesignerApiUrl=t,this.reportDesignerApiUrl=this.webDesignerOptions.ServiceUrl.replace("/api/reportdesigner/","/api/reportserver/v2/")}publish(e){return m(this,void 0,void 0,(function*(){const t=yield this.performRequest(o.e,e,this.reportServerEndpoints.publish);return t.isSuccess&&(yield this.unlock(e)),t}))}unlock(e){return m(this,void 0,void 0,(function*(){return yield this.performRequest(o.e,e,this.reportServerEndpoints.unlock)}))}lock(e){return m(this,void 0,void 0,(function*(){return yield this.performRequest(o.e,e,this.reportServerEndpoints.lock)}))}Login(){return m(this,void 0,void 0,(function*(){if(this.webDesignerOptions.ReportServer.Username)return null;const e={grant_type:"password",username:this.webDesignerOptions.ReportServer.Username,password:this.webDesignerOptions.ReportServer.Password},t=yield fetch(this.originalDesignerApiUrl+"Token/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),r=yield t.json();return t.ok?c.b.createSuccess(r,t.status.toString()):(this.notifications.warning("Could not authenticate."),c.b.createError(r,t.status.toString()))}))}get reportServerEndpoints(){return{publish:{uri:"/{uri}/publish/",httpMethod:d.b.post,successMessage:(e,t)=>"Report published successfully.",errorMessage:(e,t)=>"Could not publish report."},unlock:{uri:"/{uri}/unlock/",httpMethod:d.b.delete,successMessage:(e,t)=>"Report unlocked successfully.",errorMessage:(e,t)=>"Could not unlock report."},lock:{uri:"/{uri}/lock/",httpMethod:d.b.put,successMessage:(e,t)=>"Report locked successfully.",errorMessage:(e,t)=>"Could not lock report."}}}}class v extends o.k{static validate(e){return e.parentUri&&(e.name=h.a.appendFilePathToPath(e.parentUri,e.name),delete e.parentUri),o.k.validate(e)}static getBody(e){const t=new FormData;return t.append("file",e.asset),t}}class y extends o.j{static validate(e){return e.parentUri&&(e.name=h.a.appendFilePathToPath(e.parentUri,e.name),delete e.parentUri),o.j.validate(e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var i=r(4),n=r(292),s=r(293),a=r(67),o=r(3),l=r(1),c=r(21),d=r(69),u=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},h=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let p=class extends s.a{constructor(e,t){super(e,t,"datasources"),this.provider=e,this.reportDesignerApiUrl=t}getEndpointData(){return Object(n.a)("Shared Data Sources",this.stringResources)}Get(e){const t=Object.create(null,{Get:{get:()=>super.Get}});return h(this,void 0,void 0,(function*(){const r=yield t.Get.call(this,e);return yield r.mapSuccessAsync(t=>h(this,void 0,void 0,(function*(){const r=yield this.provider.getServiceByName(o.a.ISchemaService).getDefaultPropertyStore(l.a.SharedDataSource);return r.DataSourceReference=t,r.$schema=t.$schema,r.Path=e.uri,r.Name=c.a.getFileNameWithoutExtension(e.uri),delete r.DataSourceReference.$schema,r})))}))}Save(e){const t=e.asset.DataSourceReference;return t.$schema=e.asset.$schema,e.asset=t,super.Save(e)}GetModel(e){return this.performRequest(a.e,e,{uri:"/model?uri={uri}",httpMethod:d.b.get,errorMessage:(e,t)=>`Could not fetch file metadata for '${e.uri}'.`,successMessage:(e,t)=>{}})}};p.getServiceName=()=>"SharedDataSourceStorage",p=u([Object(i.e)()],p)},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(212);class n extends i.a{constructor(e,t,r,i,n){super(e,t),this.title=r,this.command=i,this.iconClass=n}getTypeName(){return n.getTypeName()}getIconClass(){return this.iconClass}get displayPath(){return!1}}n.getTypeName=()=>"CommandSearchResultModel"},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(10),n=r(433);class s extends n.a{constructor(e,t,r){super(e,t,r),this.managedComponents=[],this.managedViews=[],this.$element=$(e),this.template=this.$element.html()}destroy(){this.disposeManaged(),super.destroy()}refresh(e){this.disposeManaged();const t=this.evaluate();this.replaceElementHtmlContent(t)}disposeManaged(){this.managedComponents.forEach(e=>e.Dispose()),this.managedComponents=[],this.managedViews.forEach(e=>e.destroy()),this.managedViews=[]}replaceElementHtmlContent(e){if(this.$element.html(""),e)if(this.currentBinding.source instanceof i.a){const t=this.currentBinding.source,r=()=>{const r=t.boundPartialView({template:e.elementHtml,childViews:this.managedViews});this.$element.append(r),t.handleChildComponents(this.$element,this.managedComponents),this.$element.show()};t.IsRendering?t.onRendered.subscribeOnce(r):r()}else this.$element.html(e.elementHtml)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i extends kendo.data.Binder{constructor(e,t,r){super(e,t,r)}refresh(e){}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t){this.name=e,this.Level=t,this.Enabled=!0,this.Glyphs=[]}static CompareAdorners(e,t){return e.Level<t.Level?-1:e.Level>t.Level?1:0}Add(e){e&&this.Glyphs.push(e)}AddRange(e){e&&this.Glyphs.push(...e)}Clear(){this.Glyphs.length=0}toString(){return`${this.name} (${this.Level})`}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get Items(){return 0}static get SnapGrid(){return 1}static get ItemFrames(){return 2}static get Selection(){return 1500}static get Labels(){return 2e3}static get DimensionLines(){return 2500}static get SnapLines(){return 3e3}static get Extras(){return 4e3}static get DragFrame(){return 5e3}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(28),n=r(630),s=r(2),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{getTemplate(){return this.templates.Editors.Wizards.SqlDataSource.Pages.configureDataSourceCommandPageComponentTemplate}getPageModel(e){return this.Model=new n.a(this.provider,e),this.Model}toggleValidationMessage(){$("#input-select-statement").closest(".twd-editor").find(".twd-editor").toggleClass("-invalid",!this.Model.isSelectStatementValid),$("#input-stored-procedure").closest(".twd-editor").toggleClass("-invalid",!this.Model.isStoredProcedureValid)}};o=a([Object(s.a)("sql-configure-data-source-command-page")],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(28),n=r(635),s=r(9),a=r(2),o=r(4),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let d=class extends i.a{getTemplate(){return this.templates.Editors.Wizards.SqlDataSource.Pages.previewDataSourcePageComponentTemplate}get HasError(){return this.getByPropertyName(e=>{e.hasError})}set HasError(e){this.setByPropertyName(e=>{e.hasError},e)}get Error(){return this.getByPropertyName(e=>{e.error})}set Error(e){this.setByPropertyName(e=>{e.error},e)}get ShowData(){return this.getByPropertyName(e=>{e.showData})}set ShowData(e){this.setByPropertyName(e=>{e.showData},e)}getPageModel(e){return this.Model=new n.a(this.provider,e),this.Model}executeQuery(){return c(this,void 0,void 0,(function*(){const e=yield this.Model.ExecuteQuery();if(!e.ok)return this.ShowData=!1,this.HasError=!0,void(this.Error=o.b.getErrorMessage(yield o.b.resolveResponseContents(e),!0));const t=yield e.json();if(0===t.length){const e=$.parseHTML(this.noDataPopupTemplate),t=$(e).kendoWindow({title:this.stringResources.PreviewResultsHeader,visible:!1,actions:["Close"],modal:!0,width:450,minWidth:300,minHeight:160,appendTo:$(".twd-designer"),draggable:{containment:$(".twd-designer")}}).data("kendoWindow");t.element.closest(".k-window").addClass(s.a.WebDesignerPartsClassName),t.element.closest(".k-window").find(".k-window-titlebar").addClass(s.a.ModalWindowHeaderClass),t.center().open(),$(".k-overlay").css("position","absolute")}this.Model.QueryDataSource.empty(),this.Model.QueryDataSource.push(...t),this.ShowData=!0,this.HasError=!1}))}dataRowsChange(e){this.Model.Rows=parseInt($(e.target).val(),10)}get noDataPopupTemplate(){return`<div class="${s.a.ConfirmWindowClasses}">\n                    <div class="twd-editors -no-bg-color">\n                       ${this.stringResources.SqlPreviewQueryNoDataMessage}\n                    </div>\n                </div>`}};d=l([Object(a.a)("sql-preview-data-source-page")],d)},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e){this.Forward=e}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(28),n=r(689),s=r(2),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{getTemplate(){return this.templates.Editors.Wizards.JsonDataSource.Pages.previewDataSourcePageComponentTemplate}getPageModel(e){return this.Model=new n.a(this.provider,e),this.Model}};o=a([Object(s.a)("json-preview-data-source-page")],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(28),n=r(441),s=r(2),a=r(385),o=r(298),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let d=class extends i.a{constructor(){super(...arguments),this.setInlineText=()=>this.Model.InlineText=this.EditInlineJsonModel.InlineText,this.setExternalFile=()=>this.Model.ExternalFile=this.UploadJsonFileModel.ExternalFile,this.selectedTypeChanged=()=>{this.UploadJsonFileModel.IsEnabled=this.Model.UseExternalFile,this.EditInlineJsonModel.IsEnabled=this.Model.UseInlineJson}}get UploadJsonFileModel(){return this.getByPropertyName(e=>{e.uploadJsonFileModel})}set UploadJsonFileModel(e){this.setByPropertyName(e=>{e.uploadJsonFileModel},e)}get EditInlineJsonModel(){return this.getByPropertyName(e=>{e.editInlineJsonModel})}set EditInlineJsonModel(e){this.setByPropertyName(e=>{e.editInlineJsonModel},e)}get isExistingFileInvalid(){return this.Model.UseExistingFile&&!this.Model.SelectedFile}getTemplate(){return this.templates.Editors.Wizards.JsonDataSource.Pages.chooseDataSourcePageComponentTemplate}beforeInit(){super.beforeInit(),this.UploadJsonFileModel=new o.b(this.Model.UseExternalFile),this.EditInlineJsonModel=new a.a(this.Model.UseInlineJson),this.UploadJsonFileModel.externalFileChanged.subscribe(this.setExternalFile),this.EditInlineJsonModel.inlineTextChanged.subscribe(this.setInlineText),this.Model.selectedTypeChanged.subscribe(this.selectedTypeChanged)}OnEnter(){const e=Object.create(null,{OnEnter:{get:()=>super.OnEnter}});return c(this,void 0,void 0,(function*(){yield e.OnEnter.call(this),this.UploadJsonFileModel.ExternalFile=this.Model.ExternalFile,this.EditInlineJsonModel.InlineText=this.Model.InlineText,this.uploadJsonFileComponent.renderInitialFiles()}))}beforeDispose(){super.beforeDispose(),this.UploadJsonFileModel.externalFileChanged.unsubscribe(this.setExternalFile),this.EditInlineJsonModel.inlineTextChanged.unsubscribe(this.setInlineText),this.Model.selectedTypeChanged.unsubscribe(this.selectedTypeChanged)}getPageModel(e){return this.Model=new n.a(this.provider,e),this.Model}uploadJsonFileSelected(){this.Model.SelectedType=n.b.ExternalFile}inlineTextSelected(){this.Model.SelectedType=n.b.InlineJson}};l([Object(s.e)(o.a)],d.prototype,"uploadJsonFileComponent",void 0),d=l([Object(s.a)("json-choose-data-source-page")],d)},function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return d}));var i,n=r(48),s=r(160),a=r(10),o=r(3),l=r(18),c=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};!function(e){e[e.ExternalFile=1]="ExternalFile",e[e.ExistingFile=2]="ExistingFile",e[e.InlineJson=3]="InlineJson"}(i||(i={}));class d extends n.a{constructor(e,t){super(e,t),this.useInlineJson=!1,this.selectedTypeChanged=new a.b,this.resourceService=this.provider.getServiceByName(o.a.ResourceStorageService),this.SelectedType=i.ExternalFile,this.UseInlineJson=!1,this.UseExistingFile=!1,this.UseExternalFile=!0,this.ExistingFiles=[]}get InlineText(){return this.getByPropertyName(e=>{e.inlineText})}set InlineText(e){this.setByPropertyName(e=>{e.inlineText},e)}get UseInlineJson(){return this.getByPropertyName(e=>{e.useInlineJson})}set UseInlineJson(e){this.setByPropertyName(e=>{e.useInlineJson},e)}get DataSelector(){return this.getByPropertyName(e=>{e.dataSelector})}set DataSelector(e){this.setByPropertyName(e=>{e.dataSelector},e)}get SelectedFile(){return this.getByPropertyName(e=>{e.selectedFile})}set SelectedFile(e){this.setByPropertyName(e=>{e.selectedFile},e)}get UseExternalFile(){return this.getByPropertyName(e=>{e.useExternalFile})}set UseExternalFile(e){this.setByPropertyName(e=>{e.useExternalFile},e)}get UseExistingFile(){return this.getByPropertyName(e=>{e.useExistingFile})}set UseExistingFile(e){this.setByPropertyName(e=>{e.useExistingFile},e)}get ExternalFile(){return this.getByPropertyName(e=>{e.externalFile})}set ExternalFile(e){this.setByPropertyName(e=>{e.externalFile},e)}get ExistingFiles(){return this.getByPropertyName(e=>{e.existingFiles})}set ExistingFiles(e){this.setByPropertyName(e=>{e.existingFiles},e)}get SelectedType(){return this.getByPropertyName(e=>{e.selectedType})}set SelectedType(e){this.setByPropertyName(e=>{e.selectedType},e),this.UseExternalFile=e===i.ExternalFile,this.UseExistingFile=e===i.ExistingFile,this.UseInlineJson=e===i.InlineJson,this.selectedTypeChanged.next()}get IsModelValid(){var e;return this.UseExternalFile&&!!this.ExternalFile||this.UseExistingFile&&!!(null===(e=this.SelectedFile)||void 0===e?void 0:e.uri)||!!this.InlineText&&s.a.isJsonValid(this.InlineText)}OnEnter(){return c(this,void 0,void 0,(function*(){if(this.ExistingFiles=yield l.a.GetData(()=>this.resourceService.getAll({extension:"json"})),this.wizardModel.inlineText)this.UseInlineJson=!0,this.SelectedType=3,this.InlineText=this.wizardModel.inlineText;else if(this.wizardModel.existingFilePath){this.UseExistingFile=!0,this.SelectedType=2;const e=/[^\/\\]+$/.exec(this.wizardModel.existingFilePath)[0];this.SelectedFile=this.ExistingFiles.find(t=>t.fileName===e)}this.DataSelector=this.wizardModel.dataSelector}))}OnLeave(){return c(this,void 0,void 0,(function*(){if(this.UseExternalFile)this.wizardModel.externalFile=this.ExternalFile.rawFile,this.wizardModel.externalFileText=yield this.readResource(this.wizardModel.externalFile),this.wizardModel.existingFileText=void 0,this.wizardModel.inlineText=void 0;else if(this.UseExistingFile){this.wizardModel.existingFilePath=this.SelectedFile.fullName;const e=yield l.a.GetData(()=>this.resourceService.GetText({uri:this.SelectedFile.uri}));this.wizardModel.existingFileText=decodeURIComponent(e),this.wizardModel.externalFileText=void 0,this.wizardModel.externalFile=void 0,this.wizardModel.inlineText=void 0}else this.wizardModel.inlineText=this.InlineText,this.wizardModel.externalFile=void 0,this.wizardModel.existingFileText=void 0,this.wizardModel.existingFilePath=void 0,this.wizardModel.externalFileText=void 0,this.wizardModel.fileEmbedded=!1;this.wizardModel.dataSelector=this.DataSelector}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(28),n=r(690),s=r(160),a=r(2),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends i.a{getTemplate(){return this.templates.Editors.Wizards.JsonDataSource.Pages.modifyDataSourcePageComponentTemplate}getPageModel(e){return this.Model=new n.a(this.provider,e),this.Model}inlineJsonInvalid(){return this.Model.UseInlineJson&&(!this.Model.InlineText||!s.a.isJsonValid(this.Model.InlineText))}};l=o([Object(a.a)("json-modify-data-source-page")],l)},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(28),n=r(693),s=r(2),a=r(3),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let c=class extends i.a{constructor(){super(...arguments),this.isExternalFileValid=()=>l(this,void 0,void 0,(function*(){let e=!1;this.Model.ExternalFile&&(e=(yield this.resourceService.Exists({uri:this.Model.ExternalFile.name})).Data,e?(this.Model.ExternalFile=void 0,this.ExternalFileAlreadExists=!0):this.ExternalFileAlreadExists=!1),this.ExternalFileError=e?this.stringResources.DataSourceExistingFileError:this.stringResources.DataSourceExternalFileError}))}getTemplate(){return this.templates.Editors.Wizards.CsvDataSource.Pages.chooseDataSourcePageComponentTemplate}get ExternalFileError(){return this.getByPropertyName(e=>{e.externalFileError})}set ExternalFileError(e){this.setByPropertyName(e=>{e.externalFileError},e)}get ExternalFileAlreadExists(){return this.getByPropertyName(e=>{e.externalFileAlreadExists})}set ExternalFileAlreadExists(e){this.setByPropertyName(e=>{e.externalFileAlreadExists},e)}get UploadFileHasIncorrectExtension(){return this.getByPropertyName(e=>{e.uploadFileHasIncorrectExtension})}set UploadFileHasIncorrectExtension(e){this.setByPropertyName(e=>{e.uploadFileHasIncorrectExtension},e)}get isExternalFileInvalid(){return this.Model.UseExternalFile&&(!this.Model.ExternalFile||this.UploadFileHasIncorrectExtension||this.ExternalFileAlreadExists)}get isExistingFileInvalid(){return this.Model.UseExistingFile&&!this.Model.SelectedFile}get isInlineCsvInvalid(){return this.Model.UseInlineCsv&&!this.Model.InlineText}beforeInit(){super.beforeInit(),this.resourceService=this.provider.getServiceByName(a.a.ResourceStorageService),this.Model.externalFileChanged.subscribe(this.isExternalFileValid),this.UploadFileHasIncorrectExtension=!1,this.ExternalFileError=this.stringResources.DataSourceExternalFileError}afterInit(){super.afterInit(),this.Model.ExternalFile&&this.view.element.find("#input-external-file").data("kendoUpload")._renderInitialFiles([{name:this.Model.ExternalFile.name,size:this.Model.ExternalFile.size,extension:this.Model.ExternalFile.extension}])}getPageModel(e){return this.Model=new n.a(this.provider,e),this.Model}uploadFile(e){const t=e.files;if(!t||!t[0])return;const r=t[0].name;this.UploadFileHasIncorrectExtension=!(r.endsWith(".csv")||r.endsWith(".tsv")||r.endsWith(".txt")),this.UploadFileHasIncorrectExtension||(this.Model.ExternalFile=t[0])}fileRemoved(){this.Model.ExternalFile=void 0}};c=o([Object(s.a)("csv-choose-data-source-page")],c)},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(28),n=r(694),s=r(2),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let l=class extends i.a{getTemplate(){return this.templates.Editors.Wizards.CsvDataSource.Pages.configureSeparatorsPageComponentTemplate}getPageModel(e){return this.Model=new n.a(this.provider,e),this.Model}OnEnter(){const e=Object.create(null,{OnEnter:{get:()=>super.OnEnter}});return o(this,void 0,void 0,(function*(){yield e.OnEnter.call(this),this.SelectedFieldsSeparatorsEmpty=!(this.Model.SelectedFieldSeparators&&this.Model.SelectedFieldSeparators.length),this.SelectedRecordSeparatorsEmpty=!(this.Model.SelectedRecordSeparators&&this.Model.SelectedRecordSeparators.length)}))}isOtherRecordSeparatorInvalid(){return this.Model.IsOtherRecordSeparator&&(!this.Model.OtherRecordSeparator||1!==this.Model.OtherRecordSeparator.length)}isOtherFieldSeparatorInvalid(){return this.Model.IsOtherFieldSeparator&&(!this.Model.OtherFieldSeparator||1!==this.Model.OtherFieldSeparator.length)}get SelectedFieldsSeparatorsEmpty(){return this.getByPropertyName(e=>{e.selectedFieldsSeparatorsEmpty})}set SelectedFieldsSeparatorsEmpty(e){this.setByPropertyName(e=>{e.selectedFieldsSeparatorsEmpty},e)}get SelectedRecordSeparatorsEmpty(){return this.getByPropertyName(e=>{e.selectedRecordSeparatorsEmpty})}set SelectedRecordSeparatorsEmpty(e){this.setByPropertyName(e=>{e.selectedRecordSeparatorsEmpty},e)}onFieldSeparatorsChanged(e){this.Model.IsOtherFieldSeparator=e.sender.value().some(e=>""===e),this.SelectedFieldsSeparatorsEmpty=!(this.Model.SelectedFieldSeparators&&this.Model.SelectedFieldSeparators.length)}onRecordSeparatorsChanged(e){this.Model.IsOtherRecordSeparator=e.sender.value().some(e=>""===e),this.SelectedRecordSeparatorsEmpty=!(this.Model.SelectedRecordSeparators&&this.Model.SelectedRecordSeparators.length)}};l=a([Object(s.a)("csv-configure-separators-page")],l)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(28),n=r(695),s=r(2),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{getTemplate(){return this.templates.Editors.Wizards.CsvDataSource.Pages.modifyDataSourcePageComponentTemplate}getPageModel(e){return this.Model=new n.a(this.provider,e),this.Model}inlineJsonInvalid(){return this.Model.UseInlineCsv&&!this.Model.InlineText}};o=a([Object(s.a)("csv-modify-data-soruce-page")],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(708),n=r(28),s=r(2),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends n.a{getTemplate(){return this.templates.Editors.Wizards.WebServiceDataSource.Pages.twoStepAuthenticationPageComponentTemplate}getPageModel(e){return this.Model=new i.a(this.provider,e),this.Model}hasLoginUrlError(){return!this.Model.LoginUrl}};o=a([Object(s.a)("web-service-two-step-authentication-age")],o)},function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return c}));var i,n=r(115),s=r(77),a=r(160),o=r(10),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};!function(e){e[e.RealData=1]="RealData",e[e.ExternalFile=2]="ExternalFile",e[e.Inline=3]="Inline"}(i||(i={}));class c extends n.a{constructor(){super(...arguments),this.useRealData=!0,this.useExternalFile=!1,this.useInline=!1,this.selectedType=i.RealData,this.selectedTypeChanged=new o.b}get UseRealData(){return this.getByPropertyName(e=>{e.useRealData})}set UseRealData(e){this.setByPropertyName(e=>{e.useRealData},e)}get UseExternalFile(){return this.getByPropertyName(e=>{e.useExternalFile})}set UseExternalFile(e){this.setByPropertyName(e=>{e.useExternalFile},e)}get ExternalFile(){return this.getByPropertyName(e=>{e.externalFile})}set ExternalFile(e){this.setByPropertyName(e=>{e.externalFile},e)}get ExternalFileText(){return this.getByPropertyName(e=>{e.externalFileText})}set ExternalFileText(e){this.setByPropertyName(e=>{e.externalFileText},e)}get UseInline(){return this.getByPropertyName(e=>{e.useInline})}set UseInline(e){this.setByPropertyName(e=>{e.useInline},e)}get InlineText(){return this.getByPropertyName(e=>{e.inlineText})}set InlineText(e){this.setByPropertyName(e=>{e.inlineText},e)}get SelectedType(){return this.getByPropertyName(e=>{e.selectedType})}set SelectedType(e){this.setByPropertyName(e=>{e.selectedType},e),this.UseRealData=e===i.RealData,this.UseExternalFile=e===i.ExternalFile,this.UseInline=e===i.Inline,this.selectedTypeChanged.next()}get IsModelValid(){return!this.UseExternalFile&&!this.UseInline||this.UseExternalFile&&!!this.ExternalFile||this.UseInline&&!!this.InlineText&&a.a.isJsonValid(this.InlineText)}OnEnter(){var e;return l(this,void 0,void 0,(function*(){(null===(e=this.wizardModel.Source)||void 0===e?void 0:e.Value)&&(this.InlineText=s.a.DecodeValue(this.wizardModel.Source.Value))}))}OnLeave(){return l(this,void 0,void 0,(function*(){this.wizardModel.updateFromConfigureDesignTimeModel(this)}))}uploadFile(e){const t=e.files;if(!t||!t[0])return;const r=t[0].name.endsWith(".json");$("#input-external-file").closest(".twd-editor").toggleClass("-invalid",!r),r&&(this.ExternalFile=t[0])}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(2),n=r(28),s=r(719),a=r(12),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends n.a{getTemplate(){return this.templates.Editors.Wizards.ObjectDataSource.Pages.chooseDataMemberPageComponentTemplate}getPageModel(e){return this.Model=new s.a(this.provider,e),this.Model}onDataMembersTreeViewDataBound(e){try{const t=this.selectDataMemberNode(e.sender);t&&(this.Model.DataMemberInfo=t)}catch(e){this.provider.getService(a.a).error(e.message,e)}}selectDataMemberNode(e){const t=e.items();let r=t[0];for(const i of t){const t=e.dataItem(i);if(t.DataMember===this.Model.DataMember&&this.areParametersEqual(this.Model.ParametersInfo,t.JsonParameters)){r=i;break}}return e.select(r),e.dataItem(r)}areParametersEqual(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){const i=e[r],n=t[r];if(i.name!==n.Name||i.dataType!==n.DataTypeFullName)return!1}return!0}onDataMembersTreeViewSelect(e){const t=e.sender.dataItem(e.node);this.Model.DataMemberInfo=t}};l=o([Object(i.a)("ods-choose-data-member-page")],l)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(28),n=r(722),s=r(2),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{getTemplate(){return this.templates.Editors.Wizards.ObjectDataSource.Pages.previewDataSourcePageComponentTemplate}getPageModel(e){return this.Model=new n.a(this.provider,e),this.Model}};o=a([Object(s.a)("ods-preview-data-source-page")],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(14),n=r(8),s=r(296),a=r(367),o=r(757),l=r(275),c=r(36);class d{constructor(e,t){this.$parent=e,this.provider=t,this.options=this.provider.getService(c.a).ToolboxArea,this.toolboxes=l.a.Toolbox(t),this.init()}static generateDataIndexForGroup(e){return"group-"+e}get template(){return'<div class="twd-tab -components">\n            <div class="toolbox__header">\n            </div>\n            <ul class="twd-expander"></ul>\n        </div>'}addTemplate(e,t){e.append(t)}init(){this.sr=this.provider.getService(n.a),this.$parent.append(this.template),this.$toolsWrapper=this.$parent.find(".twd-expander"),this.initLayoutSwitcher(),this.layoutChanged(this.options.Layout),this.renderTools(this.$toolsWrapper);this.$toolsWrapper.kendoPanelBar({expandMode:"MULTIPLE"}).data("kendoPanelBar").expand($('[data-index^="group"]'),!1)}initLayoutSwitcher(){const e=new Map;e.set(i.d.ProperiesAreaCategorizedLayout,new s.a("list"===this.options.Layout,this.sr.ComponetsItemsList,"componentsLayout","list","k-i-grid-layout")),e.set(i.d.ProperiesAreaAlphabeticalLayout,new s.a("grid"===this.options.Layout,this.sr.ComponetsItemsGrid,"componentsLayout","grid","k-i-grid"));const t=this.$parent.find(".toolbox__header");new a.a(t,this.layoutChanged.bind(this),e,"none")}layoutChanged(e){this.$parent.find(".twd-expander").removeClass("-"+this.options.Layout).addClass("-"+e),this.options.Layout=e}renderTools(e){for(const t of this.toolboxes){let r=e;const i=this.renderToolsTemplate(t.GroupName);this.addTemplate(e,i),r=e.find("[data-index='group-"+t.GroupName+"']");const n=this.toolGroupHeaderTemplate(t.GroupName);this.addTemplate(r,n);const s=t.Items;this.addTemplate(r,"<div class='k-item k-state-default expander__content'></div>");const a=r.find("div");for(const e of s){new o.a(a,this.provider,e).addToParent()}}}scrollToItem(e,t){const r=$(".twd-tab.-components").find(".twd-expander"),i=this.getItemVisualElement(e,t);r.animate({scrollTop:r.scrollTop()+i.offset().top-r.offset().top},750)}getItemVisualElement(e,t){const r=d.generateDataIndexForGroup(e);return $(".twd-tab.-components").find(`[data-index="${r}"]`).find(`[aria-label="${t}"]`)}renderToolsTemplate(e){return`<li class="expander__items" data-index="${d.generateDataIndexForGroup(e)}"></li>`}toolGroupHeaderTemplate(e){return`<span class="expander__header">${e}</span>`}update(e){}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(45),n=r(399),s=r(151);class a extends n.a{constructor(e,t,r,n,a){super(null),this.type=e||s.a.Standard,this.x1=t,this.y1=r,this.x2=n,this.y2=a,this.originalBounds=i.a.Empty,this.baseDesigner}get OriginalBounds(){return this.originalBounds}set OriginalBounds(e){this.originalBounds=e}get Type(){return this.type}get Tag(){return this.tag}set Tag(e){this.tag=e}get isHorizontal(){return this.y1===this.y2}get isVertical(){return this.x1===this.x2}set Designer(e){this.baseDesigner=e}static Overlap(e,t){if(e.type===t.type){if(e.type!==s.a.Standard&&e.type!==s.a.Baseline)return null;if(e.x1===e.x2&&t.x1===t.x2&&e.x1===t.x1)return new a(e.type,e.x1,Math.min(e.y1,t.y1),e.x1,Math.max(e.y2,t.y2));if(e.y1===e.y2&&t.y1===t.y2&&e.y1===t.y1)return new a(e.type,Math.min(e.x1,t.x1),e.y1,Math.max(e.x2,t.x2),e.y1)}return null}Paint(e,t){if(this.type===s.a.Standard){let r;this.x1===this.x2&&(r=e?$("#snap-to-snapLines-v-left"):$("#snap-to-snapLines-v-right")),this.y1===this.y2&&(r=t?$("#snap-to-snapLines-h-top"):$("#snap-to-snapLines-h-bottom"));const i=null==r?void 0:r.children("line").first();i&&(i.attr("x1",this.x1),i.attr("x2",this.x2),i.attr("y1",this.y1),i.attr("y2",this.y2),r.show())}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(5),n=r(0);class s{static IsMulticolumnReport(e){return null!=e&&e.getPropertyValue(n.a.PageSettings,n.a.ColumnCount)>1}static GetReportWidth(e){if(null!=e){const t=i.a.Parse(e.getPropertyValue(n.a.Width));return s.IsMulticolumnReport(e)?s.CalculatePrintableWidth(e).ToUnit(t.Type):t}return i.a.Zero}static CalculatePrintableWidth(e){const t=e.getPropertyValue(n.a.PageSettings,n.a.Landscape),r=e.getPropertyValue(n.a.PageSettings,n.a.PaperSize,n.a.Height),s=e.getPropertyValue(n.a.PageSettings,n.a.PaperSize,n.a.Width),a=i.a.Parse(e.getPropertyValue(n.a.PageSettings,n.a.Margins,n.a.Left)),o=i.a.Parse(e.getPropertyValue(n.a.PageSettings,n.a.Margins,n.a.Right));return i.a.Parse(t?r:s).Subtract(a).Subtract(o)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return b}));var i=r(56),n=r(309),s=r(310),a=r(405),o=r(807),l=r(811),c=r(3),d=r(16),u=r(88),h=r(5),p=r(31),m=r(60),g=r(37),f=r(35),v=r(12),y=r(13),S=r(53),C=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class b extends a.a{constructor(e,t){super(e,t),this.tableLayout=new o.a(t,e),this.tableGlyphService=new l.a(this,this.tableLayout),this.selectionService=this.Provider.getService(d.a),this.selectionHandler=this.OnSelectionChanged.bind(this),this.webDesignerEventEmitter=this.Provider.getService(y.c),this.webDesignerEventEmitter.on(S.a,this.selectionHandler)}get TableLayout(){return this.tableLayout}SnapLines(){const e=super.SnapLines(),t=this.tableLayout.Columns,r=this.tableLayout.Rows,i=this.GetAbsoluteClientBounds();let n=i.Left;for(let r=0;r<t.length-1;r++){n+=t[r].Size.ToPixels()*this.Zoom,e.push(new p.a(g.a.Left,n,null,m.a.Low)),e.push(new p.a(g.a.Right,n,null,m.a.Low))}let s=i.Top;for(let t=0;t<r.length-1;t++){s+=r[t].Size.ToPixels()*this.Zoom,e.push(new p.a(g.a.Top,s,null,m.a.Low)),e.push(new p.a(g.a.Bottom,s,null,m.a.Low))}return e}Initialize(){return C(this,void 0,void 0,(function*(){yield this.createComponentWrappers(this.Provider,this.Component)}))}Dispose(){this.webDesignerEventEmitter.off(S.a,this.selectionHandler),this.tableGlyphService.Dispose(),super.Dispose()}get RowGroups(){return this.rowGroups}get ColumnGroups(){return this.columnGroups}get Corner(){return this.corner}get Body(){return this.body}GetCell(e){return this.tableLayout.GetCell(e)}CalculateItemMinSize(e){return this.TableLayout.CalculateItemMinSize(e)}ResizeMemberByItem(e,t,r){this.tableLayout.ResizeMemberByItem(e,t,r)}Resize(e){const t=this.ReportItem.Size,r=h.a.FromPixels(e.Size.Width,t.Width.Type),i=h.a.FromPixels(e.Size.Height,t.Height.Type),n=new f.a(r,i);if(!t.Equals(n)){const t=this.Provider.getServiceByName(c.a.IDesignerHost),r=this.Provider.getService(v.a),i=t.CreateTransaction(`Resize '${this.Component.Name}'`);try{super.Resize(e),this.tableLayout.LayoutContent(),i.Commit()}catch(e){i.Rollback(),r.error(`Could not resize '${this.Component.Name}'.`,e)}}}Render(e){const t=super.Render(e);return this.tableLayout.Refresh(),this.tableGlyphService.init(),t}createComponentWrappers(e,t){return C(this,void 0,void 0,(function*(){const r=t;this.rowGroups=new n.a(r.RowGroups,t,e),yield this.rowGroups.Initialize(),this.columnGroups=new n.a(r.ColumnGroups,t,e),yield this.columnGroups.Initialize(),this.body=new s.a(r.Body,t,e),yield this.body.Initialize(),this.corner=new s.a(r.Corner,t,e),yield this.corner.Initialize()}))}OnSelectionChanged(e){return C(this,void 0,void 0,(function*(){const e=[],t=this.selectionService.GetSelectedComponents();for(const r of t){if(r instanceof i.a&&r.Parent===this.Component){const t=this.GetCell(r);t&&e.push(t)}if(r instanceof u.a){console.debug("Since we select Member's cells, instead of the Member itself, we should never have Table.Row/Column selected");for(const t of r.GetCells())t.MergeTarget||e.push(t)}}this.TableLayout.SetSelectedCells(e),this.tableGlyphService.onSelectionChanged(t)}))}nestInTableCell(e){let t=null;for(const e of this.TableLayout.GetSelectedCells()){t=e;break}t&&this.TableLayout.ReplaceCellContentExtended(t,e,null,null)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(20),n=r(45),s=r(23);class a{constructor(e,t,r){this.glyphBaseClass=e,this.behavior=t,this.tableDesigner=r,this.HANDLE_SIZE=17}create(e){const t=this.glyphBaseClass.getGlyphTypes();return[...t.column?this.tableDesigner.TableLayout.Columns.map(r=>this.createColumnGlyph(t.column,r,e)):[],...t.row?this.tableDesigner.TableLayout.Rows.map(r=>this.createRowGlyph(t.row,r,e)):[],...t.corner?[this.createCornerGlyph(t.corner,this.tableDesigner.Component,e)]:[]]}createColumnGlyph(e,t,r){return this.createGlyph(e,t,this.getColumnRectangle(t),r)}createCornerGlyph(e,t,r){return this.createGlyph(e,t,this.getCornerRectangle(),r)}createRowGlyph(e,t,r){return this.createGlyph(e,t,this.getRowRectangle(t),r)}createGlyph(e,t,r,i){return new e(t,r,i,this.behavior)}getRowRectangle(e){return new n.a(new i.a(-this.HANDLE_SIZE,e.Top.ToPixels()),new s.a(this.HANDLE_SIZE,e.Size.ToPixels()))}getColumnRectangle(e){return new n.a(new i.a(e.Left.ToPixels(),-this.HANDLE_SIZE),new s.a(e.Size.ToPixels(),this.HANDLE_SIZE))}getCornerRectangle(){return new n.a(new i.a(-this.HANDLE_SIZE,-this.HANDLE_SIZE),new s.a(this.HANDLE_SIZE,this.HANDLE_SIZE))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"c",(function(){return l})),r.d(t,"b",(function(){return c}));var i=r(1),n=r(97),s=r(406),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends n.a{get DesignerClassName(){return i.a.Gauge}}class l extends o{get DesignerClassName(){return i.a.RadialGauge}RenderItem(e,t){return a(this,void 0,void 0,(function*(){return this.RenderService.RenderRadialGauge(e,t)}))}createCssComponentBuilder(){this.cssBuilder=new s.a(this.Component)}}class c extends o{get DesignerClassName(){return i.a.LinearGauge}RenderItem(e,t){return a(this,void 0,void 0,(function*(){return this.RenderService.RenderLinearGauge(e,t)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(1),n=r(34);class s extends n.a{}s.typeName=i.a.RadialGaugeTicks},function(e,t,r){"use strict";r.d(t,"b",(function(){return d})),r.d(t,"a",(function(){return u})),r.d(t,"c",(function(){return h}));var i=r(428),n=r(875),s=r(36),a=r(429),o=r(876),l=r(430),c=r(877);class d{static create(e,t){return e.getService(s.a).DemoMode?new n.a(e,t):new i.a(e,t)}}class u{static create(e,t){return e.getService(s.a).DemoMode?new o.a(e,t):new a.a(e,t)}}class h{static create(e,t){return e.getService(s.a).DemoMode?new c.a(e,t):new l.a(e,t)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static isErrorResponse(e){const t=Object.keys(e);return!(!t.includes("errorCode")||!t.includes("message"))}static isExceptionResponse(e){const t=Object.keys(e);return!(!t.includes("exceptionMessage")||!t.includes("message"))}static isReportServerPascalCaseErrorResponse(e){return!!Object.keys(e).includes("Message")}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(2),n=r(59),s=r(10),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends n.a{constructor(){super(...arguments),this.valueChanged=new s.c}getTemplate(){return this.templates.Editors.PopupEditors.textAreaWindowComponentTemplate}beforeInit(){super.beforeInit(),this.Value=this.Value||""}onWindowOpenAnimationComplete(){this.$inputDomEl=this.view.element.find(".editor__value"),this.setSelectionRange(0,this.Value.length),this.$inputDomEl.focus()}get Value(){return this.getByPropertyName(()=>{this.value})}set Value(e){e=e||"",this.setByPropertyName(()=>{this.value},e),this.valueChanged.emit(e)}get HasError(){return this.getByPropertyName(()=>{this.hasError})}set HasError(e){this.setByPropertyName(()=>{this.hasError},e)}onExpressionEditorValueChanged(e){this.addValue(e.value),this.$inputDomEl.focus()}updateStateUi(){}setSelectionRange(e,t){this.$inputDomEl[0].setSelectionRange(e,t)}addValue(e){if(this.readonlyState)return;let t=this.$inputDomEl[0].selectionStart,r=this.$inputDomEl[0].selectionEnd,i=this.Value;(!i.length||0===t&&r===i.length)&&(i="= ",t=2,r=2);let n=i.substring(0,t),s=i.substring(r,i.length);0===n.length&&s.startsWith("=")?(n="= ",s=s.substring(1).trim(),t=2,r=2):n.startsWith("=")||this.isInsideEmbeddedExpression(i,t)||(n+="{",s="}"+s,t+=1),t+=e.length,e.endsWith(")")&&(t-=1),this.Value=n+e+s,this.setSelectionRange(t,t)}isInsideEmbeddedExpression(e,t){let r=!1,i=!1;return e.split("").forEach((e,n)=>{t>n?"{"===e?r=!0:"}"===e&&(r=!1):r&&"}"===e&&(i=!0)}),i}};a([Object(i.b)({updateOnChange:!0})],o.prototype,"value",void 0),a([Object(i.b)({updateOnChange:!0})],o.prototype,"hasError",void 0),a([Object(i.b)()],o.prototype,"propertyName",void 0),a([Object(i.b)()],o.prototype,"propertyWrapper",void 0),a([Object(i.b)()],o.prototype,"displayExpressionEditor",void 0),a([Object(i.b)()],o.prototype,"readonlyState",void 0),a([i.d],o.prototype,"valueChanged",void 0),o=a([Object(i.a)("text-area-window")],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(70),n=r(2),s=r(85),a=r(8),o=r(10),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let c=class extends i.b{constructor(){super(...arguments),this.emitUploadTriggered=new o.b}get UploadEnabled(){return this.getByPropertyName(e=>{e.uploadEnabled})}set UploadEnabled(e){this.setByPropertyName(e=>{e.uploadEnabled},e)}getTemplate(){return this.templates.Layouts.FileManagement.UploadComponent.UploadWindowTemplate}beforeInit(){this.extensionsAllowed=this._$injectedInputData.extensionsAllowed,this.multipleFilesAllowed=this._$injectedInputData.multipleFilesAllowed,this.onUpload=this._$injectedInputData.uploadFile,this.stringResources=this.provider.getService(a.a),super.beforeInit()}onClose(){this._$kendoWindowInstance.close()}onUploadButtonClick(){this.emitUploadTriggered.next()}onUploadSucceeded(){this._$kendoWindowInstance.close()}uploadAllowedChanged(e){this.UploadEnabled=e.allowed}};c=l([Object(n.a)("upload-window")],c);class d{constructor(e){this.provider=e,this.component=c,this.stringResources=this.provider.getService(a.a)}create(e,t){const r=new s.a(this.provider);this.title=this.stringResources.UploadFilesTo+" '"+e+"'";r.withComponent(this.component).withTitle(this.title).withVisible(!1).withWindowDimensions({height:464,width:640,minWidth:500,minHeight:344}).withModal(!0);return r.build({data:t})}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(2),n=r(311),s=r(7),a=r(134),o=r(57),l=r(27),c=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let d=class extends a.b{prepareValueForPropertyWrapper(e){return e}getValueForInput(e){return e}beforeInit(){super.beforeInit(),this.setOriginalRootPath(o.a.imagesResourceFolder),this.isExpressionEditorAllowed=!0}resetToDefaultValueInternal(){n.a.resetPropertyWrapperValue(this.propertyWrapper),super.resetToDefaultValueInternal()}updatePropertyWrapperValue(e){n.a.updatePropertyWrapperValue(this.propertyWrapper,e)&&super.updatePropertyWrapperValue(e)}getAssetsManagerWindowTitle(){return l.a.String(this.stringResources.SelectItem,{item:this.stringResources.Image})}};d=c([Object(s.a)(),Object(i.a)("checkbox-input-editor")],d)},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(2),n=r(10),s=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let a=class extends n.a{constructor(){super(...arguments),this.onOptionSelected=new n.c}getTemplate(){return'<ul data-role="buttongroup"\n                    class="twd-buttongroup-ul"\n                    data-index="#: data.SelectedOptionIndex #"\n                    data-bind="events: { select: onSelect }, disabled: isDisabled">\n                    # for(const option of data.Options){ #\n                        <li>#: option.text #</li>\n                    # } #\n                </ul>'}afterInit(){super.afterInit(),this.buttonGroup=this.view.element.data("kendoButtonGroup")}setSelected(e){const t=this.getButtonGroupItemIndex(e);this.buttonGroup.select(t),this.buttonGroup.trigger("select",{indices:t})}get Options(){return this.options}get SelectedOptionIndex(){return this.getButtonGroupItemIndex(this.initialSelectedOption)}getButtonGroupItemIndex(e){return this.Options.findIndex(t=>t.value===e.value)}onSelect(e){const t=this.Options[e.indices];this.onOptionSelected.emit(t)}};s([Object(i.b)()],a.prototype,"options",void 0),s([Object(i.b)()],a.prototype,"initialSelectedOption",void 0),s([Object(i.b)()],a.prototype,"isDisabled",void 0),s([i.d],a.prototype,"onOptionSelected",void 0),a=s([Object(i.a)("twd-buttongroup")],a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(54),n=r(2),s=r(7),a=r(81),o=r(0),l=r(1),c=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let d=class extends a.a{beforeInit(){this.setValueEnabled(),super.beforeInit()}afterInit(){super.afterInit(),this.setValueEnabled()}prepareValueForPropertyWrapper(e){return this.provideValueFromBillData()?"":e}getValueForInput(e){return this.provideValueFromBillData()?this.stringResources.SwissQRBarcodeWithValueFromBillData:e}getTemplate(){return i.a.Editors.InputEditors.inputEditorTemplate}setValueEnabled(){this.Enabled=!this.provideValueFromBillData()}updateValueUI(){this.setValueEnabled(),this.setExtendedEditorVisibility(),this.refreshValue()}provideValueFromBillData(){for(let e=0;e<this.propertyWrapper.Components.length;++e){const t=this.propertyWrapper.Components[e];if(t){const e=t.Encoder;if(e&&e[o.a.NetType]===l.a.SwissQRCodeEncoder&&t.ValueFromBillData)return!0}}return!1}};d=c([Object(n.a)("barcode-value-editor"),Object(s.b)("Telerik.WebReportDesinger.BarcodeValueEditor")],d)},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(59),n=r(2),s=r(7),a=r(1),o=r(49),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let c=class extends o.a{get Value(){return this.getByPropertyName(e=>{e.value})}set Value(e){this.setByPropertyName(e=>{e.value},e)}updateStateUi(){}get isResetVisible(){return!this.Readonly&&!this.Disabled}beforeInit(){super.beforeInit(),this.refreshValue()}isDisabled(){return(this.State&i.b.Disabled)===i.b.Disabled||(this.State&i.b.ReadOnly)===i.b.ReadOnly}getTemplate(){return this.templates.Editors.booleanEditorComponentTemplate}refreshValue(){this.Value=this.getValueFromPropertyStore(),this.resetManager.checkAndUpdateReset()}setPropertyWrapperValue(){this.propertyWrapper.SetValue(this.Value.toString())}getValueFromPropertyStore(){let e=!1;const t=this.propertyWrapper.GetValue();return e="string"==typeof t?"true"===t.toLowerCase():t,e}};c=l([Object(n.a)("boolean-editor"),Object(s.b)(a.a.Boolean,"Visible")],c)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(414),n=r(2),s=r(7),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{createInputEditor(){const e=this.childEditorResolver.expressionChildEditorModel;return e.builder.createInstance(this.imageEditorVisualElement,e.propertyWrapper,this.provider,this.childEditorsDepth)}createUploadImageEditor(){const e=this.childEditorResolver.imageChildEditorModel;return e.builder.createInstance(this.imageEditorVisualElement,e.propertyWrapper,this.provider,this.childEditorsDepth)}};o=a([Object(n.a)("check-box-image-editor"),Object(s.b)("Telerik.WebReportDesigner.CheckBoxImageEditor")],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(50),n=r(2),s=r(7),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{};o=a([Object(n.a)("style-editor"),Object(s.b)("Style","Telerik.Reporting.Design.StyleEditor")],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(50),n=r(0),s=r(2),a=r(7),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends i.a{beforeInit(){super.beforeInit(),this.graphCoordinateSystem=this.propertyWrapper.Components[0],this.graph=this.graphCoordinateSystem.Parent}populateChildEditors(){const e=this.propertyWrapper.Components[0],t=e.Parent,r=this.propertyWrapper.GetValue();let i=t.Axes.find(e=>e.Name===r);i||(i=e.AddNewGraphAxis(this.propertyWrapper.Name)),super.populateChildEditors()}get editorInfo(){const e=this.propertyWrapper.GetValue();let t=null;const r=this.graph.Axes.find(t=>t.Name===e);if(r){const i=r.getPropertyValue("Scale");return i&&(t=i[n.a.NetType]),`${e} (${t})`}return this.stringResources.NoneSelected}};l=o([Object(s.a)("graph-axis-editor"),Object(a.b)("GraphAxis")],l)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(235),n=r(2),s=r(7),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{};o=a([Object(n.a)("margins-editor"),Object(s.b)("MarginsU")],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(191),n=r(233),s=r(2),a=r(4),o=r(0),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let c=class extends i.a{loadEditors(e){super.loadEditors(e);const t=this.childEditors.find(e=>e instanceof n.a);t?(t.onDropDownListValueChangedObservable.subscribe(e=>this.setValueEditorState(e.dropDownListValue)),this.setValueEditorState(t.Value)):a.b.logWarning("Cannot find the Position editor")}setValueEditorState(e){const t=e;if(!t)return;const r=this.childEditors.find(e=>e.propertyWrapper.Name===o.a.Value);r&&(r.Enabled="specific"===t.toLowerCase())}};c=l([Object(s.a)("cross-axis-position-editor-window")],c);class d extends i.b{get component(){return c}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(2),n=r(191),s=r(38),a=r(134),o=r(57),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let c=class extends n.a{constructor(){super(...arguments),this.onKindChanged=e=>{this.fileInputEditor.IsAssetManagerButtonVisible="Relative"===e.dropDownListValue}}loadEditors(e){super.loadEditors(e),this.kindEditor=this.childEditors.find(e=>"Kind"===e.LocalizedName),this.kindEditor.onDropDownListValueChangedObservable.subscribe(this.onKindChanged),this.fileInputEditor=this.createInputEditor(),this.onKindChanged({dropDownListValue:this.kindEditor.propertyWrapper.GetValue()})}beforeDispose(){super.beforeDispose(),this.kindEditor.onDropDownListValueChangedObservable.unsubscribe(this.onKindChanged)}createInputEditor(){const e=this.popValueEditor(),t=s.a.findEditorBuilder(a.b).createInstance(this.$editorsPlaceholder,e.propertyWrapper,this.provider,e.EditorDepth);return t.setOriginalRootPath(o.a.stylesResourceFolder),this.childEditors.push(t),t}popValueEditor(){const e=this.childEditors.find(e=>"Path"===e.LocalizedName);return e.Dispose(),this.childEditors=this.childEditors.filter(e=>"Path"!==e.LocalizedName),e}};c=l([Object(i.a)("external-style-sheet-editor-window")],c);class d extends n.b{get component(){return c}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(2),n=r(285),s=r(472),a=r(38),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends n.a{getCollectionTypeInstanceEditor(e){return a.a.findEditorBuilder(s.a).createInstance(this.$editorsPlaceholder,e,this.provider)}};l=o([Object(i.a)("map-series-collection-editor-window")],l);class c extends n.b{get component(){return l}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(192),n=r(0),s=r(100),a=r(63),o=r(2),l=r(7),c=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let d=class extends i.a{beforeInit(){this.seriesSerializedNamesMap=new Map([[n.a.ColumnMapSeriesClassName,s.a.typeName],[n.a.PieMapSeriesClassName,s.e.typeName]]),super.beforeInit()}getInstanceTypes(){var e;const t=this.TypeDescriptor.InstanceTypes,r=[];for(const i of t){const t=null!==(e=this.seriesSerializedNamesMap.get(i))&&void 0!==e?e:i;r.push(new a.a(t,i))}return r}};d=c([Object(o.a)("map-series-types-editor"),Object(l.a)()],d)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(3),n=r(2),s=r(7),a=r(63),o=r(320),l=r(236),c=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let d=class extends o.a{get optionLabel(){return this.stringResources.NoneSelected}populateChildEditorsCore(){this.Expanded&&super.populateChildEditorsCore()}getInstanceTypes(){return this.provider.getServiceByName(i.a.ITypeDescriptorRepository).GetPropertyTypeDescriptor(l.a.IAction).InstanceTypes.map(e=>{var t;return new a.a(e,null!==(t=this.stringResources.getString(e))&&void 0!==t?t:e)})}};d=c([Object(n.a)("action-editor"),Object(s.b)("IAction")],d)},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(49),n=r(2),s=r(7),a=r(1),o=r(91),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let c=class extends i.a{get Value(){return this.getByPropertyName(e=>{e.value})}set Value(e){this.setByPropertyName(e=>{e.value},e)}getTemplate(){return this.templates.Editors.doubleEditorComponentTemplate}createFocusStrategy(){return new o.c(this.visualElement)}updateStateUi(){}beforeInit(){super.beforeInit(),this.refreshValue()}setValue(e,t){this.propertyWrapper.SetValue(this.Value)}get inputStep(){}refreshValue(){this.Value=this.propertyWrapper.GetValue(),this.resetManager.checkAndUpdateReset()}enableChange(){return!(this.Readonly||this.Disabled)}};c=l([Object(n.a)("double-editor"),Object(s.b)(a.a.Double,a.a.Decimal)],c)},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var i,n=r(76),s=r(89),a=r(49),o=r(2),l=r(7),c=r(10),d=r(4),u=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let h=i=class extends c.a{constructor(){super(...arguments),this.valueChanging=new c.c}set Value(e){const t=s.a.ToRgbaColor(e);this.HexColor=s.a.ToHexColor(e),this.KendoColorString=t?i.kendoColorStringFromPropertyStoreValue(t):null}get KendoColorString(){return this.getByPropertyName(e=>{e.kendoColorString})}set KendoColorString(e){this.setByPropertyName(e=>{e.kendoColorString},e)}get HexColor(){return this.getByPropertyName(e=>{e.hexColor})}set HexColor(e){this.setByPropertyName(e=>{e.hexColor},e)}get ColorValueInvalid(){return this.getByPropertyName(e=>{e.colorValueInvalid})}set ColorValueInvalid(e){this.setByPropertyName(e=>{e.colorValueInvalid},e)}beforeInit(){super.beforeInit(),this.id=this.uid}changeColor(e,t){const r=e;if(13!==r.which&&"blur"!==r.type)return;const a=this.HexColor;if(n.a.IsValidHexColor(a)){this.ColorValueInvalid=!1;const e=s.a.ToRgbaColor(a);this.KendoColorString=i.kendoColorStringFromPropertyStoreValue(e),this.setColor()}else this.ColorValueInvalid=!0}getTemplate(){return this.templates.Editors.colorPickerComponentTemplate}colorChanged(e){this.HexColor=kendo.parseColor(this.KendoColorString,!1).toHex(),this.setColor()}static convertOpacity(e){return 255*e}setColor(){const e=kendo.parseColor(this.KendoColorString,!1),t=`${Math.round(i.convertOpacity(e.a))},${e.r}, ${e.g}, ${e.b}`;this.valueChanging.emit(t)}static kendoColorStringFromPropertyStoreValue(e){return d.b.kendoColorFromRgbaString(e).toCssRgba()}};u([o.d],h.prototype,"valueChanging",void 0),u([Object(o.b)()],h.prototype,"resetManager",void 0),u([Object(o.b)({updateOnChange:!0})],h.prototype,"isResetVisible",void 0),u([Object(o.b)({updateOnChange:!0})],h.prototype,"localizedName",void 0),u([Object(o.b)({updateOnChange:!0})],h.prototype,"nameFlexStyle",void 0),u([Object(o.b)({updateOnChange:!0})],h.prototype,"editorDepth",void 0),u([Object(o.b)({updateOnChange:!0})],h.prototype,"Value",null),h=i=u([Object(o.a)("color-picker")],h);let p=class extends a.a{get Value(){return this.getByPropertyName(e=>{e.value})}set Value(e){this.setByPropertyName(e=>{e.value},e)}updateStateUi(){}beforeInit(){super.beforeInit(),this.refreshValue()}refreshValue(){this.Value=this.getPropertyWrapperValue()}getTemplate(){return this.templates.Editors.colorPickerEditorComponentTemplate}valueChanged(e){this.Value=e,this.updatePropertyWrapperValue(this.Value),this.resetManager.checkAndUpdateReset()}};p=u([Object(o.a)("color-picker-editor"),Object(l.b)("Color","BackgroundColor","LineColor")],p)},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t){this.Name=e,this.Extension=t}toString(){return`${this.Name}.${this.Extension}`}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(0),n=r(544),s=r(545),a=r(324);class o extends a.a{constructor(e,t){super(e,t),this.initPropertyStore(),this.Columns=new n.a(e[i.a.Columns]),this.Rows=new s.a(e[i.a.Rows])}initPropertyStore(){this.propertyStore[i.a.Columns]||(this.propertyStore[i.a.Columns]=[]),this.propertyStore[i.a.Rows]||(this.propertyStore[i.a.Rows]=[])}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return o}));var i=r(21),n=r(14);class s{constructor(e,t,r,n,s,a,o,l,c){this.name=e,this.created=t,this.modified=r,this.size=n,this.uri=s,this.parentPath=i.a.ensureTrailingPathSeparator(a),this.path=o,this.isDirectory=l,this.spriteCssClass=c}get localFormatDateCreated(){var e;return null===(e=this.created)||void 0===e?void 0:e.toLocaleString()}get localFormatDateModified(){var e;return null===(e=this.modified)||void 0===e?void 0:e.toLocaleString()}get sizeInKb(){return this.size?Math.ceil(this.size)+" KB":""}update(e){this.name=e.name,this.extension=e.extension,this.created=e.created,this.modified=e.modified,this.uri=e.uri,this.path=e.path,this.parentPath=e.parentPath,this.size=e.size,this.spriteCssClass=e.spriteCssClass}get canHaveDescription(){var e,t;return!this.isDirectory&&(null===(t=null===(e=this.name)||void 0===e?void 0:e.toLowerCase())||void 0===t?void 0:t.endsWith("."+n.b.sdsx))}}class a extends s{constructor(e,t,r,i,n,s,a,o){super(e,t,r,i,n,s,a,!1,o)}get hasDirectories(){return!1}}class o extends s{constructor(e,t,r,n,s,a,o,l,c){super(e,t,r,n,a,o,i.a.ensureTrailingPathSeparator(l),!0,c),this._items=[],this.hasDirectoriesInitial=s}get hasDirectories(){return this.itemsHaveBeenSet?this.items.some(e=>e.isDirectory):this.hasDirectoriesInitial}update(e){super.update(e),this.items=e.items}get items(){return this._items}set items(e){if(!e||!Array.isArray(e))throw new Error("items must be not be falsy and must be an array");this._items=e,this.itemsHaveBeenSet=!0}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return d}));var i=r(129),n=r(55),s=r(138),a=r(9),o=r(52);class l extends i.a{constructor(e,t){super(e),this.commandService=t;const r=s.a.KeyCodes;this.keyCodeMap={[r.delete]:[new n.a(null,o.a.DeleteCommand,this.getExcludedDomTargetClassnames())],[r.f2]:[new n.a(null,o.a.RenameCommand,this.getExcludedDomTargetClassnames())]}}IsValidTarget(e,t){return!super.isCurrentElementTagIgnored(e)}GetCommandManager(){return this.commandService}}class c extends l{getExcludedDomTargetClassnames(){return i.a.globallyAvailableKeyCodesExcludedDomTargetsExceptTopMenu}}class d extends l{getExcludedDomTargetClassnames(){return[]}IsValidTarget(e,t){const r=$(e),i=r.hasClass(a.a.KendoModalWindowClasses)?r:r.parent("."+a.a.KendoModalWindowClasses);return!(i&&(null==i?void 0:i.find("upload-window,asset-manager-new-folder-window").length)>0)&&super.IsValidTarget(e,t)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t){this.TransactionName=e,this.TransactionCommitted=t}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get small(){return"small"}static get big(){return"big"}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t){this.AllowedProperty=e,this.MaskedProperties=t}}},function(e,t,r){"use strict";var i;r.d(t,"a",(function(){return i})),function(e){e[e.OutsideEnd=0]="OutsideEnd",e[e.InsideEnd=1]="InsideEnd",e[e.Center=2]="Center",e[e.InsideBase=3]="InsideBase",e[e.OutsideBase=4]="OutsideBase",e[e.OutsideColumn=5]="OutsideColumn"}(i||(i={}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(329),n=r(633),s=r(28),a=r(70),o=r(2),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let c=class extends s.a{getTemplate(){return this.templates.Editors.Wizards.SqlDataSource.Pages.configureDataSourceParametersPageTemplate}afterInit(){super.afterInit(),this.$placeholder=this.view.element.parent().find(".-parameters"),this.adjustGrid()}getPageModel(e){return this.Model=new n.a(this.provider,e),this.Model}adjustGrid(){this.grid=this.$placeholder.find(".editor__grid-parameters[data-role='grid']").data("kendoGrid"),$.each(this.grid.columns,(e,t)=>{switch(t.field){case"Name":t.editor=this.nameEditor.bind(this);break;case"Value.Value":t.editor=this.valueEditor.bind(this);break;case"DbType":t.editor=this.dbTypeEditor.bind(this)}}),this.grid.element.find(".k-grid-toolbar").on("click",".k-button",this.addParameter.bind(this)),this.grid.element.find(".k-grid-toolbar").insertAfter(this.grid.element.find("table[role='grid']"))}nameEditor(e,t){$("<input name='"+t.field+"'/>").appendTo(e).kendoComboBox({dataSource:{data:this.Model.AvailableNames},clearButton:!1,filter:"contains",dataTextField:"Name",dataValueField:"Value"})}valueEditor(e,t){$("<input name='"+t.field+"'/>").appendTo(e).kendoComboBox({dataSource:{data:this.Model.Values},change:e=>{const t=e.sender.dataSource.data()[e.sender.select()];if(t&&t.action)switch(this.editItem=this.grid.dataItem(this.grid.element.find(".k-grid-edit-row")[0]),t.action){case i.a.OpenExpressionWindow:this.openExpressionWindow();break;case i.a.OpenNewParameterWindow:this.openNewParameterWindow(t)}else;},clearButton:!1,filter:"contains",dataTextField:"Name",dataValueField:"Value"})}dbTypeEditor(e,t){$("<input name='"+t.field+"'/>").appendTo(e).kendoDropDownList({dataSource:{data:this.Model.DbTypes},value:t.model.DbType,dataTextField:"Name",dataValueField:"Name"})}updateValue(e){var t;this.editItem.set("Value.Value",e),null===(t=this.editorWindowRef)||void 0===t||t.close()}openExpressionWindow(){const e=this.editItem.get("Value"),t=`${this.stringResources.Edit} ${this.stringResources.Expression}`;this.editorWindowRef=new a.a(this.provider).create(t,{value:e.Value,displayExpressionEditor:!0,readonlyState:!1}),this.editorWindowRef.component.onPopupUpdateValue((e,t)=>{this.updateValue(t)}),this.editorWindowRef.open()}addParameter(){return event.preventDefault(),this.Model.addNewParameter(),!1}openNewParameterWindow(e){}};c=l([Object(o.a)("sql-configure-data-source-parameters-page")],c)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(634),n=r(28),s=r(2),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends n.a{getTemplate(){return this.templates.Editors.Wizards.SqlDataSource.Pages.configureDesignTimeParametersPageTemplate}getPageModel(e){return this.Model=new i.a(this.provider,e),this.Model}};o=a([Object(s.a)("sql-configure-design-time-parameters-page")],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d})),r.d(t,"b",(function(){return u}));var i=r(71),n=r(6),s=r(3),a=r(113),o=r(679),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c extends a.a{constructor(e,t){super(e,t?n.a.SelectNext:n.a.SelectPrevious),this.selectNext=t}get Report(){if(!c.report){const e=this.provider.getServiceByName(s.a.IDesignerHost);e.IsLoaded&&e.RootComponent instanceof i.a&&(c.report=e.RootComponent)}return c.report}get TabOrderList(){return c.tabOrderList||(c.tabOrderList=new o.a(this.Report,this.provider)),c.tabOrderList}reset(){super.reset(),c.report=null,c.tabOrderList=null}isValidSelectionCore(e){return e.length>0}execute(e){return l(this,void 0,void 0,(function*(){const e=this.provider.getServiceByName(s.a.IDesignSurfaceManager),t=this.selectionService.PrimarySelection||e.ActiveDesignSurface.RootComponent;if(!t)return;const r=this.selectNext?this.TabOrderList.GetNext(t):this.TabOrderList.GetPrevious(t);r!==t&&this.selectionService.SetSelectedComponents([r])}))}}c.tabOrderList=null,c.report=null;class d extends c{constructor(e){super(e,!0)}}class u extends c{constructor(e){super(e,!1)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(28),n=r(709),s=r(2),a=r(225),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends i.a{getTemplate(){return this.templates.Editors.Wizards.WebServiceDataSource.Pages.configureAuthenticationParametersPageComponentTemplate}afterInit(){super.afterInit(),this.adjustGrid()}getPageModel(e){return this.Model=new n.a(this.provider,e),this.Model}validateParameterName(e){let t=!1;const r=e.values.name;if(r){this.Model.RequestParameters.some(e=>e.name===r)&&(e.preventDefault(!0),t=!0)}e.container.toggleClass("k-error",t)}adjustGrid(){this.grid=this.view.element.parent().find(".editor__grid-parameters[data-role='grid']").data("kendoGrid"),$.each(this.grid.columns,(e,t)=>{var r;switch(null===(r=t.field)||void 0===r?void 0:r.toLowerCase()){case"type":t.editor=this.typeEditor.bind(this)}}),this.grid.element.find(".k-grid-toolbar").on("click",".k-button",this.addParameter.bind(this)),this.grid.element.find(".k-grid-toolbar").insertAfter(this.grid.element.find("table[role='grid']"))}typeEditor(e,t){$("<input name='"+t.field+"'/>").appendTo(e).kendoDropDownList({dataSource:{data:this.Model.ParameterTypes},value:t.model.parameterType})}addParameter(){return event.preventDefault(),this.Model.RequestParameters.push(new a.a),!1}};l=o([Object(s.a)("web-service-configure-authentication-parameters-page")],l)},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(397);class n extends i.a{constructor(e,t,r){super(e,t,r)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e){this.Selectors=e}Match(e){let t=this.Selectors.length-1;if(!this.Selectors[t].Match(e))return!1;for(;--t>=0&&e;)do{e=e.Parent}while(e&&!this.Selectors[t].Match(e));return!!e}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(0),n=r(397);class s extends n.a{constructor(e,t){super(e,i.a.StyleName,t)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(102),n=r(1);class s extends i.a{}s.typeName=n.a.CalculatedField},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(1),n=r(0),s=r(276),a=r(386),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends s.a{constructor(e,t,r){super(e,t,r),this.dataColumns=[]}getWizardComponentClass(){return a.a}get Columns(){return this.dataColumns}createChildComponentsFromPropertyStore(){const e=Object.create(null,{createChildComponentsFromPropertyStore:{get:()=>super.createChildComponentsFromPropertyStore}});return o(this,void 0,void 0,(function*(){yield this.createDataColumns(),yield e.createChildComponentsFromPropertyStore.call(this)}))}createDataColumns(){return o(this,void 0,void 0,(function*(){return this.createCollectionPropertyComponents(n.a.Columns,this.dataColumns)}))}}l.typeName=i.a.CsvDataSource},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(102),n=r(1);class s extends i.a{}s.typeName=n.a.DataColumn},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(102),n=r(1);class s extends i.a{}s.typeName=n.a.ExternalStyleSheet},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(39),n=r(1);class s extends i.a{constructor(e,t,r){super(e,t,r)}get PropertyStore(){return super.PropertyStore}}s.typeName=n.a.GraphGroup},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(245),n=r(1);class s extends i.a{}s.typeName=n.a.GeoLocationMapGroup},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(245),n=r(1);class s extends i.a{}s.typeName=n.a.ShapeMapGroup},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(1),n=r(276),s=r(384);class a extends n.a{getWizardComponentClass(){return s.a}}a.typeName=i.a.JsonDataSource},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(1),n=r(133),s=r(389);class a extends n.a{CanLoadDataModel(){return!0}getWizardComponentClass(){return s.a}}a.typeName=i.a.ObjectDataSource},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(39),n=r(0),s=r(3),a=r(1),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends i.a{constructor(e,t,r){super(e,t,r),this.header=null,this.footer=null}get Header(){return this.header}set Header(e){this.header=e,e?this.headerProperty.SetValue(e.PropertyStore,this,this.PropertyStore):this.headerProperty.ResetValue(this,this.PropertyStore)}get Footer(){return this.footer}set Footer(e){this.footer=e,e?this.footerProperty.SetValue(e.PropertyStore,this,this.PropertyStore):this.footerProperty.ResetValue(this,this.PropertyStore)}createChildComponentsFromPropertyStore(){return o(this,void 0,void 0,(function*(){this.headerProperty=this.getProperty(n.a.GroupHeader),this.footerProperty=this.getProperty(n.a.GroupFooter);const e=this.Provider.getServiceByName(s.a.IDesignerHost),t=this.Parent,r=e.getServiceByName(s.a.IDesignSurfaceManager).ActiveDesignSurface;let i=null,o=null;const l=this.PropertyStore[n.a.GroupHeader],c=this.PropertyStore[n.a.GroupFooter];if(l)i=yield e.CreateComponent(a.a.GroupHeaderSection,l,t,!0),o=yield e.CreateComponent(a.a.GroupFooterSection,c,t,!0);else{if(i=yield r.createNewComponent(a.a.GroupHeaderSection,null,t),!i)throw new Error(`Could not create new '${a.a.GroupHeaderSection}'.`);if(o=yield r.createNewComponent(a.a.GroupFooterSection,null,t),!o)throw new Error(`Could not create new '${a.a.GroupFooterSection}'.`);t.removeItem(i.PropertyStore),t.removeItem(o.PropertyStore)}this.Header=i,this.Footer=o}))}deleteSections(){this.Header.delete(),this.Footer.delete(),this.Header=null,this.Footer=null}delete(){this.deleteSections();const e=this.Parent;super.deleteCollectionComponent(e.Groups,n.a.Groups)}}l.typeName=a.a.Group},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(0),n=r(133),s=r(1),a=r(374);class o extends n.a{get ConnectionString(){return this.getValueRaw(i.a.ConnectionString)}get ProviderName(){return this.getValueRaw(i.a.ProviderName)}get SelectCommand(){return this.getValueRaw(i.a.SelectCommand)}get CommandType(){return this.getValueRaw(i.a.CommandType)}get CommandTimeout(){return this.getValueRaw(i.a.CommandTimeout)}getWizardComponentClass(){return a.a}CanLoadDataModel(){return!!this.ConnectionString&&!!this.SelectCommand}}o.typeName=s.a.SqlDataSource},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(0),n=r(34),s=r(3),a=r(1);class o extends n.a{constructor(e,t,r){super(e,t,r,!1),this.Style=this.PropertyStore[i.a.Style],this.Selectors=this.PropertyStore[i.a.Selectors]}getPropertyValue(...e){return this.getPropertyValuesCore(e).InlineValue}canContain(e){return!1}delete(){const e=this.Parent,t=e.StyleSheet.indexOf(this);e.StyleSheet.splice(t,1);const r=e.PropertyStore[i.a.StyleSheet],n=r.indexOf(this.PropertyStore);r.splice(n,1),0===r.length&&delete e.PropertyStore[i.a.StyleSheet],this.Designer.Dispose(),e.clearStyleRulesCache();this.Provider.getServiceByName(s.a.IComponentChangeService).OnComponentRemoved(this)}}o.typeName=a.a.StyleRule},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(0),n=r(133),s=r(1),a=r(276),o=r(388);class l extends n.a{get Source(){return this.getValueRaw(i.a.Source)}get ServiceUrl(){return this.getValueRaw(i.a.ServiceUrl)}getWizardComponentClass(){return o.a}CanLoadDataModel(){return!!this.ServiceUrl||a.a.IsSourceValid(this.Source)}}l.typeName=s.a.WebServiceDataSource},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(1),n=r(0),s=r(246),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends s.a{constructor(e,t,r){super(e,t,r),this.Ranges=[],this.Ticks=[],this.Labels=[]}get Style(){return this.PropertyStore[n.a.Needle]}accept(e){e.VisitGauge(this)}createChildComponentsFromPropertyStore(){const e=Object.create(null,{createChildComponentsFromPropertyStore:{get:()=>super.createChildComponentsFromPropertyStore}});return a(this,void 0,void 0,(function*(){e.createChildComponentsFromPropertyStore.call(this),yield this.createRanges(),yield this.createTicks(),yield this.createLabels()}))}createRanges(){return a(this,void 0,void 0,(function*(){return this.createCollectionPropertyComponents(n.a.Ranges,this.Ranges)}))}createTicks(){return a(this,void 0,void 0,(function*(){return this.createCollectionPropertyComponents(n.a.Ticks,this.Ticks)}))}createLabels(){return a(this,void 0,void 0,(function*(){return this.createCollectionPropertyComponents(n.a.Labels,this.Labels)}))}}o.typeName=i.a.RadialGauge},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(1),n=r(0),s=r(246),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends s.a{constructor(e,t,r){super(e,t,r),this.Ranges=[],this.Ticks=[],this.Labels=[],this.Scales=[]}get Style(){return this.PropertyStore[n.a.Indicator]}accept(e){e.VisitGauge(this)}createChildComponentsFromPropertyStore(){const e=Object.create(null,{createChildComponentsFromPropertyStore:{get:()=>super.createChildComponentsFromPropertyStore}});return a(this,void 0,void 0,(function*(){e.createChildComponentsFromPropertyStore.call(this),yield this.createRanges(),yield this.createTicks(),yield this.createLabels(),yield this.createScales()}))}createRanges(){return a(this,void 0,void 0,(function*(){return this.createCollectionPropertyComponents(n.a.Ranges,this.Ranges)}))}createTicks(){return a(this,void 0,void 0,(function*(){return this.createCollectionPropertyComponents(n.a.Ticks,this.Ticks)}))}createLabels(){return a(this,void 0,void 0,(function*(){return this.createCollectionPropertyComponents(n.a.Labels,this.Labels)}))}createScales(){return a(this,void 0,void 0,(function*(){return this.createCollectionPropertyComponents(n.a.Scales,this.Scales)}))}}o.typeName=i.a.LinearGauge},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{OnClick(e,t){return!1}OnContextMenu(e,t){return!1}OnDoubleClick(e,t){return!1}OnFocus(e,t){return!1}OnFocusIn(e,t){return!1}OnFocusOut(e,t){return!1}OnBlur(e,t){return!1}OnHover(e,t){return!1}OnKeyPress(e,t){return!1}OnKeyDown(e,t){return!1}OnKeyUp(e,t){return!1}OnMouseDown(e,t){return!1}OnMouseEnter(e,t){return!1}OnMouseLeave(e,t){return!1}OnMouseMove(e,t){return!1}OnMouseOut(e,t){return!1}OnMouseOver(e,t){return!1}OnMouseUp(e,t){return!1}OnScroll(e,t){return!1}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(281),n=r(0),s=r(1);class a extends i.a{get DbType(){return this.getPropertyValue(n.a.DbType)}}a.typeName=s.a.SqlDataSourceParameter},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(281),n=r(0),s=r(1);class a extends i.a{get Type(){return this.getPropertyValue(n.a.Type)}}a.typeName=s.a.ObjectDataSourceParameter},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(281),n=r(1);class s extends i.a{}s.typeName=n.a.WebServiceParameter},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(0),n=r(92),s=r(1),a=r(200),o=r(4),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c extends n.a{constructor(e,t,r){super(e,t,r),this.Filters=new a.a(o.b.resolvePropertyStore(this.PropertyStore,i.a.Filters,()=>[]),this,r)}get ShouldSerializeFilters(){return this.Filters.Count>0}get Style(){return this.PropertyStore[i.a.Style]}get ShouldSerializeStyle(){return this.Style&&this.Style!={}}get StopIfTrue(){return this.PropertyStore[i.a.StopIfTrue]}createChildComponentsFromPropertyStore(){const e=Object.create(null,{createChildComponentsFromPropertyStore:{get:()=>super.createChildComponentsFromPropertyStore}});return l(this,void 0,void 0,(function*(){yield e.createChildComponentsFromPropertyStore.call(this),yield this.Filters.Initialize()}))}getType(){return s.a.FormattingRule}}c.typeName=s.a.FormattingRule},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(0),n=r(187),s=r(1);class a extends n.a{constructor(e,t,r,i=!0){super(e,t,r,i)}get PropertyStore(){return super.PropertyStore}GetDefaultAxis(e){switch(e){case i.a.RadialAxis:return this.DefaultAxisDimension1;case i.a.AngularAxis:return this.DefaultAxisDimension2;default:throw new Error(`Axis type "${e}" is not supported in a polar coordinate system.`)}}GetDimension1AxisName(){return this.PropertyStore.RadialAxis}GetDimension2AxisName(){return this.PropertyStore.AngularAxis}}a.typeName=s.a.PolarCoordinateSystem},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(0),n=r(187),s=r(1);class a extends n.a{constructor(e,t,r,i=!0){super(e,t,r,i)}get PropertyStore(){return super.PropertyStore}GetDefaultAxis(e){switch(e){case i.a.XAxis:return this.DefaultAxisDimension1;case i.a.YAxis:return this.DefaultAxisDimension2;default:throw new Error(`Axis type "${e}" is not supported in a cartesian coordinate system.`)}}GetDimension1AxisName(){return this.PropertyStore.XAxis}GetDimension2AxisName(){return this.PropertyStore.YAxis}}a.typeName=s.a.CartesianCoordinateSystem},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(34),n=r(0),s=r(1),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends i.a{constructor(e,t,r,i=!0){super(e,t,r,i),this.crossAxisPositions=[]}get PropertyStore(){return super.PropertyStore}get CrossAxisPositions(){return this.crossAxisPositions}createChildComponentsFromPropertyStore(){const e=Object.create(null,{createChildComponentsFromPropertyStore:{get:()=>super.createChildComponentsFromPropertyStore}});return a(this,void 0,void 0,(function*(){yield e.createChildComponentsFromPropertyStore.call(this),this.PropertyStore.Scale&&(yield this.createCollectionPropertyComponents(n.a.CrossAxisPositions,this.crossAxisPositions,this.PropertyStore.Scale))}))}}o.typeName=s.a.GraphAxis},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(407),n=r(1);class s extends i.a{constructor(e,t,r,i=!0){super(e,t,r,i)}get PropertyStore(){return super.PropertyStore}}s.typeName=n.a.LineSeries},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(407),n=r(1);class s extends i.a{constructor(e,t,r,i=!0){super(e,t,r,i)}get PropertyStore(){return super.PropertyStore}}s.typeName=n.a.AreaSeries},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(0),n=r(143),s=r(1),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends n.a{constructor(e,t,r,i=!0){super(e,t,r,i),this.labelConnectorFormattingRules=[]}get PropertyStore(){return super.PropertyStore}get DataPointLabelConnectorConditionalFormatting(){return this.labelConnectorFormattingRules}CreateConditionalFormattingProperties(){const e=Object.create(null,{CreateConditionalFormattingProperties:{get:()=>super.CreateConditionalFormattingProperties}});return a(this,void 0,void 0,(function*(){yield e.CreateConditionalFormattingProperties.call(this),yield this.createCollectionPropertyComponents(i.a.DataPointLabelConnectorConditionalFormatting,this.DataPointLabelConnectorConditionalFormatting)}))}}o.typeName=s.a.BarSeries},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(143),n=r(1);class s extends i.a{constructor(e,t,r,i=!0){super(e,t,r,i)}get PropertyStore(){return super.PropertyStore}}s.typeName=n.a.OhlcSeries},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(102),n=r(1);class s extends i.a{}s.typeName=n.a.MapLegend},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(142),n=r(1);class s extends i.a{}s.typeName=n.a.DateTimeScaleCrossAxisPosition},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(142),n=r(1);class s extends i.a{}s.typeName=n.a.NumericalScaleCrossAxisPosition},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(142),n=r(1);class s extends i.a{}s.typeName=n.a.LogarithmicScaleCrossAxisPosition},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(142),n=r(1);class s extends i.a{}s.typeName=n.a.CategoryScaleCrossAxisPosition},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(1),n=r(282);class s extends n.a{getType(){return i.a.CustomAction}}s.typeName=i.a.CustomAction},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(188),n=r(68);class s extends i.a{getType(){return n.a.DesignTimeReportSource}raiseComponentChanged(e,t,r){super.raiseComponentChanged(e,t,r),this.Parent&&this.Parent.raiseComponentChanged(e,t,r)}}s.typeName=n.a.DesignTimeReportSource},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(1),n=r(282);class s extends n.a{getType(){return i.a.RenderingSettings}}s.typeName=i.a.RenderingSettings},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(2),n=r(7),s=r(81),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends s.b{get isExpressionEditorAllowed(){return void 0===this.useExpressionEditor?super.isExpressionEditorAllowed:this.useExpressionEditor}set isExpressionEditorAllowed(e){this.useExpressionEditor=e}};o=a([Object(i.a)("xml-report-source-editor"),Object(n.b)("Telerik.WebReportDesinger.XmlReportSourceEditor")],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(1),n=r(34);class s extends n.a{}s.typeName=i.a.RadialGaugeRange},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(1),n=r(34);class s extends n.a{}s.typeName=i.a.RadialGaugeLabels},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(1),n=r(34);class s extends n.a{}s.typeName=i.a.RadialGaugeNeedle},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(1),n=r(34);class s extends n.a{}s.typeName=i.a.LinearGaugeRange},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(1),n=r(34);class s extends n.a{}s.typeName=i.a.LinearGaugeScale},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(1),n=r(34);class s extends n.a{}s.typeName=i.a.LinearGaugeLabels},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(1),n=r(34);class s extends n.a{}s.typeName=i.a.LinearGaugeIndicator},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(1),n=r(0),s=r(38),a=r(110),o=r(164),l=r(248);class c extends o.a{getChildEditorBuildersByPropertyWrappers(e){const t=[];for(const r of e)r.Name===n.a.Parameters?t.push({builder:s.a.findEditorBuilder(a.a),propertyWrapper:r}):r.Name===i.a.Uri?t.push({builder:s.a.findEditorBuilder(l.a),propertyWrapper:r}):t.push({builder:this.schemaService.getEditorType(r.EditorType,r.Type),propertyWrapper:r});return t}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return a}));var i=r(427),n=r(0);class s{constructor(e){this.provider=e,this.childResolverMapService=this.provider.getService(i.a)}getChildEditors(e){const t=e.propertyWrapper;return this.childResolverMapService.getChildEditorResolver(e.type,t).getEditorBuilders().map(e=>({type:e.builder.editorType,propertyWrapper:e.propertyWrapper}))}}class a extends s{getChildEditors(e){return super.getChildEditors(e).filter(e=>!Array.isArray(e.propertyWrapper)&&e.propertyWrapper.Name===n.a.Default)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(3);class n{static register(e,t){const r=e.getServiceByName(i.a.IDesignSurfaceManager);t.PromptOnDiscardingModifiedReport&&n.registerOnBeforeUnload(r)}static unregister(e){e.PromptOnDiscardingModifiedReport&&n.unregisterOnBeforeUnload()}static registerOnBeforeUnload(e){n.boundOnBeforeUnload=t=>n.onBeforeUnload(e,t),window.addEventListener(n.beforeUnloadEventName,n.boundOnBeforeUnload)}static unregisterOnBeforeUnload(){window.removeEventListener(n.beforeUnloadEventName,n.boundOnBeforeUnload)}static onBeforeUnload(e,t){if(e.GetLoadedDocuments.some(e=>e.IsModified)){const e="Any unsaved changes will be lost!";return t.preventDefault(),t.returnValue=e,e}delete t.returnValue}}n.beforeUnloadEventName="beforeunload"},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{load(e){return t=>new Promise((r,i)=>{const n=document.createElement(e);let s="body";switch(n.onload=()=>{r(t)},n.onerror=()=>{i(t)},e){case"script":const e=n,r="src";e.async=!0,e[r]=t;break;case"link":s="head";const i=n,a="href";i.type="text/css",i.rel="stylesheet",i[a]=t}document[s].appendChild(n)})}get Css(){return this.load("link")}get Script(){return this.load("script")}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return X}));var i=r(6),n=r(3),s=r(539),a=r(746),o=r(93),l=r(12),c=r(747),d=r(265),u=r(105),h=r(208),p=r(104),m=r(758),g=r(239),f=r(761),v=r(764),y=r(765),S=r(766),C=r(325),b=r(839),w=r(840),P=r(154),D=r(841),x=r(204),R=r(24),T=r(8),I=r(13),E=r(207),N=r(152),M=r(358),O=r(844),k=r(845),G=r(846),B=r(359),F=r(847),A=r(848),V=r(849),L=r(850),_=r(854),W=r(869),j=r(348),z=r(427),$=r(264),H=r(457),U=r(878),q=r(879),J=r(274),Q=r(881),K=r(882);class X{constructor(e,t,r,i,R,M,O,k,G){this.webDesignerOptions=e,this.serviceContainer=new C.a,this.reportDesignerApiUrl=e.ServiceUrl,this.serviceContainer.AddService(new T.a),this.serviceContainer.AddService(G),this.serviceContainer.AddService(t),this.serviceContainer.AddService(new l.a(r,this)),this.serviceContainer.AddNamedService(n.a.IEditorNameResolverService,new L.a),this.serviceContainer.AddNamedService(n.a.WebDesignerEventsElement,r[0]),this.serviceContainer.AddService(new I.c(this.serviceContainer.getServiceByName(n.a.WebDesignerEventsElement))),this.serviceContainer.AddService(new o.a(r)),this.serviceContainer.AddService(e),this.serviceContainer.AddNamedService(n.a.ReportStorageService,H.a.create(this,this.reportDesignerApiUrl)),this.serviceContainer.AddNamedService(n.a.ResourceStorageService,H.b.create(this,this.reportDesignerApiUrl)),this.serviceContainer.AddNamedService(n.a.SharedDataSourceStorageService,H.c.create(this,this.reportDesignerApiUrl)),this.serviceContainer.AddService(new E.a(this,this.reportDesignerApiUrl)),this.serviceContainer.AddService(new N.a(this)),this.serviceContainer.AddService($.b.create(this));const B=new S.a(this,this.reportDesignerApiUrl);this.serviceContainer.AddNamedService(n.a.ISchemaService,B),this.serviceContainer.AddNamedService(n.a.IRenderService,new y.a(this,this.reportDesignerApiUrl)),this.serviceContainer.AddNamedService(n.a.ISqlDataConnectionService,new w.a(e)),this.serviceContainer.AddService(new x.a(this)),this.serviceContainer.AddService(new P.a(this)),this.serviceContainer.AddService(new b.a(this)),this.serviceContainer.AddService(k),this.designSurfaceManager=new s.a(this,M),this.serviceContainer.AddNamedService(n.a.IDesignSurfaceManager,this.designSurfaceManager),this.serviceContainer.AddService(new u.a(R,this)),this.serviceContainer.AddService(new c.a(R,this)),this.serviceContainer.AddService(new h.a(i,this)),this.serviceContainer.AddService(new z.a(this)),this.serviceContainer.AddNamedService(n.a.IChildEditorResolverMapService,new _.a(this)),this.addSearchServices(),this.documentId=this.getDocumentId(),this.serviceContainer.AddService(new p.a(r,this,this.documentId)),this.serviceContainer.AddService(new d.a(O,this.reportDesignerApiUrl,e.KeepClientAlive,e.ReportViewerUserOptions)),this.serviceContainer.AddNamedService(n.a.IComponentChangeService,new f.a(this)),this.serviceContainer.AddNamedService(n.a.ITypeDescriptorRepository,new D.a(this)),this.serviceContainer.AddService(new g.a(this)),this.serviceContainer.AddNamedService(n.a.IInstanceFactoryService,new v.a(this)),this.serviceContainer.AddNamedService(n.a.IPropertyDescriptorWrapperFactory,new m.a),this.serviceContainer.AddNamedService(n.a.KeyCommandMapperProvider,new q.a(this)),new a.a(this),B.preloadCommonTypeSchemas().then(()=>this.openReports())}addSearchServices(){const e=new k.a,t=new G.a;this.serviceContainer.AddService(new M.a([new O.a(this,e,t),new K.a(this,e,t),new A.a(this,e,t),new W.a(this,e,t,new U.a)])),this.serviceContainer.AddService(new B.a([new F.a(this),new V.a(this),new j.d(this),new j.a(this),new j.c(this),new j.b(this),new Q.a(this)]))}getService(e){return this.designSurfaceManager&&this.designSurfaceManager.ActiveDesignSurface?this.designSurfaceManager.ActiveDesignSurface.getService(e):this.serviceContainer.getService(e)}getServiceByName(e){return this.designSurfaceManager&&this.designSurfaceManager.ActiveDesignSurface?this.designSurfaceManager.ActiveDesignSurface.getServiceByName(e):this.serviceContainer.getServiceByName(e)}Dispose(){this.disposing||(this.disposing=!0,this.serviceContainer.Dispose(),this.disposing=!1)}openReports(){this.webDesignerOptions.Preferences.RestoreReports&&!this.webDesignerOptions.ReportServerLayout&&this.restoreReports();new R.a(i.a.DocumentOpen,this).executeAsync({DocumentId:this.documentId,CheckPermission:!1}).then(()=>setTimeout(()=>new J.a(this).execute(),500))}restoreReports(){this.webDesignerOptions.PreviouslyOpenedReports.ReportIds.forEach(e=>{e!==this.documentId&&new R.a(i.a.DocumentOpenUnloaded,this).execute(e)})}getDocumentId(){const e=this.webDesignerOptions.PreviouslyOpenedReports;return this.webDesignerOptions.Preferences.RestoreReports&&e.LastOpenedReportId&&!this.webDesignerOptions.ReportServerLayout?e.LastOpenedReportId:this.webDesignerOptions.Report}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return he}));var i=r(540),n=r(579),s=r(585),a=r(588),o=r(589),l=r(590),c=r(591),d=r(592),u=r(341),h=r(593),p=r(624),m=r(625),g=r(637),f=r(651),v=r(671),y=r(672),S=r(673),C=r(674),b=r(675),w=r(343),P=r(676),D=r(677),x=r(678),R=r(486),T=r(680),I=r(681),E=r(682),N=r(683),M=r(684),O=r(103),k=r(12),G=r(104),B=r(685),F=r(686),A=r(691),V=r(703),L=r(714),_=r(13),W=r(64),j=r(723),z=r(724),H=r(725),U=r(728),q=r(730),J=r(732),Q=r(734),K=r(24),X=r(6),Y=r(735),Z=r(736),ee=r(737),te=r(738),re=r(740),ie=r(264),ne=r(741),se=r(154),ae=r(274),oe=r(743),le=r(744),ce=r(36),de=r(27),ue=r(8);class he{constructor(e,t){this.provider=e,this.$placeholder=t,this.registerCommands(),this.designSurfaceCollection=[],this.activeDesignSurface=null,this.webDesignerEventEmitter=this.provider.getService(_.c),this.activeDesignSurfaceChanging=new W.b,this.activeDesignSurfaceChanged=new W.a,this.reportOptionsService=this.provider.getService(ie.a)}get ActiveDesignSurface(){return this.activeDesignSurface}get GetLoadedDocuments(){const e=[];return $.each(this.designSurfaceCollection,(t,r)=>{e.push(new B.a(r.documentId,r.IsModified))}),e}get Provider(){return this.provider}registerCommands(){const e=this.provider.getService(se.a);e.registerCommand(new a.a(this.provider)),e.registerCommand(new v.a(this.provider)),e.registerCommand(new Q.a(this.provider)),e.registerCommand(new n.a(this.provider)),e.registerCommand(new j.a(this.provider)),e.registerCommand(new z.a(this.provider)),e.registerCommand(new x.a(this.provider)),e.registerCommand(new D.a(this.provider)),e.registerCommand(new C.a(this.provider)),e.registerCommand(new P.a(this.provider)),e.registerCommand(new S.a(this.provider)),e.registerCommand(new c.a(this.provider)),e.registerCommand(new p.a(this.provider)),e.registerCommand(new g.a(this.provider)),e.registerCommand(new h.a(this.provider)),e.registerCommand(new m.a(this.provider)),e.registerCommand(new F.a(this.provider)),e.registerCommand(new A.a(this.provider)),e.registerCommand(new V.a(this.provider)),e.registerCommand(new L.a(this.provider)),e.registerCommand(new f.a(this.provider)),e.registerCommand(new N.a(this.provider)),e.registerCommand(new o.a(this.provider)),e.registerCommand(new s.a(this.provider)),e.registerCommand(new y.a(this.provider)),e.registerCommand(new l.a(this.provider)),e.registerCommand(new T.a(this.provider)),e.registerCommand(new R.a(this.provider)),e.registerCommand(new R.b(this.provider)),e.registerCommand(new u.d(this.provider)),e.registerCommand(new u.a(this.provider)),e.registerCommand(new u.b(this.provider)),e.registerCommand(new u.c(this.provider)),e.registerCommand(new w.c(this.provider)),e.registerCommand(new w.d(this.provider)),e.registerCommand(new w.a(this.provider)),e.registerCommand(new w.b(this.provider)),e.registerCommand(new i.a(this.provider)),e.registerCommand(new I.a(this.provider)),e.registerCommand(new E.a(this.provider)),e.registerCommand(new b.a(this.provider)),e.registerCommand(new Y.a(this.provider)),e.registerCommand(new Z.a(this.provider)),e.registerCommand(new ee.a(this.provider)),e.registerCommand(new d.a(this.provider)),e.registerCommand(new H.a(this.provider)),e.registerCommand(new U.a(this.provider)),e.registerCommand(new q.a(this.provider)),e.registerCommand(new J.a(this.provider)),e.registerCommand(new oe.a(this.provider)),e.registerCommand(new te.a(this.provider)),e.registerCommand(new re.a(this.provider)),e.registerCommand(new le.a(this.provider)),e.registerCommand(new ne.a(this.provider)),e.registerCommand(new ae.a(this.provider))}createDesignSurface(e,t){let r=this.findDesignSurface(e);return r?null:(this.hideVisibleDesignSurface(),r=new O.a(this.provider,this.$placeholder,e,t),this.designSurfaceCollection.push(r),this.setActiveDesignSurface(r),this.webDesignerEventEmitter.on(W.c,e=>{this.onReportModifiedStateChanged(e.detail.documentId,e.detail.isModified)}),r)}getDesignSurface(e){return this.findDesignSurface(e)}deleteDesignSurface(e="",t=!0){this.deleteDesignSurfaceInternal(e,t)}deleteAllDesignSurfacesExceptCurrent(){this.GetLoadedDocuments.forEach(e=>{e.DocumentId!==this.activeDesignSurface.documentId&&this.deleteDesignSurfaceInternal(e.DocumentId,!1)})}deleteAllDesignSurfaces(){this.GetLoadedDocuments.forEach(e=>this.deleteDesignSurfaceInternal(e.DocumentId,!1)),this.GetLoadedDocuments.length&&new K.a(X.a.DocumentOpen,this.provider).execute({DocumentId:this.GetLoadedDocuments[0].DocumentId,CheckPermission:!1})}Dispose(){this.GetLoadedDocuments.forEach(e=>this.disposeDesignSurface(e.DocumentId))}disposeDesignSurface(e){var t;null===(t=this.findDesignSurface(e))||void 0===t||t.Dispose()}deleteDesignSurfaceInternal(e,t){const r=this.findDesignSurface(e)||this.ActiveDesignSurface;if(!r)return;if(r.IsModified){const e=this.provider.getService(ue.a);if(!r.IsSharedDataSourceSurface||!this.Provider.getService(ce.a).ReportServerLayout){return void this.provider.getService(k.a).warning(de.a.String(e.CannotCloseDocumentHasUnsavedChanges,{documentId:r.documentId}))}if(!window.confirm(de.a.String(e.ClosingWillResultInLoss,{documentId:r.documentId})))return}r.delete();const i=this.designSurfaceCollection.indexOf(r);if(this.designSurfaceCollection.splice(i,1),this.designSurfaceCollection.length>0){let e;e=i<this.designSurfaceCollection.length-1?this.designSurfaceCollection[i].documentId:this.designSurfaceCollection[this.designSurfaceCollection.length-1].documentId,t&&new K.a(X.a.DocumentOpen,this.provider).execute({DocumentId:e,CheckPermission:!1})}else this.activeDesignSurface.selectionService.SetSelectedComponents([]),this.webDesignerEventEmitter.emit(this.activeDesignSurfaceChanging),this.activeDesignSurface=null,this.webDesignerEventEmitter.emit(this.activeDesignSurfaceChanged);this.reportOptionsService.onReportClosed(r.documentId),this.webDesignerEventEmitter.off(W.c,e=>{this.onReportModifiedStateChanged(e.detail.documentId,e.detail.isModified)})}switchDesignSurface(e){if(e&&e!==this.ActiveDesignSurface.documentId){this.webDesignerEventEmitter.emit(this.activeDesignSurfaceChanging),this.hideVisibleDesignSurface();const t=this.findDesignSurface(e);this.setActiveDesignSurface(t)}}hideVisibleDesignSurface(){const e=this.ActiveDesignSurface;e&&e.hide()}findDesignSurface(e){return this.designSurfaceCollection.find(t=>t.documentId===e)}setActiveDesignSurface(e){this.componentValidator&&this.componentValidator.Dispose(),this.activeDesignSurface=e,e.show(),this.webDesignerEventEmitter.emit(this.activeDesignSurfaceChanged),window.TelerikWebReportDesignerDebugMode&&(this.componentValidator=new M.a(this.provider,{listenForComponentChanged:!0}))}onReportModifiedStateChanged(e,t){this.provider.getService(G.a).Update()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(6),n=r(349);class s extends n.a{constructor(e){super(e,i.a.BringToFront,!0)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e){this.Left=e,this.Right=e,this.Top=e,this.Bottom=e}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(19);class n extends i.a{constructor(){super(...arguments),this.Report="Report",this.CombinedReport="Combined Report",this.SharedDataSource="Shared Data Source",this.ToolboxAreaTitle="Components",this.PropertiesTitle="Properties",this.PropertiesCategorized="Categorized",this.PropertiesAlphabetical="Alphabetical",this.ExplorerTitle="Explorer",this.CollapseToolbar="Collapse toolbar",this.MainMenu="Menu",this.More="more",this.Error="Error",this.Warning="Warning",this.Close="Close",this.SearchTitle="Search through the different options.",this.SearchAction="Press enter to filter the available options.",this.GeneratingPreview="GENERATING PREVIEW...",this.CreateNewReport="Create a Report",this.CreateNewCombinedReport="Create a Combined Report",this.ComponetsItemsList="List layout",this.ComponetsItemsGrid="Grid layout",this.NewReporFileName="File Name",this.NewReporFileType="Save as type",this.OverlapingMessage="Item '{firstItem}' overlaps '{secondItem}'.\nOverlapping items may not appear as expected in some export formats.",this.InvalidPasteOfMultipleItemsInTableMessage="Pasting multiple items is not supported for a Table item. Paste a single item instead.",this.CannotFindValidPasteContainerMessage="Cannot find a valid target container for the pasted items.",this.ReportItemsGroupTitle="Report Items",this.TablesGroupTitle="Tables",this.Panel="Panel",this.TextBox="TextBox",this.HtmlTextBox="HtmlTextBox",this.PictureBox="PictureBox",this.Barcode="Barcode",this.Shape="Shape",this.CheckBox="CheckBox",this.Table="Table",this.TableGroup="Table Group",this.TableWizard="Table Wizard",this.Crosstab="Crosstab",this.CrosstabWizard="Crosstab Wizard",this.RadialGaugeWizard="Radial Gauge Wizard",this.LinearGaugeWizard="Linear Gauge Wizard",this.List="List",this.ReportsGroupTitle="Report",this.SubReport="SubReport",this.MapsGroupTitle="Maps",this.Map="Map",this.Choropleth="Choropleth",this.ChartsGroupTitle="Charts",this.Graph="Graph",this.BarGraphWizard="Bar",this.LineGraphWizard="Line",this.PieGraphWizard="Pie",this.AreaGraphWizard="Area",this.ColumnGraphWizard="Column",this.SectionsGroupTitle="Report Sections",this.PageHeaderSection="Page Header",this.PageFooterSection="Page Footer",this.ReportHeaderSection="Report Header",this.ReportFooterSection="Report Footer",this.TocSection="Table of Contents",this.DataSourcesGroupTitle="Data Sources",this.SqlDataSource="SQL Data Source",this.CsvDataSource="CSV Data Source",this.WebServiceDataSource="Web Service Data Source",this.JsonDataSource="JSON Data Source",this.ObjectDataSource="Object Data Source",this.AppearanceCategory="Appearance",this.BehaviorCategory="Behavior",this.DataCategory="Data",this.GeneralCategory="General",this.InteractivityCategory="Interactivity",this.LayoutCategory="Layout",this.SettingsCategory="Settings",this.ReportSourceCategory="Report source",this.RedoButton="Redo",this.UndoButton="Undo",this.PreviewButton="Preview",this.OpenButton="Open",this.OpenRecentButton="Open Recent...",this.ClearRecentDocuments="Clear Recent Documents",this.CloseButton="Close",this.CloseAllButThisButton="Close All But This",this.CloseAllButton="Close All",this.NewButton="New",this.NewReportButton="New Report",this.NewCombinedReportButton="New Combined Report",this.CreateButton="Create",this.SaveButton="Save",this.SaveAsButton="Save As...",this.PublishButton="Publish",this.RevertButton="Revert",this.CancelButton="Cancel",this.CutButton="Cut",this.CopyButton="Copy",this.PasteButton="Paste",this.DeleteButton="Delete",this.BringToFrontButton="Bring To Front",this.SendToBackButton="Send To Back",this.FinishButton="Finish",this.NextButton="Next",this.BackButton="Back",this.CopyStyleButton="Copy Style",this.PasteStyleButton="Paste Style",this.ResetStyleButton="Reset Style",this.NewSharedDataSourceButton=`${this.NewButton} ${this.SharedDataSource}`,this.CreateSharedDataSourceTitle=`${this.CreateButton} ${this.SharedDataSource}`,this.SaveSharedDataSourceAsTitle=`Save ${this.SharedDataSource} As`,this.SaveAsSharedDataSource="Save As "+this.SharedDataSource,this.AddExistingSharedDataSource="Add Existing "+this.SharedDataSource,this.SaveAndOpenButton="Save And Open",this.OpenLocalizedReportConfirmationMessage="This report is localized and cannot be edited using the Web Report Designer. You can only save the report without the localization data using 'Save As'. Continue?",this.OpenLocalizedReportConfirmationMessageOnReportServer="This report is localized and cannot be edited using the Web Report Designer. Editing localized reports is currently supported only in the Desktop Report Designer. If you continue, the Web Report Designer won't be able to save your changes. Continue?",this.MainMenuNewShortcut="Ctrl+Alt+N",this.MainMenuOpenShortcut="Ctrl+O",this.MainMenuSaveShortcut="Ctrl+S",this.MainMenuSaveAsShortcut="Ctrl+Shift+S",this.MainMenuCloseShortcut="Ctrl+Alt+W",this.DesignButton="Design",this.Workspace="Workspace Preferences",this.NoRecentDocuments="No recent documents",this.InlineDataSources="Inline Data Sources",this.SharedDataSources="Shared Data Sources",this.Groups="Groups",this.Parameters="Parameters",this.Styles="Styles",this.CrossSectionItems="CrossSectionItems",this.CrossSectionItem="CrossSectionItem",this.RowGroups="Row Groups",this.ColumnGroups="Column Groups",this.Search="Search",this.Body="Body",this.Corner="Corner",this.PreferencesHeader="Preferences",this.RulersGroupHeader="Ruler and Grid",this.RulerTitle="Show ruler (dimensions)",this.GridTitle="Show grid",this.SnappingGroupHeader="Snapping",this.SnappToGridLineTitle="Snap to grid lines",this.SnappToSnapLineTitle="Snap to snap lines",this.GeneralPreferencesHeader="General",this.RestoreReports="Preserve open reports on exit",this.MiscGroupHeader="Misc",this.Watermark="Watermark",this.Pan="Pan",this.LoadMore="Load More",this.Remove="Remove",this.AddImage="Add Image",this.ShowProperties="Show Properties",this.AddItem="Add New Item",this.EditItem="Edit Item",this.RemoveItem="Remove This Item",this.Edit="Edit",this.Configure="Configure",this.OpenForEditing="Open for Editing",this.Replace="Replace",this.Edited="&nbsp;-&nbsp;Edited",this.ChooseAnOption="Choose an option...",this.NoneSelected="(none)",this.SelectOrTypeToggleTarget="Select or type toggle target",this.SelectOrTypeSortingTarget="Select or type sorting target",this.ToggleTargets="Toggle targets",this.SortingTargets="Sorting targets",this.EmptyCollectionEditor="No items added.",this.SelectItem="Select {item}",this.AssetManager="Assets Manager",this.Upload="Upload",this.UploadToFolder="Upload To Folder",this.Download="Download",this.SortDirection="Sort direction",this.SortDirectionAsc="Sort Direction Ascending",this.SortDirectionDesc="Sort Direction Descending",this.SortBy="Sort By",this.DateModified="Date Modified",this.DateCreated="Date Created",this.ListView="List View",this.GridView="Grid View",this.ViewDetails="View Details",this.ViewDetailsChecked="On",this.ViewDetalisUnchecked="Off",this.NoFileSelected="No file selected",this.Extension="Extension",this.Rename="Rename",this.NewFolder="New Folder",this.CreateNewFolder="Create New Folder",this.CopyPath="Copy path",this.Browse="Browse",this.Items="items",this.RemoveFromRecent="Remove from recent",this.NewFolderWindowTitle="Create New Folder in",this.BrowseForFolderWindowTitle="Browse For Folder",this.UploadFilesTo="Upload files to",this.CloseUpload="Close upload",this.ClearSelectedFile="Clear file",this.DropFilesHere="Drop file here to upload",this.UploadingStatus="Uploading...",this.UploadedStatus="Upload finished",this.UploadFailed="Upload failed",this.UploadSuccess="Upload succeeded",this.UploadFail="Upload failed",this.InvalidFileExtension="Invalid file extension",this.InvalidFiles="Invalid files",this.Retry="Retry",this.SelectFile="Select file...",this.DragAndDropFilesHere="Drag & drop files here",this.Or="or",this.Background="Background",this.Borders="Borders",this.Alignment="Alignment",this.BackgroundImage="Background image",this.BackgroundColor="Background color",this.BeginColor="Begin color",this.EndColor="End color",this.MimeType="MIME type",this.ImageAlignment="Image alignment",this.Repeat="Repeat",this.Border="Border",this.Line="Line",this.Font="Font",this.FontStyle="Font style",this.Bold="Bold",this.Italic="Italic",this.Strikeout="Strikeout",this.Underline="Underline",this.Padding="Padding",this.Color="Color",this.Style="Style",this.TitleStyle="Title style",this.Opacity="Opacity",this.ToolTip="Tooltip",this.Visible="Visible",this.PageNumberingStyle="Page numbering style",this.PageSettings="Page settings",this.DocumentName="Document name",this.UnitOfMeasure="Unit of measure",this.Parent="Parent",this.Action="Action",this.BookmarkId="Bookmark ID",this.DocumentMapText="Document map text",this.TocText="ToC text",this.Name="Name",this.Bindings="Bindings",this.DataSource="Data source",this.DataSourceReference="Data Source Reference",this.DataSourceReadOnlySuffix=" (readonly)",this.DataSourceUnsupportedWarning=" is initialized as readonly component.",this.Groupings="Groupings",this.Sortings="Sortings",this.Filters="Filters",this.ReportParameters="Report parameters",this.AccessibleDescription="Accessible description",this.AccessibleRole="Accessible role",this.ConditionalFormatting="Conditional formatting",this.ExternalStyleSheets="External style sheets",this.StyleName="Style name",this.StyleSheet="Style sheet",this.CanShrink="Can shrink",this.KeepTogether="Keep together",this.Anchoring="Anchoring",this.Docking="Docking",this.Location="Location",this.PrintOnFirstPage="Print on first page",this.PrintOnLastPage="Print on last page",this.TextWrap="Text wrap",this.Multiline="Multiline",this.CanGrow="Can grow",this.Angle="Angle",this.Format="Format",this.Value="Value",this.Width="Width",this.Top="Top",this.Left="Left",this.Center="Center",this.Middle="Middle",this.Justify="Justify",this.Height="Height",this.Size="Size",this.Sizing="Sizing",this.Bottom="Bottom",this.Default="Default",this.Right="Right",this.LineWidth="Line width",this.LineStyle="Line style",this.TextAlign="Text align",this.VerticalAlign="Vertical align",this.Text="Text",this.Title="Title",this.ColumnCount="Column count",this.ColumnSpacing="Column spacing",this.ContinuousPaper="Continuous paper",this.Landscape="Landscape",this.Margins="Margins",this.PaperKind="Paper kind",this.PaperSize="Paper size",this.Watermarks="Watermarks",this.Selectors="Selectors",this.Count="Count",this.Item="Item",this.Expression="Expression",this.Path="Path",this.Kind="Kind",this.GroupKeepTogether="Group keep together",this.AllowBlank="Allow blank",this.AllowNull="Allow null",this.AutoRefresh="Auto-refresh",this.AvailableValues="Available values",this.Mergeable="Mergeable",this.MultiValue="Multi-value",this.Type="Type",this.DisplayMember="Display member",this.ValueMember="Value member",this.TrueValue="True value",this.FalseValue="False value",this.IndeterminateValue="Indeterminate value",this.CheckedImage="Checked image",this.UncheckedImage="Unchecked image",this.IndeterminateImage="Indeterminate image",this.CheckAlign="Check align",this.CalculatedFields="Calculated fields",this.Columns="Columns",this.CommentToken="Comment token",this.ConsecutiveFieldSeparatorsAsOne="Consecutive field separators as one",this.ConsecutiveRecordSeparatorsAsOne="Consecutive record separators as one",this.DateTimeFormat="DateTime format",this.DecimalSeparator="Decimal separator",this.EscapeFormat="Escape format",this.FieldSeparators="Field separators",this.HasHeaders="Has headers",this.Quote="Quote",this.RecordSeparators="Record separators",this.Source="Source",this.ThousandSeparator="Thousand separator",this.CommandTimeout="Command timeout",this.ConnectionString="Connection string",this.ProviderName="Provider name",this.SelectCommand="Select command",this.SelectCommandType="Select command type",this.Authentication="Authentication",this.DataEncoding="Data encoding",this.DataFormat="Data format",this.DataSelector="Data selector",this.IgnoreResponseErrors="Ignore response errors",this.Method="Method",this.ServiceUrl="Service URL",this.ExternalFile="External file",this.InlineData="Inline data",this.Data="Data",this.Password="Password",this.Username="Username",this.LoginMethod="Login method",this.LoginUrl="Login URL",this.LogoutMethod="Logout method",this.LogoutUrl="Logout URL",this.ResponseFormat="Response format",this.TokenPath="Token path",this.Image="Image",this.EmbeddedImage="Embedded image",this.FileFromAssets="File from assets",this.CategoryGroups="Category groups",this.SeriesGroups="Series groups",this.ColorPalette="Color palette",this.GradientPalette="Gradient palette",this.MonochromaticPalette="Monochromatic palette",this.CoordinateSystems="Coordinate systems",this.Legend="Legend",this.Legends="Legends",this.NoDataMessage="No data message",this.NoDataStyle="No data style",this.PlotAreaStyle="Plot area style",this.Series="Series",this.Titles="Titles",this.Fields="Fields",this.GeoLocationGroups="Geolocation groups",this.Extent="Extent",this.LocationProvider="Location provider",this.TileProvider="Tile provider",this.Meridians="Meridians",this.Parallels="Parallels",this.Projection="Projection",this.ScaleLegend="Scale legend",this.ToggleVisibilityAction="Toggle visibility",this.NavigateToBookmarkAction="Navigate to bookmark",this.NavigateToUrlAction="Navigate to URL",this.NavigateToReportAction="Navigate to report",this.CustomAction="Custom action",this.SortingAction="Sorting",this.DisplayExpandedMark="Toggle mark initially expanded",this.SaveReportAs="Save Report As",this.ValueType="value type",this.DateOnly="Date only",this.DateTime="DateTime",this.SkipBlankPages="Skip blank pages",this.PageBreak="Page break",this.PrintAtBottom="Print at bottom",this.PrintOnEveryPage="Print on every page",this.ReportSource="Report source",this.ReportSources="Report sources",this.TocPosition="ToC position",this.TocReportSource="ToC report source",this.RequestTimeout="Request timeout",this.DataMember="Data member",this.ColumnHeadersPrintOnEveryPage="Column headers print on every page",this.RowHeadersPrintOnEveryPage="Row headers print on every page",this.FreezeColumnHeaders="Freeze column headers",this.FreezeRowHeaders="Freeze row headers",this.ShapeType="Shape type",this.StartAngle="Start angle",this.BarAlign="Bar align",this.Checksum="Checksum",this.ShowText="Show text",this.ApplicationIndicator="Application indicator",this.SymbolSize="Symbol size",this.TextEncoding="Text encoding",this.ErrorCorrectionLevel="Error correction level",this.QuietZone="Quiet zone",this.ValidateBillData="Validate bill data",this.ValueFromBillData="Value from bill data",this.BillData="Bill data",this.IBANType="IBAN type",this.AdditionalInfo="Additional info",this.AlternativeProcedure1="Alternative procedure 1",this.AlternativeProcedure2="Alternative procedure 2",this.Amount="Amount",this.Currency="Currency",this.Reference="Reference",this.ReferenceType="Reference type",this.StructuredBillInfo="Structured bill info",this.City="City",this.Country="Country",this.HouseNumber="House number",this.PostalCode="Postal code",this.Street="Street",this.IsInsidePlotArea="Is inside plot area",this.LatitudeMax="Latitude max",this.LatitudeMin="Latitude min",this.LongitudeMax="Longitude max",this.LongitudeMin="Longitude min",this.ItemStyle="Item style",this.ScaleUnits="Scale units",this.LogoUrl="Logo URL",this.UrlSubdomains="URL subdomains",this.UrlTemplate="URL template",this.UserAgent="User agent",this.RuntimeSettings="Runtime settings",this.TitleStyleName="Title style name",this.LeaderSymbol="Leader symbol",this.ReportEngineSettings="Report engine settings",this.CacheDefinitionProperties="Cache definition properties",this.Description="Description",this.Thickness="Thickness",this.PointRadius="Point radius",this.Length="Length",this.BackLength="Back length",this.SweepAngle="Sweep angle",this.FirstVisibleValue="First visible value",this.LastVisibleValue="Last visible value",this.Start="Start",this.End="End",this.InnerRadius="Inner radius",this.OuterRadius="Outer radius",this.FirstVisibleIndex="First visible index",this.LastVisibleIndex="Last visible index",this.RenderingType="Rendering type",this.SegmentCount="Segment count",this.StartWidth="Start width",this.EndWidth="End width",this.TickType="Tick type",this.QuitWizardDialogueTitle="Quit data wizard",this.QuitWizardDialogueConfirmationMessage="Are you sure you want to quit data source configuration ?",this.QuitWizardButton="Quit wizard",this.CancelQuitWizardButton="Cancel",this.SQLDataConnectionHeader="Choose data connection",this.SQLExistingDataConnection="Select from existing data connections",this.SQLNewDataConnection="Build new data connections",this.SQLDataProvider="Data Provider",this.SQLConnectionString="Connection String",this.TestSqlConnection="Test connection",this.ConnectionError="Connection unsuccessful. Check the connection string and try again.",this.ConnectionSuccess="Connection successful.",this.SQLDataSourceSaveConnectionHeader="Data connection options",this.SQLDataSourceSharedConnection="Use as shared connection",this.SQLDataSourceConnectionAlias="Alias:",this.SqlDataSourceSaveConnectionPageNoCreatePermissions="Can not save data connections on the server.",this.SqlDataSourceSaveConnectionPageNoEmbeddedConnections="Embedded data connections are not supported.",this.SqlDataSourceSaveConnectionPageSaveOnServer="The data connection will be saved on the server and will be available for all server reports.",this.SqlDataSourceSaveConnectionPageExist="The data connection is shared and will not be saved.",this.SQLDataEmbeddedConnection="Embedded in the report definition",this.SQLDataEmbeddedConnectionInfo="The data connection will be available for the current report only.",this.SqlDataSourceSharedConnectionError="Please specify a connection name.",this.SQLDataCommandHeader="Configure data source command",this.SQLDataCommandSubHeader="Specify a select statement or a stored procedure to retrieve data from the data source.",this.SQLDataCommandSelectStatement="Select statement",this.SQLDataCommandStoredProcedure="Stored procedure",this.SqlDataCommandSelectStatementValidation="The select statement is not a valid query.",this.SqlDataCommandStoredProcedureValidation="Please select a stored procedure.",this.SQLDataParametersHeader="Configure data source parameters",this.SQLDataParametersSubHeader="Specify a database type and a default value or an expression to evaluate for each data source parameter.",this.SQLDataParameterName="Name",this.SQLDataParameterValue="Value",this.SQLDataParameterDBType="DBType",this.SQLDataParameterDelete="Delete",this.SQLDataAddparameters="Add parameter",this.SQLDataParameterValueBlank="<Blank>",this.SQLDataParameterValueExpression="<Expression>",this.SQLDataParameterValueNewParameter="<New Report Parameter>",this.SQLDataParameterNameValidation="The parameter is already in use.",this.SQLDataDesignerParametersHeader="Configure design time parameters",this.SQLDataDesignerParametersSubHeader="Specify an appropriate design time value for each data source parameter.",this.SQLDataPreviewHeader="Preview",this.SQLDataPreviewSubHeader="Preview the result set returned by this data source",this.SQLDataPreviewShowRows="Show top",this.SQLDataPreviewRows="rows",this.SQLDataPreviewQueryButton="Execute Query...",this.SQLDataPreviewQuery=`Click '${this.SQLDataPreviewQueryButton} ' to preview the data source result...`,this.SQLDataPreviewError="An error has occurred while previewing the results:",this.SqlDataSelectStoredProcedure="Select stored procedure",this.SqlPreviewQueryNoDataMessage="No data retrieved.",this.JsonDataSourceHeader="Choose a JSON source",this.JsonUploadFile="Upload JSON file",this.JsonUseExistingFile="Use existing JSON file",this.JsonUseInline="Use JSON inline",this.JsonEnterTextPlaceholder="Enter JSON as text",this.JsonEditFileMessage="You can edit this file in Step 2, if necessary.",this.JsonModifyDataSourceHeader="Modify your JSON file",this.JsonEmbedInReportDefinition="Embed JSON file in report definition",this.JsonInlineFileMessage="You can make the selected file inline and modify its content.",this.CsvDataSourceHeader="Choose a CSV source",this.CsvUploadFile="Upload CSV file",this.CsvUseExistingFile="Use existing CSV file",this.CsvUseInline="Use CSV inline",this.CsvEnterTextPlaceholder="Enter CSV as text",this.CsvEditFileMessage="You can edit this file in Step 2, if necessary.",this.CsvDataSourceInlineCsvError="Please enter valid CSV data.",this.CsvConfigureSeparatorsHeader="Configure CSV Data Source - Separators",this.CsvFieldColumnSeparators="Field (column) separators",this.CsvRecordRowSeparators="Record (row) separators",this.CsvHeader="CSV header",this.CsvHasHeaderRow="This CSV has header row",this.CsvConsecutiveFieldSeparators="Treat consecutive field separators as one",this.CsvConsecutiveRecordSeparators="Treat consecutive record separators as one",this.CsvDataSourceMissingSeparatorError="Please select a separator.",this.CsvConfigureEscapeFormatHeader="Configure CSV Data Source - Escape Format",this.CsvEscapeFormat="Escape Format",this.CsvQuoteSymbol="Quote symbol",this.CsvQuoteSymbolMessage="Applicable only for Quotes / Quotes Mixed escape formats",this.CsvCommentSymbol="Comment symbol (usually #)",this.CsvSymbolPlaceholder="Type symbol...",this.CsvDataSourceMapColumnTypesHeader="Map Columns to Type",this.CsvDataSourceAvailableColumns="Available columns",this.CsvDataSourceFieldsTypeConversion="CSV fields type conversion",this.CsvDataSourceDecimalSeparator="Decimal separator",this.CsvDataSourceThousandSeparator="Thousand separator",this.CsvDataSourceDateFormat="Date format",this.CsvDataSourceResetColumns="Reset columns",this.CsvDataSourceColumnNameCannotBeEmpty="Column name cannot be empty",this.CsvModifyDataSourceHeader="Modify your CSV file",this.CsvEmbedInReportDefinition="Embed CSV file in report definition",this.CsvInlineFileMessage="You can make the selected file inline and modify its content.",this.CsvInlineFileButton="Inline in report",this.WebServiceDataSourceHeader="Configure Data Retrieval",this.WebServiceDataSourceSettings="Web Service settings",this.WebServiceDataSourceUploadFile="Upload a JSON file to use it as hard-coded data while designing the report",this.WebServiceDataSourceUseInline="Use JSON inline as hard-coded data while designing the report",this.WebServiceDataSourceEnterTextPlaceholder="Enter data as text",this.WebServiceDataSourceServiceUrlPlaceholder="Service URL...",this.WebServiceDataSourceRequestBodyPlaceholder="Request Body",this.WebServiceDataSourceNoAuthentication="No authentication",this.WebServiceDataSourceRequestEncoding="Response encoding",this.WebServiceDataSourceParametersHeader="Configure request parameters",this.WebServiceDataSourceParametersSubHeader="Specify name, type, default value or expression, and design time value for data source parameters.",this.WebServiceDataSourceParameterName="Name",this.WebServiceDataSourceParameterType="Type",this.WebServiceDataSourceParameterValue="Value",this.WebServiceDataSourceParameterDesignValue="Design-Time Value",this.WebServiceDataSourceParameterDelete="Delete",this.WebServiceDataSourceAddParameter="Add parameter",this.WebServiceDataSourceParameterValueBlank="<Blank>",this.WebServiceDataSourceParameterValueExpression="<Expression>",this.WebServiceDataSourceParameterValueNewParameter="<New Report Parameter>",this.WebServiceDataSourceParameterNameValidation="The parameter is already in use.",this.WebServiceDataSourceAuthenticationParametersHeader="Configure authentication parameters",this.WebServiceDataSourceBasicAuthenticationHeader="Configure Basic Authentication",this.WebServiceDataSourceTwoStepAuthenticationHeader="Configure 2-step authentication",this.WebServiceDataSourceUsernamePassword="Username & password",this.WebServiceDataSourceLoginSettings="Login settings",this.WebServiceDataSourceAuthenticationUsernamePlaceholder="username",this.WebServiceDataSourceAuthenticationPasswordPlaceholder="password",this.WebServiceDataSourceAuthenticationLoginUrlPlaceholder="Login URL...",this.WebServiceDataSourceAuthenticationLogoutUrlPlaceholder="Logout URL...",this.WebServiceDataSourceAuthenticationTokenPath="Token path",this.WebServiceDataSourceAuthenticationTokenPathPlaceholder="Type path...",this.WebServiceDataSourceAuthenticationResponseType="Response type",this.WebServiceDataSourceLogoutSettings="Logout settings (optional)",this.WebServiceDataSourceDesignTimeDataHeader="Choose design-time data",this.WebServiceDataSourceUseRealData="Use real data while designing the report",this.PreviewResultsHeader="Preview data source results",this.PreviewWaitingMessage="Please wait while the data is being fetched...",this.DataSourceExternalFileError="Please select a valid file.",this.DataSourceExistingFileError="File already exists. Please choose a different file name.",this.DataSourceInvalidJsonData="Please enter valid JSON data.",this.DataSourceDataSelector="Data selector",this.DataSourceDataSelectorPlaceholder="Type...",this.DataSourcePreviewTotalRows="Total rows",this.ObjectDataSourceChooseBusinessObject="Choose a business object",this.ObjectDataSourceChooseBusinessObjectDescription="The selected business object type's assembly-qualified name will be stored in the data source component's DataSource property.",this.ObjectDataSourceShowDataObjectsOnly="Show data objects only",this.ObjectDataSourceSelectedObjectLabel="Selected business object:",this.ObjectDataSourceNoTypeModelMessage="No business object types have been found on the server. Only types from assemblies that are declared in the application configuration file are allowed.",this.ObjectDataSourceChooseDataMember="Choose a data member",this.ObjectDataSourceChooseDataMemberDescription="The business object instance will be created using its default constructor. You have the option to specify a different constructor or a data member (method or property) that will return the data.",this.ObjectDataSourceUseDefaultCtor="Use the default constructor",this.ObjectDataSourceUseDataMember="Choose from list...",this.ObjectDataSourceSelectedMemberLabel="Selected data member:",this.ObjectDataSourceSelectedDataMemberPlaceholder="Default constructor",this.ObjectDataSourceConfigureParameters="Configure data source parameters",this.ObjectDataSourceConfigureParametersDescription="Specify default value or expression and design-time value for data source parameters.",this.ObjectDataSourceParameterName="Name",this.ObjectDataSourceParameterType="Type",this.ObjectDataSourceParameterValue="Value",this.ObjectDataSourceParameterDesignValue="Design-Time Value",this.ObjectDataSourceParameterLabel="Parameters",this.ObjectDataSourcePreviewResultsDescription="During data preview the business object will be called using the configured design-time parameter values. The returned data is limited to 100 rows for preview purposes.",this.ObjectDataSourcePreviewError="An error occurred while fetching preview data from the service. Make sure the configured business object is accessible and is returning data.",this.ObjectDataSourcePreviewNoData="No results for this business object configuration.",this.TableWizardHeader="Configure Table",this.CrosstabWizardHeader="Configure Crosstab",this.CrosstabDataCategory="Data",this.CrosstabFieldsCategory="Fields Arrangement",this.CrosstabAppearanceCategory="Appearance",this.Total="Total",this.DataSourceTitle="Data Source",this.NoDataSourceTitle="No Data Source",this.DataSourceFieldsTitle="Data Source Fields",this.ColumnGroupsTitle="Column Groups",this.RowGroupsTitle="Row Groups",this.DetailValuesTitle="Detail Values",this.LayoutTitle="Layout",this.DragAndDropPlaceholder="Drag and drop data source fields",this.AddToFields="Add to",this.MoveUp="Move Up",this.MoveDown="Move Down",this.Function="Function",this.RadialGaugeWizardHeader="Configure Radial Gauge",this.LinearGaugeWizardHeader="Configure Linear Gauge",this.GaugeWizardAppearanceCategory="Appearance",this.GaugeWizardPresentationCategory="Presentation",this.GaugeWizardRangesCategory="Ranges",this.RadialGaugeTypeTitle="Radial gauge type",this.LinearGaugeTypeTitle="Linear gauge type",this.GaugeValueTitle="Value",this.GaugeRangesCountTitle="Ranges count",this.GaugeMinRangeTitle="Value minimum",this.GaugeMaxRangeTitle="Value maximum",this.GaugeSyncRangesTitle="Sync ranges",this.GaugeRangeTitle="Range",this.GaugeMajorTicksSegmentCountTitle="Major segments count",this.GaugeMinorTicksSegmentCountTitle="Minor segments count",this.GaugeNeedleThicknessTitle="Needle thickness",this.GaugeScaleStartTitle="Scale start",this.GaugeScaleEndTitle="Scale end",this.GaugeIndicatorThicknessTitle="Indicator thickness",this.GaugeIndicatorTypeTitle="Indicator type",this.SingleRangeRadialGauge="Single-range",this.MultiRangeRadialGauge="Multi-range",this.HorizontalSingleRangeLinearGauge="Horizontal single-range",this.HorizontalMultiRangeLinearGauge="Horizontal multi-range",this.VerticalSingleRangeLinearGauge="Vertical single-range",this.VerticalMultiRangeLinearGauge="Vertical multi-range",this.BarChart="Bar",this.LineChart="Line",this.PieChart="Pie",this.AreaChart="Area",this.ColumnChart="Column",this.GraphWizardHeader="Configure Graph",this.GraphDataCategory="Data",this.GraphFieldsCategory="Fields Arrangement",this.CategoriesTitle="Categories",this.SeriesTitle="Series",this.ValuesTitle="Values",this.GraphTypeTitle="chart type",this.SetDefaultTooltips="Set default tooltips",this.BarGraphWizardHeader="Configure Bar Chart",this.LineGraphWizardHeader="Configure Line Chart",this.PieGraphWizardHeader="Configure Pie Chart",this.AreaGraphWizardHeader="Configure Area Chart",this.ColumnGraphWizardHeader="Configure Column Chart",this.ClusteredBarGraph="Clustered Bar",this.StackedBarGraph="Stacked Bar",this.Stacked100BarGraph="100% Stacked Bar",this.ClusteredColumnGraph="Clustered Column",this.StackedColumnGraph="Stacked Column",this.Stacked100ColumnGraph="100% Stacked Column",this.ClusteredAreaGraph="Area",this.StackedAreaGraph="Stacked Area",this.Stacked100AreaGraph="100% Stacked Area",this.LineGraph="Line",this.StackedLineGraph="Stacked Line",this.Stacked100LineGraph="100% Stacked Line",this.WithMarkersLineGraph="Line with Markers",this.StackedWithMarkersLineGraph="Stacked Line with Markers",this.Stacked100WithMarkersLineGraph="100% Stacked Line with Markers",this.PieGraph="Pie",this.DoughnutGraph="Doughnut",this.InsertColumn="Insert Column",this.InsertColumnInsideGroupLeft="Inside Group - Left",this.InsertColumnInsideGroupRight="Inside Group - Right",this.InsertColumnOutsideGroupLeft="Outside Group - Left",this.InsertColumnOutsideGroupRight="Outside Group - Right",this.InsertColumnLeft="Left",this.InsertColumnRight="Right",this.InsertRow="Insert Row",this.InsertRowInsideGroupAbove="Inside Group - Above",this.InsertRowInsideGroupBelow="Inside Group - Below",this.InsertRowOutsideGroupAbove="Outside Group - Above",this.InsertRowOutsideGroupBelow="Outside Group - Below",this.InsertRowAbove="Above",this.InsertRowBelow="Below",this.DeleteColumns="Delete Columns",this.DeleteRows="Delete Rows",this.MergeCells="Merge Cells",this.SplitCells="Split Cells",this.RotateLayout="Rotate Layout",this.GroupBy="Group by",this.ShowDetailData="Show detail data",this.AddHeader="Add Header",this.AddFooter="Add Footer",this.AddGroup="Add Group",this.AddGroupColumnGroup="Column Group",this.AddGroupParentGroup="Parent Group",this.AddGroupChildGroup="Child Group",this.AddGroupAdjacentLeft="Adjacent Left",this.AddGroupAdjacentRight="Adjacent Right",this.AddGroupRowGroup="Row Group",this.AddGroupAdjacentAbove="Adjacent Above",this.AddGroupAdjacentBelow="Adjacent Below",this.ColumnGroup="Column Group",this.ColumnGroupDeleteGroupOnly="Delete Group Only",this.ColumnGroupDeleteGroupAndColumns="Delete Group and Related Columns",this.RowGroup="Row Group",this.RowGroupDeleteGroupOnly="Delete Group Only",this.RowGroupDeleteGroupAndRows="Delete Group and Related Rows",this.AddTotal="Add Total",this.AddTotalBefore="Before",this.AddTotalAfter="After",this.AddTotalRow="Row",this.AddTotalColumn="Column",this.AddTotalRowFull="Add Total Row",this.AddTotalColumnFull="Add Total Column",this.ForReports="for report to use as content...",this.ForTOC="for report to use as TOC (if needed)...",this.ForReportsOnRS="Use the ReportSources property editor to add one or more report sources.",this.ForTocOnRS="Use the TOCReportSource property editor to add a report source to be used as TOC.",this.ToChangeTheOrder="To change the order drag&drop a report.",this.XmlIsNotValid="XmlReportSource.Xml is not a valid report XML.",this.InvalidXmlReportSource="Invalid XmlReportSource.Xml.",this.XmlIsRequired="Xml is required.",this.UriIsRequired="Uri is required.",this.UnsupportedReportSource="Unsupported report source type.",this.CouldNotRetrieveExpressionSchema="Could not retrieve expression schema.",this.TheTargetIsAlreadyAdded="This target already exists in the list.",this.SelectComponentToCreateTheNewItem="Please select a parent component for the new item.",this.CouldNotDeserializeDesignTimeParameters="Could not deserialize design-time parameter values.",this.CannotAddItemIntoParent="Cannot add new item of type {newItemType} into parent of type {parentType}. Please select another component to host the new item.",this.ComponentDoesNotSupportStyleModification="{componentType} does not support copy / paste / reset style",this.ErrorOpeningTheFile="An error occurred when trying to open the file",this.FileTooLargeToUpload="The file '{filename}' is too large to upload.",this.GenericError="An error has occurred",this.ActionDisabledInDemoMode="The action '{action}' is disabled in the demo application.",this.CannotCreateReportWithEmptyName="Cannot create a report with an empty or whitespace name.",this.CannotOverwriteReportHasUnsavedChanges="'{documentId}' has unsaved changes. Please save all changes before overwriting the report.",this.CannotCloseDocumentHasUnsavedChanges="'{documentId}' has unsaved changes. Please save all changes before closing the document.",this.ClosingWillResultInLoss="'{documentId}' has unsaved changes. Closing will result in loosing all changes.",this.CouldNotCreateNew="Could not create new {type}.",this.CouldNotRetrieveSdsRef="Unable to retrieve the referenced Shared Data Source for '{sdsName}'.",this.FollowingItemsFromSelectionCouldNotBeDeleted="The following items from the selection could not be deleted: {itemList}",this.WarnDownloadHasUnsavedChanges="There are unsaved changes for the documents you are downloading.",this.CouldNotRetrieveBindingPaths="Could not get bindings available paths.",this.ErrorCode_400_ResourceAlreadyExists="ErrorCode_400_ResourceAlreadyExists",this.ErrorCode_404_ResourceNotFound="ErrorCode_404_ResourceNotFound",this.ErrorCode_400_TargetIsSameAsDestination="ErrorCode_400_TargetIsSameAsDestination",this.ErrorCode_400_InvalidResourceName="ErrorCode_400_InvalidResourceName",this.ErrorCode_400_ResourceFolderAlreadyExists="ErrorCode_400_ResourceFolderAlreadyExists",this.ErrorCode_400_ResourceFolderNotFound="ErrorCode_400_ResourceFolderNotFound",this.ErrorCode_400_CannotMoveResourceFolderInsideItself="ErrorCode_400_CannotMoveResourceFolderInsideItself",this.RefineYourSearch="Refine your search for more relevant results",this.GlobalSearchPlaceholder="Search properties, components and report elements",this.NoResultsFound="No results found",this.ConfirmDeleteOperation="Please confirm deletion of '{resourceName}'.",this.ConfirmMultipleDeleteOperation="Please confirm deletion of {numberOfFiles} assets.",this.ConfirmSharedDataSourceFileDeleteOperationPrefix=`Deleting a ${this.SharedDataSource} might break the reports referencing it.`,this.ConfirmRenameOperation="Please confirm renaming of '{resourceName}' to '{resourceNewName}'.",this.ConfirmSharedDataSourceFileRenameOperationPrefix=`Renaming a ${this.SharedDataSource} might break the reports referencing it.`,this.ConfirmRenameToNoneReportExtension="Changing the extension of a report-type asset will prevent showing it in the Reports folder further. Please confirm changing the file extension to '{fileExtension}'.",this.ConfirmOverwriteExistingDocument="A document with this name exists? Would you like to overwrite it?",this.OnboardingExperienceErrorTitle="Onboarding Guide",this.OnboardingExperienceStepTitle0="Welcome!",this.OnboardingExperienceStepTitle1="Design surface",this.OnboardingExperienceStepTitle2="Components",this.OnboardingExperienceStepTitle3="Explorer";this.OnboardingExperienceStepTitle4="Properties area",this.OnboardingExperienceStepTitle5="Main menu",this.OnboardingExperienceStepTitle6="Assets Manager",this.OnboardingExperienceStepTitle7="Report preview",this.OnboardingExperienceFinalStepTitle="Start onboarding again",this.OnboardingExperienceErrorContent="The Onboarding Guide cannot start because no report is loaded. It will start when the Web Report Designer loads a report.",this.OnboardingExperienceStepContent0="This is the Onboarding Guide. The guide will walk you through the main tools used in the Web Report Designer.",this.OnboardingExperienceStepContent1="The Design surface visually represents the report layout and provides tools for selecting, moving, resizing, and editing the report items.",this.OnboardingExperienceStepContent2="This panel contains the report items you can add to the report. They are organized into groups based on their purpose.",this.OnboardingExperienceStepContent3="This is a tree representation of the report structure. Use it to select and configure all the report items, both visual and non-visual.",this.OnboardingExperienceStepContent4="This panel displays the properties of the currently selected report item with their current values. Use it to change and reset those values.",this.OnboardingExperienceStepContent5="Use the Main menu to create, open, and save reports.",this.OnboardingExperienceStepContent6="The Assets Manager tool allows you to upload and organize various resources on the server that can be reused in different reports.",this.OnboardingExperienceStepContent7="The Preview button generates a report document showing the result of the designed report.",this.OnboardingExperienceFinalStepContent='The Search box makes every report item, property, and tool easily discoverable. To review these onboarding tips later, type "Start onboarding" and press Enter.',this.OnboardingExperienceReportServerMenuStepContent="Use the Main menu to save and publish reports.",this.OnboardingExperienceNextButton="Next",this.OnboardingExperienceEndTourButton="End Tour",this.OnboardingExperienceNoDesignSurfaceButton="OK!",this.OnboardingExperienceFinishButton="Got it!",this.CreateComponentPermissionError="You don't have permission to create component of type '{componentType}'.",this.OpenDocumentPermissionError="You don't have permission to open a document.",this.OpenSharedDataSourcePermissionError="You don't have permission to open a shared data source.",this.AddExistingSDSPermissionError="You don't have permission to add existing shared data source.",this.AssetManagerFolderPermissionError="You don't have permission to access '{folderName}' folder.",this.OverwriteDocumentPermissionError="You don't have permission to overwrite an existing document.",this.CreateDocumentPermissionError="You don't have permission to create a report.",this.CreateDocumentCombinedPermissionError="You don't have permission to create a combined report.",this.CreateSDSPermissionError="You don't have permission to create a shared data source.",this.CollectionEditorDropDownEditorNoData="No data found. Do you want to add {newItemValue} as new item?",this.CollectionEditorDropDownEditorNoDataAddNew="Add new item",this.SwissQRBarcodeWithValueFromBillData="<<Calculated from bill data>>"}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t){this.InlineValue=e,this.DefaultValue=t}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(101),n=r(171),s=r(0);class a extends i.a{constructor(e){super(e,n.a)}AddByWidth(e){this.Add(new n.a({[s.a.Width]:e}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(101),n=r(172),s=r(0);class a extends i.a{constructor(e){super(e,n.a)}AddByHeight(e){this.Add(new n.a({[s.a.Height]:e}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(101),n=r(215),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends i.a{constructor(e,t){super(e,n.a,t)}init(e){for(const t of this.propertyStore){const r=new e(t);this.items.push(r)}}Initialize(){return s(this,void 0,void 0,(function*(){for(let e=0;e<this.items.length;e++){const t=this.items[e];yield t.DeserializeContent(this.parent)}}))}CreateCell(e,t,r,i,n){const s=this.CreateDummyCell(e,t,r,i,n);return this.Add(s),s}CreateDummyCell(e,t,r,i,s){const a=new n.a({});return a.RowIndex=e,a.ColumnIndex=t,a.RowSpan=r,a.ColumnSpan=i,a.ReportItem=s,a}FindAll(e){if(!e)throw new Error("match");const t=[];for(let r=0;r<this.Count;r++){const i=this.Get(r);e(i)&&t.push(i)}return t}Remove(e){for(let t=0;t<this.Count;t++){this.Get(t)===e&&this.RemoveAt(t)}}RemoveAt(e){const t=this.Get(e);super.RemoveAt(e),t.ReportItem&&(t.ReportItem.Parent=null)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(548);class n{constructor(e,t){this.rootDesigner=e,this.behaviorService=t}get AdornerWindow(){return this.behaviorService.AdornerWindow}GetSnapGridInfo(){const e=new i.a,t=this.CalculateGridSize(),r=this.AdornerWindow.ClientSize,n=this.AdornerWindow.AutoScrollMinSize,s=this.rootDesigner.GetBounds(!0),a=-Math.floor(s.Left/t+1);e.X=s.Left+a*t,e.StartIndexX=a;const o=-Math.floor(s.Top/t+1);return e.Y=s.Top+o*t,e.StartIndexY=o,e.GridSize=t,e.Width=Math.max(r.Width,n.Width)-e.X,e.Height=Math.max(r.Height,n.Height)-e.Y,e}CalculateGridSize(){const e=this.behaviorService.Zoom;let t=this.behaviorService.SnapGridSize.ToPixels()*e;for(;t<3;)t*=5,t<3&&(t*=2);return t}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(20),n=r(120),s=r(238),a=r(23),o=r(35),l=r(5);class c{constructor(){this.X=0,this.Y=0,this.Width=0,this.Height=0,this.GridSize=0,this.StartIndexX=0,this.StartIndexY=0}SnapToGrid(e){const t=this.Snap(e,!0,!0);return e.Offset(t.Width,t.Height),e}SnapToUnitGrid(e){const t=this.SnapToGrid(e.ToPixels());return new n.a(l.a.FromPixels(t.X,e.X.Type),l.a.FromPixels(t.X,e.Y.Type))}SizeToGrid(e){const t=e.ToRectangleF();let r=this.Snap(t.Location,!0,!0);t.Offset(r.Width,r.Height);const a=new i.a(t.Right,t.Bottom);return r=this.Snap(a,!0,!0),a.Offset(r.Width,r.Height),t.Width=a.X-t.Left,t.Height=a.Y-t.Top,new s.a(new n.a(l.a.FromPixels(t.Left,e.Left.Type),l.a.FromPixels(t.Top,e.Top.Type)),new o.a(l.a.FromPixels(t.Width,e.Width.Type),l.a.FromPixels(t.Height,e.Height.Type)))}Snap(e,t,r){const i=a.a.Empty;return t&&(i.Width=this.CalculateSnapOffset(e.X,this.X,this.Width)),r&&(i.Height=this.CalculateSnapOffset(e.Y,this.Y,this.Height)),i}CalculateSnapOffset(e,t,r){const i=this.GridSize/2;e<t&&(e=t),e-=t;const n=Math.floor(e/this.GridSize+1)*this.GridSize-e;return n<i?n:n-this.GridSize}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(23);class n{constructor(e){}get ClientSize(){return i.a.Empty}get AutoScrollMinSize(){return i.a.Empty}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e){this.Url=e.url||"",this.Username=e.username,this.Password=e.password}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(14),n=r(351);class s extends n.a{getLayoutFromLocalStorage(e){let t;const r=this.getOption(i.c.ToolboxAreaLayout);return t=r||(e.toolboxArea&&e.toolboxArea.layout?e.toolboxArea.layout:i.d.ToolboxAreaGridLayout),t}getCollapsedFromLocalStorage(e){let t;const r=this.getOption(i.c.ToolboxAreaState);if(r){t="true"===r}else t=!(!e.toolboxArea||null==e.toolboxArea.collapsed)&&e.toolboxArea.collapsed;return t}updateLocalStorageForLayout(e){this.saveOption(i.c.ToolboxAreaLayout,e)}updateLocalStorageForCollapsed(e){this.saveOption(i.c.ToolboxAreaState,e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(351),n=r(14);class s extends i.a{getCollapsedFromLocalStorage(e){const t=this.getOption(n.c.ProperiesAreaState);let r;if(t){r="true"===t}else r=!(!e.propertiesArea||null==e.propertiesArea.collapsed)&&e.propertiesArea.collapsed;return r}getLayoutFromLocalStorage(e){const t=this.getOption(n.c.ProperiesAreaLayout);let r;return r=t||(e.propertiesArea&&e.propertiesArea.layout?e.propertiesArea.layout:n.d.ProperiesAreaCategorizedLayout),r}updateLocalStorageForLayout(e){this.saveOption(n.c.ProperiesAreaLayout,e)}updateLocalStorageForCollapsed(e){this.saveOption(n.c.ProperiesAreaState,e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(352),n=r(14);class s extends i.a{get reportOption(){return n.c.PreviouslyOpenedReports}restore(e){this.lastOpenedReportId=this.getOption(n.c.LastOpenedReport),super.restore(e)}get LastOpenedReportId(){return this.lastOpenedReportId}set LastOpenedReportId(e){this.lastOpenedReportId=e,this.saveOption(n.c.LastOpenedReport,e)}removeReportId(e){super.removeReportId(e),this.reportIds.size||localStorage.removeItem(n.c.LastOpenedReport)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(352),n=r(14);class s extends i.a{constructor(){super(...arguments),this.maxNumberOfReports=10}get reportOption(){return n.c.RecentReports}addReportId(e){if(this.removeReportId(e),super.addReportId(e),this.reportIds.size>this.maxNumberOfReports){const e=this.reportIds.values().next().value;this.removeReportId(e)}}get RecentlyOpenedReportIdsArray(){return Array.from(super.ReportIds).reverse()}clear(){this.reportIds.clear(),this.serializeReportIds()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(14),n=r(119);class s extends n.a{restore(e){this.restoreReports=!("false"===this.getOption(i.c.RestoreReports)),this.behaviorPreferences=new a(e)}get BehaviorPreferences(){return this.behaviorPreferences}get RestoreReports(){return this.restoreReports}set RestoreReports(e){this.restoreReports=e,this.saveOption(i.c.RestoreReports,e)}}class a extends n.a{restore(e){this.snapToGrid=!("false"===this.getOption(i.c.SnapToGrid)),this.snapToSnapLines=!("false"===this.getOption(i.c.SnapToSnapLines))}get SnapToGrid(){return this.snapToGrid}set SnapToGrid(e){this.snapToGrid=e,this.saveOption(i.c.SnapToGrid,e)}get SnapToSnapLines(){return this.snapToSnapLines}set SnapToSnapLines(e){this.snapToSnapLines=e,this.saveOption(i.c.SnapToSnapLines,e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(119),n=r(14),s=r(124);class a extends i.a{constructor(){super(...arguments),this.maxNumberOfFiles=16}restore(e){const t=this.getOption(n.c.RecentFiles);this.deserializeFiles(t)}get Files(){return Array.from(this.recentFilesSet).reverse()}addFile(e){this.removeFile(e.uri),this.recentFilesSet.push(e),this.popIfOverMax(),this.serializeFiles()}removeFile(e){const t=this.recentFilesSet.find(t=>t.uri===e),r=this.recentFilesSet.indexOf(t);r>-1&&(this.recentFilesSet.splice(r,1),this.serializeFiles())}existsInRecent(e){return this.recentFilesSet.some(t=>t.uri===e)}deserializeFiles(e){if(!e)return void(this.recentFilesSet=[]);const t=JSON.parse(e);if(t&&t.length&&!t[0].path)return this.recentFilesSet=[],void this.serializeFiles();this.recentFilesSet=t.map(e=>s.a.deepCloneFile(e))}serializeFiles(){const e=JSON.stringify(this.recentFilesSet);this.saveOption(n.c.RecentFiles,e)}popIfOverMax(){this.recentFilesSet.length>this.maxNumberOfFiles&&this.recentFilesSet.pop()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(119),n=r(14);class s extends i.a{get ViewDetails(){return this.viewDetails}set ViewDetails(e){this.viewDetails=e,this.saveOption(n.c.AssetManagerViewDetails,e)}get PreviewFile(){return this.previewFile}set PreviewFile(e){this.previewFile=e,this.saveOption(n.c.AssetManagerPreviewFile,e)}restore(e){this.viewDetails="true"===this.getOption(n.c.AssetManagerViewDetails),this.previewFile="true"===this.getOption(n.c.AssetManagerPreviewFile)}}class a extends i.a{get Layout(){return this.layout}set Layout(e){this.layout=e,this.saveOption(n.c.AssetManagerLayout,e)}get AssetManagerDetailsOptions(){return this.assetManagerDetailsOptions}restore(e){this.layout=this.getOption(n.c.AssetManagerLayout),this.assetManagerDetailsOptions=new s(e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(119),n=r(14);class s extends i.a{constructor(e){super(e),this.storedValue=JSON.stringify(["walkthrough"])}get LastOnboardingStep(){return this.lastOnboardingStep}set LastOnboardingStep(e){this.lastOnboardingStep=e,this.updateLocalStorageForOnboarding(e)}restore(e){this.lastOnboardingStep=this.getLastOnboardingStepFromStorage(e)}getLastOnboardingStepFromStorage(e){if(!0===e.skipOnboarding)return Number.MAX_VALUE;return this.getOption(n.c.StartedOnboardingGuides)?Number.MAX_VALUE:0}updateLocalStorageForOnboarding(e){e>0?this.saveOption(n.c.StartedOnboardingGuides,this.storedValue):this.clearOption(n.c.StartedOnboardingGuides)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(21),n=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class s{constructor(e){this.excludedFolderPathsFromSearch=e}getContentsForFolder(e,t,r){return n(this,void 0,void 0,(function*(){if(e){var i=this.findFolderByPathRecursive(e,t);if(!i)throw new Error("Folder not found for path "+e);if(!(i.items&&i.items.length>0)){var n=yield r(i);i.items=n}}}))}tryGetSelectedItem(e,t,r){var i;return null!==(i=this.tryGetFolderFromTreeView(t,e,r))&&void 0!==i?i:this.tryGetSelectedItemFromContentView(e,t,r)}tryGetSelectedItemFromContentView(e,t,r){const i=e.attr("data-uid");let n=this.tryGetSelectedFromView(t,i);if(!n){const e=t.getSelected();e&&e.length>0&&(n=e[0])}if(!n)return;return this.findResourceByPathRecursive(n.path,r)}tryGetSelectedFromView(e,t){var r,i,n,s,a,o;const l=null!==(s=null===(n=null===(i=null===(r=e._view)||void 0===r?void 0:r.options)||void 0===i?void 0:i.dataSource)||void 0===n?void 0:n._view)&&void 0!==s?s:[];let c=this.findResourceByRecursive(l,e=>e.uid===t);if(!c){const r=null!==(o=null===(a=e._viewDataSource)||void 0===a?void 0:a._view)&&void 0!==o?o:[];c=this.findResourceByRecursive(r,e=>e.uid===t)}return c}tryGetFolderFromTreeView(e,t,r){var i,n;const s=null===(n=null===(i=e.treeView)||void 0===i?void 0:i.treeView)||void 0===n?void 0:n.dataItem(t);return s?this.findFolderByPathRecursive(s.path,r):void 0}findFolderByPathRecursive(e,t){for(const r of t){if(!r.isDirectory)continue;const t=r;if(t.path===e)return t;const i=this.findFolderByPathRecursive(e,t.items);if(i)return i}}findResourceByPathRecursive(e,t){return this.findResourceByRecursive(t,t=>t.path===e)}findResourceByRecursive(e,t){for(const r of e){if(!r.isDirectory&&this.isResourceParentFolderExcluded(r))continue;if(t(r))return r;if(!r.items)continue;const e=this.findResourceByRecursive(r.items,t);if(e)return e}}isResourceParentFolderExcluded(e){return this.excludedFolderPathsFromSearch.find(t=>i.a.ensureTrailingPathSeparator(t)===e.parentPath)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(8),n=r(123),s=r(17),a=r(52),o=r(183);class l{constructor(e,t){this.commandService=t,this.buttonIndexes={copyPath:0,newFolder:1,rename:2,upload:3,download:4,delete:5,removeFromRecent:6},this.stringResources=e.getService(i.a)}populateContextMenu(e,t,r,i){t.remove(t.element.children()),this.configureMenuContainerVisualElement(t);const n=[],s=e.tryGetFolderFromTreeView(r),a=void 0!==s?[s]:i;this.addUpload(a,n),this.addNewFolder(a,n),this.addRename(a,n),this.tryAddCopyPath(a,n),this.addDownload(a,n),this.addDelete(a,n),this.addRemoveFromRecent(a,n),t.setOptions({dataSource:this.sortContextMenuItems(n)})}addCommandsToMenuItems(e){var t,r;const i=null===(r=null===(t=null==e?void 0:e.dataSource)||void 0===t?void 0:t.options)||void 0===r?void 0:r.data;if(!i||!i.length)return;const n=e.element.children(),s=this.sortContextMenuItems(i);for(let e=0;e<s.length;e++)$(n[e]).attr("data-command",s[e].command)}sortContextMenuItems(e){return e.sort((e,t)=>e.index-t.index)}tryAddCopyPath(e,t){}addNewFolder(e,t){this.commandService.queryCommandStatus(a.a.NewFolderCommand,{items:e}).enabled&&t.push({name:"newFolder",text:this.stringResources.CreateNewFolder,command:s.a.NewFolder,spriteCssClass:"",index:this.buttonIndexes.newFolder,cssClass:"-border-bottom"})}addRename(e,t){this.commandService.queryCommandStatus(a.a.RenameCommand,{items:e}).enabled&&t.push({name:"renameItem",text:this.stringResources.Rename,command:n.a.Rename,spriteCssClass:"",index:this.buttonIndexes.rename})}addUpload(e,t){this.commandService.queryCommandStatus(a.a.UploadCommand,{items:e}).enabled&&t.push({name:"uploadFile",text:this.stringResources.UploadToFolder,command:s.a.UploadFile,spriteCssClass:"",index:this.buttonIndexes.upload})}addDownload(e,t){this.commandService.queryCommandStatus(a.a.DownloadCommand,{items:e}).enabled&&t.push({name:"downloadFile",text:this.stringResources.Download,command:s.a.DownloadFile,spriteCssClass:"",index:this.buttonIndexes.download})}addDelete(e,t){this.commandService.queryCommandStatus(a.a.DeleteCommand,{items:e}).enabled&&t.push({name:"deleteResource",text:this.stringResources.DeleteButton,command:n.a.Delete,spriteCssClass:"",index:this.buttonIndexes.delete,cssClass:"-border-top"})}addRemoveFromRecent(e,t){this.commandService.queryCommandStatus(a.a.RemoveFromRecent,{items:e}).enabled&&t.push({name:"removeFromRecent",text:this.stringResources.RemoveFromRecent,command:s.a.RemoveFromRecent,spriteCssClass:"",index:this.buttonIndexes.removeFromRecent})}configureMenuContainerVisualElement(e){}}class c extends l{configureMenuContainerVisualElement(e){e.wrapper.parent().parent().css("width","auto")}}class d{static getAssetManagerContentMenuServiceType(e,t){return window.kendo.version>=o.a.kendoR1_2023_SP1?new c(e,t):new l(e,t)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var i=r(562),n=r(312),s=r(4),a=r(17),o=r(2),l=r(563),c=r(14),d=r(460),u=r(52),h=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class p{constructor(e,t,r){this.assetManagerResourceService=e,this.provider=t,this.assetManager=r,this.uploadWindowManager=new d.a(t),this.newFolderWindowManager=new i.a(t)}beginNewFolderCreation(e,t){const r=null!=e?e:this.assetManagerResourceService.CurrentFolder,i=this.newFolderWindowManager.create(r.path);i.component.editFinished.subscribeOnce(r=>h(this,void 0,void 0,(function*(){if(r.canceled)return;const i=yield this.assetManagerResourceService.createFolder(e,r.newValue);i&&t(i)}))),i.open()}beginRename(e,t){t.tryGetFolderFromTreeView(e)?this.treeViewRename(e,t):t.viewType===n.a.listViewType?this.listViewRename(e,t):this.gridViewRename(e,t)}beginUpload(e,t){let r;r=this.assetManagerResourceService.folderIsReportsOrInReports(e)?[...c.d.Extensions,...c.a.Extensions]:this.assetManagerResourceService.folderIsSharedDataSourceOrInSharedDataSource(e)?c.e.Extensions:[],this.uploadWindowManager.create(e.path,{extensionsAllowed:r,multipleFilesAllowed:!0,uploadFile:r=>h(this,void 0,void 0,(function*(){return(yield this.assetManagerResourceService.uploadFile(r,e)).applyOnSuccess(e=>t(e))}))}).open()}toggleButtonState(e,t,r){const i=this.getButtonsForConfiguration(e);this.disableAllButtons(i,t);const n=void 0!==this.assetManagerResourceService.CurrentFolder?[this.assetManagerResourceService.CurrentFolder]:void 0,s=this.assetManager.AssetsManagerCommandService.queryCommandStatus(u.a.DownloadCommand,{items:r}).enabled,a=this.assetManager.AssetsManagerCommandService.queryCommandStatus(u.a.UploadCommand,{items:n}).enabled,o=this.assetManager.AssetsManagerCommandService.queryCommandStatus(u.a.NewFolderCommand,{items:n}).enabled,l=this.assetManager.AssetsManagerCommandService.queryCommandStatus(u.a.DeleteCommand,{items:r}).enabled;this.toggleToolbarButton(t,i.uploadButton,a),this.toggleToolbarButton(t,i.newFolderButton,o),this.toggleToolbarButton(t,i.deleteButton,l),this.toggleToolbarButton(t,i.downloadButton,s)}disableAllButtons(e,t){return Object.keys(e).forEach((r,i)=>{const n=e[r];this.toggleToolbarButton(t,n,!1)}),e}toggleToolbarButton(e,t,r){t&&e.toggleToolbarButton(t,r)}getButtonsForConfiguration(e){return{deleteButton:this.getButton(e,a.b.DeleteResource),downloadButton:this.getButton(e,a.b.DownloadFile),newFolderButton:this.getButton(e,a.b.NewFolder),uploadButton:this.getButton(e,a.b.UploadFile)}}getButton(e,t){return e.find(e=>e.name===t)}listViewRename(e,t){this.contentViewRename(e,t,e=>e)}gridViewRename(e,t){this.contentViewRename(e,t,e=>{const t=a.c.getNameGridColumnIndex(),r=$(e.find("[role='gridcell']")[t]);if(r.length)return r;s.b.logError("Td for file / folder name not found while renaming in grid view!")})}treeViewRename(e,t){const r=t.tryGetFolderFromTreeView(e),i=e.hasClass("k-selected")?e:e.find(".k-selected"),n=$("<span class='renameContainer'></span>");i.children(".k-treeview-leaf-text").replaceWith(n);const s=t.findFolderByPath(r.parentPath);this.addRenameInput(n,r,t,()=>h(this,void 0,void 0,(function*(){yield t.doNavigation(r.parentPath),yield t.doNavigation(r.path)})),s)}contentViewRename(e,t,r){const i=t.tryGetSelectedItemFromContentView(e),n=r(e);if(!n)return;const a=n.find(".file-name");a.length?(a.text(""),this.addRenameInput(a,i,t)):s.b.logError("Div for file / folder name not found while renaming in list view!")}addRenameInput(e,t,r,i,n){const s=o.c.getComponentByType(l.a),a=s.builder.build(e,this.provider);a.editFinished.subscribeOnce(s=>h(this,void 0,void 0,(function*(){yield this.onEditFinished(s,e,t,n),a.Dispose(),r.refresh(),i&&i()}))),a.init(s.selector,{initialValue:t.name,shouldSelectFilenameOnly:!t.isDirectory})}onEditFinished(e,t,r,i){return h(this,void 0,void 0,(function*(){if(e.canceled)return void t.text(r.name);const n=yield this.tryRename(e.newValue,r,i);t.text(n)}))}tryRename(e,t,r){return h(this,void 0,void 0,(function*(){return e&&t.name!==e&&(yield this.rename(t,e,r)),t.name}))}rename(e,t,r){return h(this,void 0,void 0,(function*(){try{yield this.assetManagerResourceService.renameResource(e,t,r)}catch(e){}}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(2),n=r(70),s=r(85),a=r(10),o=r(8),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let c=class extends n.b{constructor(){super(...arguments),this.editFinished=new a.b}get FolderName(){return this.folderName}set FolderName(e){this.folderName=e}getTemplate(){return this.templates.Layouts.FileManagement.AssetManager.Editors.assetManagerNewFolderWindowTemplate}beforeInit(){super.beforeInit(),this.stringResources=this.provider.getService(o.a)}onWindowOpenAnimationComplete(){this.view.element.find("input").focus()}onKeyDown(e){13===e.which&&(e.stopPropagation(),this.onSave())}onSave(){this.editFinished.next({newValue:this.FolderName}),this._$kendoWindowInstance.close()}onClose(){this.editFinished.next({canceled:!0}),this._$kendoWindowInstance.close()}};c=l([Object(i.a)("asset-manager-new-folder-window")],c);class d{constructor(e){this.provider=e,this.stringResources=this.provider.getService(o.a)}create(e){const t=new s.a(this.provider);t.withComponent(c).withTitle(`${this.stringResources.NewFolderWindowTitle} '${e}'`).withVisible(!1).withWindowDimensions({height:314,width:480,minWidth:300,minHeight:234}).withModal(!0);return t.build({})}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(10),n=r(2),s=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let a=class extends i.a{constructor(){super(...arguments),this.editFinished=new i.b}get Value(){return this.getByPropertyName(e=>{e.value})}set Value(e){this.setByPropertyName(e=>{e.value},e)}getTemplate(){return this.templates.Layouts.FileManagement.AssetManager.Editors.assetManagerInlineEditorComponentTemplate}beforeInit(){super.beforeInit(),this.Value=this.initialValue}afterInit(){var e;const t=this.view.element.find("input");$("html").on("mousedown.rename",e=>{t.is(e.target)||this.editFinished.next({newValue:this.Value})}),t.select(),null!==(e=this.shouldSelectFilenameOnly)&&void 0!==e&&e&&(t[0].selectionStart=0,t[0].selectionEnd=this.initialValue.lastIndexOf("."))}onKeyDown(e){var t;const r=null!==(t=e.which)&&void 0!==t?t:e.keyCode;r!==kendo.keys.ENTER&&r!==kendo.keys.ESC||(e.stopPropagation(),this.editFinished.next({canceled:r===kendo.keys.ESC,newValue:this.Value}))}beforeDispose(){super.beforeDispose(),$("html").off("mousedown.rename")}};s([Object(n.b)()],a.prototype,"initialValue",void 0),s([Object(n.b)()],a.prototype,"shouldSelectFilenameOnly",void 0),a=s([Object(n.a)("file-manager-inline-editor")],a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(353);class n{constructor(e){this.assetManager=e,this.commandManager=new i.a}registerCommand(e){this.commandManager.registerCommand(e)}queryCommandStatus(e,t){return this.commandManager.findCommand(e).updateStatusWithTarget(t)}tryExecuteCommand(e,t){return this.getTargetFromKeyboardEvent(t),this.queryCommandStatus(e,t),this.commandManager.tryExecuteCommand(e,t)}tryExecuteCommandAsync(e,t){return this.getTargetFromKeyboardEvent(t),this.queryCommandStatus(e,t),this.commandManager.tryExecuteCommandAsync(e,t)}getTargetFromKeyboardEvent(e){void 0===e.$target&&void 0===e.items&&void 0!==e.event&&(e.$target=$(e.event.target),e.items=this.assetManager.AssetsManagerSelectedResources)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(52),n=r(132),s=r(259),a=r(11),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends n.a{constructor(e,t,r){super(i.a.DeleteCommand,r,e,t),this.assetsManager=e,this.configuration=t}execute(e){return o(this,void 0,void 0,(function*(){e.items=this.assetsManager.AssetsManagerSelectedResources;const t=yield this.assetsManager.AssetsManagerResourceService.deleteResources(e.items);t.length&&this.assetsManager.itemRemoved(t)}))}updateStatusWithTarget(e){var t;if(void 0===e.items||0===(null===(t=e.items)||void 0===t?void 0:t.length))return this.status.enabled=!1,this.status;this.setPermission(e.items);const r=this.hasExecutePermission(),i=this.allowedInConfig(e,"enableDelete"),n=!this.areAnyItemsDefaultFolders(e.items);return this.status.enabled=i&&n&&r,this.status}setPermission(e){this.areAnyItemsInSharedDataSources(e)?this._permission=a.a.Commands_DataSources_SharedDataSource_Delete:this._permission=null}areAnyItemsInSharedDataSources(e){for(let t=0;t<e.length;++t)if(s.a.pathIsSharedDataSourcesOrInSharedDataSources(e[t].path))return!0;return!1}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(52),n=r(132),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends n.a{constructor(e,t,r){super(i.a.NewFolderCommand,r,e,t),this.assetsManager=e,this.configuration=t}execute(e){return s(this,void 0,void 0,(function*(){yield this.assetsManager.AssetsManagerUIService.beginNewFolderCreation(e.items[0],e=>this.assetsManager.itemAdded(e))}))}updateStatusWithTarget(e){var t;if(void 0===e.items||1!==(null===(t=e.items)||void 0===t?void 0:t.length))return this.status.enabled=!1,this.status;const r=this.allowedInConfig(e,"enableNewFolder"),i=e.items[0].isDirectory;return this.status.enabled=r&&i,this.status}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(52),n=r(132),s=r(11),a=r(259),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends n.a{constructor(e,t,r){super(i.a.UploadCommand,r,e,t),this.assetsManager=e,this.configuration=t}execute(e){return o(this,void 0,void 0,(function*(){const t=e.items[0];this.assetsManager.AssetsManagerUIService.beginUpload(t,e=>{this.assetsManager.itemAdded(e)})}))}updateStatusWithTarget(e){var t;if(1!==(null===(t=e.items)||void 0===t?void 0:t.length))return this.status.enabled=!1,this.status;const r=this.allowedInConfig(e,"enableUpload"),i=e.items[0];this.setPermission(i.path);const n=this.hasExecutePermission();return this.status.enabled=r&&e.items[0].isDirectory&&n,this.status}setPermission(e){a.a.pathIsSharedDataSourcesOrInSharedDataSources(e)?this._permission=s.a.Commands_DataSources_SharedDataSource_Create:this._permission=null}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(52),n=r(132),s=r(3),a=r(12),o=r(8),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c extends n.a{constructor(e,t,r){super(i.a.DownloadCommand,r,e,t),this.assetsManager=e,this.configuration=t}execute(e){return l(this,void 0,void 0,(function*(){let t=e.items;const r=this.provider.getServiceByName(s.a.IDesignSurfaceManager).GetLoadedDocuments;if(t.some(e=>r.some(t=>t.DocumentId===e.uri&&t.IsModified))){const e=this.provider.getService(o.a).WarnDownloadHasUnsavedChanges;this.provider.getService(a.a).warning(e)}this.assetsManager.AssetsManagerResourceService.currentFolderIsRecent()&&(t=yield this.assetsManager.AssetsManagerResourceService.removeUnexistingFilesFromFileArray(e.items)),yield this.assetsManager.AssetsManagerResourceService.downloadFiles(t)}))}updateStatusWithTarget(e){var t;if(0===(null===(t=e.items)||void 0===t?void 0:t.length))return this.status.enabled=!1,this.status;const r=this.allowedInConfig(e,"enableDownload"),i=e.items.every(e=>!e.isDirectory);return this.status.enabled=r&&i,this.status}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(52),n=r(132),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends n.a{constructor(e,t,r){super(i.a.RenameCommand,r,e,t),this.assetsManager=e,this.configuration=t}execute(e){return s(this,void 0,void 0,(function*(){const t=e.$target.hasClass("k-selected")?e.$target:e.$target.find(".k-selected");this.assetsManager.rename(t)}))}updateStatusWithTarget(e){var t;if(void 0===e.items||1!==(null===(t=e.items)||void 0===t?void 0:t.length))return this.status.enabled=!1,this.status;const r=!this.areAnyItemsDefaultFolders(e.items),i=this.allowedInConfig(e,"enableRename");return this.status.enabled=i&&r,this.status}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(52),n=r(132),s=r(47),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends n.a{constructor(e,t,r){super(i.a.RemoveFromRecent,r,e,t),this.assetsManager=e,this.configuration=t}execute(e){return a(this,void 0,void 0,(function*(){this.assetsManager.removeFromRecent()}))}updateStatusWithTarget(e){var t;if(void 0===e.items||0===(null===(t=e.items)||void 0===t?void 0:t.length))return this.status.enabled=!1,this.status;const r=!this.areAnyItemsDefaultFolders(e.items),i=this.getVirtualRootFolder(e.items)===s.b.Recent;return this.status.enabled=i&&r,this.status}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var i=r(0),n=r(3),s=r(572),a=r(40),o=r(573),l=r(260),c=r(13),d=r(29),u=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class h{constructor(e){this.provider=e,this.designers=new Map,this.transactionManager=null,this.designSurfaceEventEmitter=this.provider.getService(c.b),this.HasActiveResizeOperation=!1,this.HasActiveDragOperation=!1,this.isLoaded=!1}get IsLoaded(){return this.isLoaded}get Components(){return[...this.designers.keys()]}Load(e,t){return u(this,void 0,void 0,(function*(){this.documentVisualContainer=t,this.transactionManager=new o.a(this.provider),yield this.loadCore(e)}))}loadCore(e){return u(this,void 0,void 0,(function*(){this.RootComponent=yield new s.a(this,this.documentVisualContainer).load(e),this.isLoaded=!0;const t=new l.a;this.designSurfaceEventEmitter.emit(t)}))}Reload(e){return u(this,void 0,void 0,(function*(){this.RootComponent&&this.RootComponent.Designer.Dispose();this.provider.getService(a.a).Clear(),this.designers.clear(),this.isLoaded=!1,yield this.loadCore(e)}))}get InTransaction(){return this.transactionManager&&this.transactionManager.InTransaction}CreateTransaction(e){if(!this.transactionManager)throw new d.a("No document loaded.",this.provider);return this.transactionManager.BeginTransaction(e)}WithTransactionDo(e,t,r){const i=this.CreateTransaction(e);try{t(),i.Commit()}catch(e){r&&r(e),i.Rollback()}}CreateComponent(e,t,r,s=!0){return u(this,void 0,void 0,(function*(){if(!t)throw new Error("Property store is required for component creation.");const o=this.provider.getService(a.a);if(t[i.a.Name])o.RegisterName(t[i.a.Name]);else{const r=o.CreateName(e);t[i.a.Name]=r}const l=this.provider.getServiceByName(n.a.IInstanceFactoryService).createInstance(e,t,r,s);return l&&(yield l.Initialize(e),this.designers.set(l,l.Designer)),l}))}UnregisterComponent(e){return this.provider.getService(a.a).UnregisterName(e.Name),this.designers.delete(e)}GetDesigner(e){return this.designers.get(e)}GetComponent(e){for(const t of this.designers.keys())if(t.Name===e)return t;return null}getService(e){return this.provider.getService(e)}getServiceByName(e){return this.provider.getServiceByName(e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(1),n=r(0),s=r(3),a=r(16),o=r(4),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c{constructor(e,t){this.provider=e,this.designerHost=this.provider.getServiceByName(s.a.IDesignerHost),this.$documentArea=t}load(e){return l(this,void 0,void 0,(function*(){this.$documentArea.empty();const t=yield this.createReportModel(e,null);if(!t)throw new Error("Could not create a report model.");t.Overlay.Update();const r=this.provider.getService(a.a),i=this.provider.getServiceByName(s.a.DesignSurfaceEventsElement);return $(i).off("mouseup").on("mouseup",(e,i)=>{if(!i){const i=$(e.target);if(!this.designerHost.HasActiveResizeOperation&&!this.designerHost.HasActiveDragOperation){let n;if(i.hasClass("twd-design-surface"))n=t.Component;else{const e=o.b.doubleUnescapeHtml(i.attr("data-component-overlay"));e&&(n=this.designerHost.GetComponent(e))}n&&r.Select(e.ctrlKey,n)}this.designerHost.HasActiveResizeOperation=!1,this.designerHost.HasActiveDragOperation=!1}}),r.SetSelectedComponents([t.Component]),t.Component}))}createReportModel(e,t){return l(this,void 0,void 0,(function*(){const r=yield this.designerHost.CreateComponent(e[n.a.NetType],e,null==t?void 0:t.Component,!0);return r.Type===i.a.Report&&(this.designerHost.RootComponent=r),r.renderDesigner(),r?r.Designer:null}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(3),n=r(103),s=r(574),a=r(480),o=r(111),l=r(13),c=r(16);class d{constructor(e){this.provider=e,this.transactionLevel=0,this.designSurfaceEmitter=this.provider.getService(l.b)}get InTransaction(){return this.transactionLevel>0}BeginTransaction(e){const t=this.InTransaction?null:this.getCurrentState(),r=this.InTransaction?null:this.provider.getService(c.a).GetSelectedComponents().map(e=>e.Name);return this.transactionLevel++,new s.a(this,e,t,r)}CommitTransaction(e){if(!this.InTransaction)throw new Error("Not in transaction.");if(this.transactionLevel--,!this.InTransaction){const t=new o.a(new a.a(e.TransactionName,!0));this.designSurfaceEmitter.emit(t)}}RollbackTransaction(e){if(!this.InTransaction)throw new Error("Not in transaction.");if(this.transactionLevel--,this.InTransaction)throw new Error("Rollback inner transaction");{if(this.getCurrentState()!==e.TransactionState){const t=this.provider.getService(n.a),r=JSON.parse(e.TransactionState);t.reload(r,e.TransactionSelection)}const t=new o.a(new a.a(e.TransactionName,!1));this.designSurfaceEmitter.emit(t)}}getCurrentState(){const e=this.provider.getServiceByName(i.a.IDesignerHost).RootComponent;return JSON.stringify(e.PropertyStore)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t,r,i){this.transactionService=e,this.TransactionName=t,this.TransactionState=r,this.TransactionSelection=i}Commit(){this.transactionService.CommitTransaction(this)}Rollback(){this.transactionService.RollbackTransaction(this)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(120),n=r(5),s=r(0);class a{static adjustPosition(e,t){if(e){const r=t[s.a.Left],a=t[s.a.Left],o=i.a.Parse(r,a),l=n.a.FromPixels(e.X,o.X.Type).ToString(),c=n.a.FromPixels(e.Y,o.Y.Type).ToString();r!==l&&(t[s.a.Left]=l),a!==c&&(t[s.a.Top]=c)}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t){this.isModified=e,this.documentId=t}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(1),n=r(11),s=r(78);class a{static hasCreatePermission(e,t){return a.hasPermission(a.map[e],t)}static hasPermission(e,t){if(e){return t.getService(s.a).hasPermission(e)}return!0}}a.map={[i.a.TextBox]:n.a.Create_Components_ReportItems_TextBox,[i.a.HtmlTextBox]:n.a.Create_Components_ReportItems_HTMLTextBox,[i.a.PictureBox]:n.a.Create_Components_ReportItems_PictureBox,[i.a.CheckBox]:n.a.Create_Components_ReportItems_CheckBox,[i.a.Barcode]:n.a.Create_Components_ReportItems_Barcode,[i.a.Shape]:n.a.Create_Components_ReportItems_Shape,[i.a.Panel]:n.a.Create_Components_ReportItems_Panel,[i.a.RadialGauge]:n.a.Create_Components_ReportItems_RadialGauge,[i.a.LinearGauge]:n.a.Create_Components_ReportItems_LinearGauge,[i.a.List]:n.a.Create_Components_ReportItems_List,[i.a.Table]:n.a.Create_Components_ReportItems_Table,[i.a.Crosstab]:n.a.Create_Components_ReportItems_Crosstab,[i.a.SubReport]:n.a.Create_Components_ReportItems_SubReport,[i.a.Map]:n.a.Create_Components_ReportItems_Map,[i.a.Graph]:n.a.Create_Components_ReportItems_Chart,[i.a.PageHeaderSection]:n.a.Create_Components_ReportSections_PageHeader,[i.a.PageFooterSection]:n.a.Create_Components_ReportSections_PageFooter,[i.a.ReportHeaderSection]:n.a.Create_Components_ReportSections_ReportHeader,[i.a.ReportFooterSection]:n.a.Create_Components_ReportSections_ReportFooter,[i.a.TocSection]:n.a.Create_Components_ReportSections_TableOfContents,[i.a.SharedDataSource]:n.a.Commands_DataSources_SharedDataSource_Create,[i.a.SqlDataSource]:n.a.Commands_DataSources_InlineDataSource_Create_Sql,[i.a.CsvDataSource]:n.a.Commands_DataSources_InlineDataSource_Create_Csv,[i.a.JsonDataSource]:n.a.Commands_DataSources_InlineDataSource_Create_Json,[i.a.WebServiceDataSource]:n.a.Commands_DataSources_InlineDataSource_Create_Web,[i.a.ObjectDataSource]:n.a.Commands_DataSources_InlineDataSource_Create_Object}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(0),n=r(72);class s{constructor(e){this.DataType=this.shortenDataType(e[i.a.DataType]),this.Expandable=e[i.a.IsExpandable],this.Name=e[i.a.Name],this.ExpressionName=n.a.getEscapedString(this.Name),this.Measures=[];if(e[i.a.Measures])for(const t of e[i.a.Measures])this.Measures.push(new s(t))}shortenDataType(e){if(e){const t=e.indexOf(",");if(t>-1)return e.substring(0,t).replace("System.","")}return e}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(6),n=r(3),s=r(104),a=r(33),o=r(11),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c extends a.a{constructor(e){super(i.a.DocumentClose,e),this._permission=o.a.Commands_Document_Close}execute(){return l(this,void 0,void 0,(function*(){if(!this.hasExecutePermission())return;this.provider.getServiceByName(n.a.IDesignSurfaceManager).deleteDesignSurface("");this.provider.getService(s.a).Update()}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(6),n=r(356);class s extends n.a{constructor(e,t){super(e,i.a.Redo,t)}initControl(){this.visualControl=this.$visualElement.kendoButton({icon:"redo",enable:this.status.enabled}).data("kendoButton")}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(6),n=r(356);class s extends n.a{constructor(e,t){super(e,i.a.Undo,t)}initControl(){this.visualControl=this.$visualElement.kendoButton({icon:"undo",enable:this.status.enabled}).data("kendoButton")}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return y}));var i=r(6),n=r(32),s=r(3),a=r(24),o=r(8),l=r(13),c=r(357),d=r(327),u=r(64),h=r(36),p=r(4),m=r(204),g=r(11),f=r(78),v=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class y{constructor(e,t){this.$parent=e,this.provider=t,this.$visualElement=$(e),this.designSurfaceManager=this.provider.getServiceByName(s.a.IDesignSurfaceManager),this.webDesignerEventEmitter=this.provider.getService(l.c),this.sr=this.provider.getService(o.a),this.recentReports=this.provider.getService(h.a).RecentlyOpenedReports;const r=this.provider.getService(h.a);this.reportServerLayout=r.ReportServerLayout,this.kendoMenuWidget=null,this.disableItems=!1,this.documentCloseCommand=new a.a(i.a.DocumentClose,this.provider),this.closeAllDocumentsExceptCurrentCommand=new a.a(i.a.CloseAllDocumentsExceptCurrent,this.provider),this.closeAllDocumentsCommand=new a.a(i.a.CloseAllDocuments,this.provider),this.openCommand=new a.a(i.a.DocumentOpen,this.provider),this.publishCommand=new a.a(i.a.DocumentPublish,this.provider),this.revertCommand=new a.a(i.a.DocumentRevert,this.provider),this.openPreferences=new c.a,this.mainMenuAnimatonFinished=new d.a(new d.b),this.openSaveAsReportWindowCommand=new a.a(i.a.OpenSaveAsWindow,this.provider),this.openCreateNewReportWindowCommand=new a.a(i.a.OpenCreateNewReportWindow,this.provider),this.openCreateNewCombinedReportWindowCommand=new a.a(i.a.OpenCreateNewCombinedReportWindow,this.provider),this.openCreateNewSharedDataSourceWindowCommand=new a.a(i.a.OpenCreateNewSharedDataSourceWindow,this.provider),this.openReportFileBrowser=new a.a(i.a.OpenReportFileBrowserWindow,this.provider),this.openAssetManagerCommand=new a.a(i.a.OpenAssetManager,this.provider),this.init(),this.documentSaveCommand=new S(i.a.DocumentSave,this.provider,this.designSurfaceManager,this.kendoMenuWidget);this.provider.getService(m.a).registerCommand(this.documentSaveCommand)}get template(){return`<div class="twd-main-menu">\n                    <ul class="main-menu__wrapper twd-menu">\n                        <li class="main-menu__item -first root-menu">\n                            <span class="k-icon k-i-menu"></span> ${this.sr.MainMenu}\n                            <ul></ul>\n                        </li>\n                    <ul>\n                </div>`}get menuTemplate(){return"<ul></ul>"}itemTemplate(e){var t;return`<li data-action="${e.Name}" class="main-menu__item k-widget ${e.ClassName?e.ClassName:""}">\n                    <span style="flex-grow: 1;">${e.Title}</span>\n                    <span>${null!==(t=e.ShortCut)&&void 0!==t?t:""}</span>\n                </li>`}subItemTemplate(e){return`<li data-action="${e.Name}" data-document-id="${e.Title}" class="yolo main-menu__item ${e.ClassName?e.ClassName:""}">\n                    ${e.Name===n.a.Open?"<span class= 'k-icon k-i-file-report' > </span>":""}\n                    <span>${e.Title}</span>\n                </li>`}get actions(){const e={};return e[n.a.DocumentCreateNew]="createBlankReport",e[n.a.DocumentCreateNewCombined]="createBlankCombinedReport",e[n.a.DocumentCreateNewSharedDataSource]="createBlankSds",e[n.a.DocumentSaveAs]="saveAsReport",e[n.a.DocumentSave]="documentSave",e[n.a.OpenBrowser]="openBrowser",e[n.a.OpenAssetManager]="openAssetManager",e[n.a.Cancel]="closePopUp",e[n.a.Close]="documentClose",e[n.a.CloseAllButThis]="closeAllDocumentsExceptCurrent",e[n.a.CloseAll]="closeAllDocuments",e[n.a.Open]="openDocument",e[n.a.ClearRecentReports]="clearRecentReports",e[n.a.WorkSpace]="openWorkSpace",e[n.a.Publish]="publishReport",e[n.a.Revert]="revertReport",e}VisualElement(){return this.$visualElement}Enable(e){this.kendoMenuWidget.enable(".main-menu__item.-first",e)}init(){const e=this.template;this.$parent.prepend(e),this.$visualElement=this.$parent.find(".twd-main-menu"),this.initMenu(),this.emitAnimationFinished.bind(this),this.kendoMenuWidget.bind("activate",()=>this.emitAnimationFinished()),this.webDesignerEventEmitter.on(u.a,()=>this.updateMenuItemsState(),!1)}initMenu(){const e=this.$visualElement.find("li > ul"),t=this.menuItems();for(const r of t)e.append(this.itemTemplate(r)),r.SubMenu&&this[r.SubMenu](e.find("> li").last(),r);this.kendoMenuWidget=this.$visualElement.find(".main-menu__wrapper").kendoMenu({select:t=>v(this,void 0,void 0,(function*(){if($(t.item).hasClass("root-menu")&&!$(t.item).find(".k-active").length&&!this.reportServerLayout){const t=e.find(`> li[data-action='${n.a.Open}']`);if(t.length>0){const e=t.find("ul > li"),r=this.recentReports.RecentlyOpenedReportIdsArray;for(const e of r)this.kendoMenuWidget.append(this.subItemTemplate({Name:n.a.Open,Title:e}),t);const i=r.length>0?this.sr.ClearRecentDocuments:this.sr.NoRecentDocuments;this.kendoMenuWidget.append(this.subItemTemplate({Name:n.a.ClearRecentReports,Title:i,ClassName:"-border-top"}),t);for(const t of e)this.kendoMenuWidget.remove(t)}}this.executeAction(t,$(t.item))})),openOnClick:{rootMenuItems:!0}}).data("kendoMenu")}menuItems(){return this.applyPermissions(this.getMenuItems())}getMenuItems(){if(this.reportServerLayout)return this.reportServerAndSdsLayout?[{Name:n.a.DocumentSave,Title:this.sr.SaveButton,ClassName:"-border-top"},{Name:n.a.Close,Title:this.sr.CloseButton,ClassName:"-border-top",ShortCut:this.sr.MainMenuCloseShortcut},{Name:n.a.OpenAssetManager,Title:this.sr.AssetManager,ClassName:"-border-top"},{Name:n.a.WorkSpace,Title:this.sr.Workspace,ClassName:"-border-top"}]:[{Name:n.a.DocumentSave,Title:this.sr.SaveButton,ClassName:"-border-top"},{Name:n.a.Publish,Title:this.sr.PublishButton},{Name:n.a.Revert,Title:this.sr.RevertButton,ClassName:"-border-bottom"},{Name:n.a.OpenAssetManager,Title:this.sr.AssetManager,ClassName:"-border-top"},{Name:n.a.WorkSpace,Title:this.sr.Workspace,ClassName:"-border-top"}];const e=p.b.convertStringsToMenuItems(this.recentReports.RecentlyOpenedReportIdsArray,n.a.Open),t=p.b.convertStringsToMenuItems([this.sr.ClearRecentDocuments],n.a.ClearRecentReports)[0];return e.push(t),[{Name:n.a.DocumentCreateNew,Title:this.sr.NewReportButton,ShortCut:this.sr.MainMenuNewShortcut,AllowPermission:g.a.Commands_Document_New},{Name:n.a.DocumentCreateNewCombined,Title:this.sr.NewCombinedReportButton,AllowPermission:g.a.Commands_Document_NewCombined},{Name:n.a.DocumentCreateNewSharedDataSource,Title:this.sr.NewSharedDataSourceButton,AllowPermission:g.a.Commands_DataSources_SharedDataSource_Create},{Name:n.a.OpenBrowser,Title:this.sr.OpenButton+"...",ClassName:"-border-top",AllowPermission:g.a.Commands_Document_Open},{Name:n.a.Open,Title:this.sr.OpenRecentButton,SubMenu:"initSubMenu",Children:e,AllowPermission:g.a.Commands_Document_OpenRecent},{Name:n.a.DocumentSave,Title:this.sr.SaveButton,ClassName:"-border-top",ShortCut:this.sr.MainMenuSaveShortcut,AllowPermission:g.a.Commands_Document_Save},{Name:n.a.DocumentSaveAs,Title:this.sr.SaveAsButton,ShortCut:this.sr.MainMenuSaveAsShortcut},{Name:n.a.Close,Title:this.sr.CloseButton,ClassName:"-border-top",ShortCut:this.sr.MainMenuCloseShortcut,AllowPermission:g.a.Commands_Document_Close},{Name:n.a.CloseAllButThis,Title:this.sr.CloseAllButThisButton,AllowPermission:g.a.Commands_Document_CloseAllButThis},{Name:n.a.CloseAll,Title:this.sr.CloseAllButton,AllowPermission:g.a.Commands_Document_CloseAll},{Name:n.a.OpenAssetManager,Title:this.sr.AssetManager,ClassName:"-border-top",AllowPermission:g.a.Commands_AssetsManager},{Name:n.a.WorkSpace,Title:this.sr.Workspace,ClassName:"-border-top",AllowPermission:g.a.Commands_WorkspacePreferences}]}applyPermissions(e){const t=this.provider.getService(f.a),r=[];let i=null;return e.forEach(e=>{!e.AllowPermission||e.AllowPermission&&t.hasPermission(e.AllowPermission)?(r.push(e),i&&(e.ClassName=i,i=null)):"-border-top"===e.ClassName&&(i=e.ClassName)}),r.forEach(e=>{e.Children&&(e.Children=this.applyPermissions(e.Children))}),r}initSubMenu(e,t){e.append(this.menuTemplate);const r=e.find("ul");for(const e of t.Children)r.append(this.subItemTemplate(e))}updateMenuItemsState(){var e;this.designSurfaceManager.ActiveDesignSurface?((null===(e=this.designSurfaceManager.ActiveDesignSurface)||void 0===e?void 0:e.IsSharedDataSourceSurface)?(this.reportServerAndSdsLayout=!0,this.reInitMenu()):this.reportServerAndSdsLayout&&(this.reportServerAndSdsLayout=!1,this.reInitMenu()),this.disableItems&&(this.enableItems(!0),this.disableItems=!1)):(this.enableItems(!1),this.disableItems=!0)}reInitMenu(){this.kendoMenuWidget.destroy(),this.$parent.empty();const e=this.template;this.$parent.prepend(e),this.$visualElement=this.$parent.find(".twd-main-menu"),this.initMenu()}enableItems(e){this.reportServerLayout||(this.kendoMenuWidget.enable(`[data-action="${n.a.DocumentSaveAs}"]`,e),this.kendoMenuWidget.enable(`[data-action="${n.a.Close}"]`,e),this.kendoMenuWidget.enable(`[data-action="${n.a.CloseAllButThis}"]`,e),this.kendoMenuWidget.enable(`[data-action="${n.a.CloseAll}"]`,e),this.kendoMenuWidget.enable(`[data-action="${n.a.WorkSpace}"]`,e))}executeAction(e,t){const r=t.attr("data-action");if(r){this[this.actions[r]](e,t)}}createBlankReport(e,t){return v(this,void 0,void 0,(function*(){this.openCreateNewReportWindowCommand.execute(null)}))}createBlankCombinedReport(e,t){return v(this,void 0,void 0,(function*(){this.openCreateNewCombinedReportWindowCommand.execute(null)}))}createBlankSds(e,t){return v(this,void 0,void 0,(function*(){this.openCreateNewSharedDataSourceWindowCommand.execute(null)}))}saveAsReport(e,t){return v(this,void 0,void 0,(function*(){this.openSaveAsReportWindowCommand.execute(null)}))}documentSave(e,t){this.documentSaveCommand.execute(null)}documentClose(e,t){this.documentCloseCommand.execute(null)}closeAllDocumentsExceptCurrent(e,t){this.closeAllDocumentsExceptCurrentCommand.execute(null)}closeAllDocuments(e,t){this.closeAllDocumentsCommand.execute(null)}openDocument(e,t){this.openCommand.execute({DocumentId:t.attr("data-document-id"),CheckPermission:!0})}clearRecentReports(e,t){this.recentReports.clear()}openWorkSpace(e,t){this.webDesignerEventEmitter.emit(this.openPreferences)}emitAnimationFinished(){this.webDesignerEventEmitter.emit(this.mainMenuAnimatonFinished)}openBrowser(e,t){this.openReportFileBrowser.execute(null)}openAssetManager(e,t){const r=()=>{this.openAssetManagerCommand.execute(null),this.kendoMenuWidget.unbind("deactivate",r)};this.kendoMenuWidget.bind("deactivate",r)}closePopUp(e,t){$(e.delegateTarget).data("kendoWindow").close()}publishReport(e,t){this.publishCommand.execute(null)}revertReport(e,t){this.revertCommand.execute(null)}}class S extends a.a{constructor(e,t,r,i){super(e,t),this.command=e,this.provider=t,this.designSurfaceManager=r,this.kendoMenuWidget=i}updateStatus(){super.updateStatus(),this.status.enabled=this.status.enabled&&null!=this.designSurfaceManager.ActiveDesignSurface;var e=i.a[this.command];e=e.charAt(0).toLowerCase()+e.slice(1),this.kendoMenuWidget.enable(`[data-action="${e}"]`,this.status.enabled)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var i,n=r(2),s=r(10),a=r(358),o=r(359),l=r(584),c=r(13),d=r(64),u=r(3),h=r(8),p=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},m=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let g=i=class extends s.a{constructor(){super(...arguments),this.searchInvalidated=!1,this.setState=()=>this.IsEnabled=!!this.designSurfaceManager.ActiveDesignSurface,this.invalidateSearch=()=>{this.searchInvalidated=!0}}get IsEnabled(){return this.getByPropertyName(e=>{e.isEnabled})}set IsEnabled(e){this.setByPropertyName(e=>{e.isEnabled},e),e||this.kendoAutoComplete.value("")}get SearchResults(){return this.getByPropertyName(e=>{e.searchResults})}set SearchResults(e){this.setByPropertyName(e=>{e.searchResults},e)}beforeInit(){super.beforeInit(),this.enable(),this.globalSearchService=this.provider.getService(a.a),this.globalSelectionService=this.provider.getService(o.a),this.SearchResults=[],this.stringResources=this.provider.getService(h.a),this.webDesignerEventEmitter=this.provider.getService(c.c),this.designSurfaceManager=this.provider.getServiceByName(u.a.IDesignSurfaceManager),this.webDesignerEventEmitter.on(d.a,this.setState,!1)}afterInit(){super.afterInit(),this.kendoAutoComplete=this.view.element.find("input.twd-global-search").data("kendoAutoComplete"),this.kendoAutoComplete.hasMoreSearchResults=()=>this.hasMoreSearchResults,this.globalSearchService.searchCurcimstancesChanged.subscribe(this.invalidateSearch),this.kendoAutoComplete.setOptions({highlightFirst:!0})}get listItemTemplate(){return'\n        <span class="twd-global-search-list-item"\n            # if (data.searchResult.hintText) { #\n                title= "#: data.searchResult.hintText #"\n            # } #>\n            <span class="k-icon #: data.searchResult.getIconClass() #"></span>\n            <span class="twd-global-search-list-item-text">\n                # if (data.additionalDisplayText) { #\n                    #= data.additionalDisplayText #\n                # } #\n                #= data.highlightedHtml #\n                \n            </span>\n        </span>'}get footerTemplate(){return`\n            # if (instance.element.val() && instance.hasMoreSearchResults()) { #\n                <div class="twd-global-search-footer">\n                    ${this.stringResources.RefineYourSearch}\n                </div>\n            # } #\n        `}getTemplate(){return this.templates.Search.GlobalSearchComponent.globalSearchComponentTemplate}enable(){this.IsEnabled=!0}disable(){this.IsEnabled=!1}focus(){this.kendoAutoComplete.focus(),this.kendoAutoComplete.element.select()}openPopup(){this.IsEnabled&&(this.searchInvalidated&&(this.searchInvalidated=!1,this.doSearch(this.kendoAutoComplete.value())),this.kendoAutoComplete.popup.open())}beforeDispose(){super.beforeDispose(),this.globalSearchService.searchCurcimstancesChanged.unsubscribe(this.invalidateSearch),this.webDesignerEventEmitter.off(d.a,this.setState,!1)}onOpen(e){this.autocompleteHasValue||e.preventDefault()}onFiltering(e){return m(this,void 0,void 0,(function*(){e.preventDefault(),this.doSearch(e.filter.value),this.autocompleteHasValue||this.kendoAutoComplete.close()}))}doSearch(e){return m(this,void 0,void 0,(function*(){const t=yield this.globalSearchService.getResultsWithLimit(e,i.maxSearchResultsCount);this.hasMoreSearchResults=t.hasMore,this.SearchResults=t.results.map(e=>new l.a(e))}))}onSelect(e){this.globalSelectionService.removeSelection(),e.preventDefault();const t=e.dataItem;this.globalSelectionService.select(t.searchResult),this.kendoAutoComplete.close()}get autocompleteHasValue(){return!!this.kendoAutoComplete.value()}};g.maxSearchResultsCount=12,g=i=p([Object(n.a)("global-search")],g)},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(4);class n{constructor(e){this.searchResult=e,this.additionalDisplayText=this.buildAdditionalDisplayText()}buildAdditionalDisplayText(){return this.searchResult.parentPath&&this.searchResult.parentPath.length&&this.searchResult.displayPath?this.parentPathToAdditionalDisplayText():""}parentPathToAdditionalDisplayText(){return this.searchResult.parentPath.map(e=>i.b.escapeHtml(e)).reduce((e,t)=>`${e}${this.rightIconElement}${t}`)+this.rightIconElement}get highlightedHtml(){if(!this.searchResult.highlights||!this.searchResult.highlights.length)return i.b.escapeHtml(this.searchResult.displayText);let e="",t=0;const r=this.searchResult.highlights.sort((e,t)=>e.startIndex-t.startIndex);for(let i of r){const r=this.getNextChunk(i,t);e+=r.html,t=r.lastIndex}return this.searchResult.displayText.length>=t&&(e+=this.getEscapedDisplayTextChunk(t,this.searchResult.displayText.length)),e}getNextChunk(e,t){let r="",i=e.startIndex;i>0&&i>=t&&(r+=this.getEscapedDisplayTextChunk(t,i));return r+=`<span class="twd-search-highlight">${this.getEscapedDisplayTextChunk(e.startIndex,e.startIndex+e.length)}</span>`,{lastIndex:t=e.startIndex+e.length,html:r}}getEscapedDisplayTextChunk(e,t){return i.b.escapeHtml(this.searchResult.displayText.slice(e,t)).replace(" ","&nbsp;")}get rightIconElement(){return'<span class="k-icon k-i-arrow-60-right"></span>'}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(6),n=r(262),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends n.a{constructor(e){super(e,i.a.Copy)}execute(){const e=Object.create(null,{AddCurrentSelectionToClipboard:{get:()=>super.AddCurrentSelectionToClipboard}});return s(this,void 0,void 0,(function*(){this.selectionService.PrimarySelection&&e.AddCurrentSelectionToClipboard.call(this)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(4),n=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class s{constructor(){this.backupStorage=null,this.showFallbackWarning=!0}Add(e){return n(this,void 0,void 0,(function*(){try{yield navigator.clipboard.writeText(e)}catch(e){this.showFallbackWarning&&(i.b.logWarning("Clipboard access is blocked for this site. Falling back to local field storage. "+e),this.showFallbackWarning=!1)}if(this.backupStorage)return this.backupStorage.Add(e)}))}Get(){return n(this,void 0,void 0,(function*(){let e;try{e=yield navigator.clipboard.readText()}catch(t){if(!this.backupStorage)throw t;this.showFallbackWarning&&(i.b.logWarning("Clipboard access is blocked for this site. Falling back to local field storage. "+t),this.showFallbackWarning=!1),e=yield this.backupStorage.Get()}return e}))}AddFallbackStorage(e){return this.backupStorage=e,this}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class n{constructor(){this.data=null}Add(e){return i(this,void 0,void 0,(function*(){return this.data=e,Promise.resolve()}))}Get(){return i(this,void 0,void 0,(function*(){return this.data}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(6),n=r(205),s=r(3),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends n.a{constructor(e){super(e,i.a.ReportCreate)}execute(e){return a(this,void 0,void 0,(function*(){yield this.executeGenerateDocument(e,t=>t.createBlankDocument(e instanceof String?e:e.reportName),s.a.ReportStorageService)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(6),n=r(361);class s extends n.a{constructor(e){super(e,i.a.Cut)}ProcessSelectedComponents(e){super.AddToClipboard(e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(6),n=r(361);class s extends n.a{constructor(e){super(e,i.a.Delete)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(6),n=r(265),s=r(33),a=r(198),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends s.a{constructor(e){super(i.a.DocumentDesign,e)}execute(e){return o(this,void 0,void 0,(function*(){const e=this.provider.getService(n.a),t=this.provider.getService(a.WebReportDesigner);e.Hide(),t.Show()}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(42),n=r(6),s=r(3),a=r(113),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends a.a{constructor(e){super(e,n.a.MergeCells)}isValidSelectionCore(e){if(e.length<2)return!1;const t=e[0].Parent;if(!(t instanceof i.a))return!1;for(const r of e)if(r.Parent!==t)return!1;return!!t.Designer.TableLayout.CanMergeSelectedCells()}execute(e){return o(this,void 0,void 0,(function*(){yield this.MergeCells()}))}MergeCells(){return o(this,void 0,void 0,(function*(){const e=this.provider.getServiceByName(s.a.IDesignerHost);let t;e.InTransaction||(t=e.CreateTransaction("Merge Cells"));try{const e=this.selectionService.GetSelectedComponents(),r=e[0].Parent.Designer.TableLayout;yield r.MergeSelectedCells(),null==t||t.Commit()}catch(e){null==t||t.Rollback()}}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var i=r(6),n=r(3),s=r(594),a=r(611),o=r(615),l=r(618),c=r(621),d=r(107),u=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};const h={BarGraphWizard:a.a,LineGraphWizard:l.a,PieGraphWizard:c.a,AreaGraphWizard:s.a,ColumnGraphWizard:o.a};class p extends d.a{constructor(e){super(e,i.a.NewGraphWizard)}createEmbeddedWizard(e,t,r){return this.openWizard(e,r)}openWizard(e,t){return u(this,void 0,void 0,(function*(){const r=this.provider.getServiceByName(n.a.ISchemaService),i=yield r.getDefaultPropertyStore(e.NetType),s=this.createWizard(e.TemplateType,i,t,e.Position);return this.wizards.set(e.TemplateType,s),s.open(),s}))}createWizard(e,t,r,i){return new h[e](this.provider,t,r,i)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(595),n=r(155),s=r(609);class a extends n.a{get WizardHeader(){return this.sr.AreaGraphWizardHeader}CreateGraphBuilder(){return new i.a(this.provider,this.graphPropertyStore,this.model)}initializeModel(){return new s.a(this.provider,this.graphPropertyStore)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(1),n=r(266),s=r(98);class a extends n.a{createSeries(){return{NetType:i.a.AreaSeries}}initializeSeries(e,t){e.X=this.extender.getSeriesExpression(),e.Y=t,e.ArrangeMode=s.a[this.getArrangeMode()],e.DataPointStyle=e.DataPointStyle||{NetType:i.a.Style},e.DataPointStyle.Visible=!1,e.MissingValuesAreaStyle=e.MissingValuesAreaStyle||{NetType:i.a.Style},e.MissingValuesAreaStyle.Visible=!1}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var i=r(5),n=r(257),s=r(597),a=r(1),o=r(3),l=r(40),c=r(72),d=r(598),u=r(599),h=r(295),p=r(8);class m{constructor(e,t,r){this.provider=e,this.graphPropertyStore=t,this.model=r,this.provider=e,this.graphPropertyStore=t,this.model=r,this.namingService=e.getService(l.a);const i=this.provider.getServiceByName(o.a.IDesignSurfaceManager);this.designSurface=i.ActiveDesignSurface,this.sr=this.provider.getService(p.a)}get shouldAddToggleVisibilityActions(){return!0}createGraph(){const e=i.a.Pixel(10);this.graphPropertyStore.Style={NetType:a.a.Style},this.graphPropertyStore.Style.Padding={NetType:a.a.Padding},this.graphPropertyStore.Style.Padding.Left=e.ToString(),this.graphPropertyStore.Style.Padding.Right=e.ToString(),this.graphPropertyStore.Style.Padding.Top=e.ToString(),this.graphPropertyStore.Style.Padding.Bottom=e.ToString(),this.graphPropertyStore.Name=this.graphPropertyStore.Name||this.namingService.CreateName(a.a.Graph),this.graphPropertyStore.DataSourceName=this.model.dataSource.Name,this.graphPropertyStore.CategoryGroups=this.graphPropertyStore.CategoryGroups||[];let t=this.addGroup(this.graphPropertyStore.CategoryGroups,this.model.categoriesFields,!0);t||(t=this.addDefaultCategoryGroup()),this.graphPropertyStore.SeriesGroups=this.graphPropertyStore.SeriesGroups||[];let r=this.addGroup(this.graphPropertyStore.SeriesGroups,this.model.seriesFields,!1);r||(r=this.addDefaultSeriesGroup());const n={NetType:a.a.GraphTitle};n.Position=s.a.TopCenter,n.Text=this.graphPropertyStore.Name,this.graphPropertyStore.Titles=[],this.graphPropertyStore.Titles.push(n),this.extender=this.createBuilderExtender(),this.applyCore(t,r)}addCoordinateSystem(){const e=this.createCoordinateSystem();return this.graphPropertyStore.CoordinateSystems=this.graphPropertyStore.CoordinateSystems||[],this.graphPropertyStore.CoordinateSystems.push(e),e}createDetailGroup(){const e={NetType:a.a.GraphGroup},t={NetType:a.a.Grouping,Expression:""};return e.Groupings=e.Groupings||[],e.Groupings.push(t),e}setLegendItemExpression(e,t){e.LegendItem=e.LegendItem||{NetType:a.a.LegendItem},e.LegendItem.Value=h.a.getExpression(t),""!==e.LegendItem.Value&&(e.LegendItem.Value=this.getDefaultLegendItemExpression())}setToolTips(e,t,r){this.model.setDefaultTooltips&&(e.ToolTip=e.ToolTip||{NetType:a.a.ToolTip},e.ToolTip.Title=t,e.ToolTip.Text=r)}addDefaultCategoryGroup(){const e={NetType:a.a.GraphGroup};return e&&(e.Name=this.namingService.CreateName("categoryGroup"),this.graphPropertyStore.CategoryGroups.push(e)),e}addDefaultSeriesGroup(){const e={NetType:a.a.GraphGroup};return e&&(e.Name=this.namingService.CreateName("seriesGroup"),this.graphPropertyStore.SeriesGroups.push(e)),e}addGroup(e,t,r){let i=null,s=e;for(const e of t){let t=e.name+"Group";t=this.namingService.CreateName(t);const o={NetType:a.a.GraphGroup};if(o.Name=t,o.ChildGroups=[],""!==(null==e?void 0:e.ExpressionBody.trim())){const t=c.a.ensureExpression(e.ExpressionBody),r={NetType:a.a.Grouping,Expression:t};o.Groupings=o.Groupings||[],o.Groupings.push(r);const i={NetType:a.a.Sorting,Expression:t,Direction:n.a.Asc};o.Sortings=o.Sortings||[],o.Sortings.push(i)}if(s.push(o),r&&this.shouldAddToggleVisibilityActions&&i){o.Visible=!1;const e={NetType:a.a.ToggleVisibilityAction,Targets:[{NetType:a.a.Target,ItemName:o.Name}],DisplayExpandedMark:o.Visible};i.Action=e}i=o,s=o.ChildGroups}return t.length>0?e[e.length-1]:null}createBuilderExtender(){const e=this.model.categoriesFields;return 1===(null==e?void 0:e.length)&&e[0].dataType===a.a.DateTime?new u.a(c.a.ensureExpression(e[0].ExpressionBody)):new d.a}getDefaultLegendItemExpression(){return"Series 1"}}},function(e,t,r){"use strict";var i;r.d(t,"a",(function(){return i})),function(e){e[e.TopLeft=0]="TopLeft",e[e.TopCenter=1]="TopCenter",e[e.TopRight=2]="TopRight",e[e.LeftTop=3]="LeftTop",e[e.LeftCenter=4]="LeftCenter",e[e.LeftBottom=5]="LeftBottom",e[e.RightTop=6]="RightTop",e[e.RightCenter=7]="RightCenter",e[e.RightBottom=8]="RightBottom",e[e.BottomLeft=9]="BottomLeft",e[e.BottomCenter=10]="BottomCenter",e[e.BottomRight=11]="BottomRight",e[e.Absolute=12]="Absolute",e[e.Center=13]="Center"}(i||(i={}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(1);class n{createScale(){return{NetType:i.a.CategoryScale}}getSeriesExpression(){return null}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(1),n=r(342),s=r(328);class a{constructor(e){this.fieldExpression=e}createScale(e,t){var r;const a={NetType:i.a.DateTimeScale};return e&&(a.PositionMode=s.a[e.positionMode],a.BaseUnit=n.a[e.baseUnit],a.LabelUnit=n.a[e.labelUnit],a.LabelStep=e.labelStep,a.MajorStep=e.majorStep,a.MajorUnit=n.a[e.majorUnit],a.MinorStep=e.minorStep,a.MinorUnit=n.a[e.minorUnit],t.LabelFormat=null!==(r=e.labelFormat)&&void 0!==r?r:""),a}getSeriesExpression(){return this.fieldExpression}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(156),n=r(25),s=r(51),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends i.a{constructor(e,t,r,i){super(e,t,r),this.contextMenuItems=i}addMenuItems(){return a(this,void 0,void 0,(function*(){this.menuItems=[];for(const e of this.contextMenuItems){const t={Name:n.a[n.a.AddToFields],Title:`${this.sr.AddToFields} ${e}`,Action:this.addToFields.bind(this)};this.menuItems.push(t)}}))}addToFields(e){const t=$(e.item).find(".context-menu__text").text().replace(this.sr.AddToFields,"").trim();this.targetElementEventEmitter.emit(new s.e(t,{bubbles:!0}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(269);class n extends i.a{constructor(){super(...arguments),this.dropSources=["data-fields","graph-series","graph-measures"]}get title(){return this.sr.CategoriesTitle}getDataFields(){return this.model.categoriesFields}getListTemplate(){return'<div id="graph-categories" class="editor__list"></div>'}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(603),n=r(269),s=r(41),a=r(366);class o extends n.a{constructor(){super(...arguments),this.dropSources=["data-fields","graph-categories","graph-series"]}get title(){return this.sr.ValuesTitle}getDataFields(){return this.model.measureFields}getNewDataField(e){const t=super.getNewDataField(e),r=a.a.fieldTypes.find(e=>e[0]===t.dataType);return t.aggregateFunction=r[1]===s.a.NumericField?"Sum":"Count",t}getDroppableListTemplate(){return'<div id="#: id #"\n                    class="editor__list-item k-chip k-chip-md k-rounded-full k-chip-solid k-chip-solid-base">\n                    <span class="k-chip-content">\n                        #if(aggregateFunction){#\n                            <span class="k-chip-text">#: aggregateFunction#(#: name #)</span>\n                        #}else{#\n                            <span class="k-chip-text">#: name #</span>\n                        #}#\n                        <span class="k-chip-actions">\n                            <span class="k-chip-action editor__edit">\n                                <span class="k-icon k-i-more-vertical"></span>\n                            </span>\n                        </span>\n                    </span>\n                </div>'}initContextMenu(e,t){return this.contextMenu=new i.a(e,t,this.provider,this.model),this.contextMenu.init()}getListTemplate(){return'<div id="graph-measures" class="editor__list"></div>'}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(156),n=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class s extends i.a{constructor(e,t,r,i){super(e,t,r),this.model=i}getTargetElementId(e){return e.target.parentElement.parentElement.id}addMenuItems(){const e=Object.create(null,{addAggregateMenuItems:{get:()=>super.addAggregateMenuItems},addMenuItems:{get:()=>super.addMenuItems}});return n(this,void 0,void 0,(function*(){const t=this.addAggregateFunction.bind(this);return yield e.addAggregateMenuItems.call(this,this.model,t),e.addMenuItems.call(this)}))}addAggregateFunction(e){const t=this.model.measureFields.find(t=>t.id===this.getTargetElementId(e));super.addAggregateFunction(e,t)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(269);class n extends i.a{constructor(){super(...arguments),this.checkBoxTemplate=`<div class="twd-editor -bool twd-graph-series-category-item-checkbox">\n            <span class="k-checkbox-wrap twd-graph-series-checkbox-wrap">\n                <input type="checkbox" id="tooltips-checkbox" ${this.model.setDefaultTooltips?'checked="checked"':""} class="k-checkbox k-checkbox-md k-rounded-md editor__value" />\n            </span>\n            <label class="k-checkbox-label twd-graph-series-checkbox-default-tooltips editor__name" title="${this.sr.SetDefaultTooltips}" for="tooltips-checkbox">${this.sr.SetDefaultTooltips}</label>\n        </div>`,this.innerTemplate=`${this.getListTemplate()}${this.checkBoxTemplate}`,this.dropSources=["data-fields","graph-categories","graph-measures"]}get title(){return this.sr.SeriesTitle}getDataFields(){return this.model.seriesFields}getListTemplate(){return'<div id="graph-series" class="editor__list"></div>'}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(86),n=r(13),s=r(51);class a extends i.a{constructor(e,t,r){super(e,t),this.model=r,this.class="",this.innerTemplate='<input class="editor__dropdown" type="text" />'}get title(){return`${this.model.graphType} ${this.sr.GraphTypeTitle}`}Dispose(){}init(){const e=this.$parent.find("#"+this.id);e.find("input").kendoDropDownList({dataSource:this.model.graphSubTypes,autoWidth:!0,valueTemplate:e=>`<span title="${e.name}" class="k-icon ${e.iconClassName}"></span>${e.name}`,template:e=>`<span class="k-icon ${e.iconClassName}"></span><span class="twd-graph-wizard-category-name-template">${e.name}</span>`,value:this.model.selectedSubType?this.model.selectedSubType:this.model.graphSubTypes[0].name,dataValueField:"name",change:t=>{this.model.selectedSubType=t.sender.value(),new n.a(e[0]).emit(new s.a(this.model.selectedSubType,{bubbles:!0}))}})}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var i=r(1),n=r(0),s=r(3),a=r(93),o=r(12),l=r(16),c=r(96),d=r(270),u=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class h extends d.a{constructor(e,t,r,i){super(e),this.graphPropertyStore=t,this.targetContainer=r,this.position=i,this.model=this.initializeModel()}close(){this.isInitialized&&(this.isInitialized=!1,kendo.destroy(this.$visualElement),this.removeEvents(),this.Dispose(),this.$visualElement.remove())}save(){return u(this,void 0,void 0,(function*(){if(this.isOpen&&(this.$visualElement.removeClass("-open"),this.isOpen=!1,this.Dispose(),this.model.hasSelection)){const e=this.provider.getServiceByName(s.a.IDesignerHost).CreateTransaction("Graph wizard create");let t=null;try{yield this.animationEnd().then(()=>u(this,void 0,void 0,(function*(){this.close()})));const r=this.provider.getService(a.a);yield Object(c.a)(r.Start(),()=>u(this,void 0,void 0,(function*(){this.CreateGraphBuilder().createGraph();const r=this.provider.getServiceByName(s.a.IDesignSurfaceManager);t=yield r.ActiveDesignSurface.createNewComponent(i.a.Graph,this.graphPropertyStore,this.targetContainer,this.position),this.embedNewComponent(this.targetContainer,t);const a=this.targetContainer.getProperty(n.a.Items);this.targetContainer.raiseComponentChanged(a,null,null);this.provider.getService(l.a).SetSelectedComponents([t]),e.Commit()})))}catch(r){this.provider.getService(o.a).error(r.message,r),e.Rollback(),null==t||t.delete(),this.close()}}}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e){this.name=e,this.children=[]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i,n=r(43),s=r(4),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=i=class extends n.a{constructor(e){super(i.getEventName(),e)}};o.getEventName=()=>"ShowDescriptionEvent",o=i=a([Object(s.e)()],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(44),n=r(157);class s extends n.a{constructor(){super(...arguments),this.graphType=this.sr.AreaChart}getSubTypes(){return[{name:this.sr.ClusteredAreaGraph,iconClassName:this.schemaService.getIconClass(i.a.AreaGraph)},{name:this.sr.StackedAreaGraph,iconClassName:this.schemaService.getIconClass(i.a.StackedAreaGraph)},{name:this.sr.Stacked100AreaGraph,iconClassName:this.schemaService.getIconClass(i.a.Stacked100AreaGraph)}]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(1),n=r(3),s=r(271),a=r(8);class o extends s.a{constructor(e,t){super(e),this.graphPropertyStore=t,this.categoriesFields=[],this.seriesFields=[],this.setDefaultTooltips=!0,this.graphPropertyStore=t;const r=this.provider.getServiceByName(n.a.IDesignerHost).RootComponent;this.sr=this.provider.getService(a.a),this.schemaService=this.provider.getServiceByName(n.a.ISchemaService),this.dataSources=r.DataSources,this.dataSource=null,this.graphSubTypes=this.getSubTypes(),this.selectedSubType=this.graphSubTypes[0].name}get hasType(){return this.graphPropertyStore.NetType===i.a.Graph}resetFields(){this.categoriesFields=[],this.seriesFields=[]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(612),n=r(155),s=r(614);class a extends n.a{get WizardHeader(){return this.sr.BarGraphWizardHeader}CreateGraphBuilder(){return new i.a(this.provider,this.graphPropertyStore,this.model)}initializeModel(){return new s.a(this.provider,this.graphPropertyStore)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(5),n=r(1),s=r(369),a=r(98),o=r(267);class l extends o.a{createCoordinateSystem(){const e={NetType:n.a.CartesianCoordinateSystem,Name:this.namingService.CreateName(n.a.CartesianCoordinateSystem)},t={NetType:n.a.GraphAxis,Name:this.namingService.CreateName(n.a.GraphAxis)},r={NetType:n.a.NumericalScale};t.Scale=r,this.getArrangeMode()===a.a.Stacked100&&(t.LabelFormat="{0:P0}"),e.XAxis=t.Name,this.graphPropertyStore.Axes=this.graphPropertyStore.Axes||[],this.graphPropertyStore.Axes.push(t);const i={NetType:n.a.GraphAxis,Name:this.namingService.CreateName(n.a.GraphAxis)};return i.Scale=this.extender.createScale(this.model,i),e.YAxis=i.Name,this.graphPropertyStore.Axes.push(i),e}createSeries(){return{NetType:n.a.BarSeries}}initializeSeries(e,t){s.a.InitializeSeries(this.graphPropertyStore,e),e.X=t,e.Y=this.extender.getSeriesExpression(),e.ArrangeMode=a.a[this.getArrangeMode()],e.DataPointStyle=e.DataPointStyle||{NetType:n.a.Style},e.DataPointStyle.LineWidth=i.a.Zero.ToString(),e.DataPointStyle.Visible=!0}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(5),n=r(483),s=r(370);class a extends s.a{initialize(e){super.initialize(e);const t=e;t.DataPointLabelAlignment=n.a[n.a.OutsideEnd],t.DataPointLabelOffset=i.a.Mm(1).ToString()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(44),n=r(157);class s extends n.a{constructor(){super(...arguments),this.graphType=this.sr.BarChart}getSubTypes(){return[{name:this.sr.ClusteredBarGraph,iconClassName:this.schemaService.getIconClass(i.a.ClusteredBarGraph)},{name:this.sr.StackedBarGraph,iconClassName:this.schemaService.getIconClass(i.a.StackedBarGraph)},{name:this.sr.Stacked100BarGraph,iconClassName:this.schemaService.getIconClass(i.a.Stacked100BarGraph)}]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(616),n=r(155),s=r(617);class a extends n.a{get WizardHeader(){return this.sr.ColumnGraphWizardHeader}CreateGraphBuilder(){return new i.a(this.provider,this.graphPropertyStore,this.model)}initializeModel(){return new s.a(this.provider,this.graphPropertyStore)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(1),n=r(266),s=r(98),a=r(5);class o extends n.a{createSeries(){return{NetType:i.a.BarSeries}}initializeSeries(e,t){e.X=this.extender.getSeriesExpression(),e.Y=t,e.ArrangeMode=s.a[this.getArrangeMode()],e.DataPointStyle=e.DataPointStyle||{NetType:i.a.Style},e.DataPointStyle.Visible=!0,e.DataPointStyle.LineWidth=a.a.Zero.ToString()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(44),n=r(157);class s extends n.a{constructor(){super(...arguments),this.graphType=this.sr.ColumnChart}getSubTypes(){return[{name:this.sr.ClusteredColumnGraph,iconClassName:this.schemaService.getIconClass(i.a.ClusteredColumnGraph)},{name:this.sr.StackedColumnGraph,iconClassName:this.schemaService.getIconClass(i.a.StackedColumnGraph)},{name:this.sr.Stacked100ColumnGraph,iconClassName:this.schemaService.getIconClass(i.a.Stacked100ColumnGraph)}]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(372),n=r(619),s=r(155),a=r(620);class o extends s.a{get WizardHeader(){return this.sr.LineGraphWizardHeader}CreateGraphBuilder(){switch(this.model.selectedSubType){case this.sr.WithMarkersLineGraph:case this.sr.StackedWithMarkersLineGraph:case this.sr.Stacked100WithMarkersLineGraph:return new n.a(this.provider,this.graphPropertyStore,this.model);default:return new i.a(this.provider,this.graphPropertyStore,this.model)}}initializeModel(){return new a.a(this.provider,this.graphPropertyStore)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(372),n=r(1);class s extends i.a{initializeSeries(e,t){super.initializeSeries(e,t),e.DataPointStyle=e.DataPointStyle||{NetType:n.a.Style},e.DataPointStyle.Visible=!0}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(44),n=r(157);class s extends n.a{constructor(){super(...arguments),this.graphType=this.sr.LineChart}getSubTypes(){return[{name:this.sr.LineGraph,iconClassName:this.schemaService.getIconClass(i.a.LineGraph)},{name:this.sr.StackedLineGraph,iconClassName:this.schemaService.getIconClass(i.a.StackedLineGraph)},{name:this.sr.Stacked100LineGraph,iconClassName:this.schemaService.getIconClass(i.a.Stacked100LineGraph)},{name:this.sr.WithMarkersLineGraph,iconClassName:this.schemaService.getIconClass(i.a.WithMarkersLineGraph)},{name:this.sr.StackedWithMarkersLineGraph,iconClassName:this.schemaService.getIconClass(i.a.StackedWithMarkersLineGraph)},{name:this.sr.Stacked100WithMarkersLineGraph,iconClassName:this.schemaService.getIconClass(i.a.Stacked100WithMarkersLineGraph)}]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(622),n=r(373),s=r(155),a=r(623);class o extends s.a{get WizardHeader(){return this.sr.PieGraphWizardHeader}CreateGraphBuilder(){switch(this.model.selectedSubType){case this.sr.DoughnutGraph:return new i.a(this.provider,this.graphPropertyStore,this.model);default:return new n.a(this.provider,this.graphPropertyStore,this.model)}}initializeModel(){return new a.a(this.provider,this.graphPropertyStore)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(373);class n extends i.a{createCoordinateSystem(){const e=super.createCoordinateSystem();return e.InnerRadiusRatio=.3,e}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(44),n=r(157);class s extends n.a{constructor(){super(...arguments),this.graphType=this.sr.PieChart}getSubTypes(){return[{name:this.sr.PieGraph,iconClassName:this.schemaService.getIconClass(i.a.PieGraph)},{name:this.sr.DoughnutGraph,iconClassName:this.schemaService.getIconClass(i.a.DoughnutGraph)}]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var i=r(27),n=r(79),s=r(42),a=r(6),o=r(0),l=r(3),c=r(12),d=r(16),u=r(8),h=r(33),p=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class m extends h.a{constructor(e){super(a.a.NewItem,e)}execute(e){return p(this,void 0,void 0,(function*(){const t=this.provider.getService(d.a),r=this.provider.getServiceByName(l.a.IDesignSurfaceManager),s=this.provider.getServiceByName(l.a.IDesignerHost).CreateTransaction(`New '${e.NetType}' item`);try{const a=t.PrimarySelection;if(!a)throw new Error(this.provider.getService(u.a).SelectComponentToCreateTheNewItem);const l=e.ParentComponent||n.a.GetContainerForNewItem(a,e.NetType);if(!l){const t=i.a.String(this.provider.getService(u.a).CannotAddItemIntoParent,{newItemType:e.NetType,parentType:l.Type});throw new Error(t)}const c=l.getProperty(o.a.Items);l.raiseComponentChanging(c),yield this.executeComponent(e.NetType,e.Position,r,l,c,t),s.Commit()}catch(e){this.provider.getService(c.a).warning(e.message,e),s.Rollback()}}))}executeComponent(e,t,r,i,n,a){return p(this,void 0,void 0,(function*(){const o=yield r.ActiveDesignSurface.createNewComponent(e,null,i,t);return i instanceof s.a&&i.Designer.nestInTableCell(o),i.raiseComponentChanged(n,null,null),a.SetSelectedComponents([o]),o}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(6),n=r(374),s=r(107),a=r(74),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends s.b{constructor(e){super(e,i.a.NewSqlDataSourceWizard)}executeWizard(e,t,r){return o(this,void 0,void 0,(function*(){const i=yield t.ActiveDesignSurface.createNewComponent(e.NetType,null,r),s=new a.b(this.provider,n.a).create({component:i});yield s.open()}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(0),n=r(3),s=r(158),a=r(148),o=r(222),l=r(12),c=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class d extends s.a{constructor(e,t){super(e,t),this.ConnectionsService=t.getServiceByName(n.a.ISqlDataConnectionService),this.ResolvedTempParameters=null,this.InitialConnectionName=null,this.ConnectionName=null,this.ConnectionString=this.GetPropertyValue(i.a.ConnectionString),this.ProviderName=this.GetPropertyValue(i.a.ProviderName),this.SaveConnection=null,this.SelectCommandType=this.GetPropertyValue(i.a.SelectCommandType),this.SelectCommand=this.GetPropertyValue(i.a.SelectCommand),this.Parameters=o.a.CloneCollection(this.GetPropertyValue(i.a.Parameters)),this.DesignTimeParameters=[],this.fillDesignTimeParameters(),this.ConnectionStrings=null,this.CanAddConnection=null,this.CanEmbeddedConnection=null}fillDesignTimeParameters(){const e=this.GetPropertyValue(i.a.ParameterValues);if(!e)return;const t=JSON.parse(e);if(t)for(const e of this.Parameters)this.DesignTimeParameters.push(new a.a(e.Name,null,t[e.Name]))}get IsModelValid(){return!(!this.ConnectionString&&!this.ConnectionName||!this.SelectCommand)}Initialize(){return c(this,void 0,void 0,(function*(){this.ConnectionStrings=yield this.ConnectionsService.GetConnectionStrings();const e=yield this.ConnectionsService.ConnectionsPermissions();this.CanAddConnection=e.CanAddSharedConnection,this.CanEmbeddedConnection=e.CanEmbeddedConnection}))}Save(){var e;return c(this,void 0,void 0,(function*(){const t=this.provider.getServiceByName(n.a.IDesignerHost).CreateTransaction("SqlDataSource Wizard");try{yield this.saveConnection(),this.SetPropertyValue(i.a.ProviderName,this.ProviderName),this.SetPropertyValue(i.a.ConnectionString,null!==(e=this.ConnectionName)&&void 0!==e?e:this.ConnectionString),this.SetPropertyValue(i.a.SelectCommand,this.SelectCommand),this.SetPropertyValue(i.a.SelectCommandType,this.SelectCommandType),this.SetPropertyValue(i.a.Parameters,o.a.CloneCollection(this.Parameters)),this.SetPropertyValue(i.a.ParameterValues,o.a.PrepareDesignTimeParametersObject(this.DesignTimeParameters)),t.Commit()}catch(e){t.Rollback();this.provider.getService(l.a).error(e.message,e)}}))}PrepareModel(e){}saveConnection(){return c(this,void 0,void 0,(function*(){if(this.SaveConnection){const e=this.provider.getServiceByName(n.a.ISqlDataConnectionService),t={Name:this.ConnectionName,Provider:this.ProviderName,ConnectionString:this.ConnectionString};yield e.AddConnectionString(t),this.ConnectionString=this.ConnectionName}}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r(159),n=r(628),s=r(436),a=r(631),o=r(484),l=r(485),c=r(437),d=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class u extends i.a{init(){return d(this,void 0,void 0,(function*(){yield this.createPage(this.pageOrder[0])}))}get pageOrder(){return[n.a,a.a,s.a,o.a,l.a,c.a]}getPreviousPage(){return this.currentPage instanceof c.a?this.wizardModel.Parameters.length>0?this.createPage(this.pageOrder.find(e=>e===l.a)):this.createPage(this.pageOrder.find(e=>e===s.a)):super.getPreviousPage()}getNextPage(){return this.currentPage instanceof s.a?this.wizardModel.Parameters.length>0?this.createPage(this.pageOrder.find(e=>e===o.a)):this.createPage(this.pageOrder.find(e=>e===c.a)):super.getNextPage()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(28),n=r(629),s=r(3),a=r(2),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let c=class extends i.a{constructor(e,t){super(e,t),this.connectionValid=!0,this.connectionService=t.getServiceByName(s.a.ISqlDataConnectionService)}getTemplate(){return this.templates.Editors.Wizards.SqlDataSource.Pages.chooseDataConnectionPageComponentTemplate}get ConnectionValid(){return this.getByPropertyName(e=>{e.connectionValid})}set ConnectionValid(e){this.setByPropertyName(e=>{e.connectionValid},e)}getPageModel(e){return this.Model=new n.a(this.provider,e),this.Model}testConnectionClick(){return l(this,void 0,void 0,(function*(){this.ConnectionValid=yield this.isConnectionValid()}))}IsPageValid(){return l(this,void 0,void 0,(function*(){return this.isConnectionValid()}))}getSuccessMessageDisplay(){return null===this.Model.ConnectionError?"block":"none"}isConnectionValid(){return l(this,void 0,void 0,(function*(){let e;e=this.Model.UsePredefinedConnection?this.Model.SelectedConnection:{Name:null,Provider:this.Model.ProviderName,ConnectionString:this.Model.ConnectionString};const t=yield this.connectionService.TestConnection(e);return"true"===t?(this.Model.ConnectionError=null,!0):(this.Model.ConnectionError=t,!1)}))}};c=o([Object(a.a)("sql-choose-data-source-page")],c)},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(48),n=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class s extends i.a{constructor(){super(...arguments),this.usePredefinedConnection=!1,this.availableConnections=null,this.availableProviders=[],this.providerName=null}get AvailableConnections(){return this.getByPropertyName(e=>{e.availableConnections})}set AvailableConnections(e){this.setByPropertyName(e=>{e.availableConnections},e)}get AvailableProviders(){return this.getByPropertyName(e=>{e.availableProviders})}set AvailableProviders(e){this.setByPropertyName(e=>{e.availableProviders},e)}get ProviderName(){return this.getByPropertyName(e=>{e.providerName})}set ProviderName(e){this.setByPropertyName(e=>{e.providerName},e)}get ConnectionError(){return this.getByPropertyName(e=>{e.connectionError})}set ConnectionError(e){this.setByPropertyName(e=>{e.connectionError},e)}get SelectedConnection(){return this.getByPropertyName(e=>{e.selectedConnection})}set SelectedConnection(e){this.setByPropertyName(e=>{e.selectedConnection},e)}get IsModelValid(){return this.UsePredefinedConnection||!!this.ConnectionString&&!!this.ProviderName}get ConnectionString(){return this.UsePredefinedConnection?null:this.getByPropertyName(e=>{e.connectionString})}set ConnectionString(e){this.setByPropertyName(e=>{e.connectionString},e)}get UsePredefinedConnection(){return this.getByPropertyName(e=>{e.usePredefinedConnection})}set UsePredefinedConnection(e){this.setByPropertyName(e=>{e.usePredefinedConnection},e),e||this.ProviderName||(this.ProviderName=this.AvailableProviders[0])}get SelectedConnectionName(){return this.getByPropertyName(e=>{e.selectedConnectionName})}set SelectedConnectionName(e){this.setByPropertyName(e=>{e.selectedConnectionName},e),this.SelectedConnection=this.AvailableConnections.find(t=>t.Name===e)}get CanAddConnection(){return this.getByPropertyName(e=>{e.canAddConnection})}set CanAddConnection(e){this.setByPropertyName(e=>{e.canAddConnection},e)}Initialize(){return n(this,void 0,void 0,(function*(){if(this.AvailableConnections=this.wizardModel.ConnectionStrings,this.CanAddConnection=this.wizardModel.CanAddConnection,this.CanAddConnection){const e=yield this.wizardModel.ConnectionsService.GetDbProviders();this.AvailableProviders=e.map(e=>e.Name)}this.SelectedConnectionName=this.wizardModel.ConnectionString,this.AvailableConnections.length>0&&(this.SelectedConnection||!this.wizardModel.ConnectionString)?this.UsePredefinedConnection=!0:(this.UsePredefinedConnection=!1,this.ProviderName=this.wizardModel.ProviderName,this.ConnectionString=this.wizardModel.ConnectionString),this.AvailableConnections.length>0&&!this.SelectedConnection&&(this.SelectedConnectionName=this.AvailableConnections[0].Name)}))}OnLeave(e){return n(this,void 0,void 0,(function*(){const e=this.wizardModel;if(this.UsePredefinedConnection){const t=this.SelectedConnection;t?(e.InitialConnectionName=t.Name,e.ConnectionString=t.ConnectionString,e.ProviderName=t.Provider):(e.InitialConnectionName="",e.ConnectionString="",e.ProviderName="")}else e.InitialConnectionName="connectionStringName1",e.ConnectionString=this.ConnectionString,e.ProviderName=this.ProviderName;this.ConnectionError=void 0}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(12),n=r(48),s=r(222),a=r(253),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends n.a{constructor(){super(...arguments),this.isSelectCommandType=!1,this.isStoredProcedureCommandType=!1,this.procedures=[]}get Procedures(){return this.getByPropertyName(e=>{e.procedures})}set Procedures(e){this.setByPropertyName(e=>{e.procedures},e)}get SelectStatement(){return this.getByPropertyName(e=>{e.selectStatement})}set SelectStatement(e){this.setByPropertyName(e=>{e.selectStatement},e)}get SelectedProcedure(){return this.getByPropertyName(e=>{e.selectedProcedure})}set SelectedProcedure(e){this.setByPropertyName(e=>{e.selectedProcedure},e)}get ShouldConfigureParameters(){return this.getByPropertyName(e=>{e.shouldConfigureParameters})}set ShouldConfigureParameters(e){this.setByPropertyName(e=>{e.shouldConfigureParameters},e)}get IsModelValid(){return this.isSelectStatementValid&&this.isStoredProcedureValid}get isSelectStatementValid(){return this.IsStoredProcedureCommandType||!!this.SelectStatement}get isStoredProcedureValid(){return this.IsSelectCommandType||!!this.SelectedProcedure}get IsSelectCommandType(){return this.getByPropertyName(e=>{e.isSelectCommandType})}set IsSelectCommandType(e){this.setIsSelectCommandType(e),this.setIsStoredProcedureCommandType(!e),this.updateData()}get IsStoredProcedureCommandType(){return this.getByPropertyName(e=>{e.isStoredProcedureCommandType})}set IsStoredProcedureCommandType(e){this.setIsStoredProcedureCommandType(e),this.setIsSelectCommandType(!e),this.updateData()}setIsSelectCommandType(e){this.setByPropertyName(e=>{e.isSelectCommandType},e)}setIsStoredProcedureCommandType(e){this.setByPropertyName(e=>{e.isStoredProcedureCommandType},e)}Initialize(){return o(this,void 0,void 0,(function*(){const e=this.wizardModel.SelectCommand;this.wizardModel.SelectCommandType===a.a[a.a.Text]?(this.IsSelectCommandType=!0,this.SelectStatement=e):(this.IsStoredProcedureCommandType=!0,this.SelectedProcedure=e),this.updateData()}))}OnEnter(){return o(this,void 0,void 0,(function*(){this.connectionString===this.wizardModel.ConnectionString&&this.providerName===this.wizardModel.ProviderName||(this.connectionString=this.wizardModel.ConnectionString,this.providerName=this.wizardModel.ProviderName),yield this.FillProcedures()}))}OnLeave(e){return o(this,void 0,void 0,(function*(){if(this.updateData(),e.Forward){const e={QueryInfo:{Name:this.wizardModel.ConnectionName,Provider:this.providerName,ConnectionString:this.connectionString,SelectCommand:this.wizardModel.SelectCommand,SelectCommandType:this.wizardModel.SelectCommandType,CommandTimeOut:60},Parameters:this.wizardModel.Parameters},t=yield this.wizardModel.ConnectionsService.GetParameters(e);s.a.UpdateParameters(t,this.wizardModel.Parameters),this.ShouldConfigureParameters=this.wizardModel.Parameters.length>0}}))}FillProcedures(){return o(this,void 0,void 0,(function*(){const e={Name:"",Provider:this.wizardModel.ProviderName,ConnectionString:this.wizardModel.ConnectionString};try{const t=yield this.wizardModel.ConnectionsService.GetStoredProcedures(e),r=[];if(t)for(const e of t)r.push(l.GenerateProcedureName(e));this.Procedures=r}catch(e){this.provider.getService(i.a).error("Could not access the database stored procedures.",e)}}))}updateData(){this.IsStoredProcedureCommandType?(this.wizardModel.SelectCommandType=a.a[a.a.StoredProcedure],this.wizardModel.SelectCommand=this.SelectedProcedure):(this.wizardModel.SelectCommandType=a.a[a.a.Text],this.wizardModel.SelectCommand=this.SelectStatement)}static GenerateProcedureName(e){return e?`${e.SchemaName}.${e.ProcedureName}`:null}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(28),n=r(632),s=r(2),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{getTemplate(){return this.templates.Editors.Wizards.SqlDataSource.Pages.dataConnectionOptionsPageComponentTemplate}getPageModel(e){return this.Model=new n.a(this.provider,e),this.Model}toggleValidationMessage(){$("#input-connection-name").closest(".twd-editor").toggleClass("-invalid",!this.Model.IsModelValid)}};o=a([Object(s.a)("sql-data-connection-options-pages")],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(48),n=r(8),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends i.a{get UseAsShared(){return this.getByPropertyName(e=>{e.useAsShared})}set UseAsShared(e){this.setByPropertyName(e=>{e.useAsShared},e),this.updateData()}get IsModelValid(){return!this.UseAsShared||!!this.ConnectionName}get SharedEnabled(){return this.getByPropertyName(e=>{e.sharedEnabled})}set SharedEnabled(e){this.setByPropertyName(e=>{e.sharedEnabled},e)}get SharedDescription(){return this.getByPropertyName(e=>{e.sharedDescription})}set SharedDescription(e){this.setByPropertyName(e=>{e.sharedDescription},e)}get EmbeddedDescription(){return this.getByPropertyName(e=>{e.embeddedDescription})}set EmbeddedDescription(e){this.setByPropertyName(e=>{e.embeddedDescription},e)}get ConnectionNameEnabled(){return this.UseAsShared&&this.wizardModel.CanAddConnection}get ConnectionName(){return this.getByPropertyName(e=>{e.connectionName})}set ConnectionName(e){this.setByPropertyName(e=>{e.connectionName},e),this.updateData()}get CanEmbeddedConnection(){return this.getByPropertyName(e=>{e.canEmbeddedConnection})}set CanEmbeddedConnection(e){this.setByPropertyName(e=>{e.canEmbeddedConnection},e)}get CanAddConnection(){return this.getByPropertyName(e=>{e.canAddConnection})&&this.UseAsShared}set CanAddConnection(e){this.setByPropertyName(e=>{e.canAddConnection},e)}Initialize(){return s(this,void 0,void 0,(function*(){this.updateData(),this.CanEmbeddedConnection=this.wizardModel.CanEmbeddedConnection,this.CanAddConnection=this.wizardModel.CanAddConnection}))}OnEnter(){return s(this,void 0,void 0,(function*(){const e=this.wizardModel;if(this.initialConnectionName!==e.InitialConnectionName||this.connectionString!==e.ConnectionString||this.providerName!==e.ProviderName){this.initialConnectionName=e.InitialConnectionName,this.connectionString=e.ConnectionString,this.providerName=e.ProviderName,this.ConnectionName=this.initialConnectionName;const t=e.GetPropertyValue("ConnectionString"),r=e.GetPropertyValue("ProviderName"),i=!(this.initialConnectionName&&t===this.initialConnectionName||t===this.connectionString&&r===this.providerName),n=this.connectionExist(this.ConnectionName);this.SharedEnabled=this.wizardModel.CanAddConnection||n,this.UseAsShared=this.SharedEnabled&&(i||n||this.UseAsShared),!n&&this.wizardModel.CanAddConnection&&this.ensureConnectionName(),this.initializeSharedDescription(n),this.updateData()}}))}initializeSharedDescription(e){const t=this.provider.getService(n.a);e?this.SharedDescription=t.SqlDataSourceSaveConnectionPageExist:this.wizardModel.CanAddConnection?this.SharedDescription=t.SqlDataSourceSaveConnectionPageSaveOnServer:this.SharedDescription=t.SqlDataSourceSaveConnectionPageNoCreatePermissions,this.EmbeddedDescription=this.wizardModel.CanEmbeddedConnection?t.SQLDataEmbeddedConnectionInfo:t.SqlDataSourceSaveConnectionPageNoEmbeddedConnections}ensureConnectionName(){for(;!this.ensureUniqueConnectionName();)this.ConnectionName="Connection1"}ensureUniqueConnectionName(){return!this.connectionExist(this.ConnectionName)}connectionExist(e){if(!e)return!0;const t=this.wizardModel.ConnectionStrings.find(t=>t.Name===e);return(null==t?void 0:t.ConnectionString)===this.connectionString&&(null==t?void 0:t.Provider)===this.providerName}updateData(){this.wizardModel.ConnectionName=this.UseAsShared?this.ConnectionName:null;const e=this.connectionExist(this.ConnectionName);this.wizardModel.SaveConnection=this.UseAsShared&&!e;!this.UseAsShared||e||this.wizardModel.CanAddConnection&&(this.wizardModel.SaveConnection=!0)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(3),n=r(329),s=r(222),a=r(1),o=r(148),l=r(48),c=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class d extends l.a{constructor(e,t){super(e,t),this.parameters=[],this.validateParameterName=e=>{let t=!1;const r=e.values.Name;if(r){this.Parameters.some(e=>e.Name===r)&&(e.preventDefault(!0),t=!0)}e.container.toggleClass("k-error",t)};const r=e.getServiceByName(i.a.IDesignerHost);this.report=r.RootComponent,this.reportParameters=this.report.ReportParameters,this.Values=[{Name:this.sr.SQLDataParameterValueBlank,Value:""},{Name:this.sr.SQLDataParameterValueExpression,Value:null,action:n.a.OpenExpressionWindow}]}get DbTypes(){return this.getByPropertyName(e=>{e.dbTypes})}set DbTypes(e){this.setByPropertyName(e=>{e.dbTypes},e)}get Values(){return this.getByPropertyName(e=>{e.values})}set Values(e){this.setByPropertyName(e=>{e.values},e)}get Parameters(){return this.getByPropertyName(e=>{e.parameters})}set Parameters(e){this.setByPropertyName(e=>{e.parameters},e)}get AvailableNames(){return this.getByPropertyName(e=>{e.availableNames})||this.setByPropertyName(e=>{e.availableNames},this.Parameters.map(e=>({Name:e.Name,Value:e.Name}))),this.getByPropertyName(e=>{e.availableNames})}Initialize(){return c(this,void 0,void 0,(function*(){this.availableValues(this.reportParameters),this.DbTypes=this.GetEnumValues(a.a.DbType)}))}OnEnter(){return this.Parameters=[...this.wizardModel.Parameters],Promise.resolve()}OnLeave(e){return c(this,void 0,void 0,(function*(){e.Forward&&(this.wizardModel.Parameters=[...this.Parameters],s.a.UpdateParameters(this.wizardModel.Parameters,this.wizardModel.DesignTimeParameters))}))}addNewParameter(){this.Parameters.push(new o.a)}availableValues(e){for(const t of e){const e=`= Parameters.${t.Name}.Value`;this.Values.push({Name:e,Value:e})}this.Parameters.forEach(e=>{if(e.Value){const t=""+e.Value.Value;this.Values.filter(e=>e.Value!==t).length===this.Values.length&&this.Values.push({Name:t,Value:t})}})}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(48),n=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class s extends i.a{constructor(e,t){super(e,t)}get DesignTimeParameters(){return this.getByPropertyName(e=>{e.designTimeParameters})}set DesignTimeParameters(e){this.setByPropertyName(e=>{e.designTimeParameters},e)}OnEnter(){return n(this,void 0,void 0,(function*(){this.DesignTimeParameters=[...this.wizardModel.DesignTimeParameters]}))}OnLeave(e){return n(this,void 0,void 0,(function*(){this.wizardModel.DesignTimeParameters=[...this.DesignTimeParameters]}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(148),n=r(48),s=r(223),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends n.a{Initialize(){return a(this,void 0,void 0,(function*(){this.Rows=10,this.QueryDataSource=new s.a([])}))}get Rows(){return this.getByPropertyName(e=>{e.rows})}set Rows(e){this.setByPropertyName(e=>{e.rows},e)}get QueryDataSource(){return this.getByPropertyName(e=>{e.queryDataSource})}set QueryDataSource(e){this.setByPropertyName(e=>{e.queryDataSource},e)}ExecuteQuery(){return a(this,void 0,void 0,(function*(){const e=[];for(const t of this.wizardModel.DesignTimeParameters){const r=new i.a(t.Name,t.DbType,null);r.Value=t.Value.Value,e.push(r)}const t={PreviewDataInfo:{Name:this.wizardModel.ConnectionName,Provider:this.wizardModel.ProviderName,ConnectionString:this.wizardModel.ConnectionString,SelectCommand:this.wizardModel.SelectCommand,SelectCommandType:this.wizardModel.SelectCommandType,CommandTimeOut:60,MaxRows:this.Rows},Parameters:e};return yield this.wizardModel.ConnectionsService.GetPreviewData(t)}))}OnLeave(e){return a(this,void 0,void 0,(function*(){this.QueryDataSource=new s.a([])}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r(70),n=r(2),s=r(85),a=r(8),o=r(10),l=r(9),c=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let d=class extends i.b{constructor(){super(...arguments),this.classNames=l.a,this.onQuitWizardClicked=new o.b,this.onCancelWindowClicked=new o.b}getTemplate(){return this.templates.Editors.Wizards.closeConfirmationWindowComponentTemplate}beforeInit(){super.beforeInit(),this.stringResources=this.provider.getService(a.a)}quitWizard(){this.onQuitWizardClicked.next(),this._$kendoWindowInstance.close()}close(){this.onCancelWindowClicked.next(),this._$kendoWindowInstance.close()}};d=c([Object(n.a)("close-confirmation-window-component")],d);class u{constructor(e){this.provider=e,this.stringResources=this.provider.getService(a.a)}create(){const e=new s.a(this.provider);e.withComponent(d).withTitle(this.stringResources.QuitWizardDialogueTitle).withVisible(!1).withWindowDimensions({width:450,minWidth:300,minHeight:160}).withModal(!0);return e.build()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(6),n=r(3),s=r(638),a=r(375),o=r(107),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};const c={TableWizard:a.a,CrosstabWizard:s.a};class d extends o.a{constructor(e){super(e,i.a.NewTableWizard)}createEmbeddedWizard(e,t,r){return l(this,void 0,void 0,(function*(){const{newComponent:i,wizard:n}=yield this.openWizard(e,t,r);return n.embedNewComponent(r,i),n}))}openWizard(e,t,r){return l(this,void 0,void 0,(function*(){const i=this.provider.getServiceByName(n.a.ISchemaService),s=yield i.getDefaultPropertyStore(e.TemplateType),a=yield t.ActiveDesignSurface.createNewComponent(e.NetType,s,r,e.Position),o=this.createWizard(e.TemplateType,a);return this.wizards.set(e.TemplateType,o),o.open(),{newComponent:a,wizard:o}}))}createWizard(e,t){return new c[e](this.provider,t)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(375),n=r(646),s=r(647),a=r(648),o=r(649);class l extends i.a{constructor(e,t){super(e,t),this.categories.find(e=>e.title===this.sr.CrosstabFieldsCategory).items=[new n.a(this.provider,this.$parent,this.model),new s.a(this.provider,this.$parent,this.model),new o.a(this.provider,this.$parent,this.model)],this.categories.find(e=>e.title===this.sr.CrosstabAppearanceCategory).items.unshift(new a.a(this.provider,this.$parent,this.model))}get WizardHeader(){return this.sr.CrosstabWizardHeader}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(15),n=r(272),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends n.a{CreateBodyItems(e){return s(this,void 0,void 0,(function*(){this.HasDetailValues&&(this.CreateColumnItems(e),yield this.CreateTotalItems(e),yield this.CreateDetailItems(e),yield this.CreateGrandItems(e))}))}CreateDetailGroups(e){return s(this,void 0,void 0,(function*(){if(this.HasDetailValues)if(this.HasColumnGroups){if(!this.HasRowGroups){const t=new i.a({},this.component,this.provider);yield t.Initialize(),e.Add(t)}}else{if(this.HasRowGroups){const t=new i.a({},this.component,this.provider);yield t.Initialize(),e.Add(t)}e.Add(yield this.CreateDetailGroup())}}))}CreateRowGroups(e){return s(this,void 0,void 0,(function*(){if(this.HasRowGroups){const t=this.StyleSheet.TableGroup,r=[];for(const e of this.RowGroups){const i=yield this.CreateBoundGroup(e,t);r.push(i)}yield this.CreateSubTotals(r);for(const t of r)e.Add(t),e=t.ChildGroups}yield this.CreateDetailGroups(e)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(15),n=r(272),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends n.a{CreateBodyItems(e){return s(this,void 0,void 0,(function*(){this.HasDetailValues&&(this.CreateColumnItems(e),yield this.CreateDetailItems(e),yield this.CreateTotalItems(e),yield this.CreateGrandItems(e))}))}CreateDetailGroups(e){return s(this,void 0,void 0,(function*(){if(this.HasDetailValues)if(this.HasColumnGroups){if(!this.HasRowGroups){const t=new i.a({},this.component,this.provider);yield t.Initialize(),e.Add(t)}}else if(e.Add(yield this.CreateDetailGroup()),this.HasRowGroups){const t=new i.a({},this.component,this.provider);yield t.Initialize(),e.Add(t)}}))}CreateRowGroups(e){return s(this,void 0,void 0,(function*(){if(this.HasRowGroups){const t=this.StyleSheet.TableGroup,r=[];for(const i of this.RowGroups){const n=yield this.CreateBoundGroup(i,t);r.push(n),e.Add(n),e=n.ChildGroups}yield this.CreateDetailGroups(e),yield this.CreateSubTotals(r)}else yield this.CreateDetailGroups(e)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(15),n=r(376),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends n.a{CreateBodyItems(e){return s(this,void 0,void 0,(function*(){this.HasDetailValues&&(this.CreateColumnItems(e),yield this.CreateDetailItems(e))}))}CreateColumnGroups(e){return s(this,void 0,void 0,(function*(){if(this.HasColumnGroups){const t=this.StyleSheet.TableGroup;for(const r of this.ColumnGroups){const i=yield this.CreateBoundGroup(r,t);e.Add(i),e=i.ChildGroups}this.HasManyValues&&(yield this.CreateHeaderGroups(e))}else yield this.CreateHeaderGroups(e)}))}CreateColumnItems(e){const t=this.DetailValues.length;for(let r=0;r<t;r++)e.Columns.Add(this.CreateTableColumn())}CreateCornerItems(e){return s(this,void 0,void 0,(function*(){this.HasRowGroups&&(this.HasColumnGroups?this.HasManyValues?(yield this.CreateEmptyCorner(e),yield this.CreateSmallHeader(e)):yield this.CreateLargeHeader(e):this.HasDetailValues&&(yield this.CreateSmallHeader(e)))}))}CreateDetailGroups(e){return s(this,void 0,void 0,(function*(){if(this.HasDetailValues)if(this.HasColumnGroups){if(!this.HasRowGroups){const t=new i.a({},this.component,this.provider);yield t.Initialize(),e.Add(t)}}else e.Add(yield this.CreateDetailGroup())}))}CreateDetailItems(e){return s(this,void 0,void 0,(function*(){const t=this.StyleSheet.TableBody,r=this.DetailValues.length;e.Rows.Add(this.CreateTableRow());for(let i=0;i<r;i++){const r=this.DetailValues[i];if(this.HasColumnGroups){const n=yield this.CreateTotalTextBox(r,t);e.SetCellContent(0,i,n)}else{const n=yield this.CreateBoundTextBox(r,t);e.SetCellContent(0,i,n)}}}))}CreateEmptyCorner(e){return s(this,void 0,void 0,(function*(){const t=this.StyleSheet.TableCorner,r=this.ColumnGroups.length,i=this.RowGroups.length,n=yield this.CreateStaticTextBox("",t);e.SetCellContentExtended(0,0,n,r,i)}))}CreateHeaderGroups(e){return s(this,void 0,void 0,(function*(){if(this.HasDetailValues){const t=this.StyleSheet.TableHeader;for(const r of this.DetailValues){const i=yield this.CreateStaticGroup(r.name,t);e.Add(i)}}}))}CreateLargeHeader(e){return s(this,void 0,void 0,(function*(){const t=this.StyleSheet.TableHeader,r=this.ColumnGroups.length,i=this.RowGroups.length;for(let n=0;n<i;n++){const i=this.RowGroups[n],s=yield this.CreateStaticTextBox(i.name,t);e.SetCellContentExtended(0,n,s,r,1)}}))}CreateRowGroups(e){return s(this,void 0,void 0,(function*(){if(this.HasRowGroups){const t=this.StyleSheet.TableGroup;for(const r of this.RowGroups){const i=yield this.CreateBoundGroup(r,t);e.Add(i),e=i.ChildGroups}}yield this.CreateDetailGroups(e)}))}CreateSmallHeader(e){return s(this,void 0,void 0,(function*(){const t=this.StyleSheet.TableHeader,r=this.ColumnGroups.length,i=this.RowGroups.length;for(let n=0;n<i;n++){const i=this.RowGroups[n],s=yield this.CreateStaticTextBox(i.name,t);e.SetCellContent(r,n,s)}}))}CreateTableContent(e){return s(this,void 0,void 0,(function*(){yield this.CreateColumnGroups(e.ColumnGroups),yield this.CreateRowGroups(e.RowGroups),yield this.CreateCornerItems(e.Corner),yield this.CreateBodyItems(e.Body)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(5),n=r(15),s=r(0),a=r(272),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends a.a{CreateBodyItems(e){return o(this,void 0,void 0,(function*(){this.HasDetailValues&&(this.CreateColumnItems(e),yield this.CreateTotalItems(e),yield this.CreateDetailItems(e),yield this.CreateGrandItems(e))}))}CreateDetailGroups(e){return o(this,void 0,void 0,(function*(){if(this.HasDetailValues)if(this.HasColumnGroups){if(!this.HasRowGroups){const t=new n.a({},this.component,this.provider);yield t.Initialize(),e.Add(t)}}else{if(this.HasRowGroups){const t=this.StyleSheet.TableGroup,r=yield this.CreateStaticGroup("",t);e.Add(r),e=r.ChildGroups}e.Add(yield this.CreateDetailGroup())}}))}CreateEmptyCorner(e){return o(this,void 0,void 0,(function*(){const t=this.StyleSheet.TableCorner,r=this.ColumnGroups.length,i=yield this.CreateStaticTextBox("",t);e.SetCellContentExtended(0,0,i,r,1)}))}CreateLargeHeader(e){return o(this,void 0,void 0,(function*(){const t=this.StyleSheet.TableHeader,r=this.ColumnGroups.length,i=this.RowGroups.length,n=this.RowGroups[i-1],s=yield this.CreateStaticTextBox(n.name,t);e.SetCellContentExtended(0,0,s,r,1)}))}CreateRowGroups(e){return o(this,void 0,void 0,(function*(){if(this.HasRowGroups){const t=[];for(const e of this.RowGroups){const r=yield this.CreateLogicGroup(e);t.push(r)}yield this.CreateSubTotals(t);for(const r of t)e.Add(r),e=r.ChildGroups}yield this.CreateDetailGroups(e)}))}CreateRowTotals(e){return o(this,void 0,void 0,(function*(){if(this.HasRowGroups&&this.HasDetailValues){const t=this.StyleSheet.GrandTotal,r=yield this.CreateStaticGroup(this.sr.Total,t);e.Add(r)}}))}CreateSmallHeader(e){return o(this,void 0,void 0,(function*(){const t=this.StyleSheet.TableHeader,r=this.ColumnGroups.length,i=this.RowGroups.length,n=this.RowGroups[i-1],s=yield this.CreateStaticTextBox(n.name,t);e.SetCellContent(r,0,s)}))}CreateSubTotals(e){return o(this,void 0,void 0,(function*(){const t=this.StyleSheet.SubTotal,r=e.length;for(let n=0;n<r;n++){const r=e[n].ChildGroups,a=this.RowGroups[n],o=yield this.CreateFieldGroup(a,t),l=o.ReportItem,c=l.getPropertyWrapper(s.a.Style).GetChildProperty(s.a.Padding).GetChildProperty(s.a.Left),d=i.a.Parse(l.getPropertyValue(s.a.Height)).Multiply(n);c.SetValue(d.ToString()),r.Add(o)}}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(206);class n extends i.a{constructor(){super(...arguments),this.dropSources=["data-fields"]}get title(){return this.sr.DetailValuesTitle}getDataFields(){return this.model.detailValues}getDroppableListTemplate(){return'<div id="#: id #"\n                    class="editor__list-item k-chip k-chip-md k-rounded-full k-chip-solid k-chip-solid-base">\n                    <span class="k-chip-content">\n                        <span class="k-chip-text">#: name #</span>\n                    </span>\n                    <span class="k-chip-actions">\n                        <span class="k-chip-action editor__edit">\n                            <span class="k-icon k-i-more-vertical"></span>\n                        </span>\n                    </span>\n                </div>'}getListTemplate(){return'<div id="table-values" class="editor__list"></div>'}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(86);class n extends i.a{constructor(e,t,r){super(e,t),this.model=r,this.class="-top-label",this.innerTemplate='<input class="twd-crosstab-style-item editor__dropdown" type="text" />',this.styleTemplate='<div class="twd-color-palet">\n                    # for (var i = 0; i < ColorScheme.length; i++) { #\n                        <span style="background-color:#: ColorScheme[i] #;" class="color-palet__item"></span>\n                    # } #\n                    <span>#: DisplayName #</span></div>'}get title(){return this.sr.Style}Dispose(){}init(){this.$parent.find(`#${this.id} input`).kendoDropDownList({dataSource:this.model.styleSheets,template:kendo.template(this.styleTemplate),valueTemplate:kendo.template(this.styleTemplate),value:this.model.styleSheet,change:e=>{this.model.styleSheet=this.model.styleSheets[e.sender.select()]}})}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(1),n=r(3),s=r(271),a=r(176),o=r(378);class l extends s.a{constructor(e,t){super(e),this.component=t;const r=this.provider.getServiceByName(n.a.IDesignerHost).RootComponent;this.dataSources=r.DataSources,this.dataSource=null,this.columnGroups=[],this.rowGroups=[],this.detailValues=[],this.layoutTypes=[a.a.SimpleLayout,a.a.BlockedBelow,a.a.BlockedAbove,a.a.SteppedAbove],this.layoutType=this.layoutTypes[0],this.styleSheets=o.a.StyleSheets,this.styleSheet=this.styleSheets[0]}get hasLayoutType(){return this.component.Type===i.a.Crosstab}get hasSelection(){return this.detailValues.length>0}resetFields(){this.rowGroups=[],this.columnGroups=[],this.detailValues=[]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(206);class n extends i.a{constructor(){super(...arguments),this.dropSources=["data-fields","crosstab-values","crosstab-rows"]}get title(){return this.sr.ColumnGroupsTitle}getDataFields(){return this.model.columnGroups}getListTemplate(){return'<div id="crosstab-columns" class="editor__list"></div>'}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(206);class n extends i.a{constructor(){super(...arguments),this.dropSources=["data-fields","crosstab-values","crosstab-columns"]}get title(){return this.sr.RowGroupsTitle}getDataFields(){return this.model.rowGroups}getListTemplate(){return'<div id="crosstab-rows" class="editor__list"></div>'}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(86);class n extends i.a{constructor(e,t,r){super(e,t),this.model=r,this.class="-top-label"}get title(){return this.sr.LayoutTitle}get innerTemplate(){const e=this.model.layoutTypes,t=this.model.layoutType;let r='<ul class="editor__option-list">';for(const i of e)r+=`<li>\n                    <span class="k-radio-wrap"><input type="radio" name="layout" id="${i}" value="${i}" class="k-radio k-radio-md" ${i===t?'checked="checked"':""}></span>\n                    <label class="k-radio-label -small-text" for="${i}">${i}</label>\n            </li>`;return r+="</ul>",r}Dispose(){}init(){this.$parent.find("#"+this.id).off("change","input[type='radio']").on("change","input[type='radio']",e=>{const t=$(e.currentTarget).val();this.model.layoutType=t.toString()})}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(650),n=r(206),s=r(41),a=r(366);class o extends n.a{constructor(){super(...arguments),this.dropSources=["data-fields","crosstab-rows","crosstab-columns"]}get title(){return this.sr.DetailValuesTitle}getDataFields(){return this.model.detailValues}getNewDataField(e){const t=super.getNewDataField(e),r=a.a.fieldTypes.find(e=>e[0]===t.dataType);return t.aggregateFunction=r[1]===s.a.NumericField?"Sum":"Count",t}getDroppableListTemplate(){return'<div id="#: id #"\n                    class="editor__list-item k-chip k-chip-md k-rounded-full k-chip-solid k-chip-solid-base">\n                    <span class="k-chip-content">\n                        #if(aggregateFunction){#\n                            <span class="k-chip-text">#:aggregateFunction#(#: name #)</span>\n                        #}else{#\n                            <span class="k-chip-text">#: name #</span>\n                        #}#\n                        <span class="k-chip-actions">\n                            <span class="k-chip-action editor__edit">\n                                <span class="k-icon k-i-more-vertical"></span>\n                            </span>\n                        </span>\n                    </span>\n                </div>'}initContextMenu(e,t){return this.contextMenu=new i.a(e,t,this.provider,this.model),this.contextMenu.init()}getListTemplate(){return'<div id="crosstab-values" class="editor__list"></div>'}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(156),n=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class s extends i.a{constructor(e,t,r,i){super(e,t,r),this.model=i}getTargetElementId(e){return e.target.parentElement.parentElement.id}addMenuItems(){const e=Object.create(null,{addAggregateMenuItems:{get:()=>super.addAggregateMenuItems},addMenuItems:{get:()=>super.addMenuItems}});return n(this,void 0,void 0,(function*(){const t=this.addAggregateFunction.bind(this);return yield e.addAggregateMenuItems.call(this,this.model,t),e.addMenuItems.call(this)}))}addAggregateFunction(e){const t=this.model.detailValues.find(t=>t.id===this.getTargetElementId(e));super.addAggregateFunction(e,t)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(6),n=r(652),s=r(667),a=r(107),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};const l={RadialGaugeWizard:n.a,LinearGaugeWizard:s.a};class c extends a.a{constructor(e){super(e,i.a.NewGaugeWizard)}createEmbeddedWizard(e,t,r){return o(this,void 0,void 0,(function*(){return yield this.openWizard(e,t,r)}))}openWizard(e,t,r){return o(this,void 0,void 0,(function*(){const t=this.createWizard(e.NetType,e.TemplateType,r,e.Position);return yield t.initProperties(),this.wizards.set(e.TemplateType,t),t.open(),t}))}createWizard(e,t,r,i){return new l[t](this.provider,e,r,i)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(379),n=r(658),s=r(175),a=r(241),o=r(666),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c extends i.a{initModel(){this.model=new n.a(this.provider)}initCategoryItems(){return l(this,void 0,void 0,(function*(){this.categoryItems=[new s.a(this.provider,this.$parent,this.sr.GaugeMajorTicksSegmentCountTitle,e=>{this.model.MajorTicksSegmentCount=e},()=>this.model.MajorTicksSegmentCount),new s.a(this.provider,this.$parent,this.sr.GaugeMinorTicksSegmentCountTitle,e=>{this.model.MinorTicksSegmentCount=e},()=>this.model.MinorTicksSegmentCount),new a.a(this.provider,this.$parent,this.sr.GaugeNeedleThicknessTitle,e=>{this.model.NeedleThickness=e},()=>this.model.NeedleThickness)]}))}get WizardHeader(){return this.sr.RadialGaugeWizardHeader}createBuilder(){return new o.a(this.model)}getTypeTitle(){return this.sr.RadialGaugeTypeTitle}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(86);class n extends i.a{constructor(e,t,r,i,n){super(e,t),this.model=r,this.gaugeTypeChangedCallback=i,this.typeTitle=n,this.class="",this.innerTemplate='<input class="editor__dropdown" type="text" />'}get title(){return this.typeTitle}Dispose(){}init(){const e=this.$parent.find("#"+this.id);this.$inputElement=e.find("input"),this.$inputElement.kendoDropDownList({dataSource:this.model.GaugeSubTypes,autoWidth:!0,valueTemplate:e=>`<span title="${e.name}" class="k-icon ${e.iconClassName}"></span>${e.name}`,template:e=>`<span class="k-icon ${e.iconClassName}"></span><span class="twd-gauge-wizard-category-name-template">${e.name}</span>`,dataValueField:"name",change:e=>{this.setModelValue(e.sender.value())}})}setValue(e){const t=e.name;this.setModelValue(t),this.$inputElement.data("kendoDropDownList").value(t)}setModelValue(e){this.model.SelectedSubType=e,this.gaugeTypeChangedCallback()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(241),n=r(655),s=r(8),a=r(656),o=r(657),l=r(193),c=r(76);class d{constructor(e,t,r,i,n){this.provider=e,this.wizard=t,this.parentCategory=r,this.model=i,this.$parent=n,this.sr=this.provider.getService(s.a),this.rangeMin=0,this.rangeMax=100,this.syncRanges=!0,this.suspendSyncRanges=!1}get items(){return this.countItem=new a.a(this.provider,this.$parent,this.rangeCountChanged.bind(this),()=>this.model.RangesCount.toString()),this.initRangeCategoryItems(),this.minItem=new i.a(this.provider,this.$parent,this.sr.GaugeMinRangeTitle,this.rangeMinChanged.bind(this),()=>this.rangeMin),this.maxItem=new i.a(this.provider,this.$parent,this.sr.GaugeMaxRangeTitle,this.rangeMaxChanged.bind(this),()=>this.rangeMax),this.syncRangesItem=new n.a(this.provider,this.$parent,this.sr.GaugeSyncRangesTitle,!0,this.syncRangesChanged.bind(this)),[this.countItem,this.minItem,this.maxItem,this.syncRangesItem].concat(this.rangeItems)}setMultiRangeItemsVisibility(e){e?(this.wizard.showCategoryItem(this.parentCategory,this.countItem.Id),this.wizard.showCategoryItem(this.parentCategory,this.syncRangesItem.Id)):(this.wizard.hideCategoryItem(this.parentCategory,this.countItem.Id),this.wizard.hideCategoryItem(this.parentCategory,this.syncRangesItem.Id))}initRangeCategoryItems(){this.rangeItems=new Array(l.a.MaxCount);for(let e=0;e<l.a.MaxCount;++e)this.rangeItems[e]=new o.a(this.provider,this.$parent,`${this.sr.GaugeRangeTitle} #${e+1}`,t=>{this.rangeChangedCallback(t,e)})}rangeCountChanged(e){const t=parseInt(e.Name);this.model.RangesCount=t;for(let e=0;e<l.a.MaxCount;++e)e<t?this.wizard.showCategoryItem(this.parentCategory,this.rangeItems[e].Id):this.wizard.hideCategoryItem(this.parentCategory,this.rangeItems[e].Id);this.setRanges(),this.setRangesColors(e),this.syncRangesItem.setDisabled(1===t)}rangeMinChanged(e){this.model.HasValueMin=c.a.IsNumber(e.toString()),this.rangeMin=e?parseFloat(e):0,this.setRanges()}rangeMaxChanged(e){this.model.HasValueMax=c.a.IsNumber(e.toString()),this.rangeMax=e?parseFloat(e):0,this.setRanges()}setRanges(){this.setRangesProperties(),this.setRangesValues()}setRangesValues(){const e=this.getBoundaries();let t=(e.max-e.min)/this.model.RangesCount;const r=Math.floor(t);r>0&&(t=r);let i=e.min;this.suspendSyncRanges=!0;for(let r=0;r<this.model.RangesCount;++r){const n=i,s=r==this.model.RangesCount-1?e.max:i+t;this.rangeItems[r].setValue(n,s),i=s}this.suspendSyncRanges=!1}setRangesProperties(){const e=this.getBoundaries(),t=e.max-e.min,r=t/20,i=t/10;for(let t=0;t<this.rangeItems.length;++t)this.rangeItems[t].setProperties(e.min,e.max,r,i),this.rangeItems[t].resizeSlider()}getBoundaries(){let e,t;return this.rangeMin<this.rangeMax?(e=this.rangeMin,t=this.rangeMax):(e=this.rangeMax,t=this.rangeMin),{min:e,max:t}}setRangesColors(e){for(let t=0;t<this.model.RangesCount;++t)this.rangeItems[t].setColor(e.Colors[t]),this.model.Ranges[t].Color=e.Colors[t]}syncRangesChanged(e){this.syncRanges=e}rangeChangedCallback(e,t){this.model.Ranges[t].Start=e[0],this.model.Ranges[t].End=e[1],this.syncRanges&&!this.suspendSyncRanges&&this.synchronizeRanges(t)}synchronizeRanges(e){const t=this.model.Ranges[e];if(e-1>=0){const r=this.model.Ranges[e-1];if(r.End!==t.Start){let i=r.Start,n=t.Start;i>n&&(i=n),this.rangeItems[e-1].setValue(i,n)}}if(e+1<this.model.RangesCount){const r=this.model.Ranges[e+1];if(r.Start!==t.End){let i=t.End,n=r.End;n<i&&(n=i),this.rangeItems[e+1].setValue(i,n)}}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(86);class n extends i.a{constructor(e,t,r,i,n){super(e,t),this.label=r,this.initialValue=i,this.checkBoxChangedCallback=n,this.class="",this.innerTemplate=' <input type="checkbox" />'}get title(){return this.label}Dispose(){}init(){const e=this.$parent.find("#"+this.id);this.$inputElement=e.find("input"),this.$inputElement.kendoCheckBox({checked:this.initialValue,change:e=>{this.checkBoxChangedCallback(e.checked)}})}setDisabled(e){this.$inputElement.prop("disabled",e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(193),n=r(381);class s extends n.a{constructor(e,t,r,n){super(e,t,r,n),this.items=i.a.Items}get title(){return this.sr.GaugeRangesCountTitle}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(86),n=r(54);class s extends i.a{constructor(e,t,r,i){super(e,t),this.itemTitle=r,this.rangeChangedCallback=i,this.class=""}get title(){return this.itemTitle}get innerTemplate(){return n.a.Editors.Wizards.Embedded.Gauge.CategoryItems.rangeCategoryItem}Dispose(){}init(){this.$currentItem=this.$parent.find("#"+this.id),this.$rangeSlider=this.$currentItem.find(".gauge-range-category-item-slider"),this.$rangeSlider.kendoRangeSlider({change:e=>{this.valueChanged(e.value)},tickPlacement:"both"})}valueChanged(e){this.rangeChangedCallback(e),this.updateTitle(e)}setValue(e,t){const r=[e,t];if(this.$rangeSlider){this.$rangeSlider.data("kendoRangeSlider").value(r)}this.valueChanged(r)}setProperties(e,t,r,i){this.$rangeSlider.data("kendoRangeSlider").setOptions({min:e,max:t,smallStep:r,largeStep:i})}resizeSlider(){this.$rangeSlider.data("kendoRangeSlider").resize()}setColor(e){this.$currentItem.find(".k-slider .k-draghandle").css({"background-color":e,"border-color":e}),this.$currentItem.find(".k-slider .k-slider-selection").css("background-color",e)}updateTitle(e){if(this.$currentItem){const t=`${this.itemTitle}: <strong>[${e[0]} &mdash; ${e[1]}]</strong>`;this.$currentItem.find(".editor__name").html(t)}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(83),n=r(382),s=r(76);class a extends n.a{resetValuesFromPropertyStore(){const e=this.SelectedSubTypeDefaultStore;if(!e)return;super.resetValuesFromPropertyStore();const t=e.Ticks;t.length>1&&(this.MinorTicksSegmentCount=t[1].SegmentCount),this.NeedleThickness=e.Needle.Thickness}getSubTypes(){return[{id:i.a.SingleRangeRadialGauge,name:this.sr.SingleRangeRadialGauge,iconClassName:this.schemaService.getIconClass(i.a.SingleRangeRadialGauge),isSingleRange:!0},{id:i.a.MultiRangeRadialGauge,name:this.sr.MultiRangeRadialGauge,iconClassName:this.schemaService.getIconClass(i.a.MultiRangeRadialGauge),isSingleRange:!1}]}getDefaultSubType(){return this.GaugeSubTypes.filter(e=>e.id===i.a.MultiRangeRadialGauge)[0]}get hasSelection(){return super.hasSelection&&s.a.IsPositiveIntNumber(this.NeedleThickness)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(0),n=r(661),s=r(662),a=r(663),o=r(664),l=r(665);class c{constructor(e){this.propertyStore=e}get PropertyStore(){return this.propertyStore}get Value(){return this.propertyStore[i.a.Value][i.a.Value]}get Ranges(){return this.propertyStore[i.a.Ranges].map(e=>new n.a(e))}get Ticks(){return this.propertyStore[i.a.Ticks].map(e=>new s.a(e))}get Scales(){return this.propertyStore[i.a.Scales].map(e=>new a.a(e))}get Indicator(){return new o.a(this.propertyStore)}get Needle(){return new l.a(this.propertyStore)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(0);class n{constructor(e){this.propertyStore=e}get Start(){return this.propertyStore[i.a.Start][i.a.Value]}get End(){return this.propertyStore[i.a.End][i.a.Value]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(0);class n{constructor(e){this.propertyStore=e}get SegmentCount(){return this.propertyStore[i.a.SegmentCount][i.a.Value]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(0);class n{constructor(e){this.propertyStore=e}get Start(){return this.propertyStore[i.a.Start][i.a.Value]}get End(){return this.propertyStore[i.a.End][i.a.Value]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(0);class n{constructor(e){this.propertyStore=e}get Thickness(){return this.propertyStore[i.a.Indicator][i.a.Thickness]}get Type(){return this.propertyStore[i.a.Indicator][i.a.Type]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(0);class n{constructor(e){this.propertyStore=e}get Thickness(){return this.propertyStore[i.a.Needle][i.a.Thickness]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(383),n=r(0);class s extends i.a{createGauge(e){super.createGauge(e),this.model.NeedleThickness&&(e[n.a.Needle][n.a.Thickness]=this.model.NeedleThickness)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var i=r(379),n=r(668),s=r(175),a=r(241),o=r(381),l=r(669),c=r(670),d=r(3),u=r(1),h=r(0),p=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class m extends i.a{initModel(){this.model=new n.a(this.provider)}initCategoryItems(){return p(this,void 0,void 0,(function*(){const e=yield this.createIndicatorTypeCategory();this.categoryItems=[new s.a(this.provider,this.$parent,this.sr.GaugeScaleStartTitle,e=>{this.model.ScaleStart=e},()=>this.model.ScaleStart),new s.a(this.provider,this.$parent,this.sr.GaugeScaleEndTitle,e=>{this.model.ScaleEnd=e},()=>this.model.ScaleEnd),new s.a(this.provider,this.$parent,this.sr.GaugeMajorTicksSegmentCountTitle,e=>{this.model.MajorTicksSegmentCount=e},()=>this.model.MajorTicksSegmentCount),new s.a(this.provider,this.$parent,this.sr.GaugeMinorTicksSegmentCountTitle,e=>{this.model.MinorTicksSegmentCount=e},()=>this.model.MinorTicksSegmentCount),new a.a(this.provider,this.$parent,this.sr.GaugeIndicatorThicknessTitle,e=>{this.model.IndicatorThickness=e},()=>this.model.IndicatorThickness),e]}))}get WizardHeader(){return this.sr.LinearGaugeWizardHeader}createBuilder(){return new c.a(this.model)}getTypeTitle(){return this.sr.LinearGaugeTypeTitle}createIndicatorTypeCategory(){return p(this,void 0,void 0,(function*(){const e=new o.a(this.provider,this.$parent,e=>{this.model.IndicatorType=e.Name},()=>this.model.IndicatorType);return e.itemTitle=this.sr.GaugeIndicatorTypeTitle,e.items=yield this.createIndicatorTypeItems(),e}))}createIndicatorTypeItems(){return p(this,void 0,void 0,(function*(){let e=this.provider.getServiceByName(d.a.ISchemaService);const t=(yield e.getTypeSchema(u.a.LinearGaugeIndicator)).Properties.find(e=>e.Name===h.a.Type)[h.a.Type];return(yield e.getTypeSchema(t)).Properties.map(e=>new l.a(e[h.a.Name]))}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(83),n=r(382),s=r(76);class a extends n.a{resetValuesFromPropertyStore(){const e=this.SelectedSubTypeDefaultStore;if(!e)return;super.resetValuesFromPropertyStore();const t=e.Scales;t.length>0&&(this.ScaleStart=t[0].Start,this.ScaleEnd=t[0].End),this.IndicatorThickness=e.Indicator.Thickness,this.IndicatorType=e.Indicator.Type}getSubTypes(){return[{id:i.a.HorizontalSingleRangeLinearGauge,name:this.sr.HorizontalSingleRangeLinearGauge,iconClassName:this.schemaService.getIconClass(i.a.HorizontalSingleRangeLinearGauge),isSingleRange:!0},{id:i.a.HorizontalMultiRangeLinearGauge,name:this.sr.HorizontalMultiRangeLinearGauge,iconClassName:this.schemaService.getIconClass(i.a.HorizontalMultiRangeLinearGauge),isSingleRange:!1},{id:i.a.VerticalSingleRangeLinearGauge,name:this.sr.VerticalSingleRangeLinearGauge,iconClassName:this.schemaService.getIconClass(i.a.VerticalSingleRangeLinearGauge),isSingleRange:!0},{id:i.a.VerticalMultiRangeLinearGauge,name:this.sr.VerticalMultiRangeLinearGauge,iconClassName:this.schemaService.getIconClass(i.a.VerticalMultiRangeLinearGauge),isSingleRange:!1}]}getDefaultSubType(){return this.GaugeSubTypes.filter(e=>e.id===i.a.HorizontalMultiRangeLinearGauge)[0]}get hasSelection(){return super.hasSelection&&!s.a.IsNullOrWhiteSpace(this.ScaleStart)&&!s.a.IsNullOrWhiteSpace(this.ScaleEnd)&&s.a.IsPositiveIntNumber(this.IndicatorThickness)&&!s.a.IsNullOrWhiteSpace(this.IndicatorType)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e){this.Name=e}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(383),n=r(0);class s extends i.a{createGauge(e){super.createGauge(e);const t=e[n.a.Labels][0];this.model.ScaleStart&&(e[n.a.Scales][0][n.a.Start]=this.model.ScaleStart,t.FirstVisibleValue=this.model.ScaleStart),this.model.ScaleEnd&&(e[n.a.Scales][0][n.a.End]=this.model.ScaleEnd,t.LastVisibleValue=this.model.ScaleEnd),this.model.IndicatorThickness&&(e[n.a.Indicator][n.a.Thickness]=this.model.IndicatorThickness),this.model.IndicatorType&&(e[n.a.Indicator][n.a.Type]=this.model.IndicatorType);e[n.a.Ticks].forEach(e=>{e[n.a.LastVisibleIndex]=e[n.a.SegmentCount]})}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var i=r(6),n=r(93),s=r(96),a=r(24),o=r(263),l=r(11),c=r(12),d=r(8),u=r(3),h=r(76),p=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class m extends o.a{constructor(e){super(e,i.a.DocumentOpen)}execute(e){return p(this,void 0,void 0,(function*(){const t=this.provider.getService(n.a);yield Object(s.a)(t.Start(),()=>p(this,void 0,void 0,(function*(){if(e&&!h.a.IsNullOrWhiteSpace(e.DocumentId)){const t=e.DocumentId,r=yield this.getStorageServiceName(t);if(this.setPermissionProperties(r),e.CheckPermission&&!this.hasExecutePermission()){return this.provider.getService(c.a).error(this._permissionErrorMessage),void this.TopMenuArea.Update()}let n=this.DesignSurfaceManager.createDesignSurface(t,r);if(n?this.reportOptionsService.onReportOpened(t):(this.DesignSurfaceManager.switchDesignSurface(t),n=this.DesignSurfaceManager.getDesignSurface(t),this.reportOptionsService.onReportSwitchedTo(t)),n.DocumentLoaded||(yield n.openDocument()),!n.DocumentLoaded)return new a.a(i.a.DocumentClose,this.provider).execute(t),void this.reportOptionsService.onReportNotExisting(t);this.TopMenuArea.Update()}}))),this.TriggerDocumentUILoadedEvent()}))}setPermissionProperties(e){const t=this.provider.getService(d.a);e===u.a.SharedDataSourceStorageService?(this._permission=l.a.Commands_DataSources_SharedDataSource_Edit,this._permissionErrorMessage=t.OpenSharedDataSourcePermissionError):(this._permission=l.a.Commands_Document_Open,this._permissionErrorMessage=t.OpenDocumentPermissionError)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return P}));var i=r(20),n=r(120),s=r(45),a=r(23),o=r(35),l=r(5),c=r(79),d=r(82),u=r(42),h=r(6),p=r(0),m=r(3),g=r(12),f=r(239),v=r(40),y=r(16),S=r(262),C=r(71),b=r(27),w=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class P extends S.a{constructor(e){super(e,h.a.Paste)}isValidSelectionCore(e){return 1===e.length&&e[0]instanceof C.a||super.isValidSelectionCore(e)}execute(){return w(this,void 0,void 0,(function*(){const e=this.provider.getService(y.a).PrimarySelection,t=this.provider.getService(g.a);if(!e)return;const r=this.provider.getService(f.a),i=yield r.GetPropertyStores();if(0===i.length)return;const n=c.a.GetContainer(e,i);if(!n){const r=i.map(e=>e[p.a.NetType]),n=b.a.String(this.stringResources.CannotAddItemIntoParent,{newItemType:r.join(", "),parentType:e.Type});return void t.error(n)}this.host=this.provider.getServiceByName(m.a.IDesignerHost);let s=[],a=null;this.host.InTransaction||(a=this.host.CreateTransaction(`Paste into '${n.Name}'`));try{s=yield this.pasteComponents(n,e,i),null==a||a.Commit()}catch(e){null==a||a.Rollback(),t.error(e.message,e)}if(s.length>0){this.provider.getService(y.a).SetSelectedComponents(s)}}))}pasteComponents(e,t,r){return w(this,void 0,void 0,(function*(){this.validatePasteItems(e,r),this.adjustPastingItems(e,t,r);let i=[];return i=e instanceof u.a?yield this.pasteInTable(e,r):yield this.pasteInReportItem(e,r),i}))}validatePasteItems(e,t){for(const r of t){const t=r[p.a.NetType];if(!e.canParent(t))throw new Error(`Cannot paste a '${t}' into a '${e.Type}'.`)}}adjustPastingItems(e,t,r){const i=e.Designer.GetBounds(!0),s=i.Width,a=i.Height;if(0===s||0===a)return;let c=n.a.Empty;if(e!==t){c=n.a.Parse(t.PropertyStore[p.a.Left],t.PropertyStore[p.a.Top]);const e=this.provider.getServiceByName(m.a.IDesignSurfaceManager).ActiveDesignSurface.behaviorService.SnapGridSize;c.Offset(e,e)}const d=new o.a(new l.a(s),new l.a(a));this.updatePastePositions(r,d,c)}updatePastePositions(e,t,r){const c=this.provider.getServiceByName(m.a.IInstanceFactoryService);let u=i.a.Empty,h=i.a.Empty;const g=[];for(const t of e){c.getInstanceModel(t[p.a.NetType])instanceof d.a&&g.push(t)}for(const t of e){const e=n.a.Parse(t[p.a.Left],t[p.a.Top]).ToPixels(),r=o.a.Parse(t[p.a.Width],t[p.a.Height]).ToPixels(),a=new s.a(e,r);u.IsEmpty?u=new i.a(a.Left,a.Top):(u.X>a.Left&&(u.X=a.Left),u.Y>a.Top&&(u.Y=a.Top)),h.IsEmpty?h=new i.a(a.Right,a.Bottom):(h.X<a.Right&&(h.X=a.Right),h.Y<a.Bottom&&(h.Y=a.Bottom))}const f=new s.a(new i.a(u.X,u.Y),new a.a(h.X-u.X,h.Y-u.Y));let v=i.a.Empty;const y=r.ToPixels();if(y.IsEmpty){const e=t.ToPixels();v=new i.a((e.Width-f.Width)/2-u.X,(e.Height-f.Height)/2-u.Y)}else{let e=new s.a(y,f.Size);e=this.getItemStackLocation(e,t.ToPixels()),v=new i.a(e.X-u.X,e.Y-u.Y)}for(const e of g){const t=n.a.Parse(e[p.a.Left],e[p.a.Top]),r=t.ToPixels();r.Offset(v.X,v.Y),e[p.a.Left]=l.a.FromPixels(r.X,t.X.Type).ToString(),e[p.a.Top]=l.a.FromPixels(r.Y,t.Y.Type).ToString()}}getItemStackLocation(e,t){return(e.Bottom>=t.Height||e.Right>=t.Width)&&(e.Location=i.a.Empty),e}pasteInTable(e,t){return w(this,void 0,void 0,(function*(){if(1!==t.length)throw new Error(this.stringResources.InvalidPasteOfMultipleItemsInTableMessage);const r=this.provider.getServiceByName(m.a.IDesignSurfaceManager).ActiveDesignSurface,i=e.getProperty(p.a.Items);e.raiseComponentChanging(i);const n=yield this.createComponent(r,e,t[0]);return e.raiseComponentChanged(i,null,null),n?(e.Designer.nestInTableCell(n),[n]):[]}))}pasteInReportItem(e,t){return w(this,void 0,void 0,(function*(){const r=[],i=this.provider.getServiceByName(m.a.IDesignSurfaceManager).ActiveDesignSurface,n=e.getProperty(p.a.Items);for(const s of t){e.raiseComponentChanging(n);const t=yield this.createComponent(i,e,s);e.raiseComponentChanged(n,null,null),t&&r.push(t)}return r}))}createComponent(e,t,r){return w(this,void 0,void 0,(function*(){const i=this.provider.getService(g.a),n=this.provider.getService(v.a);r[p.a.Name]=n.CreateName(r[p.a.NetType]);let s=null;try{if(s=yield e.createNewComponent(r[p.a.NetType],r,t),!s)throw new Error(`Could not create new '${r[p.a.NetType]}'.`)}catch(e){i.error(e.message,e)}if(s){const e=[...c.a.GetAssociatedComponents(s)];e.shift();for(const t of e)t.getPropertyWrapper(p.a.Name).SetValueRaw(n.CreateName(t.Type))}return s}))}updateStatus(e){super.updateStatus(e),e.enabled&&this.updateCommandStatusOnClipboard(e)}updateCommandStatusOnClipboard(e){return w(this,void 0,void 0,(function*(){this.provider.getService(f.a).GetPropertyStores().then(t=>{e.enabled=t.length>0})}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(6),n=r(265),s=r(24),a=r(33),o=r(198),l=r(36),c=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class d extends a.a{constructor(e){super(i.a.DocumentPreview,e)}execute(e){return c(this,void 0,void 0,(function*(){const t=e;yield new s.a(i.a.DocumentSave,this.provider).executeAsync(null);const r=this.provider.getService(l.a);if(r.ReportServerLayout){const e=r.ServiceUrl.replace("/api/reportdesigner/",`/Report/Preview/${encodeURIComponent(t)}/Shelve`);window.open(e,"_blank")}else{const e=this.provider.getService(n.a);this.provider.getService(o.WebReportDesigner).Hide(),e.Show(t)}}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(6),n=r(3),s=r(93),a=r(96),o=r(33),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c extends o.a{constructor(e){super(i.a.DocumentPublish,e)}execute(e){return l(this,void 0,void 0,(function*(){const e=this.provider.getServiceByName(n.a.IDesignSurfaceManager).ActiveDesignSurface,t=this.provider.getService(s.a);yield Object(a.a)(t.Start(),()=>l(this,void 0,void 0,(function*(){yield e.publishDocument()})))}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(6),n=r(216),s=r(33),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends s.a{constructor(e){super(i.a.Redo,e),this._status.enabled=!1}updateStatus(e){super.updateStatus(e);const t=this.provider.getService(n.a);e.enabled=t&&t.RedoAvailable}execute(){return a(this,void 0,void 0,(function*(){this.provider.getService(n.a).Redo()}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(6),n=r(3),s=r(33),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends s.a{constructor(e){super(i.a.DocumentRevert,e)}execute(e){return a(this,void 0,void 0,(function*(){const e=this.provider.getServiceByName(n.a.IDesignSurfaceManager).ActiveDesignSurface;yield e.revertDocument()}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(6),n=r(205),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends n.a{constructor(e){super(e,i.a.DocumentSaveAs)}execute(e){return s(this,void 0,void 0,(function*(){const t=JSON.parse(JSON.stringify(this.DesignSurfaceManager.ActiveDesignSurface.RootComponent.PropertyStore));t.Name=e instanceof String?e:e.reportName;const r=yield this.getStorageServiceName(this.DesignSurfaceManager.ActiveDesignSurface.documentId);yield this.executeGenerateDocument(e,e=>e.createDocument(t),r)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(6),n=r(3),s=r(93),a=r(96),o=r(33),l=r(11),c=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class d extends o.a{constructor(e){super(i.a.DocumentSave,e),this._permission=l.a.Commands_Document_Save}updateStatus(e){super.updateStatus(e);const t=this.provider.getServiceByName(n.a.IDesignSurfaceManager).ActiveDesignSurface;e.enabled=t.IsModified}execute(){return c(this,void 0,void 0,(function*(){if(!this.hasExecutePermission())return;const e=this.provider.getServiceByName(n.a.IDesignSurfaceManager).ActiveDesignSurface,t=this.provider.getService(s.a);yield Object(a.a)(t.Start(),()=>c(this,void 0,void 0,(function*(){yield e.saveDocument()})))}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(79),n=r(13),s=r(46);class a{constructor(e,t){this.report=e,this.provider=t,this.onComponentAddedOrRemovedBound=this.onComponentAddedOrRemoved.bind(this),this.designSurfaceEventEmitter=this.provider.getService(n.b),this.designSurfaceEventEmitter.on(s.a,this.onComponentAddedOrRemovedBound),this.designSurfaceEventEmitter.on(s.d,this.onComponentAddedOrRemovedBound),this.Reset()}onComponentAddedOrRemoved(){this.Reset()}Reset(){this.components=Array.from(i.a.GetAssociatedComponents(this.report)),this.index=0}GetNext(e){return this.index=this.findIndex(e),++this.index,this.index===this.components.length&&(this.index=0),this.getCurrentComponent()}GetPrevious(e){return this.index=this.findIndex(e),--this.index,this.index<0&&(this.index=this.components.length-1),this.getCurrentComponent()}findIndex(e){for(const[t,r]of this.components.entries())if(r===e)return t;return-1}getCurrentComponent(){return this.components[this.index]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(6),n=r(113),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends n.a{constructor(e){super(e,i.a.SelectParent)}execute(e){return s(this,void 0,void 0,(function*(){const e=this.selectionService.PrimarySelection;if(!e)return;const t=e.Parent;t&&this.selectionService.SetSelectedComponents([t])}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(6),n=r(349);class s extends n.a{constructor(e){super(e,i.a.SendToBack,!1)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(6),n=r(216),s=r(33),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends s.a{constructor(e){super(i.a.Undo,e),this._status.enabled=!1}updateStatus(e){super.updateStatus(e);const t=this.provider.getService(n.a);e.enabled=t&&t.UndoAvailable}execute(){return a(this,void 0,void 0,(function*(){this.provider.getService(n.a).Undo()}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(6),n=r(3),s=r(33),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends s.a{constructor(e){super(i.a.DocumentZoom,e)}execute(e){return a(this,void 0,void 0,(function*(){this.provider.getServiceByName(n.a.IDesignSurfaceManager).ActiveDesignSurface.updateZoom(e)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var i=r(0),n=r(40),s=r(16),a=r(224),o=r(71),l=r(94),c=r(42),d=r(92),u=r(13),h=r(53),p=r(46);class m{constructor(e,t){this.provider=e,this.options=t,this.webDesignerEventEmitter=this.provider.getService(u.c),this.designSurfaceEventEmitter=this.provider.getService(u.b),this.onSelectionChangingBound=this.onSelectionChanging.bind(this),this.onSelectionChangedBound=this.onSelectionChanged.bind(this),this.onComponentChangedBound=this.onComponentChanged.bind(this),this.webDesignerEventEmitter.on(h.b,this.onSelectionChangingBound),this.webDesignerEventEmitter.on(h.a,this.onSelectionChangedBound),this.options.listenForComponentChanged&&this.designSurfaceEventEmitter.on(p.b,this.onComponentChangedBound)}Dispose(){this.webDesignerEventEmitter.off(h.b,this.onSelectionChangingBound),this.webDesignerEventEmitter.off(h.a,this.onSelectionChangedBound),this.webDesignerEventEmitter=null,this.options.listenForComponentChanged&&(this.designSurfaceEventEmitter.off(p.b,this.onComponentChangedBound),this.designSurfaceEventEmitter=null),this.provider=null}onSelectionChanging(e){}onSelectionChanged(e){const t=this.provider.getService(s.a).GetSelectedComponents();for(const e of t)m.Validate(e)}onComponentChanged(e){const t=e.detail,r=t.propertyDescriptor?t.propertyDescriptor.Name:"undefined";m.log(`Component "${t.component.Name}" changed. Property: "${r}". Values: ${t.oldValue} => ${t.newValue}`)}static Validate(e){m.log(`Validating item ${e.Name}; parent ${e.Parent?e.Parent.Name:"NoParent"}.`),m.ValidateChildrenCount(e),m.ValidateParentChildrenRelations(e),m.ValidateDefinition(e),m.ValidateNamingServiceRepeatingNames(e),m.ValidateExistingNameInNamingService(e)}static ValidateDefinition(e){e.PropertyStore[i.a.NetType]||m.error("PropertyStore.NetType is not set!")}static ValidateChildrenCount(e){const t=e.PropertyStore[i.a.Items],r=e.PropertyStore[i.a.Groups]||[];if(e instanceof a.a||e instanceof l.a||e instanceof o.a||e instanceof c.a)if(t){let n=t.length;for(const e of r)e[i.a.GroupHeader]&&n++,e[i.a.GroupFooter]&&n++;let s=[];for(const t of e.Children)t.Type.toLowerCase().endsWith("datasource")||s.push(t);n!==s.length&&m.error(`Different count of PropertyStore.Items (${n}) and Children (${e.Children.length})!`)}else m.log("Does not have Items property in PropertyStore!");else t&&m.error("MUST NOT have Items property in PropertyStore!"),e.Children.length>0&&m.error("MUST NOT have Children!")}static ValidateParentChildrenRelations(e){for(const t of e.Children)t.Parent!==e&&m.error(`Child ${t.Name} has different parent: ${t.Parent.Name}!`)}static ValidateExistingNameInNamingService(e){if(e instanceof d.a)return;e.Provider.getService(n.a).NameExists(e.Name)||m.error(`The name ${e.Name} does not exist in NamingService.names!`)}static ValidateNamingServiceRepeatingNames(e){let t=null;const r=e.Provider.getService(n.a).names;for(let e=0;e<r.length-1;e++){const i=r[e];for(let n=e+1;n<r.length-1;n++){if(i===r[n]){t=i;break}}if(t)break}t&&m.error(`NamingService contains duplicate name '${t}'! Validating component '${e}'.`)}static log(e){console.log(e)}static error(e){console.error(e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t){this.DocumentId=e,this.IsModified=t}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(6),n=r(107),s=r(384),a=r(74),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends n.b{constructor(e){super(e,i.a.NewJsonDataSourceWizard)}executeWizard(e,t,r){return o(this,void 0,void 0,(function*(){const i=yield t.ActiveDesignSurface.createNewComponent(e.NetType,null,r),n=new a.b(this.provider,s.a).create({component:i});yield n.open()}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r(158),n=r(3),s=r(0),a=r(77),o=r(1),l=r(12),c=r(18),d=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class u extends i.a{constructor(e,t){super(e,t),this.resourceService=this.provider.getServiceByName(n.a.ResourceStorageService),this.dataSelector=this.GetPropertyValue(s.a.DataSelector);const r=this.GetPropertyValue(s.a.Source);this.inlineText=a.a.DecodeValue(null==r?void 0:r.Value),this.existingFilePath=null==r?void 0:r.Path}get IsModelValid(){return!!this.externalFile||!!this.existingFilePath||!!this.inlineText}Save(){return d(this,void 0,void 0,(function*(){let e;if(this.externalFile&&!this.fileEmbedded){const t=yield c.a.GetData(()=>this.resourceService.Save({name:this.externalFile.name,asset:this.externalFileText}));e=new a.a(o.a.Uri,t.fullPath,void 0)}else e=this.existingFilePath&&!this.fileEmbedded?new a.a(o.a.Uri,this.existingFilePath,void 0):new a.a(o.a.String,void 0,a.a.EncodeValue(this.inlineText));const t=this.provider.getServiceByName(n.a.IDesignerHost).CreateTransaction("JsonDataSource Wizard");try{this.SetPropertyValue(s.a.Source,e),this.SetPropertyValue(s.a.DataSelector,this.dataSelector),t.Commit()}catch(e){t.Rollback();this.provider.getService(l.a).error(e.message,e)}}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(159),n=r(439),s=r(440),a=r(442),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends i.a{constructor(e,t,r){super(e,t,r)}init(){return o(this,void 0,void 0,(function*(){yield this.createPage(this.pageOrder[0])}))}get pageOrder(){return[s.a,a.a,n.a]}getPreviousPage(){return this.currentPage instanceof n.a?this.wizardModel.inlineText&&!this.wizardModel.fileEmbedded?this.createPage(this.pageOrder.find(e=>e===s.a)):this.createPage(this.pageOrder.find(e=>e===a.a)):super.getPreviousPage()}getNextPage(){return this.currentPage instanceof s.a?this.wizardModel.inlineText?this.createPage(this.pageOrder.find(e=>e===n.a)):this.createPage(this.pageOrder.find(e=>e===a.a)):super.getNextPage()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(48),n=r(0),s=r(1),a=r(77),o=r(3),l=r(18),c=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class d extends i.a{constructor(e,t){super(e,t),this.resourceService=this.provider.getServiceByName(o.a.ResourceStorageService),this.TotalRows=0}get PreviewText(){return this.getByPropertyName(e=>{e.previewText})}set PreviewText(e){this.setByPropertyName(e=>{e.previewText},e)}get TotalRows(){return this.getByPropertyName(e=>{e.totalRows})}set TotalRows(e){this.setByPropertyName(e=>{e.totalRows},e)}OnEnter(){var e,t;return c(this,void 0,void 0,(function*(){const r=this.wizardModel.component.Parent.getValueRaw(n.a.SchemaKey),i=jQuery.extend({},this.wizardModel.component.PropertyStore,{[n.a.SchemaKey]:r});i.Source=a.a.EncodeValue(null!==(t=null!==(e=this.wizardModel.inlineText)&&void 0!==e?e:this.wizardModel.externalFileText)&&void 0!==t?t:this.wizardModel.existingFileText),i.DataSelector=this.wizardModel.dataSelector,i.NetType=s.a.JsonDataSource,i.Name=this.wizardModel.GetPropertyValue(n.a.Name);const o={[n.a.NetType]:this.wizardModel.component.Type,[n.a.DataSource]:i},c=yield l.a.GetData(()=>this.resourceService.previewJsonData({dataSourceModel:o}));this.PreviewText=c.join("\n"),this.TotalRows=c.length}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(48),n=r(160),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends i.a{get InlineText(){return this.getByPropertyName(e=>{e.inlineText})}set InlineText(e){this.setByPropertyName(e=>{e.inlineText},e)}get UseInlineJson(){return this.getByPropertyName(e=>{e.useInlineJson})}set UseInlineJson(e){var t;this.wizardModel.inlineText=e?null!==(t=this.wizardModel.externalFileText)&&void 0!==t?t:this.wizardModel.existingFileText:void 0,this.wizardModel.fileEmbedded=!!e,this.InlineText=this.wizardModel.inlineText,this.setByPropertyName(e=>{e.useInlineJson},!!e)}get IsModelValid(){return!this.InlineText||n.a.isJsonValid(this.InlineText)}OnEnter(){return s(this,void 0,void 0,(function*(){this.UseInlineJson=this.wizardModel.fileEmbedded}))}OnLeave(e){return s(this,void 0,void 0,(function*(){this.InlineText&&(this.wizardModel.inlineText=this.InlineText)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(6),n=r(107),s=r(386),a=r(74),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends n.b{constructor(e){super(e,i.a.NewCsvDataSourceWizard)}executeWizard(e,t,r){return o(this,void 0,void 0,(function*(){const i=yield t.ActiveDesignSurface.createNewComponent(e.NetType,null,r),n=new a.b(this.provider,s.a).create({component:i});yield n.open()}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r(159),n=r(443),s=r(444),a=r(445),o=r(696),l=r(698),c=r(700),d=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class u extends i.a{init(){return d(this,void 0,void 0,(function*(){yield this.createPage(this.pageOrder[0])}))}get pageOrder(){return[n.a,a.a,s.a,o.a,l.a,c.a]}getPreviousPage(){return this.currentPage instanceof s.a?this.wizardModel.InlineText&&!this.wizardModel.FileEmbedded?this.createPage(this.pageOrder.find(e=>e===n.a)):this.createPage(this.pageOrder.find(e=>e===a.a)):super.getPreviousPage()}getNextPage(){return this.currentPage instanceof n.a?this.wizardModel.InlineText?this.createPage(this.pageOrder.find(e=>e===s.a)):this.createPage(this.pageOrder.find(e=>e===a.a)):super.getNextPage()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(48),n=r(10),s=r(3),a=r(18),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends i.a{constructor(e,t){super(e,t),this.selectedType=1,this.selectedFile=null,this.externalFileChanged=new n.b,this.resourceService=this.provider.getServiceByName(s.a.ResourceStorageService),this.UseExternalFile=!0,this.UseExistingFile=!1,this.ExistingFiles=[],this.UseInlineCsv=!1}get InlineText(){return this.getByPropertyName(e=>{e.inlineText})}set InlineText(e){this.setByPropertyName(e=>{e.inlineText},e)}get UseInlineCsv(){return this.getByPropertyName(e=>{e.useInlineCsv})}set UseInlineCsv(e){this.setByPropertyName(e=>{e.useInlineCsv},e)}get SelectedFile(){return this.getByPropertyName(e=>{e.selectedFile})}set SelectedFile(e){this.setByPropertyName(e=>{e.selectedFile},e)}get ExistingFiles(){return this.getByPropertyName(e=>{e.existingFiles})}set ExistingFiles(e){this.setByPropertyName(e=>{e.existingFiles},e)}get UseExistingFile(){return this.getByPropertyName(e=>{e.useExistingFile})}set UseExistingFile(e){this.setByPropertyName(e=>{e.useExistingFile},e)}get ExternalFile(){return this.getByPropertyName(e=>{e.externalFile})}set ExternalFile(e){this.setByPropertyName(e=>{e.externalFile},e),this.externalFileChanged.next()}get UseExternalFile(){return this.getByPropertyName(e=>{e.useExternalFile})}set UseExternalFile(e){this.setByPropertyName(e=>{e.useExternalFile},e)}get SelectedType(){return this.getByPropertyName(e=>{e.selectedType})}set SelectedType(e){this.setByPropertyName(e=>{e.selectedType},e),this.UseExternalFile=1===e,this.UseExistingFile=2===e,this.UseInlineCsv=3===e}get DataSelector(){return this.getByPropertyName(e=>{e.dataSelector})}set DataSelector(e){this.setByPropertyName(e=>{e.dataSelector},e)}get IsModelValid(){var e;return this.UseExternalFile&&!!this.ExternalFile||this.UseExistingFile&&!!(null===(e=this.SelectedFile)||void 0===e?void 0:e.uri)||!!this.InlineText}Initialize(){return o(this,void 0,void 0,(function*(){yield this.fetchExistingFiles()}))}OnEnter(){return o(this,void 0,void 0,(function*(){if(this.wizardModel.InlineText)this.UseInlineCsv=!0,this.SelectedType=3,this.InlineText=this.wizardModel.InlineText;else if(this.wizardModel.ExistingFilePath){this.UseExistingFile=!0,this.SelectedType=2,yield this.fetchExistingFiles();const e=/[^\/\\]+$/.exec(this.wizardModel.ExistingFilePath)[0];this.SelectedFile=this.ExistingFiles.find(t=>t.fileName===e)}}))}OnLeave(){return o(this,void 0,void 0,(function*(){return this.wizardModel.updateFromChooseDataSourceModel(this)}))}fetchExistingFiles(){return o(this,void 0,void 0,(function*(){this.ExistingFiles=yield a.a.GetData(()=>this.resourceService.getAll({extension:"csv"}))}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(48),n=r(125),s=r(223),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends i.a{constructor(){super(...arguments),this.FieldSeparators=n.a,this.RecordSeparators=n.b}get SelectedFieldSeparators(){return this.getByPropertyName(e=>{e.selectedFieldSeparators})}set SelectedFieldSeparators(e){this.setByPropertyName(e=>{e.selectedFieldSeparators},e)}get SelectedRecordSeparators(){return this.getByPropertyName(e=>{e.selectedRecordSeparators})}set SelectedRecordSeparators(e){this.setByPropertyName(e=>{e.selectedRecordSeparators},e)}get HasHeaders(){return this.getByPropertyName(e=>{e.hasHeaders})}set HasHeaders(e){this.setByPropertyName(e=>{e.hasHeaders},e)}get ConsecutiveFieldSeparatorsAsOne(){return this.getByPropertyName(e=>{e.consecutiveFieldSeparatorsAsOne})}set ConsecutiveFieldSeparatorsAsOne(e){this.setByPropertyName(e=>{e.consecutiveFieldSeparatorsAsOne},e)}get ConsecutiveRecordSeparatorsAsOne(){return this.getByPropertyName(e=>{e.consecutiveRecordSeparatorsAsOne})}set ConsecutiveRecordSeparatorsAsOne(e){this.setByPropertyName(e=>{e.consecutiveRecordSeparatorsAsOne},e)}get OtherRecordSeparator(){return this.getByPropertyName(e=>{e.otherRecordSeparator})}set OtherRecordSeparator(e){this.setByPropertyName(e=>{e.otherRecordSeparator},e)}get OtherFieldSeparator(){return this.getByPropertyName(e=>{e.otherFieldSeparator})}set OtherFieldSeparator(e){this.setByPropertyName(e=>{e.otherFieldSeparator},e)}get IsOtherRecordSeparator(){return this.getByPropertyName(e=>{e.isOtherRecordSeparator})}set IsOtherRecordSeparator(e){this.setByPropertyName(e=>{e.isOtherRecordSeparator},e)}isNotOtherRecordSeparator(){return!this.IsOtherRecordSeparator}get IsOtherFieldSeparator(){return this.getByPropertyName(e=>{e.isOtherFieldSeparator})}set IsOtherFieldSeparator(e){this.setByPropertyName(e=>{e.isOtherFieldSeparator},e)}isNotOtherFieldSeparator(){return!this.IsOtherFieldSeparator}get IsModelValid(){return this.SelectedFieldSeparators.length>0&&this.SelectedRecordSeparators.length>0&&(!this.IsOtherFieldSeparator||!!this.OtherFieldSeparator&&1===this.OtherFieldSeparator.length)&&(!this.IsOtherRecordSeparator||!!this.OtherRecordSeparator&&1===this.OtherRecordSeparator.length)}OnEnter(){var e,t,r,i;return a(this,void 0,void 0,(function*(){const a=null!==(t=null===(e=this.wizardModel.FieldSeparators)||void 0===e?void 0:e.split(""))&&void 0!==t?t:[];let o=n.a.filter(e=>a.includes(e.value));o.length||(o=[n.a[0]]);const l=a.filter(e=>!n.a.some(t=>t.value===e))[0];l&&o.push(n.a.find(e=>""===e.value)),this.SelectedFieldSeparators=new s.a(o),this.OtherFieldSeparator=l,this.IsOtherFieldSeparator=!!l;const c=null!==(i=null===(r=this.wizardModel.RecordSeparators)||void 0===r?void 0:r.split(""))&&void 0!==i?i:[];if(c.length){const e=c.indexOf("\r");e>-1&&(c[e]+=c[e+1],c.splice(e+1,1))}let d=n.b.filter(e=>c.includes(e.value));d.length||(d=[n.b[0]]);const u=c.filter(e=>!n.b.some(t=>t.value===e))[0];u&&d.push(n.b.find(e=>""===e.value)),this.SelectedRecordSeparators=new s.a(d),this.OtherRecordSeparator=u,this.IsOtherRecordSeparator=!!u,this.HasHeaders=this.wizardModel.HasHeaders,this.ConsecutiveFieldSeparatorsAsOne=this.wizardModel.ConsecutiveFieldSeparatorsAsOne,this.ConsecutiveRecordSeparatorsAsOne=this.wizardModel.ConsecutiveRecordSeparatorsAsOne}))}OnLeave(e){return a(this,void 0,void 0,(function*(){return this.wizardModel.updateFromConfigureSeparatorsModel(this)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(48),n=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class s extends i.a{get UseInlineCsv(){return this.getByPropertyName(e=>{e.useInlineCsv})}set UseInlineCsv(e){var t;this.setByPropertyName(e=>{e.useInlineCsv},e),this.InlineText=e?null!==(t=this.wizardModel.ExternalFileText)&&void 0!==t?t:this.wizardModel.ExistingFileText:void 0}get InlineText(){return this.getByPropertyName(e=>{e.inlineText})}set InlineText(e){this.setByPropertyName(e=>{e.inlineText},e)}OnEnter(){return n(this,void 0,void 0,(function*(){this.UseInlineCsv=this.wizardModel.FileEmbedded}))}OnLeave(e){return n(this,void 0,void 0,(function*(){return this.wizardModel.updateFromModifyDataSourceModel(this)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(28),n=r(697),s=r(2),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{getTemplate(){return this.templates.Editors.Wizards.CsvDataSource.Pages.configureEscapeFormatPageComponentTemplate}getPageModel(e){return this.Model=new n.a(this.provider,e),this.Model}};o=a([Object(s.a)("csv-configure-escape-format-page")],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(48),n=r(1),s=r(3),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends i.a{constructor(e,t){super(e,t),this.escapeFormat="None",this.QuoteSymbols=[{name:'Double quotes "',value:'"'},{name:"Single quote '",value:"'"},{name:"Other",value:""}],this.schemaService=this.provider.getServiceByName(s.a.ISchemaService)}get QuoteSymbol(){return this.getByPropertyName(e=>{e.quoteSymbol})}set QuoteSymbol(e){const t=null===e?this.getOtherQuoteSymbol():e;this.setByPropertyName(e=>{e.quoteSymbol},t),this.IsOtherQuoteSymbol=!e}get EscapeFormat(){return this.getByPropertyName(e=>{e.escapeFormat})}set EscapeFormat(e){this.setByPropertyName(e=>{e.escapeFormat},e)}get EscapeFormats(){return this.getByPropertyName(e=>{e.escapeFormats})}set EscapeFormats(e){this.setByPropertyName(e=>{e.escapeFormats},e)}get CommentSymbol(){return this.getByPropertyName(e=>{e.commentSymbol})}set CommentSymbol(e){this.setByPropertyName(e=>{e.commentSymbol},e)}get OtherQuoteSymbol(){return this.getByPropertyName(e=>{e.otherQuoteSymbol})}set OtherQuoteSymbol(e){this.setByPropertyName(e=>{e.otherQuoteSymbol},e)}get IsOtherQuoteSymbol(){return this.getByPropertyName(e=>{e.isOtherQuoteSymbol})}set IsOtherQuoteSymbol(e){this.setByPropertyName(e=>{e.isOtherQuoteSymbol},e)}Initialize(){return a(this,void 0,void 0,(function*(){const e=yield this.schemaService.getTypeSchema(n.a.CsvEscapeFormat);this.EscapeFormats=e.Properties.map(e=>e.Name)}))}OnEnter(){var e,t;return a(this,void 0,void 0,(function*(){this.EscapeFormat=null!==(e=this.EscapeFormats.find(e=>e===this.wizardModel.EscapeFormat))&&void 0!==e?e:this.EscapeFormats.find(e=>"None"===e),this.QuoteSymbol=null!==(t=this.QuoteSymbols.find(e=>e.value===this.wizardModel.QuoteSymbol))&&void 0!==t?t:this.getOtherQuoteSymbol(),this.CommentSymbol=this.wizardModel.CommentSymbol,this.IsOtherQuoteSymbol=!this.QuoteSymbol.value}))}getOtherQuoteSymbol(){return this.QuoteSymbols.find(e=>"Other"===e.name)}OnLeave(e){return a(this,void 0,void 0,(function*(){return this.wizardModel.updateFromConfigureEscapeFormatModel(this)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(28),n=r(699),s=r(2),a=r(114),o=r(10),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let d=class extends i.a{constructor(){super(...arguments),this.updateColumn=e=>{e.updateColumn(this.Model.Columns.find(t=>t.uid===e.columnId)),this.Model.Columns=[...this.Model.Columns]}}get Columns(){return this.getByPropertyName(e=>{e.columns})}set Columns(e){this.setByPropertyName(e=>{e.columns},e)}getTemplate(){return this.templates.Editors.Wizards.CsvDataSource.Pages.mapColumnTypesPageComponentTemplate}afterInit(){super.afterInit();const e=this.view.element.find(".-types");this.grid=e.find(".editor__grid-types[data-role='grid']").data("kendoGrid"),$.each(this.grid.columns,(e,t)=>{switch(t.field){case"Type":t.editor=this.addValueEditor.bind(this)}}),$(".editor__grid-types[data-role='grid'] .k-grid-header").css("display","none")}resetColumns(){return c(this,void 0,void 0,(function*(){this.Model.setColumnsToDefaults(),this.mapModelColumnsToColumns()}))}getPageModel(e){return this.Model=new n.a(this.provider,e),this.Model}OnEnter(){const e=Object.create(null,{OnEnter:{get:()=>super.OnEnter}});return c(this,void 0,void 0,(function*(){yield e.OnEnter.call(this),this.mapModelColumnsToColumns()}))}mapModelColumnsToColumns(){var e,t,r;null===(e=this.Columns)||void 0===e||e.forEach(e=>e.changedObservable.unsubscribe(this.updateColumn)),this.Columns=null===(t=this.Model.Columns)||void 0===t?void 0:t.map(e=>u.create(e,this.stringResources)),null===(r=this.Columns)||void 0===r||r.forEach(e=>e.changedObservable.subscribe(this.updateColumn))}addValueEditor(e,t){$("<input name='"+t.field+"'/>").appendTo(e).kendoComboBox({dataSource:{data:this.Model.SimpleTypes}})}};d=l([Object(s.a)("csv-map-column-types-page")],d);class u extends a.a{constructor(e,t,r,i){super(),this.columnId=e,this.errorTitle=i,this.changedObservable=new o.b,this.Name=t,this.Type=r}get Name(){return this.getByPropertyName(e=>{e.name})}set Name(e){this.setByPropertyName(e=>{e.name},e),this.changedObservable.next(this)}get Type(){return this.getType()||u.defaultType}set Type(e){this.setByPropertyName(e=>{e.type},e),this.changedObservable.next(this)}isInvalid(){return!this.Name}getType(){return this.getByPropertyName(e=>{e.type})}static create(e,t){return new u(e.uid,e.name,e.type,t.CsvDataSourceColumnNameCannotBeEmpty)}updateColumn(e){if(e.uid!==this.columnId)throw new Error("Trying to update a column, that is not with a matching id");const t=this.getType();t?e.type=t:delete e.type,e.name=this.Name}}u.defaultType="String"},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(387),n=r(1),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends i.a{Initialize(){return s(this,void 0,void 0,(function*(){const e=yield this.schemaService.getTypeSchema(n.a.SimpleType);this.SimpleTypes=e.Properties.map(e=>e.Name)}))}get ThousandsSeparator(){return this.getByPropertyName(e=>{e.thousandsSeparator})}set ThousandsSeparator(e){this.setByPropertyName(e=>{e.thousandsSeparator},e)}get DateFormat(){return this.getByPropertyName(e=>{e.dateFormat})}set DateFormat(e){this.setByPropertyName(e=>{e.dateFormat},e)}get Columns(){return this.getByPropertyName(e=>{e.columns})}set Columns(e){this.setByPropertyName(e=>{e.columns},e)}get SimpleTypes(){return this.getByPropertyName(e=>{e.simpleTypes})}set SimpleTypes(e){this.setByPropertyName(e=>{e.simpleTypes},e)}get DecimalSeparator(){return this.getByPropertyName(e=>{e.decimalSeparator})}set DecimalSeparator(e){this.setByPropertyName(e=>{e.decimalSeparator},e)}OnEnter(){return s(this,void 0,void 0,(function*(){const e=yield this.getPreviewData(!1);!this.wizardModel.Columns||this.shouldResetColumns(this.wizardModel.Columns.map(e=>e.name),e.columns,e)?this.setColumnsToDefaults(e):this.Columns=this.wizardModel.Columns,this.DecimalSeparator=this.wizardModel.DecimalSeparator,this.ThousandsSeparator=this.wizardModel.ThousandsSeparator,this.DateFormat=this.wizardModel.DateFormat,this.originalData=e}))}OnLeave(e){return s(this,void 0,void 0,(function*(){return this.wizardModel.updateFromMapColumnTypesModel(this)}))}setColumnsToDefaults(e){this.Columns=(null!=e?e:this.originalData).columns.map(e=>({name:e}))}get IsModelValid(){return this.Columns.every(e=>!!e.name)}shouldResetColumns(e,t,r){return e.length!==t.length||!!this.originalData&&JSON.stringify(this.originalData)!==JSON.stringify(r)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(28),n=r(701),s=r(2),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let l=class extends i.a{getTemplate(){return this.templates.Editors.Wizards.CsvDataSource.Pages.previewDataSourcePageComponentTemplate}get Columns(){return this.getByPropertyName(e=>{e.columns})}set Columns(e){this.setByPropertyName(e=>{e.columns},e)}OnEnter(){const e=Object.create(null,{OnEnter:{get:()=>super.OnEnter}});return o(this,void 0,void 0,(function*(){yield e.OnEnter.call(this),this.Columns=JSON.stringify(this.Model.Columns.map(e=>({field:`["${e.replace(/#/g,"\\\\#")}"]`,title:e})))}))}getPageModel(e){return this.Model=new n.a(this.provider,e),this.Model}};l=a([Object(s.a)("csv-preview-data-source-page")],l)},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(387),n=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class s extends i.a{get Rows(){return this.getByPropertyName(e=>{e.rows})}set Rows(e){this.setByPropertyName(e=>{e.rows},e)}get Columns(){return this.getByPropertyName(e=>{e.columns})}set Columns(e){this.setByPropertyName(e=>{e.columns},e)}OnEnter(){return n(this,void 0,void 0,(function*(){const e=yield this.getPreviewData();this.Columns=e.columns,this.Rows=e.rows}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var i=r(158),n=r(3),s=r(0),a=r(77),o=r(1),l=r(125),c=r(12),d=r(18),u=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class h extends i.a{constructor(e,t){var r;super(e,t),this.resourceService=this.provider.getServiceByName(n.a.ResourceStorageService);const i=this.GetPropertyValue(s.a.Source);this.inlineText=a.a.DecodeValue(null==i?void 0:i.Value),this.existingFilePath=null==i?void 0:i.Path,this.fieldSeparators=this.GetPropertyValue(s.a.FieldSeparators),this.recordSeparators=this.GetPropertyValue(s.a.RecordSeparators),this.hasHeaders=this.GetPropertyValue(s.a.HasHeaders),this.consecutiveFieldSeparatorsAsOne=this.GetPropertyValue(s.a.ConsecutiveFieldSeparatorsAsOne),this.consecutiveRecordSeparatorsAsOne=this.GetPropertyValue(s.a.ConsecutiveRecordSeparatorsAsOne),this.escapeFormat=this.GetPropertyValue(s.a.EscapeFormat),this.quoteSymbol=this.GetPropertyValue(s.a.Quote),this.commentSymbol=this.GetPropertyValue(s.a.CommentToken),this.decimalSeparator=this.GetPropertyValue(s.a.DecimalSeparator),this.thousandsSeparator=this.GetPropertyValue(s.a.ThousandSeparator),this.dateFormat=this.GetPropertyValue(s.a.DateTimeFormat),this.columns=null===(r=this.GetPropertyValue(s.a.Columns))||void 0===r?void 0:r.map(e=>({name:e.Name,type:e.Type}))}get ExternalFile(){return this.externalFile}get ExternalFileText(){return this.externalFileText}get ExistingFilePath(){return this.existingFilePath}get ExistingFileText(){return this.existingFileText}get InlineText(){return this.inlineText}get FileEmbedded(){return this.fileEmbedded}get FieldSeparators(){return this.fieldSeparators}get RecordSeparators(){return this.recordSeparators}get HasHeaders(){return this.hasHeaders}get ConsecutiveFieldSeparatorsAsOne(){return this.consecutiveFieldSeparatorsAsOne}get ConsecutiveRecordSeparatorsAsOne(){return this.consecutiveRecordSeparatorsAsOne}get EscapeFormat(){return this.escapeFormat}get QuoteSymbol(){return this.quoteSymbol}get CommentSymbol(){return this.commentSymbol}get DecimalSeparator(){return this.decimalSeparator}get ThousandsSeparator(){return this.thousandsSeparator}get DateFormat(){return this.dateFormat}get Columns(){return this.columns}get IsModelValid(){return!!this.externalFile||!!this.existingFilePath||!!this.inlineText}updateFromChooseDataSourceModel(e){return u(this,void 0,void 0,(function*(){e.UseExternalFile?(this.externalFile=e.ExternalFile.rawFile,this.externalFileText=yield this.readResource(this.externalFile),this.existingFileText=void 0,this.existingFilePath=void 0,this.inlineText=void 0):e.UseExistingFile?(this.existingFilePath=e.SelectedFile.fullName,this.existingFileText=yield d.a.GetData(()=>this.resourceService.GetText({uri:e.SelectedFile.uri})),this.externalFile=void 0,this.externalFileText=void 0,this.inlineText=void 0):(this.inlineText=e.InlineText,this.existingFileText=void 0,this.existingFilePath=void 0,this.externalFile=void 0,this.externalFileText=void 0,this.fileEmbedded=!1)}))}updateFromConfigureEscapeFormatModel(e){var t;this.escapeFormat=e.EscapeFormat,this.quoteSymbol=(null===(t=e.QuoteSymbol)||void 0===t?void 0:t.value)?e.QuoteSymbol.value:e.OtherQuoteSymbol,this.commentSymbol=e.CommentSymbol}updateFromConfigureSeparatorsModel(e){this.fieldSeparators=e.SelectedFieldSeparators.map(e=>e.value).join(""),e.IsOtherFieldSeparator&&(this.fieldSeparators+=e.OtherFieldSeparator),this.recordSeparators=e.SelectedRecordSeparators.map(e=>e.value).join(""),e.IsOtherRecordSeparator&&(this.recordSeparators+=e.OtherRecordSeparator),this.hasHeaders=e.HasHeaders,this.consecutiveFieldSeparatorsAsOne=e.ConsecutiveFieldSeparatorsAsOne,this.consecutiveRecordSeparatorsAsOne=e.ConsecutiveRecordSeparatorsAsOne}updateFromMapColumnTypesModel(e){this.columns=e.Columns,this.decimalSeparator=e.DecimalSeparator,this.thousandsSeparator=e.ThousandsSeparator,this.dateFormat=e.DateFormat}updateFromModifyDataSourceModel(e){this.inlineText=e.InlineText,this.fileEmbedded=!!e.UseInlineCsv}Save(){var e,t,r;return u(this,void 0,void 0,(function*(){let i;if(this.externalFile&&!this.fileEmbedded){const e=yield this.resourceService.Save({name:this.externalFile.name,asset:this.externalFileText});e.outputResultNotification();const t=e.Data.fullPath;i=new a.a(o.a.Uri,t,void 0)}else i=this.existingFilePath&&!this.fileEmbedded?new a.a(o.a.Uri,this.existingFilePath,void 0):new a.a(o.a.String,void 0,a.a.EncodeValue(this.inlineText));const d=this.provider.getServiceByName(n.a.IDesignerHost).CreateTransaction("CsvDataSource Wizard");try{this.SetPropertyValue(s.a.Source,i),this.SetPropertyValue(s.a.HasHeaders,this.hasHeaders),this.SetPropertyValue(s.a.ConsecutiveFieldSeparatorsAsOne,this.consecutiveFieldSeparatorsAsOne),this.SetPropertyValue(s.a.ConsecutiveRecordSeparatorsAsOne,this.consecutiveRecordSeparatorsAsOne),this.SetPropertyValue(s.a.FieldSeparators,null!==(e=this.fieldSeparators)&&void 0!==e?e:l.a[0].value),this.SetPropertyValue(s.a.RecordSeparators,null!==(t=this.recordSeparators)&&void 0!==t?t:l.b[0].value),this.SetPropertyValue(s.a.EscapeFormat,this.escapeFormat),this.SetPropertyValue(s.a.Quote,this.quoteSymbol),this.SetPropertyValue(s.a.CommentToken,this.commentSymbol),this.SetPropertyValue(s.a.DecimalSeparator,this.decimalSeparator),this.SetPropertyValue(s.a.ThousandSeparator,this.thousandsSeparator),this.SetPropertyValue(s.a.DateTimeFormat,this.dateFormat),this.SetPropertyValue(s.a.Columns,null===(r=this.columns)||void 0===r?void 0:r.map(e=>({Name:e.name,Type:e.type,NetType:o.a.DataColumn}))),d.Commit()}catch(e){d.Rollback();this.provider.getService(c.a).error(e.message,e)}}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(6),n=r(107),s=r(388),a=r(74),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends n.b{constructor(e){super(e,i.a.NewWebServiceDataSourceWizard)}executeWizard(e,t,r){return o(this,void 0,void 0,(function*(){const i=yield t.ActiveDesignSurface.createNewComponent(e.NetType,null,r),n=new a.b(this.provider,s.a).create({component:i});yield n.open()}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var i=r(158),n=r(3),s=r(0),a=r(1),o=r(225),l=r(108),c=r(77),d=r(12),u=r(8),h=r(18),p=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class m extends i.a{constructor(e,t){var r,i,c,d;super(e,t),this.parameters=[],this.authenticationParameters=[],this.resourceService=t.getServiceByName(n.a.ResourceStorageService),this.source=this.GetPropertyValue(s.a.Source),this.dataSelector=this.GetPropertyValue(s.a.DataSelector),this.serviceUrl=this.GetPropertyValue(s.a.ServiceUrl),this.requestBody=this.GetPropertyValue(s.a.Body),this.encoding=this.GetPropertyValue(s.a.DataEncoding),this.requestType=this.GetPropertyValue(s.a.Method),this.parameters=null!==(i=null===(r=this.GetPropertyValue(s.a.Parameters))||void 0===r?void 0:r.map(e=>{var t;return new o.a(e.Name,e.WebServiceParameterType,(null===(t=e.Value)||void 0===t?void 0:t.Value)||e.Value)}))&&void 0!==i?i:[],this.fillDesignTimeParameters(s.a.ParameterValues,this.parameters);const u=this.GetPropertyValue(s.a.Authentication);u&&(u.NetType===a.a.WebServiceBasicAuthentication?this.authenticationType=l.a.Basic:u.NetType===a.a.WebServiceTwoStepAuthentication&&(this.authenticationType=l.a.TwoStep),this.username=u.Username,this.password=u.Password,this.loginUrl=u.LoginUrl,this.logoutUrl=u.LogoutUrl,this.loginRequestType=u.LoginMethod,this.logoutRequestType=u.LogoutMethod,this.tokenPath=u.TokenPath,this.responseFormat=u.ResponseFormat,this.loginRequestBody=u.Body,this.authenticationParameters=null!==(d=null===(c=u.Parameters)||void 0===c?void 0:c.map(e=>{var t;return new o.a(e.Name,e.WebServiceParameterType,(null===(t=e.Value)||void 0===t?void 0:t.Value)||e.Value)}))&&void 0!==d?d:[],this.fillDesignTimeParameters(s.a.AuthParameterValues,this.authenticationParameters))}get Parameters(){return this.parameters}get Source(){return this.source}get IsModelValid(){return!!this.serviceUrl}get DataSelector(){return this.dataSelector}get ServiceUrl(){return this.serviceUrl}get RequestType(){return this.requestType}get RequestBody(){return this.requestBody}get Encoding(){return this.encoding}get AuthenticationType(){return this.authenticationType}get Username(){return this.username}get Password(){return this.password}get AuthenticationParameters(){return this.authenticationParameters}get LoginUrl(){return this.loginUrl}get LogoutUrl(){return this.logoutUrl}get LoginRequestType(){return this.loginRequestType}get LogoutRequestType(){return this.logoutRequestType}get TokenPath(){return this.tokenPath}get ResponseFormat(){return this.responseFormat}get LoginRequestBody(){return this.loginRequestBody}Save(){return p(this,void 0,void 0,(function*(){const e=this.provider.getServiceByName(n.a.IDesignerHost).CreateTransaction("WebServiceDataSource Wizard");try{this.SetPropertyValue(s.a.Source,this.source),this.SetPropertyValue(s.a.DataSelector,this.dataSelector),this.SetPropertyValue(s.a.ServiceUrl,this.serviceUrl),this.SetPropertyValue(s.a.Body,this.requestBody),this.SetPropertyValue(s.a.DataEncoding,this.encoding),this.SetPropertyValue(s.a.Method,this.requestType),this.SetPropertyValue(s.a.Parameters,this.parameters.map(e=>({Name:e.name,Value:e.value,WebServiceParameterType:e.type,NetType:a.a.WebServiceParameter}))),this.SetPropertyValue(s.a.ParameterValues,this.prepareDesignTimeParametersObject(this.parameters)),this.authenticationType===l.a.Basic&&this.SetPropertyValue(s.a.Authentication,{Username:this.username,Password:this.password,NetType:a.a.WebServiceBasicAuthentication}),this.authenticationType===l.a.TwoStep&&(this.SetPropertyValue(s.a.Authentication,{Username:this.username,Password:this.password,LoginUrl:this.loginUrl,LoginMethod:this.loginRequestType,Body:this.loginRequestBody,LogoutUrl:this.logoutUrl,LogoutMethod:this.logoutRequestType,ResponseFormat:this.responseFormat,TokenPath:this.tokenPath,Parameters:this.authenticationParameters.map(e=>({Name:e.name,Value:e.value,WebServiceParameterType:e.type,NetType:a.a.WebServiceParameter})),NetType:a.a.WebServiceTwoStepAuthentication}),this.SetPropertyValue(s.a.AuthParameterValues,this.prepareDesignTimeParametersObject(this.authenticationParameters))),e.Commit()}catch(t){e.Rollback();this.provider.getService(d.a).error(t.message,t)}}))}updateFromChooseDataSourceModel(e){this.serviceUrl=e.ServiceUrl,this.requestType=e.RequestType,this.authenticationType=e.AuthType,this.encoding=e.Encoding.CodePage,this.addInlineParameters(e.ServiceUrl),e.DataSelector&&(this.dataSelector=e.DataSelector,this.addInlineParameters(e.DataSelector)),e.RequestBody&&(this.requestBody=e.RequestBody,this.addInlineParameters(e.RequestBody))}updateFromBasicAuthenticationModel(e){this.username=e.Username,this.password=e.Password}updateFromConfigureAuthenticationParametersModel(e){this.authenticationParameters=e.RequestParameters}updateFromConfigureDesignTimeModel(e){return p(this,void 0,void 0,(function*(){if(e.UseExternalFile){const t=yield this.readResource(e.ExternalFile.rawFile),r=h.a.GetData(()=>this.resourceService.Save({name:e.ExternalFile.name,asset:t}));this.source=new c.a(a.a.Uri,(yield r).fullPath,void 0)}else e.UseInline?this.source=new c.a(a.a.String,void 0,c.a.EncodeValue(e.InlineText)):this.source=void 0}))}updateFromConfigureParametersModel(e){this.parameters=e.RequestParameters}updateFromTwoStepAuthenticationModel(e){this.username=e.Username,this.password=e.Password,this.loginUrl=e.LoginUrl,this.loginRequestType=e.LoginRequestType,this.logoutUrl=e.LogoutUrl,this.loginRequestBody=e.RequestBody,this.responseFormat=e.ResponseFormat,this.tokenPath=e.TokenPath,this.logoutRequestType=e.LogoutRequestType}addInlineParameters(e){const t=e.match(/@(\w+)/g);if(t)for(const e of t)this.parameters.some(t=>t.name===e)||this.parameters.push(new o.a(e))}prepareDesignTimeParametersObject(e){const t={};for(const r of e)t[r.name]=r.designTimeValue;return JSON.stringify(t)}fillDesignTimeParameters(e,t){const r=this.GetPropertyValue(e);if(r)try{const e=JSON.parse(r);if(e)for(const r of t)r.designTimeValue=e[r.name]}catch(e){const t=this.provider.getService(u.a);this.provider.getService(d.a).error(t.CouldNotDeserializeDesignTimeParameters,e)}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var i=r(159),n=r(344),s=r(345),a=r(446),o=r(346),l=r(108),c=r(487),d=r(710),u=r(712),h=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class p extends i.a{init(){return h(this,void 0,void 0,(function*(){yield this.createPage(this.pageOrder[0])}))}get pageOrder(){return[d.a,n.a,s.a,a.a,c.a,o.a,u.a]}getPreviousPage(){const e=Object.create(null,{getPreviousPage:{get:()=>super.getPreviousPage}});return h(this,void 0,void 0,(function*(){return this.currentPage instanceof o.a?this.wizardModel.AuthenticationType===l.a.Basic?this.createPage(this.pageOrder.find(e=>e===s.a)):this.wizardModel.AuthenticationType===l.a.TwoStep?this.createPage(this.pageOrder.find(e=>e===c.a)):this.createPage(this.pageOrder.find(e=>e===n.a)):this.currentPage instanceof a.a?this.createPage(this.pageOrder.find(e=>e===n.a)):e.getPreviousPage.call(this)}))}getNextPage(){const e=Object.create(null,{getNextPage:{get:()=>super.getNextPage}});return h(this,void 0,void 0,(function*(){return this.currentPage instanceof n.a?this.wizardModel.AuthenticationType===l.a.Basic?this.createPage(this.pageOrder.find(e=>e===s.a)):this.wizardModel.AuthenticationType===l.a.TwoStep?this.createPage(this.pageOrder.find(e=>e===a.a)):this.createPage(this.pageOrder.find(e=>e===o.a)):this.currentPage instanceof s.a?this.createPage(this.pageOrder.find(e=>e===o.a)):e.getNextPage.call(this)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(115),n=r(1),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends i.a{constructor(){super(...arguments),this.requestParameters=[]}get RequestParameters(){return this.getByPropertyName(e=>{e.requestParameters})}set RequestParameters(e){this.setByPropertyName(e=>{e.requestParameters},e)}get ParameterTypes(){return this.getByPropertyName(e=>{e.parameterTypes})}set ParameterTypes(e){this.setByPropertyName(e=>{e.parameterTypes},e)}get ParameterType(){return this.getByPropertyName(e=>{e.parameterType})}set ParameterType(e){this.setByPropertyName(e=>{e.parameterType},e)}Initialize(){return s(this,void 0,void 0,(function*(){if(!this.parameterTypes){const e=yield this.schemaService.getTypeSchema(n.a.WebServiceParameterType);this.ParameterTypes=e.Properties.map(e=>e.Name),this.ParameterType=this.ParameterTypes[0]}}))}OnEnter(){return this.RequestParameters=this.wizardModel.Parameters,Promise.resolve()}OnLeave(e){return s(this,void 0,void 0,(function*(){e.Forward&&this.wizardModel.updateFromConfigureParametersModel(this)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(115),n=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class s extends i.a{get IsModelValid(){return!!this.Username&&!!this.Password}get Username(){return this.getByPropertyName(e=>{e.username})}set Username(e){this.setByPropertyName(e=>{e.username},e)}get Password(){return this.getByPropertyName(e=>{e.password})}set Password(e){this.setByPropertyName(e=>{e.password},e)}OnEnter(){return n(this,void 0,void 0,(function*(){this.Username=this.wizardModel.Username,this.Password=this.wizardModel.Password}))}OnLeave(){return n(this,void 0,void 0,(function*(){this.wizardModel.updateFromBasicAuthenticationModel(this)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(115),n=r(4),s=r(1),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends i.a{get Username(){return this.getByPropertyName(e=>{e.username})}set Username(e){this.setByPropertyName(e=>{e.username},e)}get Password(){return this.getByPropertyName(e=>{e.password})}set Password(e){this.setByPropertyName(e=>{e.password},e)}get LoginUrl(){return this.getByPropertyName(e=>{e.loginUrl})}set LoginUrl(e){this.setByPropertyName(e=>{e.loginUrl},e)}get LogoutUrl(){return this.getByPropertyName(e=>{e.logoutUrl})}set LogoutUrl(e){this.setByPropertyName(e=>{e.logoutUrl},e)}get TokenPath(){return this.getByPropertyName(e=>{e.tokenPath})}set TokenPath(e){this.setByPropertyName(e=>{e.tokenPath},e)}get RequestTypes(){return this.getByPropertyName(e=>{e.requestTypes})}set RequestTypes(e){this.setByPropertyName(e=>{e.requestTypes},e)}get RequestBody(){return this.getByPropertyName(e=>{e.requestBody})}set RequestBody(e){this.setByPropertyName(e=>{e.requestBody},e)}get IsPostRequest(){return this.getByPropertyName(e=>{e.isPostRequest})}set IsPostRequest(e){this.setByPropertyName(e=>{e.isPostRequest},e)}get LogoutRequestType(){return this.getByPropertyName(e=>{e.logoutRequestType})}set LogoutRequestType(e){this.setByPropertyName(e=>{e.logoutRequestType},e)}get ResponseFormats(){return this.getByPropertyName(e=>{e.responseFormats})}set ResponseFormats(e){this.setByPropertyName(e=>{e.responseFormats},e)}get ResponseFormat(){return this.getByPropertyName(e=>{e.responseFormat})}set ResponseFormat(e){this.setByPropertyName(e=>{e.responseFormat},e)}get LoginRequestType(){return this.getByPropertyName(e=>{e.loginRequestType})}set LoginRequestType(e){this.setByPropertyName(e=>{e.loginRequestType},e),this.set(n.b.getPropertyName(()=>{this.isPostRequest}),"post"===(null==e?void 0:e.toLowerCase()))}get IsModelValid(){return!!this.LoginUrl}Initialize(){return a(this,void 0,void 0,(function*(){const e=yield this.schemaService.getTypeSchema(s.a.WebServiceRequestMethod);this.RequestTypes=e.Properties.map(e=>e.Name);const t=yield this.schemaService.getTypeSchema(s.a.WebServiceResponseFormat);this.ResponseFormats=t.Properties.map(e=>e.Name)}))}OnEnter(){var e,t,r;return a(this,void 0,void 0,(function*(){this.Username=this.wizardModel.Username,this.Password=this.wizardModel.Password,this.LoginUrl=this.wizardModel.LoginUrl,this.LoginRequestType=null!==(e=this.wizardModel.LoginRequestType)&&void 0!==e?e:this.requestTypes[0],this.LogoutUrl=this.wizardModel.LogoutUrl,this.RequestBody=this.wizardModel.LoginRequestBody,this.ResponseFormat=null!==(t=this.wizardModel.ResponseFormat)&&void 0!==t?t:this.responseFormats[0],this.TokenPath=this.wizardModel.TokenPath,this.LogoutRequestType=null!==(r=this.wizardModel.LogoutRequestType)&&void 0!==r?r:this.requestTypes[0]}))}OnLeave(){return a(this,void 0,void 0,(function*(){this.wizardModel.updateFromTwoStepAuthenticationModel(this)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(115),n=r(1),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends i.a{constructor(){super(...arguments),this.requestParameters=[]}Initialize(){return s(this,void 0,void 0,(function*(){const e=yield this.schemaService.getTypeSchema(n.a.WebServiceParameterType);this.ParameterTypes=e.Properties.map(e=>e.Name),this.ParameterType=this.ParameterTypes[0]}))}get RequestParameters(){return this.getByPropertyName(e=>{e.requestParameters})}set RequestParameters(e){this.setByPropertyName(e=>{e.requestParameters},e)}get ParameterTypes(){return this.getByPropertyName(e=>{e.parameterTypes})}set ParameterTypes(e){this.setByPropertyName(e=>{e.parameterTypes},e)}get ParameterType(){return this.getByPropertyName(e=>{e.parameterType})}set ParameterType(e){this.setByPropertyName(e=>{e.parameterType},e)}OnEnter(){return s(this,void 0,void 0,(function*(){this.RequestParameters=this.wizardModel.AuthenticationParameters}))}OnLeave(e){return s(this,void 0,void 0,(function*(){e.Forward&&this.wizardModel.updateFromConfigureAuthenticationParametersModel(this)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(28),n=r(711),s=r(2),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{getTemplate(){return this.templates.Editors.Wizards.WebServiceDataSource.Pages.chooseDataSourcePageComponentTemplate}getPageModel(e){return this.Model=new n.a(this.provider,e),this.Model}hasServiceUrlError(){return!this.Model.ServiceUrl}};o=a([Object(s.a)("web-service-choose-data-source-page")],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(115),n=r(1),s=r(330),a=r(108),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends i.a{constructor(){super(...arguments),this.isPostRequest=!1,this.AuthenticationTypes=[this.sr.WebServiceDataSourceNoAuthentication,a.a.Basic,a.a.TwoStep]}get DataSelector(){return this.getByPropertyName(e=>{e.dataSelector})}set DataSelector(e){this.setByPropertyName(e=>{e.dataSelector},e)}get ServiceUrl(){return this.getByPropertyName(e=>{e.serviceUrl})}set ServiceUrl(e){this.setByPropertyName(e=>{e.serviceUrl},e)}get AuthType(){return this.getByPropertyName(e=>{e.authType})}set AuthType(e){this.setByPropertyName(e=>{e.authType},e)}get RequestTypes(){return this.getByPropertyName(e=>{e.requestTypes})}set RequestTypes(e){this.setByPropertyName(e=>{e.requestTypes},e)}get RequestBody(){return this.getByPropertyName(e=>{e.requestBody})}set RequestBody(e){this.setByPropertyName(e=>{e.requestBody},e)}get IsPostRequest(){return this.getByPropertyName(e=>{e.isPostRequest})}set IsPostRequest(e){this.setByPropertyName(e=>{e.isPostRequest},e)}get Encoding(){return this.getByPropertyName(e=>{e.encoding})}set Encoding(e){this.setByPropertyName(e=>{e.encoding},e)}get Encodings(){return this.getByPropertyName(e=>{e.encodings})}set Encodings(e){this.setByPropertyName(e=>{e.encodings},e)}get RequestType(){return this.getByPropertyName(e=>{e.requestType})}set RequestType(e){this.setByPropertyName(e=>{e.requestType},e),this.IsPostRequest="post"===(null==e?void 0:e.toLowerCase())}get IsModelValid(){return!!this.ServiceUrl}Initialize(){return o(this,void 0,void 0,(function*(){this.Encodings=s.a.encodings;const e=yield this.schemaService.getTypeSchema(n.a.WebServiceRequestMethod);this.RequestTypes=e.Properties.map(e=>e.Name)}))}OnEnter(){return o(this,void 0,void 0,(function*(){this.ServiceUrl=this.wizardModel.ServiceUrl,this.RequestType=this.wizardModel.RequestType||this.requestTypes[0],this.AuthType=this.wizardModel.AuthenticationType||this.AuthenticationTypes[0],this.Encoding=this.encodings.find(e=>e.CodePage===this.wizardModel.Encoding)||this.encodings.find(e=>65001===e.CodePage),this.DataSelector=this.wizardModel.DataSelector,this.RequestBody=this.wizardModel.RequestBody}))}OnLeave(){return o(this,void 0,void 0,(function*(){this.wizardModel.updateFromChooseDataSourceModel(this)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r(93),n=r(96),s=r(8),a=r(2),o=r(28),l=r(713),c=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},d=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let u=class extends o.a{getTemplate(){return this.templates.Editors.Wizards.WebServiceDataSource.Pages.previewDataSourcePageComponentTemplate}getPageModel(e){return this.Model=new l.a(this.provider,e),this.Model}OnEnter(){const e=Object.create(null,{OnEnter:{get:()=>super.OnEnter}});return d(this,void 0,void 0,(function*(){const t=this.provider.getService(s.a);this.Model.PreviewData=t.PreviewWaitingMessage;const r=this.view.element.last();yield Object(n.a)(i.a.StartNew(r),()=>d(this,void 0,void 0,(function*(){yield e.OnEnter.call(this)})))}))}};u=c([Object(a.a)("web-service-preview-data-source-page")],u)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(115),n=r(1),s=r(0),a=r(108),o=r(3),l=r(18),c=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class d extends i.a{constructor(e,t){super(e,t),this.resourceService=this.provider.getServiceByName(o.a.ResourceStorageService)}get PreviewData(){return this.getByPropertyName(e=>{e.previewData})}set PreviewData(e){this.setByPropertyName(e=>{e.previewData},e)}OnEnter(){return c(this,void 0,void 0,(function*(){const e=this.wizardModel.component.Parent.getValueRaw(s.a.SchemaKey),t=this.wizardModel.Parameters.map(e=>{var t;return{Name:e.name,Value:null!==(t=e.designTimeValue)&&void 0!==t?t:e.value,WebServiceParameterType:e.type,NetType:n.a.WebServiceParameter}});let r;if(this.wizardModel.AuthenticationType===a.a.Basic&&(r={Username:this.wizardModel.Username,Password:this.wizardModel.Password,NetType:n.a.WebServiceBasicAuthentication}),this.wizardModel.AuthenticationType===a.a.TwoStep){const e=this.wizardModel.AuthenticationParameters.map(e=>{var t;return{Name:e.name,Value:null!==(t=e.designTimeValue)&&void 0!==t?t:e.value,WebServiceParameterType:e.type,NetType:n.a.WebServiceParameter}});r={Username:this.wizardModel.Username,Password:this.wizardModel.Password,LoginUrl:this.wizardModel.LoginUrl,LoginMethod:this.wizardModel.LoginRequestType,Body:this.wizardModel.LoginRequestBody,LogoutUrl:this.wizardModel.LogoutUrl,LogoutMethod:this.wizardModel.LogoutRequestType,ResponseFormat:this.wizardModel.ResponseFormat,TokenPath:this.wizardModel.TokenPath,Parameters:e,NetType:n.a.WebServiceTwoStepAuthentication}}const i=jQuery.extend({},this.wizardModel.component.PropertyStore,{[s.a.SchemaKey]:e});i.Source=this.wizardModel.Source,i.DataSelector=this.wizardModel.DataSelector,i.ServiceUrl=this.wizardModel.ServiceUrl,i.DataEncoding=this.wizardModel.Encoding,i.Method=this.wizardModel.RequestType,i.Body=this.wizardModel.RequestBody,i.NetType=n.a.WebServiceDataSource,i.Name=this.wizardModel.GetPropertyValue(s.a.Name),i.Parameters=t,i.Authentication=r;const o={[s.a.NetType]:this.wizardModel.component.Type,[s.a.DataSource]:i},c=yield l.a.GetData(()=>this.resourceService.previewWebServiceData({dataSourceModel:o}));this.PreviewData=c}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(6),n=r(107),s=r(389),a=r(74),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends n.b{constructor(e){super(e,i.a.NewObjectDataSourceWizard)}executeWizard(e,t,r){return o(this,void 0,void 0,(function*(){const i=yield t.ActiveDesignSurface.createNewComponent(e.NetType,null,r),n=new a.b(this.provider,s.a).create({component:i});yield n.open()}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r(0),n=r(3),s=r(158),a=r(1),o=r(249),l=r(299),c=r(12),d=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class u extends s.a{constructor(e,t){super(e,t),this.dataSource=this.GetPropertyValue(i.a.DataSource)||{Value:"",NetType:a.a.String},this.dataMember=this.GetPropertyValue(i.a.DataMember),this.parametersInfo=o.a.convertToParametersWithDesignTimeValues(this.GetPropertyValue(i.a.Parameters),this.GetPropertyValue(i.a.ParameterValues))}get DataMemberInfo(){return this.dataMemberInfo}set DataMemberInfo(e){this.dataMemberInfo=e,this.updateParametersInfo()}get IsModelValid(){var e;return!!(null===(e=this.dataSource)||void 0===e?void 0:e.Value)}Save(){return d(this,void 0,void 0,(function*(){const e=this.provider.getServiceByName(n.a.IDesignerHost).CreateTransaction("ObjectDataSource Wizard");try{this.SetPropertyValue(i.a.DataSource,this.dataSource),this.SetPropertyValue(i.a.DataMember,this.dataMember),this.SetPropertyValue(i.a.Parameters,o.a.getRawParameters(this.parametersInfo)),this.SetPropertyValue(i.a.ParameterValues,o.a.getRawDesignTimeParametersAsJson(this.parametersInfo)),e.Commit()}catch(t){e.Rollback();this.provider.getService(c.a).error(t.message,t)}}))}updateParametersInfo(){if(this.areDataMemberArgsChanged()){const e=[];for(const t of this.DataMemberInfo.JsonParameters)e.push(new l.a(t.Name,t.DataTypeFullName));this.parametersInfo=o.a.convertToParametersWithDesignTimeValues(e,null)}}areDataMemberArgsChanged(){if(this.parametersInfo.length!==this.DataMemberInfo.JsonParameters.length)return!0;for(let e=0;e<this.parametersInfo.length;e++)if(!this.areArgsEqual(this.parametersInfo[e],this.DataMemberInfo.JsonParameters[e]))return!0;return!1}areArgsEqual(e,t){return e.name===t.Name&&e.dataType===t.DataTypeFullName}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(159),n=r(717),s=r(448),a=r(720),o=r(449),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c extends i.a{constructor(e,t,r){super(e,t,r)}init(){return l(this,void 0,void 0,(function*(){yield this.createPage(this.pageOrder[0])}))}get pageOrder(){return[n.a,s.a,a.a,o.a]}getPreviousPage(){return this.currentPage instanceof o.a&&!this.wizardModel.parametersInfo.length?this.createPage(this.pageOrder.find(e=>e===s.a)):super.getPreviousPage()}getNextPage(){return this.currentPage instanceof s.a&&!this.wizardModel.parametersInfo.length?this.createPage(this.pageOrder.find(e=>e===o.a)):super.getNextPage()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(2),n=r(28),s=r(718),a=r(12),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends n.a{constructor(){super(...arguments),this.captureNextDataBound=!0}getTemplate(){return this.templates.Editors.Wizards.ObjectDataSource.Pages.chooseBusinessObjectPageComponentTemplate}getPageModel(e){return this.Model=new s.a(this.provider,e),this.Model}onTypeModelTreeViewDataBound(e){if(this.captureNextDataBound&&this.Model.DataSource){this.captureNextDataBound=!1;try{this.selectDataSourceNode(e.sender)}catch(e){this.provider.getService(a.a).warning(e.message)}}}selectDataSourceNode(e){const t=this.Model.DataSource.split(",")[0].trim().split("."),r=t.splice(t.length-1,1)[0].split("+"),i=r.splice(r.length-1,1),n=t.join(".");this.expandNode(e,n);for(const t of r)this.expandNode(e,t);const s=e.findByText(i[0]);s[0]?e.select(s):this.captureNextDataBound=!0}expandNode(e,t){const r=e.findByText(t);r[0]&&e.expand(r)}onTypeModelTreeViewSelect(e){const t=e.sender.dataItem(e.node);t.AssemblyQualifiedName?this.Model.DataSource=t.AssemblyQualifiedName:e.preventDefault()}};l=o([Object(i.a)("ods-choose-business-object-page")],l)},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(207),n=r(48),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends n.a{constructor(e,t){super(e,t),this.objectDataSourceService=this.provider.getService(i.a),this.namespaceSpriteCss="k-icon k-i-css",this.typeSpriteCss="k-icon k-i-inherited"}get DataSource(){return this.getByPropertyName(e=>{e.dataSource})}set DataSource(e){this.setByPropertyName(e=>{e.dataSource},e)}get ShowDataComponentsOnly(){return this.getByPropertyName(e=>{e.showDataComponentsOnly})}set ShowDataComponentsOnly(e){this.setByPropertyName(e=>{e.showDataComponentsOnly},!!e),this.filterTypeModelDataSource(e)}get IsTypeModelEmpty(){return!this.typeModelTreeViewDataSource.total()}get IsModelValid(){return!!this.DataSource}Initialize(){return s(this,void 0,void 0,(function*(){this.DataSource=this.wizardModel.dataSource.Value;const e=yield this.objectDataSourceService.getTypeModel();this.typeModelTreeViewDataSource=this.createTypeModelDataSource(e)}))}OnEnter(){return s(this,void 0,void 0,(function*(){this.ShowDataComponentsOnly=this.wizardModel.showDataComponentsOnly}))}OnLeave(){return s(this,void 0,void 0,(function*(){this.wizardModel.dataSource.Value=this.DataSource,this.wizardModel.showDataComponentsOnly=this.ShowDataComponentsOnly}))}filterTypeModelDataSource(e){return s(this,void 0,void 0,(function*(){e?this.typeModelTreeViewDataSource.filter({logic:"or",filters:[{field:"IsDataObject",operator:"eq",value:!0},{field:"IsDataObject",operator:"isnull"}]}):this.typeModelTreeViewDataSource.filter([])}))}createTypeModelDataSource(e){this.addSpriteCssClasses(e);const t={schema:{data:"Types",model:{children:{schema:{data:"ChildTypes"}}}}};return new kendo.data.HierarchicalDataSource({data:e.Namespaces,schema:{model:{children:t}}})}addSpriteCssClasses(e){for(const t of e.Namespaces)t.spriteCssClass=this.namespaceSpriteCss,this.addSpriteCssClassesForTypes(t.Types)}addSpriteCssClassesForTypes(e){for(const t of e)t.spriteCssClass=this.typeSpriteCss,t.ChildTypes&&this.addSpriteCssClassesForTypes(t.ChildTypes)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(207),n=r(48),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends n.a{constructor(e,t){super(e,t),this.objectDataSourceService=this.provider.getService(i.a),this.methodSpriteCss="k-icon k-i-kpi-status-deny",this.propertySpriteCss="k-icon k-i-wrench"}get DataMember(){return this.getByPropertyName(e=>{e.dataMember})}set DataMember(e){this.setByPropertyName(e=>{e.dataMember},e),this.setByPropertyName(e=>{e.useDefaultCtor},!this.dataMembersModel.IsAbstract&&!e&&!this.ParametersInfo.length)}get UseDefaultCtor(){return this.getByPropertyName(e=>{e.useDefaultCtor})}set UseDefaultCtor(e){this.setByPropertyName(e=>{e.useDefaultCtor},!!e),e&&(this.setByPropertyName(e=>{e.dataMember},""),this.wizardModel.parametersInfo=[])}get DataMemberInfo(){return this.wizardModel.DataMemberInfo}set DataMemberInfo(e){this.wizardModel.DataMemberInfo=e,this.DataMember=e.DataMember}get ParametersInfo(){return this.wizardModel.parametersInfo}get IsDataMemberModelEmpty(){return this.getByPropertyName(e=>{e.isDataMemberModelEmpty})}set IsDataMemberModelEmpty(e){this.setByPropertyName(e=>{e.isDataMemberModelEmpty},e)}get IsModelValid(){return!0}Initialize(){return s(this,void 0,void 0,(function*(){this.dataMembersTreeViewDataSource=new kendo.data.HierarchicalDataSource({data:[]}),this.IsDataMemberModelEmpty=!0}))}OnEnter(){return s(this,void 0,void 0,(function*(){this.dataMembersModel=yield this.objectDataSourceService.getDataMembersModel(this.wizardModel.dataSource.Value,this.wizardModel.showDataComponentsOnly),this.DataMember=this.wizardModel.dataMember,this.updateDataMembersTreeViewDataSource(this.dataMembersModel),this.IsDataMemberModelEmpty=!this.dataMembersTreeViewDataSource.total(),this.triggerChangeByPropertyName(e=>{e.useDefaultCtor})}))}OnLeave(e){return s(this,void 0,void 0,(function*(){this.wizardModel.dataMember=this.DataMember}))}updateDataMembersTreeViewDataSource(e){this.addSpriteCssClasses(e),this.dataMembersTreeViewDataSource.data(e.DataMembers)}addSpriteCssClasses(e){for(const t of e.DataMembers)72===t.ImageIndex?t.spriteCssClass=this.methodSpriteCss:t.spriteCssClass=this.propertySpriteCss}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(2),n=r(28),s=r(721),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends n.a{getTemplate(){return this.templates.Editors.Wizards.ObjectDataSource.Pages.configureParametersPageComponentTemplate}getPageModel(e){return this.Model=new s.a(this.provider,e),this.Model}};o=a([Object(i.a)("ods-configure-parameters-page")],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(48),n=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class s extends i.a{get Parameters(){return this.getByPropertyName(e=>{e.parameters})}set Parameters(e){this.setByPropertyName(e=>{e.parameters},e)}Initialize(){return n(this,void 0,void 0,(function*(){this.parametersDataSource=new kendo.data.DataSource({data:this.Parameters,schema:{model:{id:"name",fields:{name:{editable:!1},dataType:{editable:!1},value:{editable:!0},designTimeValue:{editable:!0}}}}})}))}OnEnter(){return n(this,void 0,void 0,(function*(){this.Parameters=this.wizardModel.parametersInfo,this.updateParametersDataSource()}))}OnLeave(e){return n(this,void 0,void 0,(function*(){e.Forward&&this.wizardModel.parametersInfo.forEach(e=>{const t=this.Parameters.find(t=>t.name===e.name);e.value=t.value,e.designTimeValue=t.designTimeValue})}))}updateParametersDataSource(){this.parametersDataSource.data(this.Parameters)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(0),n=r(207),s=r(48),a=r(249),o=r(12),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c extends s.a{constructor(e,t){super(e,t),this.objectDataSourceService=this.provider.getService(n.a)}get TotalRows(){return this.getByPropertyName(e=>{e.totalRows})}set TotalRows(e){this.setByPropertyName(e=>{e.totalRows},e),this.setByPropertyName(e=>{e.isLoading},null==e),this.setByPropertyName(e=>{e.hasNoData},0===e)}get IsLoading(){return this.getByPropertyName(e=>{e.isLoading})}get HasNoData(){return this.getByPropertyName(e=>{e.hasNoData})}Initialize(){return l(this,void 0,void 0,(function*(){this.previewGridDataSource=new kendo.data.DataSource({data:[]})}))}OnEnter(){return l(this,void 0,void 0,(function*(){this.updatePreviewGridDataSource()}))}updatePreviewGridDataSource(){this.TotalRows=null,this.previewGridDataSource.data([]);const e=this.wizardModel.component.Parent.getValueRaw(i.a.SchemaKey),t={[i.a.SchemaKey]:e};t.Name=this.wizardModel.GetPropertyValue(i.a.Name),t.NetType=this.wizardModel.component.Type,t.DataSource=this.wizardModel.dataSource,t.DataMember=this.wizardModel.dataMember,t.Parameters=a.a.getRawDesignTimeParametersForPreview(this.wizardModel.parametersInfo);const r={[i.a.NetType]:this.wizardModel.component.Type,[i.a.DataSource]:t};this.objectDataSourceService.getPreviewData(r).then(e=>{e.length?("object"!=typeof e[0]||jQuery.isEmptyObject(e[0])?this.previewGridDataSource.data(e.map(e=>({Item:e}))):this.previewGridDataSource.data(e),this.TotalRows=e.length):this.TotalRows=0}).catch(()=>{this.provider.getService(o.a).warning(this.sr.ObjectDataSourcePreviewError),this.TotalRows=0})}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(6),n=r(3),s=r(104),a=r(33),o=r(11),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c extends a.a{constructor(e){super(i.a.CloseAllDocumentsExceptCurrent,e),this._permission=o.a.Commands_Document_CloseAllButThis}execute(){return l(this,void 0,void 0,(function*(){if(!this.hasExecutePermission())return;this.provider.getServiceByName(n.a.IDesignSurfaceManager).deleteAllDesignSurfacesExceptCurrent();this.provider.getService(s.a).Update()}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(6),n=r(3),s=r(104),a=r(33),o=r(11),l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class c extends a.a{constructor(e){super(i.a.CloseAllDocuments,e),this._permission=o.a.Commands_Document_CloseAll}execute(){return l(this,void 0,void 0,(function*(){if(!this.hasExecutePermission())return;this.provider.getServiceByName(n.a.IDesignSurfaceManager).deleteAllDesignSurfaces();this.provider.getService(s.a).Update()}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var i=r(6),n=r(33),s=r(4),a=r(3),o=r(726),l=r(727),c=r(21),d=r(184),u=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class h extends n.a{constructor(e){super(i.a.OpenSaveAsWindow,e)}execute(e){var t,r;return u(this,void 0,void 0,(function*(){const e=this.provider.getServiceByName(a.a.IDesignSurfaceManager),i=null===(t=e.ActiveDesignSurface)||void 0===t?void 0:t.documentId;if(!i)return;const n=s.b.parseDocumentId(i),{fileName:u,folderPath:h}=c.a.getFileNameAndFolderPath(n.Name),p={extension:n.Extension,newDocumentName:u,newDocumentLocation:h};if(e.ActiveDesignSurface.RootComponent instanceof d.a){const t=null===(r=e.ActiveDesignSurface.RootComponent.DataSourceReference)||void 0===r?void 0:r.Type,i=Object.assign(Object.assign({},p),{dataSourceType:t});return void(yield new l.a(this.provider).create(i).open())}const m=new o.a(this.provider).create(p);yield m.open()}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var i=r(194),n=r(24),s=r(6),a=r(4),o=r(2),l=r(14),c=r(167),d=r(27),u=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},h=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let p=class extends i.a{beforeInit(){super.beforeInit(),this.documentSaveAsCommand=new n.a(s.a.DocumentSaveAs,this.provider),this.NewDocumentName=this._$injectedInputData.newDocumentName,this.SelectedExtension=this._$injectedInputData.extension,this.NewDocumentLocation=this._$injectedInputData.newDocumentLocation,this.SelectedExtension===l.b.trbp&&(this.Extensions=l.a.Extensions.map(e=>new c.b(e)))}getDocumentType(){return this.stringResources.Report}saveWithValidatedState(e,t){return h(this,void 0,void 0,(function*(){try{return yield this.documentSaveAsCommand.executeAsync({newDocumentId:e,reportName:t}),!0}catch(e){const t=d.a.String(this.stringResources.CouldNotCreateNew,{type:this.getDocumentType()});return a.b.logError(t,e),!1}}))}};p=u([Object(o.a)("save-report-as-window")],p);class m extends i.b{constructor(e){super(e),this.component=p,this.title=this.stringResources.SaveReportAs}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var i=r(27),n=r(6),s=r(24),a=r(4),o=r(2),l=r(195),c=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},d=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let u=class extends l.a{beforeInit(){super.beforeInit(),this.documentCreateCommand=new s.a(n.a.DocumentSaveAs,this.provider),this.NewDocumentName=this._$injectedInputData.newDocumentName,this.NewDocumentLocation=this._$injectedInputData.newDocumentLocation,this.SelectedDataSourceType=this._$injectedInputData.dataSourceType}get enableDsTypeSelection(){return!1}saveWithValidatedState(e,t){return d(this,void 0,void 0,(function*(){try{return yield this.documentCreateCommand.executeAsync({newDocumentId:e,reportName:t,dataSourceType:this.SelectedDataSourceType}),!0}catch(e){const t=i.a.String(this.stringResources.CouldNotCreateNew,{type:this.getDocumentType()});return a.b.logError(t,e),!1}}))}};u=c([Object(o.a)("save-sds-as-window")],u);class h extends l.b{constructor(e){super(e),this.provider=e,this.component=u,this.title=this.stringResources.SaveSharedDataSourceAsTitle}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(6),n=r(33),s=r(729),a=r(11),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends n.a{constructor(e){super(i.a.OpenCreateNewReportWindow,e),this._permission=a.a.Commands_Document_New}execute(e){return o(this,void 0,void 0,(function*(){if(!this.hasExecutePermission())return;const e=new s.a(this.provider).create();yield e.open()}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var i=r(194),n=r(24),s=r(6),a=r(4),o=r(14),l=r(2),c=r(27),d=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let h=class extends i.a{beforeInit(){super.beforeInit(),this.documentCreateCommand=new n.a(s.a.ReportCreate,this.provider),this.NewDocumentName=o.d.DefaultNewName,this.SelectedExtension=o.d.Extensions[0]}saveWithValidatedState(e,t){return u(this,void 0,void 0,(function*(){try{return yield this.documentCreateCommand.executeAsync({newDocumentId:e,reportName:t}),!0}catch(e){const t=c.a.String(this.stringResources.CouldNotCreateNew,{type:this.getDocumentType()});return a.b.logError(t,e),!1}}))}getDocumentType(){return this.stringResources.Report}};h=d([Object(l.a)("create-new-report-window")],h);class p extends i.b{constructor(e){super(e),this.component=h,this.title=this.stringResources.CreateNewReport}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(6),n=r(33),s=r(731),a=r(11),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends n.a{constructor(e){super(i.a.OpenCreateNewCombinedReportWindow,e),this._permission=a.a.Commands_Document_NewCombined}execute(e){return o(this,void 0,void 0,(function*(){if(!this.hasExecutePermission())return;const e=new s.a(this.provider).create();yield e.open()}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var i=r(194),n=r(24),s=r(6),a=r(4),o=r(14),l=r(2),c=r(167),d=r(27),u=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},h=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let p=class extends i.a{beforeInit(){super.beforeInit(),this.Extensions=o.a.Extensions.map(e=>new c.b(e)),this.documentCreateCommand=new n.a(s.a.ReportCreate,this.provider),this.NewDocumentName=o.a.DefaultNewName,this.SelectedExtension=o.a.Extensions[0]}saveWithValidatedState(e,t){return h(this,void 0,void 0,(function*(){try{return yield this.documentCreateCommand.executeAsync({newDocumentId:e,reportName:t}),!0}catch(e){const t=d.a.String(this.stringResources.CouldNotCreateNew,{type:this.getDocumentType()});return a.b.logError(t,e),!1}}))}getDocumentType(){return this.stringResources.CombinedReport}};p=u([Object(l.a)("create-new-combined-report-window")],p);class m extends i.b{constructor(e){super(e),this.component=p,this.title=this.stringResources.CreateNewCombinedReport}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(6),n=r(33),s=r(733),a=r(11),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends n.a{constructor(e){super(i.a.OpenCreateNewSharedDataSourceWindow,e),this._permission=a.a.Commands_DataSources_SharedDataSource_Create}execute(e){return o(this,void 0,void 0,(function*(){if(!this.hasExecutePermission())return;const e=new s.a(this.provider).create();yield e.open()}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var i=r(27),n=r(6),s=r(24),a=r(4),o=r(2),l=r(195),c=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},d=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let u=class extends l.a{beforeInit(){super.beforeInit(),this.documentCreateCommand=new s.a(n.a.SharedDataSourceCreate,this.provider),this.SelectedDataSourceType=this.dataSourceTypes[0].type}saveWithValidatedState(e,t){return d(this,void 0,void 0,(function*(){try{return yield this.documentCreateCommand.executeAsync({newDocumentId:e,reportName:t,dataSourceType:this.SelectedDataSourceType}),!0}catch(e){const t=i.a.String(this.stringResources.CouldNotCreateNew,{type:this.getDocumentType()});return a.b.logError(t,e),!1}}))}};u=c([Object(o.a)("create-new-sds-window")],u);class h extends l.b{constructor(e){super(e),this.provider=e,this.component=u,this.title=this.stringResources.CreateSharedDataSourceTitle}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(3),n=r(6),s=r(263),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends s.a{constructor(e){super(e,n.a.DocumentOpenUnloaded)}execute(e){return a(this,void 0,void 0,(function*(){if(e){const t=e,r=this.provider.getServiceByName(i.a.IDesignSurfaceManager),n=yield this.getStorageServiceName(t);r.createDesignSurface(t,n)}}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(242),n=r(6),s=r(273),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends s.a{constructor(e){super(e,n.a.CopyStyle)}getSelectedComponents(){return 1!==this.selectionService.SelectionCount?[]:[this.selectionService.PrimarySelection]}executeWithSelectedComponent(e){return a(this,void 0,void 0,(function*(){e.length&&i.a.copyStylePropertyStore(e[0])}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(242),n=r(6),s=r(273),a=r(3),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends s.a{constructor(e){super(e,n.a.PasteStyle)}updateStatus(e){e.enabled=i.a.hasCopiedStylePropertyStore}executeWithSelectedComponent(e){return o(this,void 0,void 0,(function*(){const t=this.provider.getServiceByName(a.a.IPropertyDescriptorWrapperFactory);i.a.pasteStylePropertyStore(e,this.selectionService,t)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(242),n=r(6),s=r(273),a=r(3),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends s.a{constructor(e){super(e,n.a.ResetStyle)}executeWithSelectedComponent(e){return o(this,void 0,void 0,(function*(){const t=this.provider.getServiceByName(a.a.IPropertyDescriptorWrapperFactory);Object(i.b)(e,this.selectionService,t)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(6),n=r(33),s=r(739),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends n.a{constructor(e){super(i.a.OpenReportFileBrowserWindow,e)}execute(e){return a(this,void 0,void 0,(function*(){const e=new s.a(this.provider).create();yield e.open()}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var i=r(2),n=r(70),s=r(8),a=r(85),o=r(24),l=r(6),c=r(152),d=r(17),u=r(75),h=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let p=class extends n.b{constructor(){super(...arguments),this.initialPath=[d.c.reportsBasePathAndUri]}get HasSelectedFile(){return this.getByPropertyName(e=>{e.hasSelectedFile})}set HasSelectedFile(e){this.setByPropertyName(e=>{e.hasSelectedFile},e)}get includeWebDesignerPartsClassName(){return!1}get isWindowed(){return!0}getTemplate(){return this.templates.Layouts.ReportWindows.ReportFileBrowserWindow.reportFileBrowserWindowTemplate}beforeInit(){super.beforeInit(),this.assetManagerConfig=u.a.getOpenReportConfig(this.provider),this.openCommand=new o.a(l.a.DocumentOpen,this.provider),this.stringResources=this.provider.getService(s.a),this.recentFilesService=this.provider.getService(c.a)}onClose(){this._$kendoWindowInstance.close()}onFilesSelected(e){if(1===e.files.length&&!e.files[0].isDirectory)return this.selectedFileData=e.filesData[0],this.selectedFile=e.files[0],void(this.HasSelectedFile=!0);this.selectedFileData=null,this.HasSelectedFile=!1}open(){this.openReport()}cancel(){this._$kendoWindowInstance.close()}onFileOpened(){this.openReport()}openReport(){this.HasSelectedFile&&this.recentFilesService.add(this.selectedFile),this.openCommand.executeAsync({DocumentId:this.selectedFileData.path,CheckPermission:!0}),this._$kendoWindowInstance.close()}};p=h([Object(i.a)("report-file-browser-window")],p);class m{constructor(e){this.provider=e,this.stringResources=this.provider.getService(s.a)}create(){const e=new a.a(this.provider);this.title=this.stringResources.OpenButton;const t={width:960,height:640,minWidth:840,minHeight:640,maxHeight:1/0,maxWidth:1/0};return e.withComponent(p).withTitle(this.title).withVisible(!1).withWindowDimensions(t).withModal(!0),e.build()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var i=r(33),n=r(6),s=r(2),a=r(104),o=r(198),l=r(47),c=r(75),d=r(11),u=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class h extends i.a{constructor(e){super(n.a.OpenAssetManager,e),this._permission=d.a.Commands_AssetsManager}execute(e){return u(this,void 0,void 0,(function*(){if(!this.hasExecutePermission())return;const e=this.provider.getService(a.a),t=s.c.getComponentByType(l.a).builder.build($(".designer__content"),this.provider);e.createAssetManagerOverlay(()=>{t.Dispose(),this.provider.getService(o.WebReportDesigner).Show()}),e.Update();this.provider.getService(o.WebReportDesigner).Hide(),t.init(void 0,{isWindowed:!1,assetManagerConfig:c.a.getFullAssetsManagerConfig(this.provider)})}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(6),n=r(33),s=r(104),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends n.a{constructor(e){super(i.a.FocusGlobalSearch,e)}get TopMenuArea(){return this.topMenuArea||(this.topMenuArea=this.provider.getService(s.a)),this.topMenuArea}execute(e){return a(this,void 0,void 0,(function*(){this.TopMenuArea.focusGlobalSearch()}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));class i{constructor(e){this.data=e,this.next=null,this.prev=null}}class n{constructor(){this.head=null,this.tail=null}get Head(){return this.head}get Tail(){return this.tail}append(e){const t=new i(e);if(this.tail){const e=this.tail;t.prev=e,e.next=t,this.tail=t}else this.head=this.tail=t;return t}prepend(e){const t=new i(e);return this.head?(this.head.prev=t,t.next=this.head,this.head=t):this.head=this.tail=t,t}deleteNode(e){if(e.prev)if(e.next){e.prev.next=e.next}else this.tail=e.prev;else this.head=e.next}get(e){if(e<0||e>=this.size())return null;let t=this.head;for(let r=0;r<e;r++)t=t?t.next:null;return t}set(e,t){const r=this.get(e);return r.data=t,r}search(e){const t=r=>e(r.data)?r:r.next?t(r.next):null;return this.head?t(this.head):null}traverse(){const e=[];if(!this.head)return e;const t=r=>(e.push(r.data),r.next?t(r.next):e);return t(this.head)}size(){return this.traverse().length}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(6),n=r(205),s=r(3),a=r(1),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends n.a{constructor(e){super(e,i.a.SharedDataSourceCreate)}execute(e){var t;return o(this,void 0,void 0,(function*(){if("string"==typeof e)throw new Error(typeof this+" args cannot be string.");{yield this.executeGenerateDocument(e,t=>o(this,void 0,void 0,(function*(){const r=this.provider.getServiceByName(s.a.ISchemaService),i=yield r.getDefaultPropertyStore(a.a.SharedDataSource),n=yield r.getDefaultPropertyStore(e.dataSourceType);return i.Name=e.reportName,i.Path=e.newDocumentId,i.DataSourceReference=n,i.DataSourceReference.Name=e.dataSourceType,t.createDocument(i)})),s.a.SharedDataSourceStorageService);const r=null===(t=this.designSurfaceManager.ActiveDesignSurface.RootComponent)||void 0===t?void 0:t.Designer;(null==r?void 0:r.editDataSourceInWizard)&&setTimeout(()=>o(this,void 0,void 0,(function*(){null==r||r.editDataSourceInWizard()})),500)}}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var i=r(6),n=r(745),s=r(205),a=r(3),o=r(0),l=r(1),c=r(21),d=r(24),u=r(16),h=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class p extends s.a{constructor(e){super(e,i.a.ConvertIdsToSds)}execute(e){return h(this,void 0,void 0,(function*(){if("string"==typeof e)throw new Error(typeof this+" args cannot be string.");{const t={inlineDataSource:e,openNewSdsCallback:(t,r)=>h(this,void 0,void 0,(function*(){return this.openNewSds(t,r,e)})),replaceIdsCallback:(t,r)=>h(this,void 0,void 0,(function*(){return this.replaceIds(t,r,e)}))};yield new n.a(this.provider).create(t).open()}}))}openNewSds(e,t,r){return h(this,void 0,void 0,(function*(){const r=c.a.appendFilePathToPath(e,t),n=new d.a(i.a.DocumentOpen,this.provider);yield n.executeAsync({DocumentId:r,CheckPermission:!0})}))}replaceIds(e,t,r){return h(this,void 0,void 0,(function*(){const i={name:r.Name,parent:r.Parent},n=this.provider.getServiceByName(a.a.IDesignerHost).CreateTransaction("Replacing Inline data-source with new Shared data-source");try{const s=r.ReferencingDataSourceContainers,a=i.parent.getProperty(o.a.Items);i.parent.raiseComponentChanging(a),this.deleteComponent(r);const l=yield this.addSdsToReport(e,t,i);this.restoreReferencedDataSourceContainers(l.Name,s),i.parent.raiseComponentChanged(a,null,null),n.Commit(),this.provider.getService(u.a).Select(!1,l)}catch(e){throw n.Rollback(),new Error("Converting Inline-DataSource to Shared-DataSource failed"+e)}}))}deleteComponent(e){if(!e.canDelete())throw new Error(`Cannot delete '${e.Name}'.`);e.delete()}addSdsToReport(e,t,r){return h(this,void 0,void 0,(function*(){const i=c.a.appendFilePathToPath(e,t),n=this.provider.getServiceByName(a.a.ISchemaService),s=yield n.getDefaultPropertyStore(l.a.SharedDataSource),d=Object.assign(Object.assign({},s),{[o.a.Name]:r.name,[o.a.Path]:i}),u=this.provider.getServiceByName(a.a.IDesignSurfaceManager);return yield u.ActiveDesignSurface.createNewComponent(l.a.SharedDataSource,d,r.parent)}))}restoreReferencedDataSourceContainers(e,t){t.forEach(t=>t.DataSourceName=e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var i=r(27),n=r(4),s=r(2),a=r(195),o=r(3),l=r(18),c=r(29),d=r(78),u=r(8),h=r(12),p=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},m=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let g=class extends a.a{constructor(){super(...arguments),this.replaceIds=!0}beforeInit(){super.beforeInit(),this.NewDocumentName=this._$injectedInputData.inlineDataSource.Name,this.SelectedDataSourceType=this._$injectedInputData.inlineDataSource.Type}get enableDsTypeSelection(){return!1}saveWithValidatedState(e,t){return m(this,void 0,void 0,(function*(){try{const t=this.provider.getServiceByName(o.a.SharedDataSourceStorageService),r={$schema:this._$injectedInputData.inlineDataSource.Parent.PropertyStore.$schema,DataSourceReference:this._$injectedInputData.inlineDataSource.PropertyStore},i={name:`${this.NewDocumentName}.${this.SelectedExtension}`,parentUri:this.NewDocumentLocation,asset:r},n=yield t.Exists({uri:e});if(!this.provider.getService(d.a).checkCreateDocumentPermission(e,n.Data,o.a.SharedDataSourceStorageService,this.provider.getService(u.a),this.provider.getService(h.a)))return;n.Data&&this.confirmDocumentDeletion();return(yield l.a.Do(()=>t.Save(i))).Data}catch(e){const t=i.a.String(this.stringResources.CouldNotCreateNew,{type:this.getDocumentType()});return void n.b.logError(t,e)}}))}confirmDocumentDeletion(){if(!window.confirm(this.stringResources.ConfirmOverwriteExistingDocument))throw new c.a("Document overwriting was canceled by user",this.provider)}get ReplaceIds(){return this.getByPropertyName(e=>{e.replaceIds})}set ReplaceIds(e){this.setByPropertyName(e=>{e.replaceIds},e)}onSaveAndOpen(e){return m(this,void 0,void 0,(function*(){if(!this.validateDocumentLocation())return;let e;yield this.getAndValidateDocumentName(t=>m(this,void 0,void 0,(function*(){return e=yield this.saveWithValidatedState(t,this.NewDocumentName),!!e&&(yield this.onSuccessfulSave(),!0)}))),e&&(yield this._$injectedInputData.openNewSdsCallback(this.NewDocumentLocation,e.fileName))}))}onSuccessfulSave(){return m(this,void 0,void 0,(function*(){if(this.ReplaceIds){const e=[this.newDocumentName,this.SelectedExtension].join(".");yield this._$injectedInputData.replaceIdsCallback(this.NewDocumentLocation,e)}this._$kendoWindowInstance.close()}))}get additionalEditors(){return'\n            <div class="twd-editor -bool">\n                <div class="editor__content">\n                    <label class="k-checkbox-label editor__name" for="#: data.id #-checkbox" title="Replace data source in report" style="padding-left: 5px;">Replace data source in report</label>\n                    <input type="checkbox" id="#: data.id #-checkbox" class="k-checkbox k-checkbox-md k-rounded-md editor__value" data-bind="checked: ReplaceIds">\n                </div>\n            </div>\n            '}get additionalButtons(){return'<button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-primary" data-bind="click: onSaveAndOpen">#: data.stringResources.SaveAndOpenButton #</button>'}};g=p([Object(s.a)("convert-ids-to-sds")],g);class f extends a.b{constructor(e){super(e),this.provider=e,this.component=g,this.defaultWindowDimensions={height:340,width:480,minWidth:300,minHeight:234},this.title=this.stringResources.CreateSharedDataSourceTitle}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(12),n=r(3);class s{constructor(e){const t=e.getServiceByName(n.a.KeyCommandMapperProvider);$(document).get(0).addEventListener("keydown",e=>{s.evaluateKeyDown(t.Get,e)},!0)}static evaluateKeyDown(e,t){const r=s.processKey(e,t);if(!r)return;const n=e.Provider.getService(i.a);t.preventDefault(),t.stopPropagation();const a=e.GetCommandManager();a?a.tryExecuteCommand(r,{event:t})||n.error(`Could not execute command '${r}'.`):n.error("Could not obtain CommandManager from KeybindingManager.")}static processKey(e,t){return e.ShouldPreventDefault(t)&&(t.preventDefault(),t.stopPropagation()),e.IsValidTarget(t.target,t)?e.GetCommand(t):null}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var i=r(131),n=r(19),s=r(8),a=r(13),o=r(357),l=r(53),c=r(64),d=r(4),u=r(36),h=r(12),p=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let m=class extends n.a{constructor(e,t){super(),this.$placeholder=e,this.provider=t,this.sr=this.provider.getService(s.a),this.isOpen=!1,this.isInitialized=!1,this.behaviorService=null;const r=this.provider.getService(u.a);this.options=r.Preferences,this.isReportServer=r.ReportServerLayout,this.initEventListener()}*getCategories(){const e={title:this.sr.SnappingGroupHeader,items:[{action:"SnapToGrid",checked:this.behaviorService.SnapToGrid,disabled:!1,title:this.sr.SnappToGridLineTitle},{action:"SnapToSnapLines",checked:this.behaviorService.SnapToSnapLines,disabled:!1,title:this.sr.SnappToSnapLineTitle}]};if(yield e,!this.isReportServer){const e={title:this.sr.GeneralPreferencesHeader,items:[{action:"RestoreReports",checked:this.options.RestoreReports,disabled:!1,title:this.sr.RestoreReports}]};yield e}}get template(){return`<div class="twd-slide-panel -preferences">\n                    <div class="twd-editor -header">\n                        <h3 title="this.str.PreferencesHeader">${this.sr.PreferencesHeader}</h3>\n                        <span class="k-icon k-i-close"></span>\n                    </div>\n                    <div class='slide-panel__content k-panelbar'>\n                        <ul class="twd-expander -no-text-transform">\n                            ${this.categoryTemplate}\n                        </ul>\n                    </div>\n                </div>`}get categoryTemplate(){let e="";for(const t of this.getCategories()){let r="";for(const e of t.items)r+=`\n                    <div class="twd-editor">\n                        <div class="editor__content">\n                            <span class="k-checkbox-wrap">\n                                <input type="checkbox" data-category=${t.title} id="${e.action}" data-action="${e.action}" class="k-checkbox k-checkbox-md k-rounded-md" ${e.checked?'checked="checked"':""}\n                                            ${e.disabled?'disabled="disabled"':""}>\n                            </span>\n                            <label class="k-checkbox-label" for="${e.action}">${e.title}</label>    \n                        </div>\n                    </div>`;t.items&&(e+=`\n                <li class="expander__items" data-index="group-snapping" >\n                    <span class="expander__header">${t.title}</span>\n                    <div class="twd-editor -expandable">\n                        ${r}\n                    </div>\n                </li>`)}return e}get VisualElement(){return this.$visualElement}get IsOpen(){return this.isOpen}init(){if(this.behaviorService=this.provider.getService(i.a),!this.behaviorService)return;this.$placeholder.append(this.template),this.$visualElement=this.$placeholder.find(".twd-slide-panel.-preferences");const e=this.$visualElement.find(".twd-expander").kendoPanelBar().data("kendoPanelBar");e.expand($('[data-index^="group"]'),!1),e.select('[data-index="group-snapping"]'),this.initEvents(),this.isInitialized=!0}initEvents(){this.$visualElement.off("click").on("click",".k-i-close",e=>{this.close()}),this.$visualElement.off("change").on("change","input[type='checkbox']",e=>{this.settingChanged($(e.currentTarget))})}initEventListener(){const e=this.provider.getService(a.c);e.on(o.a,()=>this.open()),e.on(l.a,()=>this.close()),e.on(c.a,()=>this.Dispose())}settingChanged(e){const t=e.prop("checked"),r=e.attr("data-action"),i=e.attr("data-category");i===this.sr.SnappingGroupHeader?this.behaviorService[r]=t:i===this.sr.GeneralPreferencesHeader&&(this.options[r]=t)}Dispose(){this.isInitialized&&(this.close(),setTimeout(()=>{this.$visualElement.remove(),this.isInitialized=!1},200))}open(){if(this.isInitialized||this.init(),!this.isOpen){if(this.$visualElement)return this.$visualElement.addClass("-open"),void(this.isOpen=!0);this.provider.getService(h.a).warning("Cannot open Workspace Preferences when there is no report loaded on the surface.")}}close(){this.isOpen&&(this.$visualElement.removeClass("-open"),this.isOpen=!1)}};m.getServiceName=()=>"Preferences",m=p([Object(d.e)()],m)},function(e,t,r){"use strict";r.d(t,"a",(function(){return b}));var i=r(92),n=r(34),s=r(79),a=r(9),o=r(0),l=r(3),c=r(46),d=r(260),u=r(64),h=r(111),p=r(13),m=r(183),g=r(16),f=r(4),v=r(331),y=r(395),S=r(333),C=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class b{constructor(e,t){this.$parent=e,this.provider=t,this.kendoSelectedClass="k-selected",this.kendoSelectedMarkerClasses=this.kendoSelectedClass+" k-selected k-hover",this.$dom=null,this.$treeViewDom=null,this.eventNamesForReload=[c.a.getEventName(),c.d.getEventName()],this.propertyNamesForReload=[o.a.Name,o.a.Items,o.a.DataModel],this.reportDocument=null,this.selectedFromTreeView=!1,this.scrollingCounter=0,this.postponedTryRenderRootComponent=!0,this.ctrlPressed=!1,this.designSurfaceChanging=!1,this.init()}get template(){return`<div class="twd-tab ${a.a.ReportExplorer}"><ul class='tab__treeview'></ul></div><div class="context-menu"></div>`}getTreeNodeTemplate(e){const t=this.resolveNodeObject(e.fullName),r=!(e.hasContextMenu||t&&!t.HideContextMenuButton&&t.Designer),i=e.isDraggable,n=e.dataType,s=e.draggableTypeName;return`<span class='treeview__item  ${i?"-draggable-component":""}' ${i&&s?"data-draggable-type-name="+s:""} data-type='${n||""}' data-text='${f.b.escapeHtml(e.getValueText())}'>\n                    <span class='treeview__text'>${f.b.escapeHtml(e.getDisplayText())}</span>\n                    <span class='treeview__menu-handler'>\n                       ${r?"":"<span class='k-icon k-i-more-horizontal'></span>"}\n                    </span>\n                </span>`}get selectedComponent(){const e=this.getSelectedTreeNodes(),t=this.treeView.dataItem(e[0]);return t?this.resolveNodeObject(t.fullName):null}init(){const e=$.parseHTML(this.template);this.$parent.append(e),this.$dom=$(e),this.$treeViewDom=this.$dom.find(".tab__treeview"),this.treeView=null;const t=this.provider.getService(p.c);t.on(u.b,()=>this.designSurfaceChanging=!0),t.on(u.a,()=>{if(this.designSurfaceChanging=!1,!this.tryRenderRootComponent()){const e=this.provider.getService(p.b);e&&(e.on(d.a,()=>this.tryRenderRootComponent()),e.on(c.b,e=>this.onComponentModified(e)),e.on(c.a,e=>this.onComponentModified(e)),e.on(c.d,e=>this.onComponentModified(e)))}})}tryRenderRootComponent(){this.postponedTryRenderRootComponent=!1;const e=this.provider.getServiceByName(l.a.IDesignerHost);return e?(e.IsLoaded&&(this.reportDocument=e.RootComponent,this.render(this.reportDocument)),e.IsLoaded):(this.render(null),!1)}render(e){const t=[new y.a(this.provider,e).BuildReportNode()],r=new kendo.data.HierarchicalDataSource({data:t,schema:{model:{id:"displayText",children:"nodes"}}});this.treeView?this.treeView.setDataSource(r):(this.treeView=this.$treeViewDom.kendoTreeView({select:e=>{this.treeViewSelect(e)},expand:e=>C(this,void 0,void 0,(function*(){const t=e.node;let r=$(t).attr("data-expanded");if("false"===r){const e=setInterval(()=>{if(r=$(t).attr("data-expanded"),"true"===r){clearInterval(e);const r=$(t).find("ul .treeview__item.-draggable-component");this.setDraggableTreeNodes(r)}},500)}})),template:e=>this.getTreeNodeTemplate(e.item),dataSource:r}).data("kendoTreeView"),this.attachTreeViewCtrlKeyHandlers(this.treeView),this.treeView.wrapper.addClass("twd-treeview"),this.attachTreeViewSelectedItemHandlers(this.treeView));const i=this.treeView.wrapper.find(".treeview__item.-draggable-component");this.setDraggableTreeNodes(i),this.$treeViewDom.off("click",".k-i-more-horizontal").on("click",".k-i-more-horizontal",e=>C(this,void 0,void 0,(function*(){const t=$(e.currentTarget).closest(".k-in");t.hasClass(this.kendoSelectedClass)||(this.treeView.select(t[0]),this.treeView.trigger("select",{node:t}));const r=this.treeView.dataItem(t[0]),i=this.findComponent(r);if(i){const t=new(v.a.getComponentContextMenuType(i))($(e.currentTarget),"",i,this.provider);return yield t.init(),void t.widget.open(e.currentTarget)}const n=v.a.getDataSourcesNodeContextMenuType(r.id,this.provider);if(n){const t=new n($(e.currentTarget),"",this.provider);yield t.init(),t.widget.open(e.currentTarget)}}))),this.scrollingCounter=0,this.treeNodeHeight=m.a.getTreeNodeHeight(this.treeView),this.update(this.getInitiallySelectedComponents(e))}setDraggableTreeNodes(e){e&&e.draggable({appendTo:"body",helper:"clone"})}findComponent(e){if(e){const t=e;return this.resolveNodeObject(t.fullName)}return null}attachTreeViewCtrlKeyHandlers(e){e.wrapper.on("keydown",e=>{17===e.which&&(this.ctrlPressed=!0)}).on("keyup",e=>{17===e.which&&(this.ctrlPressed=!1)}).on("blur",e=>{this.ctrlPressed=!1})}attachTreeViewSelectedItemHandlers(e){e.wrapper.on("click","."+this.kendoSelectedClass,e=>{e.stopPropagation(),e.preventDefault();const t=$(e.currentTarget).closest("li");this.selectNode(this.ctrlPressed,t[0])})}isIExplorerSelectionProvider(e){return!!e&&void 0!==e.SetInitiallySelectedComponent}getInitiallySelectedComponents(e){this.isIExplorerSelectionProvider(e)&&e.SetInitiallySelectedComponent();const t=this.provider.getService(g.a);if(t){const e=t.GetSelectedComponents();if(e&&e.length>0)return e}return[e]}onComponentModified(e){if(this.shouldReloadTreeView(e)){if(this.provider.getServiceByName(l.a.IDesignerHost).InTransaction){if(!this.postponedTryRenderRootComponent){this.postponedTryRenderRootComponent=!0;this.provider.getService(p.b).once(h.a,this.tryRenderRootComponent.bind(this))}}else this.tryRenderRootComponent()}}shouldReloadTreeView(e){if(!e)return!1;if(this.eventNamesForReload.includes(e.constructor.getEventName()))return!0;const t=e.detail.propertyDescriptor;return!!t&&this.propertyNamesForReload.includes(t.Name)}update(e){if(this.designSurfaceChanging||!this.treeView||!e||0===e.length||null===e[0])return;const t=[];let r=Number.MAX_SAFE_INTEGER;for(const i of e){const e=this.treeView.dataSource.get(i.Name);if(e){const i=this.treeView.findByUid(e.uid);if(i.length){const e=i[0].getBoundingClientRect();e.top<r&&(r=e.top),t.push(i[0])}}}this.setTreeNodesSelectedState(t),!this.selectedFromTreeView&&r<Number.MAX_SAFE_INTEGER&&this.scrollToSelectedNode()}setTreeNodesSelectedState(e){if(this.treeView){if(this.treeView.select($()),this.treeView.element)for(const e of this.treeView.element.find("."+this.kendoSelectedClass))$(e).removeClass(this.kendoSelectedMarkerClasses);for(const t of e){$(t).children("div").children(".k-in").addClass(this.kendoSelectedMarkerClasses)}}}getSelectedTreeNodes(){const e=[];for(const t of this.treeView.element.find("span."+this.kendoSelectedClass))t.innerHTML&&e.push(t);return $(e)}selectElement(e){this.treeView.select($());const t=this.treeView.findByUid(e);this.treeView.expandTo(this.treeView.dataItem(t)),this.treeView.select(t),this.treeView.trigger("select",{node:t}),this.scrollToSelectedNode()}scrollToSelectedNode(){this.scrollingCounter=this.scrollingCounter+1,setTimeout(()=>{this.scrollingCounter=this.scrollingCounter-1,this.scrollingCounter>0||m.a.scrollTreeViewToSelectedNode(this.treeView,!0,2*this.treeNodeHeight)},300)}treeViewSelect(e){e.node&&(this.selectNode(this.ctrlPressed,e.node),e.preventDefault())}selectNode(e,t){this.trySelectComponent(e,t)||this.setTreeNodesSelectedState([t])}trySelectComponent(e,t){const r=this.treeView.dataItem(t).fullName,s=this.resolveNodeObject(r),a=this.provider.getService(g.a);if(a)if(s&&s instanceof n.a)try{this.selectedFromTreeView=!0;const t=a.Select(e,s);return!(1==t.length&&t[0]instanceof i.a)}finally{this.selectedFromTreeView=!1}else a.SetSelectedComponents([]);else f.b.logDebug("Internal error. Selection service not available.");return!1}resolveNodeObject(e){if(!e||!this.reportDocument)return null;let t=s.a.FindByName(this.reportDocument,e,!0);if(!t){const r=e.split(S.a.Separator());let i=s.a.FindByName(this.reportDocument,r[0],!0);for(let e=1;e<r.length;e++){const n=r[e];if(t=i[n],!t&&f.b.isIterable(i)){const e=parseInt(n,10);isNaN(e)||(t=s.a.GetFromCollection(i,e))}if(!t)break;i=t}}return t}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var i=r(209),n=r(25),s=r(74),a=r(184),o=r(24),l=r(6),c=r(11),d=r(78),u=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class h extends i.a{addMenuItemsCore(){const e=Object.create(null,{addMenuItemsCore:{get:()=>super.addMenuItemsCore}});var t;return u(this,void 0,void 0,(function*(){const r={Name:n.a[n.a.Configure],Title:this.sr.Configure,Action:this.configure.bind(this)};if(this.menuItems.push(r),!((null===(t=this.selectedComponent)||void 0===t?void 0:t.Parent)instanceof a.a)&&this.hasSDSPermission()){const e={Name:n.a[n.a.SaveAsSharedDataSource],Title:this.sr.SaveAsSharedDataSource,Action:this.saveAsSds.bind(this),ClassName:"-border-bottom"};this.menuItems.push(e)}return e.addMenuItemsCore.call(this)}))}configure(){return u(this,void 0,void 0,(function*(){const e=this.selectedComponent.getWizardComponentClass(),t=new s.b(this.provider,e).create({component:this.selectedComponent});yield t.open()}))}saveAsSds(){return u(this,void 0,void 0,(function*(){const e=new o.a(l.a.ConvertIdsToSds,this.provider);yield e.executeAsync(this.selectedComponent)}))}hasSDSPermission(){if(this.selectedComponent){return this.provider.getService(d.a).hasPermission(c.a.Commands_DataSources_SharedDataSource_Create)}return!0}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r(25),n=r(209),s=r(24),a=r(6),o=r(0),l=r(11),c=r(78),d=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class u extends n.a{addMenuItemsCore(){const e=Object.create(null,{addMenuItemsCore:{get:()=>super.addMenuItemsCore}});return d(this,void 0,void 0,(function*(){e.addMenuItemsCore.call(this),this.menuItems=this.menuItems.filter(e=>e.Name===i.a[i.a.Delete]),this.menuItems[0].Title=this.sr.Remove;if(this.provider.getService(c.a).hasPermission(l.a.Commands_DataSources_SharedDataSource_Edit)){const e={Name:i.a[i.a.Edit],Title:this.sr.OpenForEditing,Action:this.configureSds.bind(this)};this.menuItems.splice(0,0,e)}}))}configureSds(){new s.a(a.a.DocumentOpen,this.provider).execute({DocumentId:this.selectedComponent.getPropertyValue(o.a.Path),CheckPermission:!0})}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var i=r(73),n=r(9),s=r(65),a=r(0),o=r(752),l=r(393),c=r(3),d=r(8),u=r(70),h=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class p{constructor(e,t,r,i){this.provider=t,this.tableDesigner=r,this.isAdjacent=i,this.selectedListIndex=-1,this.groupBy=!0,this.addHeader=!1,this.addFooter=!1,this.sr=this.provider.getService(d.a),this.schemaService=this.provider.getServiceByName(c.a.ISchemaService),this.parentElement=e,this.listDataSource=new kendo.data.DataSource({data:[]})}get popupContentTemplate(){return`<div class="twd-editors -tablegroup">\n                    <div class="twd-editor">\n                        <div class="editor__content">\n                            <input class="hiddeninput" type="hidden" />\n                            <div class="editor__name twd-table-group-group-by">\n                                <span class="k-radio-wrap">\n                                    <input type="radio" name="grouping" data-type="number" id="radio-group-by" class="k-radio k-radio-md" value="1"\n                                           data-change="toggleGrouping" checked />\n                                </span>\n                                <label title="${this.sr.GroupBy}" class="k-radio-label" for="radio-group-by">\n                                    ${this.sr.GroupBy}\n                                </label>\n                            </div>\n                            <div class="editor__value twd-table-group-by-editor-wrapper">\n                                <button type="button" id="new-button" class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-button-icontext" data-action="add">\n                                    <span class="k-icon k-i-plus"></span>${this.sr.NewButton}\n                                </button>\n                                <button type="button" id="delete-button" class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-button-icontext" disabled data-action="remove">\n                                    <span class="k-icon k-i-delete"></span>${this.sr.DeleteButton}\n                                </button>\n                                <button type="button" id="move-up-button" class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-button-icon" disabled data-action="moveUp" title="${this.sr.MoveUp}">\n                                    <span class="k-icon k-i-arrow-up"></span>\n                                </button>\n                                <button type="button" id="move-down-button" class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-button-icon" disabled data-action="moveDown" title="${this.sr.MoveDown}">\n                                    <span class="k-icon k-i-arrow-down"></span>\n                                </button>\n                                <div class="twd-editor">\n                                    <div class="editor__content  editor__listparent">\n                                        <span class="editor__name twd-table-group-expression" title="${this.sr.Expression}">\n                                            ${this.sr.Expression}\n                                        </span>\n                                        <div class="editor__value editor__list"></div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class="twd-editor">\n                        <div class="editor__content">\n                            <span class="k-radio-wrap">\n                                <input type="radio" name="grouping" data-type="number" id="radio-show-detail-data" ${this.isAdjacent?"":"disabled"} class="k-radio k-radio-md" value="2"\n                                    data-change="toggleGrouping" />\n                            </span>\n                            <label title="${this.sr.ShowDetailData}" class="k-radio-label ${this.isAdjacent?"":"k-disabled"}" for="radio-show-detail-data" >\n                                ${this.sr.ShowDetailData}\n                            </label>\n                        </div>\n                    </div>\n\n                    <div class="twd-editor">\n                        <div class="editor__content">\n                            <span class="k-checkbox-wrap">\n                                <input type="checkbox" id="checkbox-add-header" ${this.isAdjacent?"disabled":""} class="k-checkbox k-checkbox-md k-rounded-md" data-change="toggleAddHeader" />\n                            </span>\n                            <label title="${this.sr.AddHeader}" class="k-checkbox-label ${this.isAdjacent?"k-disabled":""}" for="checkbox-add-header" >\n                                ${this.sr.AddHeader}\n                            </label>\n                        </div>\n                    </div>\n                    <div class="twd-editor">\n                        <div class="editor__content">\n                            <span class="k-checkbox-wrap">\n                                <input type="checkbox" id="checkbox-add-footer" ${this.isAdjacent?"disabled":""} class="k-checkbox k-checkbox-md k-rounded-md"  data-change="toggleAddFooter" />\n                            </span>\n                            <label title="${this.sr.AddFooter}" class="k-checkbox-label  ${this.isAdjacent?"k-disabled":""}" for="checkbox-add-footer" >\n                                ${this.sr.AddFooter}\n                            </label>\n                        </div>\n                    </div>\n                </div>\n                <div class="twd-buttons k-window-buttongroup k-actions k-actions-end">\n                    <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-primary" id="table-group-save" data-action="save" disabled>${this.sr.SaveButton}</button>\n                    <button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base" data-action="cancel">${this.sr.CancelButton}</button>\n                </div>`}get popupTemplate(){return`<div class="${n.a.ModalWindowClasses}"></div>`}get popupDefaultSize(){return{minWidth:340,minHeight:345,width:370,height:495}}initList(){this.kendoList=null,$(".editor__list").remove(),$(".editor__listparent").append('<div class="editor__value editor__list"></div>'),this.kendoList=this.popup.element.find(".editor__list").kendoListView({dataSource:this.listDataSource,navigatable:!0,selectable:"single",template:kendo.template('<div id="item#:id#" class="k-widget editor__list-item">\n                                        <div id="combo#:id#" data-id="#:id#" class="editor__combobox"></div>\n                                      </div>')}).data("kendoListView"),this.initCombo(),this.selectListIndex(this.selectedListIndex)}initCombo(){this.kendoList.element.find("div.editor__combobox").kendoComboBox({dataSource:this.comboDataSource,dataTextField:"name",dataValueField:"id",select:e=>h(this,void 0,void 0,(function*(){let t=e.item;if(t){let r=t.text();const i=e.sender.element.data().id;if("<Expression>"===r)return this.openExpressionWindow(i);this.listDataSource.get(i).set("comboIndex",e.sender.dataSource.indexOf(e.dataItem))}else this.addComboValue(""+e.sender.input.val());this.initList()})),change:e=>h(this,void 0,void 0,(function*(){if(""===e.sender.value()){const t=e.sender.element.data().id;this.listDataSource.get(t).set("comboIndex",0)}this.initList()}))}).each((e,t)=>{const r=$(t).data().id,i=this.listDataSource.get(r),n=i.get("comboIndex"),s=$(t).data("kendoComboBox");s.select(n),s.wrapper.off("click").on("click",e=>{const t=this.listDataSource.indexOf(i);this.selectListIndex(t)})}),this.CheckSaveEnabled()}CheckSaveEnabled(){const e=this.listDataSource.data().map((e,t)=>this.listDataSource.at(t).get("comboIndex"));this.groupBy?e.length&&e.every(e=>e>1)?$("#table-group-save").removeAttr("disabled"):$("#table-group-save").attr("disabled","disabled"):$("#table-group-save").removeAttr("disabled")}selectListIndex(e){this.kendoList.select(this.kendoList.items()[e]),this.selectedListIndex=e}initComboDataSource(){this.comboDataSource=new kendo.data.DataSource({data:[{name:"",id:1},{name:"<Expression>",id:2},...this.defaultExpressions.map((e,t)=>({name:e,id:t+3}))]})}addComboValue(e){let t=this.comboDataSource.data().find(t=>t.get("name")===e);t?this.listDataSource.at(this.selectedListIndex).set("comboIndex",this.comboDataSource.indexOf(t)):(this.comboDataSource.add({name:e,id:this.comboDataSource.total()+1}),this.listDataSource.at(this.selectedListIndex).set("comboIndex",this.comboDataSource.total()-1))}initExpressionPopupEditor(){return h(this,void 0,void 0,(function*(){const e=`${this.sr.Edit} ${this.sr.Expression}`,t=new i.a({},null,this.provider);yield t.Initialize(),t.Parent=this.tableDesigner.Component;const r=t.getPropertyWrapper(a.a.Expression);this.editorWindowRef=new u.a(this.provider).create(e,{value:"",displayExpressionEditor:!0,propertyName:a.a.Expression,propertyWrapper:r,readonlyState:!1});const n=this.getReport(),s=new l.a(this.provider).getDataSourceFields(this.schemaService,n.DataSources,a.a.Expression,r);s.nodes.sort((e,t)=>e.displayText.localeCompare(t.displayText)),this.defaultExpressions=s.nodes.map(e=>`= ${this.sr.Fields}.${e.displayText}`),this.editorWindowRef.component.onPopupUpdateValue((e,t)=>{this.editorWindowRef.close(),t&&(this.addComboValue(t),this.initList())})}))}getReport(){return this.provider.getServiceByName(c.a.IDesignerHost).RootComponent}openExpressionWindow(e){return h(this,void 0,void 0,(function*(){yield this.initExpressionPopupEditor(),this.editorWindowRef.open(),$(".k-overlay").css("position","absolute")}))}initPopup(){const e=$.parseHTML(this.popupTemplate);this.popup=$(e).kendoWindow({title:this.sr.TableGroup,visible:!1,actions:[],minWidth:this.popupDefaultSize.minWidth,minHeight:this.popupDefaultSize.minHeight,width:this.popupDefaultSize.width+"px",height:this.popupDefaultSize.height+"px",appendTo:$(".twd-designer"),draggable:{containment:$(".twd-designer")},modal:!0}).data("kendoWindow"),this.popup.element.off("click",".k-button").on("click",".k-button",e=>{this.executeAction(e,$(e.currentTarget))}),this.popup.element.off("change",".k-checkbox").on("change",".k-checkbox",e=>{this.executeAction(e,$(e.currentTarget))}),this.popup.element.off("change",".k-radio").on("change",".k-radio",e=>{this.executeAction(e,$(e.currentTarget))}),this.popup.element.closest(".k-window").addClass(n.a.WebDesignerPartsClassName),this.popup.element.closest(".k-window").find(".k-window-titlebar").addClass(n.a.ModalWindowHeaderClass)}executeAction(e,t){e.stopPropagation();const r=t.attr("data-action")||t.attr("data-change");if(r){(0,this.actions[r])(t)}}getExpression(){return this.listDataSource.data().map((e,t)=>{let r=this.listDataSource.at(t).get("comboIndex");return this.comboDataSource.at(r).get("name")}).filter(e=>!!e)}saveChanges(){const e=this.getExpression();this.parentElement.trigger(s.a.PopupUpdateValue,new o.a(this.groupBy,!this.isAdjacent&&this.addHeader,!this.isAdjacent&&this.addFooter,e)),this.closePopup()}closePopup(){this.popup.content(""),this.popup.close(),this.popup=null}addExpression(){const e=this.listDataSource.total();let t=-1;this.listDataSource.data().map((e,r)=>{let i=this.listDataSource.at(r).get("id");i>t&&(t=i)}),t++,this.listDataSource.add({name:"item"+t,id:t,comboIndex:0}),this.initCombo(),this.selectListIndex(e),$("#move-up-button").removeAttr("disabled"),$("#move-down-button").removeAttr("disabled"),$("#delete-button").removeAttr("disabled")}removeExpression(){if(this.selectedListIndex>-1){var e=this.listDataSource.at(this.selectedListIndex);this.listDataSource.remove(e),this.initCombo(),this.selectListIndex(this.listDataSource.total()-1)}this.listDataSource.total()||($("#move-up-button").attr("disabled","disabled"),$("#move-down-button").attr("disabled","disabled"),$("#delete-button").attr("disabled","disabled"))}moveUpExpression(){if(this.selectedListIndex>0){const t=this.selectedListIndex;var e=this.listDataSource.at(this.selectedListIndex);this.listDataSource.remove(e),this.listDataSource.insert(t-1,e),this.initCombo(),this.selectListIndex(t-1)}}moveDownExpression(){if(this.selectedListIndex<this.listDataSource.total()-1){const t=this.selectedListIndex;var e=this.listDataSource.at(this.selectedListIndex);this.listDataSource.remove(e),this.listDataSource.insert(t+1,e),this.initCombo(),this.selectListIndex(t+1)}}groupingHandler(e){this.groupBy="1"===e.val(),this.CheckSaveEnabled()}addHeaderHandler(e){this.addHeader=!0===e[0].checked}addFooterHandler(e){return this.addFooter=!0===e[0].checked}get actions(){return{save:this.saveChanges.bind(this),cancel:this.closePopup.bind(this),add:this.addExpression.bind(this),remove:this.removeExpression.bind(this),moveUp:this.moveUpExpression.bind(this),moveDown:this.moveDownExpression.bind(this),toggleGrouping:this.groupingHandler.bind(this),toggleAddHeader:this.addHeaderHandler.bind(this),toggleAddFooter:this.addFooterHandler.bind(this)}}openPopup(){return h(this,void 0,void 0,(function*(){this.initPopup(),this.loadPopupContent(),yield this.initExpressionPopupEditor(),this.initComboDataSource(),this.initList(),this.popup.center().open(),$(".k-overlay").css("position","absolute")}))}loadPopupContent(){this.popup.content(this.popupContentTemplate)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t,r,i){this.GroupBy=e,this.AddHeader=t,this.AddFooter=r,this.Expression=i}get Expression(){return this.expression}set Expression(e){this.expression=e}get GroupBy(){return this.groupBy}set GroupBy(e){this.groupBy=e}get AddHeader(){return this.addHeader}set AddHeader(e){this.addHeader=e}get AddFooter(){return this.addFooter}set AddFooter(e){this.addFooter=e}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return y}));var i=r(268),n=r(25),s=r(127),a=r(57),o=r(75),l=r(3),c=r(1),d=r(0),u=r(40),h=r(21),p=r(16),m=r(12),g=r(78),f=r(11),v=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class y extends i.a{constructor(e,t,r){super(e,t,r,!0)}addMenuItems(){return v(this,void 0,void 0,(function*(){const e={Name:n.a[n.a.AddExistingSharedDataSource],Title:this.sr.AddExistingSharedDataSource,Action:this.addExistingSds.bind(this)};this.menuItems.push(e)}))}onContextMenuOpen(e){}onContextMenuDeactivate(){this.Dispose()}addExistingSds(){this.withAssetManager(e=>v(this,void 0,void 0,(function*(){const t=h.a.getFileNameWithoutExtension(e.path),r=this.provider.getService(u.a).CreateName(t),i={[d.a.NetType]:c.a.SharedDataSource,[d.a.Name]:r,[d.a.Path]:e.path},n=this.provider.getServiceByName(l.a.IDesignSurfaceManager),s=this.provider.getServiceByName(l.a.IDesignerHost).CreateTransaction("Shared data source create");let a=null;try{a=yield n.ActiveDesignSurface.createNewComponent(c.a.SharedDataSource,i,n.ActiveDesignSurface.RootComponent);if(!this.provider.getService(g.a).hasPermission(f.a.Commands_AssetsManager_SharedDataSources))throw new Error(this.sr.AddExistingSDSPermissionError);this.provider.getService(p.a).Select(!1,a),s.Commit()}catch(e){this.provider.getService(m.a).error(e.message,e),s.Rollback(),null==a||a.delete()}})))}withAssetManager(e){this.assetManagerWindowRef=new s.a(this.provider).create(this.sr.BrowseForFolderWindowTitle,{initialPath:a.a.sharedDataSourceFolder,assetManagerConfig:o.a.getSelectSdsConfig(this.provider)}),this.assetManagerWindowRef.component.onClosing.subscribeOnce(t=>v(this,void 0,void 0,(function*(){yield e(t),this.assetManagerWindowRef.close()}))),this.assetManagerWindowRef.open()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(){this.items=[],this.count=0}GetLength(){return this.count}Push(e){this.items.push(e),this.count=this.count+1}Pop(){return this.count>0&&(this.count=this.count-1),this.items.pop()}Peek(){return this.items.slice(-1)[0]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r(147),n=r(146),s=r(71),a=r(42),o=r(150),l=r(0),c=r(396),d=r(79);class u extends c.a{constructor(e){super(),this.adapter=e}Visit(e){if(e){this.adapter.BeginItem();try{super.Visit(e)}finally{this.adapter.EndItem()}}}VisitExtension(e){e instanceof s.a||e instanceof a.a||super.VisitExtension(e)}VisitReportItem(e){this.adapter.FillItem(e)}VisitTocLevel(e){this.adapter.FillItem(e)}VisitReportSectionBase(e){this.adapter.FillItem(e)}VisitTable(e){this.adapter.FillTable(e)}VisitGraph(e){this.adapter.FillGraph(e)}VisitMap(e){this.adapter.FillMap(e)}VisitReport(e){this.adapter.FillReport(e);let t=null;const r=e.TocSection;if(r){const e=r.getProperty(l.a.Position);t=e.GetValue(r,r.PropertyStore)||e.DefaultValue}this.Visit(e.PageHeaderSection),this.invokeReportHeaderVisit(e.ReportHeaderSection,r,t),this.invokeVisitCollection(d.a.Find(e,n.a,!1)),this.Visit(e.DetailSection),this.invokeVisitCollection(d.a.Find(e,i.a,!1)),this.invokeReportFooterVisit(e.ReportFooterSection,r,t),this.Visit(e.PageFooterSection)}VisitReportBook(e){this.adapter.FillReportBook(e)}VisitSharedDataSourceFile(e){this.adapter.FillSharedDataSourceFile(e)}invokeVisitCollection(e){if(e)for(const t of e)this.Visit(t)}invokeReportHeaderVisit(e,t,r){this.invokeTocConditionalVisit(t,r,o.a.BeforeReportHeader),this.Visit(e),this.invokeTocConditionalVisit(t,r,o.a.AfterReportHeader)}invokeReportFooterVisit(e,t,r){this.invokeTocConditionalVisit(t,r,o.a.BeforeReportFooter),this.Visit(e),this.invokeTocConditionalVisit(t,r,o.a.AfterReportFooter)}invokeTocConditionalVisit(e,t,r){t===r&&this.Visit(e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(16),n=r(13),s=r(391);class a{constructor(e,t,r){this.$parent=$(e),this.provider=t,this.tabs=r,this.editors=[],this.tabStrip=null,this.$tabDom=null,this.init()}get Editors(){return this.editors}get template(){return'<div class="twd-tabs"></div>'}init(){const e=$.parseHTML(this.template);this.$parent.append(e),this.$tabDom=$(e),this.$tabDom.append("<ul class='tabs__header'></ul>");const t=this.$tabDom.find(".tabs__header");for(let e=0;e<this.tabs.length;e++){const r=this.tabs[e],i=0===e||!1;t.append(this.tabHeadertemplate(r.title,i));const n=new r.editor(this.$tabDom,this.provider);this.editors.push(n)}this.tabStrip=this.$tabDom.kendoTabStrip({activate:e=>{this.onTabActivate(e);const t=new s.a;this.provider.getService(n.c).emit(t)}}).data("kendoTabStrip"),this.tabStrip.select(1)}openToolboxTab(e){this.openTab(0,e)}openExplorerTab(e){this.openTab(1,e)}openTab(e,t){this.tabStrip.select().index()!==e?(this.tabStrip.one("activate",t),this.tabStrip.select(e)):t()}getToolboxTab(){return this.Editors[0]}getExplorerTab(){return this.Editors[1]}onTabActivate(e){const t=this.provider.getService(i.a);if(t){const r=t.GetSelectedComponents();this.updateTab($(e.item).index(),r)}}tabHeadertemplate(e,t){return`<li class="${t?"k-active":""} tabs_header-item">${e}</div>`}UpdateActiveTab(e){const t=this.tabStrip.select();t&&this.updateTab(t.index(),e)}updateTab(e,t){e>-1&&e<this.editors.length&&this.editors[e].update(t)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(24),n=r(204),s=r(1),a=r(16),o=r(334),l=r(79);class c extends i.a{constructor(e,t,r){super(r.Command,t),this.$parent=e,this.viewModel=r}get template(){return`<div tabindex="0"\n                    class="expander__item k-card ${this.viewModel.Draggable?"-draggable-component":""}"\n                    title="${this.viewModel.Title}"\n                    aria-label="${this.viewModel.Title}"\n                    component-name="${this.viewModel.NetType}">\n            <span class="k-icon ${this.viewModel.IconName} expander__icon"></span>\n            <span>${this.viewModel.Title}</span>\n        </div>`}addToParent(){this.$template=$(this.template),this.$parent.append(this.$template),this.toggleDisabled(),this.viewModel.Draggable&&this.$template.draggable({appendTo:"body",helper:"clone"});this.provider.getService(n.a).registerCommand(this)}updateStatusCore(e){this.status.enabled=this.isValidSelection(this.provider.getService(a.a).GetSelectedComponents()),this.toggleDisabled()}isValidSelection(e){var t;return!(!e||1!==e.length)&&(!(e[0]instanceof o.a)&&(e[0].Type!==s.a.SharedDataSource&&(null===(t=e[0].Parent)||void 0===t?void 0:t.Type)!==s.a.SharedDataSource&&(!!this.isUnparentableNetType(this.viewModel.NetType)||null!=l.a.GetContainerForNewItem(e[0],this.viewModel.NetType))))}isUnparentableNetType(e){return s.a.UnparentableNetTypes.includes(e)}toggleDisabled(){this.$template.toggleClass("k-disabled",!this.status.enabled),this.status.enabled?(this.detachEvents(),this.attachEvents()):(this.$template.removeClass("k-hover"),this.detachEvents())}detachEvents(){this.$template.off("click").off("keydown").off("mouseenter mouseleave").off("focus blur")}attachEvents(){this.$template.on("click",()=>{this.execute(this.viewModel)}).on("keydown",e=>{13===e.which&&this.execute(this.viewModel)}).on("mouseenter mouseleave",e=>{$(e.currentTarget).toggleClass("k-hover")}).on("focus blur",e=>{$(e.currentTarget).toggleClass("k-focus")})}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(112),n=r(19),s=r(4),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends n.a{CreateWrappers(e,t){if(!e.PropertyWrappersInitialized){const r=e.getProperties();e.PropertyWrappers=r.map(r=>new i.a([e],[e.PropertyStore],r,t))}return e.PropertyWrappers}CreateMergeableWrappers(e,t){const r=e.map(e=>e.getProperties());let n=r[0];if(e.length>1){n=n.filter(e=>e.Mergeable);for(let e=1;e<r.length;e++)n=n.filter(t=>r[e].find(e=>e.Mergeable&&e.Browsable&&e.Type===t.Type&&e.Name===t.Name&&e.EditorType===t.EditorType))}return n.map(r=>new i.a(e,e.map(e=>e.PropertyStore),r,t))}};o.getServiceName=()=>"IPropertyDescriptorWrapperFactory",o=a([Object(s.e)()],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r(1),n=r(0),s=r(3),a=r(488),o=r(489),l=r(490),c=r(251),d=r(760);class u{constructor(){this.instanceFactory=null,this.selectorTypesWeight={[o.a.name]:1,[c.a.name]:2,[a.a.name]:3,[l.a.name]:4}}GetRulesToApply(e,t){this.instanceFactory=e.Provider.getServiceByName(s.a.IInstanceFactoryService);const r=[],i=[];for(const i of t)if(i.Selectors){const t=[];for(const r of i.Selectors){const i=this.CreateSelectorInstance(r);i&&i.Match(e)&&t.push(i)}if(t.length>0){const e=new d.a(this.GetStrongestSelector(t),i);r.push(e)}}this.BubbleSort(r);for(const e of r)i.push(e.Rule);return i}CreateSelectorInstance(e){const t=e[n.a.NetType],r=c.a.Types[e[n.a.Type]];let s;switch(t){case i.a.StyleSelector:const t=e[n.a.StyleName];s=new l.a(r,t);break;case i.a.TypeSelector:s=new c.a(r);break;case i.a.AttributeSelector:const d=e[n.a.PropertyName],u=e[n.a.PropertyValue][n.a.Value];s=new a.a(r,d,u);break;case i.a.DescendantSelector:const h=[],p=e[n.a.Selectors];for(const e of p){const t=this.CreateSelectorInstance(e);t&&h.push(t)}h.length>0&&(s=new o.a(h));break;default:s=null}return s}GetStrongestSelector(e){let t=e[0];for(let r=1;r<e.length;r++){const i=e[r];this.CompareSelectors(t,i)<0&&(t=i)}return t}CompareSelectors(e,t){const r=e.constructor.name,i=t.constructor.name,n=this.selectorTypesWeight[r],s=this.selectorTypesWeight[i];return r===i?r===c.a.name?this.CompareTypeSelectors(e,t):0:n<s?-1:1}CompareTypeSelectors(e,t){if(e.Type===t.Type)return 0;if(this.instanceFactory.getInstanceModel(e.Type.typeName)instanceof t.Type)return-1;return this.instanceFactory.getInstanceModel(t.Type.typeName)instanceof e.Type?1:0}BubbleSort(e){for(let t=1;t<e.length;t++)for(let t=0;t<e.length-1;t++)if(this.CompareSelectors(e[t].Selector,e[t+1].Selector)>0){let r=e[t];e[t]=e[t+1],e[t+1]=r}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t){this.Selector=e,this.Rule=t}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(3),n=r(762),s=r(243),a=r(64),o=r(13),l=r(46),c=r(763);class d{constructor(e){this.provider=e,this.designSurfaceManager=this.provider.getServiceByName(i.a.IDesignSurfaceManager),this.webDesignerEventEmitter=this.provider.getService(o.c),this.webDesignerEventEmitter.on(a.a,()=>{this.designSurfaceManager.ActiveDesignSurface&&(this.designSurfaceEventEmitter=this.designSurfaceManager.ActiveDesignSurface.getService(o.b))})}OnComponentChanging(e,t){const r=new l.c(new c.a(e,t));this.DispatchEvent(r)}OnComponentChanged(e,t,r,i){const s=new l.b(new n.a(e,t,r,i));this.DispatchEvent(s)}OnComponentAdded(e){const t=new l.a(new s.a(e));this.DispatchEvent(t)}OnComponentRemoved(e){const t=new l.d(new s.a(e));this.DispatchEvent(t)}DispatchEvent(e){const t=this.provider.getServiceByName(i.a.IDesignerHost);t&&t.IsLoaded&&this.designSurfaceEventEmitter.emit(e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(243);class n extends i.a{constructor(e,t,r,i){super(e),this.propertyDescriptor=t,this.oldValue=r,this.newValue=i}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(243);class n extends i.a{constructor(e,t){super(e),this.propertyDescriptor=t}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(3),n=r(394),s=r(12),a=r(8),o=r(1),l=r(168),c=r(184);class d{constructor(e){this.unsupportedDataSources=[o.a.EntityDataSource,o.a.OpenAccessDataSource,o.a.CubeDataSource,o.a.OpenClientDataSource],this.provider=e,this.sr=this.provider.getService(a.a),this.notifications=this.provider.getService(s.a),this.typeInstanceMap=new Map}createInstance(e,t,r,a=!0){let o=null;try{let s=this.provider.getServiceByName(i.a.ISchemaService).getComponentType(e);s!==l.a||r||(s=c.a),!s&&this.unsupportedDataSources.includes(e)&&(s=n.a,this.notifications.warning(`'${e}${this.sr.DataSourceUnsupportedWarning}'`,!0)),o=new s(t||{},r,this.provider,a)}catch(t){this.provider.getService(s.a).error(`Could not create instance of '${e}'.`,t)}return o}getInstanceModel(e){if(this.typeInstanceMap.has(e))return this.typeInstanceMap.get(e);const t=this.createInstance(e,null,null,!1);return this.typeInstanceMap.set(e,t),t}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(1),n=r(12),s=r(244),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o{constructor(e,t){this.provider=e,this.reportDesignerApiUrl=t}RenderGraph(e,t){return a(this,void 0,void 0,(function*(){return this.RenderLiveItem(e,t,i.a.Graph)}))}RenderMap(e,t){return a(this,void 0,void 0,(function*(){return this.RenderLiveItem(e,t,i.a.Map)}))}RenderBarcode(e,t){return a(this,void 0,void 0,(function*(){return this.RenderLiveItem(e,t,i.a.Barcode)}))}RenderHtmlTextBox(e,t){return a(this,void 0,void 0,(function*(){return this.RenderLiveItem(e,t,i.a.HtmlTextBox)}))}RenderShape(e,t){return a(this,void 0,void 0,(function*(){return this.RenderLiveItem(e,t,i.a.Shape)}))}RenderCrossSectionItem(e,t){return a(this,void 0,void 0,(function*(){return this.RenderLiveItem(e,t,i.a.CrossSectionItem)}))}RenderCheckBox(e,t){return a(this,void 0,void 0,(function*(){return this.RenderLiveItem(e,t,i.a.CheckBox)}))}RenderPictureBox(e,t){return a(this,void 0,void 0,(function*(){return this.RenderLiveItem(e,t,i.a.PictureBox)}))}RenderRadialGauge(e,t){return a(this,void 0,void 0,(function*(){return this.RenderLiveItem(e,t,i.a.RadialGauge)}))}RenderLinearGauge(e,t){return a(this,void 0,void 0,(function*(){return this.RenderLiveItem(e,t,i.a.LinearGauge)}))}RenderLiveItem(e,t,r){return a(this,void 0,void 0,(function*(){const i={report:e,item:t},a=yield fetch(`${this.reportDesignerApiUrl}render/${r}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}),o=yield a.json();if(!a.ok){return this.provider.getService(n.a).warning(`Could not generate the preview of '${t}'. ${o.message} ${o.exceptionMessage}`,!0),new s.a(a.ok,o.exceptionMessage)}return new s.a(a.ok,o)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return qt}));var i=r(301),n=r(491),s=r(302),a=r(492),o=r(493),l=r(87),c=r(323),d=r(73),u=r(165),h=r(217),p=r(494),m=r(227),g=r(495),f=r(347),v=r(245),y=r(496),S=r(497),C=r(147),b=r(146),w=r(136),P=r(304),D=r(498),x=r(499),R=r(166),T=r(218),I=r(220),E=r(224),N=r(305),M=r(71),O=r(500),k=r(173),G=r(174),B=r(56),F=r(82),A=r(226),V=r(306),L=r(145),_=r(501),W=r(502),j=r(219),z=r(307),H=r(308),U=r(42),q=r(15),J=r(309),Q=r(310),K=r(137),X=r(80),Y=r(326),Z=r(221),ee=r(503),te=r(168),re=r(68),ie=r(1),ne=r(44),se=r(228),ae=r(767),oe=r(246),le=r(504),ce=r(505),de=r(768),ue=r(781),he=r(179),pe=r(782),me=r(783),ge=r(785),fe=r(786),ve=r(787),ye=r(788),Se=r(789),Ce=r(790),be=r(791),we=r(792),Pe=r(793),De=r(794),xe=r(795),Re=r(796),Te=r(797),Ie=r(798),Ee=r(402),Ne=r(799),Me=r(800),Oe=r(801),ke=r(802),Ge=r(26),Be=r(803),Fe=r(804),Ae=r(805),Ve=r(806),Le=r(453),_e=r(819),We=r(820),je=r(821),ze=r(823),$e=r(455),He=r(824),Ue=r(507),qe=r(508),Je=r(509),Qe=r(510),Ke=r(335),Xe=r(197),Ye=r(187),Ze=r(511),et=r(512),tt=r(513),rt=r(142),it=r(143),nt=r(514),st=r(515),at=r(516),ot=r(517),lt=r(100),ct=r(4),dt=r(518),ut=r(303),ht=r(519),pt=r(520),mt=r(521),gt=r(522),ft=r(8),vt=r(523),yt=r(236),St=r(61),Ct=r(188),bt=r(336),wt=r(524),Pt=r(99),Dt=r(525),xt=(r(885),r(312),r(460),r(947),r(462),r(38)),Rt=r(834),Tt=r(12),It=r(334),Et=r(835),Nt=r(340),Mt=r(418),Ot=r(836),kt=r(837),Gt=r(527),Bt=r(456),Ft=r(528),At=r(529),Vt=r(530),Lt=r(531),_t=r(838),Wt=r(532),jt=r(533),zt=r(83),$t=r(29),Ht=r(0),Ut=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class qt{constructor(e,t){this.unknownEditors=[],this.provider=e,this.reportDesignerApiUrl=t,this.typeSchemaCache={},this.defaultPropertyStoreCache={},this.expressionBuilderHierarchyCache=null,this.fontsCache=null,this.paperSizeCache=null,this.cultureContext=null,this.componentMap={[M.a.typeName]:M.a,[It.a.typeName]:It.a,[I.a.typeName]:I.a,[Z.a.typeName]:Z.a,[G.a.typeName]:G.a,[b.a.typeName]:b.a,[h.a.typeName]:h.a,[C.a.typeName]:C.a,[k.a.typeName]:k.a,[T.a.typeName]:T.a,[E.a.typeName]:E.a,[H.a.typeName]:H.a,[U.a.typeName]:U.a,[z.a.typeName]:z.a,[i.a.typeName]:i.a,[s.a.typeName]:s.a,[m.a.typeName]:m.a,[P.a.typeName]:P.a,[ut.a.typeName]:ut.a,[N.a.typeName]:N.a,[V.a.typeName]:V.a,[j.a.typeName]:j.a,[K.a.typeName]:K.a,[L.a.typeName]:L.a,[oe.a.typeName]:oe.a,[le.a.typeName]:le.a,[Gt.a.typeName]:Gt.a,[Bt.a.typeName]:Bt.a,[Ft.a.typeName]:Ft.a,[At.a.typeName]:At.a,[ce.a.typeName]:ce.a,[Vt.a.typeName]:Vt.a,[_t.a.typeName]:Bt.a,[Wt.a.typeName]:Wt.a,[Lt.a.typeName]:Lt.a,[jt.a.typeName]:jt.a,[_.a.typeName]:_.a,[a.a.typeName]:a.a,[ee.a.typeName]:ee.a,[D.a.typeName]:D.a,[x.a.typeName]:x.a,[te.a.typeName]:te.a,[Ke.a.typeName]:Ke.a,[A.a.typeName]:A.a,[Ue.a.typeName]:Ue.a,[Je.a.typeName]:Je.a,[qe.a.typeName]:qe.a,[n.a.typeName]:n.a,[W.a.typeName]:W.a,[O.a.typeName]:O.a,[q.a.typeName]:q.a,[g.a.typeName]:g.a,[v.a.typeName]:v.a,[y.a.typeName]:y.a,[S.a.typeName]:S.a,[Y.a.typeName]:Y.a,[f.a.typeName]:f.a,[f.b.typeName]:f.b,[o.a.typeName]:o.a,[dt.a.typeName]:dt.a,[Xe.d.typeName]:Xe.d,[Xe.c.typeName]:Xe.c,[Xe.b.typeName]:Xe.b,[Xe.a.typeName]:Xe.a,[Ye.a.typeName]:Ye.a,[Ze.a.typeName]:Ze.a,[et.a.typeName]:et.a,[tt.a.typeName]:tt.a,[rt.a.typeName]:rt.a,[ht.a.typeName]:ht.a,[pt.a.typeName]:pt.a,[gt.a.typeName]:gt.a,[mt.a.typeName]:mt.a,[it.a.typeName]:it.a,[nt.a.typeName]:nt.a,[st.a.typeName]:st.a,[at.a.typeName]:at.a,[ot.a.typeName]:ot.a,[lt.d.typeName]:lt.d,[lt.g.typeName]:lt.g,[lt.c.typeName]:lt.c,[lt.f.typeName]:lt.f,[lt.b.typeName]:lt.b,[lt.e.typeName]:lt.e,[lt.a.typeName]:lt.a,[Dt.a.typeName]:Dt.a,[J.a.typeName]:J.a,[Q.a.typeName]:Q.a,[d.a.typeName]:d.a,[u.a.typeName]:u.a,[c.a.typeName]:c.a,[Qe.a.typeName]:Qe.a,[p.a.typeName]:p.a,[vt.a.typeName]:vt.a,[Ct.a.typeName]:Ct.a,[bt.a.typeName]:bt.a,[Nt.a.typeName]:Nt.a,[wt.a.typeName]:wt.a,[l.a.typeName]:l.a,[w.a.typeName]:w.a,[R.a.typeName]:R.a,[B.a.typeName]:B.a,[F.a.typeName]:F.a,[X.a.typeName]:X.a},this.designerMap={[ie.a.Report]:Ee.a,[ie.a.ReportBook]:Et.a,[ie.a.SharedDataSource]:Ot.a,SharedDataSourceFile:kt.a,[ie.a.UnsupportedDataSource]:Te.a,[ie.a.PageHeaderSection]:De.a,[ie.a.TocSection]:je.a,[ie.a.ReportHeaderSection]:Me.a,[ie.a.GroupHeaderSection]:ve.a,[ie.a.DetailSection]:me.a,[ie.a.GroupFooterSection]:fe.a,[ie.a.ReportFooterSection]:Ne.a,[ie.a.PageFooterSection]:Pe.a,[ie.a.Panel]:xe.a,[ie.a.List]:Le.a,[ie.a.Table]:Le.a,[ie.a.Crosstab]:Le.a,[ie.a.Barcode]:de.a,[ie.a.CheckBox]:ue.a,[ie.a.Graph]:ge.a,[ie.a.HtmlTextBox]:ye.a,[ie.a.Map]:we.a,[ie.a.PictureBox]:Re.a,[ie.a.Shape]:Oe.a,[ie.a.CrossSectionItem]:ke.a,[ie.a.SubReport]:Se.a,[ie.a.TextBox]:_e.a,[ie.a.Gauge]:$e.a,[ie.a.RadialGauge]:$e.c,[ie.a.RadialGaugeRange]:Ge.a,[ie.a.RadialGaugeTicks]:Ge.a,[ie.a.RadialGaugeLabels]:Ge.a,[ie.a.RadialGaugeNeedle]:Ge.a,[ie.a.LinearGauge]:$e.b,[ie.a.LinearGaugeRange]:Ge.a,[ie.a.LinearGaugeScale]:Ge.a,[ie.a.LinearGaugeTicks]:Ge.a,[ie.a.LinearGaugeLabels]:Ge.a,[ie.a.LinearGaugeIndicator]:Ge.a,[ie.a.SqlDataSource]:Be.a,[ie.a.CsvDataSource]:pe.a,[ie.a.WebServiceDataSource]:ze.a,[ie.a.JsonDataSource]:Ce.a,[ie.a.ObjectDataSource]:be.a,[ie.a.Group]:Ie.a,[ie.a.TableGroup]:Fe.a,[ie.a.GraphGroup]:he.a,[ie.a.MapGroup]:he.a,[ie.a.GeoLocationMapGroup]:he.a,[ie.a.ShapeMapGroup]:he.a,[ie.a.TocLevel]:We.a,[re.a.TableGroups]:Ae.a,[re.a.TablePart]:Ve.a,[ie.a.Measure]:he.a,[ie.a.Grouping]:he.a,[ie.a.Sorting]:he.a,[ie.a.Filter]:he.a,[ie.a.FormattingRule]:he.a,[ie.a.Parameter]:Ge.a,[ie.a.ReportParameter]:Ge.a,[ie.a.StyleRule]:Ge.a,[ie.a.SqlDataSourceParameter]:Ge.a,[ie.a.WebServiceParameter]:Ge.a,[ie.a.ObjectDataSourceParameter]:Ge.a,[ie.a.CalculatedField]:Ge.a,[ie.a.GraphTitle]:Ge.a,[ie.a.MapTitle]:Ge.a,[ie.a.ExternalStyleSheet]:Ge.a,[ie.a.DataColumn]:Ge.a,[ie.a.MapLegend]:Ge.a,[ie.a.Watermark]:Ge.a,[ie.a.TextWatermark]:Ge.a,[ie.a.PictureWatermark]:Ge.a,[ie.a.BackgroundOverlay]:Ge.a,[ie.a.GraphCoordinateSystem]:Ge.a,[ie.a.PolarCoordinateSystem]:Ge.a,[ie.a.CartesianCoordinateSystem]:Ge.a,[ie.a.GraphAxis]:Ge.a,[ie.a.CrossAxisPosition]:Ge.a,[ie.a.DateTimeScaleCrossAxisPosition]:Ge.a,[ie.a.NumericalScaleCrossAxisPosition]:Ge.a,[ie.a.LogarithmicScaleCrossAxisPosition]:Ge.a,[ie.a.CategoryScaleCrossAxisPosition]:Ge.a,[ie.a.GraphSeries]:Ge.a,[ie.a.LineSeries]:Ge.a,[ie.a.BarSeries]:Ge.a,[ie.a.AreaSeries]:Ge.a,[ie.a.OhlcSeries]:Ge.a,[ie.a.RenderingSettings]:Ge.a,[ie.a.MapSeriesBase]:Ge.a,[ie.a.PointMapSeries]:Ge.a,[ie.a.LocationMapSeries]:Ge.a,[ie.a.ShapeMapSeries]:Ge.a,[ie.a.GraphMapSeries]:Ge.a,[ie.a.PieMapSeries]:Ge.a,[ie.a.PieGraphMapSeries]:Ge.a,[ie.a.ColumnMapSeries]:Ge.a,[ie.a.BarGraphMapSeries]:Ge.a,[ie.a.CustomAction]:Ge.a,[ie.a.ReportSource]:Ge.a,[ie.a.UriReportSource]:Ge.a,[ie.a.XmlReportSource]:Ge.a,[re.a.DesignTimeReportSource]:Ge.a},this.ignoredEditors=["ReportItemBase","RectangleU"],this.iconMap={Default:"k-i-parameters-unknown",[ie.a.Report]:"k-i-calculator",[ie.a.PageHeaderSection]:"k-i-page-header-section",[ie.a.TocSection]:"k-i-toc-section",[ie.a.ReportHeaderSection]:"k-i-report-header-section",[ie.a.GroupHeaderSection]:"k-i-group-header-section",[ie.a.DetailSection]:"k-i-detail-section",[ie.a.GroupFooterSection]:"k-i-group-footer-section",[ie.a.ReportFooterSection]:"k-i-report-footer-section",[ie.a.PageFooterSection]:"k-i-page-footer-section",[ie.a.Panel]:"k-i-checkbox",[ie.a.List]:"k-i-list-unordered",[ie.a.Table]:"k-i-table",[ie.a.Crosstab]:"k-i-crosstab",[ie.a.TableWizard]:"k-i-table-wizard",[ie.a.CrosstabWizard]:"k-i-crosstab-wizard",[St.a.BarGraphWizard]:"k-i-chart-bar-clustered",[St.a.LineGraphWizard]:"k-i-chart-line",[St.a.PieGraphWizard]:"k-i-chart-pie",[St.a.AreaGraphWizard]:"k-i-chart-area-clustered",[St.a.ColumnGraphWizard]:"k-i-chart-column-clustered",[ie.a.Barcode]:"k-i-barcode-outline",[ie.a.CheckBox]:"k-i-checkbox-checked",[ie.a.Graph]:"k-i-graph",[ie.a.HtmlTextBox]:"k-i-code-snippet",[ie.a.Map]:"k-i-globe-outline",[ie.a.Choropleth]:"k-i-chart-choropleth",[ie.a.PictureBox]:"k-i-image",[ie.a.Shape]:"k-i-shape",[ie.a.SubReport]:"k-i-subreport",[ie.a.TextBox]:"k-i-textbox-hidden",[ie.a.RadialGauge]:"k-i-gauge-radial",[ie.a.LinearGauge]:"k-i-gauge-linear",[St.a.RadialGaugeWizard]:"k-i-gauge-radial-wizard",[St.a.LinearGaugeWizard]:"k-i-gauge-linear-wizard",[ie.a.DataSourceCollection]:"k-i-data",[ie.a.SharedDataSource]:"k-i-data-sds",[ie.a.SqlDataSource]:"k-i-data-sql",[ie.a.CsvDataSource]:"k-i-data-csv",[ie.a.WebServiceDataSource]:"k-i-data-web",[ie.a.JsonDataSource]:"k-i-data-json",[ie.a.ObjectDataSource]:"k-i-data-ods",[ie.a.TocLevel]:"k-i-toc-section-level",[ie.a.GroupCollection]:"k-i-group-collection",[ie.a.Group]:"k-i-group-section",[ie.a.TableGroup]:"k-i-insert-up",[ie.a.CellCollection]:"k-i-pane-freeze",[ie.a.TableCell]:"k-i-table-cell",[ie.a.ReportParametersCollection]:"k-i-parameters",[ie.a.ReportParameter]:"k-i-parameters",[ie.a.StyleSheet]:"k-i-palette",[ie.a.StyleRule]:"k-i-palette",[se.a.String]:"k-i-parameter-string",[se.a.Integer]:"k-i-parameter-integer",[se.a.Boolean]:"k-i-parameter-boolean",[se.a.Float]:"k-i-parameter-float",[se.a.DateTime]:"k-i-parameter-date-time",[ie.a.String]:"k-i-parameter-string",[ie.a.Boolean]:"k-i-parameter-boolean",[ie.a.Decimal]:"k-i-parameter-float",[ie.a.Float]:"k-i-parameter-float",[ie.a.Single]:"k-i-parameter-float",[ie.a.Double]:"k-i-parameter-float",[ie.a.Int32]:"k-i-parameter-integer",[ie.a.Int64]:"k-i-parameter-integer",[ie.a.Integer]:"k-i-parameter-integer",[ie.a.DateTime]:"k-i-parameter-date-time",[ie.a.TimeSpan]:"k-i-parameter-date-time",[ie.a.DayOfWeek]:"k-i-parameter-string",[ie.a.DateTimeKind]:"k-i-parameter-string",[ie.a.ByteArray]:"k-i-parameters-byte-array",[ne.a.ClusteredBarGraph]:"k-i-chart-bar-clustered",[ne.a.StackedBarGraph]:"k-i-chart-bar-stacked",[ne.a.Stacked100BarGraph]:"k-i-chart-bar-stacked100",[ne.a.ClusteredColumnGraph]:"k-i-chart-column-clustered",[ne.a.StackedColumnGraph]:"k-i-chart-column-stacked",[ne.a.Stacked100ColumnGraph]:"k-i-chart-column-stacked100",[ne.a.AreaGraph]:"k-i-chart-area-clustered",[ne.a.StackedAreaGraph]:"k-i-chart-area-stacked",[ne.a.Stacked100AreaGraph]:"k-i-chart-area-stacked100",[ne.a.LineGraph]:"k-i-chart-line",[ne.a.StackedLineGraph]:"k-i-chart-line-stacked",[ne.a.Stacked100LineGraph]:"k-i-chart-line-stacked100",[ne.a.WithMarkersLineGraph]:"k-i-chart-line-markers",[ne.a.StackedWithMarkersLineGraph]:"k-i-chart-line-stacked-markers",[ne.a.Stacked100WithMarkersLineGraph]:"k-i-chart-line-stacked100-markers",[ne.a.PieGraph]:"k-i-chart-pie",[ne.a.DoughnutGraph]:"k-i-chart-doughnut",[zt.a.SingleRangeRadialGauge]:"k-i-gauge-single-range-radial",[zt.a.MultiRangeRadialGauge]:"k-i-gauge-multi-range-radial",[zt.a.HorizontalSingleRangeLinearGauge]:"k-i-gauge-horizontal-single-range-linear",[zt.a.HorizontalMultiRangeLinearGauge]:"k-i-gauge-horizontal-multi-range-linear",[zt.a.VerticalSingleRangeLinearGauge]:"k-i-gauge-vertical-single-range-linear",[zt.a.VerticalMultiRangeLinearGauge]:"k-i-gauge-vertical-multi-range-linear",[Pt.a.Functions]:"k-i-formula-fx",[Pt.a.ReportParameters]:"k-i-parameters",[Pt.a.Operators]:"k-i-filter-add-expression",[Pt.a.Constants]:"k-i-foreground-color",[Pt.a.Fields]:"k-i-data",[Pt.a.ReportConstants]:"k-i-js",[Pt.a.GlobalObjects]:"k-i-style-builder",[Mt.a.TriggerOnboardingExperience]:"k-i-question"},this.dataTypeMap={Default:"TextBox",[ie.a.ByteArray]:"PictureBox"},this.getCultureContext().then(e=>this.cultureContext=e)}get CultureContext(){return this.cultureContext}getComponentType(e){return this.componentMap[e]}getDesignerType(e){return this.designerMap[e]}getEditorType(e,t=null){if(!this.ignoredEditors.some(t=>t===e)&&!this.ignoredEditors.some(e=>e===t)){let r=xt.a.tryFindEditorType(e);if(r)return r;if(r=xt.a.tryFindEditorType(t),r)return r;const i=`${e} ${t}`;return window.TelerikWebReportDesignerDebugMode&&!this.unknownEditors.includes(i)&&(this.unknownEditors.push(i),ct.b.logError(`Unknown Editor: EditorType: ${e}, MemberType: ${t}`)),xt.a.findEditorBuilder(Rt.a)}return null}getTypeSchema(e){return Ut(this,void 0,void 0,(function*(){let t;return this.typeSchemaCache[e]?t=this.typeSchemaCache[e]:(t=fetch(`${this.reportDesignerApiUrl}typeSchema/${e}`).then(e=>e.json()),this.setTypeSchema(e,t)),t}))}preloadCommonTypeSchemas(){return Ut(this,void 0,void 0,(function*(){const e=[];for(const t of Object.keys(yt.a)){const r=yt.a[t];this.typeSchemaCache[r]||e.push(r)}const t=yield fetch(this.reportDesignerApiUrl+"typeSchemaCollection",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),r=yield t.json();for(let t=0;t<e.length;t++)this.setTypeSchema(e[t],r[t])}))}getExpressionBuilderSchema(){return Ut(this,void 0,void 0,(function*(){if(null!=this.expressionBuilderHierarchyCache)return this.expressionBuilderHierarchyCache;const e=yield fetch(this.reportDesignerApiUrl+"expressionBuilderHierarchy",{method:"GET"}),t=this.provider.getService(ft.a);if(!e.ok){return this.provider.getService(Tt.a).error(t.CouldNotRetrieveExpressionSchema,new $t.a(`${e.status} ${e.statusText}`,this.provider),!0),null}return this.expressionBuilderHierarchyCache=yield e.json(),this.expressionBuilderHierarchyCache}))}getExpressionBuilderParametersSchema(e){return Ut(this,void 0,void 0,(function*(){const t=[];e.forEach(e=>t.push(e.Name));const r=yield fetch(this.reportDesignerApiUrl+"expressionBuilderParametersHierarchy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),i=this.provider.getService(ft.a);if(!r.ok){return this.provider.getService(Tt.a).error(i.CouldNotRetrieveExpressionSchema,new $t.a(`${r.status} ${r.statusText}`,this.provider),!0),null}return r.json()}))}setTypeSchema(e,t){this.typeSchemaCache[e]=t}typeSchemaExists(e){return!!this.typeSchemaCache[e]}getDefaultPropertyStore(e){return Ut(this,void 0,void 0,(function*(){if(this.defaultPropertyStoreCache[e])return JSON.parse(this.defaultPropertyStoreCache[e]);{const t=yield fetch(`${this.reportDesignerApiUrl}defaultPropertyStore/${e}`),r=yield t.json();return e!==ie.a.Report&&e!==ie.a.ReportBook&&e!==ie.a.SharedDataSource&&delete r.$schema,this.defaultPropertyStoreCache[e]=JSON.stringify(r),r}}))}getBindingAvailablePaths(e,t,r){return Ut(this,void 0,void 0,(function*(){const i={};$.extend(i,t,{[Ht.a.SchemaKey]:r});const n={item:i,itemName:e},s=yield fetch(this.reportDesignerApiUrl+"bindingPaths",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(s.ok){return yield s.json()}{const e=this.provider.getService(ft.a);return this.provider.getService(Tt.a).error(e.CouldNotRetrieveBindingPaths,new $t.a(`${s.status} ${s.statusText}`,this.provider),!0),null}}))}getFontNames(){return Ut(this,void 0,void 0,(function*(){if(this.fontsCache)return this.fontsCache;{const e=yield fetch(this.reportDesignerApiUrl+"fonts"),t=yield e.json();return this.fontsCache=t,t}}))}ensurePaperSizes(){return Ut(this,void 0,void 0,(function*(){if(!this.paperSizeCache){this.paperSizeCache=[];const e=yield fetch(this.reportDesignerApiUrl+"papersizes"),t=yield e.json();for(const e of t)this.paperSizeCache.push(new He.a(e))}}))}getPaperSize(e){return Ut(this,void 0,void 0,(function*(){return yield this.ensurePaperSizes(),this.paperSizeCache.find(t=>t.PaperKind===e)}))}getCultureContext(){return Ut(this,void 0,void 0,(function*(){const e=yield fetch(this.reportDesignerApiUrl+"culturecontext").then(e=>e.json());return new ae.a(e)}))}getWizardStyleSheets(e){return Ut(this,void 0,void 0,(function*(){const t=yield fetch(`${this.reportDesignerApiUrl}wizardStyleSheets/${e}`);return yield t.json()}))}evaluateExpression(e,t){return Ut(this,void 0,void 0,(function*(){const r={report:e,item:t};return(yield fetch(this.reportDesignerApiUrl+"evaluate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})).json()}))}getIconClass(e){return this.iconMap[e]||this.iconMap.Default}getFullIconClass(e){return"k-icon "+this.getIconClass(e)}getDataTypeAttribute(e){return this.dataTypeMap[e]||this.dataTypeMap.Default}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e){this.decimalSeparator=e.decimalSeparator,this.listSeparator=e.listSeparator,this.defaultUnitType=e.defaultUnitType}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(1),n=r(0),s=r(244),a=r(97),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends a.a{get DesignerClassName(){return i.a.Barcode}noBarcodeHtml(e){return`<div class="default-component-text">&lt;${e}&gt;</div>`}RenderItem(e,t){return o(this,void 0,void 0,(function*(){const r=this.Component.getPropertyValue(n.a.Value),a=this.Component.getPropertyValue("Encoder");return r||a[n.a.NetType]===i.a.SwissQRCodeEncoder&&a.BillData?this.RenderService.RenderBarcode(e,t):Promise.resolve(new s.a(!0,btoa(this.noBarcodeHtml(t))))}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var i=r(27),n=r(5),s=r(9),a=r(3),o=r(16),l=r(8),c=r(770),d=r(774),u=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class h{constructor(e,t){this.designer=e,this.provider=t,this.originalDimensions=null,this.isDraggableInitialized=!1,this.isDroppableInitialized=!1,this.zIndex=0,this.visible=!0,this.selectionService=t.getService(o.a),this.designSurfaceManager=t.getServiceByName(a.a.IDesignSurfaceManager),this.dragManager=new c.a(e,t),this.dropManager=new d.a(e,t)}get SelectedComponents(){return this.selectionService.GetSelectedComponents()}get VisualElement(){return this.$visualElement}get RootVisualElement(){return this.$rootVisualElement}get ZIndex(){return this.zIndex}get IsDroppableInitialized(){return this.isDroppableInitialized}Initialize(e,t,r=!0){this.$parent=this.designer.Component.Parent?this.designer.Component.Parent.Designer.Overlay.VisualElement:this.designSurfaceManager.ActiveDesignSurface.visualElement,this.$parent.append(this.template),this.$visualElement=this.$parent.find('[data-component-overlay="'+this.designer.Component.NameAsJQueryAndHtmlSafeString+'"]'),this.$rootVisualElement=this.designSurfaceManager.ActiveDesignSurface.visualElement.children().first(),this.sr=this.provider.getService(l.a),this.visible=r,this.Update(),e&&this.initDraggable(),t&&this.initDroppable(),this.zIndex=this.designer.Overlay.ZIndex+1}Update(){const e=this.calculateStyles();this.VisualElement.css(e),this.$visualElement.attr("data-component-overlay",this.designer.Component.NameAsAttributeSafeString),this.setBorders()}UpdatePosition(e){const t={left:this.originalDimensions.left+e.left+"px",top:this.originalDimensions.top+e.top+"px"};this.VisualElement.css(t)}SaveCurrentDimensions(){this.originalDimensions=this.getOriginalDimensions(this.VisualElement)}initDraggable(){this.$visualElement.addClass("-draggable-component"),this.$visualElement.draggable({disabled:!0,helper:"clone",start:(e,t)=>this.dragManager.Start(e,t,this.RootVisualElement),drag:this.dragManager.Drag.bind(this.dragManager),stop:this.dragManager.Stop.bind(this.dragManager)}),this.isDraggableInitialized=!0}initDroppable(){this.$visualElement.droppable({greedy:!0,accept:".-draggable-component",over:(e,t)=>this.dropManager.Over(e,t,this.VisualElement),out:this.dropManager.Out.bind(this.dropManager),drop:(e,t)=>u(this,void 0,void 0,(function*(){return yield this.dropManager.Drop(e,t)}))}),this.isDroppableInitialized=!0}IsParent(e){const t=this.designer.Component.Parent;return t===e||!!t&&t.Designer.Overlay.IsParent(e)}Enable(){this.isDraggableInitialized&&this.$visualElement.draggable("enable")}Disable(){this.isDraggableInitialized&&this.$visualElement.draggable("disable")}Dispose(){this.$visualElement&&(this.isDraggableInitialized&&this.$visualElement.draggable("destroy"),this.IsDroppableInitialized&&this.$visualElement.droppable("destroy"),this.$visualElement.remove()),this.isDraggableInitialized=!1,this.isDroppableInitialized=!1}SetOverlap(e=!1,t="",r=""){if(this.$visualElement.toggleClass("-overlapping",e),e){const e=i.a.String(this.sr.OverlapingMessage,{firstItem:t,secondItem:r});this.$visualElement.find(".overlay__overlap").attr("title",e)}}getOriginalDimensions(e){const t=e.position();return{width:e.outerWidth(),height:e.outerHeight(),left:t.left,top:t.top}}calculateStyles(){const e=this.designer.VisualElementContent||this.designer.VisualElement;let t=this.designer.VisualElement[0].offsetTop,r=this.designer.VisualElement[0].offsetLeft;const i=n.a.ParseToPixels(this.designer.VisualElement.css("border-left-width"));t+=n.a.ParseToPixels(this.designer.VisualElement.css("border-top-width"))/2,r+=i/2;return{width:e.outerWidth()+"px",height:e.outerHeight()+"px",left:r+"px",top:t+"px"}}setBorders(){this.VisualElement.removeClass([s.a.OverlayNoBorders,s.a.OverlayNoBorderLeft,s.a.OverlayNoBorderTop,s.a.OverlayNoBorderRight,s.a.OverlayNoBorderBottom]),this.visible||this.VisualElement.addClass(s.a.OverlayNoBorders);const e=n.a.ParseToPixels(this.designer.VisualElement.css("border-left-width")),t=n.a.ParseToPixels(this.designer.VisualElement.css("border-top-width")),r=n.a.ParseToPixels(this.designer.VisualElement.css("border-right-width")),i=n.a.ParseToPixels(this.designer.VisualElement.css("border-bottom-width"));e>0&&this.VisualElement.addClass(s.a.OverlayNoBorderLeft),t>0&&this.VisualElement.addClass(s.a.OverlayNoBorderTop),r>0&&this.VisualElement.addClass(s.a.OverlayNoBorderRight),i>0&&this.VisualElement.addClass(s.a.OverlayNoBorderBottom)}get template(){return`<div tabindex="${this.zIndex}" class="twd-overlay" data-component-overlay="${this.designer.Component.NameAsAttributeSafeString}">\n            <span class="overlay__overlap">\n                <span class="k-icon k-i-overlap"></span>\n            </span>\n        </div>`}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(398),n=r(20),s=r(23),a=r(3),o=r(16),l=r(773),c=r(261);class d{constructor(e,t){this.designer=e,this.provider=t,this.host=t.getServiceByName(a.a.IDesignerHost),this.positionsService=t.getService(c.a),this.selectionService=t.getService(o.a),this.positionOffset=s.a.Empty}Start(e,t,r){this.$rootVisualElement=r;const n=this.designer.ParentDesigner.Component.Name,a=this.SelectedComponents.filter(e=>e.Parent.Name===n);this.selectionService.SetSelectedComponents(a),this.snappingEngine=new i.a([this.designer.Component],this.provider),this.positionsService.Reset();for(let e=this.SelectedComponents.length-1;e>-1;e--){const t=this.SelectedComponents[e].Designer;this.SelectedComponents[e].Parent.Name===n&&t.Resizable.Disable();const r=t.GetBounds(!1),i=this.designer.GetBounds(!1),a=r.Left-i.Left,o=r.Top-i.Top;this.positionsService.SavePositions(t),this.positionsService.SavePositionsOffsets(new s.a(a,o))}this.snappingEngine.AppendSnapLinesTemplate(this.$rootVisualElement),this.host.HasActiveDragOperation=!0}Drag(e,t){const r=t.originalPosition.top,i=t.originalPosition.left,n=t.position.top,s=t.position.left;this.positionOffset.Width=s-i,this.positionOffset.Height=n-r;const a=this.designer.Component,o=new l.a(a.Designer,this.positionOffset);let c;o.OriginalBounds.Offset(this.positionOffset.Width,this.positionOffset.Height),this.snappingEngine&&(c=this.snappingEngine.Snap(o.OriginalBounds.Location,o.OriginalBounds,null),this.snappingEngine.Render()),t.position.top+=c.Height,t.position.left+=c.Width,this.positionOffset.Height+=c.Height,this.positionOffset.Width+=c.Width}Stop(e,t){for(let e=this.SelectedComponents.length-1;e>-1;e--){const t=this.SelectedComponents[e],r=t.VisualElement,i=t.Designer,s=i.Zoom,a=r.attr("data-drop-result");if("same-parent"===a){const t=new n.a((this.positionsService.Positions[e].X+this.positionOffset.Width)/s,(this.positionsService.Positions[e].Y+this.positionOffset.Height)/s);i.Drag(t),i.Resizable.Enable()}else"invalid-parent"===a&&i.Resizable.Enable();r.removeAttr("data-drop-result")}this.snappingEngine&&this.snappingEngine.Dispose(),this.host.HasActiveDragOperation=!1}get SelectedComponents(){return this.selectionService.GetSelectedComponents()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return v}));var i=r(45),n=r(23),s=r(82),a=r(94),o=r(3),l=r(141),c=r(131),d=r(31),u=r(151),h=r(60),p=r(37),m=r(451),g=r(772),f=r(42);class v{constructor(e,t,r){this.provider=r,this.dragComponents=e,this.designerHost=this.provider.getServiceByName(o.a.IDesignerHost),this.selectedVerticalSnapLines=[],this.selectedHorizontalSnapLines=[],this.nonSelectedVerticalSnapLines=[],this.nonSelectedHorizontalSnapLines=[],this.snapLineToBounds=new Map,this.verticalDistances,this.horizontalDistances,this.snapThreshold=t,this.snapOffsetX,this.snapOffsetY,this.dragOffset,this.behaviorService=this.provider.getService(c.a),this.Initialize()}get SnapLineGlyphs(){return this.behaviorService.SnapLinesAdorner.Glyphs}Dispose(){this.Stop()}Stop(){this.SnapLineGlyphs.length=0}Initialize(){this.dragOffset=i.a.Empty;let e=null;if(this.dragComponents&&this.dragComponents.length>0&&this.dragComponents[0]instanceof s.a&&(e=this.dragComponents[0]),e){const t=e.Designer;t&&t instanceof l.a&&(this.AddSnapLines(t,this.selectedVerticalSnapLines,this.selectedHorizontalSnapLines,!0),this.dragOffset=t.GetAbsoluteBounds())}const t=e instanceof a.a?[this.designerHost.RootComponent]:this.designerHost.Components;for(const r of t){if(!this.CanAddSnapLines(r,e))continue;const t=r.Designer;t&&t instanceof l.a&&this.AddSnapLines(t,this.nonSelectedVerticalSnapLines,this.nonSelectedHorizontalSnapLines,!1)}this.verticalDistances=new Array(this.nonSelectedVerticalSnapLines.length),this.horizontalDistances=new Array(this.nonSelectedHorizontalSnapLines.length),this.SnapLineGlyphs.length=0}AddSnapLines(e,t,r,i){const n=e.GetAbsoluteBounds();for(const s of e.SnapLines())s.Tag=""+e.Component,i||this.snapLineToBounds.set(s,n),s.IsHorizontal?r.push(s):t.push(s)}Snap(e,t){if(t){this.selectedVerticalSnapLines.length=0,this.selectedHorizontalSnapLines.length=0;for(const e of t)e.IsHorizontal?this.selectedHorizontalSnapLines.push(e):this.selectedVerticalSnapLines.push(e)}return this.SnapOverload(e,null==t)}SnapOverload(e,t){if(t){const t=new n.a(e.X-this.dragOffset.X,e.Y-this.dragOffset.Y);for(let e=0;e<this.selectedHorizontalSnapLines.length;e++)this.selectedHorizontalSnapLines[e].AdjustOffset(t.Height);for(let e=0;e<this.selectedVerticalSnapLines.length;e++)this.selectedVerticalSnapLines[e].AdjustOffset(t.Width)}this.SnapLineGlyphs.length=0;let r=!1,i=!1;return this.snapOffsetX=v.CalculateMinDistance(this.selectedVerticalSnapLines,this.nonSelectedVerticalSnapLines,this.snapLineToBounds,e,this.verticalDistances),this.snapOffsetY=v.CalculateMinDistance(this.selectedHorizontalSnapLines,this.nonSelectedHorizontalSnapLines,this.snapLineToBounds,e,this.horizontalDistances),Math.abs(this.snapOffsetX)-this.snapThreshold>Number.EPSILON&&(this.snapOffsetX=v.InvalidDistance),Math.abs(this.snapOffsetY)-this.snapThreshold>Number.EPSILON&&(this.snapOffsetY=v.InvalidDistance),this.snapOffsetX!==v.InvalidDistance&&(this.AddSnapLineGlyphs(this.nonSelectedVerticalSnapLines,this.verticalDistances,this.snapOffsetX,e),r=!0),this.snapOffsetY!==v.InvalidDistance&&(this.AddSnapLineGlyphs(this.nonSelectedHorizontalSnapLines,this.horizontalDistances,this.snapOffsetY,e),i=!0),this.dragOffset=e,new g.a(new n.a(r?-this.snapOffsetX:0,i?-this.snapOffsetY:0),r,i)}static CalculateMinDistance(e,t,r,i,n){let s=v.InvalidDistance,a=0;for(let o=0;o<t.length;o++){const l=t[o];let c=v.InvalidDistance;for(let t=0;t<e.length;t++){const n=e[t];if(d.a.ShouldSnap(l,r.get(l),n,i)){const e=n.Offset-l.Offset;Math.abs(e)<Math.abs(c)&&(c=e)}}n[o]=c;const u=Math.abs(c)-Math.abs(s);(u<0||Math.abs(u)<Number.EPSILON&&l.Priority>a)&&(s=c,l.Priority!==h.a.Always&&(a=l.Priority))}return s}CanAddSnapLines(e,t){return!(!(e instanceof s.a)||this.dragComponents&&this.dragComponents.includes(e)||this.IsChildOf(e,t)||t.Parent instanceof f.a&&(t.Parent===e||this.IsChildOf(e,t.Parent)))}AddSnapLineGlyphs(e,t,r,i){let n=1;for(let i=0;i<t.length;i++)if(Math.abs(Math.abs(t[i])-Math.abs(r))<Number.EPSILON){const t=e[i].Priority;t>n&&t!==h.a.Always&&(n=t)}const s=this.dragComponents[0].Designer;for(let a=0;a<t.length;a++)Math.abs(Math.abs(t[a])-Math.abs(r))<Number.EPSILON&&(e[a].Priority===n||e[a].Priority===h.a.Always)&&this.AddSnapLineGlyph(e[a],i,s)}AddSnapLineGlyph(e,t,r){const i=this.snapLineToBounds.get(e);let n,s=u.a.Standard;if(e.SnapLineType===p.a.Baseline?s=u.a.Baseline:e.Filter&&e.Filter.startsWith("Margin")?s=u.a.Margin:e.Filter&&e.Filter.startsWith("Padding")&&(s=u.a.Padding),e.IsVertical){const r=t.Top-(this.snapOffsetY!==v.InvalidDistance?this.snapOffsetY:0),a=t.Bottom-(this.snapOffsetY!==v.InvalidDistance?this.snapOffsetY:0);n=new m.a(s,e.Offset,Math.min(r,i.Top),e.Offset,Math.max(a,i.Bottom))}else{const r=t.Left-(this.snapOffsetX!==v.InvalidDistance?this.snapOffsetX:0),a=t.Right-(this.snapOffsetX!==v.InvalidDistance?this.snapOffsetX:0);n=new m.a(s,Math.min(r,i.Left),e.Offset,Math.max(a,i.Right),e.Offset)}n.OriginalBounds=i,n.Designer=r,n.Tag=e.Filter,this.CombineSnapLines(n)}CombineSnapLines(e){let t=!0;for(let r=0;r<this.SnapLineGlyphs.length;r++){const i=this.SnapLineGlyphs[r],n=m.a.Overlap(i,e);n&&(this.SnapLineGlyphs[r]=n,t=!1)}t&&this.SnapLineGlyphs.push(e)}IsChildOf(e,t){if(e&&t)for(;e.Parent;){if(e.Parent===t)return!0;e=e.Parent}return!1}Render(){if(this.SnapLineGlyphs){let e=!0,t=!0;for(let r=0;r<this.SnapLineGlyphs.length;r++){let i=this.SnapLineGlyphs[r];i&&i.Type===u.a.Standard&&(i.isVertical?(i.Paint(e,!1),e=!1):i.isHorizontal&&(i.Paint(!1,t),t=!1))}}}}v.InvalidDistance=5e4},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t,r){this.SizeF=e,this.SnappedX=t,this.SnappedY=r}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t){this.designer=e,this.initBounds=this.designer.GetBounds(!0)}get Item(){return this.designer.Component}get Designer(){return this.designer}get OriginalBounds(){return this.initBounds}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var i=r(154),n=r(20),s=r(0),a=r(3),o=r(16),l=r(4),c=r(261),d=r(66),u=r(275),h=r(72),p=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class m{constructor(e,t){this.designer=e,this.host=t.getServiceByName(a.a.IDesignerHost),this.positionsService=t.getService(c.a),this.selectionService=t.getService(o.a),this.toolboxes=u.a.Toolbox(t),this.designSurfaceCommandService=t.getService(i.a)}Over(e,t,r){this.$visualElement=r;const i=this.getDraggableObjectIdentifier(t);this.designer.Component.canParent(i)?this.ShowDroppableStyle($(e.target)):this.ShowDisabledDroppableStyle($(e.target))}Out(e,t){this.HideDroppableStyle(),this.HideDisabledDroppableStyle()}Drop(e,t){return p(this,void 0,void 0,(function*(){const r=this.designer.Zoom,i=this.$visualElement.offset(),s=t.helper.offset(),a=s.left-i.left,o=s.top-i.top,l=$(t.draggable).hasClass("k-card"),c=$(t.draggable).hasClass("treeview__item");if(l||c){const i=this.getDraggableObjectIdentifier(t),s=this.getDraggableObjectTitle(t),d=this.toolboxes.map(e=>e.Items).flat();let u;if(u=l?d.find(e=>e.Title===s):d.find(e=>e.Title===i),this.designer.Component.canParent(i)){const i=new n.a(a/r,o/r);if(u.ParentComponent=this.getDroppableComponent(e),u.Position=i,yield this.designSurfaceCommandService.tryExecuteCommandAsync(u.Command,u),c){const e=this.SelectedComponents[0];this.setDroppedComponentValue(t,e,s)}}}else for(let e=this.SelectedComponents.length-1;e>-1;e--){const t=this.SelectedComponents[e],i=t.Parent,s=t.VisualElement,l=t.Designer;if(this.designer.Component!==i)if(this.designer.Component.canParent(t.Type)){t.setParent(this.designer.Component,!0);const i=this.positionsService.Offsets,c=new n.a((a+i[e].Width)/r,(o+i[e].Height)/r);s.attr("data-drop-result","new-parent"),l.Drag(c),l.Resizable.Enable(),l.Overlay.VisualElement.appendTo(this.$visualElement)}else s.attr("data-drop-result","invalid-parent");else s.attr("data-drop-result","same-parent")}this.HideDisabledDroppableStyle(),this.HideDroppableStyle()}))}setDroppedComponentValue(e,t,r){const i=this.getDraggableTypeName(e);let n;n=i===d.c.DataField?h.a.getExpression(h.a.getDataFieldIdentifier(r,!1)):i===d.c.ReportParameter?h.a.getExpression(h.a.getParameterValueIdentifier(r)):"",t.getPropertyWrapper(s.a.Value).SetValue(n)}getDraggableTypeName(e){let t=$(e.draggable);return t.hasClass("treeview__item")?t.attr("data-draggable-type-name"):void 0}getDroppableComponent(e){const t=$(e.target).attr("data-component-overlay");return this.host.GetComponent(t)}getDraggableObjectTitle(e){let t,r=$(e.draggable);return t=r.hasClass("k-card")?r.attr("title"):r.hasClass("treeview__item")?l.b.unescapeHtml(r.attr("data-text")):"",t}getDraggableObjectIdentifier(e){let t=$(e.draggable);return t.hasClass("k-card")?t.attr("component-name"):t.hasClass("treeview__item")?t.attr("data-type"):this.getDraggableComponent(e).Type}getDraggableComponent(e){const t=$(e.draggable[0]),r=l.b.doubleUnescapeHtml(t.attr("data-component-overlay"));return this.host.GetComponent(r)}ShowDroppableStyle(e){e.find(".dropping").length||this.$visualElement.addClass("dropping")}HideDroppableStyle(){this.$visualElement.removeClass("dropping")}ShowDisabledDroppableStyle(e){e.find(".dropping-error").length||this.$visualElement.addClass("dropping-error")}HideDisabledDroppableStyle(){this.$visualElement.removeClass("dropping-error")}get SelectedComponents(){return this.selectionService.GetSelectedComponents()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(42),n=r(400),s=r(778);class a{static get(e,t){var r;return e.Component instanceof i.a?new s.a(e,t):(null===(r=e.Component)||void 0===r?void 0:r.Parent)instanceof i.a?e.ParentDesigner.Resizable:new n.a(e,t)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(45),n=r(23),s=r(20),a=r(84);class o{constructor(e){this.Designer=e,this.originalBounds=this.Designer.GetAbsoluteBounds()}get Item(){return this.Designer.Component}CalculateBounds(e,t){const r=new i.a(new s.a(this.originalBounds.X,this.originalBounds.Y),new n.a(this.originalBounds.Width,this.originalBounds.Height));let o=i.a.Empty;const l=this.Designer.Component.Parent;return l&&(o=l.Designer.GetAbsoluteClientBounds()),(e&a.a.LeftSizeable)===a.a.LeftSizeable&&(!o.IsEmpty&&r.Left+t.Width<o.Left&&(t.Width=o.Left-r.X),r.X+=t.Width,r.Width-=t.Width),(e&a.a.RightSizeable)===a.a.RightSizeable&&(r.Width+=t.Width),(e&a.a.TopSizeable)===a.a.TopSizeable&&(!o.IsEmpty&&r.Y+t.Height<o.Top&&(t.Height=o.Top-r.Y),r.Y+=t.Height,r.Height-=t.Height),(e&a.a.BottomSizeable)===a.a.BottomSizeable&&(r.Height+=t.Height),r}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t){this.SnapLines=e,this.SnapPoint=t}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var i=r(20),n=r(400),s=r(45),a=r(23),o=r(13),l=r(46),c=r(779),d=r(9),u=r(4),h=r(88);class p extends n.a{constructor(e,t){super(e,t),this.componentAboutToChangeFlag=!1,this.tableAboutToChangeFlag=!1,this.tableCellList=new c.a(t,e,{getTableResizableVisualElement:()=>this.VisualElement,getTableResizableLocation:()=>this.resizableTableLocation}),this.tableCellResizableContainer=this.getResizableContainer();this.provider.getService(o.b).on(l.c,e=>this.compChanged(e))}Initialize(){this.tableCellList.Initialize(),this.entireTableSelected=this.selectionService.ComponentSelected(this.designer.Component),this.tablePadding=u.b.getCssSidesOfProperty("padding",this.designer.VisualElementContent),super.Initialize(),this.$visualElement.append(this.tableCellResizableContainer),this.tableCellList.TriggerCellUpdate()}calculateDimensionsOfElement(e){return e.GetClientBounds(!1)}appendVisualElement(){this.getComponentOverlay().append(this.template),this.$visualElement=this.getVisualElement(),this.$rootVisualElement=this.designSurfaceManager.ActiveDesignSurface.visualElement.children().first()}getComponentOverlay(){return this.$parent.find(`div[data-component-overlay="${this.designer.Component.NameAsAttributeSafeString}"]`).not(".ui-draggable-dragging")}getVisualElement(){return this.getComponentOverlay().find(".twd-resizable")}Update(){this.isInitialized&&this.componentAboutToChangeFlag&&(this.tableAboutToChangeFlag?this.handleTableAboutToChange():(this.componentAboutToChangeFlag=!1,this.updateCells(),super.Update()))}Dispose(){super.Dispose(),this.tableCellList.CleanUp();this.provider.getService(o.b).off(l.c,e=>this.compChanged(e)),this.tableCellResizableContainer.remove(),this.tableCellResizableContainer=this.getResizableContainer()}calculateCssResizeDimensions(){if(this.entireTableSelected){const e=this.calculateDimensionsOfElement(this.designer);return{width:e.Width+"px",height:e.Height+"px",left:e.Left+this.tablePadding.left+"px",top:e.Top+this.tablePadding.top+"px"}}const e=this.getTableSelection(),t=e[0],r=t.Designer.GetBounds(!0),i=t.Designer.GetBounds(!1).Location;return e.slice(1).forEach(e=>{const t=e.Designer.GetBounds(!0),n=r.Left+r.Width,s=t.Left+t.Width,a=r.Top+r.Height,o=t.Top+t.Height;r.Left=r.Left>t.Left?t.Left:r.Left,r.Top=r.Top>t.Top?t.Top:r.Top,r.Width=(n<s?s:n)-r.Left,r.Height=(a<o?o:a)-r.Top;const l=e.Designer.GetBounds(!1).Location;return i.X=i.X<l.X?i.X:l.X,i.Y=i.Y<l.Y?i.Y:l.Y,t}),this.resizableTableLocation=i,{width:r.Width+"px",height:r.Height+"px",left:r.Left+this.tablePadding.left+"px",top:r.Top+this.tablePadding.top+"px"}}getResizableHandles(){return this.entireTableSelected?super.getResizableHandles():"s, se, e"}getResizableMinimumSize(){if(this.entireTableSelected){const e=h.a.MinSize.ToPixels(),t=this.designer.TableLayout.Columns.length*e,r=this.designer.TableLayout.Rows.length*e;return new a.a(t,r)}return this.tableCellList.MinimumResizableSize}SaveCurrentDimensions(){this.originalDimensions=new s.a(new i.a(parseInt(this.VisualElement.css("left")),parseInt(this.VisualElement.css("top"))),new a.a(parseInt(this.VisualElement.css("width")),parseInt(this.VisualElement.css("height"))))}onStopResizing(e,t,r,i){if(this.entireTableSelected)return void super.onStopResizing(e,t,r,i);const n=this.getResizableAxisSafe();this.tableCellList.onResizableStop(n,i),this.snappingEngine&&(this.snappingEngine.Dispose(),this.snappingEngine=null),this.designSurface.designerHost.HasActiveResizeOperation=!1}updateCells(){this.tableCellList.Update()}getTableSelection(){return this.selectionService.GetSelectedComponents().filter(e=>e.Parent===this.designer.Component)}compChanged(e){const t=e.detail,r=!this.componentAboutToChangeFlag,i=t.component===this.designer.Component||t.component===this.designer.Component.Parent;r&&i&&(this.componentAboutToChangeFlag=!0,this.tableAboutToChangeFlag=t.component===this.designer.Component)}handleTableAboutToChange(){this.Dispose(),this.Initialize(),this.tableAboutToChangeFlag=!1,this.componentAboutToChangeFlag=!1}getResizableContainer(){return $(`<div class="${d.a.TableCellResizableContainer}"></div>`)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var i=r(20),n=r(45),s=r(23),a=r(88),o=r(3),l=r(16),c=r(9),d=r(12),u=r(8),h=r(5);class p{constructor(e,t,r){this.provider=e,this.designer=t,this.tableResizablePropertyProvider=r,this.selectionService=e.getService(l.a)}Initialize(){if(!this.isInitialized){const e=this.getTableSelection(),t=this.designer.TableLayout.Rows.map(e=>new Array(this.designer.TableLayout.Columns.length));this.tableCells=[],this.designer.TableLayout.Rows.forEach(r=>{const i=r.Index;r.Cells.forEach(r=>{const n=r.ColIndex,s=new m(r,this.tableResizablePropertyProvider,{rowIndex:i,colIndex:n});this.tableCells.push(s),s.IsSelected=e.includes(s.ReportItem),t[i][n]=s.IsSelected})}),this.selectionArray=t,this.isInitialized=!0}}Update(){this.isInitialized&&(this.updateCellSelectionState(),this.TriggerCellUpdate())}CleanUp(){var e;null===(e=this.tableCells)||void 0===e||e.forEach(e=>e.CleanUp()),this.tableCells=[],this.isInitialized=!1}getTableSelection(){return this.selectionService.GetSelectedComponents().filter(e=>e.Parent===this.designer.Component)}updateCellSelectionState(){const e=this.getTableSelection();this.tableCells.forEach(t=>{t.IsSelected=e.includes(t.ReportItem),this.selectionArray[t.indexLocation.rowIndex][t.indexLocation.colIndex]=t.IsSelected})}TriggerCellUpdate(){this.tableCells.forEach(e=>{e.IsSelected?(e.IsInitialized?e.Update():e.Initialize(),e.mergeBordersWithSelected(this.selectionArray)):e.CleanUp()})}get MinimumResizableSize(){const e=new Array(this.designer.TableLayout.Columns.length),t=new Array(this.designer.TableLayout.Rows.length),r=a.a.MinSize.ToPixels();let i=Number.MAX_VALUE,n=Number.MAX_VALUE,o=0,l=0;this.tableCells.forEach(s=>{var a,c;const d=s.cell.ColIndex,u=s.cell.RowIndex;if(s.IsSelected)e[d]=r,t[s.cell.RowIndex]=r,i=i>u?u:i,n=n>d?d:n,o=o<u?u:o,l=l<d?d:l;else{const r=s.cell.Column.Size.ToPixels(),i=s.cell.Row.Size.ToPixels();e[d]=(null!==(a=e[d])&&void 0!==a?a:Number.MAX_VALUE)>r?r:e[d],t[u]=(null!==(c=t[u])&&void 0!==c?c:Number.MAX_VALUE)>i?i:t[u]}});const c=e.reduce((e,t,r)=>r<n||r>l?e:e+t,0),d=t.reduce((e,t,r)=>r<i||r>o?e:e+t,0);return new s.a(c,d)}onResizableStop(e,t){const r=this.tableCells.filter(e=>e.IsSelected),i=this.provider.getServiceByName(o.a.IDesignerHost).CreateTransaction("TableResize '"+this.designer.Component.Name);try{e.includes("e")&&this.resizeRight(r,t),e.includes("s")&&this.resizeDown(r,t),i.Commit()}catch(e){i.Rollback();const t=this.provider.getService(d.a),r=this.provider.getService(u.a);t.error(r.GenericError,e)}}resizeRight(e,t){const{originalSizes:r,totalSelectionSize:i}=this.findTotalSelectionSize(e,"Columns");this.applyResizing(r,i,t,"Width")}resizeDown(e,t){const{originalSizes:r,totalSelectionSize:i}=this.findTotalSelectionSize(e,"Rows");this.applyResizing(r,i,t,"Height")}applyResizing(e,t,r,i){for(const[n,s]of e){const e=s/t,o=s+r[i]*e,l=o<a.a.MinSize.ToPixels()?a.a.MinSize.ToPixels():o;"Width"===i?this.designer.TableLayout.Columns[n].SetSize(h.a.Pixel(l),!0):this.designer.TableLayout.Rows[n].SetSize(h.a.Pixel(l),!0)}}findTotalSelectionSize(e,t){const r=this.designer.TableLayout[t],i=new Map;let n=0;const s="Rows"===t?"RowIndex":"ColIndex";for(const a in r){const r=parseInt(a);if(e.some(e=>e.cell[s]===r)){const e=this.designer.TableLayout[t][r].Size.ToPixels();i.set(r,e),n+=e}}return{originalSizes:i,totalSelectionSize:n}}}class m{constructor(e,t,r){this.cell=e,this.dependencies=t,this.indexLocation=r,this.isInitialized=!1}get IsInitialized(){return this.isInitialized}get IsSelected(){return this.isSelected}set IsSelected(e){this.isSelected=e}get ReportItem(){var e;return null!==(e=this.cell.ReportItem)&&void 0!==e?e:this.cell.MergeTarget.ReportItem}get TableDesigner(){return this.ReportItem.Parent.Designer}Initialize(){if(!this.isInitialized){const e=this.dependencies.getTableResizableVisualElement().find("."+c.a.TableCellResizableContainer);e.append(this.tableCellTemplate),this.$visualElement=e.children().last(),this.calculateCssResizeDimension(),this.isInitialized=!0}}calculateCssResizeDimension(){this.bounds=this.calcCellDimensions();const e=this.dependencies.getTableResizableLocation(),t={width:this.bounds.Width+"px",height:this.bounds.Height+"px",left:this.bounds.Left-e.X+"px",top:this.bounds.Top-e.Y+"px"};this.$visualElement.css(t)}calcCellDimensions(){const e=this.extraMergeCellSize,t=this.ReportItem.Designer.GetBounds(!1);return new n.a(new i.a(t.Left+e.Width,t.Top+e.Height),new s.a(this.cell.Column.Size.ToPixels(),this.cell.Row.Size.ToPixels()))}mergeBordersWithSelected(e){const t={},r=this.ReportItem.Parent.Designer,i=r.TableLayout.Columns.length-1,n=r.TableLayout.Rows.length-1,s=this.indexLocation;0!==s.rowIndex&&e[s.rowIndex-1][s.colIndex]&&(t["border-top-width"]=0),s.colIndex!==i&&e[s.rowIndex][s.colIndex+1]&&(t["border-right-width"]=0),s.rowIndex!==n&&e[s.rowIndex+1][s.colIndex]&&(t["border-bottom-width"]=0),0!==s.colIndex&&e[s.rowIndex][s.colIndex-1]&&(t["border-left-width"]=0),this.$visualElement.css(t)}Update(){this.calculateCssResizeDimension()}CleanUp(){this.isInitialized&&(this.isInitialized=!1,this.$visualElement&&this.$visualElement.remove())}get tableCellTemplate(){return'<div class="tableCell"></div>'}get extraMergeCellSize(){var e=0,t=0;if(this.cell.MergeTarget){if(this.cell.MergeTarget.ColSpan>0)for(var r=this.cell.MergeTarget.ColIndex;r<this.cell.ColIndex;r++){e+=this.TableDesigner.TableLayout.Columns[r].Size.ToPixels()}if(this.cell.MergeTarget.RowSpan>0)for(r=this.cell.MergeTarget.RowIndex;r<this.cell.RowIndex;r++){t+=this.TableDesigner.TableLayout.Rows[r].Size.ToPixels()}}return new s.a(e,t)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t,r,i){this.Top=e,this.Left=t,this.Bottom=r,this.Right=i}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(1),n=r(97),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends n.a{get DesignerClassName(){return i.a.CheckBox}CreateVisualElement(){const e=`<div class="${this.ClassName} -${this.DesignerClassName}">\n                            <div class="components__content">\n                              <div class="components__content-child"><div>\n                            </div>\n                          </div>`,t=$.parseHTML(e);return $(t)}InitializeVisualElementContent(){super.InitializeVisualElementContent(),this.$visualElementContentChild=this.VisualElementContent.find(".components__content-child")}resetItemImage(e){return s(this,void 0,void 0,(function*(){if(!e)return;this.toggleLoadingMessage(!0);const t=this.Component,r=this.designerHost.RootComponent,i=yield this.RenderItem(r.PropertyStore,t.Name);this.$visualElementContentChild.empty();let n=i.Content;i.Success&&(n=decodeURIComponent(escape(atob(n)))),this.toggleLoadingMessage(!1),this.$visualElementContentChild.append(n)}))}RenderItem(e,t){return s(this,void 0,void 0,(function*(){return this.RenderService.RenderCheckBox(e,t)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(0),n=r(161);class s extends n.a{PropertiesThatUpdateDataModel(){return[...super.PropertiesThatUpdateDataModel(),i.a.Columns,i.a.Source,i.a.FieldSeparators,i.a.RecordSeparators]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(162);class n extends i.a{}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(141),n=r(117);class s extends i.a{createCssBuilder(){this.cssBuilder=new n.a(this.component),this.cssBuilder.Styles.position="relative",this.cssBuilder.Styles["min-height"]="1px"}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(1),n=r(97),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends n.a{get DesignerClassName(){return i.a.Graph}RenderItem(e,t){return s(this,void 0,void 0,(function*(){return this.RenderService.RenderGraph(e,t)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(403);class n extends i.a{}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(403);class n extends i.a{}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(1),n=r(0),s=r(97),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends s.a{get DesignerClassName(){return i.a.HtmlTextBox}InitializeNewComponent(e){super.InitializeNewComponent(e),this.initDefaultProperty(this.Component.getPropertyWrapper(n.a.Value),i.a.String,e.get(n.a.Name))}RenderItem(e,t){return a(this,void 0,void 0,(function*(){return this.RenderService.RenderHtmlTextBox(e,t)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(210),n=r(1),s=r(0);class a extends i.a{get VisualElementContentWrapper(){return this.VisualElementContent}Render(e){const t=super.Render(e);return this.resetSubReportVisual(),t}Redraw(e=!1,t){super.Redraw(e,t),this.resetSubReportVisual()}formatSubreportHtml(e){return`<div class="default-component-text">${e}</div>`}resetSubReportVisual(){let e;this.VisualElementContentWrapper.empty();const t=this.Component.getPropertyValue(s.a.ReportSource);if(t){let r="";if(t[s.a.NetType]===n.a.UriReportSource&&(r=`URI ${this.stringResources.ReportSource.toLowerCase()}: ${t[s.a.Uri]}`),t[s.a.NetType]===n.a.XmlReportSource&&(r="XML "+this.stringResources.ReportSource.toLowerCase()),e=r,t.Parameters&&t.Parameters.length>0){let r=t.Parameters.map((function(e){return e.Value?`${e.Name}=&apos;${e.Value.Value}&apos;`:e.Name}));e+=`<br/>${this.stringResources.Parameters}: ${r.join(", ")}`}e=this.formatSubreportHtml(e)}else e=this.formatSubreportHtml(`&lt;${this.Component.Name}&gt;`);this.VisualElementContentWrapper.append(e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(0),n=r(161);class s extends n.a{PropertiesThatUpdateDataModel(){return[...super.PropertiesThatUpdateDataModel(),i.a.Body,i.a.Source]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(161),n=r(0),s=r(3),a=r(1),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends i.a{PropertiesThatUpdateDataModel(){return[...super.PropertiesThatUpdateDataModel(),n.a.DataSource,n.a.DataMember]}Initialize(){return o(this,void 0,void 0,(function*(){const e=this.Provider.getServiceByName(s.a.ITypeDescriptorRepository);(yield e.GetComponentTypeDescriptor(this.Component.Type)).CreateProperty(n.a.ParameterValues,a.a.String,l.setParameterValue,!1)}))}static setParameterValue(e,t,r,i){}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(1),n=r(97),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends n.a{get DesignerClassName(){return i.a.Map}RenderItem(e,t){return s(this,void 0,void 0,(function*(){return this.RenderService.RenderMap(e,t)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(404);class n extends i.a{}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(404);class n extends i.a{}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(405);class n extends i.a{CreateVisualElement(){const e=`<div class="${this.ClassName} -panel">\n                          <div class="components__content"></div>\n                        </div>`,t=$.parseHTML(e);return $(t)}InitializeOverlay(){this.Overlay.Initialize(!0,!0)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(1),n=r(0),s=r(244),a=r(97),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends a.a{get noImageSvg(){return'<svg xmlns="http://www.w3.org/2000/svg" style="position:absolute;top:0;left:0;" viewBox="0 0 50 50" fill="lightblue" width="32" height="32"><path d="M39 38H11c-1.7 0-3-1.3-3-3V15c0-1.7 1.3-3 3-3h28c1.7 0 3 1.3 3 3v20c0 1.7-1.3 3-3 3zM11 14c-.6 0-1 .4-1 1v20c0 .6.4 1 1 1h28c.6 0 1-.4 1-1V15c0-.6-.4-1-1-1H11z"></path><path d="M30 24c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM35.3 37.7L19 22.4 9.7 31l-1.4-1.4 10.7-10 17.7 16.7z"></path><path d="M40.4 32.7L35 28.3 30.5 32l-1.3-1.6 5.8-4.7 6.6 5.4z"></path></svg>'}get DesignerClassName(){return i.a.PictureBox}RenderItem(e,t){return o(this,void 0,void 0,(function*(){let r=Promise.resolve(new s.a(!0,btoa(this.noImageSvg)));const i=this.Component.getPropertyValue(n.a.Value);if(i&&!i.startsWith("="))return this.RenderService.RenderPictureBox(e,t);return this.Component.PropertyStore[n.a.Image]?this.RenderService.RenderPictureBox(e,t):r}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(35),n=r(5),s=r(116);class a extends s.a{constructor(e,t){super(e,t)}CalculateMinSize(){return new i.a(new n.a(0),new n.a(0))}Render(e){return this.Component.Parent.Designer.VisualElement}Redraw(e=!1){}UpdateOverlay(){}UpdateChildrenOverlay(){}ToggleInteractivity(e){}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(277);class n extends i.a{}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(162);class n extends i.a{}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(162);class n extends i.a{}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(1),n=r(97),s=r(406),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends n.a{get DesignerClassName(){return i.a.Shape}RenderItem(e,t){return a(this,void 0,void 0,(function*(){return this.RenderService.RenderShape(e,t)}))}createCssComponentBuilder(){this.cssBuilder=new s.a(this.Component)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(1),n=r(97),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class a extends n.a{get DesignerClassName(){return i.a.CrossSectionItem}RenderItem(e,t){return s(this,void 0,void 0,(function*(){return this.RenderService.RenderCrossSectionItem(e,t)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(161),n=r(25),s=r(3),a=r(0),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends i.a{Initialize(){return o(this,void 0,void 0,(function*(){const e=this.Provider.getServiceByName(s.a.ITypeDescriptorRepository);(yield e.GetComponentTypeDescriptor(this.Component.Type)).CreateProperty("ParameterValues","String",l.setParameterValue,!1)}))}static setParameterValue(e,t,r,i){}GetContextMenuCommands(){const e=super.GetContextMenuCommands();return e.push(n.a.Configure),e}PropertiesThatUpdateDataModel(){return[...super.PropertiesThatUpdateDataModel(),a.a.ConnectionString,a.a.SelectCommand]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(278);class n extends i.a{GetReportItem(){return this.ComponentWrapper.ReportItem}ToggleInteractivityOverride(e){const t=this.ComponentWrapper;for(const r of t.ChildGroups)r.Designer.ToggleInteractivity(e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(278);class n extends i.a{GetReportItem(){return null}ToggleInteractivityOverride(e){const t=this.ComponentWrapper;for(const r of t.Groups)r.Designer.ToggleInteractivity(e)}Render(e){return this.Component.Designer.VisualElement}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(278);class n extends i.a{constructor(e,t){super(e,t)}GetReportItem(){return null}ToggleInteractivityOverride(e){const t=this.ComponentWrapper;for(const e of t.CellContainer.Cells)super.ToggleVirtualSelectionStyle(e.ReportItem)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return F}));var i=r(120),n=r(238),s=r(35),a=r(5),o=r(30),l=r(73),c=r(215),d=r(15),u=r(137),h=r(80),p=r(0),m=r(3),g=r(40),f=r(808),v=r(4),y=r(809),S=r(122),C=r(88),b=r(185),w=r(186),P=r(16),D=r(810),x=r(22),R=r(95),T=r(377),I=r(172),E=r(171),N=r(196),M=r(12),O=r(39),k=r(10),G=r(29),B=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class F{constructor(e,t){this.provider=t,this.namingService=t.getService(g.a),this.notifications=t.getService(M.a),this.selectionService=t.getService(P.a),this.rows=[],this.columns=[],this.selectedCells=[],this.Table=e,this.cells=new Map,this.layoutSuspendCount=0,this.bodyColumnCount=0,this.bodyRowCount=0,this.RowHeaderColumnCount=0,this.ColumnHeaderRowCount=0,this.ComponentFactory=new T.a(this.Table,null,this.provider),this.layoutRefreshed=new k.b}static get tableLineEpsilon(){return 1}get Rows(){return this.rows}get Columns(){return this.columns}get CornerRowCount(){return this.ColumnHeaderRowCount}get CornerColumnCount(){return this.RowHeaderColumnCount}get IsEmpty(){return 0===this.Rows.length&&0===this.Columns.length}get RowGroups(){return this.Table.RowGroups}get ColumnGroups(){return this.Table.ColumnGroups}get Body(){return this.Table.Body}get Corner(){return this.Table.Corner}get LayoutRefreshed(){return this.layoutRefreshed}GetDefaultUnitType(){const e=this.provider.getServiceByName(m.a.IDesignerHost);if(e.IsLoaded){return e.RootComponent.UnitOfMeasure}return o.a.Cm}get DefaultItemSize(){const e=this.GetDefaultUnitType();switch(e){case o.a.Mm:return new s.a(new a.a(25,o.a.Mm),new a.a(5,o.a.Mm));case o.a.Cm:return new s.a(new a.a(2,o.a.Cm),new a.a(.5,o.a.Cm));case o.a.Pixel:return new s.a(new a.a(100,o.a.Pixel),new a.a(20,o.a.Pixel));default:return new s.a(new a.a(1,o.a.Inch).ToUnit(e),new a.a(.2,o.a.Inch).ToUnit(e))}}CreateCell(e,t){return new y.a(this,e,t)}CreateRow(e,t){return new b.a(this,e,t)}CreateColumn(e,t){return new w.a(this,e,t)}CreateTextBox(){return B(this,void 0,void 0,(function*(){return yield this.ComponentFactory.CreateTextBox()}))}Refresh(){this.Clear(),this.Init(),this.LayoutRefreshed.next()}DeleteComponent(e){null!==e&&e.delete()}CreateUniqueGroupName(e){return this.namingService.CreateName(e)}SelectCellsInternal(e){const t=[];for(let r=0;r<e.length;r++){const i=e[r];if(i.IsOrphaned)throw new G.a("Cannot select orphaned cells.",this.provider);if(!i.ReportItem)throw new G.a("Cannot select cells with no report item.",this.provider);t.push(i.ReportItem)}this.provider.getService(P.a).SetSelectedComponents(t)}NewGroup(){return!0}NewGroupByReferenceGroup(e){return B(this,void 0,void 0,(function*(){return yield this.NewGroupByReferenceItem(e.ReportItem)}))}NewGroupByReferenceItem(e){return B(this,void 0,void 0,(function*(){const t=new d.a({},this.Table,this.provider);if(t.Name=this.CreateUniqueGroupName("Group"),null!=e){const r=yield this.CreateTextBox();r.Size=this.DefaultItemSize,F.CopyStyle(e,r),t.ReportItem=r}return yield t.Initialize(),t}))}Clear(){for(let e of this.Rows)e.Dispose();for(let e of this.Columns)e.Dispose();this.Rows.length=0,this.Columns.length=0,this.cells.clear()}Init(){this.SuspendLayout();try{const e=d.a.GetLeafGroups(this.RowGroups),t=d.a.GetLeafGroups(this.ColumnGroups),r=[],i=[];if(F.InitBodyRowsColumns(this.provider,this.Body,e.length,t.length,this.DefaultItemSize,r,i)){this.Body.Rows.Clear();for(let e=0;e<r.length;e++)this.Body.Rows.AddByHeight(r[e]);this.Body.Columns.Clear();for(let e=0;e<i.length;e++)this.Body.Columns.AddByWidth(i[e])}this.bodyColumnCount=t.length,this.bodyRowCount=e.length;const n=F.CalculateDistanceList(this.ColumnGroups,!0,!1),s=[];for(let e=0;e<n.length;e++){const t=0===e?n[0]:n[e].Subtract(n[e-1]);s.push(t)}this.ColumnHeaderRowCount=s.length;const a=F.CalculateDistanceList(this.RowGroups,!1,!1),o=[];for(let e=0;e<a.length;e++){const t=0===e?a[0]:a[e].Subtract(a[e-1]);o.push(t)}this.RowHeaderColumnCount=o.length;for(let e=0;e<this.RowHeaderColumnCount;e++)this.Columns.push(this.CreateColumn(e,o[e]));for(let e=0;e<this.bodyColumnCount;e++)this.Columns.push(this.CreateColumn(this.RowHeaderColumnCount+e,this.Body.Columns.Get(e).Width));for(let e=0;e<this.ColumnHeaderRowCount;e++)this.Rows.push(this.CreateRow(e,s[e]));for(let e=0;e<this.bodyRowCount;e++)this.Rows.push(this.CreateRow(this.ColumnHeaderRowCount+e,this.Body.Rows.Get(e).Height));if(this.CornerRowCount>0&&this.CornerColumnCount>0)for(let e=0;e<this.CornerRowCount;e++)for(let t=0;t<this.CornerColumnCount;t++)this.SetCellOverload(this.CellAt(e,t),this.Corner.ResolveAt(e,t),null,null);F.WalkHierarchy(this.ColumnGroups,this.RowHeaderColumnCount,0,this.AddColumnGroup.bind(this),this.CalcRowSpanOfColumnGroup.bind(this)),F.WalkHierarchy(this.RowGroups,this.ColumnHeaderRowCount,0,this.AddRowGroup.bind(this),this.CalcColumnSpanOfRowHeader.bind(this));for(let r=0;r<this.bodyRowCount;r++)for(let i=0;i<this.bodyColumnCount;i++)this.SetCellOverload(this.CellAt(this.ColumnHeaderRowCount+r,this.RowHeaderColumnCount+i),this.Body.ResolveAt(r,i),e[r],t[i]);this.UpdateTableAndContentSize(),this.CleanupSelection()}finally{this.ResumeLayout()}}static InitBodyRowsColumns(e,t,r,i,n,s,o){const l=t.Rows.Count;if(l>0&&l!==r){const t=`Table Body has ${l} rows but ${r} are expected.`;throw new G.a(t,e)}const c=t.Columns.Count;if(c>0&&c!==i){const t=`Table Body has ${c} columns but ${i} are expected.`;throw new G.a(t,e)}for(let e=0;e<r;e++){let r=a.a.Zero;l>0&&(r=t.Rows.Get(e).Height),s.push(r)}for(let e=0;e<i;e++){let r=a.a.Zero;c>0&&(r=t.Columns.Get(e).Width),o.push(r)}if(l>0&&c>0)return!1;for(let e of t.Cells)if(null!==e.ReportItem&&!(e.RowIndex>=s.length||e.ColumnIndex>=o.length)){if(0===l&&e.RowSpan<=1){const t=e.RowIndex;let r=s[t];e.ReportItem.Height.GreaterThan(r)&&(r=e.ReportItem.Height),s[t]=r}if(0===c&&e.ColumnSpan<=1){const t=e.ColumnIndex;let r=o[t];e.ReportItem.Width.GreaterThan(r)&&(r=e.ReportItem.Width),o[t]=r}}const d=n;for(let e=0;e<r;e++)s[e].IsEqual(a.a.Zero)&&(s[e]=d.Height);for(let e=0;e<i;e++)o[e].IsEqual(a.a.Zero)&&(o[e]=d.Width);return!0}CalcRowSpanOfColumnGroup(e,t){if(null===e.ReportItem)throw new G.a("No header for this group!",this.provider);let r=e.ReportItem.Height,i=t;for(;i<this.ColumnHeaderRowCount;){let e=this.Rows[i++].Size;if(r.LessOrEqual(e))break;r=r.Subtract(e)}return i-t}CalcColumnSpanOfRowHeader(e,t){if(null===e.ReportItem)throw new G.a("No header for this group!",this.provider);let r=e.ReportItem.Width,i=t;for(;i<this.RowHeaderColumnCount;){const e=this.Columns[i++].Size;if(r.LessOrEqual(e))break;r=r.Subtract(e)}return i-t}static WalkHierarchy(e,t,r,i,n){let s=0;for(let a=0;a<e.Count;a++){const o=e.Get(a);o.RowIndex=o.ColumnIndex=o.RowSpan=o.ColumnSpan=-1;const l=t+s,c=o.ChildGroups;if(c.Count>0){let e=r;null!==o.ReportItem&&(e+=n(o,r)),s+=F.WalkHierarchy(c,l,e,i,n)}else s++;null!==o.ReportItem&&i(o,r,l,t+s-l)}return s}static CalculateDistanceList(e,t,r){const i=[];return F.CollectDistances(e,t,r,a.a.Zero,i),i.sort((e,t)=>e.GreaterThan(t)?1:t.GreaterThan(e)?-1:0),F.RemoveDuplicates(i)}static RemoveDuplicates(e){const t=[];let r=a.a.Zero;for(let i=0;i<e.length;i++){const n=e[i];n.GreaterThan(r)&&(n.Subtract(r).ToPixels()<F.tableLineEpsilon&&t.pop(),t.push(n),r=n)}return t}static CollectDistances(e,t,r,i,n){for(let s=0;s<e.Count;s++){const a=e.Get(s);let o=i;const l=a.ReportItem;if(null!==l&&(!r||l.Visible)){const e=t?l.Height:l.Width;o=o.Add(e),n.push(o)}F.CollectDistances(a.ChildGroups,t,r,o,n)}}UpdateTableAndContentSize(){const e=this.CalcTableClientSizeFromContent();this.UpdateRowsAndColumnsRatio(e);const t=a.a.Parse(this.Table.getCascadingPropertyValue(p.a.Style,p.a.Padding,p.a.Right)),r=a.a.Parse(this.Table.getCascadingPropertyValue(p.a.Style,p.a.Padding,p.a.Left)),i=a.a.Parse(this.Table.getCascadingPropertyValue(p.a.Style,p.a.Padding,p.a.Top)),n=a.a.Parse(this.Table.getCascadingPropertyValue(p.a.Style,p.a.Padding,p.a.Bottom));this.Table.Size=new s.a(e.Width.Add(t.Add(r)),e.Height.Add(i.Add(n))),this.LayoutContent()}UpdateRowsAndColumnsRatio(e){if(0===e.Width.Value){const e=1/this.Columns.length;this.Columns.forEach(t=>t.TableRatio=e)}else this.Columns.forEach(t=>t.TableRatio=t.Size.Ratio(e.Width));if(0===e.Height.Value){const e=1/this.Rows.length;this.Rows.forEach(t=>t.TableRatio=e)}else this.Rows.forEach(t=>t.TableRatio=t.Size.Ratio(e.Height))}CalcTableClientSizeFromContent(){const e=this.Table.Size;let t=new a.a(0,e.Width.Type);for(let e=0;e<this.Columns.length;e++)t=t.Add(this.Columns[e].Size);let r=new a.a(0,e.Height.Type);for(let e=0;e<this.Rows.length;e++)r=r.Add(this.Rows[e].Size);return new s.a(t,r)}LayoutContent(){this.SuspendLayout();const e=this.Table.Size,t=a.a.Parse(this.Table.getCascadingPropertyValue(p.a.Style,p.a.Padding,p.a.Right)),r=a.a.Parse(this.Table.getCascadingPropertyValue(p.a.Style,p.a.Padding,p.a.Left)),o=a.a.Parse(this.Table.getCascadingPropertyValue(p.a.Style,p.a.Padding,p.a.Top)),l=a.a.Parse(this.Table.getCascadingPropertyValue(p.a.Style,p.a.Padding,p.a.Bottom)),c=t.Add(r),d=o.Add(l),u=e.Width.Subtract(c);for(let e=0;e<this.Columns.length;e++){const t=this.Columns[e];t.SetSizeCore(u.Multiply(t.TableRatio));const r=e-this.RowHeaderColumnCount;r>=0&&(this.Body.Columns.Get(r).Width=t.Size)}const h=e.Height.Subtract(d);for(let e=0;e<this.Rows.length;e++){const t=this.Rows[e];t.SetSizeCore(h.Multiply(t.TableRatio));const r=e-this.ColumnHeaderRowCount;r>=0&&(this.Body.Rows.Get(r).Height=t.Size)}let m=a.a.Zero;for(let e=0;e<this.Rows.length;e++){let t=a.a.Zero;const r=this.Rows[e];for(let r=0;r<this.Columns.length;r++){const o=this.Columns[r],l=this.CellAt(e,r);let c=n.a.Empty;if(null===l.MergeTarget){let o=a.a.Zero;for(let e=0;e<l.ColSpan;e++)o=o.Add(this.Columns[r+e].Size);let d=a.a.Zero;for(let t=0;t<l.RowSpan;t++)d=d.Add(this.Rows[e+t].Size);c=new n.a(new i.a(t,m),new s.a(o,d))}l.SetBounds(c),t=t.Add(o.Size)}m=m.Add(r.Size)}this.ResumeLayout()}AddColumnGroup(e,t,r,i){e.ColumnIndex=r,e.RowIndex=t,e.ColumnSpan=i,e.RowSpan=1,this.SetCell(this.CellAt(t,r),this.CalcRowSpanOfColumnGroup(e,t),i,e.ReportItem,null,e)}AddRowGroup(e,t,r,i){e.ColumnIndex=t,e.RowIndex=r,e.ColumnSpan=1,e.RowSpan=i,this.SetCell(this.CellAt(r,t),i,this.CalcColumnSpanOfRowHeader(e,t),e.ReportItem,e,null)}SetCell(e,t,r,i,n,s){e.Merge(t,r),e.ReportItem=i,e.RowGroup=n,e.ColumnGroup=s,null!==i&&this.cells.set(i,e)}SetCellOverload(e,t,r,i){this.SetCell(e,t.RowSpan,t.ColumnSpan,t.ReportItem,r,i)}SuspendLayout(){this.layoutSuspendCount++}ResumeLayout(){this.layoutSuspendCount>0&&this.layoutSuspendCount--}PerformLayout(){0===this.layoutSuspendCount&&this.Refresh()}GetCell(e){return this.cells.get(e)}CellAt(e,t){return this.Rows[e].Cells[t]}IsBodyRow(e){return e>=this.ColumnHeaderRowCount}IsBodyColumn(e){return e>=this.RowHeaderColumnCount}IsColumnHeaderCell(e){return this.IsColumnHeaderCellByIndex(e.RowIndex,e.ColIndex)}IsColumnHeaderCellByIndex(e,t){return e<this.ColumnHeaderRowCount&&t>=this.RowHeaderColumnCount}IsRowHeaderCell(e){return this.IsRowHeaderCellByIndex(e.RowIndex,e.ColIndex)}IsRowHeaderCellByIndex(e,t){return e>=this.ColumnHeaderRowCount&&t<this.RowHeaderColumnCount}IsBodyCell(e){return this.IsBodyCellByIndex(e.RowIndex,e.ColIndex)}IsBodyCellByIndex(e,t){return this.IsBodyRow(e)&&this.IsBodyColumn(t)}IsCornerCell(e){return this.IsCornerCellByIndex(e.RowIndex,e.ColIndex)}IsCornerCellByIndex(e,t){return e<this.ColumnHeaderRowCount&&t<this.RowHeaderColumnCount}ReplaceCellContent(e,t){let r=null,i=0,n=0;if(this.IsBodyCell(e))r=this.Table.Body,i=e.RowIndex-this.ColumnHeaderRowCount,n=e.ColIndex-this.RowHeaderColumnCount,F.IsDetailCell(e)||this.ApplyAggregateValue(t);else{if(!this.IsCornerCell(e))throw new G.a("Cell must be in Body or Corner",this.provider);r=this.Corner,i=e.RowIndex,n=e.ColIndex}null!==(e=this.CellAt(e.RowIndex,e.ColIndex)).ReportItem&&F.CopyStyle(e.ReportItem,t),this.DeleteComponent(e.ReportItem),e.ReportItem=null,r.SetCellContentExtended(i,n,t,e.RowSpan,e.ColSpan)}static IsDetailCell(e){return O.a.isDetail(d.a.FindDynamicAncestorOrSelf(e.RowGroup))||O.a.isDetail(d.a.FindDynamicAncestorOrSelf(e.ColumnGroup))}ApplyAggregateValue(e){if(e instanceof h.a){const t=e,r=S.a.GetFieldReference(t.Value);if(r){const e=this.GetFieldType(r);e&&(S.a.IsNumericType(e)?t.Value=`=Sum(Fields.${r})`:t.Value=`=Count(Fields.${r})`)}}}ReplaceGroupHeader(e,t){let r=s.a.Empty;e.ReportItem&&(F.CopyStyle(e.ReportItem,t),r=e.ReportItem.Size,this.DeleteComponent(e.ReportItem)),e.ReportItem=t,e.ReportItem&&(r.IsEmpty||(e.ReportItem.Size=r))}ReplaceGroup(e,t,r,i,n){return B(this,void 0,void 0,(function*(){const s=r?e.RowGroup:e.ColumnGroup;n&&(i=this.CreateUniqueGroupName(i),yield d.a.InitDynamicGroup(s,i,[new l.a({[p.a.Expression]:n},s,this.provider)])),this.ReplaceGroupHeader(s,t)}))}ReplaceCellContentExtended(e,t,r,i){return B(this,void 0,void 0,(function*(){this.IsRowHeaderCell(e)?yield this.ReplaceGroup(e,t,!0,r,i):this.IsColumnHeaderCell(e)?yield this.ReplaceGroup(e,t,!1,r,i):(this.IsBodyCell(e)||this.IsCornerCell(e))&&this.ReplaceCellContent(e,t),this.PerformLayout(),this.SetHeaderLabelText(e.RowIndex,e.ColIndex,F.GetDataField(t)),this.PerformLayout()}))}static GetDataField(e){let t="";if(e instanceof h.a){t=e.Value}return S.a.GetFieldReference(t)}static CopyStyle(e,t){if(null!==e&&null!==t){jQuery.extend(!0,v.b.resolvePropertyStore(t.PropertyStore,p.a.Style,()=>{}),v.b.resolvePropertyStore(e.PropertyStore,p.a.Style,()=>{}));const r=t.getProperty(p.a.StyleName);r.SetValue(r.GetValue(e,e.PropertyStore),t,t.PropertyStore)}}GetFieldType(e){return null}GetHeaderLabelItem(e,t){if(e<this.ColumnHeaderRowCount)return null;let r=0;const i=this.CellAt(e,t).RowGroup,n=d.a.GetRootGroup(i);let s=this.RowGroups.IndexOf(n);if(s>0){const e=this.RowGroups.Get(s-1);if(O.a.isDynamic(e))return null;if(d.a.CountDynamicDescendants(e.ChildGroups)>0)return null;const t=d.a.GetIndicesOfLeavesOfTableGroup(this.RowGroups,0,e);if(!t)return null;r=this.ColumnHeaderRowCount+t.IndexOfLastLeaf}else if(this.ColumnHeaderRowCount>0&&t<this.RowHeaderColumnCount)r=this.ColumnHeaderRowCount-1;else{if(!this.IsBodyCellByIndex(e,t))return null;r=this.ColumnHeaderRowCount-1}if(r<0||t<0)return null;let a=this.CellAt(r,t);if(a.MergeTarget&&(a=a.MergeTarget,a.ColIndex!==t))return null;const o=a.ReportItem;return F.IsEmptyTextBox(o)?o:null}SetHeaderLabelText(e,t,r){if(!r)return;const i=this.GetHeaderLabelItem(e,t);i instanceof h.a&&(i.Value=f.a.SplitName(r))}static IsEmptyTextBox(e){if(e instanceof u.a){const t=e,r=t.Value;return!r||r===t.Name}return!1}GetRowHeaderItemsDepth(e){let t=0;for(;e;)t+=this.GetRowHeaderItemSpan(e),e=e.ParentGroup;return t}GetRowHeaderItemSpan(e){var t=e.ReportItem;if(t){return this.GetCell(t).ColSpan}return 0}GetColHeaderItemsDepth(e){let t=0;for(;e;)t+=this.GetColHeaderItemSpan(e),e=e.ParentGroup;return t}GetColHeaderItemSpan(e){var t=e.ReportItem;return t?this.GetCell(t).RowSpan:0}IsCellSelected(e){if(e.MergeTarget)return this.IsCellSelected(e.MergeTarget);for(let t=this.selectedCells.length-1;t>=0;t--){if(this.selectedCells[t].Item===e.ReportItem)return!0}return!1}SelectSingleCell(e,t,r){const i=[this.CellAt(e,t)];r==D.a.Append&&i.push(...this.selectedCells.map(e=>e.ToLayoutCell())),this.SetSelectedCells(i)}SetSelectedCells(e){if(this.selectedCells=[],e)for(let t=0;t<e.length;t++){let r=e[t];if(r){if(r.IsOrphaned)throw new G.a("Cannot select orphaned cells",this.provider);if(r.MergeTarget&&(r=r.MergeTarget),!r.ReportItem)throw new G.a("Cannot select a cell with no report item.",this.provider);const e=A.FromLayoutCell(r);this.selectedCells.includes(e)||this.selectedCells.push(e)}}}*GetSelectedCells(){for(let e=0;e<this.Rows.length;e++)for(let t=0;t<this.Columns.length;t++){const r=this.CellAt(e,t);!r.MergeTarget&&this.IsCellSelected(r)&&(yield r)}}HasSelectedCells(){for(const{}of this.GetSelectedCells())return!0;return!1}MoveToCell(e,t,r){return this.MoveToCellByRows(this.MoveToCellByColumns(e,t),r)}MoveToCellByColumns(e,t){let r=e;const i=Math.sign(t);for(let e=0;e<Math.abs(t);e++){const e=i>0?r.ColSpan:i,t=r.ColIndex+e;if(t<0||t>=this.Columns.length)break;r=this.CellAt(r.RowIndex,t),r.MergeTarget&&(r=r.MergeTarget)}return r}MoveToCellByRows(e,t){let r=e;const i=Math.sign(t);for(let e=0;e<Math.abs(t);e++){const e=i>0?r.RowSpan:i,t=r.RowIndex+e;if(t<0||t>=this.Rows.length)break;r=this.CellAt(t,r.ColIndex),r.MergeTarget&&(r=r.MergeTarget)}return r}MoveSelection(e,t){if(this.selectedCells.length>0)for(const r of this.GetSelectedCells()){const i=this.MoveToCell(r,e,t);i.RowIndex===r.RowIndex&&i.ColIndex===r.ColIndex||this.SelectCellsInternal([i]);break}}CalculateItemMinSize(e){const t=this.GetCell(e);let r=a.a.Zero;{const e=t.Column.Index,i=t.ColSpan;for(let t=0;t<i-1;t++)r=r.Add(this.Columns[t+e].Size);r=r.Add(C.a.MinSize)}let i=a.a.Zero;{const e=t.Row.Index,r=t.RowSpan;for(let t=0;t<r-1;t++)i=i.Add(this.Rows[t+e].Size);i=i.Add(C.a.MinSize)}return new s.a(r,i)}ResizeMemberByItem(e,t,r){const i=this.GetCell(e);this.ResizeMember(i,t,r)}ResizeMember(e,t,r){const i=e.Column.Index,n=e.ColSpan;let s=a.a.Zero;for(let e=0;e<n;e++)s=s.Add(this.Columns[e+i].Size);if(!t.IsEqual(s)){let e=t;for(let t=0;t<n-1;t++)e=e.Subtract(this.Columns[t+i].Size);this.Columns[i+n-1].SetSize(e,!1)}const o=e.Row.Index,l=e.RowSpan;let c=a.a.Zero;for(let e=0;e<l;e++)c=c.Add(this.Rows[e+o].Size);if(!r.IsEqual(c)){let e=r;for(let t=0;t<l-1;t++)e=e.Subtract(this.Rows[t+o].Size);this.Rows[o+l-1].SetSize(e,!1)}}InsertRow(e,t){return B(this,void 0,void 0,(function*(){this.SuspendLayout();const r=e==x.a.Before?this.GetFirstSelectedRow():this.GetLastSelectedRow();if(r<this.ColumnHeaderRowCount){const i=e==x.a.After?r+1:r,n=new V(this);yield n.SplitColumnHeaderRow(i);let s=this.CellAt(r,this.RowHeaderColumnCount);s.MergeTarget&&(s=s.MergeTarget),yield this.InsertColGroupsInHierarchyAtCertainRepresentationDepth(e,t,s.ColumnGroup),yield this.InsertRowAt(this.Corner,i,this.RowHeaderColumnCount,r,0),this.Refresh(),yield n.MergeLineBack()}else{const i=this.GetColIndexWithSelectionEdgeOnTheInsertionEdge(r,e);let n=this.FindRowGroupForCell(r,i);n=yield this.GetReferenceGroupForNewRowOrColumn(n,e,t),yield this.InsertBodyRow(n,e)}this.ResumeLayout(),this.PerformLayout()}))}InsertColumn(e,t){return B(this,void 0,void 0,(function*(){this.SuspendLayout();const r=e==x.a.Before?this.GetFirstSelectedColumn():this.GetLastSelectedColumn();if(r<this.RowHeaderColumnCount){const i=e==x.a.After?r+1:r,n=new V(this);yield n.SplitRowHeaderColumn(i);let s=this.CellAt(this.ColumnHeaderRowCount,r);s.MergeTarget&&(s=s.MergeTarget),yield this.InsertRowGroupsInHierarchyAtCertainRepresentationDepth(e,t,s.RowGroup),yield this.InsertColumnAt(this.Corner,i,this.ColumnHeaderRowCount,r,0),this.Refresh(),yield n.MergeLineBack()}else{const i=this.GetRowIndexWithSelectionEdgeOnTheInsertionEdge(r,e);let n=this.FindColumnGroupForCell(i,r);n=yield this.GetReferenceGroupForNewRowOrColumn(n,e,t),yield this.InsertBodyColumn(n,e)}this.ResumeLayout(),this.PerformLayout()}))}GetColIndexWithSelectionEdgeOnTheInsertionEdge(e,t){return this.Columns.findIndex(r=>{let i=this.CellAt(e,r.Index);return null!=i.MergeTarget&&(i=i.MergeTarget),this.IsCellSelected(i)&&(t==x.a.After&&i.RowIndex+i.RowSpan-1==e||t==x.a.Before&&i.RowIndex==e)})}GetRowIndexWithSelectionEdgeOnTheInsertionEdge(e,t){return this.Rows.findIndex(r=>{let i=this.CellAt(r.Index,e);return null!=i.MergeTarget&&(i=i.MergeTarget),this.IsCellSelected(i)&&(t==x.a.After&&i.ColIndex+i.ColSpan-1==e||t==x.a.Before&&i.ColIndex==e)})}DeleteRows(e=!0,t=!0){const r=[];for(let e=this.Rows.length-1;e>=0;e--)this.IsRowSelected(e)&&r.push(e);let i=this.Rows.length-this.ColumnHeaderRowCount;for(let e=0;e<r.length;e++){r[e]>=this.ColumnHeaderRowCount&&i--}if(i<=0)this.notifications.error("Cannot delete row. Table body must contain at least one row.");else{for(let i=0;i<r.length;i++){this.SuspendLayout();const n=r[i];n<this.ColumnHeaderRowCount?this.DeleteColumnHeaderRow(n,e,t):this.DeleteBodyRow(n,e,t),this.ResumeLayout(),this.PerformLayout()}this.selectionService.SetSelectedComponents([this.Table])}}DeleteColumns(e=!0,t=!0){const r=[];for(let e=this.Columns.length-1;e>=0;e--)this.IsColumnSelected(e)&&r.push(e);let i=this.Columns.length-this.RowHeaderColumnCount;for(let e=0;e<r.length;e++){r[e]>=this.RowHeaderColumnCount&&i--}if(i<=0)throw new G.a("Table body must contain at least one column.",this.provider);for(let i=0;i<r.length;i++){this.SuspendLayout();const n=r[i];n<this.RowHeaderColumnCount?this.DeleteRowHeaderColumn(n,e,t):this.DeleteBodyColumn(n,e,t),this.ResumeLayout(),this.PerformLayout()}this.selectionService.SetSelectedComponents([this.Table])}InsertRowAt(e,t,r,i,n){return B(this,void 0,void 0,(function*(){const a=[];for(let o=0;o<r;){const r=e.Cells.FindAll(e=>e.ColumnIndex==o&&e.RowIndex<t&&t<=e.RowIndex+e.RowSpan-1);if(0==r.length){const e=yield this.CreateTextBox(),r=n+o;if(e.Size=new s.a(this.columns[r].Size,this.DefaultItemSize.Height),i>=0){let t=this.CellAt(i,r);null!=t.MergeTarget&&(t=t.MergeTarget),null!=t.ReportItem&&F.CopyStyle(t.ReportItem,e)}const l=new c.a({});l.RowIndex=t,l.ColumnIndex=o,l.RowSpan=1,l.ColumnSpan=1,l.ReportItem=e,a.push(l),o++}else o+=r[0].ColumnSpan}for(const r of e.Cells)r.RowIndex>=t?r.RowIndex++:r.RowIndex+r.RowSpan-1>=t&&r.RowSpan++;for(const t of a)e.Cells.Add(t)}))}InsertColumnAt(e,t,r,i,n){return B(this,void 0,void 0,(function*(){const a=[];for(let o=0;o<r;){const r=e.Cells.FindAll(e=>e.RowIndex==o&&e.ColumnIndex<t&&t<=e.ColumnIndex+e.ColumnSpan-1);if(0==r.length){const e=yield this.CreateTextBox(),r=n+o;if(e.Size=new s.a(this.DefaultItemSize.Width,this.rows[r].Size),i>=0){let t=this.CellAt(r,i);null!=t.MergeTarget&&(t=t.MergeTarget),null!=t.ReportItem&&F.CopyStyle(t.ReportItem,e)}const l=new c.a({});l.RowIndex=o,l.ColumnIndex=t,l.RowSpan=1,l.ColumnSpan=1,l.ReportItem=e,a.push(l),o++}else o+=r[0].RowSpan}for(const r of e.Cells)r.ColumnIndex>=t?r.ColumnIndex++:r.ColumnIndex+r.ColumnSpan-1>=t&&r.ColumnSpan++;for(const t of a)e.Cells.Add(t)}))}DeleteRowAt(e){const t=this.Rows[e];for(let e=0;e<t.Cells.length;e++){const r=t.Cells[e];r.RowSpan<=1&&null!=r.ReportItem&&(this.DeleteComponent(r.ReportItem),r.ReportItem=null)}e<this.ColumnHeaderRowCount?this.DeleteCellsAtRow(this.Corner,e):0<=(e-=this.ColumnHeaderRowCount)&&e<this.bodyRowCount&&this.DeleteCellsAtRow(this.Body,e)}DeleteColumnAt(e){const t=this.Columns[e];for(const e of t){let t=e;null!=e.MergeTarget&&(t=e.MergeTarget),t.ColSpan<=1&&null!=t.ReportItem&&(this.DeleteComponent(t.ReportItem),t.ReportItem=null)}e<this.RowHeaderColumnCount?0<=e&&e<this.CornerColumnCount&&this.DeleteCellsAtColumn(this.Corner,e):0<=(e-=this.RowHeaderColumnCount)&&e<this.bodyColumnCount&&this.DeleteCellsAtColumn(this.Body,e)}InsertBodyRow(e,t){return B(this,void 0,void 0,(function*(){const r=yield this.InsertRowOrColumn(this.RowGroups,e,t,!1);yield this.InsertRowAt(this.Body,r,this.bodyColumnCount,this.ColumnHeaderRowCount+(t==x.a.Before?r:r-1),this.RowHeaderColumnCount);const i=new I.a({});return i.Height=this.DefaultItemSize.Height,this.Table.Body.Rows.Insert(r,i),this.PerformLayout(),this.ColumnHeaderRowCount+r}))}InsertBodyColumn(e,t){return B(this,void 0,void 0,(function*(){const r=yield this.InsertRowOrColumn(this.ColumnGroups,e,t,!0);yield this.InsertColumnAt(this.Body,r,this.bodyRowCount,this.RowHeaderColumnCount+(t==x.a.Before?r:r-1),this.ColumnHeaderRowCount);const i=new E.a({});return i.Width=this.DefaultItemSize.Width,this.Table.Body.Columns.Insert(r,i),this.PerformLayout(),this.RowHeaderColumnCount+r}))}DeleteBodyRow(e,t,r){const i=[];for(let t=0;t<this.RowHeaderColumnCount;t++){const r=this.CellAt(e,t);null==r.MergeTarget&&O.a.isDynamic(r.RowGroup)&&i.push(r.RowGroup)}if(i.length>0&&(t||(r=!0),!r))return;for(let e=0;e<i.length;e++)d.a.DeleteDynamicGroup(i[e]);const n=this.RowGroups;let s=d.a.GetLeafGroups(n)[e-this.ColumnHeaderRowCount],a=null;do{if(null==s.ParentGroup){a=n;break}if(a=s.ParentGroup.ChildGroups,a.Count>1)break;s=s.ParentGroup}while(null!=s);a.Remove(s),this.DeleteComponent(s.ReportItem),s.ReportItem=null,d.a.Visit(s.ChildGroups,0,(e,t,r)=>(this.DeleteComponent(e.ReportItem),e.ReportItem=null,!1));const o=F.CalculateDistanceList(n,!1,!1);for(let e=this.RowHeaderColumnCount-1;e>=o.length;e--)this.DeleteCellsAtColumn(this.Corner,e);this.Table.Body.Rows.RemoveAt(e-this.ColumnHeaderRowCount),this.DeleteRowAt(e)}DeleteBodyColumn(e,t,r){const i=[];for(let t=0;t<this.ColumnHeaderRowCount;t++){const r=this.CellAt(t,e);null==r.MergeTarget&&O.a.isDynamic(r.ColumnGroup)&&i.push(r.ColumnGroup)}if(i.length>0&&(t||(r=!0),!r))return;for(let e=0;e<i.length;e++)d.a.DeleteDynamicGroup(i[e]);const n=this.ColumnGroups;let s=d.a.GetLeafGroups(n)[e-this.RowHeaderColumnCount],a=null;do{if(null==s.ParentGroup){a=n;break}if(a=s.ParentGroup.ChildGroups,a.Count>1)break;s=s.ParentGroup}while(null!=s);a.Remove(s),this.DeleteComponent(s.ReportItem),s.ReportItem=null,d.a.Visit(s.ChildGroups,0,(e,t,r)=>(this.DeleteComponent(e.ReportItem),e.ReportItem=null,!1));const o=F.CalculateDistanceList(n,!0,!1);for(let e=this.ColumnHeaderRowCount-1;e>=o.length;e--)this.DeleteCellsAtRow(this.Corner,e);this.Table.Body.Columns.RemoveAt(e-this.RowHeaderColumnCount),this.DeleteColumnAt(e)}InsertRowOrColumn(e,t,r,i){return B(this,void 0,void 0,(function*(){let n=d.a.GetParentCollection(t),s=n.IndexOf(t);r==x.a.After&&(s+=1);let a=null;for(;null!=t;)a=yield this.NewGroupByReferenceGroup(t),null!=a.ReportItem&&(i?a.ReportItem.Height=t.ReportItem.Height:a.ReportItem.Width=t.ReportItem.Width),n.Insert(s,a),n=a.ChildGroups,s=0,t=t.ChildGroups.Count>0?t.ChildGroups.Get(0):null;return d.a.GetLeafGroups(e).indexOf(a)}))}DeleteColumnHeaderRow(e,t,r){const i=[];for(let t=this.RowHeaderColumnCount;t<this.Columns.length;t++){const r=this.CellAt(e,t);if(null==r.MergeTarget&&r.RowSpan<=1){const r=this.FindColumnGroupForColumnHeaderCell(e,t);O.a.isDynamic(r)&&i.push(r)}}if(i.length>0&&!t&&!this.CanDeleteGroup())return;const n=[];for(let t=this.RowHeaderColumnCount;t<this.Columns.length;t++){let i=this.CellAt(e,t);null!=i.MergeTarget&&(i=i.MergeTarget);const s=i.ColumnGroup;i.RowSpan>1?null!=s.ReportItem&&(s.ReportItem.Height=s.ReportItem.Height.Subtract(this.Rows[e].Size)):(this.DeleteComponent(s.ReportItem),s.ReportItem=null,r&&(d.a.DeleteDynamicGroup(s),s.ChildGroups.Count>0&&!n.includes(s)&&n.push(s)))}for(let e=0;e<n.length;e++){const t=n[e];let r=null;r=null!=t.ParentGroup?t.ParentGroup.ChildGroups:this.ColumnGroups;const i=r.IndexOf(t);r.RemoveAt(i);for(let e=t.ChildGroups.Count-1;e>=0;e--)r.Insert(i,t.ChildGroups.Get(e))}this.DeleteRowAt(e)}DeleteRowHeaderColumn(e,t,r){const i=[];for(let t=this.ColumnHeaderRowCount;t<this.Rows.length;t++){const r=this.CellAt(t,e);if(null==r.MergeTarget&&r.ColSpan<=1){const r=this.FindRowGroupForRowHeaderCell(t,e);O.a.isDynamic(r)&&i.push(r)}}if(i.length>0&&!t&&!this.CanDeleteGroup())return;const n=[];for(let t=this.ColumnHeaderRowCount;t<this.Rows.length;t++){let i=this.CellAt(t,e);null!=i.MergeTarget&&(i=i.MergeTarget);const s=i.RowGroup;i.ColSpan>1?null!=s.ReportItem&&(s.ReportItem.Width=s.ReportItem.Width.Subtract(this.Columns[e].Size)):(this.DeleteComponent(s.ReportItem),s.ReportItem=null,r&&(d.a.DeleteDynamicGroup(s),s.ChildGroups.Count>0&&!n.includes(s)&&n.push(s)))}for(let e=0;e<n.length;e++){const t=n[e];let r=null;r=null!=t.ParentGroup?t.ParentGroup.ChildGroups:this.RowGroups;const i=r.IndexOf(t);r.RemoveAt(i);for(let e=t.ChildGroups.Count-1;e>=0;e--)r.Insert(i,t.ChildGroups.Get(e))}this.DeleteColumnAt(e)}CanDeleteColumnHeaderRow(e){for(let t=this.RowHeaderColumnCount;t<this.Columns.length;t++){const r=this.CellAt(e,t);if(null==r.MergeTarget&&O.a.isDynamic(r.ColumnGroup))return!1}return!0}CanDeleteRowHeaderColumn(e){for(let t=this.ColumnHeaderRowCount;t<this.Rows.length;t++){const r=this.CellAt(t,e);if(null==r.MergeTarget&&O.a.isDynamic(r.RowGroup))return!1}return!0}CanDeleteGroup(){return!0}DeleteCellsAtRow(e,t){for(let r=e.Cells.Count-1;r>=0;r--){const i=e.Cells.Get(r);i.RowIndex<=t?i.RowIndex+i.RowSpan>t&&(i.RowSpan>1?i.RowSpan--:(this.DeleteComponent(i.ReportItem),e.Cells.RemoveAt(r),i.Dispose())):i.RowIndex--}}DeleteCellsAtColumn(e,t){for(let r=e.Cells.Count-1;r>=0;r--){const i=e.Cells.Get(r);i.ColumnIndex<=t?i.ColumnIndex+i.ColumnSpan>t&&(i.ColumnSpan>1?i.ColumnSpan--:(this.DeleteComponent(i.ReportItem),e.Cells.RemoveAt(r),i.Dispose())):i.ColumnIndex--}}FindRowGroupForCell(e,t){if(this.IsRowHeaderCellByIndex(e,t))return this.FindRowGroupForRowHeaderCell(e,t);if(this.IsBodyCellByIndex(e,t)){return d.a.GetLeafGroups(this.RowGroups)[e-this.ColumnHeaderRowCount]}return null}FindColumnGroupForCell(e,t){if(this.IsColumnHeaderCellByIndex(e,t))return this.FindColumnGroupForColumnHeaderCell(e,t);if(this.IsBodyCellByIndex(e,t)){return d.a.GetLeafGroups(this.ColumnGroups)[t-this.RowHeaderColumnCount]}return null}FindRowGroupForRowHeaderCell(e,t){let r=this.CellAt(e,t);return null!=r.MergeTarget&&(r=r.MergeTarget),r.RowGroup}FindColumnGroupForColumnHeaderCell(e,t){let r=this.CellAt(e,t);return null!=r.MergeTarget&&(r=r.MergeTarget),r.ColumnGroup}GetReferenceGroupForNewRowOrColumn(e,t,r){return B(this,void 0,void 0,(function*(){let i=r==R.a.Outside;const n=t==x.a.Before;if(O.a.isDynamic(e))if(i)i=!1;else if(e.ChildGroups.Count>0)e=n?e.ChildGroups.Get(0):e.ChildGroups.Get(e.ChildGroups.Count-1);else{const t=new d.a({},this.Table,this.provider);t.Name=this.CreateUniqueGroupName("Group"),yield t.Initialize(),e.ChildGroups.Add(t),e=t}for(;;){const t=e.ParentGroup;if(null==t)return e;if(n){if(t.ChildGroups.Get(0)!=e)return e}else if(t.ChildGroups.Get(t.ChildGroups.Count-1)!=e)return e;if(O.a.isDynamic(t)){if(!i)return e;i=!1}e=t}}))}GetFirstSelectedColumn(){for(let e=0;e<this.Columns.length;e++)if(this.IsColumnSelected(e))return e;if(this.selectedCells.length>0){const e=this.selectedCells[0].ToLayoutCell();if(e)return e.ColIndex}return-1}GetLastSelectedColumn(){for(let e=this.Columns.length-1;e>=0;e--)if(this.IsColumnSelected(e))return e;if(this.selectedCells.length>0){const e=this.selectedCells[0].ToLayoutCell();if(e)return e.ColIndex+e.ColSpan-1}return-1}GetFirstSelectedRow(){for(let e=0;e<this.Rows.length;e++)if(this.IsRowSelected(e))return e;if(this.selectedCells.length>0){const e=this.selectedCells[0].ToLayoutCell();if(e)return e.RowIndex}return-1}GetLastSelectedRow(){for(let e=this.Rows.length-1;e>=0;e--)if(this.IsRowSelected(e))return e;if(this.selectedCells.length>0){const e=this.selectedCells[0].ToLayoutCell();if(e)return e.RowIndex+e.RowSpan-1}return-1}IsRowSelected(e){const t=this.Rows[e];for(const e of t.Cells)if(!this.IsCellSelected(e)&&this.IsAnySelected(e.Column.GetCells()))return!1;return!0}IsEntireRowSelected(e){const t=this.Rows[e];for(const e of t.Cells)if(!this.IsCellSelected(e))return!1;return!0}IsColumnSelected(e){const t=this.columns[e];for(const e of t.GetCells())if(!this.IsCellSelected(e)&&this.IsAnySelected(e.Row.Cells))return!1;return!0}IsEntireColumnSelected(e){const t=this.columns[e];for(const e of t.GetCells())if(!this.IsCellSelected(e))return!1;return!0}IsAnySelected(e){for(const t of e)if(this.IsCellSelected(t))return!0;return!1}InsertRowGroupsInHierarchyAtCertainGroupsDepth(e,t,r){return B(this,void 0,void 0,(function*(){yield this.InsertGroupsInHierarchyAtCertainDepthRecursive(this.RowGroups,e,t,r.Depth,0,e=>1)}))}InsertRowGroupsInHierarchyAtCertainRepresentationDepth(e,t,r){return B(this,void 0,void 0,(function*(){const i=e==x.a.Before?this.GetRowHeaderItemsDepth(r.ParentGroup)+1:this.GetRowHeaderItemsDepth(r);yield this.InsertGroupsInHierarchyAtCertainDepthRecursive(this.RowGroups,e,t,i,0,this.GetRowHeaderItemSpan.bind(this))}))}InsertColGroupsInHierarchyAtCertainGroupsDepth(e,t,r){return B(this,void 0,void 0,(function*(){yield this.InsertGroupsInHierarchyAtCertainDepthRecursive(this.ColumnGroups,e,t,r.Depth,0,e=>1)}))}InsertColGroupsInHierarchyAtCertainRepresentationDepth(e,t,r){return B(this,void 0,void 0,(function*(){const i=e==x.a.Before?this.GetColHeaderItemsDepth(r.ParentGroup)+1:this.GetColHeaderItemsDepth(r);yield this.InsertGroupsInHierarchyAtCertainDepthRecursive(this.ColumnGroups,e,t,i,0,this.GetColHeaderItemSpan.bind(this))}))}InsertGroupsInHierarchyAtCertainDepthRecursive(e,t,r,i,n,s){return B(this,void 0,void 0,(function*(){for(let a=0;a<e.Count;a++){const o=e.Get(a),l=n+s(o);l>=i?yield this.InsertGroupBasedOnPosition(o,t,r):yield this.InsertGroupsInHierarchyAtCertainDepthRecursive(o.ChildGroups,t,r,i,l,s)}}))}InsertGroupBasedOnPosition(e,t,r){return B(this,void 0,void 0,(function*(){if(t==x.a.After)yield this.InsertChildGroup(e);else if(r==R.a.Inside){const t=yield this.InsertChildGroup(e);d.a.SwapContent(e,t)}else yield this.InsertParentGroup(e)}))}InsertChildGroup(e){return B(this,void 0,void 0,(function*(){const t=e.ReportItem||new u.a({},null,this.provider,!1),r=yield this.NewGroupByReferenceItem(t);for(const t of e.ChildGroups)r.ChildGroups.Add(t);return e.ChildGroups.Clear(),e.ChildGroups.Add(r),r}))}InsertParentGroup(e){return B(this,void 0,void 0,(function*(){const t=e.ReportItem||new u.a({},null,this.provider,!1),r=yield this.NewGroupByReferenceItem(t),i=d.a.GetParentCollection(e),n=i.IndexOf(e);return i.RemoveAt(n),i.Insert(n,r),r.ChildGroups.Add(e),r}))}InsertOuterColumnGroup(e,t,r,i,n=!0){return B(this,void 0,void 0,(function*(){const s=this.GetReferenceGroup(!0);if(null==s)return!1;return yield this.InsertOuterColumnGroupByReferenceGroup(s,e,t,r,i,n)}))}InsertOuterColumnGroupByReferenceGroup(e,t,r,i,n,s){return B(this,void 0,void 0,(function*(){if(!s&&!this.NewGroup())return!1;const a=this.GetFirstSelectedRow();return yield this.InsertColumnGroup(e,this.CreateUniqueGroupName(t),r,i,n,a,x.a.Before,R.a.Outside),!0}))}InsertOuterRowGroup(e,t,r,i,n=!0){return B(this,void 0,void 0,(function*(){const s=this.GetReferenceGroup(!1);if(null==s)return!1;return yield this.InsertOuterRowGroupByReferenceGroup(s,e,t,r,i,n)}))}InsertOuterRowGroupByReferenceGroup(e,t,r,i,n,s){return B(this,void 0,void 0,(function*(){if(!s&&!this.NewGroup())return!1;const a=this.GetFirstSelectedColumn();return yield this.InsertRowGroup(e,this.CreateUniqueGroupName(t),r,i,n,a,x.a.Before,R.a.Outside),!0}))}InsertInnerColumnGroup(e,t,r,i,n){return B(this,void 0,void 0,(function*(){return yield this.InsertInnerGroup(e,!0,t,r,i,n)}))}InsertInnerRowGroup(e,t,r,i,n){return B(this,void 0,void 0,(function*(){return yield this.InsertInnerGroup(e,!1,t,r,i,n)}))}InsertInnerGroup(e,t,r,i,n,s){return B(this,void 0,void 0,(function*(){const a=this.GetReferenceGroup(t);if(null==a)return!1;return yield this.InsertInnerGroupByReferenceGroup(a,t,e,r,i,n,s)}))}InsertInnerGroupByReferenceGroup(e,t,r,i,n,s,a){return B(this,void 0,void 0,(function*(){if(O.a.isDetail(e))throw new G.a("Cannot add child group to a detail group.");if(null==e||null==e.ReportItem)throw new G.a("No grouping cell.");return!a&&!this.NewGroup()||(r=this.CreateUniqueGroupName(r),t?yield this.InsertColumnGroup(e,r,i,n,s,this.RowIndexOfColumnGroup(e),x.a.After,R.a.Outside):yield this.InsertRowGroup(e,r,i,n,s,this.ColumnIndexOfRowGroup(e),x.a.After,R.a.Outside),this.PerformLayout(),!0)}))}InsertAdjacentColumnGroup(e,t,r,i){return B(this,void 0,void 0,(function*(){const n=this.GetReferenceGroup(!0);if(null==n)return!1;return yield this.InsertAdjacentColumnGroupByReference(n,e,t,r,i)}))}InsertAdjacentColumnGroupByReference(e,t,r,i,n){return B(this,void 0,void 0,(function*(){const s=yield this.InsertAdjacentGroup(this.ColumnGroups,e,!0,t,r,i,n);if(s>=0){const e=new E.a({});return e.Width=this.DefaultItemSize.Width,this.Table.Body.Columns.Insert(s,e),yield this.InsertColumnAt(this.Body,s,this.bodyRowCount,this.RowHeaderColumnCount+(t==x.a.Before?s:s-1),this.ColumnHeaderRowCount),this.PerformLayout(),!0}return!1}))}InsertAdjacentRowGroup(e,t,r,i){return B(this,void 0,void 0,(function*(){const n=this.GetReferenceGroup(!1);if(null==n)return!1;return yield this.InsertAdjacentRowGroupByReference(n,e,t,r,i)}))}InsertAdjacentRowGroupByReference(e,t,r,i,n){return B(this,void 0,void 0,(function*(){const s=yield this.InsertAdjacentGroup(this.RowGroups,e,!1,t,r,i,n);if(s>=0){const e=new I.a({});return e.Height=this.DefaultItemSize.Height,this.Table.Body.Rows.Insert(s,e),yield this.InsertRowAt(this.Body,s,this.bodyColumnCount,this.ColumnHeaderRowCount+(t==x.a.Before?s:s-1),this.RowHeaderColumnCount),this.PerformLayout(),!0}return!1}))}DeleteColumnGroup(e,t){const r=this.GetSingleSelectedDynamicColumnGroup(),i=this.DeleteColumnGroupByReference(r,e,t);return this.selectionService.SetSelectedComponents([this.Table]),i}DeleteRowGroup(e,t){const r=this.GetSingleSelectedDynamicRowGroup(),i=this.DeleteRowGroupByReference(r,e,t);return this.selectionService.SetSelectedComponents([this.Table]),i}DeleteColumnGroupByReference(e,t,r){return this.DeleteGroup(e,!0,t,r)}DeleteRowGroupByReference(e,t,r){return this.DeleteGroup(e,!1,t,r)}DeleteGroup(e,t,r,i){if(null==e)throw new G.a("No group to delete.",this.provider);if(O.a.isStatic(e))throw new G.a("Cannot delete static group.",this.provider);return!(!r&&!this.CanDeleteGroup())&&(t?this.DeleteColumnGroupCore(e,i):this.DeleteRowGroupCore(e,i),this.PerformLayout(),!0)}DeleteColumnGroupCore(e,t){if(d.a.DeleteDynamicGroup(e),t){const t=[];if(e.ChildGroups.Count>0)for(let r=0;r<e.ChildGroups.Count;r++){const i=e.ChildGroups.Get(r);d.a.IsStaticHierarchy(i)&&t.push(i)}else t.push(e);for(let e=0;e<t.length;e++){const r=t[e],i=d.a.GetIndicesOfLeavesOfTableGroup(this.ColumnGroups,this.RowHeaderColumnCount,r);if(i)for(let e=i.IndexOfLastLeaf;e>=i.IndexOfFirstLeaf&&1!=this.Columns.length-this.RowHeaderColumnCount;e--)this.DeleteBodyColumn(e,!0,!0),this.PerformLayout()}e.RowIndex>=0&&this.CanDeleteColumnHeaderRow(e.RowIndex)&&this.DeleteColumnHeaderRow(e.RowIndex,!1,!0)}}DeleteRowGroupCore(e,t){if(d.a.DeleteDynamicGroup(e),t){const t=[];if(e.ChildGroups.Count>0)for(let r=0;r<e.ChildGroups.Count;r++){const i=e.ChildGroups.Get(r);d.a.IsStaticHierarchy(i)&&t.push(i)}else t.push(e);for(let e=0;e<t.length;e++){const r=t[e],i=d.a.GetIndicesOfLeavesOfTableGroup(this.RowGroups,this.ColumnHeaderRowCount,r);if(i)for(let e=i.IndexOfLastLeaf;e>=i.IndexOfFirstLeaf&&1!=this.Rows.length-this.ColumnHeaderRowCount;e--)this.DeleteBodyRow(e,!0,!0),this.PerformLayout()}e.ColumnIndex>=0&&this.CanDeleteRowHeaderColumn(e.ColumnIndex)&&this.DeleteRowHeaderColumn(e.ColumnIndex,!1,!0)}}GetSingleSelectedDynamicColumnGroup(){return this.GetSingleSelectedDynamicGroup(!0)}GetSingleSelectedDynamicRowGroup(){return this.GetSingleSelectedDynamicGroup(!1)}GetSingleSelectedDynamicGroup(e){let t=null,r=!0;for(let i=0;i<this.Rows.length;i++)for(let n=0;n<this.Columns.length;n++)if(this.IsCellSelected(this.CellAt(i,n))){const s=F.GetFirstDynamicAncestor(this.CellAt(i,n),e);if(!r&&t!=s)return null;r=!1,t=s}return t}static GetFirstDynamicAncestor(e,t){return null!=e.MergeTarget&&(e=e.MergeTarget),d.a.FindDynamicAncestorOrSelf(t?e.ColumnGroup:e.RowGroup)}InsertAdjacentGroup(e,t,r,i,n,s,a){return B(this,void 0,void 0,(function*(){if(!a&&!this.NewGroup())return-1;return yield this.InsertAdjacentGroupCore(e,t,r,i,this.CreateUniqueGroupName(n),s)}))}InsertAdjacentGroupCore(e,t,r,i,n,s){return B(this,void 0,void 0,(function*(){this.SuspendLayout();try{const a=i==x.a.After;let o=null;o=null==t.ParentGroup?e:t.ParentGroup.ChildGroups;let l=yield this.NewGroupByReferenceGroup(t);yield d.a.InitDynamicGroup(l,n,s),null!=t.ReportItem&&(r?l.ReportItem.Height=t.ReportItem.Height:l.ReportItem.Width=t.ReportItem.Width);let c=o.IndexOf(t);for(a&&c++,o.Insert(c,l);t.ChildGroups.Count>0;){t=a?t.ChildGroups.Get(t.ChildGroups.Count-1):t.ChildGroups.Get(0);const e=yield this.NewGroupByReferenceGroup(t);null!=t.ReportItem&&(r?e.ReportItem.Height=t.ReportItem.Height:e.ReportItem.Width=t.ReportItem.Width),l.ChildGroups.Add(e),l=e}return d.a.GetLeafGroups(e).indexOf(l)}finally{this.ResumeLayout()}}))}InsertColumnGroup(e,t,r,i,n,s,a,o){return B(this,void 0,void 0,(function*(){const l=this.GetNewColGroupTargetRowIndex(e,a),c=new V(this);yield c.SplitColumnHeaderRow(l),e.ReportItem?yield this.InsertColGroupsInHierarchyAtCertainRepresentationDepth(a,o,e):yield this.InsertColGroupsInHierarchyAtCertainGroupsDepth(a,o,e);const u=a==x.a.Before?e.ParentGroup:e.ChildGroups.Get(0);yield this.InsertRowAt(this.Corner,l,this.RowHeaderColumnCount,s,0),this.Refresh(),yield c.MergeLineBack(),this.PerformLayout();const h=d.a.GetIndicesOfLeavesOfTableGroup(this.ColumnGroups,this.RowHeaderColumnCount,e);yield d.a.InitDynamicGroup(u,t,r),yield this.AddHeaderFooterToColumnGroup(u,i,n),this.SelectCellsInternal([this.CellAt(l,h.IndexOfFirstLeaf)])}))}InsertRowGroup(e,t,r,i,n,s,a,o){return B(this,void 0,void 0,(function*(){const l=this.GetNewRowGroupTargetColIndex(e,a),c=new V(this);yield c.SplitRowHeaderColumn(l),e.ReportItem?yield this.InsertRowGroupsInHierarchyAtCertainRepresentationDepth(a,o,e):yield this.InsertRowGroupsInHierarchyAtCertainGroupsDepth(a,o,e);const u=a==x.a.Before?e.ParentGroup:e.ChildGroups.Get(0);yield this.InsertColumnAt(this.Corner,l,this.ColumnHeaderRowCount,s,0),this.Refresh(),yield c.MergeLineBack(),this.PerformLayout();const h=d.a.GetIndicesOfLeavesOfTableGroup(this.RowGroups,this.ColumnHeaderRowCount,e);yield d.a.InitDynamicGroup(u,t,r),this.SetHeaderLabelText(h.IndexOfFirstLeaf,l,F.GetDataField(u.ReportItem).toLowerCase()),yield this.AddHeaderFooterToRowGroup(u,i,n),this.SelectCellsInternal([this.CellAt(h.IndexOfFirstLeaf,l)])}))}GetNewRowGroupTargetColIndex(e,t){const r=e.ReportItem;if(r){const e=this.GetCell(r);return t==x.a.Before?e.ColIndex:e.ColIndex+e.ColSpan}{let t=e;for(;;){if(t.ReportItem){return this.GetCell(t.ReportItem).ColIndex}if(0==t.ChildGroups.Count)return this.RowHeaderColumnCount;t=t.ChildGroups.Get(0)}}}GetNewColGroupTargetRowIndex(e,t){const r=e.ReportItem;if(r){const e=this.GetCell(r);return t==x.a.Before?e.RowIndex:e.RowIndex+e.RowSpan}{let t=e;for(;;){if(t.ReportItem){return this.GetCell(t.ReportItem).RowIndex}if(0==t.ChildGroups.Count)return this.ColumnHeaderRowCount;t=t.ChildGroups.Get(0)}}}GetReferenceGroup(e){let t=this.GetSingleSelectedGroup(e);if(null==t)for(const e of this.GetSelectedCells()){if(null!=t)return null;t=this.FindColumnGroupForCell(e.RowIndex,e.ColIndex)}return t}GetSingleSelectedGroup(e){let t=null;for(let r=0;r<this.Rows.length;r++)for(let i=0;i<this.Columns.length;i++)if(this.IsCellSelected(this.CellAt(r,i))){const n=this.GetCellGroup(this.CellAt(r,i),e);if(null!=t&&n!=t)return null;t=n}return t}GetCellGroup(e,t){null!=e.MergeTarget&&(e=e.MergeTarget);return t?e.ColumnGroup:e.RowGroup}CleanupSelection(){for(let e=this.selectedCells.length-1;e>=0;e--)null==this.selectedCells[e].ToLayoutCell()&&this.selectedCells.splice(e,1)}RowIndexOfColumnGroup(e){let t=a.a.Zero;for(;null!=e.ParentGroup;)null!=(e=e.ParentGroup).ReportItem&&(t=t.Add(e.ReportItem.Height));let r=a.a.Zero;for(let e=0;e<this.ColumnHeaderRowCount;e++){if(r.IsEqual(t))return e;r=r.Add(this.rows[e].Size)}return this.ColumnHeaderRowCount}ColumnIndexOfRowGroup(e){let t=a.a.Zero;for(;null!=e.ParentGroup;)null!=(e=e.ParentGroup).ReportItem&&(t=t.Add(e.ReportItem.Width));let r=a.a.Zero;for(let e=0;e<this.RowHeaderColumnCount;e++){if(t.IsEqual(r))return e;r=r.Add(this.columns[e].Size)}return this.RowHeaderColumnCount}AddHeaderFooterToColumnGroup(e,t,r){return B(this,void 0,void 0,(function*(){if(null!=e&&e.ChildGroups.Count>0){const i=e.ChildGroups.Get(0),n=e.ChildGroups.Get(e.ChildGroups.Count-1);t&&(yield this.InsertBodyColumn(i,x.a.Before)),r&&(yield this.InsertBodyColumn(n,x.a.After))}}))}AddHeaderFooterToRowGroup(e,t,r){return B(this,void 0,void 0,(function*(){if(null!=e&&e.ChildGroups.Count>0){const i=e.ChildGroups.Get(0),n=e.ChildGroups.Get(e.ChildGroups.Count-1);t&&(yield this.InsertBodyRow(i,x.a.Before)),r&&(yield this.InsertBodyRow(n,x.a.After))}}))}CanInsertColumnBeforeOutsideGroup(){const e=this.GetFirstSelectedColumn();if(e<this.RowHeaderColumnCount){const t=this.GetSelectedRowGroups();for(let r=0;r<t.length;r++)if(e!=t[r].ColumnIndex)return!1;return t.length>0}{const t=this.GetSingleSelectedDynamicColumnGroup();if(null!=t&&e==this.GetColumnIndexOfFirstLeafGroup(t))return!0}return!1}CanInsertRowBeforeOutsideGroup(){const e=this.GetFirstSelectedRow();if(e<this.ColumnHeaderRowCount){const t=this.GetSelectedColumnGroups();for(let r=0;r<t.length;r++)if(e!=t[r].RowIndex)return!1;return t.length>0}{const t=this.GetSingleSelectedDynamicRowGroup();if(null!=t&&e==this.GetRowIndexOfFirstLeafGroup(t))return!0}return!1}CanInsertColumnAfterOutsideGroup(){const e=this.GetLastSelectedColumn();if(e>=this.RowHeaderColumnCount){const t=this.GetSingleSelectedDynamicColumnGroup();if(null!=t&&e==this.GetColumnIndexOfLastLeafGroup(t))return!0}return!1}CanInsertRowAfterOutsideGroup(){const e=this.GetLastSelectedRow();if(e>=this.ColumnHeaderRowCount){const t=this.GetSingleSelectedDynamicRowGroup();if(null!=t&&e==this.GetRowIndexOfLastLeafGroup(t))return!0}return!1}GetSelectedRowGroups(){return this.GetSelectedDynamicGroups(!1)}GetSelectedColumnGroups(){return this.GetSelectedDynamicGroups(!0)}GetSelectedDynamicGroups(e){const t=[];for(let r=0;r<this.Rows.length;r++)for(let i=0;i<this.Columns.length;i++)if(this.IsCellSelected(this.CellAt(r,i))){const n=F.GetFirstDynamicAncestor(this.CellAt(r,i),e);null==n||t.includes(n)||t.push(n)}return t}GetColumnIndexOfFirstLeafGroup(e){const t=this.GetColumnIndicesOfLeafMembers(e);return t?t.IndexOfFirstLeaf:-1}GetColumnIndexOfLastLeafGroup(e){const t=this.GetColumnIndicesOfLeafMembers(e);return t?t.IndexOfLastLeaf:-1}GetRowIndexOfFirstLeafGroup(e){const t=this.GetRowIndicesOfLeafMembers(e);return t?t.IndexOfFirstLeaf:-1}GetRowIndexOfLastLeafGroup(e){const t=this.GetRowIndicesOfLeafMembers(e);return t?t.IndexOfLastLeaf:-1}GetColumnIndicesOfLeafMembers(e){const t=d.a.GetIndicesOfLeavesOfTableGroup(this.ColumnGroups,0,e);return t&&(t.IndexOfFirstLeaf+=this.RowHeaderColumnCount,t.IndexOfLastLeaf+=this.RowHeaderColumnCount),t}GetRowIndicesOfLeafMembers(e){const t=d.a.GetIndicesOfLeavesOfTableGroup(this.RowGroups,0,e);return t&&(t.IndexOfFirstLeaf+=this.ColumnHeaderRowCount,t.IndexOfLastLeaf+=this.ColumnHeaderRowCount),t}CanMergeSelectedCells(){const e=new N.a(Number.MAX_VALUE,-1),t=new N.a(Number.MAX_VALUE,-1);return!!this.GetRectangularSelectionRange(e,t)&&this.CanMergeSelectedCellsCore(e.IndexOfFirstLeaf,e.IndexOfLastLeaf,t.IndexOfFirstLeaf,t.IndexOfLastLeaf)}GetRectangularSelectionRange(e,t){e.IndexOfFirstLeaf=Number.MAX_VALUE,t.IndexOfFirstLeaf=Number.MAX_VALUE,e.IndexOfLastLeaf=-1,t.IndexOfLastLeaf=-1;for(const r of this.GetSelectedCells())e.IndexOfFirstLeaf=Math.min(r.ColIndex,e.IndexOfFirstLeaf),t.IndexOfFirstLeaf=Math.min(r.RowIndex,t.IndexOfFirstLeaf),e.IndexOfLastLeaf=Math.max(r.ColIndex+r.ColSpan-1,e.IndexOfLastLeaf),t.IndexOfLastLeaf=Math.max(r.RowIndex+r.RowSpan-1,t.IndexOfLastLeaf);if(-1==e.IndexOfLastLeaf)return!1;for(let r=t.IndexOfFirstLeaf;r<=t.IndexOfLastLeaf;r++)for(let t=e.IndexOfFirstLeaf;t<=e.IndexOfLastLeaf;t++){const e=this.CellAt(r,t);if(!this.IsCellSelected(e))return!1}return!0}CanMergeSelectedCellsCore(e,t,r,i){let n=0,s=0,a=0;for(let i=e;i<=t;i+=Math.max(1,a))n++,a=this.CellAt(r,i).ColSpan;for(let t=r;t<=i;t+=Math.max(1,a))s++,a=this.CellAt(t,e).RowSpan;if(s<2&&n<2)return!1;const o=this.CellAt(r,e),l=this.CellAt(i,t);return this.IsCornerCell(o)?!!this.IsCornerCell(l)&&(!(n<=1)||s>1):this.IsBodyCell(o)?this.CanMergeBodyColumnCells(e,t)&&this.CanMergeBodyRowCells(r,i):this.IsRowHeaderCell(o)?this.CanMergeRowHeaderCells(e,t,r,i):!!this.IsColumnHeaderCell(o)&&this.CanMergeColumnHeaderCells(e,t,r,i)}CanMergeBodyColumnCells(e,t){const r=d.a.GetLeafGroups(this.ColumnGroups),i=d.a.FindDynamicAncestorOrSelf(r[e-this.RowHeaderColumnCount]);for(let n=e+1;n<=t;n++){if(i!=d.a.FindDynamicAncestorOrSelf(r[n-this.RowHeaderColumnCount]))return!1}return!0}CanMergeBodyRowCells(e,t){const r=d.a.GetLeafGroups(this.RowGroups),i=d.a.FindDynamicAncestorOrSelf(r[e-this.ColumnHeaderRowCount]);for(let n=e+1;n<=t;n++){if(i!=d.a.FindDynamicAncestorOrSelf(r[n-this.ColumnHeaderRowCount]))return!1}return!0}CanMergeRowHeaderCells(e,t,r,i){if(t>=this.RowHeaderColumnCount)return!1;let n=0,s=0;for(let i=e;i<=t;i+=this.CellAt(r,i).ColSpan)s++;for(let t=r;t<=i;t+=this.CellAt(t,e).RowSpan)n++;let a=null;if(1==n&&s>1){let i=null;for(let n=e;n<=t;n+=a.ColSpan){a=this.CellAt(r,n);const e=a.RowGroup;if(O.a.isDynamic(e)){if(null!=i)return!1;i=e}if(n+a.ColSpan-1<t&&1!=e.ChildGroups.Count)return!1}return!0}if(1!=s&&n<=1)return!1;{let t=null,n=null;for(let s=r;s<=i;s+=a.RowSpan){a=this.CellAt(s,e);const r=a.RowGroup;if(null==t)t=r.ParentGroup;else if(t!=r.ParentGroup)return!1;if(O.a.isDynamic(r)){if(null!=n)return!1;n=r}}}return!0}CanMergeColumnHeaderCells(e,t,r,i){if(i>=this.ColumnHeaderRowCount)return!1;let n=0,s=0;for(let i=e;i<=t;i+=this.CellAt(r,i).ColSpan)s++;for(let t=r;t<=i;t+=this.CellAt(t,e).RowSpan)n++;let a=null;if(1==s&&n>1){let t=null;for(let n=r;n<=i;n+=a.RowSpan){a=this.CellAt(n,e);const r=a.ColumnGroup;if(O.a.isDynamic(r)){if(null!=t)return!1;t=r}if(n+a.RowSpan<i&&1!=r.ChildGroups.Count)return!1}return!0}if(1!=n&&s<=1)return!1;{let i=null,n=null;for(let s=e;s<=t;s+=a.ColSpan){a=this.CellAt(r,s);const e=a.ColumnGroup;if(null==i)i=e.ParentGroup;else if(i!=e.ParentGroup)return!1;if(O.a.isDynamic(e)){if(null!=n)return!1;n=e}}}return!0}CanSplitSelectedCells(){let e=!1;for(const t of this.GetSelectedCells())if(e=t.RowSpan>1||t.ColSpan>1,e&&(this.IsRowHeaderCell(t)?e=this.CanSplitGroupHeaderCell(t,!1):this.IsColumnHeaderCell(t)&&(e=this.CanSplitGroupHeaderCell(t,!0))),!e)return!1;return e}CanSplitGroupHeaderCell(e,t){const r=t?e.ColumnGroup:e.RowGroup;return null!=r&&(r.ChildGroups.Count>1||(t?e.RowSpan>1:e.ColSpan>1))}GetNewRowGroupReferenceGroup(){let e=this.GetSingleSelectedDynamicRowGroup();if(null==e)for(const t of this.GetSelectedCells()){if(null!=e)return null;e=this.FindRowGroupForCell(t.RowIndex,t.ColIndex)}return e}GetNewColumnGroupReferenceGroup(){let e=this.GetSingleSelectedDynamicColumnGroup();if(null==e)for(const t of this.GetSelectedCells()){if(null!=e)return null;e=this.FindColumnGroupForCell(t.RowIndex,t.ColIndex)}return e}CanAddInnerColumnGroup(){const e=this.GetSingleSelectedDynamicColumnGroup();return null!=e&&!O.a.isDetail(e)}CanAddInnerRowGroup(){const e=this.GetSingleSelectedDynamicRowGroup();return null!=e&&!O.a.isDetail(e)}CanAddTotalRow(e){if(this.IsRowHeaderCell(e))return this.IsSingleCellSelected()&&null!=d.a.FindDynamicAncestorOrSelf(e.RowGroup);if(this.IsBodyCell(e)){let t=d.a.HasDynamicAncestor(this.RowGroups,e.RowIndex-this.ColumnHeaderRowCount),r=!1;for(const i of this.GetSelectedCells()){if(!this.IsBodyCell(i)){r=!1;break}i.RowIndex!=e.RowIndex&&(t=!1),r=r||this.CanAddSubtotal(i)}return r&&t}return!1}CanAddTotalColumn(e){if(this.IsColumnHeaderCell(e))return this.IsSingleCellSelected()&&null!=d.a.FindDynamicAncestorOrSelf(e.ColumnGroup);if(this.IsBodyCell(e)){let t=d.a.HasDynamicAncestor(this.ColumnGroups,e.ColIndex-this.RowHeaderColumnCount),r=!1;for(const i of this.GetSelectedCells()){if(!this.IsBodyCell(i)){r=!1;break}i.ColIndex!=e.ColIndex&&(t=!1),r=r||this.CanAddSubtotal(i)}return r&&t}return!1}IsSingleCellSelected(){return 1==this.selectedCells.length}CanAddSubtotal(e){const t=e.ReportItem;return t instanceof h.a&&!!this.GetAggregateExpression(t.Value)}GetAggregateExpression(e){if(!S.a.IsExpression(e))return"";if(S.a.IsAggregateExpression(e))return e;const t=S.a.GetFieldReference(e);return t&&S.a.IsNumericType(this.GetFieldType(t))?`=Sum(Fields.${t})`:""}MergeSelectedCells(){return B(this,void 0,void 0,(function*(){if(!this.CanMergeSelectedCells())return;this.SuspendLayout();const e=new N.a(0,0),t=new N.a(0,0);this.GetRectangularSelectionRange(e,t);const r=e.IndexOfLastLeaf-e.IndexOfFirstLeaf+1,i=t.IndexOfLastLeaf-t.IndexOfFirstLeaf+1,n=this.CellAt(t.IndexOfFirstLeaf,e.IndexOfFirstLeaf);this.IsRowHeaderCell(n)?yield this.MergeHeaderCells(!1,e.IndexOfFirstLeaf,t.IndexOfFirstLeaf,r,i):this.IsColumnHeaderCell(n)?yield this.MergeHeaderCells(!0,e.IndexOfFirstLeaf,t.IndexOfFirstLeaf,r,i):this.MergeCells(n,i,r),this.ResumeLayout(),this.PerformLayout(),this.selectionService.SetSelectedComponents([this.Table])}))}MergeHeaderCells(e,t,r,i,n){return B(this,void 0,void 0,(function*(){const s=r+n-1,a=t+i-1;let o=0,l=0;for(let e=t;e<=a;e+=this.CellAt(r,e).ColSpan)o++;for(let e=r;e<=s;e+=this.CellAt(e,t).RowSpan)l++;(e?1==o:1==l)?this.MergeHeaderCellsAlongHierarchy(e,t,r,i,n):yield this.MergeSiblingHeaderCells(e,t,r,i,n)}))}MergeHeaderCellsAlongHierarchy(e,t,r,i,n){const s=t+i-1,a=r+n-1;let o=null,l=null;e?(o=this.ColumnGroupAt(r,t),l=this.ColumnGroupAt(a,t)):(o=this.RowGroupAt(r,t),l=this.RowGroupAt(r,s));let c=o;for(;c!=l&&(!O.a.isDynamic(c)||null==c.ReportItem);)c=c.ChildGroups.Get(0);O.a.isDynamic(c)&&null!=c.ReportItem||(c=o);let d=o;for(;null!=d;){const t=d.ChildGroups.Count>0?d.ChildGroups.Get(0):null;if(d!=c){F.PromoteChildrenAndRemoveGroup(d);const t=d.ReportItem;null!=t&&(e?c.ReportItem.Height=c.ReportItem.Height.Add(t.Height):c.ReportItem.Width=c.ReportItem.Width.Add(t.Width)),this.DeleteComponent(d.ReportItem),d.ReportItem=null}if(d==l)break;d=t}if(e){const e=F.CalculateDistanceList(this.ColumnGroups,!0,!1);if(this.ColumnHeaderRowCount!=e.length)for(let e=a;e>=r+1;e--)this.DeleteCellsAtRow(this.Corner,e)}else{let e=F.CalculateDistanceList(this.RowGroups,!1,!1);if(this.RowHeaderColumnCount!=e.length)for(let e=s;e>=t+1;e--)this.DeleteCellsAtColumn(this.Corner,e)}}ColumnGroupAt(e,t){var r;const i=this.CellAt(e,t);return(null!==(r=i.MergeTarget)&&void 0!==r?r:i).ColumnGroup}RowGroupAt(e,t){var r;const i=this.CellAt(e,t);return(null!==(r=i.MergeTarget)&&void 0!==r?r:i).RowGroup}static PromoteChildrenAndRemoveGroup(e){const t=d.a.GetParentCollection(e),r=t.IndexOf(e);t.RemoveAt(r);for(let i=e.ChildGroups.Count-1;i>=0;i--){const n=e.ChildGroups.Get(i);e.ChildGroups.RemoveAt(i),t.Insert(r,n)}}MergeSiblingHeaderCells(e,t,r,i,n){return B(this,void 0,void 0,(function*(){const s=t+i-1,a=r+n-1,o=this.CellAt(r,t),l=e?o.ColumnGroup:o.RowGroup;let c=null;const u=[];if(e){let e=null;for(let i=t;i<=s;i+=e.ColSpan){e=this.CellAt(r,i);const t=e.ColumnGroup;u.push(t),O.a.isDynamic(t)&&(c=t)}}else{let e=null;for(let i=r;i<=a;i+=e.RowSpan){e=this.CellAt(i,t);const r=e.RowGroup;u.push(r),O.a.isDynamic(r)&&(c=r)}}null==c&&(c=l);const h=new d.a({},this.Table,this.provider);h.Name=this.CreateUniqueGroupName("Group"),yield h.Initialize();for(let e=c.ChildGroups.Count-1;e>=0;e--){const t=c.ChildGroups.Get(e);c.ChildGroups.RemoveAt(e),h.ChildGroups.Insert(0,t)}const p=u.indexOf(c);u[p]=h;for(let e=0;e<u.length;e++){const t=u[e],r=d.a.GetParentCollection(t);if(null!=r&&(r.Remove(t),this.DeleteComponent(t.ReportItem),t.ReportItem=null),t.ChildGroups.Count>0){const e=c.ChildGroups.Count;for(let r=t.ChildGroups.Count-1;r>=0;r--){const i=t.ChildGroups.Get(r);t.ChildGroups.RemoveAt(r),c.ChildGroups.Insert(e,i)}}else c.ChildGroups.Add(t)}}))}MergeCells(e,t,r){const i=this.IsCornerCell(e),n=i?this.Corner:this.Body,s=i?e.RowIndex:e.RowIndex-this.ColumnHeaderRowCount,a=i?e.ColIndex:e.ColIndex-this.RowHeaderColumnCount,o=n.Cells.FindAll(e=>s<=e.RowIndex&&e.RowIndex<s+t&&a<=e.ColumnIndex&&e.ColumnIndex<a+r),l=n.GetAt(s,a).ReportItem;for(let e=o.length-1;e>=0;e--){const t=o[e];null!=t.ReportItem&&t.ReportItem!=l&&(this.DeleteComponent(t.ReportItem),t.ReportItem=null),n.Cells.Remove(t),t.Dispose()}n.SetCellContentExtended(s,a,l,t,r)}SplitSelectedCells(){return B(this,void 0,void 0,(function*(){if(this.CanSplitSelectedCells()){this.SuspendLayout();try{for(const e of this.GetSelectedCells())this.IsRowHeaderCell(e)?yield this.SplitHeaderCell(e,!1):this.IsColumnHeaderCell(e)?yield this.SplitHeaderCell(e,!0):yield this.SplitCell(e)}finally{this.ResumeLayout(),this.PerformLayout()}}}))}SplitHeaderCell(e,t){return B(this,void 0,void 0,(function*(){const r=t?e.ColumnGroup:e.RowGroup;r.ChildGroups.Count>1?yield this.SplitGroupAcrossHierarchy(r,t,e):yield this.SplitGroupAlongHierarchy(r,t,e)}))}SplitGroupAcrossHierarchy(e,t,r){return B(this,void 0,void 0,(function*(){const i=r.ColIndex,n=r.RowIndex,a=this.columns[i].Size,o=this.rows[n].Size;let l=e;if(O.a.isDynamic(e)){const t=e.ReportItem;e.ReportItem=null,l=yield this.CreateNewStaticGroupUnder(e,t)}const c=d.a.GetParentCollection(l),u=c.IndexOf(l),h=[];for(let e=0;e<l.ChildGroups.Count;e++)h.push(l.ChildGroups.Get(e));for(let e=0;e<h.length;e++)if(0==e)t?l.ReportItem.Width=a:l.ReportItem.Height=o;else{const r=new s.a(l.ReportItem.Size.Width,l.ReportItem.Size.Height);t?r.SetWidth(this.columns[i+e].Size):r.SetHeight(this.rows[n+e].Size);const a=new d.a({},this.Table,this.provider);a.Name=this.CreateUniqueGroupName("Group"),yield a.Initialize(),a.ReportItem=yield this.CreateTextBox(),F.CopyStyle(l.ReportItem,a.ReportItem),a.ReportItem.Size=r,c.Insert(u+e,a);const o=h[e];l.ChildGroups.Remove(o),a.ChildGroups.Add(o)}}))}CreateNewStaticGroupUnder(e,t){return B(this,void 0,void 0,(function*(){const r=new d.a({},this.Table,this.provider);r.Name=this.CreateUniqueGroupName("Group"),yield r.Initialize(),r.ReportItem=t;for(const t of e.ChildGroups)r.ChildGroups.Add(t);return e.ChildGroups.Clear(),e.ChildGroups.Add(r),r}))}SplitCell(e){return B(this,void 0,void 0,(function*(){const t=this.IsCornerCell(e),r=t?this.Corner:this.Body,i=t?e.RowIndex:e.RowIndex-this.ColumnHeaderRowCount,n=t?e.ColIndex:e.ColIndex-this.RowHeaderColumnCount,o=r.GetAt(i,n),l=o.RowSpan,c=o.ColumnSpan,d=o.ReportItem;r.Cells.Remove(o),o.Dispose(),d.Size=new s.a(new a.a(0,d.Width.Type),new a.a(0,d.Height.Type)),r.SetCellContent(i,n,d);for(let e=0;e<l;e++)for(let t=0;t<c;t++)if(e>0||t>0){const s=yield this.CreateTextBox();F.CopyStyle(d,s),r.SetCellContent(i+e,n+t,s)}}))}SplitGroupAlongHierarchy(e,t,r){return B(this,void 0,void 0,(function*(){for(let i=(t?r.RowSpan:r.ColSpan)-1;i>=0;i--){let n=null;if(0==i)n=e.ReportItem;else{const t=yield this.CreateTextBox();n=(yield this.CreateNewStaticGroupUnder(e,t)).ReportItem,F.CopyStyle(e.ReportItem,n)}t?n.Height=this.Rows[r.RowIndex+i].Size:n.Width=this.Columns[r.ColIndex+i].Size}}))}RotateLayout(){this.SuspendLayout();const e=[],t=[],r=[],i=[],n=[],a=[];this.Table.ColumnGroups.MoveTo(e,0),this.Table.RowGroups.MoveTo(t,0),this.Table.Corner.Cells.MoveTo(r,0),this.Table.Body.Columns.MoveTo(i,0),this.Table.Body.Rows.MoveTo(n,0),this.Table.Body.Cells.MoveTo(a,0);for(const t of e)this.Table.RowGroups.Add(t);for(const e of t)this.Table.ColumnGroups.Add(e);for(const e of r)this.Table.Corner.SetCellContentExtended(e.ColumnIndex,e.RowIndex,e.ReportItem,e.ColumnSpan,e.RowSpan);for(const e of i){const t=new I.a({});t.Height=e.Width,this.Table.Body.Rows.Add(t)}for(const e of n){const t=new E.a({});t.Width=e.Height,this.Table.Body.Columns.Add(t)}for(const e of a)this.Table.Body.SetCellContentExtended(e.ColumnIndex,e.RowIndex,e.ReportItem,e.ColumnSpan,e.RowSpan);for(const e of this.Table.Children){const t=e;t.Size=new s.a(t.Height,t.Width)}this.ResumeLayout(),this.PerformLayout()}AddTotalForGroup(e,t,r){return B(this,void 0,void 0,(function*(){const i=d.a.FindDynamicAncestorOrSelf(e);if(null!=i){const e=r?this.ColumnGroups:this.RowGroups,n=d.a.GetLeafGroups(e),s=d.a.GetIndicesOfLeavesOfTableGroup(e,0,i),a=[],o=d.a.GetParentCollection(i);(yield this.AddTotalGroups(i,r,t,o,a,"Total"))&&(r?yield this.AddTotalBodyColumns(i,a,n,s.IndexOfFirstLeaf,s.IndexOfLastLeaf,t):yield this.AddTotalBodyRows(i,a,n,s.IndexOfFirstLeaf,s.IndexOfLastLeaf,t))}}))}AddTotalGroups(e,t,r,i,n,s){return B(this,void 0,void 0,(function*(){this.SuspendLayout();try{const a=yield this.NewGroupByReferenceGroup(e),o=a.ReportItem;o instanceof h.a&&(o.Value=s),null!=a.ReportItem&&(t?a.ReportItem.Height=e.ReportItem.Height:a.ReportItem.Width=e.ReportItem.Width);let l=d.a.GetParentCollection(e).IndexOf(e);if(r==x.a.After&&(l+=1),0<=l&&l<=i.Count?i.Insert(l,a):i.Add(a),d.a.IsLeafGroup(e))return n.push(e),!0;let c=!1;const u=O.a.isDynamic(e)&&null!=d.a.FindFirstDynamicDescendant(e.ChildGroups);for(const r of e.ChildGroups)if(!u||!d.a.IsStaticHierarchy(r)){const e=yield this.AddTotalGroups(r,t,x.a.After,a.ChildGroups,n,"");c=c||e}return c}finally{this.ResumeLayout()}}))}AddTotalBodyColumns(e,t,r,i,n,s){return B(this,void 0,void 0,(function*(){const a=[];for(let e=0;e<t.length;e++){const o=t[e],l=s==x.a.Before?Math.max(0,i+e):n+1+e,c=this.RowHeaderColumnCount+r.indexOf(o);yield this.InsertColumnAt(this.Body,l,this.bodyRowCount,c,this.ColumnHeaderRowCount);const d=new E.a({});d.Width=this.DefaultItemSize.Width,this.Table.Body.Columns.Insert(l,d),a.push(this.RowHeaderColumnCount+l)}this.PerformLayout(),r=d.a.GetLeafGroups(this.ColumnGroups);const o=this.RowIndexOfColumnGroup(e);for(let e=0;e<a.length;e++){const i=this.RowHeaderColumnCount+r.indexOf(t[e]),n=a[e];for(let e=o;e<this.Rows.length;e++){const t=this.CellAt(e,i);if(null==t.MergeTarget){const r=this.CellAt(e,n);this.IsColumnHeaderCell(t)&&O.a.isStatic(t.ColumnGroup)?this.CopyExpressionForSubtotalCell(t,r,!1):this.IsBodyCell(t)&&this.CopyExpressionForSubtotalCell(t,r,!0)}}}}))}AddTotalBodyRows(e,t,r,i,n,s){return B(this,void 0,void 0,(function*(){const a=[];for(let e=0;e<t.length;e++){const o=t[e],l=s==x.a.Before?Math.max(0,i+e):n+1+e,c=this.ColumnHeaderRowCount+r.indexOf(o);yield this.InsertRowAt(this.Body,l,this.bodyColumnCount,c,this.RowHeaderColumnCount);const d=new I.a({});d.Height=this.DefaultItemSize.Height,this.Table.Body.Rows.Insert(l,d),a.push(this.ColumnHeaderRowCount+l)}this.PerformLayout(),r=d.a.GetLeafGroups(this.RowGroups);const o=this.ColumnIndexOfRowGroup(e);for(let e=0;e<a.length;e++){const i=this.ColumnHeaderRowCount+r.indexOf(t[e]),n=a[e];for(let e=o;e<this.Columns.length;e++){const t=this.CellAt(i,e);if(null==t.MergeTarget){const r=this.CellAt(n,e);this.IsRowHeaderCell(t)&&O.a.isStatic(t.RowGroup)?this.CopyExpressionForSubtotalCell(t,r,!1):this.IsBodyCell(t)&&this.CopyExpressionForSubtotalCell(t,r,!0)}}}}))}CopyExpressionForSubtotalCell(e,t,r){const i=e.ReportItem,n=t.ReportItem;if(i instanceof h.a&&n instanceof h.a){let e=i.Value;r&&(e=this.GetAggregateExpression(e)),e&&(n.Value=e,n.Format=i.Format)}}AddTotalRowAfterBodyCell(){return B(this,void 0,void 0,(function*(){const e=this.GetSelectedBodyCells();if(0==e.length)return;const t=F.GetFirstDynamicAncestor(e[0],!1);if(null==t)return;const r=new N.a(-1,-1);this.CanReuseSubtotalRow(t,x.a.After,e,r)||(r.IndexOfFirstLeaf=yield this.InsertBodyRow(t,x.a.After));for(let i=this.ColumnIndexOfRowGroup(t);i<this.RowHeaderColumnCount;i++){const t=this.CellAt(e[0].RowIndex,i);null==t.MergeTarget&&O.a.isStatic(t.RowGroup)&&this.CopyExpressionForSubtotalCell(t,this.CellAt(r.IndexOfFirstLeaf,i),!1)}for(let t=0;t<e.length;t++){const i=this.CellAt(e[t].RowIndex,e[t].ColIndex),n=this.CellAt(r.IndexOfFirstLeaf,i.ColIndex);i.ColSpan>1&&i.ColSpan!=n.ColSpan&&this.MergeCells(n,1,i.ColSpan-n.ColSpan+1),this.CopyExpressionForSubtotalCell(i,n,!0)}const i=this.CellAt(r.IndexOfFirstLeaf,this.ColumnIndexOfRowGroup(t));if(this.IsRowHeaderCell(i)){const e=i.ReportItem;e instanceof h.a&&(e.Value="Total")}this.PerformLayout()}))}AddTotalColumnAfterBodyCell(){return B(this,void 0,void 0,(function*(){const e=this.GetSelectedBodyCells();if(0==e.length)return;const t=F.GetFirstDynamicAncestor(e[0],!0);if(null==t)return;const r=new N.a(-1,-1);this.CanReuseSubtotalColumn(t,x.a.After,e,r)||(r.IndexOfFirstLeaf=yield this.InsertBodyColumn(t,x.a.After));for(let i=this.RowIndexOfColumnGroup(t);i<this.ColumnHeaderRowCount;i++){const t=this.CellAt(i,e[0].ColIndex);null==t.MergeTarget&&O.a.isStatic(t.ColumnGroup)&&this.CopyExpressionForSubtotalCell(t,this.CellAt(i,r.IndexOfFirstLeaf),!1)}for(let t=0;t<e.length;t++){const i=this.CellAt(e[t].RowIndex,e[t].ColIndex),n=this.CellAt(i.RowIndex,r.IndexOfFirstLeaf);this.CopyExpressionForSubtotalCell(i,n,!0)}const i=this.CellAt(this.RowIndexOfColumnGroup(t),r.IndexOfFirstLeaf);if(this.IsColumnHeaderCell(i)){const e=i.ReportItem;e instanceof h.a&&(e.Value="Total")}this.PerformLayout()}))}GetSelectedBodyCells(){const e=[];for(let t=this.ColumnHeaderRowCount;t<this.Rows.length;t++)for(let r=this.RowHeaderColumnCount;r<this.Columns.length;r++){const i=this.CellAt(t,r);null==i.MergeTarget&&this.IsCellSelected(i)&&e.push(i)}return e}CanReuseSubtotalRow(e,t,r,i){i.IndexOfFirstLeaf=-1;let n=null;const s=d.a.GetParentCollection(e);let a=s.IndexOf(e);if(a=t==x.a.Before?a-1:a+1,0<=a&&a<s.Count&&(n=s.Get(a)),null==n)return!1;if(!this.IsStaticRowColumn(n))return!1;const o=d.a.GetIndicesOfLeavesOfTableGroup(this.RowGroups,0,e),l=x.a.Before==t?this.ColumnHeaderRowCount+o.IndexOfFirstLeaf-1:this.ColumnHeaderRowCount+o.IndexOfLastLeaf+1;if(l<0||l>this.Rows.length)return!1;for(let e=this.ColumnIndexOfRowGroup(n);e<this.RowHeaderColumnCount;e++){const t=this.CellAt(l,e);if(null!=t.MergeTarget)return!1;if(t.RowSpan>1||t.ColSpan>1)return!1;if(!(t.ReportItem instanceof h.a))return!1}for(let e=0;e<r.length;e++){const t=r[e];if(null==t.MergeTarget){const e=this.CellAt(l,t.ColIndex);if(null!=e.MergeTarget)return!1;if(e.RowSpan>1)return!1;if(e.ColSpan>1&&e.ColSpan!=t.ColSpan)return!1;if(!(e.ReportItem instanceof h.a))return!1;if(e.ReportItem.Value)return!1}}return i.IndexOfFirstLeaf=l,!0}CanReuseSubtotalColumn(e,t,r,i){i.IndexOfFirstLeaf=-1;let n=null;const s=d.a.GetParentCollection(e);let a=s.IndexOf(e);if(a=t==x.a.Before?a-1:a+1,0<=a&&a<s.Count&&(n=s.Get(a)),null==n)return!1;if(!this.IsStaticRowColumn(n))return!1;const o=d.a.GetIndicesOfLeavesOfTableGroup(this.ColumnGroups,0,e),l=x.a.Before==t?this.RowHeaderColumnCount+o.IndexOfFirstLeaf-1:this.RowHeaderColumnCount+o.IndexOfLastLeaf+1;if(l<0||l>this.Columns.length)return!1;for(let e=this.RowIndexOfColumnGroup(n);e<this.ColumnHeaderRowCount;e++){const t=this.CellAt(e,l);if(null!=t.MergeTarget)return!1;if(t.RowSpan>1||t.ColSpan>1)return!1;if(!(t.ReportItem instanceof h.a))return!1}for(let e=0;e<r.length;e++){const t=r[e];if(null==t.MergeTarget){const e=this.CellAt(t.RowIndex,l);if(null!=e.MergeTarget)return!1;if(e.RowSpan>1)return!1;if(e.ColSpan>1)return!1;if(!(e.ReportItem instanceof h.a))return!1;if(e.ReportItem.Value)return!1}}return i.IndexOfFirstLeaf=l,!0}IsStaticRowColumn(e){return!O.a.isDynamic(e)&&(!(e.ChildGroups.Count>1)&&(0==e.ChildGroups.Count||this.IsStaticRowColumn(e.ChildGroups.Get(0))))}}class A{constructor(e,t){this.layout=e,this.Item=t}ToLayoutCell(){const e=this.layout.cells.get(this.Item);return e||null}static FromLayoutCell(e){return null!=e.MergeTarget&&(e=e.MergeTarget),new A(e.TableLayout,e.ReportItem)}Equals(e){return e.Item===this.Item}}class V{constructor(e){this.exercisedCells=[],this.layout=e}SplitRowHeaderColumn(e){return B(this,void 0,void 0,(function*(){if(e<this.layout.RowHeaderColumnCount){for(let t=this.layout.ColumnHeaderRowCount;t<this.layout.Rows.length;){const r=this.layout.CellAt(t,e),i=r.MergeTarget;if(null!=i){if(t+=i.RowSpan,i.ColSpan>1){const e=new _(i,this.layout);yield e.Split(),e.ChangeLine(0,1),this.exercisedCells.push(e)}}else t+=r.RowSpan}this.exercisedCells.length>0&&this.layout.Refresh()}}))}SplitColumnHeaderRow(e){return B(this,void 0,void 0,(function*(){if(e<this.layout.ColumnHeaderRowCount){for(let t=this.layout.RowHeaderColumnCount;t<this.layout.Columns.length;){const r=this.layout.CellAt(e,t),i=r.MergeTarget;if(null!=i){if(t+=i.ColSpan,i.RowSpan>1){const e=new W(i,this.layout);yield e.Split(),e.ChangeLine(1,0),this.exercisedCells.push(e)}}else t+=r.ColSpan}this.exercisedCells.length>0&&this.layout.Refresh()}}))}MergeLineBack(){return B(this,void 0,void 0,(function*(){for(let e=0;e<this.exercisedCells.length;e++){const t=this.exercisedCells[e];yield t.MergeBack()}}))}}class L{constructor(e,t){this.target=e,this.layout=t,this.rowIndex=e.RowIndex,this.colIndex=e.ColIndex,this.rowSpan=e.RowSpan,this.colSpan=e.ColSpan}ChangeLine(e,t){this.rowSpan+=e,this.colSpan+=t}}class _ extends L{constructor(e,t){super(e,t)}Split(){return B(this,void 0,void 0,(function*(){yield this.layout.SplitHeaderCell(this.target,!1);if(this.colSpan>1&&this.rowSpan>1){this.layout.Refresh();for(let e=this.rowIndex;e<this.rowIndex+this.rowSpan;e++)yield this.layout.SplitHeaderCell(this.layout.CellAt(e,this.colIndex),!1)}}))}MergeBack(){return B(this,void 0,void 0,(function*(){if(this.rowSpan>1){for(let e=this.rowIndex;e<this.rowIndex+this.rowSpan;e++)yield this.layout.MergeHeaderCells(!1,this.colIndex,e,this.colSpan,1);this.layout.Refresh()}yield this.layout.MergeHeaderCells(!1,this.colIndex,this.rowIndex,this.colSpan,this.rowSpan)}))}}class W extends L{constructor(e,t){super(e,t)}Split(){return B(this,void 0,void 0,(function*(){yield this.layout.SplitHeaderCell(this.target,!0);if(this.colSpan>1&&this.rowSpan>1){this.layout.Refresh();for(let e=this.colIndex;e<this.colIndex+this.colSpan;e++)yield this.layout.SplitHeaderCell(this.layout.CellAt(this.rowIndex,e),!0)}}))}MergeBack(){return B(this,void 0,void 0,(function*(){if(this.colSpan>1){for(let e=this.colIndex;e<this.colIndex+this.colSpan;e++)yield this.layout.MergeHeaderCells(!0,e,this.rowIndex,1,this.rowSpan);this.layout.Refresh()}yield this.layout.MergeHeaderCells(!0,this.colIndex,this.rowIndex,this.colSpan,this.rowSpan)}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static SplitName(e){const t=e.split(/(?=[A-Z])/);return t.length>1?`${t[0]} ${t[1]}`.trim():t[0].trim()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(5),n=r(88),s=r(238);class a{constructor(e,t,r){this.tableLayout=e,this.RowIndex=t,this.ColIndex=r,this.rowSpan=0,this.colSpan=0,this.mergeTarget=null,this.ReportItem=null,this.RowGroup=null,this.ColumnGroup=null,this.bounds=s.a.Empty,this.disposed=!1}get RowSpan(){return this.rowSpan}get ColSpan(){return this.colSpan}get TableLayout(){return this.tableLayout}get Row(){return this.TableLayout.Rows[this.RowIndex]}get Column(){return this.TableLayout.Columns[this.ColIndex]}get Bounds(){return this.bounds}SetBounds(e){if(!this.bounds.Equals(e)&&(this.bounds=e,null===this.mergeTarget&&null!==this.ReportItem)){const e=this.bounds.Size;this.ReportItem.Size.Equals(e)||(this.ReportItem.Size=e)}}get MergeTarget(){return this.mergeTarget}get IsOrphaned(){return this.disposed}Dispose(){try{this.tableLayout=null,this.mergeTarget=null,this.ReportItem=null}finally{this.disposed=!0}}Merge(e,t){this.rowSpan=e,this.colSpan=t;for(let r=0;r<e;r++)for(let e=0;e<t;e++){const t=this.TableLayout.CellAt(this.RowIndex+r,this.ColIndex+e);t.mergeTarget=t!==this?this:null}}GetMinWidth(){return null!==this.mergeTarget?i.a.Zero:n.a.MinSize.Multiply(Math.max(1,this.ColSpan))}GetMinHeight(){return null!==this.mergeTarget?i.a.Zero:n.a.MinSize.Multiply(Math.max(1,this.RowSpan))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static get Replace(){return"Replace"}static get Append(){return"Append"}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var i=r(9),n=r(812),s=r(813),a=r(814),o=r(815),l=r(454),c=r(817),d=r(818),u=r(13),h=r(46);class p{constructor(e,t){this.tableDesigner=e,this.tableLayout=t,this.tableContextMenuBehavior=new n.a(this.tableDesigner.Provider),this.tableHeaderHandleBehavior=new s.a(this.tableLayout.selectionService,this.tableContextMenuBehavior),this.tableResizeBehavior=new a.a(e),this.glyphList=new m([new l.a(c.a,this.tableHeaderHandleBehavior,this.tableDesigner),new l.a(d.a,this.tableResizeBehavior,this.tableDesigner),new l.a(o.a,this.tableContextMenuBehavior,this.tableDesigner)],()=>this.$glyphVisualElement),this.tableLayout.LayoutRefreshed.subscribe(()=>{this.disposeGlyphs()});this.tableDesigner.Provider.getService(u.b).on(h.b,e=>{const t=e.detail.component;if(this.tableDesigner.Component===t){this.disposeGlyphs();const e=this.tableLayout.selectionService.GetSelectedComponents();this.onSelectionChanged(e)}})}init(){this.tableDesigner.Overlay.VisualElement.append(this.getRootContainerTemplate()),this.$glyphVisualElement=this.tableDesigner.Overlay.VisualElement.find("."+i.a.TableGlyphs)}redrawGlyphs(){this.disposeGlyphs(),this.drawGlyphs()}onSelectionChanged(e){const t=e.some(e=>e.Parent===this.tableDesigner.Component||e===this.tableDesigner.Component);t?(t&&0===this.glyphList.length&&this.drawGlyphs(),this.glyphList.selectionChanged(e)):this.disposeGlyphs()}Dispose(){this.disposeGlyphs(),this.$glyphVisualElement.remove()}disposeGlyphs(){this.glyphList.Dispose()}drawGlyphs(){this.glyphList.create()}getRootContainerTemplate(){return`<div tabindex="0" class="twd-overlay ${i.a.TableGlyphs}" data-component-header="${this.tableDesigner.Component.NameAsAttributeSafeString}"></div>`}}class m{constructor(e,t){this.glyphBuilders=e,this.visualContainer=t,this.glyphs=[],this.glyphContainers=[]}create(){this.glyphBuilders.forEach(e=>{this.visualContainer().append(this.getGlyphContainerTemplate(e.glyphBaseClass.getClassName()));const t=this.visualContainer().children().last();this.glyphContainers.push(t),this.glyphs.push(...e.create(t))})}Dispose(){this.glyphs.length>0&&(this.glyphs.forEach(e=>e.Dispose()),this.glyphs=[],this.glyphContainers.forEach(e=>e.remove()))}selectionChanged(e){this.glyphs.forEach(t=>t.SelectionChanged(e))}get length(){return this.glyphs.length}getGlyphContainerTemplate(e){return`<div tabindex="0" class="${e}"></div>`}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r(279),n=r(331),s=r(16),a=r(9),o=r(185),l=r(186),c=r(42),d=r(250);class u extends i.a{constructor(e){super(),this.provider=e,this.selectionService=e.getService(s.a)}getInheritedClass(){return u}OnClick(e,t){var r;this.selectionService.SetSelectedComponents(t.ComponentReportItems);const i=t.ComponentReportItems[0],s=new(null!==(r=class{static createComponentContextMenu(e){return e instanceof l.a?d.b:e instanceof o.a?d.c:null}}.createComponentContextMenu(i))&&void 0!==r?r:n.a.getComponentContextMenuType(i))(t.VisualElement,"",i,this.provider);return s.init().then(()=>s.widget.open(t.VisualElement)),!0}OnMouseEnter(e,t){return this.getGlyphVisualElement(t).show(),!0}OnMouseLeave(e,t){return this.getGlyphVisualElement(t).hide(),!0}getGlyphVisualElement(e){var t,r=$("."+a.a.TableContextMenuGlyph).children();if(e.Component instanceof c.a)return r.filter(".-glyph-corner");e.Component instanceof l.a?t=r.filter(".-glyph-column"):e.Component instanceof o.a&&(t=r.filter(".-glyph-row"));return t.filter(`[index="${e.Component.Index}"]`)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(279);class n extends i.a{constructor(e,t){super(),this.selectionService=e,this.tableContextMenuBehavior=t}getInheritedClass(){return n}OnClick(e,t){return this.selectionService.SelectMultiple(e.ctrlKey,t.ComponentReportItems,!0),!0}OnMouseEnter(e,t){return this.tableContextMenuBehavior.OnMouseEnter(e,t)}OnMouseLeave(e,t){return this.tableContextMenuBehavior.OnMouseLeave(e,t)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var i=r(279),n=r(185),s=r(186),a=r(5),o=r(30),l=r(88),c=r(9),d=r(3),u=r(16);class h extends i.a{constructor(e){super(),this.tableDesigner=e,this.designerHost=this.tableDesigner.Provider.getServiceByName(d.a.IDesignerHost),this.selectionService=this.tableDesigner.Provider.getService(u.a)}getInheritedClass(){return h}OnMouseDown(e,t){e.preventDefault(),e.stopImmediatePropagation();const r="."+c.a.WebDesignerCanvasClassName,i=l.a.MinSize.ToPixels(),d=e.clientX,u=e.clientY,h=t.ComponentReportItems[0],p=t.Component,m=p.Size;return this.designerHost.HasActiveResizeOperation=!0,$("html").on("mouseup.resize",e=>{e.preventDefault(),e.stopImmediatePropagation(),h.Designer.Resize(h.Designer.GetAbsoluteBounds()),$("html").off("mouseup.resize"),$(r).off("mousemove.resize"),this.designerHost.HasActiveResizeOperation=!1,this.selectionService.ReapplySelection()}),$(r).on("mousemove.resize",e=>{var r;e.preventDefault(),e.stopImmediatePropagation(),t.Component instanceof n.a?r=e.clientY-u:t.Component instanceof s.a&&(r=e.clientX-d);var l=m.ToPixels()+r;l=l<=i?i:l,p.SetSize(new a.a(l,o.a.Pixel),!0),this.tableDesigner.Redraw(!0)}),!0}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(280),n=r(9);class s extends i.a{SelectionChanged(e){}getTemplate(){return`<span class="twd-glyph k-icon k-i-more-horizontal ${this.getGlyphModifierClass()}"></span>`}static getGlyphTypes(){return{corner:a,column:o,row:l}}static getClassName(){return n.a.TableContextMenuGlyph}}class a extends s{getGlyphModifierClass(){return"-glyph-corner"}calculateBounds(e){return e.Width=10,e.Height=10,e.Top+=3,e.Left+=2,e}}class o extends s{getGlyphModifierClass(){return"-glyph-column"}calculateBounds(e){return e.Top+=3,e.Left+=e.Width-16,e.Width=10,e.Height=10,e}}class l extends s{getGlyphModifierClass(){return"-glyph-row"}calculateBounds(e){return e.Width=10,e.Height=10,e.Top+=3,e.Left+=2,e}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(399);class n extends i.a{constructor(e){super(e),this.eventListenerNames=[]}get VisualElement(){return this.visualElement}setupHandledEventListeners(){this.Behavior.getImplementationEventMap().forEach((e,t)=>{this.visualElement.on(e,e=>this.Behavior[t](e,this)),this.eventListenerNames.push(e)})}Dispose(){this.eventListenerNames.forEach(e=>this.visualElement.off(e)),this.visualElement.remove()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(280),n=r(9);class s extends i.a{SelectionChanged(e){const t=this.ComponentReportItems.every(t=>e.includes(t));this.visualElement.toggleClass(this.selectedGlyphClassname,t)}getTemplate(){return`<div class="twd-glyph ${this.getGlyphModifierClass()}"></div>`}static getGlyphTypes(){return{corner:a,column:o,row:l}}static getClassName(){return n.a.TableHeaderHandleGlyph}}class a extends s{getGlyphModifierClass(){return"-glyph-corner"}calculateBounds(e){return e.Width+=1,e.Height+=1,e}}class o extends s{getGlyphModifierClass(){return"-glyph-column"}calculateBounds(e){return e.Width+=1,e.Left-=.5,e}}class l extends s{getGlyphModifierClass(){return"-glyph-row"}calculateBounds(e){return e.Height+=1,e.Top-=.5,e}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(280),n=r(9);class s extends i.a{getTemplate(){return`<div class="twd-glyph ${this.getGlyphModifierClass()}"></div>`}SelectionChanged(e){}static getGlyphTypes(){return{corner:void 0,column:a,row:o}}static getClassName(){return n.a.TableResizeGlyph}}class a extends s{getGlyphModifierClass(){return"-glyph-column"}calculateBounds(e){return e.Left=e.Left+e.Width-5,e.Width=10,e}}class o extends s{getGlyphModifierClass(){return"-glyph-row"}calculateBounds(e){return e.Top=e.Top+e.Height-5,e.Height=10,e}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(42),n=r(1),s=r(0),a=r(210);class o extends a.a{constructor(e,t){super(e,t),this.editMode=!1}InitializeNewComponent(e){super.InitializeNewComponent(e),this.initDefaultProperty(this.Component.getPropertyWrapper(s.a.Value),n.a.String,e.get(s.a.Name))}SnapLines(){return super.SnapLines()}CreateVisualElement(){this.propertyStore=this.Component.PropertyStore;const e=`<div class="${this.ClassName} -textbox">\n                            <div class="components__content">\n                              <span></span>\n                              <textarea spellcheck="false">${this.propertyStore[s.a.Value]}</textarea>\n                            </div>\n                          </div>`,t=$.parseHTML(e);return $(t)}Render(e){super.Render(e),this.$editableElement=this.VisualElement.find("textarea"),this.$valueHolderElement=this.VisualElement.find("span"),this.VisualElement.off("focusout keydown").on("keydown","textarea",e=>{const t=this.$editableElement.val();13===e.which&&this.edit(t)}).on("focusout","textarea",e=>{const t=this.$editableElement.val();this.edit(t)});const t=this.getDisplayText();return this.$valueHolderElement.text(t),this.Overlay.VisualElement.off("dblclick").on("dblclick",e=>{this.Overlay.Disable(),this.$editableElement.show().focus(),this.$editableElement.val(this.propertyStore[s.a.Value]),this.editMode=!0}),this.VisualElement}Redraw(e=!1){super.Redraw(e);const t=this.getDisplayText();this.$valueHolderElement.text(t)}OnResizeStart(){this.editMode&&this.edit(this.$editableElement.val())}edit(e){e!==this.$valueHolderElement.html()&&(this.$valueHolderElement.text(e),this.Component.getPropertyWrapper(s.a.Value).SetValue(e)),this.$editableElement.hide(),this.Overlay.Enable(),this.editMode=!1}getDisplayText(){let e=`<${this.propertyStore[s.a.Name]}>`;this.component.Parent instanceof i.a&&(e="");let t=this.propertyStore[s.a.Value]||e;return t.startsWith("=")&&(t=`[${t}]`),t}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(141);class n extends i.a{CreateVisualElement(){const e=this.getDisplayText(),t=`<div class="${this.ClassName} -toclevel">\n                            <div class="components__content">${e}</div>\n                          </div>`,r=$.parseHTML(t);return $(r)}Render(e){return super.Render(e),this.Resizable.HideHandlers(),this.VisualElement}InitializeOverlay(){this.Overlay.Initialize(!1,!1,!1)}Redraw(e=!1){super.Redraw(e);const t=this.getDisplayText();this.VisualElementContent.html(t)}getDisplayText(){const e=this.Component;return`${e.NameAsJQueryAndHtmlSafeString} ${e.LeaderSymbol.repeat(10)} 1`}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(0),n=r(162),s=r(822),a=r(3);class o extends n.a{OnComponentChanged(e){if(e.propertyDescriptor.Name===i.a.Position){if(this.Provider.getServiceByName(a.a.IDesignerHost).IsLoaded){this.report.sortSections();const e=this.VisualElement.parent();this.VisualElement.detach(),this.AttachToParent(e,this.VisualElement)}}super.OnComponentChanged(e)}Render(e){return super.Render(e),this.renderTitle(this.Component),this.renderDefaultLevel(this.Component),this.VisualElement}InitializeOverlay(){this.Overlay.Initialize(!1,!0,!0)}renderTitle(e){const t=this.buildHtmlElement(e.Title,e.TitleStyle);this.VisualElementContent.prepend(t)}renderDefaultLevel(e){if(!e.Levels||0===e.Levels.length){const e=this.buildHtmlElement("Default TOC Level .......... 1",null);this.VisualElementContent.append(e)}}buildHtmlElement(e,t){const r=new s.a(t),i=`<div>${e}</div>`,n=$.parseHTML(i);$(n).css(r.ContentStyles);const a=$.parseHTML("<div></div>"),o=$(a);return o.css(r.Styles),o.append(n),o}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(45),n=r(5),s=r(30),a=r(0),o=r(89);class l{constructor(e){this.stylePropertyStore=e,this.styles={},this.contentStyles={},this.addStyles()}get Styles(){return this.styles}get ContentStyles(){return this.contentStyles}addStyles(){const e=this.getBorderPx();this.stylePropertyStore&&(this.addTextDeclarations(),this.addFontDeclarations(),this.addBorderDeclarations(),this.addBackgroundDeclarations(),this.addPaddingDeclarations(e))}addTextDeclarations(){const e=this.stylePropertyStore[a.a.TextIndent];if(e){const t=n.a.Parse(e);this.addDeclaration("text-indent",t.ToUnit(s.a.Pixel).ToString())}}addFontDeclarations(){const e=this.stylePropertyStore[a.a.Color];this.addContentDeclaration("color",o.a.ToHexColor(e));const t=this.stylePropertyStore[a.a.Font]||{},r=t[a.a.Name];this.addContentDeclaration("font-family",r);const i=t[a.a.Size];this.addContentDeclaration("font-size",i);const n=t[a.a.Italic];n&&"true"===n.toLowerCase()&&this.addContentDeclaration("font-style","italic");const s=t[a.a.Bold];s&&"true"===s.toLowerCase()&&this.addContentDeclaration("font-weight","bold");let l="";const c=t[a.a.Underline];c&&"true"===c.toLowerCase()&&(l+="underline");const d=t[a.a.Strikeout];d&&"true"===d.toLowerCase()&&(l+=" line-through"),""!==l&&this.addContentDeclaration("text-decoration",l.trim());const u=this.stylePropertyStore[a.a.VerticalAlign];let h=!1;if("Top"!==u){let e="baseline";switch(u){case"Middle":e="center";break;case"Bottom":e="flex-end"}this.addContentDeclaration("display","flex"),this.addContentDeclaration("align-items",e),h=!0}let p="start",m="flex-start";switch(this.stylePropertyStore[a.a.TextAlign]){case"Right":p="end",m="flex-end";break;case"Center":p="center",m="center";break;case"Justify":p="justify"}this.addContentDeclaration("text-align",p),h&&this.addContentDeclaration("justify-content",m)}addBorderDeclarations(){const e=this.stylePropertyStore[a.a.BorderStyle]||{},t=this.stylePropertyStore[a.a.BorderWidth]||{},r=this.stylePropertyStore[a.a.BorderColor]||{},i=e[a.a.Left],s=e[a.a.Top],l=e[a.a.Right],c=e[a.a.Bottom],d=n.a.Parse(t[a.a.Left]||"0px"),u=n.a.Parse(t[a.a.Top]||"0px"),h=n.a.Parse(t[a.a.Right]||"0px"),p=n.a.Parse(t[a.a.Bottom]||"0px"),m=r[a.a.Left]||"Transparent",g=r[a.a.Top]||"Transparent",f=r[a.a.Right]||"Transparent",v=r[a.a.Bottom]||"Transparent";i&&"None"!==i&&d.ToPixels()>.5&&this.addDeclaration("border-left",`${d.ToString()} ${String(i).toLowerCase()} ${o.a.ToHexColor(m)||""}`),s&&"None"!==s&&u.ToPixels()>.5&&this.addDeclaration("border-top",`${u.ToString()} ${String(s).toLowerCase()} ${o.a.ToHexColor(g)||""}`),l&&"None"!==l&&h.ToPixels()>.5&&this.addDeclaration("border-right",`${h.ToString()} ${String(l).toLowerCase()} ${o.a.ToHexColor(f)||""}`),c&&"None"!==c&&p.ToPixels()>.5&&this.addDeclaration("border-bottom",`${p.ToString()} ${String(c).toLowerCase()} ${o.a.ToHexColor(v)||""}`)}addBackgroundDeclarations(){const e=this.stylePropertyStore[a.a.BackgroundColor]||"Transparent",t=this.ToCssRgbaColor(e);this.addDeclaration("background-color",t);const r=this.stylePropertyStore[a.a.BackgroundImage];if(r){const e=r[a.a.ImageData];if(e){const t=`url('data:${r[a.a.MimeType]};base64,${e}')`;this.addDeclaration("background-image",t);const i=r[a.a.Repeat];i&&("Repeat"===i&&this.addDeclaration("background-repeat","repeat"),"NoRepeat"===i&&this.addDeclaration("background-repeat","no-repeat"),"RepeatX"===i&&this.addDeclaration("background-repeat","repeat-x"),"RepeatY"===i&&this.addDeclaration("background-repeat","repeat-y"))}}}ToCssRgbaColor(e){return`rgba( ${o.a.ToRgbaColor(e)} )`}addPaddingDeclarations(e){const t=this.getPadding(!0,!0,!0,!0);this.addContentDeclaration("padding-left",Math.max(0,t.Left)),this.addContentDeclaration("padding-top",Math.max(0,t.Top)),this.addContentDeclaration("padding-right",Math.max(0,t.Width)),this.addContentDeclaration("padding-bottom",Math.max(0,t.Height)),this.addContentDeclaration("top",-e.Top/2),this.addContentDeclaration("left",-e.Left/2),this.addContentDeclaration("right",-e.Right/2),this.addContentDeclaration("bottom",-e.Bottom/2)}getBorderPx(){const e={Left:0,Top:0,Right:0,Bottom:0};if(!this.stylePropertyStore)return e;const t=this.stylePropertyStore[a.a.BorderStyle]||{},r=this.stylePropertyStore[a.a.BorderWidth]||{},i=t[a.a.Left],s=r[a.a.Left];i&&s&&"None"!==i&&(e.Left=n.a.Parse(s).ToPixels());const o=t[a.a.Top],l=r[a.a.Top];o&&l&&"None"!==o&&(e.Top=n.a.Parse(l).ToPixels());const c=t[a.a.Right],d=r[a.a.Right];c&&d&&"None"!==c&&(e.Right=n.a.Parse(d).ToPixels());const u=t[a.a.Bottom],h=r[a.a.Bottom];return u&&h&&"None"!==u&&(e.Bottom=n.a.Parse(h).ToPixels()),e}getPadding(e,t,r,n){const s=i.a.Empty,o=this.stylePropertyStore;if(!o)return s;const l=o[a.a.Padding];return l&&(e&&(s.X=this.getSinglePadding(l,a.a.Left)),t&&(s.Y=this.getSinglePadding(l,a.a.Top)),r&&(s.Width=this.getSinglePadding(l,a.a.Right)),n&&(s.Height=this.getSinglePadding(l,a.a.Bottom))),s}getSinglePadding(e,t){let r=0;const i=e[t];return i&&(r=n.a.Parse(i).ToPixels()),r}addDeclaration(e,t){void 0!==t&&(this.styles[e]=t)}addContentDeclaration(e,t){void 0!==t&&(this.contentStyles[e]=t)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(161),n=r(0),s=r(3),a=r(1),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l extends i.a{PropertiesThatUpdateDataModel(){return[...super.PropertiesThatUpdateDataModel(),n.a.Source,n.a.ServiceUrl]}Initialize(){return o(this,void 0,void 0,(function*(){const e=this.Provider.getServiceByName(s.a.ITypeDescriptorRepository),t=yield e.GetComponentTypeDescriptor(this.Component.Type);t.CreateProperty(n.a.ParameterValues,a.a.String,l.setParameterValue,!1),t.CreateProperty(n.a.AuthParameterValues,a.a.String,l.setParameterValue,!1)}))}static setParameterValue(e,t,r,i){}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e){this.PaperKind=e.paperKind,this.Width=e.width,this.Height=e.height}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(128),n=r(10),s=r(2),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends n.a{constructor(){super(...arguments),this.borderModeChanged=new n.b,this.borderMode=i.a}beforeInit(){super.beforeInit(),this.State=i.a.group}get State(){return this.getByPropertyName(e=>{e.state})}set State(e){this.setByPropertyName(e=>{e.state},e),this.borderModeChanged.next({borderMode:e})}getTemplate(){return this.templates.Editors.editorModeSwitcherComponentTemplate}isGroupMode(){return this.State===i.a.group}isSeparatedMode(){return this.State===i.a.separated}switchToGroupMode(){this.State=i.a.group}switchToSeparatedMode(){this.State=i.a.separated}};o=a([Object(s.a)("editor-mode-switcher")],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r(2),n=r(169),s=r(0),a=r(3),o=r(187),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},c=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let d=class extends n.b{loadEditors(e){super.loadEditors(e),e.addClass("binding-editor-window-component");const t=this.stringResources.getString(s.a.Path),r=this.childEditors.find(e=>{var r;return(null===(r=e)||void 0===r?void 0:r.title)===t});r.enableAddingItem(),this.loadBindingPaths(r)}orderProperties(e){const t=[...e];return t.reverse(),t}getComponentType(e){return e[s.a.Name]===s.a.Path?n.a:super.getComponentType(e)}loadBindingPaths(e){return c(this,void 0,void 0,(function*(){const t=yield this.getAvailablePaths();t&&e.setDataSource(t)}))}getAvailablePaths(){return c(this,void 0,void 0,(function*(){const e=this.provider.getServiceByName(a.a.ISchemaService),t=this.provider.getServiceByName(a.a.IDesignerHost).RootComponent.PropertyStore[s.a.SchemaKey];let r=this._$injectedInputData.component;const i=r.Name;return r instanceof o.a&&(r=r.Parent),yield e.getBindingAvailablePaths(i,r.PropertyStore,t)}))}};d=l([Object(i.a)("binding-editor-window")],d);class u extends n.c{get component(){return d}getWindowDimensions(){return{minWidth:340,minHeight:215,width:425,height:215}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(2),n=r(169),s=r(4),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends n.b{get Value(){return this.getByPropertyName(e=>{e.value})}set Value(e){this.setByPropertyName(e=>{e.value},e),this._$injectedInputData.item.Value=e}get additionalEditorTemplate(){return'<color-picker data-wrd-component\n                  valueChanging="valueChanged"\n                  isResetVisible="isResetVisible"\n                  localizedName="localizedName"\n                  editorDepth="editorDepth"\n                  Value="value">\n                </color-picker>'}get localizedName(){return s.b.getPropertyName(()=>{this._$injectedInputData.item.Value})}get isResetVisible(){return!1}get editorDepth(){return 0}afterInit(){super.afterInit(),this.Value=this._$injectedInputData.item.Value}loadEditors(e){}valueChanged(e){this.Value=e}};o=a([Object(i.a)("color-collection-editor-window")],o);class l extends n.c{get component(){return o}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{constructor(e,t){this.newValue=e,this.cancel=t}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(49),n=r(2),s=r(7),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{get Value(){return this.getByPropertyName(e=>{e.value})}set Value(e){this.setByPropertyName(e=>{e.value},e)}get isResettable(){return!0}get isResetVisible(){return!1}updateStateUi(){}getTemplate(){return this.templates.Editors.iconCheckEditorComponentTemplate}refreshValue(){this.setValueFromPropertyWrapper()}setPropertyWrapperValue(){this.propertyWrapper.SetValue(this.Value.toString()),this.resetManager.checkAndUpdateReset()}beforeInit(){super.beforeInit(),this.refreshValue()}setValueFromPropertyWrapper(){const e=this.propertyWrapper.GetValue();this.Value=this.getValueFromPropertyWrapperValue(e)}getValueFromPropertyWrapperValue(e){return"string"==typeof e?"true"===e.toLowerCase():e}};o=a([Object(n.a)("icon-check-editor"),Object(s.a)()],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(10),n=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class s{constructor(e,t){this.input=e,this.uploadFile=t,this.filesToUpload=[],this.filesToUploadChanged=new i.b,this.fileSuccessfullyUploaded=new i.b,this.fileFailedToUpload=new i.b,this.abortController=new AbortController}get FilesToUpload(){return[...this.filesToUpload]}setFilesToUpload(e){this.filesToUpload=e,this.filesToUploadChanged.next(e)}refresh(){this.setFilesToUpload(Array.from(this.input.files)),this.input.value=null}update(e){this.input.files=e,this.refresh()}removeFile(e){this.setFilesToUpload(this.filesToUpload.filter(t=>t.name!==e.name))}removeFiles(e){e.forEach(e=>this.removeFile(e))}tryUploadFiles(){return n(this,void 0,void 0,(function*(){const e={failed:[],successful:[]};for(let t of this.filesToUpload)try{yield this.tryUploadFile(t,e)}catch(e){if("AbortError"===e.name)return null;throw e}return this.filesToUpload=[],e}))}Dispose(){this.abortController.abort()}tryUploadFile(e,t){return n(this,void 0,void 0,(function*(){return this.abortController.signal.aborted?Promise.reject(new DOMException("Aborted","AbortError")):((yield this.uploadFile(e)).applyOnSuccess(()=>{t.successful.push(e),this.fileSuccessfullyUploaded.next(e)}).applyOnError(r=>{const i={file:e,errorMessage:r.serverStatusMessage};t.failed.push(i),this.fileFailedToUpload.next(i)}),Promise.resolve())}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(10);class n{constructor(e){this.$dropZoneElement=e,this.filesDropped=new i.b}Dispose(){this.disposeDropZone()}init(){$("html").on("dragover",e=>{e.preventDefault(),e.stopPropagation()}),$("html").on("drop",e=>{e.preventDefault(),e.stopPropagation()}),this.$dropZoneElement.on("dragenter",e=>{e.stopPropagation(),e.preventDefault(),this.toggleFileHoverDropzone(!0)}),this.$dropZoneElement.on("dragleave",e=>{e.stopPropagation(),e.preventDefault(),this.toggleFileHoverDropzone(!1)}),this.$dropZoneElement.on("drop",e=>{e.stopPropagation(),e.preventDefault(),this.filesDropped.next({event:e}),this.toggleFileHoverDropzone(!1)})}toggleFileHoverDropzone(e){e?(this.$dropZoneElement.css("backgroundColor","rgb(221,221,221)"),this.$dropZoneElement.css("borderColor","rgb(128,128,128)")):(this.$dropZoneElement.css("backgroundColor","rgb(247, 247, 247)"),this.$dropZoneElement.css("borderColor","rgb(202,202,202)"))}disposeDropZone(){$("html").off("dragover"),$("html").off("drop"),this.$dropZoneElement.off("dragenter"),this.$dropZoneElement.off("dragleave"),this.$dropZoneElement.off("drop")}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(114);class n extends i.a{get FilesToUpload(){return this.getByPropertyName(e=>{e.filesToUpload})}set FilesToUpload(e){this.setByPropertyName(e=>{e.filesToUpload},e),this.setFilesToUploadLength(e.length)}get FilesToUploadLength(){return this.getByPropertyName(e=>{e.filesToUploadLength})}setFilesToUploadLength(e){e===this.FilesToUploadLength?this.triggerChangeByPropertyName(e=>{e.filesToUploadLength}):this.setByPropertyName(e=>{e.filesToUploadLength},e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(114);class n extends i.a{constructor(e){super(),this.file=e,this.statusText="",this.hasSetStatus=!1}get HasSetStatus(){return this.getByPropertyName(e=>{e.hasSetStatus})}setHasSetStatus(e){this.setByPropertyName(e=>{e.hasSetStatus},e)}get IsSuccess(){return this.getByPropertyName(e=>{e.isSuccess})}setIsSuccess(e){this.setByPropertyName(e=>{e.isSuccess},e)}get IsError(){return!this.IsSuccess&&this.HasSetStatus}get StatusText(){return this.getByPropertyName(e=>{e.statusText})}setStatusText(e){this.setByPropertyName(e=>{e.statusText},e)}updateStatus(e,t=""){this.setIsSuccess(e),this.setStatusText(t),this.setHasSetStatus(!0)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(81),n=r(59),s=r(54),a=r(2),o=r(7),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let c=class extends i.a{getTemplate(){return s.a.Editors.InputEditors.inputEditorTemplate}get isResetVisible(){return!1}setLocalizedName(e){(null==e?void 0:e.length)&&(e+=". "),e+="This property cannot be edited in the current version of WebReportDesigner.",super.setLocalizedName(e)}afterInit(){this.State=this.State|n.b.ReadOnly}initializeValueInBeforeInit(){}initValue(e){this.Value=this.beautifyObject(e)}prepareValueForPropertyWrapper(e){return e}getValueForInput(e){return e}beautifyObject(e){return e&&"object"==typeof e?JSON.stringify(e).replace(/\"/gm,"").replace(/NetType\:/gm,""):e}};c=l([Object(o.a)(),Object(a.a)("unknown-object-editor")],c)},function(e,t,r){"use strict";r.d(t,"a",(function(){return D}));var i=r(23),n=r(35),s=r(5),a=r(336),o=r(340),l=r(1),c=r(0),d=r(3),u=r(53),h=r(13),p=r(57),m=r(127),g=r(40),f=r(16),v=r(54),y=r(116),S=r(117),C=r(416),b=r(75),w=r(27),P=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class D extends y.a{constructor(e,t){super(e,t),this.templates=v.a,this.uriResolver=C.a.createReportUriResolver(this.Provider),this.selectionService=this.Provider.getService(f.a),this.webDesignerEventEmitter=this.Provider.getService(h.c),this.dsEventsElement=this.Provider.getServiceByName(d.a.DesignSurfaceEventsElement),this.onSelectionChangingBound=this.onSelectionChanging.bind(this),this.onSelectionChangedBound=this.onSelectionChanged.bind(this)}CreateVisualElement(){const e=`<div class="${this.ClassName} twd-book">\n                            <div class="components__content">\n                                <div class="book__section -nocontent">\n                                    <div class="book__indent">\n                                         <span class="k-icon k-i-toc-section"></span>\n                                    </div>\n                                    <div class="book__content">\n                                        <div class="book__action">\n                                            <a class="book__browse book__browse__toc">${this.stringResources.Browse}</a>\n                                            <span>${this.stringResources.ForTOC}</span>\n                                        </div>\n                                        <div class="book__list -toc-list"></div>\n                                    </div>\n                                </div>\n                                <div class="book__section -nocontent">\n                                    <div class="book__indent">\n                                         <span class="k-icon k-i-subreport"></span>\n                                    </div>\n                                    <div class="book__content">\n                                        <div class="book__action">\n                                            <a class="book__browse book__browse__report">${this.stringResources.Browse}</a>\n                                            <span>${this.stringResources.ForReports}</span>\n                                        </div>\n                                        <div class="book__list -reports-list"></div>\n                                        <span>${this.stringResources.ToChangeTheOrder}</span>\n                                    </div>\n                                </div>\n                            </div>\n                          </div>`,t=$.parseHTML(e);return $(t)}get ReportBook(){return this.Component}CalculateMinSize(){return new n.a(new s.a(800),new s.a(800))}GetSize(){return new i.a(544,800)}removeToc(e,t){e.stopPropagation();const r=this.Provider.getServiceByName(d.a.IDesignerHost).CreateTransaction("Delete TOC report");try{this.removeTocCore(),r.Commit();const e=this.Component.getPropertyWrapper(c.a.TocReportSource);this.component.raiseComponentChanged(e.Property,{},{}),this.updatePropertiesState()}catch(e){r.Rollback()}}removeTocCore(){const e=this.Provider.getService(g.a),t=this.Component.TocReportSource[c.a.Name];e.UnregisterName(t),delete this.Component.PropertyStore[c.a.TocReportSource]}removeReport(e,t){e.stopPropagation();const r=this.Provider.getServiceByName(d.a.IDesignerHost).CreateTransaction("Delete report");try{const e=t.closest(".book__list-item"),i=this.reportsKendoListBox.dataItem(e),n=this.reportsKendoListBox.dataSource.indexOf(i);this.removeReportCore(n),r.Commit();const s=this.Component.getPropertyWrapper(c.a.ReportSources);this.component.raiseComponentChanged(s.Property,{},{})}catch(e){r.Rollback()}}removeReportCore(e){const t=this.Provider.getService(g.a),r=this.Component.PropertyStore[c.a.ReportSources],i=r[e][c.a.Name];t.UnregisterName(i);this.Component.ReportSources.splice(e,1),r.splice(e,1)}browseReport(e,t){e.stopPropagation();const r=w.a.String(this.stringResources.SelectItem,{item:this.stringResources.Report}),i=new m.a(this.Provider).create(r,{initialPath:p.a.reportsFolder,forReportSelection:!0,assetManagerConfig:b.a.getSelectReportConfig(this.Provider)});i.component.onClosing.subscribe(e=>P(this,void 0,void 0,(function*(){const t=this.Component.getPropertyWrapper(c.a.ReportSources),r={NetType:"UriReportSource",Uri:this.uriResolver.resolveUri(e.path),Name:this.Provider.getService(g.a).CreateName("UriReportSource")};t.GetValue().push(r),t.SetValue([...t.GetValue()]),this.component.raiseComponentChanged(t.Property,{},{});const i=this.Provider.getServiceByName("IDesignerHost"),n=yield i.CreateComponent("UriReportSource",r,this.ReportBook,!1);this.ReportBook.ReportSources.push(n),this.renderLists(this.ReportBook)}))),i.open()}browseToc(e,t){e.stopPropagation();const r=w.a.String(this.stringResources.SelectItem,{item:this.stringResources.TocReportSource}),i=new m.a(this.Provider).create(r,{initialPath:p.a.reportsFolder,forReportSelection:!0,assetManagerConfig:b.a.getSelectReportConfig(this.Provider)});i.component.onClosing.subscribe(e=>P(this,void 0,void 0,(function*(){const t=this.Component.getPropertyWrapper(c.a.TocReportSource),r={NetType:"UriReportSource",Uri:this.uriResolver.resolveUri(e.path),Name:this.Provider.getService(g.a).CreateName("UriReportSource")};this.ReportBook.TocReportSource=r,t.SetValue(r),this.component.raiseComponentChanged(t.Property,{},{}),this.renderLists(this.ReportBook)}))),i.open()}Render(e){return super.Render(e),this.renderLists(this.ReportBook),this.VisualElement.off("mousedown",".remove-report-button").on("mousedown",".remove-toc-button",e=>{e.stopImmediatePropagation(),e.preventDefault(),this.removeToc(e,$(e.currentTarget))}),this.VisualElement.off("mousedown",".remove-report-button").on("mousedown",".remove-report-button",e=>{e.stopImmediatePropagation(),e.preventDefault(),this.removeReport(e,$(e.currentTarget))}),this.VisualElement.off("mousedown",".book__browse__toc").on("mousedown",".book__browse__toc",e=>{e.stopImmediatePropagation(),e.preventDefault(),this.browseToc(e,$(e.currentTarget))}),this.VisualElement.off("mousedown",".book__browse__report").on("mousedown",".book__browse__report",e=>{e.stopImmediatePropagation(),e.preventDefault(),this.browseReport(e,$(e.currentTarget))}),this.Resizable.HideHandlers(),this.VisualElement}initReportsSource(e){const t=e.map((e,t)=>{let r=this.stringResources.UnsupportedReportSource;return e instanceof a.a&&(r=e.Uri||this.stringResources.UriIsRequired),e instanceof o.a&&(r=this.getXmlReportName(e.Xml)||this.stringResources.XmlIsRequired),{id:t,name:r,title:this.stringResources.RemoveItem}});return new kendo.data.DataSource({data:t})}initTocSource(e){if(!e)return new kendo.data.DataSource({});let t,r=[];return e[c.a.NetType]===l.a.UriReportSource&&(t=e[c.a.Uri]||this.stringResources.UriIsRequired,r.push({id:0,name:t,title:this.stringResources.RemoveItem})),e[c.a.NetType]===l.a.XmlReportSource&&(t=this.getXmlReportName(e[c.a.Xml])||this.stringResources.XmlIsRequired,r.push({id:0,name:t,title:this.stringResources.RemoveItem})),new kendo.data.DataSource({data:r})}onReorder(e){e.preventDefault();const t=this.Provider.getServiceByName(d.a.IDesignerHost).CreateTransaction("Reorder items");try{const r=e.sender.dataSource,i=e.dataItems[0],n=r.indexOf(i),s=r.indexOf(i)+e.offset;r.remove(i),r.insert(s,i);const a=this.Component,o=a.ReportSources[n];a.ReportSources.splice(n,1),a.ReportSources.splice(s,0,o);const l=a.PropertyStore[c.a.ReportSources],d=l[n];l.splice(n,1),l.splice(s,0,d),t.Commit();const u=this.Component.getPropertyWrapper(c.a.ReportSources);this.component.raiseComponentChanged(u.Property,{},{})}catch(e){t.Rollback()}this.updatePropertiesState()}updatePropertiesState(){this.Provider.getService(f.a).ReapplySelection()}toggleListContentClass(e,t,r){t()?(e.addClass(r),e.removeClass("-nocontent")):(e.addClass("-nocontent"),e.removeClass(r))}toggleReportsClass(e,t){this.toggleListContentClass(t,()=>e.length>0,"-hasreports")}toggleTocClass(e,t){this.toggleListContentClass(t,()=>!!e,"-hastoc")}renderReportsList(e){const t=this.VisualElement.find(".-reports-list"),r=e.ReportSources,i=this.initReportsSource(r);if(r){this.reportsKendoListBox=t.kendoListBox({template:kendo.template(this.getReportsListBoxItemTemplate()),draggable:{enabled:!0,hint:this.getHintElement,placeholder:this.getPlaceholderElement},dragstart:e=>$(e.items[0]).hide(),drag:e=>this.onDrag(e),dragend:e=>$(e.items[0]).show(),dataSource:i,reorder:this.onReorder.bind(this)}).data("kendoListBox");const e=this.VisualElement.find(".book__section").last();this.toggleReportsClass(r,e)}}onDrag(e){0===$(e.draggableEvent.elementUnderCursor).parents(".-reports-list").length?$(e.items[0]).show().removeClass("k-ghost"):$(e.items[0]).hide().addClass("k-ghost")}getHintElement(e){const t=e.find(".book__list-item").show();return $("<div class='twd-book-dragged-item'></div>").append(e.html()).width(t.innerWidth()).height(t.innerHeight())}getPlaceholderElement(e){return e.clone().addClass("twd-book-dragged-placeholder").show()}renderTocList(e){const t=this.VisualElement.find(".-toc-list"),r=e.TocReportSource;t.kendoListBox({template:kendo.template(this.getTocListBoxItemTemplate()),dataSource:this.initTocSource(r)}).data("kendoListBox");const i=this.VisualElement.find(".book__section").first();this.toggleTocClass(r,i)}renderLists(e){this.renderTocList(e),this.renderReportsList(e)}Destroy(){this.webDesignerEventEmitter.off(u.b,this.onSelectionChangingBound),this.webDesignerEventEmitter.off(u.a,this.onSelectionChangedBound)}onSelectionChanging(e){this.toggleInteractivity(this.selectionService.GetSelectedComponents(),!1)}onSelectionChanged(e){const t=this.selectionService.GetSelectedComponents();this.updateSelectionUI(t),this.toggleInteractivity(t,!0)}toggleInteractivity(e,t){for(const r of e){r.Designer.ToggleInteractivity(t)}}updateSelectionUI(e){$(this.dsEventsElement).find(".selected-designer").removeClass("selected-designer");for(const t of e){$('[data-component-selection="'+t.NameAsJQueryAndHtmlSafeString+'"]').addClass("selected-designer")}}OnComponentChanged(e){[c.a.ReportSources,c.a.TocReportSource,c.a.Xml,c.a.Uri].includes(e.propertyDescriptor.Name)&&this.renderLists(this.ReportBook),super.OnComponentChanged(e)}createCssBuilder(){this.cssBuilder=new S.a(this.Component,!1)}getXmlReportName(e){if(e){const t=new RegExp(' Name="([^"]*)',"g").exec(e);if(t&&t.length>1)return t[1]}return null}getReportsListBoxItemTemplate(){return this.templates.Designers.reportBookDesignerReportsListBoxItemTemplate}getTocListBoxItemTemplate(){return this.templates.Designers.reportBookDesignerTocListBoxItemTemplate}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var i=r(35),n=r(5),s=r(116),a=r(25),o=r(0),l=r(247),c=r(203),d=r(16),u=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class h extends s.a{CalculateMinSize(){return new i.a(new n.a(0),new n.a(0))}GetContextMenuCommands(){return[a.a.Delete]}OnComponentChanged(e){return u(this,void 0,void 0,(function*(){if(e.component!==this.Component||e.propertyDescriptor.Name!==o.a.Path)return;yield this.Component.updateDataSourceReference();const t=new l.a({[o.a.Name]:o.a.DataModel,[o.a.Type]:c.a.name},this.Provider,null);this.component.raiseComponentChanged(t,e.oldValue,e.newValue),this.Provider.getService(d.a).ReapplySelection()}))}Redraw(){}ToggleInteractivity(e){}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var i=r(23),n=r(35),s=r(5),a=r(0),o=r(74),l=r(16),c=r(116),d=r(13),u=r(46),h=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class p extends c.a{Initialize(){return h(this,void 0,void 0,(function*(){this.textAreaElement=this.VisualElement.find("textarea#dsDescription"),this.textAreaElement.off("keyup").on("keyup",e=>this.handleDescriptionChange(e)),this.VisualElement.find("button#wizardEdit").kendoButton({click:e=>{this.editDataSourceInWizard()}}),this.designSurfaceEventEmitter=this.Provider.getService(d.b),this.designSurfaceEventEmitter.on(u.b,e=>this.handleComponentChanged(e.detail.component))}))}Dispose(){this.designSurfaceEventEmitter.off(u.b,e=>this.handleComponentChanged(e.detail.component)),this.textAreaElement.off("keyup"),super.Dispose()}CreateVisualElement(){return $(this.getTemplate())}get DataSourceDescription(){return this.component.DataSourceReference.PropertyWrappers.find(e=>e.Property.Name===a.a.Description).GetValue()}set DataSourceDescription(e){this.component.DataSourceReference.PropertyWrappers.find(e=>e.Property.Name===a.a.Description).SetValue(e)}CalculateMinSize(){return new n.a(new s.a(800),new s.a(800))}GetSize(){return new i.a(544,800)}Redraw(){const{typeName:e,description:t}=this.getDsDescriptionAndType();this.VisualElement.find("#dsTypeName").val(e),this.textAreaElement.val(t)}handleComponentChanged(e){this.component.DataSourceReference===e&&this.Redraw()}editDataSourceInWizard(){return h(this,void 0,void 0,(function*(){const e=new o.b(this.Provider,this.component.DataSourceReference.getWizardComponentClass()).create({component:this.component.DataSourceReference});yield e.open()}))}handleDescriptionChange(e){const t=this.textAreaElement.val();this.DataSourceDescription!==t&&(this.DataSourceDescription=this.textAreaElement.val(),this.adjustDescriptionTextAreaHeight(),this.Provider.getService(l.a).ReapplySelection())}adjustDescriptionTextAreaHeight(){this.textAreaElement.height("1px");const e=this.textAreaElement[0].scrollHeight-8;this.textAreaElement.height(e+"px"),e>150?this.textAreaElement.css("overflow-y","scroll"):this.textAreaElement.css("overflow-y","hidden")}getTemplate(){const e=this.component.PropertyStore[a.a.Path],{typeName:t,description:r}=this.getDsDescriptionAndType();return`\n        <div class="${this.ClassName} twd-shared-datasource">\n            <div class="components__content">\n                <div>\n                    <div class="section">\n                        <div><label>Type</label></div>\n                        <div><span id="dsTypeName">${t}</span></div>\n                    </div>\n                    <div class="section">\n                        <div><label>${this.stringResources.Description}</label></div>\n                        <div><textarea wrap="hard" class="k-textarea k-input k-input-md k-rounded-md" id="dsDescription">${null!=r?r:""}</textarea></div>\n                    </div>\n                    <div class="section">\n                        <div><label>Location</label></div>\n                        <div><input type="text" id="locationEditor" class="k-input" value="/${e}" disabled /></div>\n                    </div>\n                    <div class="section">\n                        <div><button class="openWizard k-primary k-button-solid-primary" id="wizardEdit">Configure</button></div>\n                    </div>\n                </div>\n            </div>\n        </div>`}getDsDescriptionAndType(){const e=this.stringResources,t=this.component.PropertyStore[a.a.DataSourceReference];return{typeName:e[t.NetType],description:t[a.a.Description]}}ToggleInteractivity(e){}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(1),n=r(34);class s extends n.a{}s.typeName=i.a.LinearGaugeTicks},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(19),n=r(13),s=r(53),a=r(202),o=r(4),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let c=class extends i.a{constructor(e){super(),this.provider=e,this.updateUi=new a.a,this.webDesignerEventEmitter=this.provider.getService(n.c),this.webDesignerEventEmitter.on(s.a,()=>this.webDesignerEventEmitter.emit(this.updateUi))}};c.getServiceName=()=>"UiService",c=l([Object(o.e)()],c)},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class n{constructor(e){this.commonApiUrl=e.ServerUrl,this.reportDesignerApiUrl=e.ServiceUrl,this.version=e.ReportServerLayout?"v2/":""}GetDbProviders(){return i(this,void 0,void 0,(function*(){const e=yield fetch(`${this.commonApiUrl}${this.version}dataconnectionproviders`,{method:"GET"});return yield e.json()}))}GetConnectionStrings(){return i(this,void 0,void 0,(function*(){const e=yield fetch(`${this.commonApiUrl}${this.version}dataconnections`,{method:"GET"}),t=yield e.json(),r=[];for(const e of t)r.push({Name:e.Name,Provider:e.Provider,ConnectionString:e.ConnectionString});return r}))}TestConnection(e){return i(this,void 0,void 0,(function*(){return(yield fetch(`${this.commonApiUrl}${this.version}data/sql/connection/supported`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).text()}))}ConnectionsPermissions(){return i(this,void 0,void 0,(function*(){const e=yield fetch(this.commonApiUrl+"connectionspermissions",{method:"GET"});return yield e.json()}))}AddConnectionString(e){return i(this,void 0,void 0,(function*(){return(yield fetch(`${this.commonApiUrl}${this.version}dataconnections`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).status}))}GetStoredProcedures(e){return i(this,void 0,void 0,(function*(){const t=yield fetch(`${this.commonApiUrl}${this.version}data/sql/procedures/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return yield t.json()}))}GetParameters(e){return i(this,void 0,void 0,(function*(){const t=yield fetch(`${this.commonApiUrl}${this.version}data/sql/parameters`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),r=yield t.json();return null!=r?r:[]}))}GetPreviewData(e){return i(this,void 0,void 0,(function*(){return yield fetch(`${this.commonApiUrl}${this.version}data/sql/preview`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}))}GetDataModel(e){return i(this,void 0,void 0,(function*(){return yield fetch(this.reportDesignerApiUrl+"data/model",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(842),n=r(1),s=r(4),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o{constructor(e){this.provider=e}GetComponentTypeDescriptor(e){return a(this,void 0,void 0,(function*(){return this.resolveRecursively(e)}))}GetPropertyTypeDescriptor(e){return this[e]}resolveRecursively(e){return a(this,void 0,void 0,(function*(){let t=this[e];if(!t){if(this[e]=t=yield this.getTypeDescriptorCore(e),t.typeSchema.Type!==n.a.Enum){const e=t.GetProperties();yield Promise.all(e.filter(e=>e.Browsable).map(e=>a(this,void 0,void 0,(function*(){const t=[e.Type,...e.InstanceTypes].filter(e=>s.b.isReportingType(e));for(const e of t)yield this.resolveRecursively(e)}))))}const r=t.InstanceTypes;if(r)for(const e of r)yield this.resolveRecursively(e)}return t}))}getTypeDescriptorCore(e){return a(this,void 0,void 0,(function*(){const t=new i.a(e,this.provider);return yield t.InitTypeSchema(),t}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(0),n=r(3),s=r(247),a=r(843),o=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class l{constructor(e,t){this.provider=t,this.TypeName=e,this.schemaService=this.provider.getServiceByName(n.a.ISchemaService),this.properties=null,this.typeSchema=null,this.instanceTypes=null}InitTypeSchema(){return o(this,void 0,void 0,(function*(){this.typeSchema=yield this.schemaService.getTypeSchema(this.TypeName),this.properties=this.getPropertiesCore()}))}GetProperty(e){return this.getPropertyCore(e)}GetProperties(){return this.properties}get InstanceTypes(){if(!this.instanceTypes){const e=this.typeSchema[i.a.InstanceTypes];e&&(this.instanceTypes=e.split(";"))}return this.instanceTypes}GetEnumValues(){return this.enumValues||(this.enumValues=this.getEnumValuesCore())}CreateProperty(e,t,r,i=!0){this.properties.find(t=>t.Name==e)||this.properties.push(new s.a({Name:e,Type:t,Browsable:i},this.provider,r))}getEnumValuesCore(){const e=[];return this.typeSchema[i.a.Properties].forEach(t=>e.push({Name:t[i.a.Name],Description:t[i.a.Description]})),e}getPropertyCore(e){return this.properties.find(t=>t.Name===e)}getPropertiesCore(){const e=[],t=this.typeSchema[i.a.Properties];if(t)for(let r=0;r<t.length;r++){const n=t[r];n[i.a.Name]!==i.a.Culture&&e.push(new s.a(n,this.provider,a.a.Definitions[n[i.a.Name]]))}return e}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r(40),n=r(3),s=r(0),a=r(226),o=r(140),l=r(4),c=r(335),d=r(29);class u{static get Definitions(){return{[s.a.Name]:u.updateNameExtension,[s.a.FieldSeparators]:u.validateCsvFieldSeparators,[s.a.RecordSeparators]:u.validateCsvRecordSeparators}}static updateNameExtension(e,t,r,n){if(e instanceof c.a)return;const s=e.Provider,l=s.getService(i.a);if(!n)throw new d.a("'Name' cannot be empty.",s);if(e instanceof a.a&&!u.isValidIdentifier(n))throw new d.a("The Report Parameter name can start with a letter or with an underscore. The next characters after the first one can be only letters or digits.",s);if(l.NameExists(n))throw new d.a(`Name '${n}' already exists.`,s);l.UnregisterName(r),l.RegisterName(n),e instanceof o.a&&u.updateDataSourceNames(r,n,e),u.updateActionTargetNames(r,n,e)}static validateCsvFieldSeparators(e,t,r,i){const n=[",",";","\t"," "];if(!u.areValidSeparators(n,i))throw new d.a(`The allowed field separators characters are "${n.join("")}" plus only one custom character.`,e.Provider)}static validateCsvRecordSeparators(e,t,r,i){const n=["\r","\n",";"];if(!u.areValidSeparators(n,i))throw new d.a(`The allowed record separators characters are "${n.join("")}" plus only one custom character.`,e.Provider)}static areValidSeparators(e,t){let r=null;if(!t)return!0;for(const i of t)if(!e.includes(i)){if(r)return!1;r=i}return!0}static isValidIdentifier(e){return RegExp(/^[a-zA-Z_][a-zA-Z0-9]+$/,"gi").test(e)}static updateDataSourceNames(e,t,r){const i=r.Provider.getServiceByName(n.a.IDesignerHost);for(const r of i.Components){const i=r;i&&i.DataSourceName===e&&(i.DataSourceName=t)}}static updateActionTargetNames(e,t,r){for(const i of r.Provider.getServiceByName(n.a.IDesignerHost).Components){const r=i.getProperty(s.a.Action);if(r){const n=r.GetValue(i,i.PropertyStore);if(n){const r=n[s.a.Targets];if(l.b.isIterable(r))for(const i of r)i.ItemName===e&&(i.ItemName=t)}}}}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(211),n=r(419),s=r(275),a=r(213);class o extends i.a{constructor(e,t,r){super(t,r),this.toolboxModels=s.a.Toolbox(e)}get order(){return a.a.Toolbox}getRankedSearchResults(e,t){return this.toolboxModels.flatMap(t=>this.searchStrategy.filter(e,t.Items,e=>e.Title,(e,r)=>this.createSearchResult(t,e,r)))}createSearchResult(e,t,r){return new n.a(t.Title,r,e.GroupName,t.Title,t.IconName)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{filter(e,t,r,i,n){const s=[];let a=0;for(const o of t){const t=this.matchCore(e,r(o),(e,t,r)=>this.createRankedSearchResult(e,t,i(o,r)));if(t&&(s.push(t),a++),n&&a===n)break}return s}match(e,t){return this.matchCore(e,t,this.createRankedSearchMatchResult)}matchCore(e,t,r){const i=this.createRegex(e);let n=i.exec(t);if(!(null==n?void 0:n.length))return null;const s=n.index,a=[{startIndex:n.index,length:e.length}];let o=1;for(;n;)n=i.exec(t),n&&(a.push({startIndex:n.index,length:e.length}),o++);return r(s,o,a)}createRegex(e){return new RegExp(""+this.escapeRegExp(e),"gi")}escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}createRankedSearchMatchResult(e,t){let r=t;for(;r>=1;)r/=10;return{rank:e-r}}createRankedSearchResult(e,t,r){var i=this.createRankedSearchMatchResult(e,t);return i.model=r,i}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{sort(e){return e.sort((e,t)=>e.rank!==t.rank?e.rank-t.rank:e.model.displayText.localeCompare(t.model.displayText))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(208),n=r(419);class s{constructor(e){this.managedTypeName=n.a.getTypeName(),this.toolboxArea=e.getService(i.a)}select(e){this.removeSelection(),this.currentSelection=e,this.toolboxArea.selectToolbBoxItemElement(this.currentSelection.groupName,this.currentSelection.title),window.setTimeout(()=>{$(window).one("click",()=>{this.removeSelection()})},500)}removeSelection(){this.currentSelection&&(this.toolboxArea.removeSelectionFromToolboxItemElement(this.currentSelection.groupName,this.currentSelection.title),this.currentSelection=null)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r(211),n=r(420),s=r(208),a=r(4),o=r(213),l=r(64),c=r(13),d=r(46);class u extends i.a{constructor(e,t,r){super(t,r),this.provider=e,this.designSurfaceCurcimstanceChangingEvents=[d.b,d.a,d.d],this.onActiveDesignSurfaceChanging=()=>{const e=this.provider.getService(c.b);this.removeDesignSurfaceCurcimstanceChangingEvents(e),this.notifySearchCircumstancesChange()},this.onActiveDesignSurfaceChanged=()=>{const e=this.provider.getService(c.b);this.removeDesignSurfaceCurcimstanceChangingEvents(e),this.addDesignSurfaceCurcimstanceChangingEvents(e)},this.webDesignerEventEmitter=this.provider.getService(c.c),this.webDesignerEventEmitter.on(l.b,this.onActiveDesignSurfaceChanging),this.webDesignerEventEmitter.on(l.a,this.onActiveDesignSurfaceChanged)}addDesignSurfaceCurcimstanceChangingEvents(e){e&&this.designSurfaceCurcimstanceChangingEvents.forEach(t=>e.on(t,this.notifySearchCircumstancesChange))}removeDesignSurfaceCurcimstanceChangingEvents(e){e&&this.designSurfaceCurcimstanceChangingEvents.forEach(t=>e.off(t,this.notifySearchCircumstancesChange))}Dispose(){super.Dispose(),this.webDesignerEventEmitter.off(l.b,this.onActiveDesignSurfaceChanging),this.webDesignerEventEmitter.off(l.a,this.onActiveDesignSurfaceChanged);const e=this.provider.getService(c.b);this.removeDesignSurfaceCurcimstanceChangingEvents(e)}get order(){return o.a.ReportItems}getRankedSearchResults(e,t){const r=this.provider.getService(s.a).Tabs.getExplorerTab().treeView.dataSource.data()[0];return this.search(e,r)}search(e,t){const r=[];return this.searchRecursively(e,[t],r,[],0,500),r}searchRecursively(e,t,r,i,n,s){n>=s?a.b.logWarning(`Max call stack depth of ${s} reached while searching report explorer`):(r.push(...this.searchStrategy.filter(e,t,e=>e.displayText,(e,t)=>this.createModel(e,t,i))),t.filter(e=>e.nodes&&e.nodes.length).forEach(t=>this.searchRecursively(e,t.nodes,r,[...i,t.displayText],n++,s)))}createModel(e,t,r){return new n.a(e.displayText,t,e.fullName,r,e.uid)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(420),n=r(208);class s{constructor(e){this.provider=e,this.managedTypeName=i.a.getTypeName(),this.toolboxArea=this.provider.getService(n.a)}select(e){this.toolboxArea.selectExplorerItemElement(e.fullName,e.nodeUid)}removeSelection(){}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return x}));var i=r(475),n=r(291),s=r(290),a=r(289),o=r(287),l=r(468),c=r(235),d=r(318),u=r(317),h=r(315),p=r(337),m=r(338),g=r(163),f=r(49),v=r(421),y=r(424),S=r(0),C=r(1),b=r(135),w=r(286),P=r(288),D=r(109);class x{constructor(){this.map=new Map,this.map.set(D.b,e=>e.InlineData),this.map.set(D.a,e=>e.ExternalFile),this.map.set(D.c,e=>e.Data),this.map.set(v.a,e=>e.ToggleTargets),this.map.set(y.a,e=>e.SortingTargets),this.map.set(i.a,this.getColorPickerEditorComponentName),this.map.set(n.b,e=>e.Size),this.map.set(s.b,e=>e.Location),this.map.set(a.b,e=>e.Line),this.map.set(o.b,e=>e.Font),this.map.set(l.a,e=>e.Margins),this.map.set(c.a,e=>e.Padding),this.map.set(d.a,e=>e.BackgroundImage),this.map.set(u.a,e=>e.Value),this.map.set(h.a,e=>e.PaperSize),this.map.set(p.a,e=>e.Width),this.map.set(m.a,e=>e.Height),this.map.set(g.b,e=>e.Borders),this.map.set(b.b,this.getEditorComponentName),this.map.set(w.b,e=>e.Alignment),this.map.set(P.b,e=>e.FontStyle),this.map.set(f.a,this.getEditorComponentName)}resolve(e,t,r){return this.resolveByType(e.constructor,t,r)}resolveByType(e,t,r){const i=this.map.entries();for(const n of i)if(e===n[0]||e.prototype instanceof n[0])return n[1](t,r);return"UNNAMED EDITOR"}getEditorComponentName(e,t){var r,i,n;if(Array.isArray(t)){if(null===(n=null===(i=null===(r=t[0])||void 0===r?void 0:r.ParentWrapper)||void 0===i?void 0:i.Name)||void 0===n?void 0:n.startsWith("Border"))return e.getString(t[0].Name);throw new Error("Unhandled array property wrapper name resolving!")}let s=null==t?void 0:t.ParentWrapper;if(s&&s.EditorType.startsWith("Border")){if(t.Type===C.a.BorderType)return e.Style;if(t.Type===C.a.Unit)return e.Size}return e.getString(t.Name)||t.Name}getColorPickerEditorComponentName(e,t){return(t=t).Name===S.a.BackgroundColor?e.BackgroundColor:t.Name===S.a.BeginColor?e.BeginColor:t.Name===S.a.EndColor?e.EndColor:e.Color}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(423);class n extends i.a{constructor(e){super(e)}Visit(e){this.addTarget(e),super.Visit(e)}visitGroupBase(e){super.visitGroupBase(e),this.addTarget(e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(396);class n extends i.a{VisitReport(e){super.VisitReport(e);const t=e.Groups;for(let r=0;r<t.length;r++)t[r].Name&&this.visitGroup(e,t[r])}VisitTable(e){super.VisitTable(e),this.visitTableGroups(e,e.ColumnGroups),this.visitTableGroups(e,e.RowGroups)}visitTableGroups(e,t){for(const r of t)r.Name&&this.visitGroup(e,r),this.visitTableGroups(e,r.ChildGroups)}VisitGraph(e){super.VisitGraph(e),this.visitGraphGroups(e,e.CategoryGroups)}visitGraphGroups(e,t){for(const r of t)r.Name&&this.visitGroup(e,r),this.visitGraphGroups(e,r.ChildGroups)}visitGroup(e,t){this.visitGroupBase(t)}visitGroupBase(e){}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(423);class n extends i.a{constructor(e){super(e)}VisitReport(e){this.addTarget(e),super.VisitReport(e)}Visit(e){super.Visit(e)}VisitDataItem(e){super.VisitDataItem(e),this.addTarget(e)}VisitGraph(e){super.VisitGraph(e),this.visitGraphGroups(e,e.SeriesGroups)}VisitMap(e){super.VisitMap(e),this.visitMapGroups(e,e.SeriesGroups)}visitMapGroups(e,t){for(const r of t)r.Name&&this.visitGroup(e,r),this.visitMapGroups(e,r.ChildGroups)}visitGroupBase(e){super.visitGroupBase(e),this.addTarget(e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return M}));var i=r(50),n=r(118),s=r(182),a=r(192),o=r(855),l=r(314),c=r(467),d=r(856),u=r(534),h=r(413),p=r(857),m=r(473),g=r(320),f=r(859),v=r(425),y=r(63),S=r(164),C=r(318),b=r(860),w=r(235),P=r(861),D=r(466),x=r(863),R=r(317),T=r(864),I=r(465),E=r(866),N=r(868);class M{constructor(e){this.provider=e,this.editorMap=new Map,this.editorMap.set(s.b,new u.a(this.provider)),this.editorMap.set(N.a,new u.a(this.provider)),this.editorMap.set(a.b,new o.a(this.provider)),this.editorMap.set(l.a,new h.a(this.provider)),this.editorMap.set(c.a,new d.a(this.provider)),this.editorMap.set(m.a,new p.a(this.provider)),this.editorMap.set(C.a,new b.a(this.provider)),this.editorMap.set(w.a,new P.a(this.provider)),this.editorMap.set(D.a,new x.a(this.provider)),this.editorMap.set(g.a,new f.a(this.provider)),this.editorMap.set(a.a,new v.a(this.provider)),this.editorMap.set(y.b,new S.a(this.provider)),this.editorMap.set(i.a,new n.b(this.provider))}getChildEditorResolver(e){return this.getChildEditorResolverByType(e.constructor)}getChildEditorResolverByType(e){if(e===R.a)return new T.a(this.provider);if(e===I.a)return new E.a(this.provider);for(let t of this.editorMap)if(e===t[0]||e.prototype instanceof t[0])return t[1];throw new Error("Not found")}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(0),n=r(38),s=r(248),a=r(425);class o extends a.a{getChildEditorBuildersByPropertyWrappers(e){const t=e.find(e=>this.isUriPropertyWrapper(e));t&&(e=e.filter(e=>!this.isUriPropertyWrapper(e)));const r=super.getChildEditorBuildersByPropertyWrappers(e);return t&&r.push({builder:n.a.findEditorBuilder(s.a),propertyWrapper:t}),r}isUriPropertyWrapper(e){return e.Property.Name===i.a.Uri}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(118),n=r(112);class s extends i.b{getChildProperties(e){const t=e.Components[0].Parent,r=e.GetValue();let i=t.Axes.find(e=>e.Name===r);return i.getProperties().map(t=>new n.a([i],[i.PropertyStore],t,e))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(164),n=r(421),s=r(424),a=r(38),o=r(858),l=r(0);class c extends i.a{constructor(e){super(e),this.editorsMap=new Map,this.editorsMap.set(l.a.ToggleVisibilityAction,n.a),this.editorsMap.set(l.a.SortingAction,s.a),this.editorsMap.set(l.a.CustomAction,o.a)}getChildEditorBuilders(e,t){const r=this.getInstanceTypeName(e,t),i=this.editorsMap.get(r);return i?[{builder:a.a.findEditorBuilder(i),propertyWrapper:e}]:super.getChildEditorBuilders(e,t)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var i=r(1),n=r(0),s=r(3),a=r(112),o=r(49),l=r(2),c=r(7),d=r(110),u=r(38),h=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},p=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let m=class extends o.a{updateStateUi(){}getTemplate(){return'\n            <div id="#: data.id #" class="twd-editor -custom-action-editor -#: data.editorDepth #">\n            </div>\n        '}get isResetVisible(){return!1}get isResettable(){return!1}afterInit(){super.afterInit();const e=this.propertyWrapper.GetValue();this.createCustomActionComponent(e).then(t=>{const r=this.propertyWrapper.GetChildProperty(n.a.Parameters).Property,i=new a.a([t],[e],r,this.propertyWrapper),s=u.a.findEditorBuilder(d.a).createInstance(this.visualElement,i,this.provider,this.editorDepth);this.childEditors.push(s)})}createCustomActionComponent(e){return p(this,void 0,void 0,(function*(){const t=this.propertyWrapper.Components[0];return this.provider.getServiceByName(s.a.IDesignerHost).CreateComponent(i.a.CustomAction,e,t,!1)}))}refreshValue(){}};m=h([Object(l.a)("custom-action-editor"),Object(c.a)()],m)},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(164);class n extends i.a{getChildProperties(e,t){return this.getInstanceTypeName(e,t)?e.Components[0].BrowsablePropertyWrappers:super.getChildProperties(e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(118),n=r(62);class s extends i.a{get propertiesOrder(){return n.a.BackgroundImage}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(118),n=r(62),s=r(38),a=r(862);class o extends i.a{getChildEditorBuilders(e){return this.getChildProperties(e).map(e=>({builder:s.a.findEditorBuilder(a.a),propertyWrapper:e}))}get propertiesOrder(){return n.a.Padding}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(5),n=r(2),s=r(411),a=r(7),o=r(91),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let c=class extends s.a{get IsSet(){return this.getByPropertyName(e=>{e.isSet})}set IsSet(e){this.setByPropertyName(e=>{e.isSet},e)}createFocusStrategy(){return new o.e(this.visualElement)}getTemplate(){return this.templates.Editors.UnitEditors.paddingSideEditorComponentTemplate}updateStateUi(){}get isResettable(){return!1}setUnitType(e){if(this.unit.Type!==e){const t=this.unit.ToUnit(e);this.unit=t,this.Value=""+this.unit.Value,this.propertyWrapper.SetValue(this.unit.ToString())}}updateUnitType(e,t){this.unit=this.unit.ToUnit(t),this.setValueCore(""+this.unit.Value)}beforeInit(){super.beforeInit(),this.unit=i.a.Parse(this.propertyWrapper.GetValue()),this.Value=""+this.unit.Value}afterInit(){super.afterInit(),this.applySet()}applySet(){this.IsSet=this.propertyWrapper.ShouldSerializeValue()}refreshValue(){this.unit=i.a.Parse(this.propertyWrapper.GetValue()),this.Value=""+this.unit.Value,this.applySet()}};c=l([Object(n.a)("padding-side-editor"),Object(a.a)()],c)},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(118),n=r(62),s=r(0);class a extends i.b{getChildEditorBuilders(e){const t=this.getChildProperties(e),r=[];return this.propertiesOrder.forEach(i=>{const n=this.schemaService.getEditorType(i,null);switch(i){case s.a.BackgroundColor:case s.a.BackgroundImage:case s.a.Padding:case s.a.Visible:r.push({builder:n,propertyWrapper:e.GetChildProperty(i)});break;default:r.push({builder:n,propertyWrapper:t})}}),r}get propertiesOrder(){return n.a.Style}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(0),n=r(3),s=r(38),a=r(134),o=r(284),l=r(426);class c extends l.a{init(e){this.propertyWrapper=e;const t=this.provider.getServiceByName(n.a.IPropertyDescriptorWrapperFactory);for(const e of t.CreateMergeableWrappers(this.propertyWrapper.Components,this.propertyWrapper))if(this.getExpressionProperty()||e.Name!==i.a.Value||(this.expressionProp=e),this.getImageProperty()||e.Name!==i.a.Image||(this.imageProp=e),this.mimeTypeProperty||e.Name!==i.a.MimeType||(this.mimeTypeProp=e),this.getExpressionProperty()&&this.getImageProperty()&&this.mimeTypeProperty)break;super.init(e)}isEmbeddedImageProperty(){return this.propertyWrapper.Name===i.a.Image}getExpressionProperty(){return this.expressionProp}getImageProperty(){return this.imageProp}get mimeTypeProperty(){return this.mimeTypeProp}mustCreateEditor(){if(1===this.propertyWrapper.Components.length){const e=this.getExpressionProperty().GetValue(),t=this.getImageProperty().GetValue();if(!e&&!t&&this.propertyWrapper.Name===this.getExpressionProperty().Name)return!0}return!!this.propertyWrapper.GetValue()}getInputEditorBuilder(){return s.a.findEditorBuilder(a.b)}getUploadImageEditorBuilder(){return s.a.findEditorBuilder(o.a)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(0),n=r(4);class s{constructor(e,t){this.type=e?i.a.Embedded:i.a.Expression,this.Value=t}get Type(){return this.type}set Type(e){this.isValidValue(e)&&(this.type=e)}isValidValue(e){return e===i.a.Expression||e===i.a.Embedded||(window.TelerikWebReportDesignerDebugMode&&n.b.logError(`The passed value for ImageModel.Type is not supported: "${e}".`),!1)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(0),n=r(3),s=r(112),a=r(461),o=r(867),l=r(38),c=r(426);class d extends c.a{init(e){this.propertyWrapper=e,this.expressionProp=this.ensureProperty(i.a.Expression),this.imageProp=this.ensureProperty(i.a.Image),super.init(e)}isEmbeddedImageProperty(){const e=this.propertyWrapper.GetChildProperty(this.imagePropertyName);return e&&e.GetValue()}get expressionPropertyName(){return i.a.Expression}get imagePropertyName(){return i.a.Image}getExpressionProperty(){return this.expressionProp}getImageProperty(){return this.imageProp}get mimeTypeProperty(){return null}mustCreateEditor(){return!0}getInputEditorBuilder(){return l.a.findEditorBuilder(a.a)}getUploadImageEditorBuilder(){return l.a.findEditorBuilder(o.a)}ensureProperty(e){let t=this.propertyWrapper.GetChildProperty(e);if(!t){const r=this.provider.getServiceByName(n.a.ITypeDescriptorRepository).GetPropertyTypeDescriptor(i.a.ImageSource).GetProperty(e),a=[{[i.a.NetType]:i.a.ImageSource,[i.a.Expression]:null}];t=new s.a(this.propertyWrapper.Components,a,r,this.propertyWrapper)}return t}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var i=r(311),n=r(284),s=r(2),a=r(7),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends n.a{resetToDefaultValueInternal(){i.a.resetPropertyWrapperValue(this.propertyWrapper),super.resetToDefaultValueInternal()}updatePropertyWrapperValue(e){i.a.updatePropertyWrapperValue(this.propertyWrapper,e)&&super.updatePropertyWrapperValue(e)}};l=o([Object(s.a)("checkbox-upload-image-editor"),Object(a.a)()],l)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(182),n=r(2),s=r(7),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{get supportsUriExpression(){return!1}};o=a([Object(n.a)("toc-report-source-editor"),Object(s.b)("Telerik.WebReportDesinger.TocReportSourceEditor")],o)},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r(3),n=r(211),s=r(105),a=r(8),o=r(13),l=r(53),c=r(213),d=r(870);class u extends n.a{constructor(e,t,r,n){super(t,r),this.provider=e,this.editorSearchResultModelFactory=n,this.schemaService=this.provider.getServiceByName(i.a.ISchemaService),this.editorNameResolverService=this.provider.getServiceByName(i.a.IEditorNameResolverService),this.propertiesArea=this.provider.getService(s.a),this.stringResources=this.provider.getService(a.a),this.childEditorSearchResolverMap=new d.a(e),this.provider.getService(o.c).on(l.a,this.notifySearchCircumstancesChange)}Dispose(){super.Dispose(),this.provider.getService(o.c).off(l.a,this.notifySearchCircumstancesChange)}get order(){return c.a.Properties}getRankedSearchResults(e,t){const r=this.propertiesArea.Editors;return this.search(e,r)}search(e,t){const r=[],i=t.map(e=>({type:e.constructor,propertyWrapper:e.propertyWrapper}));return this.recursiveSearch(e,r,i,[]),r}recursiveSearch(e,t,r,i){t.push(...this.searchStrategy.filter(e,r,e=>this.getEditorName(e),(e,t)=>this.createModel(e,this.getEditorName(e),t,i))),r.forEach(r=>this.searchChildEditors(r,e,t,i))}searchChildEditors(e,t,r,i){const n=this.childEditorSearchResolverMap.getChildEditors(e),s=this.getEditorName(e);this.recursiveSearch(t,r,n,[...i,s])}createModel(e,t,r,i){const n=[...i,t];return this.editorSearchResultModelFactory.create({currentPathArray:n,editor:e,highlights:r,localizedName:t,parentPathArray:i})}getEditorName(e){return this.editorNameResolverService.resolveByType(e.type,this.stringResources,e.propertyWrapper)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var i=r(535),n=r(871),s=r(106),a=r(190),o=r(50),l=r(872),c=r(873),d=r(321),u=r(135),h=r(231),p=r(874);class m{constructor(e){this.provider=e}getChildEditors(e){let t;return t=this.isBorderSideEditor(e)?new i.a(this.provider):this.isExpandableEditor(e)&&!this.isCollectionEditor(e)?new l.a(this.provider):this.isExpandableEditorWrapper(e)?new i.b(this.provider):this.isFontEditor(e)?new c.a(this.provider):this.isInlineSourcePropertyEditor(e)?new p.a:new n.a,t.getChildEditors(e)}isInlineSourcePropertyEditor(e){return e.type===h.a}isBorderSideEditor(e){return e.type===u.b}isFontEditor(e){return e.type===d.b}isExpandableEditorWrapper(e){return e.type===s.a||e.type.prototype instanceof s.a}isCollectionEditor(e){return e.type===a.a||e.type.prototype instanceof a.a}isExpandableEditor(e){return e.type===o.a||e.type.prototype instanceof o.a}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{getChildEditors(e){return[]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(3);class n{constructor(e){this.provider=e,this.childResolverMapService=this.provider.getServiceByName(i.a.IChildEditorResolverMapService)}getChildEditors(e){const t=e.propertyWrapper,r=this.childResolverMapService.getChildEditorResolverByType(e.type),i=r;return i.init&&i.init(t),r.getChildEditorBuilders(t).map(e=>({type:e.builder.editorType,propertyWrapper:e.propertyWrapper}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(321);class n{constructor(e){this.resolver=new i.a(e)}getChildEditors(e){return this.resolver.getChildEditorBuilders(e.propertyWrapper).map(e=>({type:e.builder.editorType,propertyWrapper:e.propertyWrapper}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(109);class n{getChildEditors(e){return[{type:i.c,propertyWrapper:null},{type:i.a,propertyWrapper:null},{type:i.b,propertyWrapper:null}]}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(8),n=r(428),s=r(294);class a extends s.a{constructor(e,t){super(e,t,new n.a(e,t)),this.sr=e.getService(i.a)}getAll(e){return this.originalStorage.getAll(e)}getFolder(e){return this.originalStorage.getFolder(e)}GetText(e){return this.originalStorage.GetText(e)}previewJsonData(e){return this.originalStorage.previewJsonData(e)}previewCsvData(e){return this.originalStorage.previewCsvData(e)}previewWebServiceData(e){return this.originalStorage.previewWebServiceData(e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(429),n=r(18),s=r(294),a=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends s.a{constructor(e,t){super(e,t,new i.a(e,t)),this.publish=e=>(this.displayDemoModeWarning(this.sr.PublishButton),Promise.resolve(n.b.createSuccess()))}lock(e){return a(this,void 0,void 0,(function*(){return n.b.createSuccess()}))}unlock(e){return a(this,void 0,void 0,(function*(){return n.b.createSuccess()}))}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(294),n=r(430);class s extends i.a{constructor(e,t){const r=new n.a(e,t);super(e,t,r),this.sdsStorage=r}GetModel(e){return this.sdsStorage.GetModel(e)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(177),n=r(135),s=r(0),a=r(128),o=r(109),l=r(231);class c{create(e){return e.editor.type===n.b?this.createBorderSideEditorSearchResultModel(e):this.isFakeInlineSourcePropertyChildEditor(e.editor.type)?this.createFakeInlineSourcePropertyEditorSearchResultModel(e):e.editor.type===l.a?this.createInlineSourcePropertyEditorSearchResultModel(e):this.createDefault(e)}createDefault(e){return new i.b(e.localizedName,e.highlights,e.currentPathArray,e.parentPathArray)}createInlineSourcePropertyEditorSearchResultModel(e){return new i.d(e.localizedName,e.highlights,e.currentPathArray,e.parentPathArray)}createFakeInlineSourcePropertyEditorSearchResultModel(e){return new i.c(e.localizedName,e.highlights,e.currentPathArray,e.parentPathArray,e.editor.type.getTypeName())}createBorderSideEditorSearchResultModel(e){const t=e.editor.propertyWrapper[0];return new i.a(e.localizedName,e.highlights,e.currentPathArray,t.Name===s.a.Default?a.a.group:a.a.separated,e.parentPathArray)}isFakeInlineSourcePropertyChildEditor(e){return e===o.b||e===o.c||e===o.a}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(880);class n{constructor(e){this.provider=e,this.managers=[],this.managers.push(new i.a(e))}get Get(){return this.managers[this.managers.length-1]}Set(e){this.managers.push(e)}Restore(){if(!(this.managers.length>1))throw new Error("Restore has been called though only default KeybindingManager remains.");this.managers.pop()}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r(9),n=r(6),s=r(55),a=r(36),o=r(129),l=r(138),c=r(154);class d extends o.a{constructor(e){super(e);const t=l.a.KeyCodes,r=l.a.ModifierKeys;this.keyCodeMap={[t.tab]:[new s.a(r.SHIFT,n.a.SelectPrevious,[i.a.ReportExplorer,i.a.Toolbox]),new s.a(null,n.a.SelectNext,[i.a.ReportExplorer,i.a.Toolbox])],[t.esc]:[new s.a(null,n.a.SelectParent,null)],[t.space]:[new s.a([r.CONTROL,r.SHIFT],n.a.ResetStyle,null)],[t.leftArrow]:[new s.a(r.SHIFT,n.a.ShrinkSelectionHorizontally,[i.a.ReportExplorer]),new s.a(null,n.a.MoveSelectionLeftSmallStep,[i.a.ReportExplorer])],[t.upArrow]:[new s.a(r.SHIFT,n.a.ShrinkSelectionVertically,[i.a.ReportExplorer]),new s.a(null,n.a.MoveSelectionUpSmallStep,[i.a.ReportExplorer])],[t.rightArrow]:[new s.a(r.SHIFT,n.a.GrowSelectionHorizontally,[i.a.ReportExplorer]),new s.a(null,n.a.MoveSelectionRightSmallStep,[i.a.ReportExplorer])],[t.downArrow]:[new s.a(r.SHIFT,n.a.GrowSelectionVertically,[i.a.ReportExplorer]),new s.a(null,n.a.MoveSelectionDownSmallStep,[i.a.ReportExplorer])],[t.delete]:[new s.a(null,n.a.Delete,o.a.globallyAvailableKeyCodesExcludedDomTargets)],[t.c]:[new s.a([r.CONTROL,r.SHIFT],n.a.CopyStyle,null),new s.a(r.CONTROL,n.a.Copy,null)],[t.f]:[new s.a(r.CONTROL,n.a.FocusGlobalSearch,o.a.globallyAvailableKeyCodesExcludedDomTargetsExceptTopMenu)],[t.m]:[new s.a(r.CONTROL,n.a.MergeCells,null)],[t.s]:[new s.a(r.CONTROL,n.a.DocumentSave,o.a.globallyAvailableKeyCodesExcludedDomTargets)],[t.v]:[new s.a([r.CONTROL,r.SHIFT],n.a.PasteStyle,null),new s.a(r.CONTROL,n.a.Paste,null)],[t.x]:[new s.a(r.CONTROL,n.a.Cut,null)],[t.z]:[new s.a(r.CONTROL,n.a.Undo,o.a.globallyAvailableKeyCodesExcludedDomTargets)],[t.y]:[new s.a(r.CONTROL,n.a.Redo,o.a.globallyAvailableKeyCodesExcludedDomTargets)],[t.bracketOpen]:[new s.a(r.CONTROL,n.a.SendToBack,null)],[t.bracketClose]:[new s.a(r.CONTROL,n.a.BringToFront,null)]};e.getService(a.a).ReportServerLayout||(this.keyCodeMap[t.s].unshift(new s.a([r.CONTROL,r.SHIFT],n.a.OpenSaveAsWindow,o.a.globallyAvailableKeyCodesExcludedDomTargets)),this.keyCodeMap[t.n]=[new s.a([r.CONTROL,r.ALT],n.a.OpenCreateNewReportWindow,o.a.globallyAvailableKeyCodesExcludedDomTargets)],this.keyCodeMap[t.w]=[new s.a([r.CONTROL,r.ALT],n.a.DocumentClose,o.a.globallyAvailableKeyCodesExcludedDomTargets)])}GetCommandManager(){return this.Provider.getService(c.a)}IsValidTarget(e,t){const r=this.isFKeyCode(t),n=window.getSelection().toString(),s=this.isWrdGloballyAvailableKeyCode(t);if(n&&!s)return!1;const a=s&&this.isRadioOrCheckboxInput(e);if(super.isCurrentElementTagIgnored(e)&&!r&&!a)return!1;const o=Array.from(e.classList);if(s&&o.some(e=>e.startsWith(i.a.WebDesignerCanvasContentClassName)))return!0;if(o.some(e=>e.startsWith(i.a.WebDesignerClassPrefix)))return!0;return!!this.getParentClassNames(e).some(e=>e.startsWith(i.a.WebDesignerClassPrefix))}isRadioOrCheckboxInput(e){return"radio"===(null==e?void 0:e.getAttribute("type"))||"checkbox"===(null==e?void 0:e.getAttribute("type"))}isFKeyCode(e){return this.getKeyCode(e)===l.a.KeyCodes.f}isWrdGloballyAvailableKeyCode(e){const t=this.getKeyCode(e);return l.a.AvailableLetterKeyCodes.some(e=>e===t)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(431),n=r(24);class s{constructor(e){this.provider=e,this.managedTypeName=i.a.getTypeName()}select(e){this.removeSelection(),this.currentSelection=e;new n.a(e.command,this.provider).execute(!0)}removeSelection(){this.currentSelection&&(this.currentSelection=null)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var i=r(211),n=r(213),s=r(431),a=r(6),o=r(3),l=r(418);class c extends i.a{constructor(e,t,r){super(t,r),this.commandModels=class{static Commands(e){const t=e.getServiceByName(o.a.ISchemaService);return[{Command:a.a.TriggerOnboardingExperience,IconClass:t.getIconClass(l.a.TriggerOnboardingExperience),Title:"Start onboarding"}]}}.Commands(e)}get order(){return n.a.Commands}getRankedSearchResults(e,t){return this.searchStrategy.filter(e,this.commandModels,e=>e.Title,(e,t)=>this.createSearchResult(e,t))}createSearchResult(e,t){return new s.a(e.Title,t,e.Title,e.Command,e.IconClass)}}},function(e,t,r){"use strict";function i(){kendo.View.fn._createElement=function(){var e,t,r="<"+this.tagName+">";try{"SCRIPT"===(t=$(document.getElementById(this.content)||this.content))[0].tagName&&(t=t.html())}catch(e){/unrecognized expression/.test(e.message)&&(t=this.content)}if("string"==typeof t)t=t.replace(/^\s+|\s+$/g,""),this._evalTemplate&&(t=kendo.template(t,{useWithBlock:!1})(this.model||{})),e=$(r).append(t),this._wrap||(e=e.contents());else{if(e=t,this._evalTemplate){var i=$(kendo.template($("<div />").append(e.clone(!0)).html(),{useWithBlock:!1})(this.model||{}));$.contains(document,e[0])&&e.replaceWith(i),e=i}this._wrap&&(e=e.wrapAll(r).parent())}return e}}r.d(t,"a",(function(){return i}))},function(e,t,r){e.exports=r(198)},function(e,t,r){"use strict";r(886),r(894),r(896),r(908),r(935),r(938),r(939),r(940),r(941),r(474),r(942),r(464),r(475),r(321),r(943),r(944),r(945),r(946)},function(e,t,r){"use strict";r(887),r(888),r(461),r(81),r(231),r(889),r(890),r(891),r(892),r(134),r(463),r(893)},function(e,t,r){"use strict";var i=r(81),n=r(7),s=r(54),a=r(2),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends i.a{getTemplate(){return s.a.Editors.InputEditors.inputEditorTemplate}prepareValueForPropertyWrapper(e){return null==e?void 0:e.replace("\\t",String.fromCharCode(9)).replace("\\r\\n",String.fromCharCode(13)+String.fromCharCode(10))}getValueForInput(e){return null==e?void 0:e.replace(/\t/g,"\\t").replace(/(\r\n)/g,"\\r\\n")}};l=o([Object(a.a)("char-array-editor"),Object(n.b)("Char[]")],l)},function(e,t,r){"use strict";var i=r(54),n=r(2),s=r(7),a=r(81),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends a.a{getTemplate(){return i.a.Editors.InputEditors.inputEditorTemplate}prepareValueForPropertyWrapper(e){return e}getValueForInput(e){if(!e)return"";const t=e;return t.Value?t.Value:e}};l=o([Object(n.a)("object-value-editor"),Object(s.b)("Telerik.WebReportDesinger.ObjectValueExpressionEditor")],l)},function(e,t,r){"use strict";var i=r(81),n=r(7),s=r(54),a=r(2),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends i.a{getTemplate(){return s.a.Editors.InputEditors.multiLineEditorTemplate}prepareValueForPropertyWrapper(e){return e}getValueForInput(e){return e}};l=o([Object(a.a)("multi-line-editor"),Object(n.b)("Telerik.WebReportDesigner.WebDesignerMultiLineEditor")],l)},function(e,t,r){"use strict";var i=r(81),n=r(7),s=r(54),a=r(2),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends i.a{getTemplate(){return s.a.Editors.InputEditors.passwordEditorTemplate}prepareValueForPropertyWrapper(e){return e}getValueForInput(e){return e}};l=o([Object(a.a)("password-editor"),Object(n.b)("Telerik.WebReportDesigner.PasswordPropertyEditor")],l)},function(e,t,r){"use strict";var i=r(81),n=r(1),s=r(7),a=r(54),o=r(4),l=r(2),c=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let d=class extends i.a{getTemplate(){return a.a.Editors.InputEditors.inputEditorTemplate}initValue(e){this.paramValue=new u(e),super.initValue(this.paramValue)}prepareValueForPropertyWrapper(e){return this.paramValue.Value=e,this.paramValue.NetType=n.a.String,this.paramValue.clone()}getValueForInput(e){return null==e?void 0:e.Value}};d=c([Object(l.a)("string-wrapper-editor"),Object(s.b)("Telerik.Reporting.Design.ReportParameterValueExpressionEditor","Telerik.WebReportDesigner.StringWrapperEditor"),Object(s.b)("Telerik.WebReportDesigner.DataSourceParameterValueEditor","Telerik.WebReportDesigner.ParameterValueEditor"),Object(s.b)("Telerik.WebReportDesigner.ObjectDataSourceDataSourcePropertyEditor")],d);class u{constructor(e){if(e)if(o.b.isString(e))this.NetType=n.a.String,this.Value=e;else{const t=e;this.NetType=t.NetType,this.Value=t.Value}else this.NetType=n.a.String,this.Value=""}clone(){return new u(this)}}},function(e,t,r){"use strict";var i=r(54),n=r(2),s=r(7),a=r(81),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends a.a{getTemplate(){return i.a.Editors.InputEditors.inputEditorTemplate}prepareValueForPropertyWrapper(e){return e.trim()}getValueForInput(e){return e}};l=o([Object(n.a)("trimmed-string-editor"),Object(s.b)("Telerik.WebReportDesigner.TrimmedStringEditor")],l)},function(e,t,r){"use strict";var i=r(2),n=r(7),s=r(464),a=r(409),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends s.a{refreshValue(){super.refreshValue(),this.updateBarcodeValueUI()}updateBarcodeValueUI(){a.a.updateValueUI(this.provider)}};l=o([Object(i.a)("value-from-bill-data-editor"),Object(n.b)("Telerik.WebReportDesinger.ValueFromBillDataEditor")],l)},function(e,t,r){"use strict";r(459),r(895)},function(e,t,r){"use strict";var i=r(99),n=r(3),s=r(393),a=r(71),o=r(2),l=r(10),c=r(72),d=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let h=class extends l.a{constructor(){super(...arguments),this.inputValueChanged=new l.c}get ExpressionSchema(){return this.getByPropertyName(e=>{e.expressionSchema})}set ExpressionSchema(e){this.setByPropertyName(e=>{e.expressionSchema},e)}get EditorValuesTreeViewDataSource(){return this.getByPropertyName(e=>{e.editorValuesTreeViewDataSource})}set EditorValuesTreeViewDataSource(e){this.setByPropertyName(e=>{e.editorValuesTreeViewDataSource},e)}get EditorItemsListViewDataSource(){return this.getByPropertyName(e=>{e.editorItemsListViewDataSource})}set EditorItemsListViewDataSource(e){this.setByPropertyName(e=>{e.editorItemsListViewDataSource},e)}get Description(){return this.getByPropertyName(e=>{e.description})}set Description(e){this.setByPropertyName(e=>{e.description},null!=e?e:"")}get displayEditorItemsListView(){const e=this.EditorItemsListViewDataSource;return e&&!!e.data().length}get displayEditorValuesTreeView(){const e=this.EditorValuesTreeViewDataSource;return e&&!!e.data().length}getTemplate(){return this.templates.Editors.PopupEditors.expressionEditorWindowComponentTemplate}beforeInit(){super.beforeInit(),this.schemaService=this.provider.getServiceByName(n.a.ISchemaService),this.iconClassNames=new Map([[1,this.schemaService.getFullIconClass(i.a.ReportConstants)],[2,this.schemaService.getFullIconClass(i.a.Constants)],[5,this.schemaService.getFullIconClass(i.a.Functions)],[7,this.schemaService.getFullIconClass(i.a.Operators)],[8,this.schemaService.getFullIconClass(i.a.GlobalObjects)],[9,this.schemaService.getFullIconClass(i.a.ReportParameters)]]),this.Description=""}afterInit(){super.afterInit(),this.view.element.find(".tab__treeview.__listview").on("dblclick",".list-item",e=>{this.onEditorItemsListViewDoubleClick(e)}),this.view.element.find(".tab__treeview.__treeview").on("dblclick",".k-item",e=>{this.onEditorValuesTreeViewDoubleClick(e)})}canOpenWindow(){return u(this,void 0,void 0,(function*(){return yield this.getExpressionBuilderHierarchy(this.propertyName),!!this.ExpressionSchema}))}updateStateUi(){}onTreeViewSelect(e){this.selectedField=e.sender.dataItem(e.node),this.updateValuesModel(),this.updateDescriptionModel()}onEditorValuesTreeViewSelect(e){this.selectedValue=e.sender.dataItem(e.node),this.updateDescriptionModel()}onEditorItemsListViewChange(e){this.selectedValue=e.sender.dataItem(e.sender.select()),this.updateDescriptionModel()}onEditorValuesTreeViewDoubleClick(e){const t=$(e.currentTarget).attr("data-uid"),r=this.EditorValuesTreeViewDataSource.getByUid(t);if(r){const t=r.valueTextPath;t&&(this.onInputValueChanged(c.a.getDataFieldIdentifier(t,!1)),e.stopPropagation())}}onEditorItemsListViewDoubleClick(e){e.preventDefault();const t=$(e.currentTarget).attr("data-value");this.onInputValueChanged(t)}onInputValueChanged(e){this.propertyWrapper&&this.propertyWrapper.Components.length>0&&(e=c.a.getExpressionBody(e)),this.inputValueChanged.emit({value:e})}getExpressionBuilderHierarchy(e){return u(this,void 0,void 0,(function*(){const t=this.provider.getServiceByName(n.a.ISchemaService);this.schema=yield t.getExpressionBuilderSchema();const r=this.getRootComponent(),i=yield this.getCategoriesCopyWithParameters(t,r.ReportParameters);if(e){const e=r instanceof a.a?r.DataSources:[r.DataSourceReference],n=new s.a(this.provider).getDataSourceFields(t,e,this.propertyName,this.propertyWrapper);i.splice(1,0,n)}this.ExpressionSchema=this.createKendoHierarchicalDataSource(i,"categories")}))}getCategoriesCopyWithParameters(e,t){return u(this,void 0,void 0,(function*(){const r=yield e.getExpressionBuilderParametersSchema(t),i=JSON.parse(JSON.stringify(this.schema.categories));i.splice(-1,0,r);for(const e of i)e.spriteCssClass=this.iconClassNames.get(e.image);return i}))}getRootComponent(){return this.provider.getServiceByName(n.a.IDesignerHost).RootComponent}createKendoHierarchicalDataSource(e,t,r=null){return new kendo.data.HierarchicalDataSource({data:e,schema:{model:{fields:{text:{from:null!=r?r:"text"}},children:t}}})}updateValuesModel(){if(this.selectedValue=null,this.selectedField.nodes&&this.selectedField.nodes.length){this.EditorItemsListViewDataSource=new kendo.data.DataSource({data:[]});var e=this.selectedField.nodes[0].text?"text":"displayText";this.EditorValuesTreeViewDataSource=this.createKendoHierarchicalDataSource(this.selectedField.nodes,"nodes",e)}else this.selectedField.items&&this.selectedField.items.length?(this.EditorValuesTreeViewDataSource=new kendo.data.HierarchicalDataSource({data:[]}),this.EditorItemsListViewDataSource=new kendo.data.DataSource({data:this.selectedField.items})):(this.EditorItemsListViewDataSource=new kendo.data.DataSource({data:[]}),this.EditorValuesTreeViewDataSource=new kendo.data.HierarchicalDataSource({data:[]}))}updateDescriptionModel(){const e=this.selectedValue?this.selectedValue:this.selectedField;let t=e.description?e.description:e.name;t&&(t=t.replace(/\r\n/g,"<br />")),this.Description=t}};d([Object(o.b)()],h.prototype,"propertyName",void 0),d([Object(o.b)()],h.prototype,"propertyWrapper",void 0),d([o.d],h.prototype,"inputValueChanged",void 0),h=d([Object(o.a)("expression-editor-window")],h)},function(e,t,r){"use strict";r(897),r(232),r(898),r(233),r(899),r(313),r(900),r(901),r(902),r(903),r(904),r(180),r(316),r(905),r(906),r(234),r(907)},function(e,t,r){"use strict";var i=r(313),n=r(7),s=r(2),a=r(68),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends i.a{get dropDownListOptions(){return[{Name:a.a.None},...this.Report.DataSources.map(e=>({Name:e.Name}))]}resetPropertyWrapperValue(){this.updatePropertyWrapperValue(a.a.None)}tryGetExisitingInitialValue(){const e=[...new Set(this.propertyWrapper.Components.map(e=>e.DataSourceName))];return 1===e.filter(e=>void 0!==e).length?e[0]:void 0}determineIfResetIsDirty(){return this.propertyWrapper.Components.some(e=>!(!e||!e.DataSourceName))}updatePropertyWrapperValue(e){this.propertyWrapper.Components.forEach(t=>{const r=t;r&&(e===a.a.None?r.DataSourceName=null:r.DataSourceName=e)})}};l=o([Object(s.a)("data-source-editor"),Object(n.b)("Telerik.Reporting.Data.Design.DataSourceEditor")],l)},function(e,t,r){"use strict";var i=r(2),n=r(7),s=r(233),a=r(330),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends s.a{get dropDownListOptions(){return a.a.encodings.sort((e,t)=>e.Description>t.Description?1:e.Description<t.Description?-1:0)}get dataTextFieldName(){return"Description"}get dataValueFieldName(){return"CodePage"}getDefaultValue(e,t=!1){return a.a.encodings.find(e=>65001===e.CodePage).CodePage+""}get isResetVisible(){return!0}resetToDefaultValueInternal(){this.updatePropertyWrapperValue(this.getDefaultValue(this.dropDownListOptions))}};l=o([Object(i.a)("encoding-editor"),Object(n.b)("Encoding")],l)},function(e,t,r){"use strict";var i=r(2),n=r(7),s=r(233),a=r(105),o=r(314),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let c=class extends s.a{afterInit(){super.afterInit(),this.updatePaperSizeEditorState("custom")}updatePropertyWrapperValue(e){super.updatePropertyWrapperValue(e),this.updatePaperSizeEditorState(e)}resetToDefaultValueInternal(){super.resetToDefaultValueInternal(),this.updatePaperSizeEditorState(this.propertyWrapper.getDefaultValue())}updatePaperSizeEditorState(e){this.provider.getService(a.a).Editors.find(e=>e instanceof o.a).updatePaperSizeEditorUI(e)}};c=l([Object(i.a)("paper-kind-editor"),Object(n.b)("Telerik.Reporting.Design.PaperKindEditor")],c)},function(e,t,r){"use strict";var i,n=r(2),s=r(7),a=r(313),o=r(0),l=r(68),c=r(94),d=r(145),u=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};!function(e){e[e.BeginSection=0]="BeginSection",e[e.EndSection=1]="EndSection"}(i||(i={}));let h=class extends a.a{beforeInit(){super.beforeInit(),this.Enabled=!1}get dropDownListOptions(){return this.sectionKind=this.propertyWrapper.Name===o.a.BeginSection?i.BeginSection:i.EndSection,[{Name:l.a.None},...this.Report.Children.filter(e=>e instanceof c.a).map(e=>({Name:e.Name}))]}get isResetVisible(){return!1}tryGetExisitingInitialValue(){const e=[...new Set(this.propertyWrapper.Components.map(e=>{const t=e;return this.sectionKind===i.BeginSection?t.BeginSectionName:t.EndSectionName}))];return 1===e.length?e[0]:void 0}resetPropertyWrapperValue(){this.updatePropertyWrapperValue(l.a.None)}updatePropertyWrapperValue(e){this.propertyWrapper.Components.forEach(t=>{t instanceof d.a&&(this.sectionKind===i.BeginSection?t.BeginSectionName=e===l.a.None?null:e:t.EndSectionName=e===l.a.None?null:e)})}};h=u([Object(n.a)("report-section-editor-component"),Object(s.b)("Telerik.WebReportDesigner.ReportSectionEditor")],h)},function(e,t,r){"use strict";var i=r(180),n=r(0),s=r(7),a=r(2),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends i.a{getGraphItemCollection(){const e=this.componentSeries.getPropertyValue(n.a.CoordinateSystem);if(e){const t=this.component.CoordinateSystems.find(t=>t.Name===e);if(t)return t.GetAxes()}return[]}get isResetVisible(){return!0}getDefaultValue(e,t=!1){return this.stringResources.NoneSelected}get dropDownListOptionLabel(){return this.stringResources.NoneSelected}};l=o([Object(a.a)("arrange-by-axis-editor"),Object(s.b)("Telerik.Reporting.Design.ArrangeByAxisEditor")],l)},function(e,t,r){"use strict";var i=r(2),n=r(7),s=r(180),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends s.a{getGraphItemCollection(){return this.component.CategoryGroups}};o=a([Object(i.a)("graph-category-group-editor"),Object(n.b)("Telerik.Reporting.Design.Graphing.CategoryGroupEditor")],o)},function(e,t,r){"use strict";var i=r(2),n=r(7),s=r(180),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends s.a{getGraphItemCollection(){return this.component.SeriesGroups}};o=a([Object(i.a)("graph-series-group-editor"),Object(n.b)("Telerik.Reporting.Design.Graphing.SeriesGroupEditor")],o)},function(e,t,r){"use strict";var i=r(180),n=r(2),s=r(7),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{getGraphItemCollection(){return this.component.CoordinateSystems}};o=a([Object(n.a)("series-coordinate-system-editor"),Object(s.b)("Telerik.Reporting.Design.SeriesCoordinateSystemEditor")],o)},function(e,t,r){"use strict";var i=r(234),n=r(7),s=r(2),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{getGraphItemCollection(){return this.component.GeoLocationGroups}};o=a([Object(s.a)("geo-location-group-editor"),Object(n.b)("Telerik.Reporting.Design.Mapping.GeoLocationGroupEditor")],o)},function(e,t,r){"use strict";var i=r(234),n=r(2),s=r(7),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{getGraphItemCollection(){return this.component.SeriesGroups}};o=a([Object(n.a)("map-series-group-editor"),Object(s.b)("Telerik.Reporting.Design.Mapping.SeriesGroupEditor")],o)},function(e,t,r){"use strict";var i=r(234),n=r(2),s=r(7),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{getGraphItemCollection(){return this.component.ShapeMapGroups}};o=a([Object(n.a)("shape-map-group-editor"),Object(s.b)("Telerik.Reporting.Design.Mapping.ShapeMapGroupEditor")],o)},function(e,t,r){"use strict";r(465),r(317),r(318),r(466),r(909),r(314),r(467),r(910),r(911),r(235),r(468),r(912),r(926)},function(e,t,r){"use strict";var i=r(50),n=r(1),s=r(0),a=r(7),o=r(2),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let c=class extends i.a{afterInit(){super.afterInit(),this.initAddressPropertyNetType(n.a.Creditor),this.initAddressPropertyNetType(n.a.Debtor)}initAddressPropertyNetType(e){var t;const r=this.propertyWrapper.GetChildProperty(e);if(!r)return;const i=r.GetChildProperty(n.a.Address);if(i){const e=null!==(t=i.GetValue())&&void 0!==t?t:{};e[s.a.NetType]=n.a.Address+"Info",i.SetValue(e)}}};c=l([Object(o.a)("swiss-qr-bill-data-editor"),Object(a.b)("SwissQRBillData")],c)},function(e,t,r){"use strict";var i=r(50),n=r(2),s=r(7),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{};o=a([Object(n.a)("graph-series-editor"),Object(s.a)()],o)},function(e,t,r){"use strict";var i=r(50),n=r(2),s=r(7),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{};o=a([Object(n.a)("map-series-editor"),Object(s.a)()],o)},function(e,t,r){"use strict";r(913),r(181),r(110),r(914),r(915),r(916),r(917),r(918),r(919),r(139),r(920),r(921),r(922),r(923),r(924),r(925),r(169),r(170),r(191),r(469),r(285),r(471),r(470)},function(e,t,r){"use strict";var i=r(181),n=r(0),s=r(1),a=r(7),o=r(2),l=r(826),c=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},d=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let u=class extends i.a{get itemIdentifier(){return n.a.Path}itemDefaultPropertyStore(){return d(this,void 0,void 0,(function*(){const e=yield this.schemaService.getDefaultPropertyStore(s.a.Binding);return e[n.a.Name]=this.namingService.CreateName(e[n.a.NetType]),e[n.a.Expression]="",e[n.a.Path]="",e}))}createWindowManager(){return new l.a(this.provider)}};u=c([Object(o.a)("binding-collection-editor"),Object(a.b)("BindingCollection")],u)},function(e,t,r){"use strict";var i=r(827),n=r(7),s=r(2),a=r(181),o=r(0),l=r(89),c=r(190),d=r(4),u=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},h=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class p extends c.b{constructor(e,t){super(e,t),this.addAdditionalTemplateToItem=e=>{const t=e;t.additionalTemplate=()=>{var e,r;return t.Value?`\n            <span class="small-inline-color-display" style='background-color: ${null!==(r=null===(e=d.b.kendoColorFromColorString(t.Value))||void 0===e?void 0:e.toCssRgba())&&void 0!==r?r:""}'></span>`:""}},this.addAdditionalTemplateToCurrentItems()}push(...e){null==e||e.forEach(this.addAdditionalTemplateToItem);return super.push(...e)}addAdditionalTemplateToCurrentItems(){this.forEach(this.addAdditionalTemplateToItem)}}let m=class extends a.a{createWindowManager(){return new i.a(this.provider)}transformDisplayText(e){return e?l.a.ToHexColor(e):""}createCollectionEditorListBoxArray(e,t){return new p(e,t)}itemDefaultPropertyStore(){return h(this,void 0,void 0,(function*(){const e=yield this.schemaService.getDefaultPropertyStore(o.a.Color);return e[this.itemIdentifier]="",e}))}get itemIdentifier(){return o.a.Value}};m=u([Object(s.a)("color-collection-editor"),Object(n.b)("Telerik.WebReportDesinger.ColorsCollectionEditor")],m)},function(e,t,r){"use strict";var i=r(110),n=r(469),s=r(7),a=r(2),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends i.a{createWindowManager(){return new n.a(this.provider)}};l=o([Object(a.a)("cross-axis-position-editor-base"),Object(s.b)("DateTimeScaleCrossAxisPositionCollection","NumericalScaleCrossAxisPositionCollection"),Object(s.b)("CategoryScaleCrossAxisPositionCollection","LogarithmicScaleCrossAxisPositionCollection")],l)},function(e,t,r){"use strict";var i=r(110),n=r(7),s=r(2),a=r(470),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends i.a{createWindowManager(){return new a.a(this.provider)}};l=o([Object(s.a)("external-style-sheet-collection-editor"),Object(n.b)("Telerik.Reporting.Design.ESSCollectionEditor")],l)},function(e,t,r){"use strict";var i=r(139),n=r(7),s=r(2),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{removeItemCore(e){super.removeItemCore(e);this.selectedComponent.DeleteAxes()}};o=a([Object(s.a)("graph-coordinate-system-collection-editor"),Object(n.b)("GraphCoordinateSystemCollection")],o)},function(e,t,r){"use strict";var i=r(139),n=r(7),s=r(2),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{removeItemCore(e){super.removeItemCore(e)}};o=a([Object(s.a)("graph-series-collection-editor"),Object(n.b)("GraphSeriesCollection")],o)},function(e,t,r){"use strict";var i=r(110),n=r(7),s=r(2),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{removeArrayItem(e,t){t[e].deleteSections(),super.removeArrayItem(e,t)}};o=a([Object(s.a)("group-collection-editor"),Object(n.b)("GroupCollection")],o)},function(e,t,r){"use strict";var i=r(139),n=r(471),s=r(7),a=r(2),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends i.a{createWindowManager(){return new n.a(this.provider)}};l=o([Object(a.a)("map-series-collection-editor"),Object(s.b)("Telerik.Reporting.Design.MapSeriesCollectionEditor")],l)},function(e,t,r){"use strict";var i=r(181),n=r(0),s=r(7),a=r(2),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let c=class extends i.a{get itemIdentifier(){return n.a.NetType}itemDefaultPropertyStore(){return l(this,void 0,void 0,(function*(){const e=yield this.schemaService.getDefaultPropertyStore(n.a.TypeSelector);return e[n.a.Type]="",e}))}};c=o([Object(a.a)("selector-collection-editor"),Object(s.b)("SelectorCollection")],c)},function(e,t,r){"use strict";var i=r(181),n=r(0),s=r(1),a=r(7),o=r(2),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let c=class extends i.a{get itemIdentifier(){return n.a.Value}prepareNewItem(e){e[n.a.NetType]=s.a.String,delete e[n.a.Name]}getSelectedItemType(e){let t=e[n.a.NetType];return t===s.a.String&&(t=s.a.CustomValueObject),t}};c=l([Object(o.a)("string-collection-editor"),Object(a.b)("Collection`1","List`1")],c)},function(e,t,r){"use strict";var i=r(110),n=r(0),s=r(7),a=r(2),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let c=class extends i.a{addItem(){return l(this,void 0,void 0,(function*(){this.BeginAddItem();const e=yield this.schemaService.getDefaultPropertyStore(this.collectionItemType);e[n.a.Name]=this.namingService.CreateName(e[n.a.NetType]),e[n.a.Selectors]=[],e[n.a.Style]={};const t=yield this.component.createNonChildComponent(e);t&&(this.addArrayItem(t,e),this.Expanded=!0),this.EndAddItem()}))}removeItem(e){this.component.clearStyleRulesCache(),super.removeItem(e)}saveChanges(){this.component.clearStyleRulesCache(),super.saveChanges()}};c=o([Object(a.a)("style-sheet-editor"),Object(s.b)("StyleSheet")],c)},function(e,t,r){"use strict";var i=r(110),n=r(0),s=r(7),a=r(2),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let c=class extends i.a{addItem(){return l(this,void 0,void 0,(function*(){this.BeginAddItem();const e=yield this.schemaService.getDefaultPropertyStore(this.collectionItemType);e[n.a.Name]=this.namingService.CreateName(e[n.a.NetType]);const t=yield this.component.createChildComponent(e);t&&(this.propertyWrapperProperties.push(e),this.Properties.push(e),this.EndAddItem(),t.Designer.Render(t.Parent.Designer.VisualElementContent))}))}};c=o([Object(a.a)("toc-level-collection-editor"),Object(s.b)("TocLevelCollection")],c)},function(e,t,r){"use strict";var i=r(139),n=r(7),s=r(2),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{};o=a([Object(s.a)("watermark-collection-editor"),Object(n.b)("WatermarkCollection")],o)},function(e,t,r){"use strict";r(473),r(927),r(192),r(928),r(63),r(929),r(472),r(182),r(930),r(931),r(932),r(933),r(934),r(320),r(319)},function(e,t,r){"use strict";var i=r(63),n=r(2),s=r(7),a=r(409),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends i.b{get isResetVisible(){return!1}get optionLabel(){return""}getInstanceTypes(){return this.propertyWrapper.Property.InstanceTypes.map(e=>new i.a(e,e.replace("Encoder","")))}changeInstanceType(){super.changeInstanceType(),a.a.updateValueUI(this.provider)}};l=o([Object(n.a)("barcode-encoder"),Object(s.b)("Telerik.Reporting.Design.BarcodeEncoderEditor")],l)},function(e,t,r){"use strict";var i=r(63),n=r(7),s=r(2),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.b{};o=a([Object(s.a)("icolor-palette-editor"),Object(n.b)("IColorPalette")],o)},function(e,t,r){"use strict";var i=r(63),n=r(2),s=r(7),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.b{getInstanceTypes(){return this.propertyWrapper.Property.InstanceTypes.map(e=>new i.a(e,e.replace("LocationProvider","")))}};o=a([Object(n.a)("location-provider-editor"),Object(s.b)("Telerik.Reporting.Design.LocationProviderEditor")],o)},function(e,t,r){"use strict";var i=r(63),n=r(2),s=r(7),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.b{getInstanceTypes(){return this.propertyWrapper.Property.InstanceTypes.map(e=>new i.a(e,e.replace("Scale"," scale")))}};o=a([Object(n.a)("scale-editor"),Object(s.b)("Scale")],o)},function(e,t,r){"use strict";var i=r(2),n=r(7),s=r(50),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends s.a{};o=a([Object(i.a)("needle-editor"),Object(n.b)("RadialGaugeNeedle")],o)},function(e,t,r){"use strict";var i=r(2),n=r(7),s=r(50),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends s.a{};o=a([Object(i.a)("indicator-editor"),Object(n.b)("LinearGaugeIndicator")],o)},function(e,t,r){"use strict";var i=r(63),n=r(2),s=r(7),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.b{get isResettable(){return!1}get isResetVisible(){return!1}get optionLabel(){return""}getInstanceTypes(){return this.propertyWrapper.Property.InstanceTypes.map(e=>new i.a(e,e.replace("Shape","")))}};o=a([Object(n.a)("shape-type-editor"),Object(s.b)("Telerik.Reporting.Design.ShapeEditor")],o)},function(e,t,r){"use strict";var i=r(63),n=r(2),s=r(7),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.b{getInstanceTypes(){return this.propertyWrapper.Property.InstanceTypes.map(e=>new i.a(e,e.replace("TileProvider","")))}};o=a([Object(n.a)("tile-provider-editor"),Object(s.b)("Telerik.Reporting.Design.TileProviderEditor")],o)},function(e,t,r){"use strict";r(936),r(937),r(74)},function(e,t,r){"use strict";var i=r(10),n=r(2),s=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let a=class extends i.a{get CurrentStepIndex(){return this.getByPropertyName(e=>{e.currentStepIndex})}set CurrentStepIndex(e){this.setByPropertyName(e=>{e.currentStepIndex},e)}get IsCurrentStep(){return this.getByPropertyName(e=>{e.isCurrentStep})}set IsCurrentStep(e){this.setByPropertyName(e=>{e.isCurrentStep},e)}set currentStep(e){this.CurrentStepIndex=e,this.IsCurrentStep=e===this.step}get isStepSet(){return this.step<this.CurrentStepIndex}getTemplate(){return this.templates.Editors.Wizards.wizardStepComponentTemplate}};s([Object(n.b)()],a.prototype,"step",void 0),s([Object(n.b)({updateOnChange:!0})],a.prototype,"currentStep",null),a=s([Object(n.a)("wizard-step")],a)},function(e,t,r){"use strict";var i=r(10),n=r(2),s=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let a=class extends i.a{beforeInit(){super.beforeInit(),this.stepNumberChangedObservable.subscribe(e=>{this.CurrentStep=e.stepNumber})}getTemplate(){return this.templates.Editors.Wizards.wizardStepsComponentTemplate}get CurrentStep(){return this.getByPropertyName(e=>{e.currentStep})}set CurrentStep(e){this.setByPropertyName(e=>{e.currentStep},e)}};s([Object(n.b)()],a.prototype,"stepNumberChangedObservable",void 0),s([Object(n.b)({updateOnChange:!0})],a.prototype,"stepsCount",void 0),a=s([Object(n.a)("wizard-steps")],a)},function(e,t,r){"use strict";r(286),r(163),r(135),r(283),r(90),r(106),r(287),r(288),r(289),r(290),r(315),r(291),r(189)},function(e,t,r){"use strict";var i=r(2),n=r(10),s=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let a=class extends n.a{constructor(){super(...arguments),this.onEditorResetted=new n.c}getTemplate(){return'\n        <span id="#: data.editorId #-reset" data-bind="\n             click: resetToDefaultValue,\n             css:{ -active: resetManager.IsResetDirty }"></span>'}resetToDefaultValue(){this.resetManager.resetToDefaultValue()}};s([i.d],a.prototype,"onEditorResetted",void 0),s([Object(i.b)()],a.prototype,"editorId",void 0),s([Object(i.b)()],a.prototype,"resetManager",void 0),a=s([Object(i.a)("reset-editor")],a)},function(e,t,r){"use strict";var i=r(49),n=r(2),s=r(7),a=r(1),o=r(91),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let c=class extends i.a{get Value(){return this.getByPropertyName(e=>{e.value})}set Value(e){this.setByPropertyName(e=>{e.value},e)}getTemplate(){return this.templates.Editors.charEditorComponentTemplate}createFocusStrategy(){return new o.c(this.visualElement)}updateStateUi(){}beforeInit(){super.beforeInit(),this.refreshValue()}setValue(e){this.propertyWrapper.SetValue(this.Value)}refreshValue(){this.Value=this.propertyWrapper.GetValue(),this.resetManager.checkAndUpdateReset()}};c=l([Object(n.a)("char-editor"),Object(s.b)(a.a.Char)],c)},function(e,t,r){"use strict";var i=r(474),n=r(2),s=r(7),a=r(1),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends i.a{get inputStep(){return 1}};l=o([Object(n.a)("integer-editor"),Object(s.b)(a.a.Int32)],l)},function(e,t,r){"use strict";var i,n,s=r(4),a=r(49),o=r(2),l=r(7),c=r(1),d=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};!function(e){e[e.Date=0]="Date",e[e.DateTime=1]="DateTime"}(n||(n={}));let u=i=class extends a.a{get Date(){return this.getByPropertyName(e=>{e.date})}set Date(e){this.setByPropertyName(e=>{e.date},e)}get DateTime(){return this.getByPropertyName(e=>{e.dateTime})}set DateTime(e){this.setByPropertyName(e=>{e.dateTime},e)}get SelectedDateTimeEditor(){return this.getByPropertyName(e=>{e.selectedDateTimeEditor})}set SelectedDateTimeEditor(e){this.setByPropertyName(e=>{e.selectedDateTimeEditor},e),this.DateTimeEditorDisabled=!(+e===n.DateTime)}get DateTimeEditorDisabled(){return this.getByPropertyName(e=>{e.dateTimeEditorDisabled})}set DateTimeEditorDisabled(e){this.setByPropertyName(e=>{e.dateTimeEditorDisabled},e)}updateStateUi(){}getTemplate(){return this.templates.Editors.dateTimeEditorComponentTemplate}get radioGroupTitle(){return`${this.LocalizedName} ${this.stringResources.ValueType}`}get dateRadioButtonId(){return this.id+"_date_radio"}get timeRadioButtonId(){return this.id+"_time_radio"}get datePickerId(){return this.id+"_datepicker"}get timePickerId(){return this.id+"_timepicker"}beforeInit(){super.beforeInit(),this.DateTime=this.getStoredDateTime(),this.Date=this.getDateFromDateTime(this.DateTime),this.SelectedDateTimeEditor=""+(this.timeEditorInitallyEnabled()?n.DateTime:n.Date)}editorLayoutChanged(e,t){this.updatePropertyWrapper()}getStoredDateTime(){const e=this.getPropertyWrapperValue();if(e){const t=new Date(e);return kendo.timezone.apply(t,"Etc/GMT")}return null}getDateFromDateTime(e){let t;return e&&(t=new Date(e),i.clearTimePart(t)),t}static clearTimePart(e){e.setHours(0),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0)}timeEditorInitallyEnabled(){return!!this.DateTime&&i.hasTimeSet(this.DateTime)}static hasTimeSet(e){return e.getHours()>0||e.getMinutes()>0||e.getSeconds()>0||e.getMilliseconds()>0}updatePropertyWrapper(){if(!(this.Date||+this.SelectedDateTimeEditor===n.DateTime&&this.DateTime))return void this.resetToDefaultValue();const e=this.Date||new Date;if(i.clearTimePart(e),+this.SelectedDateTimeEditor===n.DateTime){const t=this.DateTime;t&&e.setHours(t.getHours(),t.getMinutes(),t.getSeconds())}try{const t=this.formatDate(e);this.updatePropertyWrapperValue(t)}catch(t){s.b.logError(`The entered text "${e}" is not a valid date.`)}}formatDate(e){return`${e.getFullYear().toString()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`+` ${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}Z`}refreshValue(){}};u=i=d([Object(o.a)("date-time-editor"),Object(l.b)("Telerik.WebReportDesigner.WebDesignerDateTimeEditor",c.a.DateTime)],u)},function(e,t,r){"use strict";var i=r(3),n=r(49),s=r(2),a=r(7),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},l=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let c=class extends n.a{get FontNames(){return this.getByPropertyName(e=>{e.fontNames})}set FontNames(e){this.setByPropertyName(e=>{e.fontNames},e)}get SelectedFontName(){return this.getByPropertyName(e=>{e.selectedFontName})}set SelectedFontName(e){this.setByPropertyName(e=>{e.selectedFontName},e)}getTemplate(){return this.templates.Editors.fontNameEditorComponentTemplate}updateStateUi(){}beforeInit(){super.beforeInit(),this.initializeData()}initializeData(){return l(this,void 0,void 0,(function*(){const e=this.provider.getServiceByName(i.a.ISchemaService);this.FontNames=yield e.getFontNames(),this.refreshValue()}))}selectedFontNameChanged(){this.propertyWrapper.SetValue(this.SelectedFontName),this.resetManager.checkAndUpdateReset()}refreshValue(){this.SelectedFontName=this.propertyWrapper.GetValue()}};c=o([Object(s.a)("font-name-editor"),Object(a.b)("System.Drawing.Design.FontNameEditor")],c)},function(e,t,r){"use strict";var i=r(49),n=r(62),s=r(3),a=r(10),o=r(2),l=r(7),c=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let d=class extends i.a{constructor(){super(...arguments),this.selectionChanged=new a.b}get Value(){return this.getByPropertyName(e=>{e.value})}set Value(e){this.setByPropertyName(e=>{e.value},e),this.valueChanged()}updateStateUi(){}getTemplate(){return this.templates.Editors.toggleButtonsEditorComponentTemplate}get isResettable(){return!0}get isResetVisible(){return!1}get propertiesOrder(){return n.a[this.propertyWrapper.Name]}beforeInit(){super.beforeInit(),this.properties=this.childProperties}afterInit(){super.afterInit(),this.refreshValue()}selectedPropertyChanged(e){this.updatePropertyWrapperValue(e.Name)}valueChanged(){this.resetManager.checkAndUpdateReset(),this.selectionChanged.next({selectedProperty:this.properties.find(e=>e.Name===this.Value)})}get childProperties(){const e=this.provider.getServiceByName(s.a.ITypeDescriptorRepository).GetPropertyTypeDescriptor(this.propertyWrapper.Type).GetEnumValues(),t=[];for(const r of this.propertiesOrder)for(const i of e)if(i.Name===r){t.push(i);break}return t}refreshValue(){const e=this.propertyWrapper.GetValue();this.Value!==e&&(this.Value=e)}};d=c([Object(o.a)("toggle-buttons-editor"),Object(l.b)("VerticalAlign","TextAlign")],d)},function(e,t,r){"use strict";var i=r(10),n=r(2),s=r(8),a=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let o=class extends i.a{constructor(){super(...arguments),this.propertySelected=new i.c}get IsSelected(){return this.getByPropertyName(e=>{e.isSelected})}set IsSelected(e){this.setByPropertyName(e=>{e.isSelected},e)}beforeInit(){super.beforeInit(),this.selectionChanged.subscribe(e=>{var t;return this.IsSelected=this.property.Name===(null===(t=e.selectedProperty)||void 0===t?void 0:t.Name)}),this.stringResources=this.provider.getService(s.a)}getTemplate(){return this.templates.Editors.toggleButtonsPropertyComponentTemplate}radioSelectionChanged(){this.propertySelected.emit(this.property)}};a([Object(n.b)()],o.prototype,"selectionChanged",void 0),a([Object(n.b)({updateOnChange:!0})],o.prototype,"property",void 0),a([n.d],o.prototype,"propertySelected",void 0),o=a([Object(n.a)("toggle-buttons-property")],o)},function(e,t,r){"use strict";var i=r(2),n=r(7),s=r(50),a=r(59),o=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let l=class extends s.a{afterInit(){super.afterInit(),this.Expanded=!0,this.setLocalizedName(this.stringResources.DataSourceReference+this.stringResources.DataSourceReadOnlySuffix)}populateChildEditors(){var e;const t=this.propertyWrapper.Components[0];this.populateChildEditorsCore(null===(e=null==t?void 0:t.DataSourceReference)||void 0===e?void 0:e.PropertyWrappers),this.setChildEditorsToReadOnly(this.childEditors)}setChildEditorsToReadOnly(e){e.forEach(e=>{var t;e.State=a.b.ReadOnly,(null===(t=e.childEditors)||void 0===t?void 0:t.length)&&this.setChildEditorsToReadOnly(e.childEditors)})}};l=o([Object(i.a)("data-source-reference-editor"),Object(n.b)("Telerik.WebReportDesinger.DataSourceReferenceEditor")],l)},function(e,t,r){"use strict";var i=r(2),n=r(10),s=r(830),a=r(831),o=r(832),l=r(8),c=r(833),d=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a},u=function(e,t,r,i){return new(r||(r=Promise))((function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};let h=class extends n.a{constructor(){super(...arguments),this.uploadFilesModel=new o.a,this.uploadAllowedChanging=new n.c,this.uploadSucceeded=new n.c,this.updateUploadFiles=e=>{this.UploadFilesModel.FilesToUpload=e.map(e=>new c.a(e))},this.updateToFailedStatus=e=>{this.getFileWrapper(e.file).updateStatus(!1,e.errorMessage)},this.updateToSuccessfulStatus=e=>{this.getFileWrapper(e).updateStatus(!0)}}getTemplate(){return this.templates.Layouts.FileManagement.UploadComponent.UploadComponentTemplate}get fileInput(){return this.$fileInput[0]}get UploadFilesModel(){return this.getByPropertyName(e=>{e.uploadFilesModel})}set UploadFilesModel(e){this.setByPropertyName(e=>{e.uploadFilesModel},e)}beforeInit(){super.beforeInit(),this.combinedExtensionsAllowed=this.extensionsAllowed&&this.extensionsAllowed.length>0?this.getAllowedExtensionsString():"",this.stringResources=this.provider.getService(l.a)}afterInit(){super.afterInit(),this.$fileInput=$(".twd-uploadComponent"),this.fileUploadManager=new s.a(this.fileInput,this.uploadFile),this.fileUploadManager.filesToUploadChanged.subscribe(this.updateUploadFiles),this.fileUploadManager.fileFailedToUpload.subscribe(this.updateToFailedStatus),this.fileUploadManager.fileSuccessfullyUploaded.subscribe(this.updateToSuccessfulStatus),this.initDropZone(),this.emitUploadTriggered.subscribe(e=>this.tryUploadFiles()),this.uploadAllowedChanging.emit({allowed:!1})}beforeDispose(){super.beforeDispose(),this.fileUploadManager.Dispose(),this.dropZoneService.Dispose(),this.fileUploadManager.filesToUploadChanged.unsubscribe(this.updateUploadFiles),this.fileUploadManager.fileFailedToUpload.unsubscribe(this.updateToFailedStatus),this.fileUploadManager.fileSuccessfullyUploaded.unsubscribe(this.updateToSuccessfulStatus)}onBrowse(){this.$fileInput.click()}onBrowseSelect(){0!==this.fileInput.files.length&&this.refreshListFiles()}initDropZone(){this.dropZoneService=new a.a($(".dropzone-element")),this.dropZoneService.filesDropped.subscribe(e=>{const t=e.event.originalEvent.dataTransfer.files;this.filesDropped(t)}),this.dropZoneService.init()}filesDropped(e){e&&0!==e.length&&(this.fileInput.files=e,this.refreshListFiles())}refreshListFiles(){this.fileUploadManager.refresh(),this.uploadAllowedChanging.emit({allowed:!0})}getFileFormattedSize(e){return Math.ceil(e.file.size/1024)}tryUploadFiles(){return u(this,void 0,void 0,(function*(){this.uploadAllowedChanging.emit({allowed:!1});const e=yield this.fileUploadManager.tryUploadFiles();e&&!e.failed.length&&this.uploadSucceeded.emit()}))}getFileWrapper(e){return this.UploadFilesModel.FilesToUpload.find(t=>t.file.name===e.name)}onRemove(e){const t=$(e.currentTarget).data("file-name"),r=this.UploadFilesModel.FilesToUpload.find(e=>e.file.name===t);this.fileUploadManager.removeFile(r.file),this.fileUploadManager.FilesToUpload.length||this.uploadAllowedChanging.emit({allowed:!1})}getAllowedExtensionsString(){return this.extensionsAllowed.map(e=>e.startsWith(".")||e.includes("/")?e:"."+e).join(",")}};d([Object(i.b)()],h.prototype,"extensionsAllowed",void 0),d([Object(i.b)()],h.prototype,"uploadFile",void 0),d([Object(i.b)()],h.prototype,"multipleFilesAllowed",void 0),d([Object(i.b)()],h.prototype,"emitUploadTriggered",void 0),d([i.d],h.prototype,"uploadAllowedChanging",void 0),d([i.d],h.prototype,"uploadSucceeded",void 0),h=d([Object(i.a)("upload-component")],h)},function(e,t,r){"use strict";r(949),r(950),r(951)},function(e,t,r){"use strict";var i=r(432),n=r(214),s=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let a=class extends i.a{refresh(e){e&&!e.index&&e.sender&&e.sender.source instanceof kendo.data.ObservableObject&&e.sender.source.get(e.field)instanceof kendo.data.ObservableArray||super.refresh(e)}evaluate(){const e=this.currentBinding.get();if(null==e)return null;if(!Number.isInteger(e))throw new Error("repeat: integer expected, received: "+e);return{elementHtml:`\n            # for(let _$index = 0; _$index < ${e}; _$index++) { #\n                ${this.template}\n            # } #\n        `}}get currentBinding(){return this.bindings.repeat}};a=s([Object(n.b)("repeat")],a)},function(e,t,r){"use strict";var i=r(214),n=r(432),s=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let a=class extends n.a{evaluate(){return this.currentBinding.get()?{elementHtml:this.template}:null}get currentBinding(){return this.bindings.renderIf}};a=s([Object(i.b)("renderIf")],a)},function(e,t,r){"use strict";var i=r(214),n=r(433),s=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let a=class extends n.a{get currentBinding(){return this.bindings.childTreeviewDisabled}refresh(e){const t=this.currentBinding.get(),r=$(this.element).find("[data-role='treeview']").data("kendoTreeView");null==r||r.enable(".k-item",!t)}};a=s([Object(i.b)("childTreeviewDisabled")],a)},function(e,t,r){"use strict";r(953)},function(e,t,r){"use strict";var i=r(139),n=r(7),s=r(2),a=r(38),o=r(182),l=function(e,t,r,i){var n,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(s<3?n(a):s>3?n(t,r,a):n(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};let c=class extends i.a{getPopupWindowData(){return{component:this.selectedComponent,canCreateEditorCallback:e=>this.canCreateEditor(e),propertyWrapper:this.propertyWrapper,editorType:a.a.findEditorBuilder(o.b),componentChanged:this.componentChanged}}};c=l([Object(s.a)("report-source-collection-editor"),Object(n.b)("ReportSourceCollection")],c)}]);
