You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
548 KiB
1 line
548 KiB
!function(l){function t(t){for(var e,n,i=t[0],r=t[1],a=t[2],o=0,s=[];o<i.length;o++)n=i[o],Object.prototype.hasOwnProperty.call(h,n)&&h[n]&&s.push(h[n][0]),h[n]=0;for(e in r)Object.prototype.hasOwnProperty.call(r,e)&&(l[e]=r[e]);for(p&&p(t);s.length;)s.shift()();return f.push.apply(f,a||[]),c()}function c(){var t,e,n,i,r,a;for(e=0;e<f.length;e++){for(n=f[e],i=!0,r=1;r<n.length;r++)a=n[r],0!==h[a]&&(i=!1);i&&(f.splice(e--,1),t=d(d.s=n[0]))}return t}function d(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return l[t].call(e.exports,e,e.exports,d),e.l=!0,e.exports}var e,n,i,p,r={},u={5:0},h={5:0},f=[];for(d.e=function(p){var n,t,r,e,a,o,i=[],s={0:1,3:1,4:1,7:1,8:1,9:1,10:1,11:1,12:1,13:1};return u[p]?i.push(u[p]):0!==u[p]&&s[p]&&i.push(u[p]=new Promise(function(t,i){var e,n,r,a,o,s=p+"."+{0:"7a1757984c1e2133d865",3:"4a1b8983301c6a62b0b3",4:"892a8e22dd43601885a2",7:"28765460a15b83b3909c",8:"5e89e9a53ae786ca3963",9:"5316a9700fa6a89cb22e",10:"c011adaf8c67e6a756bf",11:"28765460a15b83b3909c",12:"b11a4600f724a5bedcb8",13:"b7832c21b7471e5576da",14:"31d6cfe0d16ae931b73c",15:"31d6cfe0d16ae931b73c",16:"31d6cfe0d16ae931b73c",17:"31d6cfe0d16ae931b73c"}[p]+".css",l=d.p+s,c=document.getElementsByTagName("link");for(e=0;e<c.length;e++)if(r=(n=c[e]).getAttribute("data-href")||n.getAttribute("href"),"stylesheet"===n.rel&&(r===s||r===l))return t();for(a=document.getElementsByTagName("style"),e=0;e<a.length;e++)if((r=(n=a[e]).getAttribute("data-href"))===s||r===l)return t();(o=document.createElement("link")).rel="stylesheet",o.type="text/css",o.onload=t,o.onerror=function(t){var e=t&&t.target&&t.target.src||l,n=new Error("Loading CSS chunk "+p+" failed.\n("+e+")");n.code="CSS_CHUNK_LOAD_FAILED",n.request=e,delete u[p],o.parentNode.removeChild(o),i(n)},o.href=l,document.getElementsByTagName("head")[0].appendChild(o)}).then(function(){u[p]=0})),0!==(n=h[p])&&(n?i.push(n[2]):(t=new Promise(function(t,e){n=h[p]=[t,e]}),i.push(n[2]=t),(r=document.createElement("script")).charset="utf-8",r.timeout=120,d.nc&&r.setAttribute("nonce",d.nc),r.src=function(t){return d.p+"cea397bf."+({3:"edit-font-dialog",4:"edit-highlight-dialog"}[t]||t)+".js"}(p),a=new Error,e=function(t){var e,n,i;r.onerror=r.onload=null,clearTimeout(o),0!==(e=h[p])&&(e&&(n=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src,a.message="Loading chunk "+p+" failed.\n("+n+": "+i+")",a.name="ChunkLoadError",a.type=n,a.request=i,e[1](a)),h[p]=void 0)},o=setTimeout(function(){e({type:"timeout",target:r})},12e4),r.onerror=r.onload=e,document.head.appendChild(r))),Promise.all(i)},d.m=l,d.c=r,d.d=function(t,e,n){d.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},d.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},d.t=function(e,t){var n,i;if(1&t&&(e=d(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;if(n=Object.create(null),d.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(i in e)d.d(n,i,function(t){return e[t]}.bind(null,i));return n},d.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return d.d(e,"a",e),e},d.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},d.p="",d.oe=function(t){throw console.error(t),t},n=(e=window.webpackJsonp=window.webpackJsonp||[]).push.bind(e),e.push=t,e=e.slice(),i=0;i<e.length;i++)t(e[i]);p=n,f.push([589,1]),c()}([,function(t,e,n){"use strict";var i,a,r,o,s;n.d(e,"a",function(){return s}),i=n(0),a=n.n(i),r=n(8),o={},s=Object(r.a)({},{_init:function(){},create:function(){var t=Object(r.a)(this);return t._init.apply(t,arguments),t},clear:function(){for(var t in o)delete o[t];return this},bind:function(t,e){(o[t]||(o[t]=[])).unshift(e)},unbind:function(t){delete o[t]},trigger:function(t){for(var e=o[t]||[],n=[],i=e.length,r=void 0;i--;)void 0!==(r=e[i].apply(this,[].slice.call(arguments,1)))&&n.push(r);return n.length?a.a.when.apply(null,n):this}})},function(t,e,n){"use strict";function i(){return new Promise(function(e){function n(t){return d[u=t]={},e(u)}if(u=Object(o.a)("lang"))return n(u);l.a.getItem("lang").then(function(t){return u=t||((u=/[a-z]{2}/i.exec(navigator.language))?u[0]:p),n(u)}).catch(function(){return n(p)})})}function r(e){e=e.toLowerCase(),a.a.set("locale",e);var t=n.p;return t&&(t=t.replace(/\/+$/,""),t+="/"),fetch(t+"locales/"+e+".json",{credentials:"same-origin"}).then(function(t){return t.json()}).then(function(t){d[e]=t,c.info(e+" translation file was loaded")})}var a=n(4),o=n(83),s=n(22),l=n(84),c=new s.a("l10n"),p="en",d={},u=void 0;e.a={init:function(){return new Promise(function(e){i().then(function(t){r(t).then(e).catch(function(){r(p).then(e).catch(e)})})})},getCurrentLang:function(){return u},tr:function(t){var e=d[u][t];return void 0===e?t:(1<arguments.length&&(e=function(t,e){for(var n=e.length;n--;)t=t.replace(new RegExp("\\{"+n+"\\}","g"),e[n]);return t}(e,Array.prototype.slice.call(arguments,1))),e)}}},function(t,e,n){"use strict";var r=n(5),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.a=function(t,e){var n,i;if(t=document.createElementNS("http://www.w3.org/2000/svg",t),e&&"object"===(void 0===e?"undefined":a(e)))for(n=(i=Object.keys(e)).length;n--;)Object(r.a)(t,i[n],e[i[n]]);return t}},function(t,e,n){"use strict";var s=n(23),i=n(83),r=n(22),a=new r.a("config"),l=window.config;e.a={init:function(){var n=this;return new Promise(function(e){var t=Object(i.a)("uuid");return t?fetch(n.get("getCustomConfig",{id:t}),{credentials:"same-origin"}).then(function(t){return t.json()}).then(function(t){a.info("custom config was loaded"),Object.assign(l,t),e()}).catch(function(t){a.warn("custom config was not loaded due to:",t),e()}):e()})},set:function(t,e){var n,i=0,r=l;for(n=(t=t.split(":")).length-1;i<=n;i+=1)r[t[i]]||(r[t[i]]={}),t[i+1]||(r[t[i]]=e),r=r[t[i]];return this},get:function(t,e){var n,i,r,a=0,o=l;if(s.a)for(r=(t+"-mobile").split(":"),i=(t=t.split(":")).length-1;a<=i;a+=1){if(!o[r[a]]&&!o[t[a]])return o[t[a]];o=o[r[a]]||o[t[a]]}else for(i=(t=t.split(":")).length-1;a<=i;a+=1){if(!o[t[a]])return o[t[a]];o=o[t[a]]}if(e)for(a=(n=Object.keys(e)).length;a--;)t=n[a],o=o.replace(new RegExp("#{"+t+"}","g"),e[t]);return o}}},function(t,e,n){"use strict";var i=n(101),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.a=function(){var t=arguments;if(2===t.length){if("string"==typeof t[1])return i.a.apply(this,t);if("object"===r(t[1]))return i.c.apply(this,t)}else if(3===t.length)return i.b.apply(this,t);throw new Error("something went wrong")}},function(t,e,n){"use strict";var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.a=function t(e,n,i){var r,a=Object.keys(n),o=void 0,s=void 0;for(e=e||{},r=a.length;r--;)s=n[o=a[r]],i&&"object"===(void 0===s?"undefined":l(s))&&s.constructor!==Array?e[o]=t(e[o],s,i):e[o]=s;return e}},function(t,e,n){"use strict";var i,f,g,r,a,o,u,s,l,c,p,d,m,h,b,v,y,C,S,x,P;n.r(e),i=n(0),f=n.n(i),g=n(4),r=n(12),a=n(137),o=n(1),u=n(2),s=n(96),l=n(35),c=n(15),p=n(165),d=n(8),m=n(3),h=n(18),b=n(59),v=n(5),y=n(42),C=n(32),S=n(23),x=n(38),P=n(46),e.default=Object(d.a)(r.a,{SM:new a.a,disabled:!0,_init:function(t){this._id=t||"ct"+Object(h.a)(),this.prop({Width:50,Height:50}),this.attr({opacity:1,activated:!1,removeable:!0,copyable:!0,minWidth:10,minHeight:10,resizableX:!0,resizableY:!0,resizableXY:!0,movable:!0,selectable:!0})},fillMap:function(){this.fieldMap=l.a.factory(["Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock","Layout:Height","Layout:Left","Layout:Padding","Layout:Top","Layout:Width"])},create:function(){var t=this.createObject(this);return t._init.apply(t,arguments),t.prop("Name",t.formName()),this.SM.add(t),o.a.trigger("component-created",t),t},clone:function(){var t=r.a.clone.apply(this,arguments);return t.attr("activated",!1),t.deleteAttr("group"),t.deleteProp("GroupIndex"),t.collection=this.collection,t},_createCircle:function(t){t=t||{};var e=g.a.get("circleButtonWidth"),n=g.a.get("circleButtonHeight"),i=f()(Object(m.a)("g",{class:"fr-hidden"})),r=f()(Object(m.a)("rect")),a=Object(m.a)("use");return void 0!==t.addGroupClass&&i.addClass(t.addGroupClass),void 0!==t.addBackClass&&r.addClass(t.addBackClass),Object(b.a)(a,"xlink:href","#d-button-circle"),Array.isArray(t.transform)&&(Object(v.a)(a,"transform","translate({0},{1})".format(t.transform[0],t.transform[1])),Object(v.a)(r[0],"transform","translate({0},{1})".format(t.transform[0],t.transform[1]))),i.append(a,r),r.css("fill","transparent"),r.attr({width:2*e,height:2*n}),i},resizingComponents:function(){var t,e,n,i,r=this,a=g.a.get("circleButtonWidth"),o=g.a.get("circleButtonHeight"),s=this.prop("Width"),l=this.prop("Height"),c=this.attr("resizableX"),p=this.attr("resizableY"),d=this.attr("resizableXY");if(this.resizingElements=[{className:"nw-resize",enabled:d,coord:[0,0],vert:!0,horz:!0,hidden:!1},{className:"n-resize",enabled:p,coord:[s/2,0],vert:!0,horz:!1,hidden:!1},{className:"ne-resize",enabled:d,coord:[s,0],vert:!0,horz:!0,hidden:!1},{className:"e-resize",enabled:c,coord:[s,l/2],vert:!1,horz:!0,hidden:!1},{className:"se-resize",enabled:d,coord:[s,l],vert:!0,horz:!0,hidden:!1},{className:"s-resize",enabled:p,coord:[s/2,l],vert:!0,horz:!1,hidden:!1},{className:"sw-resize",enabled:d,coord:[0,l],vert:!0,horz:!0,hidden:!1},{className:"w-resize",enabled:c,coord:[0,l/2],vert:!1,horz:!0,hidden:!1}],i=this.resizingElements.length,!this.$resizing)for(this.$resizing=f()(),n=0;n<i;n+=1)(t=this._createCircle({addGroupClass:"resizing-component",addBackClass:this.resizingElements[n].className})).attr("title",u.a.tr("Zoom")),r.$resizing.push(t),r.$controlElements.append(t);for(n=0;n<i;n+=1)e=this.resizingElements[n],t=this.$resizing[n],e.enabled?Object(v.a)(t[0],"transform","translate({0},{1})".format(e.coord[0]-a,e.coord[1]-o)):t.remove();return this},eachResizingItem:function(t,e){var n,i,r=this.$resizing||[],a=0,o=r.length,s=this.resizingElements||[];for(t=t||function(){},a=0;a<o;a+=1)i=s[a],(n=r[a])&&(e||!i||!i.hidden&&i.enabled)&&t.call(this,n,i);return this},addUpControl:function(t){var e;if(t&&(t.$upClone=t.clone(),t.$upClone.$group=t,e=this.getPage()))return this.$upControls||(this.$upControls=f()(Object(m.a)("g",{class:"component component-up-controls"})),this.$upControls[0].component=this,e.$upControlElements.append(this.$upControls)),this.syncUpControlsPos(),this.$upControls.append(t.$upClone),this},removeUpControl:function(t,e){if(t&&t.$upClone)return t.$upClone.remove(),delete t.$upClone,!1!==e&&this.$upControls&&this.$upControls.empty(),this},hideUpControl:function(t){if(t&&t.$upClone)return t.$upClone.addClass("fr-hidden"),this},showUpControl:function(t){if(t&&t.$upClone)return t.$upClone.removeClass("fr-hidden"),this},hideUpControls:function(){this.hideUpControl(this.$angleSlider),this.eachResizingItem(function(t){this.hideUpControl(t)})},showUpControls:function(){this.showUpControl(this.$angleSlider),this.eachResizingItem(function(t){this.showUpControl(t)})},syncUpControls:function(){this.removeUpControl(this.$angleSlider),this.addUpControl(this.$angleSlider),this.eachResizingItem(function(t,e){this.removeUpControl(t,!1),e&&!e.hidden&&e.enabled&&this.addUpControl(t)},!0)},syncUpControlsPos:function(){var t,e,n=0;if(this.$upControls&&(t=this.getPage()))return(e=this.getContainer()).isBand()||e.isDialog()||(n=1),Object(v.a)(this.$upControls[0],"transform","translate({0}, {1})".format(this.absoluteLeft()+(t.attr("margin")||0)+(t.attr("padding")||0)+n,this.absoluteTop()+t.attr("padding")+n)),this},showAngleSlider:function(){this.$angleSlider&&this.canModify()&&this.canEdit()&&(this.$angleSlider.removeClass("fr-hidden"),this.addUpControl(this.$angleSlider))},hideAngleSlider:function(){this.$angleSlider&&(this.$angleSlider.addClass("fr-hidden"),this.removeUpControl(this.$angleSlider))},showCustomComponents:function(){},hideCustomComponents:function(){},hideResizingComponents:function(){this.eachResizingItem(function(t){t.addClass("fr-hidden"),this.removeUpControl(t)})},showResizingComponents:function(t){var n=this.prop("Height"),i=this.prop("Width");this.eachResizingItem(function(t){t.removeClass("fr-hidden"),this.addUpControl(t)}),t&&this.eachResizingItem(function(t,e){e&&(e.horz&&!e.vert&&n<g.a.get("minComponentHeightForResizingElements")||e.vert&&!e.horz&&i<g.a.get("minComponentWidthForResizingElements"))&&(t.addClass("fr-hidden"),this.removeUpControl(t,!1))})},appendAngleSlider:function(){var t;return this.$angleSlider||(this.$angleSlider=this._createCircle({addGroupClass:"fr-angle-slider",transform:[0,-15]}),this.$angleSlider.css("cursor","col-resize"),g.a.get("selectedPolylineStrokeWidth"),t=Object(m.a)("line",{x1:6,y1:-10,x2:6,y2:10,stroke:g.a.get("colors")["angle-slider"],"stroke-width":1}),this.$angleSlider.append(t),this.$controlElements.append(this.$angleSlider)),Object(v.a)(this.$angleSlider[0],"transform","translate("+(this.prop("Width")/2-6)+", "+-10+")"),this},appendEdges:function(){var r=this,t=g.a.get("polylineWidth"),e=this.prop("Width")-t,n=this.prop("Height")-t;return this.$edges||(this.$edges=f()(),f.a.each(["0 "+t+", 0 0, "+t+" 0","0 0, "+t+" 0, "+t+" "+t,"0 0, 0 "+t+", "+t+" "+t,"0 "+t+", "+t+" "+t+", "+t+" 0"],function(t,e){var n=f()(Object(m.a)("g")),i=f()(Object(m.a)("polyline",{fill:g.a.get("polylineFill"),stroke:g.a.get("polylineStroke"),"stroke-width":g.a.get("polylineStrokeWidth")}));n.append(i),i.attr("points",e),r.$edges.push(n),r.$controlElements.append(n)})),Object(v.a)(this.$edges[0][0],"transform","translate(0, 0)"),Object(v.a)(this.$edges[1][0],"transform","translate("+e+", 0)"),Object(v.a)(this.$edges[2][0],"transform","translate(0, "+n+")"),Object(v.a)(this.$edges[3][0],"transform","translate("+e+", "+n+")"),this},appendBorders:function(){function t(t){i.$borders[t]&&(i.$borders[t].remove(),delete i.$borders[t])}var e,n,i=this,r=this.prop("Border.Lines"),a=this.prop("Border.Color"),o=this.prop("Border.Width"),s=this.prop("Border.Style"),l=this.prop("Border.Shadow"),c=this.prop("Border.ShadowWidth"),p=this.prop("Border.ShadowColor"),d=[],u=this.prop("Width"),h=this.prop("Height");return this.$borders||(this.$borders={}),r&&"None"!==r&&(d=r.split(/,[\s]?/)),d.length?f.a.each((e={},n=g.a.get("dasharrays"),(d.includes("All")||d.includes("Top"))&&(e.top={x1:.5,x2:u,y1:.5,y2:.5,color:i.prop("Border.TopLine.Color")||a,width:i.prop("Border.TopLine.Width")||o,dasharray:n[i.prop("Border.TopLine.Style")||s]}),(d.includes("All")||d.includes("Right"))&&(e.right={x1:u,x2:u,y1:.5,y2:h,color:i.prop("Border.RightLine.Color")||a,width:i.prop("Border.RightLine.Width")||o,dasharray:n[i.prop("Border.RightLine.Style")||s]}),(d.includes("All")||d.includes("Bottom"))&&(e.bottom={x1:.5,x2:u,y1:h,y2:h,color:i.prop("Border.BottomLine.Color")||a,width:i.prop("Border.BottomLine.Width")||o,dasharray:n[i.prop("Border.BottomLine.Style")||s]}),(d.includes("All")||d.includes("Left"))&&(e.left={x1:.5,x2:.5,y1:.5,y2:h,color:i.prop("Border.LeftLine.Color")||a,width:i.prop("Border.LeftLine.Width")||o,dasharray:n[i.prop("Border.LeftLine.Style")||s]}),e),function(t,e){i.$borders[t]||(i.$borders[t]=f()(Object(m.a)("line")),i.$controlElements.before(i.$borders[t])),i.$borders[t].attr({x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2}).css({stroke:e.color,"stroke-width":e.width,"stroke-dasharray":e.dasharray})}):(f.a.each(this.$borders,function(){f()(this).remove()}),this.$borders={}),d.includes("All")||(!d.includes("Left")&&this.$borders.left&&t("left"),!d.includes("Top")&&this.$borders.top&&t("top"),!d.includes("Right")&&this.$borders.right&&t("right"),!d.includes("Bottom")&&this.$borders.bottom&&t("bottom")),l?(this.$shadow&&this.$shadow.length||(this.$shadow=f()(Object(m.a)("rect"))),this.$shadow.attr({width:u,height:h,x:c,y:c}),this.$shadow.css("fill",p),"transparent"===this.prop("Fill.Color")&&this.$moveBlock.css("fill","#ffffff"),this.$g.prepend(this.$shadow)):this.$shadow&&this.$shadow.length&&this.$shadow.remove(),this},appendPadding:function(){var t,e,n,i,r,a=this.prop("Width"),o=this.prop("Height");return this.attr("withPadding")?(n=(r=this.prop("Padding"))?(i=+(r=r.split(", ")||[])[0]||0,t=+r[1]||0,e=+r[2]||0,+r[3]||0):(i=this.prop("Padding.Left")||0,t=this.prop("Padding.Top")||0,e=this.prop("Padding.Right")||0,this.prop("Padding.Bottom")||0),this.prop("Padding.Left",Math.round(i)),this.prop("Padding.Top",Math.round(t)),this.prop("Padding.Right",Math.round(e)),this.prop("Padding.Bottom",Math.round(n)),this.deleteProp("Padding"),(a=a-i-e)<0&&(a=0),(o=o-t-n)<0&&(o=0),Object(v.a)(this.body,"transform","translate({0},{1})".format(i,t))):Object(v.a)(this.$contentGroup[0],"transform","translate(1,1)"),"TableObject"!==this.type&&"MatrixObject"!==this.type||(a+=2,o+=2),this.attr("innerWidth",a),this.attr("innerHeight",o),this.$content&&this.$content.attr({width:a,height:o}),this},setPosition:function(t,e,n){var i=this.getContainer(),r=0;return Object(P.a)(t)||(t=this.prop("Left")),Object(P.a)(e)||(e=this.prop("Top")),i&&i.isBand()&&(t<0&&(t=0),e+(r=i.prop("Top")-i.attr("padding"))<0&&(e=-r)),this.prop("Left",t,n),this.prop("Top",e,n),this.attr("right",t+this.prop("Width")),this.attr("bottom",e+this.prop("Height")),Object(v.a)(this.g,"transform","translate({0},{1})".format(t,e)),this.updateCoords&&this.updateCoords(),this},isActivated:function(){return!!this.attr("activated")},isSelectable:function(){return!!this.attr("selectable")},activate:function(){var t,e,n,i;if(!this.isSelectable())return this;if(!this.isActivated()&&(Object(y.a)(this.g,"selected"),this.attr("activated",!0),this.$edges&&(t=g.a.get("selectedPolylineStrokeWidth"),this.$edges.each(function(){Object(v.a)(f()(this).find("polyline")[0],{"stroke-width":t})})),this.showResizingComponents(!0),this.showAngleSlider(),this.showCustomComponents(),e=this.prop("GroupIndex"),n=this.attr("group"),e&&n))for(i=n.length;i--;)n[i]!==this&&n[i].activate();return this},deactivate:function(){var t;return this.isActivated()&&(Object(C.a)(this.g,"selected"),this.attr("activated",!1),this.$edges&&(t=g.a.get("polylineStrokeWidth"),this.$edges.each(function(){Object(v.a)(f()(this).find("polyline")[0],{"stroke-width":t})})),this.hideResizingComponents(),this.hideAngleSlider(),this.hideCustomComponents()),this},reactivate:function(){return this.deactivate().activate()},show:function(){Object(C.a)(this.g,"fr-hidden")},hide:function(){Object(y.a)(this.g,"fr-hidden")},createMoveBlock:function(){var t=g.a.get("rectButtonWidth"),e=g.a.get("rectButtonHeight"),n=f()(Object(m.a)("g",{class:"move"})),i=f()(Object(m.a)("rect")),r=Object(m.a)("use");return Object(b.a)(r,"xlink:href","#d-button-rect"),i.attr({width:2*t,height:2*e,x:-t/2,y:-e/2}),Object(v.a)(n[0],"transform","translate(1,"+-(e-1)+")"),n.append(r,i),n},renderContainer:function(t,e){return this.$g||(this.g=Object(m.a)("g",{class:"component "+(this.type||"")}),this.$g=f()(this.g),this.controlElements=Object(m.a)("g"),this.$controlElements=f()(this.controlElements),this.body=Object(m.a)("g"),this.$body=f()(this.body),this.content=Object(m.a)("svg",{class:"move"}),this.$content=f()(this.content),this.$contentGroup=f()(Object(m.a)("g")),this.$sticks=f()(Object(m.a)("g")),this.$content.append(this.$contentGroup),this.$body.append(this.$content),this.$g.append(this.$body,this.$sticks,this.$controlElements),this.g.component=this),this.setPosition(t,e),this.$g},render:function(t){var e=this.prop("Width"),n=this.prop("Height");return t=t||{},this.renderContainer(t.left,t.top),this.touched&&(this.$moveBlock||(this.$moveBlock=this.$workspace=f()(Object(m.a)("rect",{class:"move move-decor"})),this.$g.prepend(this.$moveBlock)),this.$moveBlock.attr({width:e,height:n}),this.$moveBlock.css({opacity:this.attr("opacity"),fill:this.getFillColor()}),this.appendBorders(),this.appendEdges(),this.resizingComponents(),this.appendPadding(),S.a||void 0===this.prop("Angle")||this.appendAngleSlider(),this.syncUpControlsPos(),this.attr("bottom",this.prop("Top")+n),this.touched=!1,this.attr("removed")&&(this.attr("removed",!1),this.show())),this.$g},remove:function(){return!!r.a.remove.call(this)&&(this.deactivate(),this.attr("removed",!0),this.hide(),!0)},isComponent:function(){return!0},isDialogControl:function(){return!1},canBeRemoved:function(){return!0},absoluteLeft:function(){var t=this.getContainer(),e=this.prop("Left");return t&&(t.isComponent()?(t.getTable&&(e+=t.prop("Left"),t=t.getTable()),e+=t.absoluteLeft()):e+=t.prop("Left")),e},absoluteTop:function(){var t=this.getContainer(),e=this.prop("Top");return t&&(t.isComponent()?(t.getTable&&(e+=t.prop("Top"),t=t.getTable()),e+=t.absoluteTop()):e+=t.prop("Top")-t.attr("padding")||0),e},getContextMenuTitle:function(){return this.toString()},getContextMenuItems:function(){function t(t){e.onChangeCM(t),e._updateProperties()}var e=this;return[{name:u.a.tr("ComponentMenu Hyperlink"),type:"default",closeAfter:!0,onClick:function(){o.a.trigger("hyperlink-editor",e)}},{type:"separator"},{name:u.a.tr("ComponentMenu CanGrow"),type:"checkbox",curVal:e.prop("CanGrow"),prop:"CanGrow",onChange:t},{name:u.a.tr("ComponentMenu CanShrink"),type:"checkbox",curVal:e.prop("CanShrink"),prop:"CanShrink",onChange:t},{name:u.a.tr("ComponentMenu GrowToBottom"),type:"checkbox",curVal:e.prop("GrowToBottom"),prop:"GrowToBottom",onChange:t},{type:"separator"},{name:u.a.tr("Menu Edit Cut"),type:"default",closeAfter:!0,shortcut:"Ctrl + X",onClick:function(){o.a.trigger("cut",f()(e))}},{name:u.a.tr("Menu Edit Copy"),type:"default",closeAfter:!0,shortcut:"Ctrl + C",onClick:function(){o.a.trigger("copy",f()(e))}},{name:u.a.tr("Menu Edit Paste"),type:"default",disabled:!window.DSG.currentReport.getCurrentPage().buffer.length,closeAfter:!0,shortcut:"Ctrl + V",onClick:function(){setTimeout(function(){o.a.trigger("paste")},100)}},{name:u.a.tr("Menu Edit Delete"),type:"default",disabled:!e.canBeRemoved(),closeAfter:!0,shortcut:"Del",onClick:function(){o.a.trigger("remove",e)}},{type:"separator"},{name:u.a.tr("Layout BringToFront"),type:"default",closeAfter:!0,onClick:function(){o.a.trigger("bring-to-front",e)}},{name:u.a.tr("Layout SendToBack"),type:"default",closeAfter:!0,onClick:function(){o.a.trigger("send-to-back",e)}}]},rightClick:function(t){return new s.a(t,this.getContextMenuTitle(),this.getContextMenuItems(),this.getContextMenuEventName()),!1},createAspectRatio:function(){this.attr("aspectRatio",this.prop("Width")/this.prop("Height"))},calculateARSize:function(t,e){var n=this.attr("minWidth"),i=this.attr("minHeight"),r=this.attr("aspectRatio");return r<1?t=e*r:e=t/r,n<t&&i<e?(this.prop("Width",t),this.prop("Height",e),[t,e]):[n,i]},rotating:function(){this.render()},rotatingEnd:function(t,e){var n=e.original.angle;this.prop("Angle")!==n&&(c.a.push({context:this,func:function(t){this.prop("Angle",t),this.render()},undoData:[n],redoData:[this.prop("Angle")]}),o.a.trigger("update-menu",this))},resizingStart:function(){this.attr("withAspectRatio")&&this.createAspectRatio()},getResizing:function(e){function t(t){return t=".{0}-resize".format(t),e.is(t)||e.parents(t).length}var n,l=this.attr("minWidth"),c=this.attr("minHeight"),p=this.attr("withAspectRatio");return e.is(".resizing-component")||e.parents(".resizing-component").length?t("nw")?(n=function(t,e){if(this.canResizeXY()){var n=this.prop("Left"),i=this.prop("Top"),r=Object(x.a)([t-n,e-i]),a=this.prop("Width"),o=this.prop("Height"),s=[];n<t?(t=n+r[0],s[0]=a-r[0]):(t=n-r[0],s[0]=a+r[0]),i<e?(e=i+r[1],s[1]=o-r[1]):(e=i-r[1],s[1]=o+r[1]),p?(s=this.calculateARSize(s[0],s[1]))[0]>l&&s[1]>c&&this.setPosition(n+a-s[0],i+o-s[1]):(s[0]>=l&&(this.setPosition(t),0===Math.round(this.prop("Left")-t)&&this.prop("Width",s[0])),s[1]>=c&&(this.setPosition(null,e),0===Math.round(this.prop("Top")-e)&&this.prop("Height",s[1])))}}).dir="nw":t("n")?(n=function(t,e){if(this.canResizeY()){var n,i=this.prop("Top"),r=Object(x.a)([null,e-i]);n=i<e?(e=i+r[1],this.prop("Height")-r[1]):(e=i-r[1],this.prop("Height")+r[1]),c<=n&&(this.setPosition(null,e),0===Math.round(this.prop("Top")-e)&&this.prop("Height",n))}}).dir="n":t("ne")?(n=function(t,e){if(this.canResizeXY()){var n,i=this.attr("right"),r=this.prop("Top"),a=Object(x.a)([t-i,e-r]),o=this.prop("Height");n=r<e?(e=r+a[1],o-a[1]):(e=r-a[1],o+a[1]),t=i<t?i+a[0]:i-a[0],t-=this.prop("Left"),p?(n=this.calculateARSize(t,n)[1],c<n&&this.setPosition(null,r+o-n)):(c<=n&&(this.setPosition(null,e),0===Math.round(this.prop("Top")-e)&&this.prop("Height",n)),l<t&&this.prop("Width",t))}}).dir="ne":t("e")?(n=function(t){if(this.canResizeX()){var e=this.attr("right"),n=Object(x.a)([t-e]);t=e<t?e+n[0]:e-n[0],t-=this.prop("Left"),l<t&&this.prop("Width",t)}}).dir="e":t("se")?(n=function(t,e){if(this.canResizeXY()){var n=this.attr("right"),i=this.attr("bottom"),r=Object(x.a)([t-n,e-i]);t=n<t?n+r[0]:n-r[0],t-=this.prop("Left"),e=i<e?i+r[1]:i-r[1],e-=this.prop("Top"),p?this.calculateARSize(t,e):(this.prop("Width",t<l?l:t),this.prop("Height",e<c?c:e))}}).dir="se":t("s")?(n=function(t,e){if(this.canResizeY()){var n=this.attr("bottom"),i=Object(x.a)([null,e-n]);e=n<e?n+i[1]:n-i[1],e-=this.prop("Top"),this.prop("Height",e<c?c:e)}}).dir="s":t("sw")?(n=function(t,e){if(this.canResizeXY()){var n,i=this.prop("Left"),r=this.attr("bottom"),a=this.prop("Width"),o=Object(x.a)([t-i,e-r]);n=i<t?(t=i+o[0],a-o[0]):(t=i-o[0],a+o[0]),e=r<e?r+o[1]:r-o[1],e-=this.prop("Top"),p?(n=this.calculateARSize(n,e)[0],l<n&&this.setPosition(i+a-n)):(l<n&&(this.setPosition(t),0===Math.round(this.prop("Left")-t)&&this.prop("Width",n)),this.prop("Height",e<c?c:e))}}).dir="sw":t("w")&&((n=function(t){if(this.canResizeX()){var e,n=this.prop("Left"),i=Object(x.a)([t-n]);e=n<t?(n+=i[0],this.prop("Width")-i[0]):(n-=i[0],this.prop("Width")+i[0]),l<e&&(this.setPosition(n),0===Math.round(this.prop("Left")-n)&&this.prop("Width",e))}}).dir="w"):(e.is(".resizing-line")||e.parents(".resizing-line").length)&&t("se")&&((n=function(t,e){this.canResizeX()&&(t-=this.prop("Left"),this.prop("Width",t)),this.canResizeY()&&(e-=this.prop("Top"),this.prop("Height",e))}).dir="se"),n},fillPropsVCL:function(){var t,e,n;r.a.fillPropsVCL.apply(this,arguments),this.prop("Frame.Width")&&(this.prop("Border.Width",this.prop("Frame.Width")),this.deleteProp("Frame.Width")),(t=this.prop("Frame.Typ"))&&((e=p.a.borderLinesToNET(t))&&this.prop("Border.Lines",e),this.deleteProp("Frame.Typ")),(n=this.prop("Frame.Style"))&&((n=p.a.borderStyleToNET(n))&&this.prop("Border.Style",n),this.deleteProp("Frame.Style")),this.prop("Frame.DropShadow")&&(this.prop("Border.Shadow",this.prop("Frame.DropShadow")),this.prop("Border.ShadowWidth",this.prop("Frame.ShadowWidth")),this.prop("Border.ShadowColor",this.prop("Frame.ShadowColor")),this.deleteProp("Frame.DropShadow"),this.deleteProp("Frame.ShadowWidth"),this.deleteProp("Frame.ShadowColor"))},toXMLVCL:function(t){var n=this;return new Promise(function(e){r.a.toXMLVCL.call(n,t).then(function(t){return t=f()(t),e(t[0])})})}})},function(t,e,n){"use strict";var r=n(6);e.a=function(t,e){var n=Object.create(t,{_super:{value:t}}),i=[].slice.apply(arguments).slice(2);return e&&Object(r.a)(n,e),n.init&&n.init.apply(n,i),n}},,function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(15),o=n(35),s=n(1),l=n(6),c=function(){var t=window.DSG.currentReport;return c=function(){return t},t};Object(l.a)(o.a.data,{Appearance:{label:"Properties Appearance",propName:"Appearance",fields:{Appearance:{label:"Properties Appearance",type:"select",collection:["Normal","Button"]},Angle:{label:"Properties Angle",type:"number"},AsBitmap:{label:"Properties AsBitmap",type:"checkbox"},BackColor:{label:"Properties BackColor",type:"color"},ForeColor:{label:"Properties ForeColor",type:"color"},Checked:{label:"Properties Checked",type:"checkbox",afterSetValue:function(t,e){this.canHaveProp("Appearance:CheckState")&&(this.prop("CheckState",e?"Checked":"Unchecked"),this.render(),s.a.trigger("update-properties-panel",this))}},CheckState:{label:"Properties CheckState",type:"select",collection:["Checked","Indeterminate","Unchecked"]},Image:{label:"Properties Image",type:"file"},CheckAlign:{label:"Properties CheckAlign",type:"select",collection:["TopLeft","TopCenter","TopRight","MiddleLeft","MiddleCenter","MiddleRight","BottomLeft","BottomCenter","BottomRight"]},TextAlign:{label:"Properties TextAlign",type:"select",collection:["TopLeft","TopCenter","TopRight","MiddleLeft","MiddleCenter","MiddleRight","BottomLeft","BottomCenter","BottomRight"]},ImageAlign:{label:"Properties ImageAlign",type:"select",collection:["TopLeft","TopCenter","TopRight","MiddleLeft","MiddleCenter","MiddleRight","BottomLeft","BottomCenter","BottomRight"]},TextImageRelation:{label:"Properties TextImageRelation",type:"select",collection:["Overlay","ImageAboveText","TextAboveImage","ImageBeforeText","TextBeforeImage"]},ThreeState:{label:"Properties ThreeState",type:"checkbox"},DrawMode:{label:"Properties DrawMode",type:"select",collection:["Normal","OwnerDrawFixed","OwnerDrawVariable"]},ItemHeight:{label:"Properties ItemHeight",type:"number"},DropDownHeight:{label:"Properties DropDownHeight",type:"number"},DropDownStyle:{label:"Properties DropDownStyle",type:"select",collection:["Simple","DropDown","DropDownList"]},DropDownWidth:{label:"Properties DropDownWidth",type:"number"},MaxDropDownItems:{label:"Properties MaxDropDownItems",type:"number"},Cursor:{label:"Properties Cursor",type:"select",collection:["AppStarting","Arrow","Cross","Default","IBeam","No","SizeAll","SizeNESW","SizeNS","SizeNWSE","SizeWE","UpArrow","WaitCursor","Help","HSplit","VSplit","NoMove2D","NoMoveHoriz","NoMoveVert","PanEast","PanNE","PanNorth","PanNW","PanSE","PanSouth","PanSW","PanWest","Hand"]},Curve:{label:"Properties Curve",type:"number"},EvenStyle:{label:"Properties EvenStyle",type:"select",collection:function(){var t=c().styles,e=[""];return t.eachEntity(function(t){e.push(t.prop("Name"))}),e}},EvenStylePriority:{label:"Properties EvenStylePriority",type:"select",collection:["UseFill","UseAll"]},FirstTabOffset:{label:"Properties FirstTabOffset",type:"number"},FormBorderStyle:{label:"Properties FormBorderStyle",type:"select",collection:["None","FixedSingle","Fixed3D","FixedDialog","Sizable","FixedToolWindow","SizableToolWindow"]},RightToLeft:{label:"Properties RightToLeft",type:"select",collection:["No","Yes","Inherit"]},FontWidthRatio:{label:"Properties FontWidthRatio",type:"number"},Grayscale:{type:"checkbox",label:"Properties Grayscale"},HoverStyle:{type:"text",label:"Properties HoverStyle"},Tile:{type:"checkbox",label:"Properties Tile"},Transparency:{type:"number",label:"Properties Transparency",attrs:{min:0,max:1,step:.1}},TransparentColor:{type:"color",label:"Properties TransparentColor"},LineHeight:{type:"unit",label:"Properties LineHeight"},ParagraphOffset:{type:"unit",label:"Properties ParagraphOffset"},LinearPointer:{label:"Properties Pointer",fields:{"Pointer.BorderColor":{label:"Properties BorderColor",type:"color"},"Pointer.Color":{label:"Properties Color",type:"color"}}},ProgressPointer:{label:"Properties Pointer",fields:{"Pointer.BorderColor":{label:"Properties BorderColor",type:"color"},"Pointer.Color":{label:"Properties Color",type:"color"},"Pointer.Type":{label:"Properties Type",type:"select",collection:["Full","Small"]},"Pointer.SmallPointerWidth":{label:"Properties SmallPointerWidth",type:"number",attrs:{min:0,max:1,step:.1},setValue:function(t,e){0<=e&&e<=1?this.prop(t,e):(this.prop(t,.1),s.a.trigger("update-properties-panel",this))}}}},Label:{label:"Properties Label",fields:{"Label.Color":{label:"Properties Color",type:"color"},"Label.Decimals":{label:"Properties Decimals",type:"number",attrs:{min:0,max:1,step:.1}},"Label.Font":o.a._font("Label.")}},Inverted:{label:"Properties Inverted",type:"checkbox"},Scale:{label:"Properties Scale",fields:{FirstSubScale:{label:"Properties FirstSubScale",fields:{"Scale.FirstSubScale.Enabled":{type:"checkbox",label:"Properties Enabled"},"Scale.FirstSubScale.ShowCaption":{type:"checkbox",label:"Properties ShowCaption"}}},SecondSubScale:{label:"Properties SecondSubScale",fields:{"Scale.SecondSubScale.Enabled":{type:"checkbox",label:"Properties Enabled"},"Scale.SecondSubScale.ShowCaption":{type:"checkbox",label:"Properties ShowCaption"}}},Font:o.a._font("Scale."),MajorTicks:{label:"Properties MajorTicks",fields:{"Scale.MajorTicks.Color":{label:"Properties Color",type:"color"},"Scale.MajorTicks.Width":{label:"Properties Width",type:"number"}}},MinorTicks:{label:"Properties MinorTicks",fields:{"Scale.MinorTicks.Color":{label:"Properties Color",type:"color"},"Scale.MinorTicks.Width":{label:"Properties Width",type:"number"}}}}},Style:{type:"select",label:"Properties Style",collection:function(){var t=c().styles,e=[""];return t.eachEntity(function(t){e.push(t.prop("Name"))}),e},setValue:function(t,e){function n(t,n){var e=r.findOneBy({Name:t});!function(e){var t=e.prop("Style");t&&((t=c().styles.findOneBy({Name:t}))&&(t.eachProp(function(t){"Name"!==t&&e.deleteProp(t)}),t.eachAttr(function(t){e.deleteAttr(t)})),e.setDefaultFont&&e.setDefaultFont())}(n),e&&(e.eachProp(function(t,e){"Name"!==t&&n.prop(t,e)}),e.eachAttr(function(t,e){n.attr(t,e)})),n.prop("Style",t),n.render()}var i=this.prop("Style"),r=c().styles;i!==e&&(e=e||"",a.a.push({func:n,undoData:[i||"",this],redoData:[e,this]}),n(e,this))}},ScrollBars:{label:"Properties ScrollBars",type:"select",collection:["None","Horizontal","Vertical","Both"]},TabWidth:{type:"number",label:"Properties TabWidth"},Watermark:{label:"Properties Watermark",fields:{"Watermark.Enabled":{label:"Properties Enabled",type:"checkbox"},"Watermark.Font":o.a._font("Watermark."),"Watermark.Image":{label:"Properties Image",type:"file"},"Watermark.ImageSize":{label:"Properties ImageSize",type:"select",collection:["Normal","Center","Stretch","Zoom","Tile"]},"Watermark.ImageTransparency":{label:"Properties ImageTransparency",type:"number",attrs:{min:0,max:1,step:.1}},"Watermark.ShowImageOnTop":{label:"Properties ShowImageOnTop",type:"checkbox"},"Watermark.ShowTextOnTop":{label:"SProperties howTextOnTop",type:"checkbox"},"Watermark.Text":{label:"Properties Text",type:"text"},"Watermark.TextFill":{label:"Properties TextFill",fields:{"Watermark.TextFill.Color":{type:"color",label:"Properties Color"}}},"Watermark.TextRotation":{label:"Properties TextRotation",type:"select",collection:["Horizontal","Vertical","ForwardDiagonal","BackwardDiagonal"]}}}}},Build:{label:"Properties Build",propName:"Build",fields:{}},Behavior:{label:"Properties Behavior",propName:"Behavior",fields:{AcceptsReturn:{label:"Properties AcceptsReturn",type:"checkbox"},AcceptsTab:{label:"Properties AcceptsTab",type:"checkbox"},ColumnWidth:{label:"Properties ColumnWidth",type:"number"},MultiColumn:{label:"Properties MultiColumn",type:"checkbox"},SelectionMode:{label:"Properties SelectionMode",type:"select",collection:["None","One","MultiSimple","MultiExtended"]},Sorted:{label:"Properties Sorted",type:"checkbox"},UseTabStops:{label:"Properties UseTabStops",type:"checkbox"},CharacterCasing:{label:"Properties CharacterCasing",type:"select",collection:["Normal","Upper","Lower"]},BackPage:{label:"Properties BackPage",type:"checkbox"},MirrorMargins:{label:"Properties MirrorMargins",type:"checkbox"},PrintOnPreviousPage:{label:"Properties PrintOnPreviousPage",type:"checkbox"},Enabled:{label:"Properties Enabled",type:"checkbox"},FirstRowStartsNewPage:{label:"Properties FirstRowStartsNewPage",type:"checkbox"},Layout:{label:"Properties Layout",type:"select",collection:["AcrossThenDown","DownThenAcross","Wrapped"]},KeepChild:{label:"Properties KeepChild",type:"checkbox"},KeepDetail:{label:"Properties KeepDetail",type:"checkbox"},KeepTogether:{label:"Properties KeepTogether",type:"checkbox"},KeepWithData:{label:"Properties KeepWithData",type:"checkbox"},MaxLength:{label:"Properties MaxLength",type:"number"},Multiline:{label:"Properties Multiline",type:"checkbox"},ResetPageNumber:{label:"Properties ResetPageNumber",type:"checkbox"},ReadOnly:{label:"Properties ReadOnly",type:"checkbox"},StartNewPage:{type:"checkbox",label:"Properties StartNewPage"},StartOnOddPage:{type:"checkbox",label:"Properties StartOnOddPage"},TitleBeforeHeader:{type:"checkbox",label:"Properties TitleBeforeHeader"},AutoShrink:{type:"select",label:"Properties AutoShrink",collection:["None","FontSize","FontWidth"]},AutoShrinkMinSize:{type:"number",label:"Properties AutoShrinkMinSize"},AutoSize:{type:"checkbox",label:"Properties AutoSize"},AutoWidth:{type:"checkbox",label:"Properties AutoWidth"},CanBreak:{type:"checkbox",label:"Properties CanBreak"},CanGrow:{type:"checkbox",label:"Properties CanGrow"},CanShrink:{type:"checkbox",label:"Properties CanShrink"},CompleteToNRows:{type:"number",label:"Properties CompleteToNRows"},DialogResult:{label:"Properties DialogResult",type:"select",collection:["None","OK","Cancel","Abort","Retry","Ignore","Yes","No"]},FillUnusedSpace:{type:"checkbox",label:"Properties FillUnusedSpace"},HideIfNoData:{type:"checkbox",label:"Properties HideIfNoData"},ShowText:{type:"checkbox",label:"Properties ShowText"},Clip:{type:"checkbox",label:"Properties Clip"},Duplicates:{label:"Properties Duplicates",type:"select",collection:["Show","Hide","Clear","Merge"]},CollectChildRows:{label:"Properties CollectChildRows",type:"checkbox"},Exportable:{type:"checkbox",label:"Properties Exportable"},Editable:{type:"checkbox",label:"Properties Editable"},GrowToBottom:{type:"checkbox",label:"Properties GrowToBottom"},HideValue:{type:"text",label:"Properties HideValue"},HideZeros:{type:"checkbox",label:"Properties HideZeros"},TextRenderType:{type:"select",label:"Properties TextRenderType",collection:["Default","HtmlTags","HtmlParagraph"]},NullValue:{type:"text",label:"Properties NullValue"},Printable:{type:"checkbox",label:"Properties Printable"},PrintIfDatasourceEmpty:{type:"checkbox",label:"Properties PrintIfDatasourceEmpty"},PrintIfDetailEmpty:{type:"checkbox",label:"Properties PrintIfDetailEmpty"},PrintOnBottom:{type:"checkbox",label:"Properties PrintOnBottom"},PrintOnParent:{type:"checkbox",label:"Properties PrintOnParent"},RepeatOnEveryPage:{label:"Properties RepeatOnEveryPage",type:"checkbox"},ProcessAt:{label:"Properties ProcessAt",type:"select",collection:["Default","ReportFinished","ReportPageFinished","PageFinished","ColumnFinished","DataFinished","GroupFinished","Custom"]},RightToLeft:{label:"Properties RightToLeft",type:"checkbox"},ShiftMode:{label:"Properties ShiftMode",type:"select",collection:["Never","Always","WhenOverlapped"]},Trimming:{label:"Properties Trimming",type:"select",collection:["None","Character","Word","EllipsisCharacter","EllipsisWord","EllipsisPath"]},TabIndex:{label:"Properties TabIndex",type:"number"},TabStop:{label:"Properties TabStop",type:"checkbox"},Visible:{label:"Properties Visible",type:"checkbox"},WordWrap:{label:"Properties WordWrap",type:"checkbox"},Wysiwyg:{label:"Properties Wysiwyg",type:"checkbox"},SortOrder:{label:"Properties SortOrder",type:"select",collection:["None","Ascending","Descending"]},ShowErrorImage:{label:"Properties ShowErrorImage",type:"checkbox"},SizeMode:{label:"Properties SizeMode",type:"select",collection:["Normal","StretchImage","AutoSize","CenterImage","Zoom"]},UseSystemPasswordChar:{label:"Properties UseSystemPasswordChar",type:"checkbox"}}},Email:{label:"Properties Email",propName:"Email",fields:{EmailSettings:{label:"Properties EmailSettings",fields:{"EmailSettings.Message":{label:"Properties Message",type:"text"},"EmailSettings.Recipients":{label:"Properties Recipients",type:"textarea"},"EmailSettings.Subject":{label:"Properties Subject",type:"text"}}}}},Engine:{label:"Properties Engine",propName:"Engine",fields:{ConvertNulls:{label:"Properties ConvertNulls",type:"checkbox"},DoublePass:{label:"Properties DoublePass",type:"checkbox"},InitialPageNumber:{label:"Properties InitialPageNumber",type:"number"},UseFillCache:{label:"Properties UseFillCache",type:"checkbox"}}},Misc:{label:"Properties Misc",fields:{ReportPage:{label:"Properties ReportPage",type:"select",collection:[]},Description:{label:"Properties Description",type:"text"},AutoFillDataSet:{label:"Properties AutoFillDataSet",type:"checkbox"},Compressed:{label:"Properties Compressed",type:"checkbox"},MaxPages:{label:"Properties MaxPages",type:"number"},MaxSvgHeight:{label:"Properties MaxSvgHeight",type:"number"},MaxSvgWidth:{label:"Properties MaxSvgWidth",type:"number"},SvgDocument:{label:"Properties SvgDocument",type:"text",attrs:{disabled:!0}},SvgGrayscale:{label:"Properties SvgGrayscale",type:"text",attrs:{disabled:!0}},SmoothGraphics:{label:"Properties SmoothGraphics",type:"checkbox"},TextQuality:{label:"Properties TextQuality",type:"select",collection:["Default","Regular","ClearType","AntiAlias"]},ForceLoadData:{label:"Properties ForceLoadData",type:"checkbox"},AcceptButton:{label:"Properties AcceptButton",type:"select",collection:function(){return["None"].concat(this.components.all(["ButtonControl"]))}},CancelButton:{label:"Properties CancelButton",type:"select",collection:function(){return["None"].concat(this.components.all(["ButtonControl"]))}}}},Data:{label:"Properties Data",propName:"Data",fields:{Calculated:{label:"Properties Calculated",type:"checkbox"},DataSource:{type:"select",label:"Properties DataSource",getValue:function(t){var e=this.prop(t);return e?e._id:null},collection:function(){var t=c(),a=[],o=function(t,e,n){var i=2<arguments.length&&void 0!==n?n:"";return{key:t._id,value:Array(e+1).join(" - ")+i+":"+t.toString()}};return t.dataSources&&t.dataSources.everyEntity(function(t,e,n){a.push(o(t,n))}),t.connections&&t.connections.everyEntity(function(t){t.dataSources.everyEntity(function(t,e,n){a.push(o(t,n)),function i(r){r.columns.everyEntity(function(t){t.dataSources.everyEntity(function(t,e,n){a.push(o(t,n,r)),0<t.columns.count()&&i(t)}),0<t.columns.count()&&i(t)})}(t)})}),a.unshift({key:"",value:""}),a},setValue:function(t,e){var n=c(),i=void 0;e&&(i=n.connections&&n.connections.findOneDSAmongAll({_id:e})||n.dataSources&&n.dataSources.findOneAmongAll({_id:e})),this.prop(t,i||""),this.render()}},Expression:{type:"text",label:"Properties Expression",expression:!0,exprMenu:!0},Filter:{type:"text",label:"Properties Filter",expression:!0,exprMenu:!0},MaxRows:{type:"number",label:"Properties MaxRows",attrs:{min:0}},Relation:{label:"Properties Relation",type:"select",collection:function(){var t=c(),e=t.relations&&t.relations.all()||[];return e.unshift(""),e}},RowCount:{label:"Properties RowCount",type:"number"},AllowExpressions:{type:"checkbox",label:"Properties AllowExpressions"},Brackets:{type:"text",label:"Properties Brackets",isValid:function(t){return/^[\(\[]{1}[,]{1}[\)\]]{1}$/.test(r.a.trim(t))}},OutlineExpression:{type:"text",label:"Properties OutlineExpression"},Format:{label:"Properties Format",type:"text",expression:!0,expressionEventName:"format"},NoDataText:{type:"text",label:"Properties NoDataText"},Condition:{type:"text",label:"Properties Condition",expression:!0,exprMenu:!0},DataColumn:{type:"text",label:"Properties DataColumn"},SelectCommand:{type:"text",label:"Properties SelectCommand"},StoreData:{type:"checkbox",label:"Properties StoreData"},TableName:{type:"text",label:"Properties TableName"},CommandTimeout:{type:"number",label:"Properties CommandTimeout"},ConnectionString:{type:"text",label:"Properties ConnectionString",readonly:!0},ConnectionStringExpression:{type:"text",label:"Properties ConnectionStringExpression",expression:!0,exprMenu:!0},ImageSourceExpression:{type:"text",label:"Properties ImageSourceExpression",expression:!0,exprMenu:!0},LoginPrompt:{type:"checkbox",label:"Properties LoginPrompt"}}},"Data Filtering":{label:"Properties Data Filtering",fields:{AutoFill:{label:"Properties AutoFill",type:"checkbox"},AutoFilter:{label:"Properties AutoFilter",type:"checkbox"},DataColumn:{label:"Properties DataColumn",type:"text"},DetailControl:{label:"Properties DetailControl",type:"select",collection:function(){return["None"].concat(this.collection.container.components.all())}},FilterOperation:{label:"Properties FilterOperation",type:"select",collection:["Equal","NotEqual","LessThan","LessThanOrEqual","GreaterThan","GreaterThanOrEqual","Contains","NotContains","StartsWith","NotStartsWith","EndsWith","NotEndsWith"]},ReportParameter:{label:"Properties ReportParameter",type:"text"}}},Design:{label:"Properties Design",propName:"Design",fields:{BindableControl:{label:"Properties BindableControl",type:"select",collection:["Text","Rich","Picture","CheckBox","Custom"],afterSetValue:function(){this.updateBindableControl(),s.a.trigger("update-data-panel")}},CustomBindableControl:{type:"text",label:"Properties CustomBindableControl"},Format:{label:"Properties Format",type:"select",collection:["Auto","General","Number","Currency","Date","Time","Percent","Boolean"]},Tag:{label:"Properties Tag",type:"text"},ReportInfo:{label:"Properties ReportInfo",fields:{"ReportInfo.Author":{label:"Properties Author",type:"text"},"ReportInfo.Created":{label:"Properties Created",type:"datetime"},"ReportInfo.CreatorVersion":{label:"Properties CreatorVersion",type:"text"},"ReportInfo.Description":{label:"Properties Description",type:"textarea"},"ReportInfo.Modified":{label:"Properties Modified",type:"datetime"},"ReportInfo.Name":{label:"Properties Name",type:"text"},"ReportInfo.Picture":{label:"Properties Picture",type:"file"},"ReportInfo.PreviewPictureRatio":{label:"Properties PreviewPictureRatio",type:"number",attrs:{min:.05,step:.1}},"ReportInfo.SavePreviewPicture":{label:"Properties SavePreviewPicture",type:"checkbox"},"ReportInfo.Version":{label:"Properties Version",type:"text"},"ReportInfo.Tag":{label:"Properties Tag",type:"json"},"ReportInfo.SaveMode":{label:"Properties SaveMode",type:"select",collection:["All","Original","User","Role","Security","Deny","Custom"]}}},StoreInResources:{label:"Properties StoreInResources",type:"checkbox"},ExtraDesignWidth:{label:"Properties ExtraDesignWidth",type:"checkbox"}}},Layout:{label:"Properties Layout",propName:"Layout",fields:{AutoSize:{label:"Properties AutoSize",type:"checkbox"},Maximum:{label:"Properties Maximum",type:"number",setValue:function(t,e){e>this.prop("Minimum")?(this.prop(t,e),this.prop("Value")>e&&(this.prop("Value",this.prop("Minimum")),s.a.trigger("update-properties-panel",this))):s.a.trigger("update-properties-panel",this)}},Minimum:{label:"Properties Minimum",type:"number",setValue:function(t,e){e<this.prop("Maximum")?(this.prop(t,e),this.prop("Value")<e&&(this.prop("Value",e),s.a.trigger("update-properties-panel",this))):s.a.trigger("update-properties-panel",this)}},Value:{label:"Properties Value",type:"number",setValue:function(t,e){e>=this.prop("Minimum")&&e<=this.prop("Maximum")?this.prop(t,e):s.a.trigger("update-properties-panel",this)}},MaxHeight:{type:"unit",label:"Properties MaxHeight",attrs:{min:0}},MaxWidth:{type:"unit",label:"Properties MaxWidth",attrs:{min:0}},MinHeight:{type:"unit",label:"Properties MinHeight",attrs:{min:0}},MinWidth:{type:"unit",label:"Properties MinWidth",attrs:{min:0}}}},Paper:{label:"Properties Paper",propName:"Paper",fields:{BottomMargin:{type:"unit",label:"Properties BottomMargin",attrs:{min:0}},Landscape:{type:"checkbox",label:"Properties Landscape"},LeftMargin:{type:"unit",label:"Properties LeftMargin",attrs:{min:0}},PaperHeight:{type:"unit",label:"Properties PaperHeight",attrs:{min:0,step:.1}},PaperWidth:{type:"unit",label:"Properties PaperWidth",attrs:{min:0,step:.1}},RawPaperSize:{type:"text",label:"Properties RawPaperSize"},RightMargin:{type:"unit",label:"Properties RightMargin",attrs:{min:0}},TopMargin:{type:"unit",label:"Properties TopMargin",attrs:{min:0}}}},Print:{label:"Properties Print",propName:"Print",fields:{Duplex:{type:"text",label:"Properties Duplex"},FirstPageSource:{type:"number",label:"Properties FirstPageSource"},OtherPagesSource:{type:"number",label:"Properties OtherPagesSource"},PrintSettings:{label:"Properties PrintSettings",fields:{"PrintSettings.Collate":{label:"Properties Collate",type:"checkbox"},"PrintSettings.Copies":{label:"Properties Copies",type:"number"},"PrintSettings.CopyNames":{label:"Properties CopyNames",type:"textarea"},"PrintSettings.Duplex":{label:"Properties Duplex",type:"select",collection:["Default","Simplex","Vertical","Horizontal"]},"PrintSettings.PageNumbers":{label:"Properties PageNumbers",type:"text"},"PrintSettings.PageRange":{label:"Properties PageRange",type:"select",collection:["All","Current","PageNumbers"]},"PrintSettings.PagesOnSheet":{label:"Properties PagesOnSheet",type:"select",collection:["One","Two","Four","Eight"]},"PrintSettings.PaperSource":{label:"Properties PaperSource",type:"number"},"PrintSettings.Printer":{label:"Properties Printer",type:"select",collection:["Default"]},"PrintSettings.PrintMode":{label:"Properties PrintMode",type:"select",collection:["Default","Split","Scale"]},"PrintSettings.PrintOnSheetHeight":{label:"Properties PrintOnSheetHeight",type:"number"},"PrintSettings.PrintOnSheetRawPaperSize":{label:"Properties PrintOnSheetRawPaperSize",type:"number"},"PrintSettings.PrintOnSheetWidth":{label:"Properties PrintOnSheetWidth",type:"number"},"PrintSettings.PrintPages":{label:"Properties PrintPages",type:"select",collection:["All","Odd","Even"]},"PrintSettings.PrintToFile":{label:"Properties PrintToFile",type:"checkbox"},"PrintSettings.PrintToFileName":{label:"Properties PrintToFileName",type:"text"},"PrintSettings.Reverse":{label:"Properties Reverse",type:"checkbox"},"PrintSettings.SavePrinterWithReport":{label:"Properties SavePrinterWithReport",type:"checkbox"},"PrintSettings.ShowDialog":{label:"Properties ShowDialog",type:"checkbox"}}}}},Hierarchy:{label:"Properties Hierarchy",propName:"Hierarchy",fields:{IdColumn:{type:"select",label:"Properties IdColumn"},Indent:{type:"unit",label:"Properties Indent"},ParentIdColumn:{type:"select",label:"Properties ParentIdColumn"}}},Navigation:{label:"Properties Navigation",propName:"Navigation",fields:{Bookmark:{label:"Properties Bookmark",type:"text",expression:!0},Hyperlink:{label:"Properties Hyperlink",expression:!0,expressionEventName:"hyperlink-editor",fields:{"Hyperlink.DetailPageName":{type:"text",label:"Properties DetailPageName"},"Hyperlink.DetailReportName":{type:"text",label:"Properties DetailReportName"},"Hyperlink.Expression":{type:"text",label:"Properties Expression",expression:!0,exprMenu:!0},"Hyperlink.Kind":{type:"select",label:"Properties Kind",collection:["URL","PageNumber","Bookmark","DetailReport","DetailPage","Custom"]},"Hyperlink.ReportParameter":{type:"text",label:"Properties ReportParameter"},"Hyperlink.Value":{type:"text",label:"Properties Value"},"Hyperlink.ValueSeparator":{type:"text",label:"Properties ValueSeparator"},"Hyperlink.OpenLinkInNewTab":{type:"checkbox",label:"Properties OpenLinkInNewTab"}}}}},Script:{label:"Properties Script",propName:"Script",fields:{ReferencedAssemblies:{label:"Properties ReferencedAssemblies",type:"textarea",attrs:{disabled:!0}},ScriptLanguage:{label:"Properties ScriptLanguage",type:"select",collection:["CSharp","Vb"],afterSetValue:function(t,e){var n=c().code;n&&n.setMode(e)}}}}},!0),e.a=o.a},function(t,e,n){"use strict";var i,g,m,r,a,c,o,s,l,p,d,u,b,h,f,v,y,C,S,x;n.r(e),i=n(0),g=n.n(i),m=n(4),r=n(2),a=n(137),c=n(39),o=n(97),s=n(193),l=n(1),p=n(96),d=n(8),u=n(18),b=n(3),h=n(23),f=n(59),v=n(5),y=n(42),C=n(32),S=n(75),x=function(){return S.a.apply(null,arguments).w},e.default=Object(d.a)(c.a,{SM:new a.a,disabled:!0,_init:function(){this._id="b"+Object(u.a)(),this.prop({Width:718.2,Height:170.08}),this.attr({title:"title",threshold:0,"title-font-size":"1em","title-font-family":window.DSG.head.$main.css("font-family"),"title-font-weight":"normal","title-angle":"-90","title-color":"black","fill-blanket":"rgb(90, 90, 90)",removeable:!0,activated:!1,margin:0,padding:0,"margin-left":0,layer_defect:0,placeAboveParent:!1,"separator.color":m.a.get("colors")["default-band-separator"],"separator.style":"","separator.width":m.a.get("band-indent-top")||2,"separator.opacity":m.a.get("band-indent-opacity")||1})},create:function(){var t=this.createObject(this);return t._init.apply(t,arguments),t.prop("Name",t.formName()),t.unparsed=[],t.components=o.a.create(t),t.bands=s.a.create(t),this.SM.add(t),t},getFillTitleColor:function(){return"#91D4FF"},canHaveChildren:function(t){return["ChildBand"].includes(t.type||t)},canBeSorted:function(){return!1},has:function(t){return 0<this.bands.findAmongChildrenBy({type:t.type||t}).length},canBeAdded:function(t){return 0===t.bands.findAmongChildrenBy({type:this.type}).length},canBeRemoved:function(){var t=this.collection.getMainCollection().container;return!(1===t.bands.count()&&t.bands.first()===this)},applyRule:function(){return!1},moveUp:function(){var t,e,n;this.canBeSorted()&&(e=(t=this.bands.container._parent).bands.prevBefore(this))&&e.canBeSorted()&&(n=t.bands.findAmongChildren(this._id,!0))&&(n=n[1],t.bands.remove(e,!1),t.addBand(e,n),t.touch().render(),t.updateExts())},moveDown:function(){var t,e,n;this.canBeSorted()&&(e=(t=this.bands.container._parent).bands.nextAfter(this))&&e.canBeSorted()&&(n=t.bands.findAmongChildren(this._id,!0))&&(n=n[1],t.bands.remove(e,!1),t.addBand(e,n),t.touch().render(),t.updateExts())},addResizingBandComponent:m.a.get("resize-bands")?function(){var t,e,n=g()(Object(b.a)("g")),i=g()(Object(b.a)("rect",{class:"resizing-band s-resize"}));return h.a?(t=Object(b.a)("use"),Object(f.a)(t,"xlink:href","#d-resizing-band"),n.append(t,i)):n.append(i),this.$resize.append(n),e={width:m.a.get("resizingBandBlockWidth"),height:m.a.get("resizingBandBlockHeight")},i.attr({width:e.width,height:2*e.height,x:0,y:-e.height/2}),this.addResizingBandComponent=function(){return Object(v.a)(n[0],"transform","translate(-79, "+Math.abs((this.prop("Height")||e.height)-e.height)+")"),this},this.addResizingBandComponent()}:function(){},separate:function(){var t,e=this.prop("Width"),n=this.prop("Columns.Count"),i=this.prop("Columns.Width"),r=this.getPage(),a=r.prop("Columns.Count"),o=r.prop("Columns.Width");return void 0===n&&void 0===i?null:(i=void 0!==a&&(!n||n in[0,1])?(n=a,o):i||e/n,this.$blanket||(this.$blanket=g()(Object(b.a)("rect"))),n&&1<n?((t=e-i)<0&&(t=0),this.$blanket.attr({width:t,height:this.prop("Height"),x:i,y:0}),this.$blanket.css({fill:this.attr("fill-blanket")}),this.$background.append(this.$blanket)):(this.prop("Width",e),this.$blanket.remove()),this)},appendSeparator:m.a.get("resize-bands")?function(){var t,e,n=[{color:this.attr("separator.color"),width:this.attr("separator.width"),dasharray:this.attr("separator.style"),opacity:this.attr("separator.opacity")}],i=0,r=n.length;for(this.$borders||(this.$borders=[]);i<r;i+=1)t=n[i],this.$borders[i]||(this.$borders[i]=g()(Object(b.a)("g"))),(e=g()("line:first",this.$borders[i])).length||(e=g()(Object(b.a)("line",{class:"band-separator"}))),this.$borders[i].append(e),Object(v.a)(this.$borders[i][0],"transform","translate(0,"+(this.prop("Height")+t.width/2-t.width)+")"),e.attr({x1:0,y1:t.width,x2:this.prop("Width")+this.attr("padding"),y2:t.width}),e.css({stroke:t.color,"stroke-width":t.width,"stroke-dasharray":t.dasharray,opacity:t.opacity}),this.$resize.append(this.$borders[i]);return this}:function(){},getBandLayer:function(){for(var t=0,e=this.collection;"ReportPage"!==e.container.type;)t+=1,e=e.container.collection;return t},getBandMarginLeft:function(){return(this.getBandLayer()+this.attr("layer_defect"))*(this.attr("padding")/2)},appendTitle:function(){var l,c,p,d,u,h,f;return m.a.get("show-band-title")?(l=g()(Object(b.a)("svg")),c=g()(Object(b.a)("g")),p=g()(Object(b.a)("g")),d=g()(Object(b.a)("text")),u=g()(Object(b.a)("rect")),h=g()(Object(b.a)("line")),f=g()(Object(b.a)("line")),p.append(d),c.append(p),l.append(c),this.$title.append(h,l),this.$g.prepend(u,this.$title),this.appendTitle=function(){var t,e=this.attr("separator.color"),n=0,i=this.attr("separator.style"),r=this.prop("Height"),a=this.attr("padding"),o=this.attr("margin")+a,s=void 0;return m.a.get("resize-bands")&&(n=this.attr("separator.width"),r+=m.a.get("band-indent-top")||0),t=this.getBandMarginLeft(),this.attr("margin-left",t),(s=o-t)<0&&(s=0),u.attr({width:s,height:r+this.bands.getAllBandsHeight(),transform:"translate("+t+", 0)"}).css("fill",this.getFillTitleColor()),d.css({"font-size":this.attr("title-font-size"),"font-family":this.attr("title-font-family"),"font-weight":this.attr("title-font-weight"),"text-anchor":"middle"}),h.attr({x1:0,y1:r-n/2,x2:s,y2:r-n/2}).css({stroke:e,"stroke-width":n,"stroke-dasharray":i}),f.attr({x1:0,y1:0,x2:0,y2:r+this.bands.getBottomBandsHeight(),class:"band-separator"}).css({stroke:e,"stroke-width":2,"stroke-dasharray":"8 5"}),d.text(this.toString()),Object(v.a)(d[0],{x:0,y:0,fill:this.attr("title-color")}),l.attr({width:s,height:r+this.bands.getAllBandsHeight()}),x(this.toString(),{"font-size":this.attr("title-font-size"),"font-family":this.attr("title-font-family"),"font-weight":this.attr("title-font-weight")})<r?(Object(v.a)(c[0],"transform","translate(20,"+r/2+")"),Object(v.a)(p[0],"transform","rotate("+this.attr("title-angle")+")")):(p.removeAttr("transform"),Object(v.a)(c[0],"transform","translate(0,"+r/2+")"),d.css("text-anchor","start")),Object(v.a)(this.$title[0],"transform","translate("+t+", "+this.bands.getTopBandsHeight()+")"),0!==t&&this.$title.append(f),this},this.appendTitle()):(this.appendTitle=function(){},null)},setPosition:function(t,e){return Object(v.a)(this.g,"transform","translate("+t+", "+e+")"),this},put:function(t){return t.isComponent()?this.components.add(t.g.component):t.isBand()&&c.a.put.apply(this,arguments),l.a.trigger("put-element",t),this},activate:function(){return this.attr("activated")||(Object(y.a)(this.g,"selected"),this.attr("separator.color",m.a.get("colors")["selected-band-separator"]),this.appendSeparator(),this.appendTitle(),this.attr("activated",!0)),this},deactivate:function(){return this.attr("activated")&&(Object(C.a)(this.g,"selected"),this.attr("separator.color",m.a.get("colors")["default-band-separator"]),this.appendSeparator(),this.appendTitle(),this.attr("activated",!1)),this},updateThreshold:function(){var e,n=this,i=this.prop("Top")||0;return this.attr("threshold",0),this.components.eachEntity(function(t){(e=t.attr("bottom")+i)>n.attr("threshold")&&n.attr("threshold",e),t.setPosition()}),this.touch(),this},updateComponentsCoords:function(){this.components.everyEntity(function(t){t.isActivated()&&t.syncUpControlsPos()})},adjust:function(){var t,e=this.bands.getHeightTo(this,this.attr("padding"));return this.prop("Top",e),m.a.get("resize-bands")?(this.updateThreshold(),(t=this.attr("threshold"))>e+this.prop("Height")&&this.prop("Height",t-e)):this.touch(),this},balance:function(t){var e,n=this.getPage();return t=void 0!==t?t:this.prop("Height"),this.adjust(),this.render(),t!==(e=this.prop("Height"))&&void 0!==e&&(n.bands.after(this,function(t){t.updateThreshold()}),n.balance()),this},renderContainer:function(){return this.$g||(this.g=Object(b.a)("g",{class:"band"}),this.$g=g()(this.g),(this.g.band=this).$body=g()(Object(b.a)("g")),this.$bandsTop=g()(Object(b.a)("g")),this.$bandsBottom=g()(Object(b.a)("g")),this.$title=g()(Object(b.a)("g")),this.$resize=m.a.get("resize-bands")?g()(Object(b.a)("g",{class:"resizing-band s-resize"})):g()(),this.$components=g()(Object(b.a)("g")),this.$background=g()(Object(b.a)("g")),this.$rect=g()(Object(b.a)("rect")),this.$net=g()(Object(b.a)("rect",{class:"fr-net"})),this.$background.append(this.$rect,this.$net),this.$workspace=this.$background,this.$body.append(this.$background,this.$resize,this.$components),this.$g.append(this.$title,this.$body,this.$bandsTop,this.$bandsBottom)),this.$g},render:function(){var t,e,n,i,r;return this.touched&&(this.renderContainer(),t=this.attr("padding"),e=this.attr("margin"),i=this.prop("Height"),n=this.prop("Width"),Object(v.a)(this.$background[0],"transform","translate("+t+", 0)"),Object(v.a)(this.$components[0],"transform","translate("+t+", 0)"),Object(v.a)(this.$body[0],"transform","translate("+e+", "+this.bands.getTopBandsHeight()+")"),Object(v.a)(this.$bandsTop[0],"transform","translate(0, 0)"),Object(v.a)(this.$bandsBottom[0],"transform","translate(0, "+(m.a.get("resize-bands")?i+this.attr("separator.width"):0)+")"),this.balanceChildBands(),this.$rect.attr({width:n,height:i}),this.$net.attr({width:n,height:i}),this.$rect.css("fill",this.getFillColor()),(r=this.getPage()).report.attr("grid")?this.$net.css("fill","url(#"+r.netId+")"):this.$net.css("fill",""),this.appendSeparator(),this.addResizingBandComponent(),this.appendTitle(),this.separate(),this.touched=!1,c.a.render.call(this)),this.$g},balanceChildBands:function(){var t,e=0,n=0;m.a.get("resize-bands")&&(n=m.a.get("band-indent-top")||0),t=function(){g()(this).hasClass("fr-hidden")||(Object(v.a)(this.band.g,"transform","translate("+this.band.prop("Left")+", "+e+")"),e+=this.band.prop("Height")+n)},this.$bandsTop.children(".band").each(t),e=0,this.$bandsBottom.children(".band").each(t)},toXMLNET:function(s){var l=this;return new Promise(function(o){c.a.toXMLNET.call(l,s).then(function(t){var e,n,i,r,a=g()(t.xml);s=Object.assign({parentNode:a[0]},s),a.removeAttr("Top"),"0"===a.attr("Left")&&a.removeAttr("Left"),e=[],l.components.eachEntity(function(t){e.push(t.toXMLNET(s))}),n=Promise.all(e).then(function(t){t.forEach(function(t){a.append(t.xml)})}),i=[],0<l.bands.count()&&l.bands.eachEntity(function(t){i.push(t.toXMLNET(s))}),r=Promise.all(i).then(function(t){t.forEach(function(t){t.xml&&a.append(t.xml)})}),Promise.all([n,r]).then(function(){return g.a.each(l.unparsed,function(){a.append(this)}),o({xml:a[0]})})})})},toXMLVCL:function(o){var s=this;return new Promise(function(a){c.a.toXMLVCL.call(s,o).then(function(e){var n,t,i,r;e=g()(e),o=Object.assign({parentNode:e[0]},o),n=[],s.components.eachEntity(function(t){n.push(t.toXMLVCL(o))}),t=Promise.all(n).then(function(t){t.forEach(function(t){t&&e.append(t)})}),i=[],0<s.bands.count()&&s.bands.eachEntity(function(t){i.push(t.toXMLVCL(o))}),r=Promise.all(i).then(function(t){t.forEach(function(t){t&&e.append(t)})}),Promise.all([t,r]).then(function(){return g.a.each(s.unparsed,function(){e.append(this)}),a(e[0])})})})},isBand:function(){return!0},getContextMenuTitle:function(){return this.toString()},getContextMenuItems:function(){function t(t){e.onChangeCM(t),e._updateProperties()}var e=this;return[{name:r.a.tr("Band AddChildBand"),type:"default",closeAfter:!0,disabled:e.has("ChildBand"),onClick:function(){l.a.trigger("add-band","ChildBand",e)}},{name:r.a.tr("ComponentMenu Hyperlink"),type:"default",closeAfter:!0,onClick:function(){l.a.trigger("hyperlink-editor",e)}},{type:"separator"},{name:r.a.tr("ComponentMenu CanGrow"),type:"checkbox",curVal:e.prop("CanGrow"),prop:"CanGrow",onChange:t},{name:r.a.tr("ComponentMenu CanShrink"),type:"checkbox",curVal:e.prop("CanShrink"),prop:"CanShrink",onChange:t},{name:r.a.tr("ComponentMenu CanBreak"),type:"checkbox",curVal:e.prop("CanBreak"),prop:"CanBreak",onChange:t},{type:"separator"},{name:r.a.tr("Menu Edit Paste"),type:"default",disabled:!window.DSG.currentReport.getCurrentPage().buffer.length,closeAfter:!0,shortcut:"Ctrl + V",onClick:function(){setTimeout(function(){l.a.trigger("paste")},100)}},{name:r.a.tr("Menu Edit Delete"),type:"default",disabled:!e.canBeRemoved(),closeAfter:!0,shortcut:"Del",onClick:function(){l.a.trigger("remove",e)}}]},rightClick:function(t){return new p.a(t,this.getContextMenuTitle(),this.getContextMenuItems(),this.getContextMenuEventName()),!1},fillPropsNET:function(t){return c.a.fillPropsNET.apply(this,arguments),void 0===t.attr("Height")&&this.prop("Height",0),this}})},function(t,e,n){"use strict";function s(t,e,n){function i(){this[t].apply(this,arguments),this.render&&this.render(),this.activate&&this.activate()}p.a.push({context:this,undo:function(){i.apply(this,arguments)},redo:function(){i.apply(this,arguments)},undoData:[e,this[t](e)],redoData:[e,n]})}var i,r,a,o=n(0),l=n.n(o),c=n(4),p=n(15),d=n(8),u=function(t,e){var n,i;if(!t||t.constructor!==Array||!e||e.constructor!==Array)return!1;if(t===e)return!0;if((n=t.length)!==e.length)return!1;for(i=0;i<n;++i)if(t[i]!==e[i])return!1;return!0},h=n(100),f=n(191),g=n(136),m=function(t){var e,n=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;return t=t.replace(n,function(t,e,n,i){return e+e+n+n+i+i}),(e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t))?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null},b=function(t,e){var n,i=m(t),r=m(e);if(i&&r)return n={r:parseInt((i.r+r.r)/2,10),g:parseInt((i.g+r.g)/2,10),b:parseInt((i.b+r.b)/2,10)},Object(g.a)(n.r,n.g,n.b)},v=n(69),y=n(95),C=n(29),S=n(164),x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P=null,w=Object(d.a)({},{init:function(){},_init:function(){},attributes:{},properties:{},defaultValues:{Left:0,Top:0,"Border.Color":"#000","Border.Width":1,"Border.Style":c.a.get("default-dasharray"),"Border.Lines":"None","Border.Shadow":!1,"Border.ShadowColor":"#000","Border.ShadowWidth":4,Cursor:"Default",EvenStyle:"",EvenStylePriority:"UseFill","Fill.Color":"transparent","Fill.Hatch":!1,"Fill.Blend":0,Restrictions:[],FirstRowStartsNewPage:!1,KeepChild:!1,ResetPageNumber:!1,StartNewPage:!1,AutoSize:!1,Exportable:!0,Printable:!0,PrintOnBottom:!1,ShiftMode:"Always",PrintOn:["FirstPage","LastPage","OddPages","EvenPages","RepeatedBand","SinglePage"],RepeatOnEveryPage:!1,Visible:!0,Anchor:["Top","Left"],"Padding.All":-1,Brackets:"[,]","Hyperlink.ValueSeparator":";","Hyperlink.OpenLinkInNewTab":!0},createObject:function(t,e){return(e=e||{}).attributes={},e.properties={},e.defaultValues={},Object(d.a)(t||this,e)},clone:function(){var t,e,n,i,r=this._super,a=r.create.apply(r,arguments);if(a){for(i=n=e=t=void 0,n=this.properties,t=(e=Object.keys(n)).length;t--;)"Name"!==(i=e[t])&&a.prop(i,n[i]);for(n=this.attributes,t=(e=Object.keys(n)).length;t--;)i=e[t],a.attr(i,n[i])}return a},attr:function(t,e,n){var i,r,a;if("string"==typeof t)return void 0===e?void 0!==this.attributes[t]?this.attributes[t]:this._super.attr&&this._super.attr(t):(this.attributes[t]!==e&&(this.touch(),n&&s.call(this,"attr",t,e),this.attributes[t]=e),e);if("object"===(void 0===t?"undefined":x(t)))for(i=(r=Object.keys(t)).length;i--;)a=r[i],this.attr(a,t[a]);return null},prop:function(t,e,n){var i,r,a,o;if("string"==typeof t)return i=void 0!==this.defaultValues[t]?this.defaultValues[t]:w.defaultValues[t],void 0===e?void 0!==this.properties[t]?this.properties[t]:void 0!==i?i:this._super.prop&&this._super.prop(t):(this.properties[t]!==e&&(this.touch(),n&&s.call(this,"prop",t,e),i&&(i===e||u(i,e))?this.deleteProp(t):this.properties[t]=e),e);if("object"===(void 0===t?"undefined":x(t)))for(r=(a=Object.keys(t)).length;r--;)o=a[r],this.prop(o,t[o]);return null},findAttrs:function(t){for(var e,n={},i=this.attributes,r=Object.keys(i),a=r.length;a--;)e=r[a],t.test(e)&&(n[e]=i[e]);return n},findProps:function(t){for(var e,n={},i=this.properties,r=Object.keys(i),a=r.length;a--;)e=r[a],t.test(e)&&(n[e]=i[e]);return n},onChangeCM:function(t,e){var n;t.prop&&(n=t.curVal,t.val&&(n=n?t.val:""),e?e[t.prop]=n:this.prop(t.prop,n))},deleteAttr:function(t){return this.touch(),delete this.attributes[t]},deleteProp:function(t){return this.touch(),delete this.properties[t]},eachProp:function(t){for(var e,n,i=this.properties,r=Object.keys(i),a=r.length;a--&&(void 0===(n=i[e=r[a]])||""===n||null===n||(Object(h.a)(n)?n=n.toFixed(2):n instanceof Date&&(n=Object(S.a)(n)),!1!==t.call(this,e,n))););},eachAttr:function(t){for(var e,n,i=this.attributes,r=Object.keys(i),a=r.length;a--&&(!(n=i[e=r[a]])||(Object(h.a)(n)&&(n=n.toFixed(2)),!1!==t.call(this,e,n))););},counter:(a={},{incr:function(t){return a[t]||(a[t]=0),++a[t]},clear:function(){a={}}}),names:(r={},{save:function(t,e,n){return n?(r[t]=e,!0):!r[t]&&(r[t]=e,!0)},remove:function(t){return delete r[t],!0}}),_fillProps:function(t){var e,n,i,r=t[0].attributes,a=!1;for(this._original||(this._original=t,this._originalAttrs={},a=!0),e=void 0,n=r.length,i=void 0;n--;)r.hasOwnProperty(n)&&(e=(i=r[n]).value,"Text"!==i.name&&(e=Object(f.a)(e)),"Name"===i.name&&this.names.save(e,this,!0),this.prop(i.name,e,void 0,!0),a&&(this._originalAttrs[i.name]=e));return this},fillPropsNET:function(t){var e,n=window.DSG.currentReport;return this._fillProps(t),this.prop("data-entity-id")&&(this._id=this.prop("data-entity-id"),this.deleteProp("data-entity-id")),(e=this.prop("DataSource"))&&(n.connections||n.dataSources)&&this.prop("DataSource",n.connections.pullDSByView(e)||n.dataSources.pullByView(e)),this},fillPropsVCL:function(t){return this._fillProps(t)},getFillColor:function(){var t,e,n,i=this.prop("Fill.Color");return i&&"transparent"!==i?n=i:(t=this.prop("Fill.StartColor"),e=this.prop("Fill.EndColor"),t&&e||(t=this.prop("Fill.CenterColor"),e=this.prop("Fill.EdgeColor"),t&&e||(t=this.prop("Fill.BackColor"),e=this.prop("Fill.ForeColor"))),t&&e&&(n=b(Object(v.a)(t),Object(v.a)(e)))),n||i},state:(i={},["normal","in_move","in_resize"].forEach(function(t){i[t]=[]}),{set:function(t){var e=this;return e.attr("state",t),l.a.each(i,function(){Object(C.a)(this,e)}),i[t].push(e),e},get:function(t){return i[t]}}),setState:function(t){return this.state.set.call(this,t)},createName:function(){this.prop("Name",this.formName())},formName:function(t){var e=(t||this.prop("Name")||this.type)+this.counter.incr(t||this.type);return this.names.save(e,this)?e:this.formName.apply(this,arguments)},formGroupInx:function(){return this.counter.incr("GroupIndex")},applyForBorder:function(t,e){var n=this.prop("Border.Lines")||"";n=n.split(/,[\s]?/),Object(C.a)(n,""),-1<n.indexOf("All")&&(Object(C.a)(n,"All"),n.push("Left"),n.push("Top"),n.push("Right"),n.push("Bottom")),Object(C.a)(n,"None"),"None"===t?n=["None"]:!e&&n.includes(t)?(Object(C.a)(n,t),n.length||(n=["None"])):"All"===t?n=["All"]:(n.push(t),(n=Object(y.a)(n)).includes("Left")&&n.includes("Top")&&n.includes("Right")&&n.includes("Bottom")&&(n=["All"])),this.prop("Border.Lines",n.join(", "),!0)},getProp:function(t){var e,n,i=this.fieldMap,r=0,a=1;for(t=t.split(":"),e=(i||[]).length,n=t.length;r<e;r+=1)if(i[r].propName===t[0]||i[r].label===t[0]){for(i=i[r].fields;a<n;a+=1)try{if(i=i[t[a]],a+1<n)i=i.fields;else if(i)return i}catch(t){return null}break}return null},canHaveProp:function(t){return!!this.getProp(t)},render:function(){},mouseStart:function(){},resizingStart:function(){},resizing:function(){},resizingEnd:function(){},movingStart:function(){},moving:function(){},movingEnd:function(){},rotatingStart:function(){},rotating:function(){},rotatingEnd:function(){},creatingComponentOver:function(){},deleteComponentOver:function(){},creatingComponentEnd:function(){},getContextMenuTitle:function(){},getContextMenuItems:function(){},getContextMenuEventName:function(){},rightClick:function(){},mouseover:function(){},mouseout:function(){},afterAlign:function(){},afterInitShow:function(){},remove:function(){return!!this.canDelete()&&(this===P&&w.deactivate(),!0)},touch:function(){return this.touched=!0,this},activate:function(){P=this},deactivate:function(){P=null},getSelected:function(){return P},canMove:function(){var t;return!!c.a.get("movable-components")&&(!!this.attr("movable")&&!("DontMove"===(t=this.prop("Restrictions"))||-1<t.indexOf("DontMove")))},canResizeX:function(){var t,e=this.attr("resizableX");return!!c.a.get("resizable-components")&&(!e&&void 0!==e||(e=!("DontResize"===(t=this.prop("Restrictions"))||-1<t.indexOf("DontResize"))),e)},canResizeY:function(){var t,e=this.attr("resizableY");return!!c.a.get("resizable-components")&&(!e&&void 0!==e||(e=!("DontResize"===(t=this.prop("Restrictions"))||-1<t.indexOf("DontResize"))),e)},canResizeXY:function(){var t,e=this.attr("resizableXY");return!!c.a.get("resizable-components")&&(!e&&void 0!==e||(e=!("DontResize"===(t=this.prop("Restrictions"))||-1<t.indexOf("DontResize"))),e)},canModify:function(){var t=this.prop("Restrictions");return!("DontModify"===t||-1<t.indexOf("DontModify"))},canEdit:function(){var t=this.prop("Restrictions");return!("DontEdit"===t||-1<t.indexOf("DontEdit"))},canDelete:function(){var t=this.prop("Restrictions");return!("DontDelete"===t||-1<t.indexOf("DontDelete"))},hasHiddenProperties:function(){var t=this.prop("Restrictions");return"HideAllProperties"===t||-1<t.indexOf("HideAllProperties")},isEntity:function(){return!0},isPage:function(){return!1},isDialog:function(){return!1},isStyle:function(){return!1},isBand:function(){return!1},isComponent:function(){return!1},isReport:function(){return!1},isConnection:function(){return!1},isDataSource:function(){return!1},canHaveChildren:function(){return!1},getContainer:function(){return this.getTable?this.getTable():this.collection&&this.collection.container},getPage:function(){var t;return this.isPage()?this:(t=this.getContainer())?t.isPage()?t:(t.getTable?t=t.getTable().getContainer():t.isComponent()&&(t=t.getContainer()),t?t.collection&&t.collection.mainCollection&&t.collection.mainCollection.container:null):null},_toXML:function(t){var n=this.attr("inherited"),e="vcl"===window.DSG.currentReport.attr("report-type")?this.typevcl:this.type,i=n?"inherited":e,r=l()((t.parentNode.ownerDocument||t.parentNode).createElement(i));return t.includeId&&r.attr("data-entity-id",this._id),this.eachProp(function(t,e){"Name"!==t&&n&&this._originalAttrs[t]===e||r.attr(t,e)}),r},toXMLNET:function(r){var a=this;return new Promise(function(t){var e,n,i=a._toXML(r);"None"===a.prop("Border.Lines")&&i.removeAttr("Border.Lines").removeAttr("Border.Color").removeAttr("Border.Width").removeAttr("Border.Style"),!1===a.prop("Border.Shadow")&&i.removeAttr("Border.Shadow").removeAttr("Border.ShadowWidth").removeAttr("Border.ShadowColor"),"transparent"===a.prop("Fill.Color")&&i.removeAttr("Fill.Color"),(a.prop("Padding.Top")||a.prop("Padding.Right")||a.prop("Padding.Bottom")||a.prop("Padding.Left"))&&(e="{0}, {1}, {2}, {3}".format(Math.round(a.prop("Padding.Left")||0),Math.round(a.prop("Padding.Top")||0),Math.round(a.prop("Padding.Right")||0),Math.round(a.prop("Padding.Bottom")||0)),i.removeAttr("Padding.Left").removeAttr("Padding.Top").removeAttr("Padding.Right").removeAttr("Padding.Bottom"),i.attr("Padding",e),i.removeAttr("Padding.All")),"object"===(void 0===(n=a.prop("DataSource"))?"undefined":x(n))&&i.attr("DataSource",n.prop("Name")),t({xml:i[0]})})},toXMLVCL:function(e){var n=this;return new Promise(function(t){return t(n._toXML(e)[0])})},toString:function(){return this.prop("Name")}});e.a=w},function(t,e,n){"use strict";var i,r,a,o,s,l,c;n.r(e),i=n(0),r=n.n(i),a=n(17),o=n(2),s=n(1),l=n(8),c=n(18),e.default=Object(l.a)(a.a,{_init:function(){a.a._init.apply(this,arguments),this._id="cnt"+Object(c.a)()},isDialogControl:function(){return!0},getContextMenuItems:function(){var t=this;return[{name:o.a.tr("ComponentMenu Edit"),type:"default",closeAfter:!0,onClick:function(){s.a.trigger("activate",t),t.dblclick()}},{type:"separator"},{name:o.a.tr("Menu Edit Cut"),type:"default",closeAfter:!0,shortcut:"Ctrl + X",onClick:function(){s.a.trigger("cut",r()(t))}},{name:o.a.tr("Menu Edit Copy"),type:"default",closeAfter:!0,shortcut:"Ctrl + C",onClick:function(){s.a.trigger("copy",r()(t))}},{name:o.a.tr("Menu Edit Paste"),type:"default",disabled:!window.DSG.currentReport.getCurrentPage().buffer.length,closeAfter:!0,shortcut:"Ctrl + V",onClick:function(){setTimeout(function(){s.a.trigger("paste")},100)}},{name:o.a.tr("Menu Edit Delete"),type:"default",disabled:!t.canBeRemoved(),closeAfter:!0,shortcut:"Del",onClick:function(){s.a.trigger("remove",t)}},{type:"separator"},{name:o.a.tr("Layout BringToFront"),type:"default",closeAfter:!0,onClick:function(){s.a.trigger("bring-to-front",t)}},{name:o.a.tr("Layout SendToBack"),type:"default",closeAfter:!0,onClick:function(){s.a.trigger("send-to-back",t)}}]}})},function(t,e,n){"use strict";var i=n(151),r={cm:"Centimeters",mm:"Millimeters",in:"Inches",hi:"Hundredths of inch"},a="cm",o={cm:{toUnit:function(t){return 2.54*t/96},toPixels:function(t){return 96*t/2.54}},mm:{toUnit:function(t){return 2.54*t/9.6},toPixels:function(t){return 9.6*t/2.54}},hi:{toUnit:function(t){return+t},toPixels:function(t){return+t}},in:{toUnit:function(t){return t/96},toPixels:function(t){return 96*t}}};e.a={all:function(){return Object.assign({},r)},setCurrent:function(t){a=t||a},getCurrent:function(){return a},toPx:function(t,e){return"number"==typeof(t=Object(i.a)(t))?o[e||a].toPixels(t).toFixed(2):null},toUnit:function(t,e){return"number"==typeof(t=Object(i.a)(t))?o[e||a].toUnit(t).toFixed(2):null}}},function(t,e,n){"use strict";var i,r,a,o;n.d(e,"a",function(){return o}),i=100,r=[],a=0,o={prev:function(){return 0===a?null:r[a-=1]},next:function(){var t;return a===r.length?null:(t=r[a],a+=1,t)},push:function(t){(r=r.slice(0,a)).push(t),r.length>i&&r.shift(),a=r.length},clear:function(){r.length=0,a=r.length},canUndo:function(){return 0<a&&0<r.length},canRedo:function(){return a<r.length}}},function(t,e,n){"use strict";var i,r;n.d(e,"a",function(){return i}),i={MOVE:1,BEZIER:2,NEW_POINT:3,POINT:4},r={_init:function(){return this.currentInstrument=i.MOVE,this},getInstrument:function(){return this.currentInstrument},setInstrument:function(t){this.currentInstrument=t}},e.b=r._init()},function(t,e,n){"use strict";var i=n(0),o=n.n(i),s=n(7),r=n(195),a=n(165),l=n(152),c=n(8),p=n(85),d=n(86),u=n(65),h=null;e.a=Object(c.a)(s.default,{applyFontStyles:function(t,e){var n="";e=e||"",t.css({"font-weight":this.attr(e+"Font.Bold")?"bold":"","font-style":this.attr(e+"Font.Italic")?"italic":""}),this.attr(e+"Font.Strikeout")&&(n+="line-through",n+=" "),this.attr(e+"Font.Underline")&&(n+="underline"),t.css("text-decoration",n)},fillMap:function(){s.default.fillMap.call(this),this.fieldMap.append(["Data:Text"])},_trim:function(t){return t&&t.trim()},parseApplyFontNET:function(t,e){var n,i,r,a,o,s=[];if(e=e||"",t){for(r=0,a=(t=t.split(",")).length;r<a;r+=1){if(o=t[r].trim(),/^style=/.test(o)){s.push(o.substr(6)),s=s.concat(t.slice(r+1).map(this._trim));break}isNaN(parseInt(o,10))?n=o:i=o}n&&((h=h||new Promise(function(o){window.requestIdleCallback(function(){for(var t,e=document,n=e.fonts,i=n.entries(),r=[],a=!1;!a;)(t=i.next()).done?a=t.done:r.push(t.value[0].family.replace(/"/g,""));o(r)})})).then(function(t){t.includes(n)||l.a.load(n)}),this.attr(e+"Font.Name",n)),i&&this.attr(e+"Font.Size",i),s.length&&(~s.indexOf("Bold")&&this.attr(e+"Font.Bold",!0),~s.indexOf("Italic")&&this.attr(e+"Font.Italic",!0),~s.indexOf("Underline")&&this.attr(e+"Font.Underline",!0),~s.indexOf("Strikeout")&&this.attr(e+"Font.Strikeout",!0))}},fillFontNET:function(t,e){e=e||"",this.parseApplyFontNET(t.attr(e+"Font"),e),this.deleteProp(e+"Font")},parseApplyFontVCL:function(t){var e,n,i;t&&(e=t["Font.Name"],n=Math.abs(t["Font.Height"]),e&&this.attr("Font.Name",e),n&&this.attr("Font.Size",n+"pt"),(i=a.a.fontStyleToNet(+t["Font.Style"]||0))&&i.length&&(~i.indexOf("Bold")&&this.attr("Font.Bold",!0),~i.indexOf("Italic")&&this.attr("Font.Italic",!0),~i.indexOf("Underline")&&this.attr("Font.Underline",!0),~i.indexOf("Strikeout")&&this.attr("Font.Strikeout",!0)))},fillFontVCL:function(t){var e={};Array.prototype.forEach.call(t[0].attributes,function(t){t.name.startsWith("Font.")&&(e[t.name]=t.value)}),this.parseApplyFontVCL(e),Object.keys(e).forEach(function(t){this.deleteProp(t)}.bind(this))},horzAlignNET2VCL:function(t){return"Center"===t?"haCenter":"Right"===t?"haRight":"Justify"===t?"haBlock":"haLeft"},horzAlignVCL2NET:function(t){return"haCenter"===t?"Center":"haRight"===t?"Right":"haBlock"===t?"Justify":"Left"},vertAlignNET2VCL:function(t){return"Center"===t?"vaCenter":"Bottom"===t?"vaBottom":"vaTop"},vertAlignVCL2NET:function(t){return"vaCenter"===t?"Center":"vaBottom"===t?"Bottom":"Top"},fillPropsNET:function(t){s.default.fillPropsNET.apply(this,arguments),this.fillFontNET(t),this.prop("Text")&&this.prop("Text",Object(p.a)(this.prop("Text").toString()));var e,n=t.find("> Highlight"),i=this;return n.length&&this.highlights&&o.a.each(n,function(){(e=r.a.create()).fillPropsNET(o()(this)),i.highlights.add(e)}),this},fillPropsVCL:function(t){return s.default.fillPropsVCL.apply(this,arguments),this.fillFontVCL(t),this.prop("Text")&&this.prop("Text",Object(p.a)(this.prop("Text").toString())),this.prop("HAlign")&&(this.prop("HorzAlign",this.horzAlignVCL2NET(this.prop("HAlign"))),this.deleteProp("HAlign")),this.prop("VAlign")&&(this.prop("VertAlign",this.vertAlignVCL2NET(this.prop("VAlign"))),this.deleteProp("VAlign")),this},toXMLNET:function(a){var t=this;return new Promise(function(r){s.default.toXMLNET.call(t,a).then(function(e){var n,i=o()(e.xml);a=Object.assign({parentNode:i[0]},a),"#000000"===t.prop("TextFill.Color")&&i.removeAttr("TextFill.Color"),t.prop("Text")&&i.attr("Text",Object(d.a)(t.prop("Text").replace(/\n/gm,"\r\n"))),Object(u.a)(i,t),n=[],t.highlights&&t.highlights.eachEntity(function(t){n.push(t.toXMLNET(a))}),Promise.all(n).then(function(t){return t.forEach(function(t){return i.append(t)}),r(e)})})})},toXMLVCL:function(t){var n=this;return new Promise(function(e){s.default.toXMLVCL.call(n,t).then(function(t){return t=o()(t),n.prop("Text")&&t.attr("Text",Object(d.a)(n.prop("Text").replace(/\n/gm,"\r\n"))),n.prop("HorzAlign")&&(t.attr("HAlign",n.horzAlignNET2VCL(n.prop("HorzAlign"))),t.removeAttr("HorzAlign")),n.prop("VertAlign")&&(t.attr("VAlign",n.vertAlignNET2VCL(n.prop("VertAlign"))),t.removeAttr("VertAlign")),e(t[0])})})}})},function(t,e,n){"use strict";e.a=function(){return Math.random().toString(36).substr(2,9)}},,,,function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i=(r.prototype._writeLog=function(t,e,n,i){var r,a;if(this.enabled){if(function(){var t,e,n=window.navigator.userAgent,i=n.indexOf("MSIE ");return 0<i?parseInt(n.substring(i+5,n.indexOf(".",i)),10):0<n.indexOf("Trident/")?(t=n.indexOf("rv:"),parseInt(n.substring(t+3,n.indexOf(".",t)),10)):0<(e=n.indexOf("Edge/"))&&parseInt(n.substring(e+5,n.indexOf(".",e)),10)}())return console[e].apply(console,t);r="",t.forEach(function(t){r+="string"!=typeof t&&"number"!=typeof t?" %o ":" %s "}),a="",n&&(a+="color:"+n+";"),i&&(a+="background-color:"+i+";"),t=this.logDate?["%c%s - %s: "+r,a,this.name,(new Date).toISOString()].concat(t):["%c%s: "+r,a,this.name].concat(t),console[e].apply(null,t)}},r.prototype.enable=function(){this.enabled=!0},r.prototype.disable=function(){this.enabled=!1},r.prototype.enableLogDate=function(){this.logDate=!0},r.prototype.disableLogDate=function(){this.logDate=!1},r.prototype.log=function(){return this._writeLog(Array.from(arguments),"log")},r.prototype.info=function(){return this._writeLog(Array.from(arguments),"info","#2B579A")},r.prototype.warn=function(){return this._writeLog(Array.from(arguments),"warn")},r.prototype.error=function(){return this._writeLog(Array.from(arguments),"error")},r.prototype.dirxml=function(){return this._writeLog(Array.from(arguments),"dirxml")},r);function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"main",e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),this.name=t,this.enabled=e,this.logDate=n}},function(t,e,n){"use strict";var i=!!/iphone|android|webos|blackberry|ipad|ipod|iemobile|opera mini/i.test(navigator.userAgent);e.a=i},,function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(8),o=n(29),s=n(293),l=n.n(s);e.a=Object(a.a)({},{container:null,entities:[],create:function(t){var e=Object(a.a)(this);return e.entities=[],e.container=t||null,e},all:function(e){return e&&Array.isArray(e)?this.entities.filter(function(t){return!t.attr("removed")&&-1<e.indexOf(t.type)?t:null}):this.entities.filter(function(t){return!t.attr("removed")})},clone:function(){return l()(this)},allWithChildren:function(e){var n=[];return e&&Array.isArray(e)?this.everyEntity(function(t){!t.attr("removed")&&-1<e.indexOf(t.type)&&n.push(t)}):this.everyEntity(function(t){t.attr("removed")||n.push(t)}),n},eachEntity:function(t,e){var n,i=e?this.entities:this.all();for(n=0;n<i.length&&!1!==t.call(this,i[n],n);n+=1);return this},everyEntity:function(){return this.eachEntity.apply(this,arguments)},count:function(t){return this.all(t).length},add:function(t){if(t)return t.collection&&t.collection!==this&&t.collection.remove(t),(t.collection=this).entities.includes(t)||this.entities.push(t),this},find:function(n){var i=void 0;return this.everyEntity(function(t,e){if(t._id===n)return!(i=[t,e])}),i},findEntity:function(){var t=this.find.apply(this,arguments);return t&&t[0]},findAmongChildren:function(n,t){var i=void 0;return this.eachEntity(function(t,e){if(t._id===n)return!(i=[t,e])},t),i},nextAfter:function(n){var i=void 0,r=void 0;return this.eachEntity(function(t,e){if(n._id===t._id)r=e;else if(void 0!==r&&!t.attr("removed"))return i=t,!1},!0),i},prevBefore:function(e){var n=void 0,i=!1;return this.eachEntity(function(t){if(e._id===t._id)return!(i=!0);t.attr("removed")||(n=t)},!0),i&&n},findBy:function(e){var n=[],i=Object.keys(e),r=i.length,a=void 0,o=void 0,s=void 0;return this.everyEntity(function(t){for(a=r;a--;)if(o=i[a],s=e[o],t[o]!==s&&t.attributes[o]!==s&&t.properties[o]!==s)return;n.push(t)}),n},findOneBy:function(){return this.findBy.apply(this,arguments)[0]},findAmongChildrenBy:function(t){var e=0<arguments.length&&void 0!==t?t:{},n=[],i=Object.keys(e),r=i.length,a=void 0,o=void 0,s=void 0;return this.eachEntity(function(t){for(a=r;a--;)if(o=i[a],s=e[o],t[o]!==s&&t.attributes[o]!==s&&t.properties[o]!==s)return;n.push(t)}),n},findOneAmongChildrenBy:function(){return this.findAmongChildrenBy.apply(this,arguments)[0]},findAmongAll:function(e){var n=[],i=Object.keys(e),r=i.length,a=void 0,o=void 0,s=void 0;return this.everyEntity(function(t){for(a=r;a--;)if(o=i[a],s=e[o],t[o]!==s&&t.attributes[o]!==s&&t.properties[o]!==s)return;n.push(t)},!0),n},findOneAmongAll:function(){return this.findAmongAll.apply(this,arguments)[0]},first:function(t){return this.all(t)[0]||null},last:function(t){var e=this.all(t);return e[e.length-1]},after:function(e,n){var i=!1;return this.everyEntity(function(t){e._id!==t._id?i&&n.call(t,t):i=!0}),this},remove:function(t){return t?(Object(o.a)(this.entities,t),this):null},clear:function(){return this.entities.length=0,this},isEmpty:function(){return!this.entities.length},getMainCollection:function(){return this.mainCollection||this.container.collection.mainCollection},getSelectedComponents:function(t){var e=".component.selected";return t&&(e=e+"."+t),r()(e,this.container.$workspace).map(function(){return this.component.attr("removed")?null:this.component})},getComponents:function(t,e){var n=".component";return t&&(n="{0}.{1}".format(n,t)),r()(n,this.container.$workspace).map(function(){return!e&&this.component.attr("removed")?null:this.component})},getSelectedBand:function(){return r()(".band.selected",this.container.$workspace).map(function(){return this.band.attr("removed")?null:this.band})[0]}})},function(t,e,n){"use strict";var i,r,a,o,s,l,c,p,d,u,h,f,g,m,b;n.d(e,"a",function(){return d}),i=n(324),r=n(0),a=n.n(r),o=n(4),s=n(2),l=n(1),c=300,p=5e3,u=o.a.get("notifications"),d=u?"html5"===u?(h=0,f=window.webkitNotifications||window.Notification||null,g=!0,a()(document).on("click",function(){f&&g&&f.requestPermission()}),function(t,e){var n,i={};return f?(i.tag=h,i.icon=null,i.name="",i.body="string"!=typeof t?t.text().replace(/\n/,""):e.trans?s.a.tr(t):t,n=f.createNotification?f.createNotification(i.icon,i.name,i.body):new f(i.name,i),h+=1,n.onshow=function(){!1!==e.delay&&setTimeout(function(){n.close()},e.delay||p)},n.onerror=function(){g=!1,f=null,l.a.trigger("info",{message:'\n HTML5 Notifications are blocked. Change property "notifications"\n in config on "default" or switch it off.\n '})},n):null}):(m=a()("<div>"),b=function(t,e){var n=a()("<div>"),i=a()("<div>");return n.hide(),n.addClass("ntf"),i.addClass("ntf-message"),n.append(i),n.on("click",function(){n.fadeOut(c)}),e.success&&n.addClass("ntf-success"),e.danger&&n.addClass("ntf-danger"),e.warning&&n.addClass("ntf-warning"),e.info&&n.addClass("ntf-info"),!1===e.limitWidth&&n.css("max-width","none"),"string"!=typeof t?i.html(t):i.html(e.trans?s.a.tr(t):t),n},m.addClass("ntf-panel"),function(t,e){var n,i=window.DSG.head,r=window.DSG.currentReport;if((e=e||{}).debug)return!1;m.parent().length||i.put(m),m.css({top:r.attr("Top"),right:"10px"}),n=b(t,e),e.inEmptyList?m.html(n):m.prepend(n),n.fadeIn(300,function(){!1!==e.delay&&setTimeout(function(){n.fadeOut(c,function(){n.removeClass("success danger warning info")})},e.delay||p)})}):function(){}},function(t,e,n){"use strict";var i,S,o,s,r,a,l,d,x,P,c,p,w,u;n.r(e),i=n(0),S=n.n(i),o=n(4),s=n(17),r=n(25),a=n(2),l=n(1),d=n(194),x=n(3),P=n(5),c=n(42),p=n(32),w=n(75),u=n(46),e.default=s.a.createObject(s.a,{title:"Objects TextObject",info:"TextObjectInfo",icon:"icon-102",pos:10,type:"TextObject",typevcl:"TfrxMemoView",disabled:!1,_init:function(){s.a._init.apply(this,arguments),this.highlights=r.a.create(this),this.defaultValues={Angle:0,VertAlign:"Top",HorzAlign:"Left","TextFill.Color":"#000","Padding.Left":2,"Padding.Right":2,AutoShrinkMinSize:0,Editable:!1,CanBreak:!0,Clip:!0,FirstTabOffset:0,FontWidthRatio:1,LineHeight:0,ParagraphOffset:0,TabWidth:58,ProcessAt:"Default",WordWrap:!0,AllowExpressions:!0,TextRenderType:"Default"},this.attr({"droppable-view":!0,"droppable-component":!0,withPadding:!0,"text-anchor":"start"}),this.prop({Name:"Text",Width:94.5,Height:18.9,Text:""}),this.setDefaultFont()},setDefaultFont:function(){this.attr({"Font.Name":o.a.get("default-font-name"),"Font.Size":"10pt","Font.Bold":!1,"Font.Italic":!1,"Font.Underline":!1,"Font.Strikeout":!1})},getPxFontSize:function(){var t=this.attr("Font.Size");return/pt$/.test(t)&&(t=+(parseFloat(t,10)/.75).toFixed(2)),parseFloat(t,10)},getHorzAlign:function(){var t=this.prop("HorzAlign"),e=this.attr("innerWidth"),n=this.getPxFontSize(),i=0;return this.attr("minPadding",n/5),"Center"===t||"Justify"===t?(i=e/2,this.attr("text-anchor","middle")):"Left"===t?(i=this.attr("minPadding"),this.attr("text-anchor","start")):"Right"===t&&(i=e-this.attr("minPadding"),this.attr("text-anchor","end")),parseInt(i,10)},getVertAlign:function(){var t=this.prop("VertAlign"),e=this.attr("innerHeight"),n=this.attr("contentHeight"),i=this.getPxFontSize(),r=0,a=0;return"Center"===t?a=e/2-n/2:"Bottom"===t&&(a=e-n),(r=Math.floor(i/10)-1)<0&&(r=0),a+i-r},dblclick:function(){l.a.trigger("show-expression-editor",{entity:this,prop:"Text"})},getContextMenuItems:function(){function t(t){e.onChangeCM(t),e._updateProperties()}var e=this;return[{name:a.a.tr("ComponentMenu Edit"),type:"default",closeAfter:!0,onClick:function(){l.a.trigger("activate",e),e.dblclick()}},{name:a.a.tr("TextObject Format"),type:"default",closeAfter:!0,onClick:function(){l.a.trigger("activate",e),l.a.trigger("format",e)}},{name:a.a.tr("ComponentMenu Clear"),type:"default",closeAfter:!0,onClick:function(){e.prop("Text","",!0),e.render(),l.a.trigger("activate",e)}},{name:a.a.tr("ComponentMenu Hyperlink"),type:"default",closeAfter:!0,onClick:function(){l.a.trigger("hyperlink-editor",e)}},{type:"separator"},{name:a.a.tr("ComponentMenu CanGrow"),type:"checkbox",curVal:e.prop("CanGrow"),prop:"CanGrow",onChange:t},{name:a.a.tr("ComponentMenu CanShrink"),type:"checkbox",curVal:e.prop("CanShrink"),prop:"CanShrink",onChange:t},{name:a.a.tr("ComponentMenu CanBreak"),type:"checkbox",curVal:e.prop("CanBreak"),prop:"CanBreak",onChange:t},{name:a.a.tr("ComponentMenu GrowToBottom"),type:"checkbox",curVal:e.prop("GrowToBottom"),prop:"GrowToBottom",onChange:t},{type:"separator"},{name:a.a.tr("ComponentMenu AutoWidth"),type:"checkbox",curVal:e.prop("AutoWidth"),prop:"AutoWidth",onChange:t},{name:a.a.tr("ComponentMenu WordWrap"),type:"checkbox",curVal:e.prop("WordWrap"),prop:"WordWrap",onChange:t},{name:a.a.tr("Allow Expressions"),type:"checkbox",curVal:e.prop("AllowExpressions"),prop:"AllowExpressions",onChange:t},{type:"separator"},{name:a.a.tr("Menu Edit Cut"),type:"default",closeAfter:!0,shortcut:"Ctrl + X",onClick:function(){l.a.trigger("cut",S()(e))}},{name:a.a.tr("Menu Edit Copy"),type:"default",closeAfter:!0,shortcut:"Ctrl + C",onClick:function(){l.a.trigger("copy",S()(e))}},{name:a.a.tr("Menu Edit Paste"),type:"default",disabled:!window.DSG.currentReport.getCurrentPage().buffer.length,closeAfter:!0,shortcut:"Ctrl + V",onClick:function(){setTimeout(function(){l.a.trigger("paste")},100)}},{name:a.a.tr("Menu Edit Delete"),type:"default",disabled:!e.canBeRemoved(),closeAfter:!0,shortcut:"Del",onClick:function(){l.a.trigger("remove",e)}},{type:"separator"},{name:a.a.tr("Layout BringToFront"),type:"default",closeAfter:!0,onClick:function(){l.a.trigger("bring-to-front",e)}},{name:a.a.tr("Layout SendToBack"),type:"default",closeAfter:!0,onClick:function(){l.a.trigger("send-to-back",e)}}]},mouseover:function(){var t,e,n=this.$moveBlock[0].getBoundingClientRect(),i=this.prop("Text"),r=this.attr("Font.Size"),a=window.DSG.head,o=this.prop("Width"),s=this.prop("Height"),l=this.prop("HorzAlign"),c=this.prop("VertAlign"),p="";i&&"in_move"!==this.attr("state")&&"HtmlTags"===this.prop("TextRenderType")&&(this.$tooltip||(this.$tooltip=new d.a,a.put(this.$tooltip)),(e=this.$tooltip).css({left:n.left,top:n.top+n.height+10,width:o,height:s,"text-align":l.toLowerCase(),"background-color":this.$moveBlock.css("fill")}),this.attr("Font.Underline")&&(p+="underline "),this.attr("Font.Strikeout")&&(p+="line-through"),(t=e.find("span")).css({"vertical-align":"Center"===c?"middle":c.toLowerCase(),transform:"rotate("+this.prop("Angle")+"deg)","font-size":r+(Object(u.a)(r)?"pt":""),"font-family":this.attr("Font.Name"),color:this.prop("TextFill.Color"),"font-weight":this.attr("Font.Bold")?700:400,"font-style":this.attr("Font.Italic")?"italic":"normal"}),p&&t.css("text-decoration",p),i=i.replace(/\n/g,"<br/>"),t.html(i),a.$node.height()<e.offset().top+e.height()&&e.css("top",n.top-e.innerHeight()-10))},mouseout:function(){this.$tooltip&&(this.$tooltip.remove(),delete this.$tooltip)},movingStart:function(){s.a.movingStart.apply(this,arguments),this.mouseout()},creatingComponentEnd:function(t,e,n){this.prop("Text",n)},linesAmount:function(){return this.$textNode.find("tspan").length||1},_getLineHeight:function(t){var e=this.prop("LineHeight");return e||t},_createMultiline:function(){function t(t){return Object(w.a)(t,{"font-size":h,"font-family":f,"font-weight":g})}var e,n,i,r,a,o,s,l,c,p=this.prop("Text"),d=this.$textNode,u=p.split(/[\n]/g),h=d.css("font-size"),f=d.css("font-family"),g=d.css("font-weight"),m=this.attr("innerWidth"),b=0,v=!1,y=void 0,C=void 0;for(d.empty(),e=0;e<u.length;e+=1){if(n=u[e],i=Object(x.a)("tspan"),r=S()(i),""===n.trim())n=" ",r.append(n);else for(a=n.split(" "),r.append(document.createTextNode(a[0])),d.append(r),o=1;o<a.length;o+=1)s=a[o],l=r.text().length,r.text(r.text()+" "+s),(y=t(r.text())).w>m&&(i.firstChild.data=i.firstChild.data.slice(0,l),C=this._getLineHeight(y.h),0===e||v||Object(P.a)(i,{x:0,dy:C}),i=Object(x.a)("tspan"),r=S()(i),Object(P.a)(i,{x:0,dy:C}),b+=C,r.append(s),d.append(r),v=!0);y=y||t(n),b+=C=this._getLineHeight(y.h),c=0!==e||v?C:0,Object(P.a)(i,{x:0,dy:c}),d.append(r),y=null,v=!1}this.attr("contentHeight",b||0)},render:function(){var t,e,n=this.prop("Angle"),i=this.attr("Font.Size"),r=this.attr("Font.Name"),a=this.prop("Text");return s.a.render.apply(this,arguments),this.$contentGroup.children().length||(this.$nestedG1=S()(Object(x.a)("g")),this.$nestedG2=S()(Object(x.a)("g")),this.$textNode=S()(Object(x.a)("text")),this.$nestedG2.append(this.$textNode),this.$nestedG1.append(this.$nestedG2),this.$contentGroup.append(this.$nestedG1)),this.attr("droppable-component")?Object(c.a)(this.g,"droppable-component"):Object(p.a)(this.g,"droppable-component"),this.attr("droppable-view")?Object(c.a)(this.g,"droppable-view"):Object(p.a)(this.g,"droppable-view"),a!==this.$textNode.text()&&this.$textNode.text(a),this.$textNode.css({"font-size":i+(Object(u.a)(i)?"pt":""),fill:this.prop("TextFill.Color"),"font-family":r}),this.prop("TextOutline.Enabled")?this.$textNode.css({stroke:this.prop("TextOutline.Color")||"#000","stroke-width":this.prop("TextOutline.Width")||1,"stroke-dasharray":o.a.get("dasharrays")[this.prop("TextOutline.Style")||"Solid"]}):this.$textNode.css({stroke:"","stroke-width":"","stroke-dasharray":""}),this.applyFontStyles(this.$textNode),this._createMultiline(),t=this.getHorzAlign(),e=this.getVertAlign(),this.$textNode.css("text-anchor",this.attr("text-anchor")),Object(P.a)(this.$nestedG2[0],"transform","translate("+t+", "+e+")"),void 0!==n&&Object(P.a)(this.$nestedG1[0],"transform","translate({0}, {1}) rotate({2} {3} {4})".format(this.prop("Width")/2-this.attr("innerWidth")/2,this.prop("Height")/2-this.attr("innerHeight")/2,n,this.attr("innerWidth")/2,this.attr("innerHeight")/2)),this.prop("Clip")?this.body.firstChild.style="overflow: hidden;":this.body.firstChild.style="overflow: visible;",this.$g}})},,function(t,e,n){"use strict";var i=n(192);e.a=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n]===e)return Object(i.a)(t,n);return!1}},function(t,e,n){"use strict";var i,r,a,o,s,l,c,p;n.d(e,"e",function(){return i}),n.d(e,"c",function(){return r}),n.d(e,"f",function(){return a}),n.d(e,"d",function(){return o}),n.d(e,"h",function(){return s}),n.d(e,"b",function(){return l}),n.d(e,"a",function(){return c}),n.d(e,"g",function(){return p}),p={PREVIEW_TAB:i="preview",HOME_TAB:r="home",REPORT_TAB:a="report",LAYOUT_TAB:o="layout",VIEW_TAB:s="view",COMPONENTS_TAB:l="components",BANDS_TAB:c="bands"}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=[{dataType:"null",label:" ",icon:"icon-224"},{dataType:"System.Boolean",icon:"icon-228",label:"Boolean"},{dataType:"System.Byte",icon:"icon-224",label:"Byte"},{dataType:"System.Char",icon:"icon-223",label:"Char"},{dataType:"System.DateTime",icon:"icon-227",label:"DateTime"},{dataType:"System.Decimal",icon:"icon-226",label:"Decimal"},{dataType:"System.Double",icon:"icon-225",label:"Double"},{dataType:"System.Int16",icon:"icon-224",label:"Int16"},{dataType:"System.Int32",icon:"icon-224",label:"Int32"},{dataType:"System.Int64",icon:"icon-224",label:"Int64"},{dataType:"System.SByte",icon:"icon-224",label:"SByte"},{dataType:"System.Single",icon:"icon-225",label:"Single"},{dataType:"System.String",icon:"icon-223",label:"String"},{dataType:"System.TimeSpan",icon:"icon-227",label:"TimeSpan"},{dataType:"System.UInt16",icon:"icon-224",label:"UInt16"},{dataType:"System.UInt32",icon:"icon-224",label:"UInt32"},{dataType:"System.UInt64",icon:"icon-224",label:"UInt64"},{dataType:"System.Byte[]",icon:"icon-229",label:"Byte[]"}];e.a={first:function(){return a[0]},get:function(e){return r.a.grep(a,function(t){return t.dataType===e})[0]},getByName:function(e){return r.a.grep(a,function(t){return t.label===e})[0]},all:function(){return a}}},function(t,e,n){"use strict";var r=n(5);e.a=function(t,e){var n,i;return t.classList?t.classList.remove(e):(n=new RegExp("(^|\\s)"+e+"(\\s|$)","g"),i=(i=Object(r.a)(t,"class")).replace(n,"$1").replace(/\s+/g," ").replace(/(^ | $)/g,""),Object(r.a)(t,"class",i)),t}},function(t,e,n){"use strict";var i,f,g,r,a,o,s,l,c;n.r(e),i=n(0),f=n.n(i),g=n(7),r=n(2),a=n(1),o=n(128),s=n(129),l=n(88),c=n(32),e.default=g.default.createObject(g.default,{title:"Objects TableObject",info:"TableObjectInfo",icon:"icon-127",pos:60,type:"TableObject",disabled:!1,_init:function(){g.default._init.apply(this,arguments),this.rows=[],this.columns=[],this.defaultValues={Layout:"AcrossThenDown",WrappedGap:0,AdjustSpannedCellsWidth:!1,RepeatHeaders:!0,ManualBuildAutoSpans:!0,FixedColumns:0,FixedRows:0},this.prop("Name","Table"),this.attr({RowCount:3,ColumnCount:3})},createCell:function(t){return l.a.create(t)},clone:function(){var r,a=g.default.clone.apply(this);return this._eachRow(function(n,i){a.rows[n]=i.clone(a),this._eachColumn(function(t,e){a.columns[t]||(a.columns[t]=e.clone(a)),r=i.cells[t].clone(a.rows[n]),a.rows[n].cells[t]=r})}),a},getContextMenuItems:function(){function t(){e.onChangeCM.bind(e),e._updateProperties()}var e=this;return[{name:r.a.tr("TableObject RepeatHeaders"),type:"checkbox",curVal:e.prop("RepeatHeaders"),prop:"RepeatHeaders",onChange:t},{name:r.a.tr("BreakableComponent CanBreak"),type:"checkbox",curVal:e.prop("CanBreak"),prop:"CanBreak",onChange:t},{name:r.a.tr("ComponentMenu GrowToBottom"),type:"checkbox",curVal:e.prop("GrowToBottom"),prop:"GrowToBottom",onChange:t},{type:"separator"},{name:r.a.tr("Menu Edit Delete"),type:"default",disabled:!e.canBeRemoved(),closeAfter:!0,onClick:function(){a.a.trigger("remove",e)}},{type:"separator"},{name:r.a.tr("Layout BringToFront"),type:"default",closeAfter:!0,onClick:function(){a.a.trigger("bring-to-front",e)}},{name:r.a.tr("Layout SendToBack"),type:"default",closeAfter:!0,onClick:function(){a.a.trigger("send-to-back",e)}}]},attr:function(t,n){var e=g.default.attr.apply(this,arguments);return void 0!==n&&("RowCount"===t?this.rows=this.rows.slice(0,n):"ColumnCount"===t&&(this.columns=this.columns.slice(0,n),this._eachRow(function(t,e){e.cells=e.cells.slice(0,n)}))),e},resizingComponents:function(){var t;return g.default.resizingComponents.apply(this,arguments),~(t=this.resizingElements.map(function(t){return t.className}).indexOf("nw-resize"))&&(this.resizingElements[t].hidden=!0),this},appendRow:function(t){var e=s.a.create(this);return this.attr("RowCount",this.attr("RowCount")+1),f.a.isNumeric(t)||(t=this.rows.length),this.rows.splice(t,0,e),this._eachColumn(function(){e.cells.push(this.createCell(e))}),e},removeRow:function(t){return this.rows.splice(t,1),this.attr("RowCount",this.attr("RowCount")-1),this},appendColumn:function(n){var t=o.a.create(this);return this.attr("ColumnCount",this.attr("ColumnCount")+1),f.a.isNumeric(n)||(n=this.columns.length),this.columns.splice(n,0,t),this._eachRow(function(t,e){this._eachColumn(function(t){t===n&&e.cells.splice(t,0,this.createCell(e))})}),t},removeColumn:function(t){return this.columns.splice(t,1),this.attr("ColumnCount",this.attr("ColumnCount")-1),this},getCell:function(t,e){return this.rows[t].cells[e]},_eachRow:function(t){var e=0,n=this.attr("RowCount");for(t=t||function(){};e<n;e+=1)t.call(this,e,this.rows[e]||(this.rows[e]=s.a.create(this)))},_eachColumn:function(t){var e=0,n=this.attr("ColumnCount");for(t=t||function(){};e<n;e+=1)t.call(this,e,this.columns[e]||(this.columns[e]=o.a.create(this)))},_eachCell:function(i){var r;i=i||function(){},this._eachRow(function(t,n){this._eachColumn(function(t,e){r=n.cells[t]||(n.cells[t]=this.createCell(n)),i.call(this,t,r,n,e)})})},_percentage:function(){var n=this.prop("Width"),i=this.prop("Height");this._eachColumn(function(t,e){e.attr("percentage",e.prop("Width")/(n/100))}),this._eachRow(function(t,e){e.attr("percentage",e.prop("Height")/(i/100))})},_recalculate:function(){var n=this.prop("Width"),i=this.prop("Height");this._eachRow(function(t,e){e.prop("Height",i/100*e.attr("percentage"))}),this._eachColumn(function(t,e){e.prop("Width",n/100*e.attr("percentage"))})},_processSpanCell:function(){var i,r,a=[];return this._processSpanCell=function(t,e,n){if(r=t.prop("RowSpan"),a[n]&&a[n].self!==t){if(a[n].counter+=1,a[n].counter<=a[n].need&&(a[n].self.prop("Height",a[n].self.prop("Height")+this.rows[e].prop("Height")),t.$g.addClass("fr-hidden"),a[n].self.render(),1<(r=a[n].self.prop("ColSpan"))&&(a[n].self.getPosInRow()+r>this.attr("ColumnCount")&&(r=Math.abs(a[n].self.getPosInRow()-this.attr("ColumnCount"))),i={self:t,counter:1,need:r})),a[n].counter>a[n].need)return t.$g.removeClass("fr-hidden"),a[n].self.render(),a[n]=void 0,this._processSpanCell(t,e,n);if(e+1===this.attr("RowCount"))return a[n].self.render(),void(a[n]=void 0)}else 1<r&&(a[n]={self:t,counter:1,need:r});if(r=t.prop("ColSpan"),i&&i.self!==t){if(i.counter+=1,i.counter<=i.need&&(i.self.prop("Width",i.self.prop("Width")+this.columns[n].prop("Width")),t.$g.addClass("fr-hidden"),i.self.render()),i.counter>i.need)return t.$g.removeClass("fr-hidden"),i.self.render(),i=null,this._processSpanCell(t,e,n);if(i.self.parent!==t.parent)return t.$g.removeClass("fr-hidden"),i.self.render(),void(i=null)}else 1<r&&(t.getPosInRow()+r>this.attr("ColumnCount")&&(r=Math.abs(t.getPosInRow()-this.attr("ColumnCount"))),i={self:t,counter:1,need:r});i||a[n]||t.$g.removeClass("fr-hidden")},this._processSpanCell.apply(this,arguments)},_generate:function(){var r,a,o,s,l=0;this.$contentGroup&&this.$contentGroup.children().length>this.attr("RowCount")*this.attr("ColumnCount")&&this.$contentGroup.empty(),this._eachRow(function(n,i){a=0,s=i.prop("Height"),this._eachColumn(function(t,e){r=i.cells[t]||(i.cells[t]=this.createCell(i)),o=e.prop("Width"),r.prop({Width:o,Height:s,Left:a,Top:l}),a+=o,r.render(),this._processSpanCell(r,n,t),this.$contentGroup&&this.$contentGroup.append(r.$g)}),l+=s}),a&&l&&(this.prop("Width",a),this.prop("Height",l))},appendEdges:function(){},update:function(){return this._generate(),this._percentage(),this.render()},render:function(){return this.render=function(){return this.attr("ColumnCount")===this.columns.length&&this.attr("RowCount")===this.rows.length||this.update(),g.default.render.apply(this,arguments),this._recalculate(),this._generate(),this.$g},g.default.render.apply(this,arguments),this.$additionalMoveBlock=this.createMoveBlock(),Object(c.a)(this.content,"move"),Object(c.a)(this.$moveBlock[0],"move"),Object(c.a)(this.$moveBlock[0],"move-decor"),this.$g.append(this.$additionalMoveBlock),this.update(),this.$g},fillPropsNET:function(t){function e(t,n){t.each(function(){var t=f()(this),e=window.DSG.components[t.prop("tagName")];e&&((e=e.create()).fillPropsNET(t),e.render(),n.put(e))})}var n,i,r,a,o,s,l,c,p,d,u,h;for(g.default.fillPropsNET.apply(this,arguments),n=f()("TableRow",t),r=0,a=(i=f()("TableColumn",t)).length,this.attr("RowCount",n.length),this.attr("ColumnCount",a),this._generate();r<a;r+=1)this.columns[r].fillPropsNET(f()(i[r]));for(r=0,a=n.length;r<a;r+=1)for(s=(o=f()(n[r])).children(),(u=this.rows[r]).fillPropsNET(o),p=0,d=s.length;p<d;p+=1)l=f()(s[p]),(h=u.cells[p]).fillPropsNET(l),(c=l.children()).length&&e(c,h)},toXMLNET:function(s){var e=this;return new Promise(function(o){g.default.toXMLNET.call(e,s).then(function(r){var n,a=f()(r.xml);s=Object.assign({parentNode:a[0]},s),n=[],e._eachColumn(function(t,e){n.push(e.toXMLNET(s))}),Promise.all(n).then(function(t){t.forEach(function(t){t.xml&&a.append(t.xml)});var i=[];e._eachRow(function(t,e){var n=new Promise(function(i){s.parentNode=a[0],e.toXMLNET(s).then(function(t){var e,n;if(!t.xml)return i();e=f()(t.xml),a.append(e),n=[],f.a.each(t.cells,function(){s.parentNode=e[0],n.push(this.toXMLNET(s))}),Promise.all(n).then(function(t){return t.forEach(function(t){return e.append(t.xml)}),i()})})});i.push(n),Promise.all(i).then(function(){return o(r)})})})})})}})},function(t,p,d){"use strict";(function(n){var t=d(39),e=d(137),i=d(289),r=d(290),a=d(291),o=d(292),s=d(5),l=d(3),c=d(18);p.a=t.a.createObject(t.a,{SM:new e.a,init:function(){this.buffer=[],this.attr({padding:0,margin:0})},isPage:function(){return!0},isReportPage:function(){return!1},isDialog:function(){return!1},isCode:function(){return!1},createWorkspace:function(t){this.g=this.workspace=Object(l.a)("svg",{class:"d-rw "+t,viewBox:"0 0 0 0"}),this.$g=this.$workspace=n(this.g),this.$workspace.addClass("fr-hidden"),this.updateFilters().updateDefs()},getNetID:function(){return this._netID=this._netID||"d-net-"+Object(c.a)(),this._netID},updateDefs:function(){var t=Object(l.a)("defs");return this.$workspace.find("defs").remove(),this.netId=this.getNetID(),n(t).append(new i.a,new r.a,new a.a,new o.a(this.netId)),this.$workspace.append(t),this},updateFilters:function(){var t,e;return this.$filters&&this.$filters.remove(),this.$filters=n(Object(l.a)("g")),t=n(Object(l.a)("filter",{id:"grayscale"})),e=n(Object(l.a)("feColorMatrix",{type:"matrix",values:"0.393 0.769 0.189 0 0 0.349 0.686 0.168 0 0 0.272 0.534 0.131 0 0 0 0 0 1 0"})),t.append(e),this.$filters.append(t),this.$workspace.append(this.$filters),this},show:function(){this.report.$workspace.removeClass("fr-hidden"),this.$workspace.removeClass("fr-hidden"),this.attr({isHidden:!1,removed:!1,activated:!0}),this.report.pages.current=this},hide:function(){this.$workspace.addClass("fr-hidden"),this.attr({isHidden:!0,activated:!1})},activate:function(){return this.attr("isHidden")&&this.show(),this},deactivate:function(){return this.attr("isHidden")||this.hide(),this},getWidth:function(t){var e=this.attr("Width")||this.prop("Width")||0;return e+=this.attr("margin"),e+=2*this.attr("padding"),e*=t},getHeight:function(t){var e=this.attr("Height")||this.prop("Height")||0;return e+=2*this.attr("padding"),e*=t},getViewBox:function(t,e,n){var i=Object(s.a)(this.workspace,"viewBox").split(" ");return void 0!==e&&(i[2]=e/t),void 0!==n&&(i[3]=n/t),i.join(" ")},setWidth:function(){var t=this.report.attr("data-scale"),e=this.getWidth(t),n=this.getViewBox(t,e);Object(s.a)(this.workspace,"viewBox",n),Object(s.a)(this.workspace,"width",e)},setHeight:function(){var t=this.report.attr("data-scale"),e=this.getHeight(t),n=this.getViewBox(t,void 0,e);Object(s.a)(this.workspace,"viewBox",n),Object(s.a)(this.workspace,"height",e)},updateSize:function(){this.setWidth(),this.setHeight()},createMini:function(){var t=this.$g.clone();return t.removeAttr("class"),t.removeAttr("width"),t.removeAttr("height"),Object(s.a)(t.get(0),"viewBox",this.getViewBox(1,this.getWidth(1),this.getHeight(1))),t.find(".ruler").remove(),t.removeClass("fr-hidden"),t}})}).call(this,d(0))},function(t,e,n){"use strict";var i=n(4),r=n(89),a=n(1),o=n(15),s=n(31),l=n(8),c=i.a.get("dasharrays"),p=Object(l.a)(r.a,{data:{Appearance:{label:"Appearance",fields:{Border:{label:"Properties Border",fields:{"Border.Color":{label:"Properties Color",type:"color"},"Border.Width":{label:"Properties Width",type:"number"},"Border.Style":{label:"Properties Style",type:"select",collection:c},BottomLine:{label:"Properties BottomLine",fields:{"Border.BottomLine.Color":{label:"Properties Color",type:"color"},"Border.BottomLine.Style":{label:"Properties Style",type:"select",collection:c},"Border.BottomLine.Width":{label:"Properties Width",type:"number",defaultValue:1}}},LeftLine:{label:"LeftLine",fields:{"Border.LeftLine.Color":{label:"Properties Color",type:"color"},"Border.LeftLine.Style":{label:"Properties Style",type:"select",collection:c},"Border.LeftLine.Width":{label:"Properties Width",type:"number",defaultValue:1}}},RightLine:{label:"RightLine",fields:{"Border.RightLine.Color":{label:"Properties Color",type:"color"},"Border.RightLine.Style":{label:"Properties Style",type:"select",collection:c},"Border.RightLine.Width":{label:"Properties Width",type:"number",defaultValue:1}}},TopLine:{label:"Properties TopLine",fields:{"Border.TopLine.Color":{label:"Properties Color",type:"color"},"Border.TopLine.Style":{label:"Properties Style",type:"select",collection:c},"Border.TopLine.Width":{label:"Properties Width",type:"number",defaultValue:1}}},"Border.Shadow":{label:"Properties Shadow",type:"checkbox"},"Border.ShadowColor":{label:"Properties ShadowColor",type:"color"},"Border.ShadowWidth":{label:"Properties ShadowWidth",type:"number"}},expression:!0,expressionEventName:"edit-border"},Fill:{label:"Properties Fill",fields:{"Fill.Blend":{type:"number",label:"Properties Blend",attrs:{min:0,max:1,step:.1}},"Fill.Color":{type:"color",label:"Properties Color",getValue:function(){return this.prop("Fill.Color")||this.$moveBlock.css("fill")}},"Fill.Hatch":{type:"checkbox",label:"Properties Hatch"}}},Font:r.a._font(),HorzAlign:{type:"select",label:"Properties HorzAlign",collection:["Left","Center","Right","Justify"]},TextFill:{label:"Properties TextFill",fields:{"TextFill.Color":{type:"color",label:"Color",getValue:function(){return this.prop("TextFill.Color")||this.$textNode.css("fill")}}}},TextOutline:{type:"text",label:"Properties TextOutline",expression:!0,expressionEventName:"text-outline",readonly:!0,readonlyValue:"(TextOutline)"},Underlines:{label:"Properties Underlines",type:"checkbox"},VertAlign:{label:"Properties VertAlign",type:"select",collection:["Top","Center","Bottom"]},Columns:{label:"Properties Columns",fields:{"Columns.Count":{label:"Properties Count",extraLabel:"Columns count",type:"number",attrs:{min:0}},"Columns.Layout":{label:"Properties Layout",type:"select",collection:["AcrossThenDown","DownThenAcross"]},"Columns.MinRowCount":{label:"Properties MinRowCount",type:"number"},"Columns.Position":{label:"Properties Position",type:"number"},"Columns.Width":{label:"Properties Width",extraLabel:"Columns width",type:"unit",attrs:{min:0}}}}}},Behavior:{label:"Properties Behavior",fields:{BreakTo:{type:"select",label:"Properties BreakTo",collection:function(){function n(t){e!==t&&i.push(t)}var t,e=this,i=[""],r=["TableObject","MatrixObject"];return"TableCell"===this.type?(t=this.getTable().collection.container).components.eachEntity(function(t){-1<r.indexOf(t.type)&&t._eachCell(function(t,e){n(e)})}):("TableCell"===(t=this.collection.container).type&&(t=t.getTable().collection.container),t.components.eachEntity(function(t){-1<r.indexOf(t.type)?t._eachCell(function(t,e){n(e)}):t.type===e.type&&n(t)})),i}},PrintOn:{type:"select",label:"Properties PrintOn",multiple:!0,collection:["FirstPage","LastPage","OddPages","EvenPages","RepeatedBand","SinglePage"]}}},Data:{label:"Properties Data",fields:{Text:{type:"textarea",label:"Properties Text",expression:!0,exprMenu:!0},Highlight:{type:"text",label:"Properties Highlight",expression:!0,expressionEventName:"edit-highlight",readonly:!0,getValue:function(){return this.highlights.count()?"[...]":"[]"}},Image:{type:"file",label:"Properties Image"},ImageLocation:{type:"url",label:"Properties ImageLocation"},DataType:{label:"Properties DataType",type:"select",collection:function(){return s.a.all()},setValue:function(e,t){var n=s.a.getByName(t);o.a.push({context:this,func:function(t){this.prop(e,t),a.a.trigger("update-data-panel")},undoData:[this.prop(e)],redoData:[n]}),this.prop(e,n),a.a.trigger("update-data-panel")}}}},Design:{label:"Properties Design",fields:{Name:{label:"Properties _Name",extraLabel:"Properties Name",type:"text",afterSetValue:function(){a.a.trigger("update-info"),this.updateTreeView(),a.a.trigger("update-data-panel")},isValid:function(t){return!/\s/.test(t)}},Alias:{label:"Properties Alias",type:"text",getValue:function(t){return this.prop(t)||this.prop("Name")},setValue:function(t,e){this.prop(t,e===this.prop("Name")?"":e,!0)},afterSetValue:function(){a.a.trigger("update-data-panel")}},Restrictions:{label:"Properties Restrictions",type:"select",multiple:!0,collection:["DontMove","DontResize","DontModify","DontEdit","DontDelete","HideAllProperties"],setValue:function(e,t){function n(){r.hasHiddenProperties()?r.fieldMap=p.factory([]):r.canModify()?r.fillMap():r.fieldMap=p.factory(["Design:Restrictions"]),a.a.trigger("update-properties-panel",r)}var i=this.prop(e),r=this;o.a.push({func:function(t){r.prop(e,t),n()},undoData:[i],redoData:[t]}),this.prop(e,t),n()},afterSetValue:function(){a.a.trigger("update-properties-panel",this)}}}},Layout:{label:"Properties Layout",fields:{Anchor:{label:"Properties Anchor",type:"select",multiple:!0,collection:["Top","Left","Right","Bottom"]},Dock:{label:"Properties Dock",type:"select",collection:["None","Top","Left","Fill","Right","Bottom"]},Height:Object.assign(r.a._topProps(),{label:"Properties Height",type:"unit"}),Left:Object.assign(r.a._leftProps(),{label:"Properties Left",type:"unit"}),Padding:{label:"Properties Padding",fields:{"Padding.All":{type:"number",label:"Properties PaddingAll",afterSetValue:function(t,e){this.prop({"Padding.Top":e,"Padding.Right":e,"Padding.Bottom":e,"Padding.Left":e}),a.a.trigger("update-properties-panel",this)}},"Padding.Bottom":{type:"number",label:"Properties PaddingBottom"},"Padding.Left":{type:"number",label:"Properties PaddingLeft"},"Padding.Right":{type:"number",label:"Properties PaddingRight"},"Padding.Top":{type:"number",label:"Properties PaddingTop"}}},Top:Object.assign(r.a._topProps(),{type:"unit",label:"Properties Top"}),Width:Object.assign(r.a._leftProps(),{type:"unit",label:"Properties Width"})}}}});e.a=p},,,function(t,e,n){"use strict";var i=n(4);e.a=function(t,e){return e=i.a.get("sticky-grid")?e||i.a.get("grid"):1,[Math.round(Math.abs(t[0]||0)/e)*e,Math.round(Math.abs(t[1]||0)/e)*e]}},function(t,e,n){"use strict";var i=n(4),r=n(12),a=n(8);e.a=Object(a.a)(r.a,{updateExts:function(){},render:function(t){var e,n;return t=t||{},this.attr("removed")&&(this.attr("removed",!1),this.$g.removeClass("fr-hidden")),this.bands&&(e=t.top||0,n=0,i.a.get("resize-bands")&&(n=i.a.get("band-indent-top")||0),this.bands.everyOwnEntity(function(t){t.balance(),t.setPosition(t.prop("Left"),e),e+=t.prop("Height")+n+t.bands.getAllBandsHeight()})),this},remove:function(){return!!r.a.remove.call(this)&&(this.deactivate(),this.attr("removed",!0),this.$g&&this.$g.addClass("fr-hidden"),!0)},addBand:function(t,e){var n=void 0;if(this.isPage())n=this;else{if(!this.isBand())return!1;n=this.getPage()}return!(!t||t.canBeAdded&&!1===t.canBeAdded(this))&&(t.bands.initMainCollection(n.bands),t.renderContainer(),this.put(t,e),t)},put:function(t,e){this.isPage()?this.$bands.append(t.$g):!0===t.attr("placeAboveParent")?this.$bandsTop.append(t.$g):this.$bandsBottom.append(t.$g),t._parent=this,t.attr("margin",this.attr("margin")),t.attr("padding",this.attr("padding")),t.prop("Width",this.prop("Width")||this.attr("Width")),this.bands.add(t,e)}})},,function(t,e,n){"use strict";var i,c,p,o,s,l,r,a,d,u,h,f;n.r(e),i=n(0),c=n.n(i),p=n(4),o=n(34),s=n(14),l=n(126),r=n(193),a=n(8),d=n(18),u=n(3),h=n(23),f=n(5),e.default=Object(a.a)(o.a,{create:function(){return this.createObject(this,{init:function(){this.SM.add(this),this._id="rp"+Object(d.a)(),this.unparsed=[],this.attr({title:"Report",info:"Report info",icon:"icon-000"}),this.attr({isHidden:!0,activated:!1,removed:!1,Height:100,padding:18.89,margin:p.a.get("show-band-title")?h.a?40:100:0,borderLines:[4,2]}),this.defaultValues={"Columns.Count":1,"Columns.Position":0,"Columns.Width":718.11,"Watermark.Enabled":!1,"Watermark.Image":"","Watermark.ImageSize":"Zoom","Watermark.ImageTransparency":0,"Watermark.ShowImageOnTop":!1,"Watermark.ShowTextOnTop":!0,"Watermark.Text":"","Watermark.TextFill.Color":"#CCC","Watermark.TextRotation":"ForwardDiagonal","Fill.Color":"#fff",Landscape:!1,PaperWidth:793.8,PaperHeight:1122.51,LeftMargin:37.8,RightMargin:37.8,TopMargin:37.8,BottomMargin:37.8,RawPaperSize:0,FirstPageSource:7,OtherPagesSource:7,TitleBeforeHeader:!0},this.prop("Name","Page"),this.initNodes(),this.bands=r.a.create(this),this.bands.initMainCollection(this.bands),this.attr=function(t,e){var n=o.a.attr.apply(this,arguments);if(void 0!==e)switch(t){case"margin":case"padding":case"Width":this.update();break;case"Height":this.setHeight()}return n}}})},isReportPage:function(){return!0},init:function(){this.type="ReportPage",this.typevcl="TfrxReportPage",this.report=null},initNodes:function(){this.createWorkspace("page"),this.$bands=c()(Object(u.a)("g")),this.$extraWidthLines=c()(Object(u.a)("g",{class:"fr-extra-design-width-lines"})),this.$upControlElements=c()(Object(u.a)("g")),this.$g.data("page",this),this.$g.append(this.$bands,this.$extraWidthLines,this.$upControlElements)},updateExtraWidth:function(){var t,e,n,i,r,a;if(this.prop("ExtraDesignWidth")){if(t=5,e=this.attributes.Width,this.attributes.Width*=t,this.$extraWidthLines.is(":empty"))for(n=this.bands.getAllBandsHeight(),i=this.attr("margin"),r=this.attr("padding");0<t;t--)a=new l.a({x1:e*t+i+r,x2:e*t+i+r,y1:0,y2:n+i+r}),this.$extraWidthLines.append(a),a.removeClass("fr-hidden")}else this.$extraWidthLines&&this.$extraWidthLines.children().length&&this.$extraWidthLines.empty();return this},update:function(){var e=this;this.attributes.Width=this.prop("PaperWidth")-this.prop("LeftMargin")-this.prop("RightMargin"),this.attr("Width")<0&&(this.attributes.Width=0),this.updateExtraWidth(),this.updateSize(),this.bands.everyEntity(function(t){t.attr({margin:e.attr("margin"),padding:e.attr("padding")}),t.prop("Width",e.attr("Width"))}),this.render()},balance:function(){this.attr("Height",this.bands.getAllBandsHeight()),this.showLines()},show:function(){o.a.show.apply(this,arguments),this.balance(),this.update()},activate:function(){var t;return o.a.activate.apply(this,arguments),(t=this.bands.getSelectedBand())&&t.deactivate(),this},clear:function(){return this.bands.clear(),this},showLines:function(){var t,i,r,a=this.attr("borderLines"),e=this.attr("padding"),n=this.attr("margin"),o=this.attr("Width"),s=this.attr("Height"),l=n+e;return!(!a||!Array.isArray(a))&&(t=[{x1:l,y1:e,x2:o+l,y2:e},{x1:o+l,y1:e,x2:o+l,y2:s+e},{x1:l,y1:e,x2:l,y2:e+s}],i=this.$workspace,r=c()("> line",i),p.a.get("resize-bands")||t.push({x1:l,y1:e+s,x2:o+l,y2:e+s}),t.forEach(function(t,e){var n=r[e]||Object(u.a)("line");Object(f.a)(n,{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2}),2===a.length&&Object(f.a)(n,"style","stroke-dasharray: "+a[0]+", "+a[1]+";"),i.append(c()(n))}),this)},render:function(){return this.$workspace.css("fill","transparent"),o.a.render.call(this,{top:this.attr("padding")}),this.balance(),this},canHaveChildren:function(){return!0},fillPropsNET:function(t){return o.a.fillPropsNET.apply(this,arguments),t.attr("PaperWidth")&&this.prop("PaperWidth",parseFloat(s.a.toPx(t.attr("PaperWidth"),"mm"),10)),t.attr("PaperHeight")&&this.prop("PaperHeight",parseFloat(s.a.toPx(t.attr("PaperHeight"),"mm"),10)),t.attr("LeftMargin")&&this.prop("LeftMargin",parseFloat(s.a.toPx(t.attr("LeftMargin"),"mm"),10)),t.attr("RightMargin")&&this.prop("RightMargin",parseFloat(s.a.toPx(t.attr("RightMargin"),"mm"),10)),t.attr("TopMargin")&&this.prop("TopMargin",parseFloat(s.a.toPx(t.attr("TopMargin"),"mm"),10)),t.attr("BottomMargin")&&this.prop("BottomMargin",parseFloat(s.a.toPx(t.attr("BottomMargin"),"mm"),10)),t.attr("Columns.Width")&&this.prop("Columns.Width",parseFloat(s.a.toPx(t.attr("Columns.Width"),"mm"),10)),t.attr("Watermark.Image")&&this.prop("Watermark.Image","data:image/png;base64,"+t.attr("Watermark.Image")),this},fillPropsVCL:function(t){return o.a.fillPropsVCL.apply(this,arguments),t.attr("PaperWidth")&&this.prop("PaperWidth",parseFloat(s.a.toPx(t.attr("PaperWidth"),"mm"),10)),t.attr("PaperHeight")&&this.prop("PaperHeight",parseFloat(s.a.toPx(t.attr("PaperHeight"),"mm"),10)),t.attr("LeftMargin")&&this.prop("LeftMargin",parseFloat(s.a.toPx(t.attr("LeftMargin"),"mm"),10)),t.attr("RightMargin")&&this.prop("RightMargin",parseFloat(s.a.toPx(t.attr("RightMargin"),"mm"),10)),t.attr("TopMargin")&&this.prop("TopMargin",parseFloat(s.a.toPx(t.attr("TopMargin"),"mm"),10)),t.attr("BottomMargin")&&this.prop("BottomMargin",parseFloat(s.a.toPx(t.attr("BottomMargin"),"mm"),10)),this},toXMLNET:function(r){var a=this;return new Promise(function(i){o.a.toXMLNET.call(a,r).then(function(t){var e,n=c()(t.xml);r=Object.assign({parentNode:n[0]},r),n.attr("PaperWidth")&&n.attr("PaperWidth",parseFloat(s.a.toUnit(n.attr("PaperWidth"),"mm"),10)),n.attr("PaperHeight")&&n.attr("PaperHeight",parseFloat(s.a.toUnit(n.attr("PaperHeight"),"mm"),10)),n.attr("RightMargin")&&n.attr("RightMargin",parseFloat(s.a.toUnit(n.attr("RightMargin"),"mm"),10)),n.attr("LeftMargin")&&n.attr("LeftMargin",parseFloat(s.a.toUnit(n.attr("LeftMargin"),"mm"),10)),n.attr("TopMargin")&&n.attr("TopMargin",parseFloat(s.a.toUnit(n.attr("TopMargin"),"mm"),10)),n.attr("BottomMargin")&&n.attr("BottomMargin",parseFloat(s.a.toUnit(n.attr("BottomMargin"),"mm"),10)),n.attr("Columns.Width")&&n.attr("Columns.Width",parseFloat(s.a.toUnit(n.attr("Columns.Width"),"mm"),10)),n.attr("Watermark.Image")&&n.attr("Watermark.Image",n.attr("Watermark.Image").replace(/^([\w:\/;]+base64,){1}/,"")),e=[],a.bands.eachEntity(function(t){e.push(t.toXMLNET(r))}),Promise.all(e).then(function(t){return t.forEach(function(t){t.xml&&n.append(t.xml)}),c.a.each(a.unparsed,function(){n.append(this)}),i({xml:n[0]})})})})},toXMLVCL:function(r){var a=this;return new Promise(function(i){o.a.toXMLVCL.call(a,r).then(function(t){var e,n=c()(t.xml);r=Object.assign({parentNode:n[0]},r),n.attr("PaperWidth")&&n.attr("PaperWidth",parseFloat(s.a.toUnit(n.attr("PaperWidth"),"mm"),10)),n.attr("PaperHeight")&&n.attr("PaperHeight",parseFloat(s.a.toUnit(n.attr("PaperHeight"),"mm"),10)),n.attr("RightMargin")&&n.attr("RightMargin",parseFloat(s.a.toUnit(n.attr("RightMargin"),"mm"),10)),n.attr("LeftMargin")&&n.attr("LeftMargin",parseFloat(s.a.toUnit(n.attr("LeftMargin"),"mm"),10)),n.attr("TopMargin")&&n.attr("TopMargin",parseFloat(s.a.toUnit(n.attr("TopMargin"),"mm"),10)),n.attr("BottomMargin")&&n.attr("BottomMargin",parseFloat(s.a.toUnit(n.attr("BottomMargin"),"mm"),10)),e=[],a.bands.eachEntity(function(t){e.push(t.toXMLVCL(r))}),Promise.all(e).then(function(t){return t.forEach(function(t){t&&n.append(t)}),c.a.each(a.unparsed,function(){n.append(this)}),i(n[0])})})})}})},function(t,e,n){"use strict";var r=n(5);e.a=function(t,e){var n,i;if(t.classList)t.classList.add(e);else{if(n=new RegExp("(^|\\s)"+e+"(\\s|$)","g"),i=Object(r.a)(t,"class"),n.test(i))return null;i=((i||"")+" "+e).replace(/\s+/g," ").replace(/(^ | $)/g,""),Object(r.a)(t,"class",i)}return t}},function(t,e,n){"use strict";var i,r,a,o,s,l,c,p;n.d(e,"d",function(){return i}),n.d(e,"c",function(){return r}),n.d(e,"g",function(){return a}),n.d(e,"f",function(){return o}),n.d(e,"b",function(){return s}),n.d(e,"a",function(){return l}),n.d(e,"h",function(){return c}),n.d(e,"e",function(){return p}),i=50,r="200",a=100,o=20,l=s=200,c=0,p=1},function(t,e,n){"use strict";var i=n(0),d=n.n(i),r=n(4),p=n(2),a=n(1),o=n(93),l=n(170),s=n(8),c=n(12),u=n(51),h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f={},g=Object(s.a)(c.a,{_afterFilter:function(t,e,n){n.element.render&&n.element.render(),"function"==typeof n.afterSetValue&&n.afterSetValue.apply(n.element,arguments)},_beforeFilter:function(t){"function"==typeof t.beforeSetValue&&t.beforeSetValue.apply(t.element,arguments)},_applyProp:function(t,e,n,i){var r,a=n.field;if(this._beforeFilter(a),a.value=e,"function"==typeof a.setValue)return a.setValue.apply(a.element,arguments),void this._afterFilter(t,e,a);r=void 0!==a.element.attr(t)?"attr":"prop",a.element[r](t,e,i),this._afterFilter(t,e,a)},_getRelatedExtraField:function(t,e){var n=t.data("control");return e.querySelector('[field="'+n.$group[0].getAttribute("field")+'"]')},_getRelatedField:function(t,e){var n=t.data("control"),i=void 0;switch(n.$group[0].getAttribute("field-type")){case u.a:i=u.e;break;case u.e:i=u.a}return e.querySelector('[entity="'+n.$group[0].getAttribute("entity")+'"][field="'+n.$group[0].getAttribute("field")+'"][field-type="'+i+'"]')},_processProp:function(a,o){var s,t,l,c=d.a.Deferred(),p=this._getRelatedField;return a.is(".js-subcontrol-value")&&(t=a.parents(".d-fc-json-field:first")).length&&(a=t),s=a.data("control"),l=s.field,d.a.when(s.getProp(),s.getValue(a)).done(function(n,i){function t(t,e){e.removeClass("has-error"),g._applyProp(n,i,t,o),c.resolve(l)}function e(t){return t.addClass("has-error"),c.resolve(!1),!1}var r=p(a,document.querySelector(".cstn"));r&&(r.control.isValid(i),r.control.isValid(i)||r.control.field.defaultValue&&i===r.control.field.defaultValue?t(r.control,r.control.$control):e(r.control.$control)),l.isValid?l.isValid.call(l.element,i)?t(s,a):e(a):s.isValid(i)||s.field.defaultValue&&i===s.field.defaultValue?t(s,a):e(a)}),c.promise()},_generateGroupHeader:function(t,e,n){if(!t.fields)return!1;function i(){l.removeClass("icon-plus").addClass("icon-minus")}function r(){l.removeClass("icon-minus").addClass("icon-plus"),s.hide()}var a=d()("<div>"),o=d()("<div>"),s=d()("<div>"),l=d()("<div>"),c=d()("<span>");return s.attr("tabIndex",-1),a.addClass("cstn-panel"),o.addClass("cstn-panel-header"),s.addClass("cstn-panel-body"),l.addClass("fa cstn-toogle"),n&&n.globalType&&a.attr("entity",n.globalType),n&&n.mainClass&&!a[0].classList.contains(n.mainClass)&&a[0].classList.add(n.mainClass),n&&n.headerClass&&!o[0].classList.contains(n.headerClass)&&o[0].classList.add(n.headerClass),a[0].field=t,e&&(a.addClass("cstn-root"),s.addClass("fgs-opened")),c.text(p.a.tr(t.label)),o.append(l,c),a.append(o,s),void 0!==f[t.label]?!1===f[t.label]?r():i():t.opened||e?i():r(),a.data("field",t),{$main:a,$header:o,$body:s,$toggle:l,$headerTitle:c}},_bindMainProps:function(t,e){return e.prop=t,e.element=this,e.getValue?e.value=e.getValue.call(this,t,e):(e.value=this.prop(t),void 0===e.value&&(e.value=this.attr(t),void 0===e.value&&(e.value=e.defaultValue))),e},_buildMap:function(){return function n(t,i,r){var a,o,s=this;d.a.each(t,function(t,e){if(a=g._generateGroupHeader(e,r))return i.append(a.$main),n.call(s,e.fields,a.$body),a;g._bindMainProps.call(s,t,e),e.control=l.a.getFor(e),(o=e.control.self.$control).is(".d-fc-json-field")?(o.on("change keyup","input",g._changeControl),o.on("focus","input",g._focusOnControl),o.on("blur","input",g._blurFromControl)):(o.on("change keyup",g._changeControl),o.is(":not(select[multiple])")&&(o.on("focus",g._focusOnControl),o.on("blur",g._blurFromControl))),i.append(e.control.$main)})}.apply(this,arguments)},_clickOnHeader:function(t){var e=d()(this),n=e.find(".cstn-toogle"),i=e.parent(),r=i.data("field");if(d()(t.target).is(".d-fc-exp-but"))return!1;n.is(".icon-minus")?(r.opened=!1,e.next(".cstn-panel-body").slideUp(100,function(){d()(this).removeClass("fgs-opened"),n.removeClass("icon-minus").addClass("icon-plus")})):(r.opened=!0,e.next(".cstn-panel-body").slideDown(100,function(){d()(this).addClass("fgs-opened"),n.removeClass("icon-plus").addClass("icon-minus")})),i.is(".cstn-root")&&(f[r.label]=r.opened)},_focusOnControl:function(){r.a.set("hotkeyProhibited",!0)},_updateMenu:Object(o.a)(function(){a.a.trigger("update-menu")},500),_setControlValue:function(i,t){var r=this._updateMenu;d.a.when(this._processProp(i,t)).done(function(e){var n,t=i.data("ref");e&&(t&&t.length?t.forEach(function(t){n=e.control.self.getValue(i,!0),Array.isArray(n)||"object"===(void 0===n?"undefined":h(n))||("checkbox"===e.type?t.prop("checked",n):t.val(n))}):r())})},_changeControl:function(t){var e=!0;t.keyCode&&13!==t.keyCode&&(e=!1),g._setControlValue(d()(this),e)},_blurFromControl:function(){r.a.set("hotkeyProhibited",!1),g._setControlValue(d()(this),!0)},getTargetElement:function(t,e){for(var n=1<arguments.length&&void 0!==e&&e,i=!0,r=t,a=!1,o="";i;){if("DIV"===r.tagName){if(r.classList&&r.classList.contains("cstn-panel")){r.classList.contains("cstn-root")&&(a=!0),o=u.d,i=!1;break}if(r.classList&&r.classList.contains("fg")&&!n){o=u.c,i=!1;break}}r=r.parentElement}return{element:r,root:a,type:o}},buildFavorites:function(t,e,n){var i,r,a,o;return this.form||((i=d()("<form>")).addClass("form-horizontal"),i.addClass("js-properties-form"),i.attr("role","form"),(i[0].component=this).form=i),this.selectedComponent||(r=window.DSG.currentReport,this.selectedComponent=t||r.getPage()),a=d()("<div>"),(o=this._generateGroupHeader({label:"Properties Favorite",opened:!0,fields:e&&0<e.length},!0,{headerClass:"cstn-fav-node-header",mainClass:"cstn-fav-node-main"}))&&(a.addClass("cstn-fav-node-container"),this.form.prepend(a),a.append(o.$main),this._buildMap.call(t,e,{buildExtra:!1,type:u.a,globalType:n,headerClass:"cstn-fav-node-header",rootNode:this.form},o.$body,!1)),this.form.on("click",".cstn-panel-header",this._clickOnHeader),this.form},build:function(t,e,n){var i=window.DSG.currentReport,r=d()("<form>");return r.addClass("form-horizontal"),r.addClass("js-properties-form"),r.attr("role","form"),(r[0].component=this).form=r,this.selectedComponent=t||i.getPage(),e&&(this._buildMap.call(t,e,{buildExtra:!0,type:u.e,globalType:n,rootNode:r},r,!0),r.on("click",".cstn-panel-header",this._clickOnHeader)),r}});e.a=g},,function(t,e,n){"use strict";e.a=function(t){return!isNaN(parseFloat(t))&&isFinite(t)}},function(t,e,n){"use strict";var i,d,a,o,s,c,l,u,p,h,f,g,m,r;n.r(e),i=n(0),d=n.n(i),a=n(4),o=n(7),s=n(1),c=n(3),l=n(5),u=n(50),p=function(t,e){return e=a.a.get("sticky-grid")?e||a.a.get("grid"):1,[Math.round((t[0]||0)/e)*e,Math.round((t[1]||0)/e)*e]},h=n(16),f=n(78),g=n(15),n.d(e,"GROW",function(){return m}),n.d(e,"INITIAL_POINT",function(){return r}),m=10,r="10/10",e.default=o.default.createObject(o.default,{title:"Objects PolyLine",info:"PolyLineObjectInfo",icon:"icon-108",pos:30,type:"PolyLineObject",groupType:"Shapes",poly:!0,disabled:!1,_init:function(){o.default._init.apply(this,arguments),this.defaultValues={Curve:0},this.prop({Name:"PolyLine",Width:20,Height:20,"Fill.Color":"transparent","Border.Lines":"All"}),this.oldWidth=this.prop("Width")-(this.prop("Border.Width")||0),this.oldHeight=this.prop("Height")-(this.prop("Border.Width")||0),this.pointsArray=[],this.points=[],this.noData=!0},onClick:function(){this.hideResizingComponents(),this.showResizingComponents(),this._activate()},adjustPoints:function(e,t){var n,i=!(1<arguments.length&&void 0!==t)||t;e.top&&(this.prop("Height",this.prop("Height")+Math.abs(e.top)),e.top<0&&this.prop("Top",this.prop("Top")+e.top),this._adjust=!0),e.left&&(this.prop("Width",this.prop("Width")+Math.abs(e.left)),e.left<0&&this.prop("Left",this.prop("Left")+e.left),this._adjust=!0),n=function(t){e.top<0&&(t.y-=e.top),e.left<0&&(t.x-=e.left),t.updatePositionProps()},this.eachPoint(n),i&&this.render()},_activate:function(){s.a.trigger("activate",this)},eachPoint:function(t){var e=this.points,n=0,i=e.length,r=void 0,a=void 0,o=void 0;for(t=t||function(){},n=0;n<i;n+=1)r=e[n],a=e[n+1],o=e[n-1],r&&t.call(this,r,a,o);return this},eachBezierPoint:function(e){this.eachPoint(function(t){t.bezierCurve.leftCurve&&e(t.bezierCurve.leftCurve,t),t.bezierCurve.rightCurve&&e(t.bezierCurve.rightCurve,t)})},eachBezierPseudoPoint:function(e){this.eachPoint(function(t){t.bezierCurve.pseudoLeftCurve&&e(t.bezierCurve.pseudoLeftCurve,t),t.bezierCurve.pseudoRightCurve&&e(t.bezierCurve.pseudoRightCurve,t)})},getAvailablePoints:function(){var t=[],e=this.getNearPoints();return e.selectedNext&&e.selectedNext.point&&e.selectedPrev&&e.selectedPrev.point&&(t=[e.selectedNext,e.selectedPrev]),t},getNearPoints:function(){var t,e=this,n=void 0,i=void 0,r=function(t){return e.points[t+1]&&e.points[t+1].isPseudo()?{point:e.points[0],pseudo:e.points[t+1]}:{point:e.points[t+1],pseudo:!1}},a=function(t){return e.points[t].pseudoPoint?{point:e.points[t].pseudoPoint.prev,pseudo:e.points[t].pseudoPoint}:{point:e.points[t].prev,pseudo:!1}};for(t=0;t<this.points.length;t++)this.selectedPoint._id===this.points[t]._id&&(n=r(t),i=a(t));return{selectedNext:n,selectedPrev:i}},createNewLinePointer:function(t,e){var n,i,r,a,o,s,l=this;this.clearNewLinePointer(),this.selectedPoint&&(n=function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},a=r=i=void 0,a=this.$g[0],i=window.DSG.currentReport.getCurrentPage().$g[0],this.pt=i.createSVGPoint(),this.pt.x=e.clientX,this.pt.y=e.clientY,r=a?this.pt.matrixTransform(a.getScreenCTM().inverse()):this.pt.matrixTransform(i.getScreenCTM().inverse()),o=this.getAvailablePoints(),s=p([r.x,r.y]),this.newX=s[0],this.newY=s[1],this.$newLine.append(Object(c.a)("path",{d:"M "+(this.selectedPoint.x+this.prop("CenterX"))+","+(this.selectedPoint.y+this.prop("CenterY"))+" "+this.newX+","+this.newY,stroke:"#000","stroke-width":.3})),o&&o.length&&(this.nearestPoint=o.reduce(function(t,e){return n({x:l.newX,y:l.newY},t.point)<n({x:l.newX,y:l.newY},e.point)?t:e}),this.$newLine.append(Object(c.a)("path",{d:"M "+(this.nearestPoint.point.x+this.prop("CenterX"))+","+(this.nearestPoint.point.y+this.prop("CenterY"))+" "+this.newX+","+this.newY,stroke:"#000","stroke-width":.3}))))},onDeletePoint:function(){var r,a,o,s,l=this;if(this.selectedPoint){for(r=function(){return 0},a=function(){return 0},o=this.points.slice(0),s=0;s<this.points.length&&(this.points[s]._id!==this.selectedPoint._id||"break"!==function(){var t,e=l.points[s+1],n=l.points[s-1],i=l.points[s];return l.points[s].pseudoPoint?(t=l.points[s].pseudoPoint,o.splice(s,1),r=function(){t.setPosition(i.x,i.y,!1),e.pseudoPoint=null,e.prev=i,e.first=!1},(a=function(){t.setPosition(e.x,e.y,!1),e.pseudoPoint=t,e.prev=t,e.first=!0})(),"break"):l.points[s+1]&&l.points[s-1]?(o.splice(s,1),r=function(){e.prev=i},(a=function(){e.prev=n})(),"break"):l.points[s+1]&&!l.points[s-1]?(o.splice(s,1),r=function(){e.prev=i,e.first=!1},(a=function(){e.prev=null,e.first=!0})(),"break"):l.points[s-1]&&!l.points[s+1]?(o.splice(s,1),"break"):void 0}());s++);g.a.push({context:this,func:this.applyPoints,undoData:[{points:this.points.slice(0),handler:r}],redoData:[{points:o.slice(0),handler:a}]}),this.applyPoints({points:o},!1),this.render()}},applyPoints:function(t,e){var n=!(1<arguments.length&&void 0!==e)||e;this.points=t.points,t.handler&&t.handler(),n&&(this.destroyEventListener(),this.render())},onMouseDown:function(t){var r,a,o,s,l,c,p=this,e=".instr-button",n=d()(t.target),i=Object(f.a)(n);if(i&&n.is(".fr-crosshair"))i.onClick&&i.onClick(t);else if(!n.is(e)&&!n.parents(e).length){for(r=this.points.slice(0),a=void 0,o=function(){return 0},s=function(){return 0},l=0;l<this.points.length;l++)if(this.selectedPoint._id===this.points[l]._id){if(c=this.newX-this.prop("CenterX")+"/"+(this.newY-this.prop("CenterY")),!this.points[l+1]&&!this.points[l].pseudoPoint){a=u.a.create(c,this.selectedPoint,{rightClick:this.rightClick.bind(this),parent:this,activate:this.activatedPoint.bind(this)}),r.push(a);break}if(!this.points[l-1]&&!this.points[l].pseudoPoint&&"break"===function(){var t,e,n;return a=u.a.create(c,void 0,{rightClick:p.rightClick.bind(p),parent:p,activate:p.activatedPoint.bind(p)}),t=p.points[l],e=t.prev,n=a,t.prev=a,t.first=!1,o=function(){t.prev=e,t.first=!0},s=function(){t.prev=n,t.first=!1},r.unshift(a),"break"}())break;if(this.nearestPoint.pseudo&&"break"===function(){var t,e,n,i=p.points.findIndex(function(t){return t._id===p.nearestPoint.pseudo._id});return a=u.a.create(c,p.nearestPoint.point.pseudoPoint?p.points[l]:p.nearestPoint.point,{rightClick:p.rightClick.bind(p),parent:p,activate:p.activatedPoint.bind(p)}),t=p.nearestPoint.pseudo,e=p.nearestPoint.pseudo.prev,n=a,t.prev=a,o=function(){t.prev=e},s=function(){t.prev=n},r.splice(i,0,a),"break"}())break;if(this.points[l+1]&&this.nearestPoint&&(this.points[l+1]._id===this.nearestPoint.point._id||this.nearestPoint.pseudo&&this.points[l+1]===this.nearestPoint.pseudo._id)&&"break"===function(){var t,e,n;return a=u.a.create(c,p.points[l],{rightClick:p.rightClick.bind(p),parent:p,activate:p.activatedPoint.bind(p)}),t=p.points[l+1],e=p.points[l+1].prev,n=a,t.prev=a,o=function(){t.prev=e},s=function(){t.prev=n},r.splice(l+1,0,a),"break"}())break;if(this.points[l-1]&&this.nearestPoint&&(this.points[l-1]._id===this.nearestPoint.point._id||this.nearestPoint.pseudo&&this.points[l-1]._id===this.nearestPoint.pseudo._id)&&"break"===function(){var t,e,n;return a=u.a.create(c,p.points[l-1],{rightClick:p.rightClick.bind(p),parent:p,activate:p.activatedPoint.bind(p)}),t=p.points[l],e=p.points[l].prev,n=a,t.prev=a,o=function(){t.prev=e},s=function(){t.prev=n},r.splice(l,0,a),"break"}())break}a&&(this.selectedPoint=a,this.activatedPoint(a)),g.a.push({context:this,func:this.applyPoints,undoData:[{points:this.points.slice(0),handler:o}],redoData:[{points:r.slice(0),handler:s}]}),this.applyPoints({points:r},!1),this.newY-this.prop("CenterY")<0&&this.adjustPoints({top:this.prop("CenterY")+this.newY-this.prop("CenterY")-m},!1),this.newX-this.prop("CenterX")<0&&this.adjustPoints({left:this.prop("CenterX")+this.newX-this.prop("CenterX")-m},!1),this.newY-this.prop("CenterY")>this.prop("Height")&&this.adjustPoints({top:this.newY-this.prop("CenterY")+m-this.prop("Height")},!1),this.newX-this.prop("CenterX")>this.prop("Width")&&this.adjustPoints({left:this.newX-this.prop("CenterX")+m-this.prop("Width")},!1),this.clearNewLinePointer(),this.render(),this.showResizingComponents()}},onMouseMove:function(t){var e=window.DSG.currentReport.$workspace,n=window.DSG.currentReport;return"touchmove.polyobject"===t.type&&e.off("mousemove.polyobject"),h.b.getInstrument()!==h.a.NEW_POINT||this._id!==n.getSelected()._id?(e.unbind("touchmove.polyobject mousemove.polyobject"),e.unbind("mousedown.polyobject touchstart.polyobject"),this.eachPoint(function(t){return t.deactivate()}),void this.clearNewLinePointer()):this.createNewLinePointer(this,t)},onEscapePress:function(t){"Escape"===t.key&&(this.destroyEventListener(),this.clearNewLinePointer())},clearNewLinePointer:function(){this.$newLine.innerHTML=""},destroyEventListener:function(){var t=window.DSG.currentReport.$workspace;d()(document).unbind("keyup.polyobject"),t.unbind("touchmove.polyobject mousemove.polyobject"),t.unbind("mousedown.polyobject touchstart.polyobject"),this.clearNewLinePointer()},createEventListener:function(){var t=window.DSG.currentReport.$workspace;d()(document).on("keyup.polyobject",this.onEscapePress.bind(this)),t.on("touchmove.polyobject mousemove.polyobject",this.onMouseMove.bind(this)),t.on("mousedown.polyobject touchstart.polyobject",this.onMouseDown.bind(this))},hideResizingComponents:function(){o.default.hideResizingComponents.apply(this,arguments),this.clearNewLinePointer(),this.eachPoint(function(t){t.g&&t.g.classList.add("fr-hidden"),t.clickArea&&t.clickArea.classList.add("fr-hidden")}),this.eachBezierPoint(function(t){t.g&&t.g.classList.add("fr-hidden"),t.clickArea&&t.clickArea.classList.add("fr-hidden"),t.line&&t.line.classList.add("fr-hidden")}),this.eachBezierPseudoPoint(function(t){t.g&&t.g.classList.add("fr-hidden"),t.clickArea&&t.clickArea.classList.add("fr-hidden"),t.line&&t.line.classList.add("fr-hidden")})},showPoints:function(t){var e=0<arguments.length&&void 0!==t?t:{bezier:!0,pseudo:!0};this.eachPoint(function(t){t.g&&t.g.classList.remove("fr-hidden"),t.clickArea&&t.clickArea.classList.remove("fr-hidden")}),e.bezier&&this.eachBezierPoint(function(t){t.g&&t.g.classList.remove("fr-hidden"),t.clickArea&&t.clickArea.classList.remove("fr-hidden"),t.line&&t.line.classList.remove("fr-hidden")}),e.pseudo&&this.eachBezierPseudoPoint(function(t){t&&(t.g&&t.g.classList.remove("fr-hidden"),t.clickArea&&t.clickArea.classList.remove("fr-hidden"),t.line&&t.line.classList.remove("fr-hidden"))})},hideMoveRect:function(){this.$moveBlock.addClass("fr-hidden");try{this.$shape[0].parentElement.classList.remove("move")}catch(t){}},showMoveRect:function(){this.$moveBlock.removeClass("fr-hidden");try{this.$shape[0].parentElement.classList.add("move")}catch(t){}},showResizingComponents:function(){switch(h.b.getInstrument()){case h.a.MOVE:o.default.showResizingComponents.apply(this,arguments),this.showMoveRect();break;case h.a.BEZIER:this.showPoints(),this.showMoveRect();break;case h.a.NEW_POINT:this.showPoints({bezier:!1,pseudo:!1}),this.hideMoveRect();break;case h.a.POINT:this.showPoints({bezier:!1,pseudo:!1}),this.showMoveRect()}},appendBorders:function(){},appendPadding:function(){},canHaveProp:function(t){return"Appearance:Border"!==t&&o.default.canHaveProp.apply(this,arguments)},makeFromPoints:function(t,e){var i,r,a,o=this,s=t/this.oldWidth,l=e/this.oldHeight;return this.oldWidth=t,this.oldHeight=e,this._adjust&&(l=s=1,this._adjust=!1),this.prop("CenterX",(this.prop("CenterX")||0)*s),this.prop("CenterY",(this.prop("CenterY")||0)*l),i=this.prop("CenterX"),r=this.prop("CenterY"),a="",this.eachPoint(function(t,e,n){t.updateCenter(i,r),t.updateScale(s,l),t.generatePseudoPoints(t,e,n||t.prev),t.render(),a+=t.$d,o.$points.append(t.$bezierControlPoints)}),this.$path=d()(Object(c.a)("path",{d:a})),this.$path},updateD:function(){var t,e=this.prop("Border.Width")||0,n=this.prop("Width")-e,i=this.prop("Height")-e;this.$shape||(this.$shape=d()(Object(c.a)("g"))),this.$shape.empty(),t=this.createFigure({borderWidth:e,w:n,h:i}),this.$shape.append(t)},createFigure:function(t){var e=t.borderWidth,n=t.w,i=t.h,r=this.makeFromPoints(n,i);return r.css({fill:this.prop("Fill.Color"),stroke:this.prop("Border.Color"),"stroke-width":e,"stroke-dasharray":a.a.get("dasharrays")[this.prop("Border.Style")],transform:"translate("+this.prop("CenterX")+"px,"+this.prop("CenterY")+"px)"}),r},handleNoData:function(){var t=u.a.create(r,null,{rightClick:this.rightClick.bind(this),parent:this,activate:this.activatedPoint.bind(this)});this.points.push(t),this.selectedPoint=t,h.b.setInstrument(h.a.NEW_POINT),this.noData=!1},render:function(){var e=this,t=void 0,n=this.prop("Border.Width")||0,i=this.prop("Width")-n,r=this.prop("Height")-n;return o.default.render.apply(this,arguments),this.noData&&this.handleNoData(),this.$shape||(this.$shape=d()(Object(c.a)("g"))),this.$points||(this.$points=Object(c.a)("g")),this.$points.innerHTML="",this.$shape.empty(),t=this.createFigure({borderWidth:n,w:i,h:r}),this.eachPoint(function(t){t.$workspace=e.$g,e.$points.append(t.g),e.$points.append(t.clickArea)}),this.$newLine||(this.$newLine=Object(c.a)("g")),this.$g.append(this.$newLine),this.$g.append(this.$points),Object(l.a)(this.$shape[0],"transform","translate("+(n/2-this.prop("CenterX"))+","+(n/2-this.prop("CenterY"))+")"),this.$shape.append(t),this.$contentGroup.append(this.$shape),this.$moveBlock.css("fill","transparent"),this.$g},serialize:function(){var r=[];return this.eachPoint(function(t){if(!t.isPseudo()){var e=t.x+"/"+t.y,n=t.bezierCurve.leftCurve?"/L/"+t.bezierCurve.leftCurve.x+"/"+t.bezierCurve.leftCurve.y:"",i=t.bezierCurve.rightCurve?"/R/"+t.bezierCurve.rightCurve.x+"/"+t.bezierCurve.rightCurve.y:"";t.pseudoPoint&&(n=t.pseudoPoint.bezierCurve.leftCurve?"/L/"+t.pseudoPoint.bezierCurve.leftCurve.x+"/"+t.pseudoPoint.bezierCurve.leftCurve.y:""),r.push(e+n+i)}}),r},processPoints:function(){var e=this,n=[];this.pointsArray.forEach(function(t){n.push(u.a.create(t,n[n.length-1],{rightClick:e.rightClick.bind(e),parent:e,activate:e.activatedPoint.bind(e)}))}),this.points=n,this.points[this.points.length-1].last=!0,this.noData=!1},fillPropsNET:function(t){o.default.fillPropsNET.apply(this,arguments),this.pointsArray=t.attr("PolyPoints_v2").split("|"),this.oldWidth=this.prop("Width")-(this.prop("Border.Width")||0),this.oldHeight=this.prop("Height")-(this.prop("Border.Width")||0),this.processPoints()},activatedPoint:function(t,e,n){var i=!(1<arguments.length&&void 0!==e)||e,r=!(2<arguments.length&&void 0!==n)||n;this.eachPoint(function(t){return t.deactivate()}),t.activate(),this.selectedPoint=t,h.b.getInstrument()===h.a.NEW_POINT&&(i&&(this.render(),this.showResizingComponents()),r&&(this.destroyEventListener(),this.createEventListener())),s.a.trigger("update-menu")},rightClick:function(t){t.preventDefault(),o.default.rightClick.apply(this,arguments)},toXMLNET:function(t){var n=this;return this.prop("PolyPoints_v2",this.serialize().join("|")),new Promise(function(e){o.default.toXMLNET.call(n,t).then(function(t){return d()(t.xml).removeAttr("Border.Lines"),e(t)})})},remove:function(){o.default.remove.apply(this,arguments),h.b.setInstrument(h.a.MOVE),s.a.trigger("update-menu")}})},function(t,e,n){"use strict";n(383);var l,i=n(0),c=n.n(i),p=c()(".fr-preload-blanket"),d=+p.css("z-index")||20;e.a={show:function(t,e,n,i,r){var a=c.a.Deferred(),o=n?p.clone():p,s=o.find(".sp-h");return d+=1,o.css("z-index",r||d),(l=l||window.DSG.head).$node.css("cursor","wait"),t=t||s.text(),s.text(t),e&&o.css("background-color","rgba(255,255,255,.5)"),o.fadeIn(void 0!==i?i:300,function(){a.resolve(o)}),l.$main.append(o),a.promise()},show1:function(){this.show(" ",!0,null,null,1e3)},hide:function(t){var e=c.a.Deferred();return t=t||p,(l=l||window.DSG.head).$node.css("cursor",""),t.fadeOut(300,function(){e.resolve()}),e.promise()}}},,function(t,e,a){"use strict";(function(t){var l=a(7),r=a(172),s=a(3),i=a(196),n=a(47),c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.a=l.default.createObject(l.default,{poly:!0,_init:function(t,e,n){var i=n.rightClick,r=n.parent,a=n.activate,o=n.pseudo,s=n.drag;l.default._init.apply(this),this.rightClick=i,e?(this.prev=e,this.first=!1):this.first=!0,s&&(this._drag=s),!0===o&&(this.pseudo=o),"string"==typeof t?Object.assign(this,this.getPointData(t)):"object"===(void 0===t?"undefined":c(t))&&Object.assign(this,t),this._activateHandler=a,this.parent=r,this._selected=!1,this.prop({Name:"PolyPoint",CenterX:0,CenterY:0}),this.attr({removeable:!1,copyable:!1,resizableX:!1,resizableY:!1,resizableXY:!1,movable:!0,selectable:!0})},updateCenter:function(t,e){this.prop("CenterX",t),this.prop("CenterY",e)},isPseudo:function(){return!!this.pseudo},updatePositionProps:function(t,e){t&&(this.x=t),e&&(this.y=e),this.prop({Left:this.x,Top:this.y}),this.pseudoPoint&&this.pseudoPoint.updatePositionProps(this.x,this.y),this.bezierCurve&&this.bezierCurve.leftCurve&&this.bezierCurve.leftCurve.updatePositionProps(),this.bezierCurve&&this.bezierCurve.rightCurve&&this.bezierCurve.rightCurve.updatePositionProps()},getContainer:function(){return this.parent},movingStart:function(){},onClick:function(){this.runActivate()},movingEnd:function(t,e){e&&e.topLastCoord<0-this.prop("CenterY")&&this.parent.adjustPoints({top:this.prop("CenterY")+e.topLastCoord-n.GROW}),e&&e.leftLastCoord<0-this.prop("CenterX")&&this.parent.adjustPoints({left:this.prop("CenterX")+e.leftLastCoord-n.GROW}),e&&e.topLastCoord>this.parent.prop("Height")-this.prop("CenterY")&&this.parent.adjustPoints({top:e.topLastCoord+n.GROW+this.prop("CenterY")-this.parent.prop("Height")}),e&&e.leftLastCoord>this.parent.prop("Width")-this.prop("CenterX")&&this.parent.adjustPoints({left:e.leftLastCoord+n.GROW+this.prop("CenterX")-this.parent.prop("Width")}),this.parent.showResizingComponents()},setPosition:function(t,e,n){var i=!(2<arguments.length&&void 0!==n)||n;this.x=parseFloat(t),this.y=parseFloat(e),i&&this.parent.render()},updateScale:function(t,e){this.processPointScale({x:t,y:e}),this.updatePositionProps()},getPointData:function(t){var e=new i.a(t),n={x:e.x,y:e.y,bezierCurve:{}};return e.rightCurve&&Object.assign(n.bezierCurve,{rightCurve:r.a.create({x:e.cRightX,y:e.cRightY},null,{rightClick:this.rightClick,parent:this})}),e.leftCurve&&Object.assign(n.bezierCurve,{leftCurve:r.a.create({x:e.cLeftX,y:e.cLeftY},null,{rightClick:this.rightClick,parent:this})}),n},dragLeftPseudo:function(t){this.bezierCurve.leftCurve=t},dragRightPseudo:function(t){this.bezierCurve.rightCurve=t},generatePseudoPoints:function(t,e,n){var i=void 0;n&&!this.first&&(i=this.getPseudoPoint(this,n),Object.assign(this.bezierCurve,{pseudoLeftCurve:r.a.create({x:i.x-this.x-this.prop("CenterX"),y:i.y-this.y-this.prop("CenterY")},null,{rightClick:this.rightClick,parent:this,drag:this.dragLeftPseudo.bind(this)})})),e&&(i=this.getPseudoPoint(this,e),Object.assign(this.bezierCurve,{pseudoRightCurve:r.a.create({x:i.x-this.x-this.prop("CenterX"),y:i.y-this.y-this.prop("CenterY")},null,{rightClick:this.rightClick,parent:this,drag:this.dragRightPseudo.bind(this)})}))},createD:function(){var t,e,n=void 0,i=void 0;return this.bezierCurve.leftCurve&&(i=this.x+this.prop("CenterX")+this.bezierCurve.leftCurve.x+this.prop("CenterX")+","+(this.y+this.prop("CenterY")+this.bezierCurve.leftCurve.y+this.prop("CenterY"))+" "),this.prev&&(this.prev.bezierCurve.rightCurve&&(n=this.prev.x+this.prop("CenterX")+this.prev.bezierCurve.rightCurve.x+this.prop("CenterX")+","+(this.prev.y+this.prop("CenterY")+this.prev.bezierCurve.rightCurve.y+this.prop("CenterY"))+" "),i=i||(t=this.getPseudoPoint(this,this.prev)).x+this.prop("CenterX")+","+(t.y+this.prop("CenterY")),this.prev.bezierCurve.rightCurve||(n=(e=this.getPseudoPoint(this.prev,this)).x+this.prop("CenterX")+","+(e.y+this.prop("CenterY")))),n||i?(this.first?"M":"C")+(n?" "+n:"")+(i?" "+i:"")+" "+(this.x+this.prop("CenterX"))+","+(this.y+this.prop("CenterY"))+" ":(this.first?"M":"L")+" "+(this.x+this.prop("CenterX"))+","+(this.y+this.prop("CenterY"))+" "},processPointScale:function(t){t&&(this.x*=t.x,this.y*=t.y),this.bezierCurve.leftCurve&&this.bezierCurve.leftCurve.processPointScale(t),this.bezierCurve.rightCurve&&this.bezierCurve.rightCurve.processPointScale(t)},getPseudoPoint:function(t,e){var n=e.x-t.x,i=e.y-t.y;return n/=3,i/=3,{x:t.x+n,y:t.y+i}},isSelected:function(){return this._selected},createBezierControlPoints:function(){var t,e,n=Object(s.a)("g"),i=void 0,r=void 0,a=void 0,o=void 0;return!this.pseudoPoint&&this.bezierCurve.leftCurve&&(i=this.bezierCurve.leftCurve.render({point:{cx:this.x+this.prop("CenterX"),cy:this.y+this.prop("CenterY")},line:{x:this.x+this.prop("CenterX"),y:this.y+this.prop("CenterY")}})),!this.pseudoPoint&&this.bezierCurve.pseudoLeftCurve&&(r=this.bezierCurve.pseudoLeftCurve.render({point:{cx:this.x+this.prop("CenterX"),cy:this.y+this.prop("CenterY")},line:{x:this.x+this.prop("CenterX"),y:this.y+this.prop("CenterY")}}),!i&&(this.isSelected()||this.isPseudo()&&this.next.isSelected())&&(i=r)),this.prev&&(t=this.prev.x,e=this.prev.y,this.prev.bezierCurve.rightCurve&&(a=this.prev.bezierCurve.rightCurve.render({point:{cx:t+this.prop("CenterX"),cy:e+this.prop("CenterY")},line:{x:t+this.prop("CenterX"),y:e+this.prop("CenterY")}})),this.prev.bezierCurve.pseudoRightCurve&&(o=this.prev.bezierCurve.pseudoRightCurve.render({point:{cx:t+this.prop("CenterX"),cy:e+this.prop("CenterY")},line:{x:t+this.prop("CenterX"),y:e+this.prop("CenterY")}}),!a&&this.prev.isSelected()&&(a=o))),i&&(n.append(i.g),n.append(i.clickArea),n.append(i.line)),a&&(n.append(a.g),n.append(a.clickArea),n.append(a.line)),n},deactivate:function(){this._selected=!1},runActivate:function(){this._activateHandler&&this._activateHandler(this)},activate:function(){this._selected=!0},createPointCircle:function(t,e,n){return Object(s.a)("circle",{cx:t,cy:e,r:n,"stroke-width":"1px",stroke:"#000",fill:"#fff",class:"fr-crosshair fr-poly-point"+(this._selected?" selected":"")+" fr-hidden"})},createClickArea:function(t,e,n){var i=Object(s.a)("circle",{cx:t,cy:e,r:n,fill:"transparent",class:"fr-crosshair fr-hidden"});return i.component=this,i},createPoint:function(){var t=3,e=7,n=this.x+this.prop("CenterX"),i=this.y+this.prop("CenterY");this.g=this.createPointCircle(n,i,t),this.clickArea=this.createClickArea(n,i,e)},render:function(){return this.$bezierControlPoints=this.createBezierControlPoints(),this.$d=this.createD(),!0!==this.pseudo&&this.createPoint(),this.$g=t(this.g),this}})}).call(this,a(0))},function(t,e,n){"use strict";var i,r,a,o,s;n.d(e,"b",function(){return i}),n.d(e,"c",function(){return r}),n.d(e,"d",function(){return a}),n.d(e,"a",function(){return o}),n.d(e,"e",function(){return s}),i="property",r="propField",a="propNode",o="favFields",s="propFields"},,,,,,,,function(t,e,n){"use strict";var i=n(101),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.a=function(){var t=[].slice.call(arguments);if(2===t.length){if(t.push("http://www.w3.org/1999/xlink"),"string"==typeof t[1])return i.a.apply(this,t);if("object"===r(t[1]))return i.c.apply(this,t)}else if(3===t.length)return t.push("http://www.w3.org/1999/xlink"),i.b.apply(this,t);throw new Error("something went wrong")}},function(t,e,i){"use strict";function f(t,e){for(var n=t.length;n--;)t[n][e]()}function p(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))}function r(t){var n,e,i,l=window.DSG.head,c=!1,h=this.data=(n={},e=null,i={},{$svg:t.$workspace,report:t,pageX:0,pageY:0,offsetX:0,offsetY:0,addAction:function(t,e){return n[t]=e,this},getAction:function(t){return n[t]},activate:function(t){return e=t,this},deactivate:function(){return e&&(i[e]=null,e=null),this},getActive:function(){return e},set:function(t){return i[e]=t,this},get:function(){return i[e]}});this.getHandlers=function(t){function d(t){Object(I.a)(t,function(t){var e=h.report.$workspace[0],n=e.getBoundingClientRect(),i=e.scrollTop-(e.clientTop||0)-n.top,r=e.scrollLeft-(e.clientLeft||0)-n.left,a=h.report.attr("data-scale"),o=t.originalEvent,s=o.changedTouches,l=o.touches;return void 0!==t.clientY?i+=t.clientY:i+=l&&l[0]?l[0].clientY:s[0].clientY,void 0!==t.clientX?r+=t.clientX:r+=l&&l[0]?l[0].clientX:s[0].clientX,{x:Math.round(r/a),y:Math.round(i/a)}}(t)),Object(V.a)(t);var e=l.$main.offset();return t.pageX-=e.left,t.pageY-=e.top,t}function e(t){var e=Object(G.a)(S()(t.target)),n=!0;return x.a.trigger("remove-context-menus"),e&&e.rightClick&&(n=e.rightClick(t)),n}var n,i,r,a=void 0,o=void 0,u=(r=null,{start:function(t){(n=s(t))&&(i=[n.pageX,n.pageY],r=setTimeout(function(){return e.call(this,t)}.bind(this),1500))},move:function(t){(n=s(t))&&(!i||n.pageX>i[0]+10||n.pageX<i[0]-10||n.pageY>i[1]+10||n.pageY<i[1]-10)&&(clearTimeout(r),i=r=null)},cancel:function(){clearTimeout(r),r=null}});function s(t){if(w.a){var e=t.originalEvent&&t.originalEvent.touches;if(e)return e[0]}}return"function"==typeof t&&t.call(h),{rightClick:e,mouseover:function(t){var e,n=S()(t.target),i=Object(G.a)(n);i&&(e=i.getPage())&&e.attr("activated")&&i.mouseover&&i.mouseover(t)},mouseout:function(t){var e,n=S()(t.target),i=Object(G.a)(n);i&&(e=i.getPage())&&e.attr("activated")&&i.mouseover&&i.mouseout(t)},dblclick:function(t){var e=S()(t.target),n=Object(G.a)(e);n&&n.dblclick&&n.dblclick(t)},start:function(t){var e=S()(t.target),n=void 0,i=Object(G.a)(e),r=".d-mc:not([disabled])[data-component],.rt-content[data-component]",a=".move",o=".resizing-component,.resizing-line",s=".fr-angle-slider",l=".resizing-band",c=".fr-workspace",p=".fr-crosshair";return e.is(".js-disable-common")?null:e.parents(".fr-lock_window").length||h.getActive()||e.parents(".d-cm").length?null:(u.start.apply(this,arguments),d(t),x.a.trigger("remove-context-menus"),i&&!1===i.mouseStart(t)?null:e.is(r)||e.parents(r).length||X.b.getInstrument()!==X.a.NEW_POINT?(e.is(r)||e.parents(r).length?(e.is(r)||(e=e.parents(r)),Object(I.a)(t,{target:e[0]}),h.activate("creating-component"),n=h.getAction("creating-component")):e.is(a)||e.parents(a).length?(h.activate("moving-component"),n=h.getAction("moving-component")):e.is(o)||e.parents(o).length?(h.activate("resizing-component"),n=h.getAction("resizing-component")):e.is(s)||e.parents(s).length?(h.activate("angle-component"),n=h.getAction("angle-component")):e.is(l)||e.parents(l).length?(h.activate("resizing-band"),n=h.getAction("resizing-band")):e.is(p)?(h.activate("moving-point"),n=h.getAction("moving-point")):(e.is(c)||e.parents(c).length)&&(h.activate("selection"),n=h.getAction("selection")),g.a.set("showHelpers",!1),n&&n.start?n.start.call(h,t,i):void 0):void(i.poly&&i.onClick&&i.onClick(t)))},move:function(t){var e=h.getActive();if(h.pageX=t.pageX,h.pageY=t.pageY,h.offsetX=t.offsetX,h.offsetY=t.offsetY,u.move.apply(this,arguments),e&&!c){if(!(e=h.getAction(e)))return;if(e=e.move)return d(t),e.call(h,t)}},end:function(t){var e,n=h.getActive();return u.cancel.apply(this,arguments),(n=n&&h.getAction(n))&&((n=n.end)&&(d(t),e=n.call(h,t)),h.deactivate()),g.a.set("showHelpers",!0),e},zoomstart:function(t){var e,n=t.touches;return n&&2===n.length?(c=!0,e=Math.sqrt(Math.pow(n[0].clientX-n[1].clientX,2)+Math.pow(n[0].clientY-n[1].clientY,2)),o=a=e,!1):null},zoommove:function(t){if(!c)return null;var e=t.touches,n=p([e[0].clientX,e[0].clientY],[e[1].clientX,e[1].clientY]),i=0;return 50<Math.abs(o-n)&&(i=a<n?.1:-.1,i=h.report.attr("data-scale")+i,x.a.trigger("scale-page",i),o=n),a=n,!1},zoomend:function(){c=!1}}}}var n,a,o,s,C,l,c=i(0),S=i.n(c),g=i(4),u=i(12),d=i(41),h=i(17),m=i(8),b=i(18),v=Object(m.a)(h.a,{type:"Style",init:function(){this.report=null},create:function(){return this.createObject(this,{init:function(){this._id="s"+Object(b.a)(),this.prop({Name:"Style"})}})},isStyle:function(){return!0}}),y=i(15),x=i(1),P=i(25),w=(i(365),i(23)),T=i(42),k=i(32),B=i(166),$=500,O=w.a?30:15,E="component-over",M=function(){function a(t,e){e.css({left:t.pageX-e.outerWidth(!0)-O,top:t.pageY-e.outerHeight(!0)-O})}function l(t,e){var n=e.find(".d-pulse-dot")[0].getBoundingClientRect(),i=p.attr("data-scale"),r=p.getCurrentPage(),a=t.x-r.attr("margin")-r.attr("padding"),o=t.y;return{x:a-=O/i,y:o-=O/i,left:n.left,top:n.top}}var o=this,c=void 0,e=window.DSG.head,p=this.report;S()(document).on("keydown",function(t){var e=o.get();e&&e.$container&&27===t.keyCode&&e.$container.remove()}),this.addAction("creating-component",{start:function(n){function t(){var t=o.get(),e=i.parent()[0].element;a(n,t.$container),r.css("visibility","visible"),t.component=i.data("component"),e&&(t.view=e.view||e.getView&&e.getView(i),t.bindableControl=e.prop&&e.prop("BindableControl")||"Text"),c=null}var i=S()(n.target),r=i.clone();S()(".will-be-created").remove(),r.removeClass("d-wb selected"),r.addClass("will-be-created"),r.css({left:n.pageX,top:n.pageY}),r.append('<div class="d-pulse-dot"><div class="d-dot"></div><div class="d-pulse"></div></div>'),S()(".add,.remove",r).remove(),e.put(r),this.set({$container:r}),w.a||!i.is(".d-mc")?c=setTimeout(t,$):t()},move:function(t){var e,n,i,r=this.get();return r&&r.component?(e=l(t,r.$container),r.$container.addClass("fr-hidden"),n=S()(document.elementFromPoint(e.left,e.top)),r.$container.removeClass("fr-hidden"),a(t,r.$container),(i=S()("."+E)).length&&S.a.each(i,function(){Object(k.a)(this,E)}),r.existingComponent&&r.existingComponent.deleteComponentOver(t,e),r.existingComponent=n.parents(".component.droppable-component:first"),r.existingComponent.length&&r.view&&r.existingComponent.is(".droppable-view")&&~["Text","Custom"].indexOf(r.bindableControl)?(r.existingComponent=r.existingComponent[0].component,Object(T.a)(r.existingComponent.$moveBlock[0],E),r.existingComponent.creatingComponentOver(t,e)):delete r.existingComponent,!1):!c},end:function(t){var e,n,i=this.get(),r=i.$container,a=p.getCurrentPage(),o=S.a.contains(document.documentElement,r[0]),s=l(t,r);r.remove(),c?clearTimeout(c):(o&&(i.existingComponent?(i.existingComponent.creatingComponentEnd(t,s,Object(B.a)(i.view)),Object(k.a)(i.existingComponent.$moveBlock[0],E),i.existingComponent.render()):(e=null,n=this.report.$node[0].getBoundingClientRect(),t.clientX>=n.left&&t.clientX<=n.right&&t.clientY>=n.top&&t.clientY<=n.bottom&&(a.bands?(e=a.bands.findInsideCoord([s.x,s.y]))&&(s.y-=e.prop("Top")):e=a),e||(e=a.bands?a.bands.getSelectedBand()||a.bands.first():a,s.x=0,s.y=a.attr("padding")),x.a.trigger("add-component",i.component,e,{remember:!0,view:i.view,left:s.x,top:s.y}).done(function(t){t&&"SubreportObject"!==t.type&&p.drop(t)}),e.creatingComponentEnd(t,s,Object(B.a)(i.view)))),this.set(null))}})},D=i(38),A=i(95),j=function(){function s(t){x.a.trigger("put-component",t.container,t.component,t.leftLastCoord,t.topLastCoord);var e=t.container.prop("Height");return t.container.prop("Height",t.bandHeight),x.a.trigger("balance-band",t.container,e),!0}function n(t,e){for(var n,i,r=1<t.length||e&&e.ctrlKey?function(t){t.component.activate(),x.a.trigger("update-menu"),x.a.trigger("update-info")}:function(t){x.a.trigger("activate",t.component)},a=[],o=0;o<t.length;o+=1)i=(n=t[o]).component.getContainer(),n.container?(s(n),a.push(n.container)):(n.container=d.drop(n.component),n.container&&a.push(n.container)),r(n),n.component.movingEnd(e,n),n.container!==i&&i.isBand()&&a.push(i);for(a=Object(A.a)(a),o=0;o<a.length;o+=1)x.a.trigger("balance-band",a[o])}function c(t,e,n){var i=t.prop("Left"),r=t.prop("Top");return{component:t,prevX:e,prevY:n,leftCoord:i,topCoord:r,leftLastCoord:i,topLastCoord:r}}function p(t,e){var n,i,r,a,o,s=e.component;if(s.canMove()&&e.prevX&&e.prevY)return n=e.leftCoord+(t.x-e.prevX),i=e.topCoord+(t.y-e.prevY),r=s.prop("Left"),a=s.prop("Top"),o=void 0,o=s.isDialogControl()?Object(D.a)([n-r,i-a],4):Object(D.a)([n-r,i-a]),e.leftLastCoord=r<n?r+o[0]:r-o[0],e.topLastCoord=a<i?a+o[1]:a-o[1],s.setPosition.apply(s,[e.leftLastCoord,e.topLastCoord])}function i(e){var n=[];return(u.a.state.get("in_move")||[]).forEach(function(t){!1!==t.movingStart(e)&&n.push(c.call(this,t,e.x,e.y))}.bind(this)),n}var d=this.report;this.addAction("moving-component",{start:function(t,e){for(var n,i=[],r=[],a=d.getCurrentPage(),o=a.bands||a.components,s=e.attr("activated")?o.getSelectedComponents():[e],l=s.length;l--;)(o=(e=s[l]).getContainer())&&!1!==e.movingStart(t)&&(e.deactivate(),e.setState("in_move"),n=c.call(this,e,t.x,t.y),r.push(n),i.push(Object.assign({container:o,bandHeight:o.prop("Height")},n)),p(t,n));this.set({data:r,init:i})},move:function(t){var e,n=this.get();if(n&&n.data.length){if(n.data)for(n.moved=!0,n=n.data,e=0;e<n.length;e+=1)p(t,n[e])&&(n[e].component.moving(t,n[e]),n[e].moved=!0)}else n=i.call(this,t),this.set({data:n});return!1},end:function(t){var e=this.get();e&&(e.init&&e.moved&&y.a.push({context:this,func:n,undoData:[e.init,t],redoData:[e.data,t]}),(e=e.data)&&e.length||(e=i.call(this,t)),n.call(this,e,t),this.set(null))}})},F=function(){var l=this.report,c=window.DSG.head.$main;this.addAction("resizing-component",{start:function(t,e){var n=S()(t.target),i=e.getResizing(n);if((i.component=e).collection)i.container=e.collection.container,i.oldWidth=e.prop("Width"),i.oldHeight=e.prop("Height"),i.oldLeft=e.prop("Left"),i.oldTop=e.prop("Top"),i.oldBandHeight=i.container.prop("Height");else{if(!e.getTable)return;i.container=e.getTable()}e.setState("in_resize"),this.set(i),e.hideUpControls(),e.resizingStart(t,this.get())},move:function(t){var e,n,i,r,a,o=this.get(),s=l.attr("data-scale");return o&&(e=o.component,n=o.container.$workspace[0].getBoundingClientRect(),i=c[0].getBoundingClientRect(),n={left:n.left-i.left,top:n.top-i.top},r=(t.pageX-n.left)/s,a=(t.pageY-n.top)/s,o.call(o.component,r,a),o.changed=!0,e.resizing(t,o),e.render()),!1},end:function(t){var e,n,i=this.get();i&&(e=i.component,n=i.container,e.setState("normal"),e.resizingEnd(t,i),n.isBand()&&x.a.trigger("balance-band",n),e.showUpControls(),e.render(),x.a.trigger("activate",e),x.a.trigger("update-properties-panel",e),i.changed&&i.oldBandHeight&&(y.a.push({context:e,func:function(t,e,n,i,r){var a,o=this.collection.container;this.deactivate(),this.prop({Width:e,Height:n}),this.setPosition(i,r),this.render(),x.a.trigger("activate",this),x.a.trigger("update-properties-panel",this),a=o.prop("Height"),o.prop("Height",t),x.a.trigger("balance-band",o,a)},undoData:[i.oldBandHeight,i.oldWidth,i.oldHeight,i.oldLeft,i.oldTop],redoData:[e.collection.container.prop("Height"),e.prop("Width"),e.prop("Height"),e.prop("Left"),e.prop("Top")]}),x.a.trigger("update-menu")),this.set(null))}})},L=function(){this.addAction("angle-component",{start:function(t,e){var n={component:e,direction:+(t.target.dataset.direction||0),original:{angle:e.prop("Angle")},prevX:t.x};this.set(n),e.hideUpControls(),e.rotatingStart(t,n)},move:function(t){var e,n,i=this.get();return i&&(e=i.component,10<Math.abs(i.prevX-t.x)&&(n=void 0,n=t.x>i.prevX?10:-10,1===i.direction&&(n=-n),e.prop("Angle",e.prop("Angle")+n),i.prevX=t.x,e.rotating(t,i))),!1},end:function(t){var e,n=this.get();n&&((e=n.component).rotatingEnd(t,n),e.showUpControls(),x.a.trigger("activate",e),x.a.trigger("update-properties-panel",e),this.set(null))}})},R=i(126),N=function(){var o,i=this.report;this.addAction("resizing-band",{start:function(t,e){e.resizingStart(t),o=new R.a({x1:0,x2:e.prop("Width")+e.attr("margin")+e.attr("padding")}),e.$g.append(o),this.set({band:e,oldHeight:e.prop("Height"),changed:!1})},move:function(t){var e,n=this.get(),i=n.band,r=t.y,a=i.prop("Height");return i.canResizeY()?(i.attr("threshold")>=r&&(r=i.attr("threshold")),r-=i.prop("Top"),e=Object(D.a)([null,r-a])[1],(e=(e=a<r?a+e:a-e)<0?0:e)!==a&&(n.changed=!0,i.prop("Height",e),o.removeClass("fr-hidden"),o.attr({y1:e+i.bands.getTopBandsHeight(),y2:e+i.bands.getTopBandsHeight()})),!1):null},end:function(t){var e=this.get(),n=e.band;n.resizingEnd(t),x.a.trigger("balance-band",n,e.oldHeight),x.a.trigger("activate",n),x.a.trigger("update-properties-panel",n),e.changed&&(y.a.push({context:this,func:function(t,e){var n=t.prop("Height");t.prop("Height",e),x.a.trigger("balance-band",t,n),x.a.trigger("activate",t),x.a.trigger("update-properties-panel",t),i.getCurrentPage().render()},undoData:[n,e.oldHeight],redoData:[n,n.prop("Height")]}),x.a.trigger("update-menu")),o&&o.remove(),this.set(null)}})},W=function(){function n(t,e){for(var n,i=0;i<t.length;i+=1)(n=t[i]).component.setPosition.apply(n.component,[n.leftLastCoord,n.topLastCoord]),n.component.movingEnd(e,n)}function c(t,e,n){var i=t.prop("Left"),r=t.prop("Top");return{component:t,prevX:e,prevY:n,leftCoord:i,topCoord:r,leftLastCoord:i,topLastCoord:r}}function p(t,e){var n,i,r,a,o,s=e.component;if(s.canMove()&&e.prevX&&e.prevY)return n=e.leftCoord+(t.x-e.prevX),i=e.topCoord+(t.y-e.prevY),r=s.prop("Left"),a=s.prop("Top"),o=void 0,o=s.isDialogControl()?Object(D.a)([n-r,i-a],4):Object(D.a)([n-r,i-a]),e.leftLastCoord=r<n?r+o[0]:r-o[0],e.topLastCoord=a<i?a+o[1]:a-o[1],s.setPosition.apply(s,[e.leftLastCoord,e.topLastCoord])}function i(e){var n=[];return(u.a.state.get("in_move")||[]).forEach(function(t){!1!==t.movingStart(e)&&n.push(c.call(this,t,e.x,e.y))}.bind(this)),n}var d=this.report;this.addAction("moving-point",{start:function(t,e){for(var n,i=[],r=[],a=d.getCurrentPage(),o=a.bands||a.components,s=e.attr("activated")?o.getSelectedComponents():[e],l=s.length;l--;)(o=(e=s[l]).getContainer())&&!1!==e.movingStart(t)&&(e.setState("in_move"),e.onClick&&e.onClick(t),n=c.call(this,e,t.x,t.y),r.push(n),i.push(Object.assign({container:o,bandHeight:o.prop("Height")},n)),p(t,n));this.set({data:r,init:i})},move:function(t){var e,n=this.get();if(n&&n.data.length){if(n.data)for(n.moved=!0,n=n.data,e=0;e<n.length;e+=1)p(t,n[e])&&(n[e].component.moving(t,n[e]),n[e].moved=!0)}else n=i.call(this,t),this.set({data:n});return!1},end:function(t){var e=this.get();e&&(e.init&&e.moved&&y.a.push({context:this,func:n,undoData:[e.init,t],redoData:[e.data,t]}),(e=e.data)&&e.length||(e=i.call(this,t)),n.call(this,e,t),this.set(null))}})},H=i(3),_=i(5),z=function(){var h=this.report;this.addAction("selection",{start:function(t,e){if(w.a)return e&&this.set({element:e}),!0;var n=h.getCurrentPage();n.$selection?n.$selection.find("rect").attr({width:0,height:0}):(n.$selection=S()(Object(H.a)("g")),n.$selection.append(S()(Object(H.a)("rect")))),n.$workspace.append(n.$selection),Object(_.a)(n.$selection[0],{transform:"translate("+t.x+","+t.y+")",class:"selection",left:t.x,top:t.y}),this.set({initLeft:t.x,initTop:t.y,element:e})},move:function(t){var e,n,i,r,a,o,s=this.get();return!s||!s.initLeft&&!s.initTop||((e=h.getCurrentPage()).$selection.removeClass("fr-hidden"),n=e.$selection.find("rect"),i=s.initLeft,r=s.initTop,a=t.x-i,o=t.y-r,a<0&&(a=Math.abs(a),i=t.x),o<0&&(o=Math.abs(o),r=t.y),n.attr({width:0===a?1:a,height:0===o?1:o}),Object(_.a)(e.$selection[0],{transform:"translate("+i+","+r+")",left:i,top:r}),!1)},end:function(t){var e,n,i,r,a,o,s,l=this.get(),c=h.getCurrentPage(),p=c.$selection,d=void 0,u=void 0;c&&!c.isCode()?(e=c.attr("margin")+c.attr("padding"),n=c.bands||c.components,l&&(l.element&&!p?x.a.trigger("activate",l.element):p&&l.initLeft&&l.initTop&&(u=p.find("rect"),i=parseInt(p.attr("left"),10)-e,r=parseInt(p.attr("top"),10),a=parseInt(u.attr("width"),10),o=parseInt(u.attr("height"),10),p.addClass("fr-hidden"),f(n.getSelectedComponents(),"deactivate"),1===(s=n.componentsIn([i,i+a||i],[r,r+o||r])).length?x.a.trigger("activate",s[0]):(d=10<a&&10<o&&n.findInsideCoord?n.findInsideCoord([t.x-e,t.y]):l.element,x.a.trigger("activate",d||c),f(s,"activate"),x.a.trigger("update-info"),x.a.trigger("update-menu")),d&&d.isBand()&&x.a.trigger("balance-band",d)))):p.addClass("fr-hidden")}})},V=i(143),I=i(6),G=i(78),X=i(16);S.a.event.special.dblclick={setup:function(){S()(this).on(w.a?"touchend.dblclick":"click.dblclick",S.a.event.special.dblclick.handler)},teardown:function(){S()(this).off(w.a?"touchend.dblclick":"click.dblclick",S.a.event.special.dblclick.handler)},handler:function(t){if(t.pageX&&t.pageY){var e,n=S()(document.elementFromPoint(t.pageX,t.pageY)),i=n.data("lt"),r=+new Date,a=r;i&&(a-=i.time||0,e=p([i.pageX,i.pageY],[t.pageX,t.pageY])),20<a&&a<500&&e<10?(n.data("lt",null),n.trigger("dblclick")):n.data("lt",{time:r,pageX:t.pageX,pageY:t.pageY})}}},n=function(n){var e=window.DSG.head.$node,t=n.movements,i=void 0;t?i=t.handlers:(t=new r(n),i=t.getHandlers(function(){M.call(this),j.call(this),F.call(this),L.call(this),N.call(this),W.call(this),z.call(this)}),n.movements={data:t.data,handlers:i}),e.off("touchstart touchmove touchend mousedown mousemove mouseup dblclick").on("touchstart mousedown",function(t){if("touchstart"===t.type&&e.off("mousedown"),!(0===t.button&&g.a.get("scroll-on-space")||2===t.button))return i.start.call(this,t)}).on("touchmove mousemove",function(t){if("touchmove"===t.type&&e.off("mousemove"),!g.a.get("scroll-on-space"))return i.move.call(this,t)}).on("touchend mouseup",function(t){if("touchend"===t.type&&e.off("mouseup"),!g.a.get("scroll-on-space"))return i.end.call(this,t)}).on("dblclick",i.dblclick).on("mousedown",".d-report",function(t){if(g.a.get("scroll-on-space")){var e=S()(this);n.$node.addClass("fr-grabbing-page"),e.data("start-scrolling-x",t.pageX).data("start-scrolling-y",t.pageY).data("start-scrolling-pos-left",e.scrollLeft()).data("start-scrolling-pos-top",e.scrollTop())}}).on("mousemove",".d-report",function(t){var e,n,i=S()(this),r=i.data("start-scrolling-x"),a=i.data("start-scrolling-y"),o=i.data("start-scrolling-pos-left"),s=i.data("start-scrolling-pos-top");if(void 0!==r&&void 0!==a)return e=r-t.pageX,n=a-t.pageY,i.scrollLeft(o+e),i.scrollTop(s+n),!1}).on("mouseup",".d-report",function(){n.$node.removeClass("fr-grabbing-page"),S()(this).removeData("start-scrolling-x").removeData("start-scrolling-y").removeData("start-scrolling-pos-left").removeData("start-scrolling-pos-top")}),w.a?(e.on("touchstart",i.zoomstart),e.on("touchmove",i.zoommove),e.on("touchend",i.zoomend)):(e.off("contextmenu").on("contextmenu",function(t){if(2===t.button)return i.rightClick.call(this,t)}),e.off("mouseover").on("mouseover",i.mouseover),e.off("mouseout").on("mouseout",i.mouseout),e.on("mousewheel DOMMouseScroll",function(t){var e;if(t.ctrlKey)return e=t.originalEvent.detail&&t.originalEvent.detail<0||t.originalEvent.wheelDelta&&0<t.originalEvent.wheelDelta?.1:-.1,x.a.trigger("scale-page",n.attr("data-scale")+e),!1}))},a=i(130),o=i(164),s=i(22),C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l=new s.a,e.a=Object(m.a)(u.a,{type:"Report",typevcl:"TfrxReport",_init:function(){this.prop("Name","Report"),this._id="report"+Object(b.a)(),this.pages=P.a.create(this),this.styles=P.a.create(this),this.movements=null,this.unparsedDict=[],this.unparsed=[],this.attr({grid:!0,"data-scale":g.a.get("scale")||1,title:"Report",info:"Report info",icon:"icon-134",Top:0,Bottom:0,Left:0}),this.defaultValues={"ReportInfo.PreviewPictureRatio":.1,"ReportInfo.SavePreviewPicture":!1,"ReportInfo.SaveMode":"All",ScriptLanguage:"CSharp",StoreInResources:!0,ConvertNulls:!0,DoublePass:!1,InitialPageNumber:1,UseFillCache:!1,AutoFillDataSet:!0,Compressed:!1,MaxPages:0,SmoothGraphics:!1,TextQuality:"Default","PrintSettings.Collate":!0,"PrintSettings.Copies":1,"PrintSettings.Duplex":"Default","PrintSettings.PageRange":"All","PrintSettings.PagesOnSheet":"One","PrintSettings.PaperSource":7,"PrintSettings.Printer":"Default","PrintSettings.PrintMode":"Default","PrintSettings.PrintOnSheetHeight":297,"PrintSettings.PrintOnSheetRawPaperSize":0,"PrintSettings.PrintOnSheetWidth":210,"PrintSettings.PrintPages":"All","PrintSettings.PrintToFile":!1,"PrintSettings.Reverse":!1,"PrintSettings.SavePrinterWithReport":!1,"PrintSettings.ShowDialog":!0},this.prop({"ReportInfo.Created":new Date,"ReportInfo.Modified":new Date,"ReportInfo.CreatorVersion":"1.0.0.0"}),this.$node=S()("<div>"),this.$wrap=S()("<div>"),this.$node.append(this.$wrap),this.hide(),this.$node.addClass("d-report"),this.$wrap.addClass("fr-workspace"),this.$workspace=S()("<div>"),this.workspace=this.$workspace.get(0),this.$workspace.data("report",this),this.$wrap.append(this.$workspace),this.createCode(),this.$node.on("dragstart",function(){return!1}),n(this),this.attr=function(t,e){var n=this._super.attr.apply(this,arguments);if("left"===t||"top"===t){if(void 0===e)return this.workspace.getBoundingClientRect()[t];this.$node.css(t,e)}return n}},isReport:function(){return!0},canNotBeSaved:function(){return"Deny"===this.prop("ReportInfo.SaveMode")},create:function(){var t=this.createObject(this);return t._init(),t},show:function(){return this.$node.removeClass("fr-hidden"),this},hide:function(){return this.$node.addClass("fr-hidden"),this},afterInitShow:function(){return this.pages.eachEntity(function(t){t.afterInitShow(),void 0!==t.bands&&t.bands.eachEntity(function(t){t.afterInitShow(),void 0!==t.components&&t.components.eachEntity(function(t){t.afterInitShow()})}),void 0!==t.components&&t.components.eachEntity(function(t){t.afterInitShow()})}),this},updateFilters:function(){return this.pages.eachEntity(function(t){t.updateFilters()}),this},updateDefs:function(){return this.pages.eachEntity(function(t){t.updateDefs()}),this},findContainerForDropping:function(t,e,i){var r=S()(document.elementFromPoint(t+1,e+1)),n=function t(e){var n=".component.droppable-component:first";return(e=e||r.parents(n)).length?e[0].component.canHaveChildren(i.type)?e[0].component:t(e.parents(n)):null},a=n();return a=a||((r=r.parents(".band:first")).length?r[0].band:null)},drop:function(t){var e,n,i,r,a=t.$workspace[0].getBoundingClientRect(),o=this.attr("left"),s=this.attr("top"),l=this.attr("data-scale");return t.$g.addClass("fr-hidden"),e=this.findContainerForDropping(a.left,a.top,t)||t.collection.container,t.$g.removeClass("fr-hidden"),t.setState("normal"),n=e.$workspace[0].getBoundingClientRect(),i=a.left-o-(n.left-o),r=a.top-s-(n.top-s),i/=l,r/=l,x.a.trigger("put-component",e,t,i,r),e},createPage:function(t){var e,n=d.default.create();return this.pages.add(n),n.report=this,n.$wrap=S()("<div>"),n.$wrap.append(n.$workspace),this.$workspace.append(n.$wrap),n.update(),n.render(),n.prop("Name",n.formName("Page")),t||((e=[i(113).default,i(114).default,i(94).default,i(115).default])[0]&&n.addBand(e[0].create()),e[1]&&n.addBand(e[1].create()),e[2]&&n.addBand(e[2].create()),e[3]&&n.addBand(e[3].create())),n},createStyle:function(){var t=v.create();return this.styles.add(t),t.report=this,t},createDialog:function(){var t=i(112).default;return t=t.create(),this.pages.add(t),(t.report=this).$workspace.append(t.$workspace),t.render(),t.prop("Name",t.formName("Form")),t},createDialogDefaultSet:function(n){return S.a.when(x.a.trigger("add-component","ButtonControl",n,{remember:!1,left:128,top:240}),x.a.trigger("add-component","ButtonControl",n,{remember:!1,left:211,top:240})).done(function(t,e){t.prop("Text","OK"),e.prop("Text","Cancel"),t.prop("Name",t.formName("btnOk")),e.prop("Name",e.formName("btnCancel")),t.render(),e.render(),n.prop("AcceptButton",t.toString()),n.prop("CancelButton",e.toString())})},createCode:function(){var t=i(200).default;return this.code=t.create(),this.pages.add(this.code),(this.code.report=this).$node.append(this.code.$workspace),this.code},removePage:function(t){if(!t)return!1;var e=this.pages.all(["ReportPage","DialogPage"]),n=e[e.indexOf(t)-1];return n=n||this.pages.last(),t.remove(),x.a.trigger("activate",n),this},getCurrentPage:function(){return this.pages.current},clear:function(){for(var t=[].concat(this.pages.all()),e=t.length;e--;)this.removePage(t[e]);this.pages.clear(),y.a.clear(),this.counter.clear()},remove:function(){this.clear(),this.$node.remove()},getComponents:function(e){var n=S()();return this.pages.eachEntity(function(t){t.isReportPage()&&(n=n.add(t.bands.getComponents(e)))}),n},getCurPageComponents:function(t,e){var n=this.getCurrentPage(),i=S()();return n.isReportPage()&&(i=i.add(n.bands.getComponents(t,e))),i},findEntity:function(n){function i(e,n){var i;return Object.keys(n).every(function(t){return i=n[t],e[t]===i||e.attributes[t]===i||e.properties[t]===i})}var r;if(n)return i(this,n)?this:(this.pages.eachEntity(function(t){var e;if(i(t,n))r=t;else if(t.bands)t.bands.eachEntity(function(t){return i(t,n)?(r=t,!1):(e=t.components.findOneBy(n))?(r=e,!1):void 0});else if(t.components&&(e=t.components.findOneBy(n)))return r=e,!1}),r)},getSelected:function(){var t,e,n=this.getCurrentPage();if(!n)return null;if(t=u.a.getSelected())return t;if(e=n.bands||n.components,!n.isCode()){if(1<(t=e.getSelectedComponents()).length)return null;!(t=t[0])&&e.getSelectedBand&&(t=e.getSelectedBand())}return t||n.attr("activated")?n:this},fillPropsNET:function(t){var e,n,i;if(u.a.fillPropsNET.apply(this,arguments),(e=t.attr("ReportInfo.Created"))&&this.prop("ReportInfo.Created",Object(o.b)(e)),(n=t.attr("ReportInfo.Modified"))&&this.prop("ReportInfo.Modified",Object(o.b)(n)),i=t.attr("ReportInfo.Tag"))try{this.prop("ReportInfo.Tag",JSON.parse(i))}catch(t){l.warn("ReportInfo.Tag:",t)}return this},fillPropsVCL:function(){return u.a.fillPropsVCL.apply(this,arguments),this.code&&this.prop("ScriptText.Text")&&this.code.setCode(Object(a.a)(this.prop("ScriptText.Text"))),this},toXMLNET:function(v){var y=this;return new Promise(function(f){var g=S.a.parseXML("<{0}/>".format(y.type)),m=S()(g.createElement("Styles")),b=S()(g.createElement("Dictionary"));v=Object.assign({parentNode:g,type:y.type},v),u.a.toXMLNET.call(y,v).then(function(t){var e,n,i,r,a,o,s,l,c,p,d,u,h=S()(t.xml);if(h.attr("ReportInfo.Picture")&&h.attr("ReportInfo.Picture",h.attr("ReportInfo.Picture").replace(/^([\w:\/;]+base64,){1}/,"")),y.prop("ReportInfo.Tag")&&"object"===C(y.prop("ReportInfo.Tag")))try{h.attr("ReportInfo.Tag",JSON.stringify(y.prop("ReportInfo.Tag")))}catch(t){}e=[],y.styles&&y.styles.count()&&(v.parentNode=m[0],y.styles.eachEntity(function(t){e.push(t.toXMLNET(v))}),h.append(m)),n=Promise.all(e).then(function(t){t.forEach(function(t){m.append(t.xml)})}),v.parentNode=b[0],i=[],y.connections&&y.connections.eachEntity(function(t){i.push(t.toXMLNET(v))}),r=Promise.all(i).then(function(t){t.forEach(function(t){b.append(t.xml)})}),a=[],y.dataSources&&y.dataSources.eachEntity(function(t){a.push(t.toXMLNET(v))}),o=Promise.all(a).then(function(t){t.forEach(function(t){b.append(t.xml)})}),s=[],y.relations&&y.relations.eachEntity(function(t){s.push(t.toXMLNET(v))}),l=Promise.all(s).then(function(t){t.forEach(function(t){b.append(t.xml)})}),c=[],y.parameters&&y.parameters.eachEntity(function(t){c.push(t.toXMLNET(v))}),p=Promise.all(c).then(function(t){t.forEach(function(t){b.append(t.xml)})}),d=[],y.totals&&y.totals.eachEntity(function(t){d.push(t.toXMLNET(v))}),u=Promise.all(d).then(function(t){t.forEach(function(t){b.append(t.xml)})}),Promise.all([n,r,o,l,p,u]).then(function(){S.a.each(y.unparsedDict,function(){b.append(S()(this))}),h.append(b),v.parentNode=h[0];var e=[];y.pages.eachEntity(function(t){e.push(t.toXMLNET(v))}),Promise.all(e).then(function(t){return t.forEach(function(t){t.xml&&h.append(t.xml)}),S.a.each(y.unparsed,function(){h.append(S()(this))}),g.documentElement.appendChild(h[0]),f({xml:h[0]})})})})})},toXMLVCL:function(r){var a=this;return new Promise(function(i){var t=S.a.parseXML("<{0}/>".format(a.typevcl));r=Object.assign({parentNode:t},r),u.a.toXMLVCL.call(a,r).then(function(e){e=S()(e),r.parentNode=e[0];var n=[];a.pages.eachEntity(function(t){n.push(t.toXMLVCL(r))}),Promise.all(n).then(function(t){return t.forEach(function(t){t&&e.append(t)}),S.a.each(a.unparsed,function(){e.append(S()(this))}),i(e[0])})})})}})},function(t,e,n){"use strict";function i(t){return t=function(t){return t.replace(/<ScriptText>([\s\S]+)<\/ScriptText>/,function(t,e){return"<ScriptText>{0}</ScriptText>".format(Object(b.a)(e))})}(t),t=Object(v.a)(t),p.a.parseXML(t)}function r(e,t){var n=p.a.Deferred();return p.a.ajax({url:e,dataType:t||"text",crossDomain:!0,headers:{"Access-Control-Allow-Origin":"*"},beforeSend:function(t){r.cache[e]&&(t.abort(),n.resolve(r.cache[e]))},success:function(t){r.cache[e]=t,n.resolve(r.cache[e])},error:function(){n.reject.apply(null,arguments)}}),n.promise()}var a,o,s=n(0),p=n.n(s),d=n(26),l=n(8),c=Object(l.a)({},{init:function(t,e){return a=t,o=e,this},_getComponent:function(t){var e,n,i,r;if(t)for(e=window.DSG.components,i=void 0,r=(n=Object.keys(e)).length-1;0<=r;r--)if((i=e[n[r]]).type===t||i.typevcl===t)return i},_getBand:function(t){var e,n,i,r;if(t)for(e=window.DSG.bands,i=void 0,r=(n=Object.keys(e)).length-1;0<=r;r--)if((i=e[n[r]]).type===t||i.typevcl===t)return i},preCall:function(){if(!a)throw new Error("Report wasn't initialized")},getCurrentReport:function(){return a},getState:function(){return o}}),u=n(130),h=n(22),f=(new h.a("parser net"),Object(l.a)(c,{_createParameter:function(t,e){var n,i,r=this.getCurrentReport();return!!r.createParameter&&(n=r.createParameter(e),i=t.children(),n.fillPropsNET(t),i.length?this._processingParameters(i,n):n)},_processingTotal:function(t){var e,n=this.getCurrentReport();return!!n.createTotal&&((e=n.createTotal()).fillPropsNET(t),e)},_createColumn:function(t,e){var n=e.createColumn(),i=t.children();n.fillPropsNET(t),n.updateBindableControl(),i.length&&i.each(function(t,e){(e=p()(e)).is("column")?this._createColumn(e,n):this._processingDataSource(e,n)}.bind(this))},_createRelation:function(t){var e,n=this.getCurrentReport();return!!n.createRelation&&((e=n.createRelation()).fillPropsNET(t),e.update(),e)},_processingPage:function(t){var e=this.getCurrentReport().createPage(!0);return!!e&&(e.fillPropsNET(t),e.update(),this._processingBands(t.children(),e))},_processingDialog:function(t){var e,n=this.getCurrentReport().createDialog(!0),i=this;return!!n&&(n.fillPropsNET(t),p.a.each(t.children(),function(){e=p()(this),window.DSG.controls[e.prop("tagName")]?i._processingControl(e,n):n.unparsed.push(e)}),!0)},_processingStyles:function(t){var e=this.getCurrentReport();return p.a.each(t.children(),function(){e.createStyle().fillPropsNET(p()(this))}),!0},_processingParameters:function(t,n){var i=!1;return p.a.each(t,function(t,e){this._createParameter(p()(e),n)&&(i=!0)}.bind(this)),i},_processingDataSource:function(t,e){var n=this.getCurrentReport(),i=this,r=!1,a=t.prop("tagName"),o=/DataSource$/i;return a.match(o)&&n.createDataSource?r=n.createDataSource(a,e):a.match(/Connection$/i)&&n.createConnection&&(r=n.createConnection(a,e)),r&&(r.fillPropsNET(t),t.children().each(function(){var t=p()(this);t.is("Column")?i._createColumn(t,r):t.prop("tagName").match(o)?i._processingDataSource(t,r):r.unparsed.push(t)})),r},_getControl:function(t){return window.DSG.controls[t.prop("tagName")]},_processingComponent:function(t,e){var n=this._getComponent(t.prop("tagName")),i=this.getState();return n&&((n=n.create()).fillPropsNET(t),"TextObject"===n.type&&i&&i.texts[n.prop("mission")]&&n.prop(i.texts[n.prop("mission")]),n.render({action:"init"}),e.put(n)),n},_processingControl:function(t,e){var n=this._getControl(t);return n&&((n=n.create()).fillPropsNET(t),n.render({action:"init"}),e.put(n)),n},_processingBand:function(t,e){var n=this._getBand(t.prop("tagName"));return!!n&&((n=n.create()).fillPropsNET(t),e.addBand(n)?n:null)},_processingBands:function(t,i){var a=function(t,e){e=e||i;var n=this._processingBand(t,e);return!!n&&r(t.children(),n)}.bind(this),r=function(t,e){for(var n,i=0,r=t.length;i<r;i+=1)(n=p()(t[i])).prop("tagName"),this._processingComponent(n,e)||a(n,e)||e&&e.unparsed&&e.unparsed.push(n);return e&&e.balance(),e}.bind(this);return r(t)},_processingDictionary:function(t){for(var e,n,i,r=this.getCurrentReport(),a=0,o=t.children(),s=o.length;a<s;a+=1)n=(e=p()(o[a])).prop("tagName"),i=!1,e.is("Parameter")?i=this._processingParameters(e):n.match(/(DataSource|Connection)$/i)?i=this._processingDataSource(e):e.is("Total")?i=this._processingTotal(e):e.is("Relation")&&(i=!0),!1===i&&r.unparsedDict.push(e);return!0},_getRelations:function(t){for(var e,n=0,i=t.children(),r=i.length,a=[];n<r;n+=1)(e=p()(i[n])).is("Relation")&&a.push(e);return a},_processingRelations:function(t){for(var e,n=this.getCurrentReport(),i=this._getRelations(t),r=0,a=i.length;r<a;r+=1)e=p()(i[r]),this._createRelation(e)||n.unparsedDict.push(e)},getType:function(){return"net"},parse:function(t){var e,n,i,r,a,o,s=this.getCurrentReport(),l=p()(t).find("Report");for(s.fillPropsNET(l),this.preCall(),i=0,r=(a=l.children()).length;i<r;i+=1)o=!1,(e=p()(a[i])).is("ScriptText")?s.code&&(s.code.setCode(Object(u.a)(e.text())),o=!0):o=e.is("Dictionary")?(n=e,this._processingDictionary(n),!0):e.is("ReportPage")?this._processingPage(e):e.is("DialogPage")?this._processingDialog(e):!!e.is("Styles")&&this._processingStyles(e),!1===o&&s.unparsed.push(e);for(n&&this._processingRelations(n),i=0,r=(a=s.pages.all(["ReportPage","DialogPage"])).length;i<r;i+=1)a[i].render({action:"init"});return s},extendCurrent:function(t,e){var n,i,r,a=p()(t),o=a.children(),s=0,l=o.length,c=this.getCurrentReport();if(e=e||c,a.is("[BaseReport]"))c.fillPropsNET(a),(r=c).attr("inherited",!0);else if(a.is("Dictionary"))n=a,this._processingDictionary(a);else{if(a.is("ScriptText"))return void(c.code&&c.code.setCode(Object(u.a)(a.text())));if(a.is("inherited")){if(!(r=c.findEntity({Name:a.attr("Name")})))return void Object(d.a)("inherited element with the Name {0} was not found".format(a.attr("Name")),{danger:!0,delay:!1});r.fillPropsNET(a),r.attr("inherited",!0),r.render()}else r=(r=this._processingComponent(a,e))||((r=this._processingBand(a,e))||e)}if(n)this._processingRelations(n);else if(r)for(;s<l;s+=1)i=o[s],this.extendCurrent(i,r)},toXML:function(t){return t=t||{},this.preCall(),this.getCurrentReport().toXMLNET(t)}})),g=(new h.a("parser vcl"),Object(l.a)(c,{_processingPage:function(t){var e=this.getCurrentReport().createPage(!0);return!!e&&(e.fillPropsVCL(t),e.update(),this._processingBands(t.children(),e))},_processingBand:function(t,e){var n=this._getBand(t.prop("tagName"));return!!n&&((n=n.create()).fillPropsVCL(t),e.addBand(n)?n:null)},_processingComponent:function(t,e){var n=this._getComponent(t.prop("tagName")),i=this.getState();return n&&((n=n.create()).fillPropsVCL(t),"TextObject"===n.type&&i&&i.texts[n.prop("mission")]&&n.prop(i.texts[n.prop("mission")]),n.render({action:"init"}),e.put(n)),n},_processingBands:function(t,i){var a=function(t,e){e=e||i;var n=this._processingBand(t,e);return!!n&&r(t.children(),n)}.bind(this),r=function(t,e){for(var n,i=0,r=t.length;i<r;i+=1)(n=p()(t[i])).prop("tagName"),this._processingComponent(n,e)||a(n,e)||e&&e.unparsed&&e.unparsed.push(n);return e&&e.balance(),e}.bind(this);return r(t)},getType:function(){return"vcl"},parse:function(t){var e,n,i,r,a=this.getCurrentReport(),o=p()(t).find("TfrxReport");for(this.preCall(),a.fillPropsVCL(o),n=0,i=(r=o.children()).length;n<i;n+=1)!1===(!!(e=p()(r[n])).is("TfrxReportPage")&&this._processingPage(e))&&a.unparsed.push(e);return a},extendCurrent:function(){},toXML:function(t){return t=t||{},this.preCall(),this.getCurrentReport().toXMLVCL(t)}})),m={init:c.init,parse:function(t){var e=c.getCurrentReport(),n=function(t){return(t=p()(t)).find("Report").length?f:t.find("TfrxReport").length?g:void Object(d.a)("there is no root object inside report",{danger:!0,delay:!1})}(t);return n&&(n.parse(t),e.attr("report-type",n.getType())),e},extendCurrent:function(t){return"vcl"===c.getCurrentReport().attr("report-type")?g.extendCurrent(t):f.extendCurrent(t)},toXML:function(t){return"vcl"===c.getCurrentReport().attr("report-type")?g.toXML(t):f.toXML(t)}},b=n(77),v=n(198);r.cache={},n.d(e,"c",function(){return m}),n.d(e,"b",function(){return r}),n.d(e,"a",function(){return i})},,,,function(t,e,n){"use strict";function i(t,e){var n,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"",r=i+"Font.Name",a=i+"Font.Size",o=i+"Font.Bold",s=i+"Font.Italic",l=i+"Font.Underline",c=i+"Font.Strikeout";return!!e.attr(r)&&(n="",n+=e.attr(r),e.attr(a)&&(n+=", "+e.attr(a)),(e.attr(o)||e.attr(s)||e.attr(l)||e.attr(c))&&(n+=", style=",e.attr(o)&&(n+="Bold,"),e.attr(s)&&(n+="Italic,"),e.attr(l)&&(n+="Underline,"),e.attr(c)&&(n+="Strikeout"),","===n[n.length-1]&&(n=n.substring(0,n.length-1))),!!n&&(t.attr(i+"Font",n),!0))}n.d(e,"a",function(){return i})},,,,function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(136),o=function(t){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",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"}[t.toLowerCase()]||null};e.a=function(t){var e,n,i;return!!t&&(function(t){var e=!1;return"transparent"===t?e=!0:(t=t.match(/\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([\d\.]+)\s*/))&&t[4]&&0===Number(t[4])&&(e=!0),e}(t)?"#ffffff":(e=/rgb\(?\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)?$/,n=/^#(?:[0-9a-f]{3}){1,2}$/i,i=r()("<div>").appendTo(window.DSG.head.$reusable).css("fill",t),t=getComputedStyle(i[0]).getPropertyValue("fill"),i.remove(),n.test(t)?t:e.test(t)?(t=t.match(e).slice(1),a.a.apply(null,t)):o(t)||t))}},function(t,e,n){"use strict";var i,s,r,l,o,c;n.r(e),i=n(0),s=n.n(i),r=n(4),l=n(13),o=n(3),c=n(5),e.default=l.default.createObject(l.default,{title:"DateTimePickerControl",info:"DateTimePickerControl info",icon:"icon-120",pos:45,type:"DateTimePickerControl",disabled:!1,_init:function(){l.default._init.apply(this,arguments),this.defaultValues={ForeColor:"#000",BackColor:"#FFF",DropDownAlign:"Left",ShowCheckBox:!1,ShowUpDown:!1,Checked:!0,Enabled:!0,TabIndex:3,TabStop:!0,Visible:!0,CustomFormat:"",Format:"Long",AutoFill:!0,AutoFilter:!0,FilterOperation:"Equal"},this.attr({"Font.Name":r.a.get("default-font-name"),"Font.Size":"8pt","Font.Bold":!1,"Font.Italic":!1,"Font.Underline":!1,"Font.Strikeout":!1,resizableXY:!1,resizableY:!1}),this.prop({Name:"DateTimePicker",MaxDate:new Date("12.31.9998"),MinDate:new Date("01.01.1753"),Value:new Date,Width:200,Height:20})},showResizingComponents:function(){return l.default.showResizingComponents.call(this,!1)},format:function(t,e,n){var i,r,a,o;return"string"==typeof t&&(t=new Date(t)),e=e||"/",i=t.getMonth()+1+e+t.getDate()+e+t.getFullYear(),n&&(r=t.getHours(),a=t.getMinutes(),o=t.getSeconds(),r||a||o||(r=(t=new Date).getHours(),a=t.getMinutes(),o=t.getSeconds()),i=i+" "+r+n+a+n+o),i},render:function(){var t=this.attr("Font.Size"),e=this.attr("Font.Name"),n=new Date(this.format(this.prop("Value"),"/",":")).toLocaleString(),i=this.prop("Width"),r=this.prop("Height"),a=parseFloat(t,10);return l.default.render.apply(this,arguments),this.prop("Text",n),this.$contentGroup.children().length||(this.$nestedG1=s()(Object(o.a)("g")),this.$nestedG2=s()(Object(o.a)("g")),this.$textNode=s()(Object(o.a)("text")),this.$arrow=s()(Object(o.a)("text")),this.$nestedG2.append(this.$textNode),this.$nestedG1.append(this.$nestedG2),this.$textNode[0].setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.$arrow.text("▼"),this.$back=s()(Object(o.a)("rect",{stroke:"gray",x:0,y:0})),this.$contentGroup.append(this.$back,this.$nestedG1,this.$arrow)),this.$back.attr({width:i-2,height:r-2,fill:this.prop("BackColor")}),this.$textNode.text()!==n&&this.$textNode.text(n),this.$moveBlock.css("fill",this.prop("BackColor")),this.$textNode.css({"font-size":t+(s.a.isNumeric(t)?"pt":""),fill:this.prop("ForeColor"),"font-family":e}),this.applyFontStyles(this.$textNode),Object(c.a)(this.$back[0],"transform","translate(0, 0)"),Object(c.a)(this.$nestedG1[0],"transform","translate(2, "+(a+2)+")"),Object(c.a)(this.$arrow[0],"transform","translate("+(i-15)+", 12)"),this.$g},fillPropsNET:function(){var t,e,n;return l.default.fillPropsNET.apply(this,arguments),t=this.prop("value"),e=this.prop("MaxDate"),n=this.prop("MinDate"),t&&this.prop("value",new Date(t)),e&&this.prop("MaxDate",new Date(e)),n&&this.prop("MinDate",new Date(n)),this},toXMLNET:function(t){var o=this;return new Promise(function(a){l.default.toXMLNET.call(o,t).then(function(t){var e,n,i=s()(t.xml),r=o.prop("Value");return r&&i.attr("Value",o.format(r,"/",":")),(e=o.prop("MinDate"))&&i.attr("MinDate",o.format(e,"-")),(n=o.prop("MaxDate"))&&i.attr("MaxDate",o.format(n,"-")),a(t)})})}})},function(t,e,n){"use strict";function i(t){var e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];return t.origin?e?[t.origin]:t.origin:t.fields?Object.values(t.fields).map(function(t){return i(t,!1)}).flat():null}function r(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)if(t[n].propName===e)return t[n];return!1}function a(e,t){var n=!0;return!(!e||!e.length)&&(Object.values(t).forEach(function(t){if(!e.origin.includes(t))return n=!1}),n)}n.d(e,"c",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"a",function(){return a})},,,,function(t,e,n){"use strict";function s(t,e){var n=(e["font-style"]||"")+" "+(e["font-weight"]||"")+" "+(e["font-size"]||"")+" "+(e["font-family"]||""),i=s.canvas||(s.canvas=document.createElement("canvas")),r=i.getContext("2d");return r.font=n,r.measureText(t).width}var i=n(0),l=n.n(i);e.a=function(t,e,n){var i,r,a,o=l()("body");return e={"font-size":(e=e||{})["font-size"]||"12px","font-family":e["font-family"]||"Tahoma","font-weight":e["font-weight"]||"100","font-style":e["font-style"]||"normal"},n&&(t=t.replace(/[\n\r]/g,"<br> ")),(i=l()("<div>"+t+"</div>")).css({position:"absolute",float:"left","white-space":"nowrap",visibility:"hidden","font-size":e["font-size"],"font-family":e["font-family"],"font-weight":e["font-weight"],"font-style":e["font-style"]}).appendTo(o),r=n?i.width():s(t,e),a=i.height(),i.remove(),{w:r,h:a}}},function(t,e,n){"use strict";var i,a,r,o,s,l;n.r(e),i=n(0),a=n.n(i),r=n(4),o=n(13),s=n(3),l=n(5),e.default=o.default.createObject(o.default,{title:"CheckBoxControl",info:"CheckBoxControl info",icon:"icon-116",pos:20,type:"CheckBoxControl",disabled:!1,CHECKBOXWH:12,_init:function(){o.default._init.apply(this,arguments),this.defaultValues={Appearance:"Normal",ForeColor:"#000",BackColor:"#F0F0F0",CheckAlign:"MiddleLeft",Checked:!1,CheckState:"Unchecked",ImageAlign:"MiddleCenter",TextAlign:"MiddleLeft",TextImageRelation:"Overlay",Enabled:!0,AutoSize:!0,TabStop:!0,RightToLeft:"No",AutoFilter:!0,FilterOpeartion:"Equal",DetailControl:"None"},this.prop({Name:"CheckBox",Width:73,Height:17,Text:"CheckBox"}),this.attr({"Font.Name":r.a.get("default-font-name"),"Font.Size":"8pt","Font.Bold":!1,"Font.Italic":!1,"Font.Underline":!1,"Font.Strikeout":!1,resizableX:!1,resizableY:!1,resizableXY:!1})},resizingComponents:function(){},generateCheckbox:function(){var t=a()(Object(s.a)("g")),e=a()(Object(s.a)("rect",{width:this.CHECKBOXWH,height:this.CHECKBOXWH,fill:"#fff",stroke:"gray",x:5,y:0})),n=a()(Object(s.a)("text"));return t.append(e,n),t},render:function(){var t=this.attr("Font.Size"),e=this.attr("Font.Name"),n=this.prop("Text"),i=this.prop("CheckState"),r=this.prop("Height")/2+parseFloat(t,10)/3;return o.default.render.apply(this,arguments),this.$contentGroup.children().length||(this.$nestedG1=a()(Object(s.a)("g")),this.$nestedG2=a()(Object(s.a)("g")),this.$textNode=a()(Object(s.a)("text")),this.$nestedG2.append(this.$textNode),this.$nestedG1.append(this.$nestedG2),this.$checkbox=this.generateCheckbox(),this.$contentGroup.append(this.$checkbox,this.$nestedG1)),n!==this.$textNode.text()&&this.$textNode.text(n),"Checked"===i?this.$checkbox.find("text").text("✓").attr({x:7,y:10}):"Indeterminate"===i?this.$checkbox.find("text").text("■").attr({x:8,y:9}):this.$checkbox.find("text").text(""),this.$moveBlock.css("fill",this.prop("BackColor")),this.$textNode.css({"font-size":t+(a.a.isNumeric(t)?"pt":""),fill:this.prop("ForeColor"),"font-family":e}),this.applyFontStyles(this.$textNode),Object(l.a)(this.$checkbox[0],"transform","translate(0, 2)"),Object(l.a)(this.$nestedG1[0],"transform","translate("+(0+1.7*this.CHECKBOXWH)+", "+r+")"),this.$g}})},function(t,e,n){"use strict";e.a=function(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}},function(t,e,n){"use strict";e.a=function(t){var e,n;return t&&t[0]&&t[0].component?t[0].component:t.is(".fr-crosshair")?t[0].component:(e=t.parents(".component:first")).length?e[0].component:(e=t.parents(".band:first")).length?e[0].band:(e=(e=t.parents(".rt-node").data("entity"))||(e=t.parents(".js-properties-form")[0])&&e.component,n=window.DSG.currentReport,e||n&&n.getCurrentPage())}},,,,,function(t,e,n){"use strict";e.a=function(t){for(var e,n=window.location.search.substring(1).split("&"),i=0,r=n.length,a=[];i<r;i+=1)(e=n[i].split("="))[0]===t&&a.push(e[1]);return a.length<2?a[0]:a}},function(t,e,n){"use strict";var i,r,a;n.d(e,"a",function(){return a}),i=n(102),r=n.n(i),a={init:function(){r.a.config({driver:[r.a.INDEXEDDB,r.a.WEBSQL,r.a.LOCALSTORAGE],name:"frdb",storeName:"fr_store",version:3})},getItem:function(t){return r.a.getItem(t)},setItem:function(t,e){return r.a.setItem(t,e)},remove:function(t){return r.a.removeItem(t)}}},function(t,e,n){"use strict";e.a=function(t){return t.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(e)})}},function(t,e,n){"use strict";e.a=function(t){return t.replace(/(\n|\r|\t+)/g,function(t,e){return"&#"+e.charCodeAt()+";"})}},function(t,e,n){"use strict";var i=n(0),p=n.n(i),r=n(12),a=n(31),o=n(8);e.a=Object(o.a)(r.a,{_init:function(){},create:function(){var t=this.createObject(this);return t._init.apply(t,arguments),t},remove:function(){this.attr("removed",!0)},restore:function(){this.attr("removed",!1)},getView:function(t){for(var e,n=t.parents(".rt-node:not(:last)"),i=0,r=n.length,a="";i<r;i+=1)(e=n[i].element).isConnection()||(a=e.toString()+"."+a);return a=a.replace(/\.$/,"")},isParameter:function(){return!1},isColumn:function(){return!1},isDataSource:function(){return!1},isTotal:function(){return!1},createColumn:function(t){var e=(t||this).create();return this.columns.add(e),e},updateBindableControl:function(){var t=this.prop("BindableControl")||"Text";"Custom"===t&&(t="Text"),this.bindableControl=t+"Object"},fillPropsNET:function(t){return r.a.fillPropsNET.apply(this,arguments),t.attr("DataType")&&this.prop("DataType",a.a.get(t.attr("DataType"))),this},toXMLNET:function(l){var c=this;return new Promise(function(t){var n,e,i,r,a,o=p()(l.parentNode.ownerDocument.createElement(c.type)),s=c.prop("DataType");(l=Object.assign({parentNode:o[0]},l)).includeId&&o.attr("data-entity-id",c._id),c.deleteProp("DataType"),c.eachProp(function(t,e){o.attr(t,e)}),s&&(o.attr("DataType","string"==typeof s?s:s.dataType),c.prop("DataType",s)),n={type:"data",columns:[],dataSources:[],params:[]},e=[],c.columns&&c.columns.eachEntity(function(t){e.push(t.toXMLNET(l))}),i=Promise.all(e).then(function(t){t.forEach(function(t){o.append(t.xml),t.component&&(t.component.columns.length||t.component.dataSources.length||t.component.origins)&&n.columns.push(t.component)})}),r=[],c.dataSources&&c.dataSources.eachEntity(function(t){r.push(t.toXMLNET(l))}),a=Promise.all(r).then(function(t){t.forEach(function(t){o.append(t.xml),t.component&&(t.component.columns.length||t.component.dataSources.length||t.component.origins)&&n.columns.push(t.component)})}),Promise.all([i,a]).then(function(){c.unparsed&&p.a.each(c.unparsed,function(){o.append(this)});var e=[];c.parameters&&c.parameters.eachEntity(function(t){e.push(t.toXMLNET(l))}),Promise.all(e).then(function(t){t.forEach(function(t){o.append(t),t.component&&(t.component.columns.length||t.component.dataSources.length||t.component.origins)&&n.columns.push(t.component)})}),t({xml:o[0]})})})},toString:function(){return this.prop("Alias")||this.prop("Name")}})},function(t,e,n){"use strict";var i=n(0),o=n.n(i),r=n(2),s=n(27),a=n(1),l=n(97),c=n(3),p=n(42),d=n(32);e.a=s.default.createObject(s.default,{icon:"icon-214",type:"TableCell",_init:function(t){s.default._init.call(this),this.parent=t,this.prop({Name:"Cell",Text:"",ColSpan:1,RowSpan:1}),this.attr({DefaultBorderColor:"#C0C0C0",removeable:!1,copyable:!1,movable:!1,resizableX:!0,resizableY:!0,resizableXY:!1}),this.components=l.a.create(this),this.render(),Object(d.a)(this.$moveBlock[0],"move"),Object(d.a)(this.$moveBlock[0],"move-decor"),Object(d.a)(this.content,"move"),this.$components=o()(Object(c.a)("g")),this.$g.append(this.$components),Object(p.a)(this.g,"cell")},clone:function(){var e=s.default.clone.apply(this,arguments);return this.components.isEmpty()||this.components.everyEntity(function(t){(t=t.clone())&&(t.render(),e.put(t))}),e},getContextMenuItems:function(){var t=this;return[{name:r.a.tr("ComponentMenu Edit"),type:"default",closeAfter:!0,onClick:function(){a.a.trigger("activate",t),t.dblclick()}},{name:r.a.tr("TextObject Format"),type:"default",closeAfter:!0,onClick:function(){a.a.trigger("activate",t),a.a.trigger("format",t)}}]},getTable:function(){return this.parent.parent.matrix||this.parent.parent},appendEdges:function(){this.$moveBlock.css({stroke:this.attr("DefaultBorderColor"),"stroke-dasharray":"","stroke-width":"1px"})},resizingComponents:function(){var t,n;return s.default.resizingComponents.apply(this,arguments),t=this.resizingElements.map(function(t){return t.className}),n=[t.indexOf("e-resize"),t.indexOf("s-resize")],this.resizingElements.forEach(function(t,e){~n.indexOf(e)||(t.hidden=!0)}),this},appendAngleSlider:function(){},getPosInRow:function(){return this.parent.cells.indexOf(this)},getPosInColumn:function(){return this.getTable().rows.indexOf(this.parent)},prev:function(){return this.parent.cells[this.getPosInRow()-1]},next:function(){return this.parent.cells[this.getPosInRow()+this.prop("ColSpan")]},under:function(){var t=this.getTable().rows[this.getPosInColumn()+this.prop("RowSpan")];return t?t.cells[this.getPosInRow()]:null},over:function(){var t=this.getTable().rows[this.getPosInColumn()-1];return t?t.cells[this.getPosInRow()]:null},afterInRow:function(t){return this.parent.cells.slice(this.getPosInRow()+(t?0:1),this.parent.cells.length)},afterInColumn:function(t){var n=[],i=this.getPosInRow(),r=this.getPosInColumn()+(t?0:1);return this.getTable()._eachRow(function(t,e){r<=t&&n.push(e.cells[i])}),n},activate:function(){s.default.activate.call(this),this.$blanket||(this.$blanket=o()(Object(c.a)("rect")),this.$moveBlock.after(this.$blanket)),this.$blanket.attr({width:this.prop("Width"),height:this.prop("Height")}),this.$blanket.attr("fill","rgba(160, 195, 255, 0.5)"),this.showResizingComponents()},deactivate:function(){return s.default.deactivate.call(this),this.$blanket&&this.$blanket.removeAttr("fill"),this},put:function(t){this.components.add(t.g.component)},mouseStart:function(t){return a.a.trigger("activate",this),!!o()(t.target).is(".resizing-component > ")&&null},resizing:function(t,e){var n,i=this.getTable();"e"===e.dir?(n=this.getPosInRow(),i.columns[n].prop("Width",this.prop("Width")),i.update()):"s"===e.dir&&(n=this.getPosInColumn(),i.rows[n].prop("Height",this.prop("Height")),i.update())},resizingEnd:function(){a.a.trigger("balance-band",this.getTable().getContainer())},canHaveChildren:function(t){return"TableObject"!==t&&"MatrixObject"!==t},toXMLNET:function(a){var t=this;return new Promise(function(r){s.default.toXMLNET.call(t,a).then(function(e){var n,i=o()(e);a=Object.assign({parentNode:i[0]},a),n=[],t.components.everyEntity(function(t){n.push(t.toXMLNET(a))}),Promise.all(n).then(function(t){return t.forEach(function(t){i.append(t)}),i.removeAttr("Left"),i.removeAttr("Top"),i.removeAttr("Width"),i.removeAttr("Height"),r(e)})})})}})},function(t,e,n){"use strict";function l(t){return t.split(":").filter(function(t){return!/^[\s]*$/.test(t)&&t})}function o(t,n){var i,r,a,e={},o=t,s={};if(c.a.isPlainObject(t))o=(t=Object.assign({},t)).prop,i=l(t.prop),delete t.prop,e=t;else{if("string"!=typeof t)return null;i=l(t)}return i.forEach(function(t,e){if(0===e)return r=c.a.extend(!0,{},n[t]),s[t]=r,void(a=s[t]);r=r&&(r[t]||r.fields&&r.fields[t]),a.fields={},a.fields[t]=r,a.fields[t]||(i[e+1]?a.fields[t]={label:t,fields:{}}:a.fields[t]={type:"text",label:t}),a=a.fields[t]}),Object(f.a)(a,e,!0),a.origin=o,s}function u(t,e,n){var i,r,a;if(e&&(i=Object(m.b)(e,t.propName))?t.opened=i.opened:n&&(t.opened=!0),t.fields)for(r=Object.values(t.fields),a=0;a<r.length;a++)r[a].fields&&u(r[a],e,n)}function r(t,e){var n,i;for(n=e.length;n--;)for(i=0;i<t.length;i+=1)if(t[i]===e[n]||t[i].prop===e[n]){Object(g.a)(t,i);break}return t}function s(){}var a,i=n(0),c=n.n(i),p=n(4),d=n(1),h=n(14),f=n(6),g=n(192),m=n(71),b=Array.prototype.push;s.prototype=Object.create(Array.prototype),a={_topProps:function(){return{attrs:{min:0,step:function(){return h.a.toUnit(p.a.get("grid"))}},afterSetValue:function(){var t=this.collection&&this.collection.container;t&&d.a.trigger("balance-band",t)}}},_leftProps:function(){return{attrs:{min:0,step:function(){return h.a.toUnit(p.a.get("grid"))}}}},_font:function(n){var t,e,i,r,a,o,s,l;return t=(n=n||"")+"Font.Name",e=n+"Font.Size",i=n+"Font.Bold",r=n+"Font.Italic",a=n+"Font.Strikeout",o=n+"Font.Underline",l=(s={label:"Font",fields:{}}).fields,n||(s.expression=!0,s.expressionEventName="edit-font"),l[t]={type:"select",label:"Name",collection:function(){return p.a.get("font-names")},defaultValue:p.a.get("default-font-name"),setValue:function(t,e){d.a.trigger("font-name",e,this,n)}},l[e]={type:"text",label:"Size",defaultValue:10,getValue:function(){return this.attr(e)}},l[i]={type:"checkbox",label:"Bold",defaultValue:!1},l[r]={type:"checkbox",label:"Italic",defaultValue:!1},l[a]={type:"checkbox",label:"Strikeout",defaultValue:!1},l[o]={type:"checkbox",label:"Underline",defaultValue:!1},s},factory:function(t,e,n,i){var r=3<arguments.length&&void 0!==i&&i,a=new s;return e=e||this.data,a.raw=function(t,e){var n,i=[];if(t)for(n=0;n<t.length;n+=1)i.push(o(t[n],e));return i}(t,e),b.apply(a,function(t,e,n){var i,r,a,o=[],s=[],l=void 0,c=void 0,p=void 0,d=void 0;for(i=0;i<t.length;i+=1)for(l=t[i],c=Object.keys(l),r=0;r<c.length;r+=1)p=c[r],-1<(d=s.indexOf(p))?Object(f.a)(o[d],l[p],!0):(s.push(p),o.push(l[p]));for(a=0;a<o.length;a++)u(o[a],e,n);return o}(a.raw,n,r)),a.origin=[].concat(t),a.data=e,a}},s.prototype.append=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=a.factory(c.a.merge(this.origin||[],t),this.data,e,n);this.length=0,b.apply(this,i)},s.prototype.remove=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=a.factory(r(this.origin,t),this.data,e,n);this.length=0,b.apply(this,i)},s.prototype.rebuild=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];this.origin=r(c.a.merge(this.origin||[],t),e),this.length=0,b.apply(this,a.factory(this.origin,this.data,this,n))},e.a=a},,,,function(t,e,n){"use strict";e.a=function(n,i){var r;return function(){var t=arguments,e=this;clearTimeout(r),r=setTimeout(function(){return n.apply(e,t)},i||100)}}},function(t,e,n){"use strict";function i(e){n.e(9).then(n.bind(null,590)).then(function(t){t.create(e)})}var r,c,a,o,s,l,p;n.r(e),r=n(0),c=n.n(r),a=n(11),o=n(2),s=n(1),l=n(191),p=n(46),e.default=a.default.createObject(a.default,{title:"Bands Data",info:"DataBandInfo",icon:"icon-162",pos:80,type:"DataBand",disabled:!1,_init:function(){a.default._init.call(this),this.defaultValues={"Columns.Count":0,"Columns.Width":0,"Columns.MinRowCount":0,"Columns.Layout":"AcrossThenDown",KeepDetail:!1,KeepTogether:!1,CollectChildRows:!1,PrintIfDatasourceEmpty:!1,PrintIfDetailEmpty:!1,MaxRows:0,RowCount:1},this.prop({Name:"Data",Height:207.874}),this.attr({Sort:[],pos:35})},getFillTitleColor:function(){return"#FFA500"},canHaveChildren:function(t){var e=t.type||t;return a.default.canHaveChildren.apply(this,arguments)||["DataBand","DataHeaderBand","DataFooterBand","GroupHeaderBand"].includes(e)},canBeAdded:function(){return!0},canBeSorted:function(){return!0},creatingComponentEnd:function(t,e,n){var i,r=window.DSG.currentReport;n&&!this.prop("DataSource")&&(i=r.connections.pullDSByView(n)||r.dataSources.pullByView(n))&&(this.prop("DataSource",i),this.render())},dblclick:function(){return i(this)},getContextMenuItems:function(){var e=this,t=function(t){e.onChangeCM(t),e._updateProperties()};return[{name:o.a.tr("ComponentMenu Edit"),type:"default",closeAfter:!0,onClick:function(){s.a.trigger("activate",e),i(e)}},{name:o.a.tr("Band AddChildBand"),type:"default",closeAfter:!0,disabled:e.has("ChildBand"),onClick:function(){s.a.trigger("add-band","ChildBand",e)}},{name:o.a.tr("DataBand AddDetailDataBand"),type:"default",closeAfter:!0,disabled:!!e.has("DataBand"),onClick:function(){s.a.trigger("add-band","DataBand",e)}},{name:o.a.tr("ComponentMenu Hyperlink"),type:"default",closeAfter:!0,onClick:function(){s.a.trigger("hyperlink-editor",e)}},{type:"separator"},{name:o.a.tr("ComponentMenu CanGrow"),type:"checkbox",curVal:e.prop("CanGrow"),prop:"CanGrow",onChange:t},{name:o.a.tr("ComponentMenu CanShrink"),type:"checkbox",curVal:e.prop("CanShrink"),prop:"CanShrink",onChange:t},{name:o.a.tr("ComponentMenu CanBreak"),type:"checkbox",curVal:e.prop("CanBreak"),prop:"CanBreak",onChange:t},{type:"separator"},{name:o.a.tr("ComponentMenu KeepTogether"),type:"checkbox",curVal:e.prop("KeepTogether"),prop:"KeepTogether",onChange:t},{name:o.a.tr("ComponentMenu KeepDetail"),type:"checkbox",curVal:e.prop("KeepDetail"),prop:"KeepDetail",onChange:t},{name:o.a.tr("Band StartNewPage"),type:"checkbox",curVal:e.prop("StartNewPage"),prop:"StartNewPage",onChange:t},{name:o.a.tr("ComponentMenu PrintOnBottom"),type:"checkbox",curVal:e.prop("PrintOnBottom"),prop:"PrintOnBottom",onChange:t},{type:"separator"},{name:o.a.tr("Menu Edit Paste"),type:"default",disabled:!window.DSG.currentReport.getCurrentPage().buffer.length,closeAfter:!0,shortcut:"Ctrl + V",onClick:function(){setTimeout(function(){s.a.trigger("paste")},100)}},{name:o.a.tr("Menu Edit Delete"),type:"default",disabled:!e.canBeRemoved(),closeAfter:!0,shortcut:"Del",onClick:function(){s.a.trigger("remove",e)}}]},fillPropsNET:function(t){var e,n,i=this;a.default.fillPropsNET.apply(this,arguments),e=t.find("> Sort"),n=void 0,e.length&&c.a.each(e,function(){c.a.each(c()(this).children(),function(){n={},c.a.each(this.attributes,function(){n[this.name]=Object(l.a)(this.value)}),i.attr("Sort").push(n)}),c()(this).remove()})},toXMLNET:function(t){var l=this;return new Promise(function(s){a.default.toXMLNET.call(l,t).then(function(t){var e=c()(t.xml),n=+e.attr("Columns.Count"),i=+e.attr("Columns.Width"),r=l.attr("Sort"),a=void 0,o=void 0;return Object(p.a)(n)||(n=0),Object(p.a)(i)||(i=0),0===n?(e.removeAttr("Columns.Count"),e.removeAttr("Columns.Width")):0!==i?e.attr("Width",i):n&&(e.attr("Width",l.prop("Width")/l.prop("Columns.Count")),e.removeAttr("Columns.Width")),c.a.each(r,function(){this&&this.Expression&&(a||(a=c()(e[0].ownerDocument.createElement("Sort")),e.append(a)),a&&(o=c()(a[0].ownerDocument.createElement("Sort")),c.a.each(this,function(t,e){o.attr(t,e)}),a.append(o)))}),s(t)})})},toString:function(){var t=this.prop("Name"),e=this.prop("DataSource");return e&&(t+=": "+e),t}})},function(t,e,n){"use strict";e.a=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.includes(t[e])||n.push(t[e]);return n}},function(t,e,n){"use strict";n(321);var m,i=n(0),b=n.n(i),v=n(1);b()(document.body).on("keydown",function(){"function"==typeof m&&m.apply(this,arguments)}),e.a=function a(t,e,n,i){var r,o,s,l,c,p,d,u=b()("<div>"),h=document.body,f=b()(h),g=window.DSG.head.$main[0].getBoundingClientRect();if(!n||!n.length)return null;for(d=n.length,u.addClass("d-cm"),m=function(t){27===t.keyCode&&u.remove()},o=t.pageX-g.left-h.scrollLeft,r=t.pageY-g.top-h.scrollTop,u.css({left:o,top:r}),e&&((l=b()("<div>")).addClass("d-cm-item d-cm-title"),l.text(e),u.append(l)),c=0;c<d;c+=1)"separator"!==(p=n[c]).type?((s=b()("<div>")).addClass("d-cm-item"),s.addClass("d-cm-"+p.type),p.curVal&&s.addClass("d-cm-checked"),p.disabled&&s.addClass("disabled"),s.append('<span class="d-cm-text">'+p.name+"</span>"),s.data("item",p),p.shortcut&&s.append('<span class="d-cm-shortcut">'+p.shortcut+"</span>"),u.append(s)):u.append('<hr class="d-cm-separator"/>');return window.DSG.head.put(u),f.height()<u.height()+r&&u.css("top",f.height()-u.height()-5),f.width()<u.width()+o&&u.css("left",f.width()-u.width()-5),u.on(i||"mousedown",".d-cm-item",function(t){var e,n,i=b()(this),r=i.data("item");return r&&i.is(":not(.disabled)")&&(r.closeAfter&&v.a.trigger("remove-context-menus"),"checkbox"===r.type?(r.curVal=!r.curVal,i[r.curVal?"addClass":"removeClass"]("d-cm-checked"),r.onChange&&r.onChange(r)):"list"===r.type?(e=i.data("cm"))?(e.remove(),i.data("cm",null)):(e=a(t,null,"function"==typeof r.items?r.items(r):r.items),n=i[0].getBoundingClientRect(),e.css({left:n.left+n.width,top:n.top}),i.data("cm",e),u.after(e)):"default"===r.type&&r.onClick&&r.onClick(r)),!1}),u}},function(t,e,n){"use strict";var i=n(25),r=n(8),a=n(201),o=n(29);e.a=Object(r.a)(i.a,{add:function(t){t&&(t.collection&&t.collection!==this&&t.collection.remove(t),t.collection=this,Object(o.a)(this.entities,t),this.entities.push(t),this.container.$components.append(t.$g),this.container.selfTree&&t.selfTree&&this.container.selfTree.$container.append(t.selfTree.$main))},addInStart:function(t){t&&(t.collection&&t.collection!==this&&t.collection.remove(t),t.collection=this,Object(o.a)(this.entities,t),this.entities.unshift(t),this.container.$components.prepend(t.$g),this.container.selfTree&&t.selfTree&&this.container.selfTree.$container.prepend(t.selfTree.$main))},addInPos:function(t,e){var n;t&&(t.collection&&t.collection!==this&&t.collection.remove(t),t.collection=this,e<0&&(e=0),Object(o.a)(this.entities,t),n=this.entities[e-1],this.entities.splice(e,0,t),n?n.type===t.type?(n.$g.after(t.$g),n.selfTree&&t.selfTree&&n.selfTree.$main.after(t.selfTree.$main)):(Object(o.a)(this.entities,t),this.entities.splice(e-1,0,t)):(this.container.$components.prepend(t.$g),this.container.selfTree&&t.selfTree&&this.container.selfTree.$container.prepend(t.selfTree.$main)))},find:function(n){var i;return this.eachEntity(function(t,e){if(t._id===n)return!(i=[t,e])}),i},findLastByType:function(n){var i;return this.eachEntity(function(t,e){t.type===n&&(i=[t,e])}),i},componentsIn:function(e,n){var i=[];return this.eachEntity(function(t){t.attr("selectable")&&Object(a.a)(e,n,[t.prop("Left"),t.attr("right")],[t.prop("Top"),t.attr("bottom")])&&i.push(t)}),i}})},function(t,e,n){"use strict";var i,o,r,s,a,l,c,p;n.r(e),i=n(0),o=n.n(i),r=n(2),s=n(27),a=n(1),l=n(97),c=n(7),p=n(3),e.default=s.default.createObject(s.default,{type:"ContainerObject",title:"Objects ContainerObject",info:"ContainerObjectInfo",icon:"icon-135",pos:130,_init:function(t){s.default._init.call(this),this.parent=t,this.prop({Name:"Container",Width:112.36,Height:35.59}),this.attr({DefaultBorderColor:"#C0C0C0",removeable:!0,copyable:!0,movable:!0,resizableX:!0,resizableY:!0,resizableXY:!0}),this.components=l.a.create(this),this.render(),this.$components=o()(Object(p.a)("g")),this.$g.append(this.$components)},clone:function(){var e=s.default.clone.apply(this,arguments);return this.components.isEmpty()||this.components.everyEntity(function(t){(t=t.clone())&&(t.render(),e.put(t))}),e},getContextMenuItems:function(){function t(t){e.onChangeCM(t),e._updateProperties()}var e=this;return[{name:r.a.tr("ComponentMenu Hyperlink"),type:"default",closeAfter:!0,onClick:function(){a.a.trigger("hyperlink-editor",e)}},{type:"separator"},{name:r.a.tr("ComponentMenu CanGrow"),type:"checkbox",curVal:e.prop("CanGrow"),prop:"CanGrow",onChange:t},{name:r.a.tr("ComponentMenu CanShrink"),type:"checkbox",curVal:e.prop("CanShrink"),prop:"CanShrink",onChange:t},{name:r.a.tr("ComponentMenu GrowToBottom"),type:"checkbox",curVal:e.prop("GrowToBottom"),prop:"GrowToBottom",onChange:t},{type:"separator"},{name:r.a.tr("Menu Edit Cut"),type:"default",closeAfter:!0,shortcut:"Ctrl + X",onClick:function(){a.a.trigger("cut",o()(e))}},{name:r.a.tr("Menu Edit Copy"),type:"default",closeAfter:!0,shortcut:"Ctrl + C",onClick:function(){a.a.trigger("copy",o()(e))}},{name:r.a.tr("Menu Edit Paste"),type:"default",disabled:!window.DSG.currentReport.getCurrentPage().buffer.length,closeAfter:!0,shortcut:"Ctrl + V",onClick:function(){setTimeout(function(){a.a.trigger("paste")},100)}},{name:r.a.tr("Menu Edit Delete"),type:"default",disabled:!e.canBeRemoved(),closeAfter:!0,shortcut:"Del",onClick:function(){a.a.trigger("remove",e)}},{type:"separator"},{name:r.a.tr("Layout BringToFront"),type:"default",closeAfter:!0,onClick:function(){a.a.trigger("bring-to-front",e)}},{name:r.a.tr("Layout SendToBack"),type:"default",closeAfter:!0,onClick:function(){a.a.trigger("send-to-back",e)}}]},appendEdges:function(){this.$moveBlock.css({stroke:this.attr("DefaultBorderColor"),"stroke-dasharray":"","stroke-width":"1px"})},appendAngleSlider:function(){},activate:function(){s.default.activate.call(this),this.$blanket||(this.$blanket=o()(Object(p.a)("rect"))),this.$blanket.attr({width:this.prop("Width"),height:this.prop("Height")}),this.$blanket.attr("fill","rgba(160, 195, 255, 0.5)")},deactivate:function(){return s.default.deactivate.call(this),this.$blanket&&this.$blanket.removeAttr("fill"),this},put:function(t){this.components.add(t.g.component)},canHaveChildren:function(){return!0},fillPropsNET:function(t){c.default.fillPropsNET.apply(this,arguments);var n,e=t.children();n=this,e.each(function(){var t=o()(this),e=window.DSG.components[t.prop("tagName")];e&&((e=e.create()).fillPropsNET(t),e.render(),n.put(e))})},toXMLNET:function(a){var t=this;return new Promise(function(r){s.default.toXMLNET.call(t,a).then(function(e){var n,i=o()(e.xml);a=Object.assign({parentNode:i[0]},a),n=[],t.components.everyEntity(function(t){n.push(t.toXMLNET(a))}),Promise.all(n).then(function(t){return t.forEach(function(t){i.append(t)}),r(e)})})})}})},function(t,e,n){"use strict";var i=n(25),r=n(8);e.a=Object(r.a)(i.a,{everyEntity:function(t,e){var n,i,r=1<arguments.length&&void 0!==e?e:0,a=this.all();for(n=0,i=a.length;n<i;n+=1)if(!1===t.call(this,a[n],n,r)||a[n].dataSources.count()&&!1===a[n].dataSources.everyEntity(t,r+1))return!1;return this},pullByView:function(t){if(void 0===t)throw new Error("view must be defined");var e=t.match(/^\[([^.]+)./);return(e=e&&e[1]?e[1]:t)?this.container.dataSources.findOneAmongAll({Alias:e})||this.container.dataSources.findOneAmongAll({Name:e})||this.container.dataSources.findOneAmongAll({_id:e})||this.nestedDataSources().findOneAmongAll({_id:e}):null},nestedDataSources:function(){var n=this.container.dataSources.clone();return function e(t){t.everyEntity(function(t){n.add(t),0<t.columns.count()&&t.columns.everyEntity(function(t){e(t.dataSources)})})}(n),n}})},function(t,e,n){"use strict";e.a=function(t){return t===+t&&t!==(0|t)}},function(t,e,n){"use strict";function o(t,e,n,i){return t.setAttributeNS(i||null,e,n)}function i(t,e,n){return t.getAttributeNS(n||null,e)}function r(t,e,n){for(var i,r=Object.keys(e),a=r.length;a--;)o(t,i=r[a],e[i],n)}n.d(e,"b",function(){return o}),n.d(e,"a",function(){return i}),n.d(e,"c",function(){return r})},,,,,,,,,,,function(t,e,n){"use strict";var i,s,l,r,a,o,c;n.r(e),i=n(0),s=n.n(i),l=n(34),r=n(97),a=n(8),o=n(18),c=n(3),e.default=Object(a.a)(l.a,{title:"Form",info:"Form info",icon:"icon-136",type:"DialogPage",init:function(){this.report=null},create:function(){return this.createObject(this,{init:function(){this.SM.add(this),this._id="f"+Object(o.a)(),this.unparsed=[],this.attr({isHidden:!0,activated:!1,removed:!1}),this.prop({Name:"Form",Width:300,Height:300}),this.createWorkspace("form"),this.$g.data("form",this),this.defaultValues={FormBorderStyle:"FixedDialog",BackColor:"#F0F0F0",RightToLeft:"No"},this.components=r.a.create(this)}})},show:function(){l.a.show.apply(this,arguments),this.render()},updateSize:function(){l.a.updateSize.apply(this,arguments),this.$background.attr({width:this.prop("Width"),height:this.prop("Height")})},render:function(){l.a.render.call(this),this.$background||(this.$background=s()(Object(c.a)("rect")),this.$workspace.append(this.$background)),this.$components||(this.$components=s()(Object(c.a)("g")),this.$workspace.append(this.$components)),this.updateSize(),this.$background.css("fill",this.prop("BackColor")),this.$upControlElements||(this.$upControlElements=s()(Object(c.a)("g")),this.$workspace.append(this.$upControlElements))},put:function(t){return this.components.add(t),this},fillPropsNET:function(){return l.a.fillPropsNET.apply(this,arguments),this},toXMLNET:function(a){var o=this;return new Promise(function(r){l.a.toXMLNET.call(o,a).then(function(e){var n,i=s()(e.xml);a=Object.assign({parentNode:i[0]},a),n=[],o.components.eachEntity(function(t){n.push(t.toXMLNET(a)),i.append(t.toXMLNET(a))}),Promise.all(n).then(function(t){return t.forEach(function(t){return i.append(t)}),s.a.each(o.unparsed,function(){i.append(this)}),r(e)})})})},isDialog:function(){return!0}})},function(t,e,n){"use strict";n.r(e);var i=n(11);e.default=i.default.createObject(i.default,{title:"Bands ReportTitle",info:"ReportTitleBandInfo",icon:"icon-154",pos:10,type:"ReportTitleBand",typevcl:"TfrxReportTitle",disabled:!1,_init:function(){i.default._init.call(this),this.prop("Name","ReportTitle"),this.attr("pos",10)}})},function(t,e,n){"use strict";n.r(e);var i=n(11);e.default=i.default.createObject(i.default,{title:"Bands PageHeader",info:"PageHeaderBandInfo",icon:"icon-156",pos:30,type:"PageHeaderBand",disabled:!1,_init:function(){i.default._init.call(this),this.prop("Name","PageHeader"),this.attr("pos",20)}})},function(t,e,n){"use strict";n.r(e);var i=n(11);e.default=i.default.createObject(i.default,{title:"Bands PageFooter",info:"PageFooterBandInfo",icon:"icon-157",pos:40,type:"PageFooterBand",disabled:!1,_init:function(){i.default._init.call(this),this.prop("Name","PageFooter"),this.attr("pos",70)}})},function(t,e,n){"use strict";var i,r,a,o,s,l,c;n.r(e),i=n(0),r=n.n(i),a=n(2),o=n(1),s=n(7),l=n(3),c=n(5),e.default=s.default.createObject(s.default,{title:"Objects SubreportObject",info:"SubreportObjectInfo",icon:"icon-104",pos:50,type:"SubreportObject",disabled:!1,_init:function(){s.default._init.apply(this,arguments),this.defaultValues={PrintOnParent:!1},this.prop({Name:"Subreport",Width:70,Height:40,"Fill.Color":"#C9C9C9"})},getReportPage:function(){return window.DSG.currentReport.pages.findOneAmongAll({Name:this.prop("ReportPage"),isSubreport:!0})},getContextMenuItems:function(){var e=this;return[{name:a.a.tr("SubreportObject PrintOnParent"),type:"checkbox",curVal:e.prop("PrintOnParent"),prop:"PrintOnParent",onChange:function(t){e.onChangeCM(t),e._updateProperties()}},{type:"separator"},{name:a.a.tr("Menu Edit Cut"),type:"default",disabled:!0,closeAfter:!0,shortcut:"Ctrl + X",onClick:function(){o.a.trigger("cut",r()(e))}},{name:a.a.tr("Menu Edit Copy"),type:"default",disabled:!0,closeAfter:!0,shortcut:"Ctrl + C",onClick:function(){o.a.trigger("copy",r()(e))}},{name:a.a.tr("Menu Edit Paste"),type:"default",disabled:!window.DSG.currentReport.getCurrentPage().buffer.length,closeAfter:!0,shortcut:"Ctrl + V",onClick:function(){setTimeout(function(){o.a.trigger("paste")},100)}},{name:a.a.tr("Menu Edit Delete"),type:"default",disabled:!e.canBeRemoved(),closeAfter:!0,shortcut:"Del",onClick:function(){o.a.trigger("remove",e)}},{type:"separator"},{name:a.a.tr("Layout BringToFront"),type:"default",closeAfter:!0,onClick:function(){o.a.trigger("bring-to-front",e)}},{name:a.a.tr("Layout SendToBack"),type:"default",closeAfter:!0,onClick:function(){o.a.trigger("send-to-back",e)}}]},render:function(){var t,e,n=this.getReportPage();return s.default.render.apply(this,arguments),this.$contentGroup.empty(),t=r()(Object(l.a)("g")),e=r()(Object(l.a)("text",{class:"text"})),t.append(e),this.$contentGroup.append(t),e.text(this.prop("Name")),e.css({"font-size":10,fill:"#000000","text-anchor":"start"}),Object(c.a)(t[0],"transform","translate(0,10)"),n&&n.attr("removed")&&n.attr("removed",!1),this.$g},remove:function(){s.default.remove.apply(this,arguments),window.DSG.currentReport.removePage(this.getReportPage())},fillPropsNET:function(){s.default.fillPropsNET.apply(this,arguments),r.a.each(window.DSG.currentReport.pages.findBy({Name:this.prop("ReportPage")}),function(){this.attr("isSubreport",!0)})}})},function(t,e,n){"use strict";function r(t,e){var n,i=this.getTable(),r=i.prop("Left"),a=i.prop("Top")+i.collection.container.prop("Top"),o=e.x-(r+this.prop("Left")),s=r+this.attr("right")-e.x,l=e.y-(a+this.prop("Top")),c=a+this.attr("bottom")-e.y,p=this.prop("Width"),d=this.prop("Height"),u=this.attr("droppable-dir");this.$droppableBorder||(this.$droppableBorder=f()(Object(v.a)("polyline",{class:"droppable-border"})),this.$g.append(this.$droppableBorder)),this.$droppableBorder.addClass("fr-hidden"),Object(C.a)(this.$moveBlock[0],"drop-in-left"),Object(C.a)(this.$moveBlock[0],"drop-in-right"),Object(C.a)(this.$moveBlock[0],"drop-in-top"),Object(C.a)(this.$moveBlock[0],"drop-in-bottom"),u&&(o<s&&o<l&&o<c&&"1"===u[0]&&(n="0,0 0,"+d,this.$droppableBorder.attr("points",n),Object(y.a)(this.$droppableBorder[0],"drop-in-left")),s<o&&s<l&&s<c&&"1"===u[2]&&(n=p+",0 "+p+","+d,this.$droppableBorder.attr("points",n),Object(y.a)(this.$droppableBorder[0],"drop-in-right")),l<o&&l<s&&l<c&&"1"===u[1]&&(n="0,0 "+p+",0",this.$droppableBorder.attr("points",n),Object(y.a)(this.$droppableBorder[0],"drop-in-top")),c<o&&c<s&&c<l&&"1"===u[3]&&(n="0,"+d+" "+p+","+d,this.$droppableBorder.attr("points",n),Object(y.a)(this.$droppableBorder[0],"drop-in-bottom")),this.$droppableBorder.removeClass("fr-hidden"))}function a(){this.$droppableBorder&&(this.$droppableBorder.remove(),this.$droppableBorder=null)}function u(t,e,n){var i;this.expr?-1===(i=t.indexOf(this.expr))?t.push(e):(n&&-1!==f.a.inArray(n,[1,2])||(i+=1),t.splice(i,0,e)):t.push(e)}function o(t,e,n){var i,r=this.attr("m-type"),a=this.getTable(),o={Expression:n},s=function(t){return t.$droppableBorder.is(".drop-in-left")?1:t.$droppableBorder.is(".drop-in-top")?2:t.$droppableBorder.is(".drop-in-right")?3:t.$droppableBorder.is(".drop-in-bottom")?4:0}(this),l=a.attr("MatrixRows"),c=a.attr("MatrixColumns"),p=a.attr("MatrixCells"),d=window.DSG.currentReport;switch(n&&!a.prop("DataSource")&&(i=d.connections.pullDSByView(n)||d.dataSources.pullByView(n))&&(a.prop("DataSource",i),m.a.trigger("update-properties-panel",a)),r){case 1:u.call(this,l,o,s),a.droppedOnRow(this,s,o);break;case 0:u.call(this,c,o,s),a.droppedOnColumn(this,s,o);break;case 2:u.call(this,p,o,s),a.droppedOnCell(this,s,o)}this.deleteComponentOver(),m.a.trigger("balance-band",a.collection.container)}function s(e){e.expr&&(e.getContextMenuItems=function(){function t(t){e.onChangeCM(t,e.expr),e._updateProperties()}return[{name:g.a.tr("ComponentMenu Edit"),type:"default",closeAfter:!0,onClick:function(){m.a.trigger("activate",e),e.dblclick()}},{name:g.a.tr("TextObject Format"),type:"default",closeAfter:!0,onClick:function(){m.a.trigger("activate",e),m.a.trigger("format",e)}},{name:g.a.tr("MatrixCell Function"),type:"list",items:[{name:g.a.tr("Misc None"),type:"checkbox",prop:"Function",curVal:"None"===e.expr.Function,val:"None",onChange:t,closeAfter:!0},{name:g.a.tr("TotalEditor Sum"),type:"checkbox",prop:"Function",curVal:"Sum"===e.expr.Function||void 0===e.expr.Function,val:"Sum",onChange:t,closeAfter:!0},{name:g.a.tr("TotalEditor Min"),type:"checkbox",prop:"Function",curVal:"Min"===e.expr.Function,val:"Min",onChange:t,closeAfter:!0},{name:g.a.tr("TotalEditor Max"),type:"checkbox",prop:"Function",curVal:"Max"===e.expr.Function,val:"Max",onChange:t,closeAfter:!0},{name:g.a.tr("TotalEditor Avg"),type:"checkbox",prop:"Function",curVal:"Average"===e.expr.Function,val:"Average",onChange:t,closeAfter:!0},{name:g.a.tr("TotalEditor Count"),type:"checkbox",prop:"Function",curVal:"Count"===e.expr.Function,val:"Count",onChange:t,closeAfter:!0},{name:g.a.tr("TotalEditor Custom"),type:"checkbox",prop:"Function",curVal:"Custom"===e.expr.Function,val:"Custom",onChange:t,closeAfter:!0}]},{name:g.a.tr("MatrixCell Percent"),type:"list",items:[{name:g.a.tr("Misc None"),type:"checkbox",prop:"Percent",curVal:"None"===e.expr.Percent||void 0===e.expr.Percent,val:"None",onChange:t,closeAfter:!0},{name:g.a.tr("MatrixCell PercentColumnTotal"),type:"checkbox",prop:"Percent",curVal:"ColumnTotal"===e.expr.Percent,val:"ColumnTotal",onChange:t,closeAfter:!0},{name:g.a.tr("MatrixCell PercentRowTotal"),type:"checkbox",prop:"Percent",curVal:"RowTotal"===e.expr.Percent,val:"RowTotal",onChange:t,closeAfter:!0},{name:g.a.tr("MatrixCell PercentGrandTotal"),type:"checkbox",prop:"Percent",curVal:"GrandTotal"===e.expr.Percent,val:"GrandTotal",onChange:t,closeAfter:!0}]}]})}function h(t,e,n,i){e&&f.a.isPlainObject(e)&&t.prop(e),t.attr("droppable-dir",n),t.attr("m-type",i),t.creatingComponentOver=r,t.deleteComponentOver=a,t.creatingComponentEnd=o,t.attr("droppable-component",!0),t.attr("droppable-view",!0),2===i?s(t):function(t){var o;t.expr&&(t.getContextMenuTitle=function(){return"{0}: {1}".format(this.toString(),this.prop("Text"))},t.getContextMenuItems=function(){var a=this;return o=function(t){a.onChangeCM(t,a.expr),a._updateProperties()},[{name:g.a.tr("DataBandEditor Sort"),type:"list",items:[{name:g.a.tr("GroupBandEditor Ascending"),type:"checkbox",prop:"Sort",curVal:"Ascending"===a.expr.Sort||void 0===a.expr.Sort,val:"Ascending",onChange:o,closeAfter:!0},{name:g.a.tr("GroupBandEditor Descending"),type:"checkbox",prop:"Sort",curVal:"Descending"===a.expr.Sort,val:"Descending",onChange:o,closeAfter:!0},{name:g.a.tr("GroupBandEditor NoSort"),type:"checkbox",prop:"Sort",curVal:"None"===a.expr.Sort,val:"None",onChange:o,closeAfter:!0}]},{name:g.a.tr("Dictionary Totals"),type:"checkbox",curVal:void 0===a.expr.Totals||!1!==a.expr.Totals,prop:"Totals",onChange:function(t){function e(t,e,n){for(var i=t;i<t+e;i+=1)r[n](i)}var n,r=a.getTable(),i=r.attr("MatrixCells");o(t),!1===t.curVal?1===a.attr("m-type")?(n=a.under())&&e(n.getPosInColumn(),n.prop("RowSpan"),"removeRow"):(n=a.next())&&e(n.getPosInRow(),n.prop("ColSpan"),"removeColumn"):1===a.attr("m-type")?e(a.getPosInColumn()+1,i.vert&&i.length||1,"appendRow"):e(a.getPosInRow()+1,i.horz&&i.length||1,"appendColumn"),r.adjust(),r.update()}},{name:g.a.tr("Band StartNewPage"),type:"checkbox",curVal:a.expr.PageBreak,prop:"PageBreak",onChange:o},{name:g.a.tr("MatrixCell SuppressTotals"),type:"checkbox",curVal:a.expr.SuppressTotals,prop:"SuppressTotals",onChange:o},{name:g.a.tr("MatrixCell TotalsFirst"),type:"checkbox",curVal:a.expr.TotalsFirst,prop:"TotalsFirst",onChange:o}]})}(t),t.render()}var i,f,g,m,b,v,y,C,c,S;n.r(e),i=n(0),f=n.n(i),g=n(2),m=n(1),b=n(33),v=n(3),y=n(42),C=n(32),c=n(6),S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e.default=b.default.createObject(b.default,{title:"Objects MatrixObject",info:"MatrixObjectInfo",icon:"icon-142",pos:70,type:"MatrixObject",disabled:!1,_init:function(){b.default._init.apply(this,arguments),this.defaultValues={Layout:"AcrossThenDown",WrappedGap:0,AdjustSpannedCellsWidth:!1,RepeatHeaders:!0,AutoSize:!1,CellsSideBySide:!1,KeepCellsSideBySide:!1,MatrixEventStylePriority:"Rows",ShowTitle:!1,Style:"No style"},this.prop("Name","Matrix"),this.attr({RowCount:2,ColumnCount:2,MatrixColumns:[],MatrixRows:[],MatrixCells:[],Styles:{"No style":{cr:"transparent",cells:"transparent",bc:"#C0C0C0"},White:{cr:"#FFFFFF",cells:"#FFFFFF",bc:"#C0C0C0"},Gray:{cr:"#DCDCDC",cells:"#F5F5F5",bc:"#FFFFFF"},Orange:{cr:"#FFDA46",cells:"#FFEB9B",bc:"#FFFFFF"},Green:{cr:"#7BA400",cells:"#9ED200",bc:"#FFFFFF"},"Green and Orange":{cr:"#98CC00",cells:"#FFCC00",bc:"#FFFFFF"},Blue:{cr:"#97BDFD",cells:"#BAD3FE",bc:"#FFFFFF"},"Blue and White":{cr:"#97BDFD",cells:"#FFFFFF",bc:"#FFFFFF"},"Gray and Orange":{cr:"#808080",cells:"#FFCC00",bc:"#FFFFFF"},"Blue and Orange":{cr:"#97BDFD",cells:"#FFCF6A",bc:"#FFFFFF"},"Orange and White":{cr:"#FFCC00",cells:"#FFFFFF",bc:"#FFFFFF"}}})},createCell:function(t){var e=b.default.createCell.call(this,t);return e.attr("droppable-view",!1),e},showResizingComponents:function(){this.prop("AutoSize")?this.hideResizingComponents():b.default.showResizingComponents.apply(this,arguments)},clone:function(){var t,e,n=b.default.clone.apply(this,arguments),i=this.attr("MatrixColumns"),r=this.attr("MatrixRows"),a=this.attr("MatrixCells"),o=[],s=[],l=[];for(t=0,e=i.length;t<e;t+=1)o.push(Object(c.a)({},i[t]));for(t=0,e=r.length;t<e;t+=1)s.push(Object(c.a)({},r[t]));for(t=0,e=a.length;t<e;t+=1)l.push(Object(c.a)({},a[t]));return n.attr("MatrixColumns",o),n.attr("MatrixRows",s),n.attr("MatrixCells",l),n.bindEvents(),n},getContextMenuItems:function(){function r(){a.onChangeCM.bind(a),a._updateProperties()}var a=this;return[{name:g.a.tr("MatrixObject ShowTitle"),type:"checkbox",curVal:a.prop("ShowTitle"),prop:"ShowTitle",onChange:function(t){r(),a.onShowTitleChange(t.prop,t.curVal)}},{name:g.a.tr("TableObject RepeatHeaders"),type:"checkbox",curVal:a.prop("RepeatHeaders"),prop:"RepeatHeaders",onChange:r},{name:g.a.tr("MatrixObject CellsSideBySide"),type:"checkbox",curVal:a.prop("CellsSideBySide"),prop:"CellsSideBySide",onChange:r},{type:"separator"},{name:g.a.tr("MatrixObject Style"),type:"list",items:function(){function e(){r(),a.colorize()}var n=[],i=a.prop("Style");return f.a.each(a.attr("Styles"),function(t){n.push({name:g.a.tr(t),type:"checkbox",prop:"Style",curVal:i===t,val:t,closeAfter:!0,onChange:e})}),n}}]},getCurStyle:function(){return this.attr("Styles")[this.prop("Style")]},_setDefaultCellValues:function(t,e,n){var i=e;i&&((i=i.match(/.([^.]+)\]$/))&&i[1]?(i=i[1],n||(i="["+i+"]")):i=e),t.prop("Text",i||n||""),t.prop("TextFill.Color",t.defaultValues["TextFill.Color"]),t.prop("Fill.Color",t.defaultValues["Fill.Color"]),t.prop("HorzAlign","Center"),t.prop("VertAlign","Center")},colorize:function(t){function n(t){i._setDefaultCellValues(t,null,t.prop("Text")),t.getPosInRow()<e[0]||t.getPosInColumn()<e[1]?t.prop("Fill.Color",r.cr):t.prop("Fill.Color",r.cells),t.prop("Border.Lines","All"),t.prop("Border.Width",1),t.prop("Border.Style","Solid"),t.prop("Border.Color",r.bc||t.prop("Border.Color")),t.render()}var e,i=this,r=this.getCurStyle();e=this.getFirstCellPos(),t?n(t):this._eachCell(function(t,e){n(e)})},onShowTitleChange:function(t,e){if(e&&!this.attr("hasTitle")){var n=this.appendRow(0),i=0,r=n.cells.length;for(this.attr("hasTitle",!0);i<r;i+=1)this.colorize(n.cells[i])}else!e&&this.attr("hasTitle")&&(this.removeRow(0),this.attr("hasTitle",!1));this.adjustTitle(),this.update()},afterAlign:function(){var t=this.rows[0].cells[1],e=this.rows[1].cells[0],n=this.rows[1].cells[1];h(t,{Text:g.a.tr("Matrix NewColumn"),"TextFill.Color":"gray"},null,0),h(e,{Text:g.a.tr("Matrix NewRow"),"TextFill.Color":"gray"},null,1),h(n,{Text:g.a.tr("Matrix NewCell"),"TextFill.Color":"gray"},null,2)},_eachCR:function(t,e){var n,i,r,a,o,s,l,c,p,d,u=this.attr("MatrixCells");for(s="ColSpan"===e?(o="horz",a="RowSpan","next"):(o="vert",a="ColSpan","under"),l=t.length-1;0<=l;l-=1){for(p=t[l].cell,i=(i||0)+(r=u[o]&&u.length?u.length:1),d=p[s](),c=i-1;0<c;c-=1)d&&(d.prop("ColSpan",1),d.prop("RowSpan",1),this._setDefaultCellValues(d),d=d[s]());p.prop(e,i),n=p[s](),!1!==t[l].Totals?n&&(n.prop(a,t.length-l),n.prop(e,r),this._setDefaultCellValues(n,g.a.tr("TotalEditor Total"))):i-=1,this._setDefaultCellValues(p,t[l].Expression)}},adjust:function(){this.adjustCells(),this._eachCR(this.attr("MatrixColumns"),"ColSpan"),this._eachCR(this.attr("MatrixRows"),"RowSpan"),this.adjustTitle(),this.colorize()},adjustTitle:function(){var t=this.attr("MatrixRows").length,e=this.rows[0].cells[0],n=1;this.prop("ShowTitle")&&(t&&(n=t,this.attr("MatrixCells").vert&&(n+=1),e.prop("ColSpan",n)),e=this.rows[0].cells[n],n=this.attr("ColumnCount")-e.getPosInRow(),e.prop("ColSpan",n))},getFirstCellPos:function(){var t=this.attr("MatrixColumns"),e=this.attr("MatrixRows"),n=this.attr("MatrixCells"),i=[1,1];return e.length?i[0]=e[e.length-1].cell.getPosInRow()+(n.vert&&1<n.length?2:1):n.vert&&(i[0]+=1),t.length?i[1]=t[t.length-1].cell.getPosInColumn()+(n.horz&&1<n.length?2:1):(this.prop("ShowTitle")&&(i[1]+=1),n.horz&&(i[1]+=1)),i},adjustCells:function(){var t,e,n,i,r,a=this.getFirstCellPos(),o=this.attr("MatrixColumns"),s=this.attr("MatrixRows"),l=this.attr("MatrixCells"),c=o.length,p=s.length,d=l.length,u=[];if(t=e=this.rows[a[1]].cells[a[0]],l.horz){for(i=c*d+d||1,r=c-1;0<=r;r-=1)!1===o[r].Totals&&(i-=d);t.afterInRow().length<i&&(this.attr("ColumnCount",t.getPosInRow()+i),this.update())}else if(l.vert){for(i=p*d+d||1,r=p-1;0<=r;r-=1)!1===s[r].Totals&&(i-=d);t.afterInColumn().length<i&&(this.attr("RowCount",t.getPosInColumn()+i),this.update())}for(r=0;r<d;r+=1)(l[r].cell=t).expr=l[r],this._setDefaultCellValues(t,l[r].Expression),l.horz?(h(t,null,"1010",2),t=t.next()):l.vert&&(h(t,null,"0101",2),t=t.under());if(t&&l.horz)u=t.afterInRow(!0),t=e.over(),n="next";else{if(!t||!l.vert)return;u=t.afterInColumn(!0),t=e.prev(),n="under"}for(1<u.length&&f.a.each(u,function(t,e){this._setDefaultCellValues(e,"")}.bind(this)),r=0;t;)this._setDefaultCellValues(t,l[r%d].Expression,!0),t=t[n](),r+=1},droppedOnColumn:function(t,e,n){1===this.attr("MatrixColumns").length?this.appendColumn(this.attr("ColumnCount")):t=2===e?(this.appendColumn(t.getPosInRow()+2),this.appendRow(t.getPosInColumn()+0),t.over()):(this.appendColumn(t.getPosInRow()+1),this.appendRow(t.getPosInColumn()+1),t.under()),(n.cell=t).expr=n,h(t,null,"0101",0),this.adjust(),this.update()},droppedOnRow:function(t,e,n){1===this.attr("MatrixRows").length?this.appendRow(this.attr("RowCount")):t=1===e?(this.appendRow(t.getPosInColumn()+2),this.appendColumn(t.getPosInRow()+0),t.prev()):(this.appendRow(t.getPosInColumn()+1),this.appendColumn(t.getPosInRow()+1),t.next()),(n.cell=t).expr=n,h(t,null,"1010",1),this.adjust(),this.update()},droppedOnCell:function(t,e,n){var i=this.attr("MatrixCells");(n.cell=t).expr=n,1<i.length?2===i.length&&(1===e||3===e?(i.horz=!0,this.appendRow(t.getPosInColumn())):(i.vert=!0,this.appendColumn(t.getPosInRow()))):h(t,null,"1111",2),this.adjust(),this.update()},bindEvents:function(){var t,e,n=this.attr("MatrixCells"),i=this.attr("MatrixRows"),r=this.attr("MatrixColumns"),a=i.length||1,o=n.length||1,s=r.length||1,l=[0,1],c=[1,0],p=[0,0];for(1===o?(l=[0,a],c=[s,0]):0<o&&(this.attr("RowCount")>this.attr("ColumnCount")?(n.vert=!0,l=[0,a+1],c=[s,0],p[1]=1):(n.horz=!0,l=[0,a],c=[s+1,0],p[0]=1)),this.prop("ShowTitle")&&(this.attr("hasTitle",!0),l[0]+=1,c[0]+=1),e=this.rows[l[0]].cells[l[1]],t=0;e&&t<s;)r[t]&&((r[t].cell=e).expr=r[t]),h(e,null,"0101",0),e=e.under(),t+=1;for(p[0]+=e.getPosInColumn(),e=this.rows[c[0]].cells[c[1]],t=0;e&&t<a;)i[t]&&((i[t].cell=e).expr=i[t]),h(e,null,"1010",1),e=e.next(),t+=1;for(p[1]+=e.getPosInRow(),e=this.rows[p[0]].cells[p[1]],t=0;e&&t<o;)e=n.horz?(h(e,null,"1010",2),e.next()):n.vert?(h(e,null,"0101",2),e.under()):(h(e,null,"1111",2),e.next()),t+=1},fillPropsNET:function(e){var t,n=this.attr("MatrixCells"),i=this.attr("MatrixRows"),r=this.attr("MatrixColumns");b.default.fillPropsNET.apply(this,arguments),(t=function(t,n){var i,r;e.find(t).each(function(t,e){i={},f.a.each(e.attributes,function(t,e){r="false"!==e.value&&("true"===e.value||e.value),i[e.name]=r}),n.push(i)})})("MatrixColumns >",r),t("MatrixRows >",i),t("MatrixCells >",n),this.bindEvents()},toXMLNET:function(p){var d=this;return new Promise(function(c){b.default.toXMLNET.call(d,p).then(function(t){var e,n,i,r,a=f()(t.xml),o=void 0,s=f()(p.parentNode.ownerDocument.createElement("MatrixColumns")),l=d.attr("MatrixColumns");return f.a.each(l,function(){o=f()(p.parentNode.ownerDocument.createElement("Header")),f.a.each(this,function(t,e){"object"!==(void 0===e?"undefined":S(e))&&o.attr(t,e)}),s.append(o)}),e=f()(p.parentNode.ownerDocument.createElement("MatrixRows")),n=d.attr("MatrixRows"),f.a.each(n,function(){o=f()(p.parentNode.ownerDocument.createElement("Header")),f.a.each(this,function(t,e){"object"!==(void 0===e?"undefined":S(e))&&o.attr(t,e)}),e.append(o)}),i=f()(p.parentNode.ownerDocument.createElement("MatrixCells")),r=d.attr("MatrixCells"),f.a.each(r,function(){o=f()(p.parentNode.ownerDocument.createElement("Cell")),f.a.each(this,function(t,e){"object"!==(void 0===e?"undefined":S(e))&&o.attr(t,e)}),i.append(o)}),a.prepend(i),a.prepend(e),a.prepend(s),c(t)})})}})},function(t,e,n){"use strict";var i,a,r,o,s,l;n.r(e),i=n(0),a=n.n(i),r=n(4),o=n(13),s=n(3),l=n(5),e.default=o.default.createObject(o.default,{title:"ButtonControl",info:"ButtonControl info",icon:"icon-115",pos:10,type:"ButtonControl",disabled:!1,_init:function(){o.default._init.apply(this,arguments),this.defaultValues={ForeColor:"#000",BackColor:"#F0F0F0",ImageAlign:"MiddleCenter",TextAlign:"MiddleCenter",TextImageRelation:"Overlay",RightToLeft:"No",AutoSize:!1,Enabled:!0,TabIndex:4,TabStop:!0},this.prop({Name:"Button",Width:75,Height:23,Text:"Button"}),this.attr({"text-anchor":"middle","Font.Name":r.a.get("default-font-name"),"Font.Size":"8pt","Font.Bold":!1,"Font.Italic":!1,"Font.Underline":!1,"Font.Strikeout":!1})},render:function(){var t=this.attr("Font.Size"),e=this.attr("Font.Name"),n=this.prop("Text"),i=this.prop("Width")/2,r=this.prop("Height")/2+parseFloat(t,10)/3;return o.default.render.apply(this,arguments),this.$contentGroup.children().length||(this.$nestedG1=a()(Object(s.a)("g")),this.$nestedG2=a()(Object(s.a)("g")),this.$textNode=a()(Object(s.a)("text")),this.$nestedG2.append(this.$textNode),this.$nestedG1.append(this.$nestedG2),this.$contentGroup.append(this.$nestedG1)),n!==this.$textNode.text()&&this.$textNode.text(n),this.$moveBlock.css({fill:this.prop("BackColor"),stroke:"silver"}),this.$textNode.css({"font-size":t+(a.a.isNumeric(t)?"pt":""),fill:this.prop("ForeColor"),"font-family":e,"text-anchor":this.attr("text-anchor")}),this.applyFontStyles(this.$textNode),Object(l.a)(this.$nestedG1[0],"transform","translate("+i+", "+r+")"),this.$g}})},function(t,e,n){"use strict";var i,u,r,h,f,g,m,a,o,b;n.r(e),i=n(0),u=n.n(i),r=n(4),h=n(13),f=n(76),g=n(3),m=n(5),a=n(85),o=n(86),b=n(75),e.default=h.default.createObject(h.default,{title:"CheckedListBoxControl",info:"CheckedListBoxControl info",icon:"icon-148",pos:30,type:"CheckedListBoxControl",disabled:!1,_init:function(){h.default._init.apply(this,arguments),this.defaultValues={ForeColor:"#000",BackColor:"#FFF",ColumnWidth:0,Enabled:!0,MultiColumn:!1,SelectionMode:"One",Sorted:!1,TabIndex:2,TabStop:!0,UseTabStops:!0,AutoFill:!0,AutoFilter:!0,CheckOnClick:!1},this.attr({"Font.Name":r.a.get("default-font-name"),"Font.Size":"8pt","Font.Bold":!1,"Font.Italic":!1,"Font.Underline":!1,"Font.Strikeout":!1}),this.prop({Name:"CheckedListBox",ItemsText:"",Width:120,Height:96})},render:function(){var t,e,n,i,r,a=this.attr("Font.Size"),o=this.attr("Font.Name"),s=this.prop("ItemsText"),l=this.prop("Width"),c=this.prop("Height"),p=parseFloat(a,10)+2,d=-9;if(h.default.render.apply(this,arguments),this.$contentGroup.children().length||(this.$nestedG1=u()(Object(g.a)("g")),this.$nestedG2=u()(Object(g.a)("g")),this.$textNode=u()(Object(g.a)("text")),this.$checkboxes=u()(Object(g.a)("g")),this.$nestedG2.append(this.$textNode,this.$checkboxes),this.$nestedG1.append(this.$nestedG2),this.$textNode[0].setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.$back=u()(Object(g.a)("rect",{stroke:"gray",x:0,y:0})),this.$contentGroup.append(this.$back,this.$nestedG1)),this.$back.attr({width:l-2,height:c-2,fill:this.prop("BackColor")}),this.$textNode.empty(),this.$checkboxes.empty(),r=Object(b.a)(s,{"font-size":a,"font-family":o,"font-weight":a}),s=s.split(/\n\r|\n|\r/g),r.h+=2,n=0,1<(i=s.length)||s[0])for(;n<i;n+=1)(t=u()(Object(g.a)("tspan"))).text(s[n]||" "),Object(m.a)(t[0],"x",20),0<n&&Object(m.a)(t[0],"dy",r.h),this.$textNode.append(t),e=f.default.generateCheckbox(),Object(m.a)(e[0],"transform","translate(0, "+d+")"),d+=r.h,this.$checkboxes.append(e);return this.$moveBlock.css("fill",this.prop("BackColor")),this.$textNode.css({"font-size":a+(u.a.isNumeric(a)?"pt":""),fill:this.prop("ForeColor"),"font-family":o}),this.applyFontStyles(this.$textNode),Object(m.a)(this.$back[0],"transform","translate(0, 0)"),Object(m.a)(this.$nestedG1[0],"transform","translate(0, "+p+")"),this.$g},fillPropsNET:function(){return h.default.fillPropsNET.apply(this,arguments),this.prop("ItemsText",Object(a.a)(this.prop("ItemsText"))),this},toXMLNET:function(t){var i=this;return new Promise(function(n){h.default.toXMLNET.call(i,t).then(function(t){t=u()(t);var e=Object(o.a)(i.prop("ItemsText").replace(/\n/g,"\r\n"));return e&&t.attr("ItemsText",e),n(t[0])})})}})},function(t,e,n){"use strict";var i,o,r,s,l,c,a,p;n.r(e),i=n(0),o=n.n(i),r=n(4),s=n(13),l=n(3),c=n(5),a=n(85),p=n(86),e.default=s.default.createObject(s.default,{title:"ComboBoxControl",info:"ComboBoxControl info",icon:"icon-119",pos:40,type:"ComboBoxControl",disabled:!1,_init:function(){s.default._init.apply(this,arguments),this.defaultValues={ForeColor:"#000",BackColor:"#FFF",DrawMode:"Normal",DropDownHeight:106,DropDownStyle:"DropDown",DropDownWidth:"121",ItemHeight:13,MaxDropDownItems:8,Sorted:!1,Enabled:!0,TabIndex:2,TabStop:!0,AutoFill:!0,AutoFilter:!0},this.attr({"Font.Name":r.a.get("default-font-name"),"Font.Size":"8pt","Font.Bold":!1,"Font.Italic":!1,"Font.Underline":!1,"Font.Strikeout":!1,resizableY:!1,resizableXY:!1}),this.prop({Name:"ComboBox",ItemsText:"",Text:"ComboBox",Width:121,Height:21})},showResizingComponents:function(){return s.default.showResizingComponents.call(this,!1)},render:function(){var t=this.attr("Font.Size"),e=this.attr("Font.Name"),n=this.prop("Text"),i=this.prop("Width"),r=this.prop("Height"),a=parseFloat(t,10);return s.default.render.apply(this,arguments),this.$contentGroup.children().length||(this.$nestedG1=o()(Object(l.a)("g")),this.$nestedG2=o()(Object(l.a)("g")),this.$textNode=o()(Object(l.a)("text")),this.$arrow=o()(Object(l.a)("text")),this.$nestedG2.append(this.$textNode),this.$nestedG1.append(this.$nestedG2),this.$textNode[0].setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.$arrow.text("▼"),this.$back=o()(Object(l.a)("rect",{stroke:"gray",x:0,y:0})),this.$contentGroup.append(this.$back,this.$nestedG1,this.$arrow)),this.$back.attr({width:i-2,height:r-2,fill:this.prop("BackColor")}),this.$textNode.text()!==n&&this.$textNode.text(n),this.$moveBlock.css("fill",this.prop("BackColor")),this.$textNode.css({"font-size":t+(o.a.isNumeric(t)?"pt":""),fill:this.prop("ForeColor"),"font-family":e}),this.applyFontStyles(this.$textNode),Object(c.a)(this.$back[0],"transform","translate(0, 0)"),Object(c.a)(this.$nestedG1[0],"transform","translate(2, "+(a+2)+")"),Object(c.a)(this.$arrow[0],"transform","translate("+(i-15)+", 12)"),this.$g},fillPropsNET:function(){return s.default.fillPropsNET.apply(this,arguments),this.prop("ItemsText",Object(a.a)(this.prop("ItemsText"))),this},toXMLNET:function(t){var r=this;return new Promise(function(i){s.default.toXMLNET.call(r,t).then(function(t){var e=o()(t.xml),n=Object(p.a)(r.prop("ItemsText").replace(/\n/g,"\r\n"));return n&&e.attr("ItemsText",n),i(t)})})}})},function(t,e,n){"use strict";var i,r,a,o,s,l;n.r(e),i=n(0),r=n.n(i),a=n(4),o=n(13),s=n(3),l=n(5),e.default=o.default.createObject(o.default,{title:"LabelControl",info:"LabelControl info",icon:"icon-112",pos:50,type:"LabelControl",disabled:!1,_init:function(){o.default._init.apply(this,arguments),this.defaultValues={ForeColor:"#000",BackColor:"#F0F0F0",TextAlign:"TopLeft",Enabled:!0,AutoSize:!0,TabStop:!1,TabIndex:2,RightToLeft:"No"},this.prop({Name:"Label",Width:32,Height:13,Text:"Label"}),this.attr({"Font.Name":a.a.get("default-font-name"),"Font.Size":"8pt","Font.Bold":!1,"Font.Italic":!1,"Font.Underline":!1,"Font.Strikeout":!1,resizableX:!1,resizableY:!1,resizableXY:!1})},resizingComponents:function(){},render:function(){var t=this.attr("Font.Size"),e=this.attr("Font.Name"),n=this.prop("Text"),i=this.prop("Height")/2+parseFloat(t,10)/3;return o.default.render.apply(this,arguments),this.$contentGroup.children().length||(this.$nestedG1=r()(Object(s.a)("g")),this.$nestedG2=r()(Object(s.a)("g")),this.$textNode=r()(Object(s.a)("text")),this.$nestedG2.append(this.$textNode),this.$nestedG1.append(this.$nestedG2),this.$contentGroup.append(this.$nestedG1)),n!==this.$textNode.text()&&this.$textNode.text(n),this.$moveBlock.css("fill",this.prop("BackColor")),this.$textNode.css({"font-size":t+(r.a.isNumeric(t)?"pt":""),fill:this.prop("ForeColor"),"font-family":e}),this.applyFontStyles(this.$textNode),Object(l.a)(this.$nestedG1[0],"transform","translate(0, "+i+")"),this.$g}})},function(t,e,n){"use strict";var i,p,r,d,u,h,a,o,f;n.r(e),i=n(0),p=n.n(i),r=n(4),d=n(13),u=n(3),h=n(5),a=n(85),o=n(86),f=n(75),e.default=d.default.createObject(d.default,{title:"ListBoxControl",info:"ListBoxControl info",icon:"icon-118",pos:60,type:"ListBoxControl",disabled:!1,_init:function(){d.default._init.apply(this,arguments),this.defaultValues={ForeColor:"#000",BackColor:"#FFF",ColumnWidth:0,DrawMode:"Normal",ItemHeight:13,MultiColumn:!1,SelectionMode:"One",Sorted:!1,UseTabStops:!0,Enabled:!0,TabIndex:2,TabStop:!0,AutoFill:!0,AutoFilter:!0},this.attr({"Font.Name":r.a.get("default-font-name"),"Font.Size":"8pt","Font.Bold":!1,"Font.Italic":!1,"Font.Underline":!1,"Font.Strikeout":!1}),this.prop({Name:"ListBox",ItemsText:"",Width:120,Height:96})},render:function(){var t,e,n,i,r=this.attr("Font.Size"),a=this.attr("Font.Name"),o=this.prop("ItemsText"),s=this.prop("Width"),l=this.prop("Height"),c=parseFloat(r,10);for(d.default.render.apply(this,arguments),this.$contentGroup.children().length||(this.$nestedG1=p()(Object(u.a)("g")),this.$nestedG2=p()(Object(u.a)("g")),this.$textNode=p()(Object(u.a)("text")),this.$nestedG2.append(this.$textNode),this.$nestedG1.append(this.$nestedG2),this.$textNode[0].setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.$back=p()(Object(u.a)("rect",{stroke:"gray",x:0,y:0})),this.$contentGroup.append(this.$back,this.$nestedG1)),this.$back.attr({width:s-2,height:l-2,fill:this.prop("BackColor")}),this.$textNode.empty(),i=Object(f.a)(o,{"font-size":r,"font-family":a,"font-weight":r}),e=0,n=(o=o.split(/\n\r|\n|\r/g)).length;e<n;e+=1)(t=p()(Object(u.a)("tspan"))).text(o[e]||" "),0<e&&Object(h.a)(t[0],{x:0,dy:i.h}),this.$textNode.append(t);return this.$moveBlock.css("fill",this.prop("BackColor")),this.$textNode.css({"font-size":r+(p.a.isNumeric(r)?"pt":""),fill:this.prop("ForeColor"),"font-family":a}),this.applyFontStyles(this.$textNode),Object(h.a)(this.$back[0],"transform","translate(0, 0)"),Object(h.a)(this.$nestedG1[0],"transform","translate(0, "+c+")"),this.$g},fillPropsNET:function(){return d.default.fillPropsNET.apply(this,arguments),this.prop("ItemsText",Object(a.a)(this.prop("ItemsText"))),this},toXMLNET:function(t){var r=this;return new Promise(function(i){d.default.toXMLNET.call(r,t).then(function(t){var e=p()(t.xml),n=Object(o.a)(r.prop("ItemsText").replace(/\n/g,"\r\n"));return n&&e.attr("ItemsText",n),i(t)})})}})},function(t,e,n){"use strict";var i,s,r,l,c,a,o;n.r(e),i=n(0),s=n.n(i),r=n(4),l=n(13),c=n(70),a=n(3),o=n(5),e.default=l.default.createObject(l.default,{title:"MonthCalendarControl",info:"MonthCalendarControl info",icon:"icon-145",pos:65,type:"MonthCalendarControl",disabled:!1,_init:function(){l.default._init.apply(this,arguments),this.defaultValues={BackColor:"#FFF",ForeColor:"#000",ShowToday:!0,ShowTodayCircle:!0,ShowWeekNumbers:!1,RightToLeft:"No",FirstDayOfWeek:"Default",Enabled:!0,TabIndex:3,TabStop:!0,Visible:!0,AutoFill:!0,AutoFilter:!0,FilterOperation:"Equal",CalendarDimensions:"1; 1",MaxSelectionCount:7},this.attr({"Font.Name":r.a.get("default-font-name"),"Font.Size":"8pt","Font.Bold":!1,"Font.Italic":!1,"Font.Underline":!1,"Font.Strikeout":!1,resizableX:!1,resizableY:!1,resizableXY:!1}),this.prop({Name:"MonthCalendar",Text:"MonthCalendar",MaxDate:new Date("12.31.9998"),MinDate:new Date("01.01.1753"),TodayDate:new Date,Width:164,Height:162})},resizingComponents:function(){},render:function(){var t=this.prop("Width"),e=this.prop("Height");return l.default.render.apply(this,arguments),this.$contentGroup.children().length||(this.$back=s()(Object(a.a)("rect",{stroke:"gray",x:0,y:0})),this.$contentGroup.append(this.$back)),this.$back.attr({width:t-2,height:e-2,fill:this.prop("BackColor")}),this.$moveBlock.css("fill",this.prop("BackColor")),Object(o.a)(this.$back[0],"transform","translate(0, 0)"),this.$g},fillPropsNET:function(){var t,e,n;return l.default.fillPropsNET.apply(this,arguments),t=this.prop("TodayDate"),e=this.prop("MaxDate"),n=this.prop("MinDate"),t&&this.prop("TodayDate",new Date(t)),e&&this.prop("MaxDate",new Date(e)),n&&this.prop("MinDate",new Date(n)),this},toXMLNET:function(t){var o=this;return new Promise(function(a){l.default.toXMLNET.call(o,t).then(function(t){var e,n,i=s()(t.xml),r=o.prop("TodayDate");return r&&i.attr("TodayDate",c.default.format(r,"-")),(e=o.prop("MinDate"))&&i.attr("MinDate",c.default.format(e,"-")),(n=o.prop("MaxDate"))&&i.attr("MaxDate",c.default.format(n,"-")),a(t)})})}})},function(t,e,n){"use strict";var i,s,r,l,c,p;n.r(e),i=n(0),s=n.n(i),r=n(4),l=n(13),c=n(3),p=n(5),e.default=l.default.createObject(l.default,{title:"RadioButtonControl",info:"RadioButtonControl info",icon:"icon-117",pos:70,type:"RadioButtonControl",disabled:!1,_init:function(){l.default._init.apply(this,arguments),this.defaultValues={ForeColor:"#000",BackColor:"#F0F0F0",CheckAlign:"MiddleLeft",Checked:!1,ImageAlign:"MiddleCenter",TextAlign:"MiddleLeft",TextImageRelation:"Overlay",Enabled:!0,AutoSize:!0,TabIndex:2,TabStop:!1,RightToLeft:"No",AutoFilter:!0,FilterOpeartion:"Equal",DetailControl:"None"},this.prop({Name:"RadioButton",Width:84,Height:17,Text:"RadioButton"}),this.attr({radioCX:15,radioCY:7,r:7,"Font.Name":r.a.get("default-font-name"),"Font.Size":"8pt","Font.Bold":!1,"Font.Italic":!1,"Font.Underline":!1,"Font.Strikeout":!1,resizableX:!1,resizableY:!1,resizableXY:!1})},resizingComponents:function(){},render:function(){var t=this.attr("Font.Size"),e=this.attr("Font.Name"),n=this.attr("radioCX"),i=this.attr("radioCY"),r=this.attr("r"),a=this.prop("Text"),o=this.prop("Height")/2+parseFloat(t,10)/3;return l.default.render.apply(this,arguments),this.$contentGroup.children().length||(this.$nestedG1=s()(Object(c.a)("g")),this.$nestedG2=s()(Object(c.a)("g")),this.$textNode=s()(Object(c.a)("text")),this.$nestedG2.append(this.$textNode),this.$nestedG1.append(this.$nestedG2),this.$radio=s()(Object(c.a)("g")),this.$radioCirc=s()(Object(c.a)("circle",{cx:n,cy:i,r:r,fill:"#fff",stroke:"gray"})),this.$radioDot=s()(Object(c.a)("text")),this.$radio.append(this.$radioCirc,this.$radioDot),this.$contentGroup.append(this.$radio,this.$nestedG1)),a!==this.$textNode.text()&&this.$textNode.text(a),this.prop("Checked")?(this.$radioDot.text("●"),this.$radioDot.attr({x:12,y:10})):this.$radioDot.text(""),this.$moveBlock.css("fill",this.prop("BackColor")),this.$textNode.css({"font-size":t+(s.a.isNumeric(t)?"pt":""),fill:this.prop("ForeColor"),"font-family":e}),this.applyFontStyles(this.$textNode),Object(p.a)(this.$radio[0],"transform","translate(0, 0)"),Object(p.a)(this.$nestedG1[0],"transform","translate("+(0+1.7*n)+", "+o+")"),this.$g}})},function(t,e,n){"use strict";var i,s,r,l,c,p;n.r(e),i=n(0),s=n.n(i),r=n(4),l=n(13),c=n(3),p=n(5),e.default=l.default.createObject(l.default,{title:"TextBoxControl",info:"TextBoxControl info",icon:"icon-113",pos:80,type:"TextBoxControl",disabled:!1,_init:function(){l.default._init.apply(this,arguments),this.defaultValues={ForeColor:"#000",BackColor:"#fff",TextAlign:"Left",AcceptsReturn:!1,AcceptsTab:!1,CharacterCasing:"Normal",Enabled:!0,MaxLength:32767,Multiline:!1,AutoSize:!0,TabStop:!0,RightToLeft:"No",AutoFill:!0,AutoFilter:!0,FilterOpeartion:"Equal",DetailControl:"None"},this.attr({"text-anchor":"start",mulFHeight:20,mulTHeight:20,"Font.Name":r.a.get("default-font-name"),"Font.Size":"8pt","Font.Bold":!1,"Font.Italic":!1,"Font.Underline":!1,"Font.Strikeout":!1,resizableXY:!1,resizableY:!1}),this.prop({Name:"TextBox",Text:"TextBox",Width:100,Height:this.attr("mulFHeight")})},getHorzAlign:function(){var t,e=this.prop("TextAlign"),n=this.prop("Width");return"Center"===e?(t=n/2,this.attr("text-anchor","middle")):"Left"===e?(t=0,this.attr("text-anchor","start")):"Right"===e&&(t=n,this.attr("text-anchor","end")),parseInt(t,10)},showResizingComponents:function(){return l.default.showResizingComponents.call(this,!1)},render:function(){var t=this.attr("Font.Size"),e=this.attr("Font.Name"),n=this.prop("Text"),i=this.prop("Width"),r=this.prop("Height"),a=this.getHorzAlign(),o=parseFloat(t,10);return l.default.render.apply(this,arguments),this.$contentGroup.children().length||(this.$nestedG1=s()(Object(c.a)("g")),this.$nestedG2=s()(Object(c.a)("g")),this.$textNode=s()(Object(c.a)("text")),this.$nestedG2.append(this.$textNode),this.$nestedG1.append(this.$nestedG2),this.$back=s()(Object(c.a)("rect",{stroke:"gray",x:0,y:0})),this.$contentGroup.append(this.$back,this.$nestedG1)),this.prop("Multiline")&&this.attr("mulTHeight",r),this.$back.attr({width:i-2,height:r-2,fill:this.prop("BackColor")}),n!==this.$textNode.text()&&this.$textNode.text(n),this.$moveBlock.css("fill",this.prop("BackColor")),this.$textNode.css({"font-size":t+(s.a.isNumeric(t)?"pt":""),fill:this.prop("ForeColor"),"font-family":e,"text-anchor":this.attr("text-anchor")}),this.applyFontStyles(this.$textNode),Object(p.a)(this.$back[0],"transform","translate(0, 0)"),Object(p.a)(this.$nestedG1[0],"transform","translate("+a+", "+(o+2)+")"),this.$g}})},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(3);e.a=function(t){return(t=t||{}).class="illusion fr-hidden",r()(Object(a.a)("line",t))}},function(t,e,n){"use strict";function i(t,e){return Math.atan2(e,t)*(180/Math.PI)}var r,p,l,a,d,u,c;n.r(e),r=n(0),p=n.n(r),l=n(4),a=n(7),d=n(3),u=n(5),c=n(59),e.default=a.default.createObject(a.default,{title:"Objects Shapes Line",info:"LineObjectInfo",icon:"icon-105",pos:40,type:"LineObject",disabled:!1,tips:{Normal:{label:"Normal",render:function(){return null}},Arrow:{label:"Arrow",render:function(t,e,n,i){n=2*(n||10);var r=p()(Object(d.a)("g",{transform:"translate("+t+","+e+")"})),a=p()(Object(d.a)("g")),o=p()(Object(d.a)("line")),s=p()(Object(d.a)("line")),l={x1:0,y1:0,x2:n,y2:0};return o.attr(l),l.x2=0,l.y2=n,s.attr(l),o.css({"stroke-width":this.prop("Border.Width"),stroke:this.prop("Border.Color")}),s.css({"stroke-width":this.prop("Border.Width"),stroke:this.prop("Border.Color")}),a.append(o),a.append(s),Object(u.a)(a[0],"transform","rotate("+i+")"),r.append(a),r}},Circle:{label:"Circle",render:function(t,e,n,i){var r=p()(Object(d.a)("g",{transform:"translate("+t+","+e+")"})),a=p()(Object(d.a)("g")),o=p()(Object(d.a)("ellipse",{cx:n/2,cy:n/2,rx:n,ry:n}));return o.css({fill:this.attr("fill_tip"),stroke:this.prop("Border.Color"),"stroke-width":this.prop("Border.Width")}),a.append(o),Object(u.a)(a[0],"transform","rotate("+i+")"),r.append(a),r}},Square:{label:"Square",render:function(t,e,n,i){n=3*(n||10);var r=p()(Object(d.a)("g",{transform:"translate("+t+","+e+")"})),a=p()(Object(d.a)("g")),o=n/2-18,s=n/2-18,l=n-16,c=p()(Object(d.a)("polygon",{points:o+", -20 -20, "+s+" "+o+", "+l+" "+l+", "+s}));return c.css({fill:this.attr("fill_tip"),stroke:this.prop("Border.Color"),"stroke-width":this.prop("Border.Width")}),a.append(c),Object(u.a)(a[0],"transform","rotate("+i+")"),r.append(a),r}},Diamond:{label:"Diamond",render:function(t,e,n,i){var r=p()(Object(d.a)("g",{transform:"translate("+t+","+e+")"})),a=p()(Object(d.a)("g")),o=p()(Object(d.a)("polygon",{points:"25,10 0,0 10,25 32,32"}));return o.css({fill:this.attr("fill_tip"),stroke:this.prop("Border.Color"),"stroke-width":this.prop("Border.Width")}),a.append(o),Object(u.a)(a[0],"transform","rotate("+i+")"),r.append(a),r}}},_init:function(){a.default._init.apply(this,arguments),this.defaultValues={"EndCap.Style":"None","EndCap.Height":8,"EndCap.Width":8,"StartCap.Style":"None","StartCap.Height":8,"StartCap.Width":8,Diagonal:!1,"Border.Width":1,"Border.Color":"#000000"},this.prop({Name:"Line",Width:0,Height:0}),this.attr({dasharray:"",fill_tip:"#ffffff",defaultValueWidth:100})},resizingComponents:function(){var t,e,n=l.a.get("circleButtonWidth"),i=l.a.get("circleButtonHeight"),r=this.prop("Width")-n,a=this.prop("Height")-i,o=r,s=a;return this.$resizing||(t=Object(d.a)("use"),e=p()(Object(d.a)("rect",{class:"se-resize"})),this.$resizing=p()(),this.$resizing.push(null,null,p()(Object(d.a)("g",{class:"resizing-line fr-hidden"}))),Object(c.a)(t,"xlink:href","#d-button-circle"),e.css("fill","transparent"),e.attr({width:2*n,height:2*i}),this.$resizing[2].append(t,e),this.$controlElements.append(this.$resizing[2])),this.prop("Diagonal")||(a<r?s=0:o=0),Object(u.a)(this.$resizing[2][0],"transform","translate("+o+","+s+")"),this},addStartCap:function(t){var e;this.prop("StartCap.Style")&&this.tips[this.prop("StartCap.Style")]&&(e=this.tips[this.prop("StartCap.Style")].render.call(this,t.x1,t.y1,this.prop("StartCap.Height"),i(t.x2-t.x1,t.y2-t.y1)-45))&&this.$lineContainer.append(e)},addEndCap:function(t){var e;this.prop("EndCap.Style")&&this.tips[this.prop("EndCap.Style")]&&(e=this.tips[this.prop("EndCap.Style")].render.call(this,t.x2,t.y2,this.prop("EndCap.Height"),i(t.x2-t.x1,t.y2-t.y1)+135))&&this.$lineContainer.append(e)},setPosition:function(){return a.default.setPosition.apply(this,arguments),this.attr("isHorizontal")?(this.attr("bottom",this.prop("Top")+this.prop("Border.Width")),this.attr("right",this.prop("Left")+this.prop("Width"))):this.attr("isVertical")&&(this.attr("bottom",this.prop("Top")+this.prop("Height")),this.attr("right",this.prop("Left")+this.prop("Border.Width"))),this},render:function(){return 0===this.prop("Width")&&0===this.prop("Height")&&this.prop("Width",this.attr("defaultValueWidth")),a.default.renderContainer.apply(this,arguments),this.$content=p()(Object(d.a)("g",{class:"move"})),this.$body.html(this.$content),this.$moveBlock=p()(Object(d.a)("line")),this.$content.prepend(this.$moveBlock),this.$lineContainer=p()(Object(d.a)("g")),this.$content.prepend(this.$lineContainer),Object(u.a)(this.$lineContainer[0],{transform:"translate(0, 0)"}),this.render=function(){var t=this.prop("Width"),e=this.prop("Height"),n={};return n.style=l.a.get("dasharrays")[this.prop("Border.Style")],this.$lineContainer.empty(),this.$workspace=p()(Object(d.a)("rect")),this.$line=this.$line||p()(Object(d.a)("line")),this.$moveBlock.css({"stroke-width":+this.prop("Border.Width")+l.a.get("lineMovingScope"),stroke:"transparent"}),this.$line.css({"stroke-dasharray":n.style,"stroke-width":this.prop("Border.Width"),stroke:this.prop("Border.Color")}),this.$lineContainer.append(this.$workspace,this.$line),this.attr("bottom",this.prop("Top")),this.prop("Diagonal")?(n={x1:0,y1:0,x2:t,y2:e},0<e&&this.attr("bottom",this.attr("bottom")+e),this.attr("isVertical",!1),this.attr("isHorizontal",!1)):e<t?(n={x1:0,y1:0,x2:t,y2:0},this.attr("isHorizontal",!0),this.attr("isVertical",!1)):(n={x1:0,y1:0,x2:0,y2:e},this.attr("isVertical",!0),this.attr("isHorizontal",!1)),Object(u.a)(this.$line[0],n),Object(u.a)(this.$moveBlock[0],n),this.addEndCap(n),this.addStartCap(n),this.resizingComponents(),this.setPosition(),this.$g},this.render()},resizingEnd:function(){a.default.resizingEnd.apply(this,arguments),this.prop("Diagonal")||this.prop(this.attr("isHorizontal")?"Height":"Width",0)},toXMLNET:function(t){var i=this;return new Promise(function(n){a.default.toXMLNET.call(i,t).then(function(t){var e=p()(t.xml);return i.prop("Border.Color")&&e.attr("Border.Color",i.prop("Border.Color")),i.prop("Border.Width")&&e.attr("Border.Width",i.prop("Border.Width")),i.prop("Border.Style")&&e.attr("Border.Style",i.prop("Border.Style")),n(t)})})}})},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(12);e.a=a.a.createObject(null,{icon:"icon-215",type:"TableColumn",_init:function(){this.prop("Name","Column"),this.prop({Name:this.formName(),MaxWidth:500,MinWidth:0,Width:66})},create:function(t){var e=this.createObject(this);return e.parent=t,e._init(),e},_getInx:function(){return this.getTable().columns.indexOf(this)},getTable:function(){return this.parent.matrix||this.parent},activate:function(){var n=this._getInx();return this.getTable()._eachRow(function(t,e){return e.cells[n].activate()}),a.a.activate.call(this),this},deactivate:function(){var n=this._getInx();return this.getTable()._eachRow(function(t,e){return e.cells[n].deactivate()}),this},toXMLNET:function(e){var i=this;return new Promise(function(t){var n=r()(e.parentNode.ownerDocument.createElement(i.type));i.eachProp(function(t,e){return n.attr(t,e)}),t({xml:n[0]})})}})},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(12);e.a=a.a.createObject(a.a,{icon:"icon-216",type:"TableRow",_init:function(){this.cells=[],this.prop("Name","Row"),this.prop({Name:this.formName(),MaxHeight:500,MinHeight:0,Height:18})},create:function(t){var e=this.createObject(this);return e.parent=t,e._init(),e},getTable:function(){return this.parent.matrix||this.parent},_getInx:function(){return this.getTable().rows.indexOf(this)},activate:function(){var e=this._getInx();return this.getTable()._eachColumn(function(t){this.rows[e].cells[t].activate()}),a.a.activate.call(this),this},deactivate:function(){var e=this._getInx();return this.getTable()._eachColumn(function(t){this.rows[e].cells[t].deactivate()}),this},toXMLNET:function(e){var i=this;return new Promise(function(t){var n=r()(e.parentNode.ownerDocument.createElement(i.type));i.eachProp(function(t,e){return n.attr(t,e)}),t({xml:n[0]})})}})},function(t,e,n){"use strict";e.a=function(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")}},,,,,,function(t,e,n){"use strict";function i(t){var e=(+t).toString(16);return 1===e.length?"0"+e:e}e.a=function(t,e,n){return"#"+i(t)+i(e)+i(n)}},function(t,e,n){"use strict";function i(){}var a=n(12),r=n(29);i.prototype.add=function(t){var i=this,r=this._callbacks||(this._callbacks=[]);return r.push(t),t.active=function(){var t,e,n;for(e=0,n=r.length;e<n;e+=1)this===r[e]?t=this:r[e].deactivate();return t&&(t.activate(),a.a.activate.apply(t,arguments),i.current=t),this},t},i.prototype.remove=function(t){Object(r.a)(this._callbacks,t)},i.prototype.clear=function(){return this._callbacks?this._callbacks.length=0:this._callbacks=[],this},i.prototype.all=function(){return this._callbacks||[]},e.a=i},function(t,e,o){"use strict";function n(e){o.e(16).then(o.bind(null,591)).then(function(t){return t.create(e)})}var i,r,s,l;o.r(e),i=o(11),r=o(2),s=o(1),l=o(15),e.default=i.default.createObject(i.default,{title:"Bands GroupHeader",info:"GroupHeaderBandInfo",icon:"icon-163",pos:100,type:"GroupHeaderBand",disabled:!1,_init:function(){i.default._init.call(this),this.defaultValues={KeepTogether:!1,KeepWithData:!1},this.prop("Name","GroupHeader"),this.attr("pos",35)},getFillTitleColor:function(){return"#01DF3A"},canHaveChildren:function(t){var e=t.type||t;return i.default.canHaveChildren.apply(this,arguments)||["DataBand","DataHeaderBand","DataFooterBand","GroupHeaderBand","GroupFooterBand"].includes(e)},canBeAdded:function(){return!0},canBeSorted:function(){return!0},applyRule:function(){var t,e=["GroupHeaderBand","DataBand"],n=this._parent,i=void 0,r=void 0,a=void 0;return"DataBand"===n.type?n=(i=n)._parent:(n.isPage()&&(e=["DataBand"]),(i=n.bands.all(e)[0])?a=i.collection.entities.indexOf(i):(i=(i=o.c[94])&&(i=i.exports.default).create(),r=!0)),t=(t=o.c[190])&&(t=t.exports.default).create(),n.addBand(this,a),i&&(this.addBand(i),l.a.push({context:s.a,undo:function(t,e,n){this.trigger("remove-band",n),r||(t.addBand(e),this.trigger("render-band",e)),t.updateExts()},redo:function(t,e,n){this.trigger("remove-band",e),n.addBand(e),t.addBand(n),this.trigger("render-band",n),this.trigger("render-band",e),t.updateExts()},data:[n,i,this]})),t&&this.addBand(t),!0},dblclick:function(){return n(this)},getContextMenuItems:function(){function t(t){e.onChangeCM(t),e._updateProperties()}var e=this;return[{name:r.a.tr("ComponentMenu Edit"),type:"default",closeAfter:!0,onClick:function(){return s.a.trigger("activate",e),n(e)}},{name:r.a.tr("Band AddChildBand"),type:"default",closeAfter:!0,disabled:!!e.has("ChildBand"),onClick:function(){s.a.trigger("add-band","ChildBand",e)}},{name:r.a.tr("ComponentMenu Hyperlink"),type:"default",closeAfter:!0,onClick:function(){s.a.trigger("hyperlink-editor",e)}},{type:"separator"},{name:r.a.tr("ComponentMenu CanGrow"),type:"checkbox",curVal:e.prop("CanGrow"),prop:"CanGrow",onChange:t},{name:r.a.tr("ComponentMenu CanShrink"),type:"checkbox",curVal:e.prop("CanShrink"),prop:"CanShrink",onChange:t},{name:r.a.tr("ComponentMenu CanBreak"),type:"checkbox",curVal:e.prop("CanBreak"),prop:"CanBreak",onChange:t},{type:"separator"},{name:r.a.tr("ComponentMenu KeepWithData"),type:"checkbox",curVal:e.prop("KeepWithData"),prop:"KeepWithData",onChange:t},{name:r.a.tr("ComponentMenu RepeatOnEveryPage"),type:"checkbox",curVal:e.prop("RepeatOnEveryPage"),prop:"RepeatOnEveryPage",onChange:t},{name:r.a.tr("ComponentMenu KeepTogether"),type:"checkbox",curVal:e.prop("KeepTogether"),prop:"KeepTogether",onChange:t},{name:r.a.tr("ComponentMenu ResetPageNumber"),type:"checkbox",curVal:e.prop("ResetPageNumber"),prop:"ResetPageNumber",onChange:t},{name:r.a.tr("Band StartNewPage"),type:"checkbox",curVal:e.prop("StartNewPage"),prop:"StartNewPage",onChange:t},{name:r.a.tr("ComponentMenu PrintOnBottom"),type:"checkbox",curVal:e.prop("PrintOnBottom"),prop:"PrintOnBottom",onChange:t},{type:"separator"},{name:r.a.tr("Menu Edit Paste"),type:"default",disabled:!window.DSG.currentReport.getCurrentPage().buffer.length,closeAfter:!0,shortcut:"Ctrl + V",onClick:function(){setTimeout(function(){s.a.trigger("paste")},100)}},{name:r.a.tr("Menu Edit Delete"),type:"default",disabled:!e.canBeRemoved(),closeAfter:!0,shortcut:"Del",onClick:function(){s.a.trigger("remove",e)}}]},toString:function(){return this.prop("Condition")?this.prop("Name")+": "+this.prop("Condition"):this.prop("Name")}})},function(t,e,n){"use strict";n.r(e);var i=n(11);e.default=i.default.createObject(i.default,{title:"Bands Child",info:"ChildBandInfo",icon:"icon-165",pos:120,type:"ChildBand",disabled:!1,_init:function(){i.default._init.call(this),this.defaultValues={CompleteToNRows:0,FillUnusedSpace:!1},this.prop("Name","Child"),this.attr("pos",32)},getFillTitleColor:function(){return this._parent&&this._parent.getFillTitleColor()}})},function(t,e,n){"use strict";var i,r,a,o,s,l;n.r(e),i=n(0),r=n.n(i),a=n(4),o=n(7),s=n(3),l=n(5),e.default=o.default.createObject(o.default,{title:"Objects Shapes",info:"ShapeObjectInfo",icon:"icon-108",pos:30,groupType:"Shapes",type:"ShapeObject",disabled:!1,figures:{Rectangle:{label:"rectangle",render:function(t,e){return r()(Object(s.a)("rect",{width:t,height:e}))}},RoundRectangle:{label:"round rectangle",render:function(t,e){return r()(Object(s.a)("rect",{width:t,height:e,rx:10,ry:10}))}},Ellipse:{label:"ellipse",render:function(t,e){var n=t/2,i=e/2;return r()(Object(s.a)("ellipse",{cx:n,cy:i,rx:n,ry:i}))}},Triangle:{label:"triangle",render:function(t,e){return r()(Object(s.a)("polygon",{points:t/2+", 0 0, "+e+" "+t+", "+e}))}},Diamond:{label:"diamond",render:function(t,e){var n=t/2,i=e/2;return r()(Object(s.a)("polygon",{points:n+",0 0,"+i+" "+n+","+e+" "+t+","+i}))}}},_init:function(){o.default._init.apply(this,arguments),this.defaultValues={Curve:0},this.prop({Name:"Shape",Width:94.5,Height:18.9,Shape:"Rectangle","Fill.Color":"transparent","Border.Lines":"All"})},appendBorders:function(){},appendPadding:function(){},canHaveProp:function(t){return"Appearance:Border"!==t&&o.default.canHaveProp.apply(this,arguments)},render:function(){var t,e=this.prop("Border.Width")||0,n=this.prop("Width")-e,i=this.prop("Height")-e;return o.default.render.apply(this,arguments),this.$shape||(this.$shape=r()(Object(s.a)("g"))),this.$shape.empty(),(t=this.figures[this.prop("Shape")].render.call(this,n<0?0:n,i<0?0:i)).css({fill:this.prop("Fill.Color"),stroke:this.prop("Border.Color"),"stroke-width":e,"stroke-dasharray":a.a.get("dasharrays")[this.prop("Border.Style")]}),Object(l.a)(this.$shape[0],"transform","translate("+e/2+","+e/2+")"),this.$shape.append(t),this.$contentGroup.append(this.$shape),this.$moveBlock.css("fill","transparent"),this.$g},toXMLNET:function(t){var n=this;return new Promise(function(e){o.default.toXMLNET.call(n,t).then(function(t){return r()(t.xml).removeAttr("Border.Lines"),e(t)})})}})},function(t,e,n){"use strict";var i,r,a,o,s,l,c,p,d;n.r(e),n.d(e,"SHAPES",function(){return d}),i=n(0),r=n.n(i),a=n(7),o=n(47),s=n(16),l=n(50),c=n(196),d={POLYGON:"Polygon",PENTAGON:"Pentagon",HEXAGON:"Hexagon",SEPTAGON:"Septagon",OCTAGON:"Octagon"},e.default=o.default.createObject(o.default,{title:"Objects PolygonObject",info:"PolygonObjectInfo",icon:"icon-108",pos:30,type:"PolygonObject",groupType:"Shapes",disabled:!1,figures:(p={},p[d.POLYGON]={label:"polygon",render:function(){this.pointsArray=[o.INITIAL_POINT]}},p[d.PENTAGON]={label:"pentagon",render:function(t,e){var n=t/2,i=e/2;this.numberOfEdges=5,this.makePolygon(n,i)}},p[d.HEXAGON]={label:"hexagon",render:function(t,e){var n=t/2,i=e/2;this.numberOfEdges=6,this.makePolygon(n,i)}},p[d.SEPTAGON]={label:"septagon",render:function(t,e){var n=t/2,i=e/2;this.numberOfEdges=7,this.makePolygon(n,i)}},p[d.OCTAGON]={label:"octagon",render:function(t,e){var n=t/2,i=e/2;this.numberOfEdges=8,this.makePolygon(n,i)}},p),makePolygon:function(t,e){this.prop("CenterX",0),this.prop("CenterY",0),this.pointsArray=[];for(var n=0;n<this.numberOfEdges;n++)this.pointsArray[n]=t+t*Math.cos(2*Math.PI*n/this.numberOfEdges)+"/"+(e+e*Math.sin(2*Math.PI*n/this.numberOfEdges))},_init:function(){o.default._init.apply(this,arguments),this._adjust=!0,this.prop({Name:"Polygon",Width:20,Height:20,Shape:d.POLYGON,"Fill.Color":"transparent","Border.Lines":"All"}),this.lastShape=d.POLYGON},appendBorders:function(){},appendPadding:function(){},canHaveProp:function(t){return"Appearance:Border"!==t&&a.default.canHaveProp.apply(this,arguments)},getAvailablePoints:function(){var t=[],e=this.getNearPoints();return(e.selectedNext||e.selectedPrev)&&(e.selectedNext.point&&t.push(e.selectedNext),e.selectedPrev.point&&t.push(e.selectedPrev)),t},processPoints:function(){var t,e,n=[],i=this.pointsArray[0],r=new c.a(i),a=void 0,o=void 0;for(a=r.getPseudo(),o=r.getMain(),o=l.a.create(o,null,{rightClick:this.rightClick.bind(this),parent:this,activate:this.activatedPoint.bind(this)}),n.push(o),t=1;t<this.pointsArray.length;t++)i=this.pointsArray[t],n.push(l.a.create(i,n[n.length-1],{rightClick:this.rightClick.bind(this),parent:this,activate:this.activatedPoint.bind(this)}));e=n[n.length-1],a=l.a.create(a,e,{rightClick:this.rightClick.bind(this),parent:this,activate:this.activatedPoint.bind(this),pseudo:!0}),o.prev=a,o.pseudoPoint=a,o.pseudoPoint.next=o,n.push(a),this.points=n,this.eachPoint(function(t,e,n){t.prev=n||t.prev,t.next=e||t.next})},handleNoData:function(){var t=this.prop("Shape");t&&this.figures[t]&&this.noData&&(this.figures[t].render.apply(this,[this.prop("Width"),this.prop("Height")]),t===d.POLYGON?s.b.setInstrument(s.a.NEW_POINT):s.b.setInstrument(s.a.MOVE),this.processPoints(),this.noData=!1)},render:function(){this.lastShape!==this.prop("Shape")&&(this.figures[this.prop("Shape")].render.apply(this,[this.prop("Width"),this.prop("Height")]),this.processPoints()),o.default.render.apply(this,arguments),this.lastShape!==this.prop("Shape")&&(this.showResizingComponents(),this.lastShape=this.prop("Shape"))},fillPropsNET:function(t){a.default.fillPropsNET.apply(this,arguments),this.numberOfEdges=t.attr("PolyPoints_v2").split("|").length,this.pointsArray=t.attr("PolyPoints_v2").split("|"),this.prop("Shape",Object.keys(this.figures)[this.numberOfEdges-5]),this.oldWidth=this.prop("Width")-(this.prop("Border.Width")||0),this.oldHeight=this.prop("Height")-(this.prop("Border.Width")||0),this.processPoints(),this.points.length&&(this.noData=!1)},toXMLNET:function(t){var n=this;return this.prop("PolyPoints_v2",this.serialize().join("|")),new Promise(function(e){a.default.toXMLNET.call(n,t).then(function(t){return r()(t.xml).removeAttr("Border.Lines"),e(t)})})}})},function(t,e,n){"use strict";var i,O,a,o,E,M,r;n.r(e),i=n(0),O=n.n(i),a=n(4),o=n(17),E=n(3),M=n(5),r=n(65),e.default=o.a.createObject(o.a,{title:"Objects Gauge Radial",info:"RadialGaugeInfo",icon:"icon-135",pos:130,type:"RadialGauge",groupType:"Gauge",types:{Circle:{label:"circle",render:function(t,e){var n=t/2,i=e/2,r=O()(Object(E.a)("ellipse"));return r.attr("cx",n),r.attr("cy",i),r.attr("rx",n),r.attr("ry",i),this.appendPointer(264,15.6,40,223,41,8),this.createScale(11,4,300,112,-113,18.89),r}},Semicircle:{label:"semicircle",render:function(t,e,n){var i=t/2,r=e/2,a=O()(Object(E.a)("path"));return a.attr("d","\n M"+(i+t/2)+" "+(r+e/22)+"\n A"+i+" "+r+" 0 0 0 "+(i-t/2)+" "+(r+e/22)+"\n L"+(i-t/2)+" "+(r+e/22*n)+"\n L"+(i+t/2)+" "+(r+e/22*n)+" Z\n\n "),this.appendPointer(180,15.6,40,182,-2,10),this.createScale(5,3,230,135,-135,28),a}},Quadrant:{label:"quadrant",render:function(t,e,n){var i=t/2,r=e/2,a=O()(Object(E.a)("path"));return a.attr("d","\n M"+(i+8*t/100/2*n)+" "+(r+8*e/100/2*n)+"\n L"+(t-t/2*2)+" "+(r+8*e/100/2*n)+"\n L"+(i-t/2)+" "+r+"\n A"+i+" "+r+" 0 0 1 "+i+" "+(e-e/2*2)+"\n L"+(i+8*t/100/2*n)+" "+(e-e/2*2)+" Z\n\n "),this.appendPointer(89,15.6,40,91,-2,8),this.createScale(3,3,136,136,-135,23),a}}},disabled:!1,_init:function(){o.a._init.apply(this,arguments),this.defaultValues={Maximum:100,Minimum:0,Value:10,Inverted:!1,Type:"Circle",SemicircleOffset:1,"Pointer.BorderColor":"#000","Pointer.Color":"#FFA500","Scale.MajorTicks.Color":"#000","Scale.MajorTicks.Width":2,"Scale.MinorTicks.Color":"#000","Scale.MinorTicks.Width":1},this.prop({Name:"RadialGauge",Width:200.36,Height:200.36}),this.attr({resizableX:!1,resizableY:!1,"Scale.Font.Name":a.a.get("default-font-name"),"Scale.Font.Size":"9pt","Scale.Font.Bold":!1,"Scale.Font.Italic":!1,"Scale.Font.Underline":!1,"Scale.Font.Strikeout":!1})},getRange:function(){return this.prop("Maximum")-this.prop("Minimum")},getPace:function(t){return this.getRange()/(t-1)},appendPointer:function(t,e,n,i,r,a){var o=void 0,s=void 0,l=this.prop("Width"),c=this.prop("Height"),p=this.prop("Value"),d=this.getRange(),u=(p-this.prop("Minimum"))*(t/d),h=(this.prop("Width")-this.prop("Border.Width"))/2,f=(this.prop("Height")-this.prop("Border.Width"))/2;return this.$pointer||(this.$pointerContainer=O()(Object(E.a)("g")),this.$pointer=O()(Object(E.a)("path")),this.$pointerEllipse=O()(Object(E.a)("ellipse"))),s=this.prop("Pointer.Width",l*e/100),o=this.prop("Pointer.Height",c*n/100),this.$pointerEllipse.attr("cx",h),this.$pointerEllipse.attr("cy",f),this.$pointerEllipse.attr("rx",.2*s),this.$pointerEllipse.attr("ry",.2*s),Object(M.a)(this.$pointer[0],"d","\n M"+(h-s/3)+" "+(f-o/20)+"\n L"+(s+a)+" "+f+"\n L"+(s+a)+" "+(f+o/24)+"\n L"+(h-s/3)+" "+(f+o/20)+" Z\n "),this.$pointer.css({stroke:this.prop("Pointer.BorderColor"),fill:this.prop("Pointer.Color")}),this.$pointerEllipse.css({stroke:this.prop("Pointer.BorderColor"),fill:this.prop("Pointer.Color")}),this.prop("Inverted")?Object(M.a)(this.$pointer[0],"transform","rotate("+(i-u)+", "+h+", "+f+")"):Object(M.a)(this.$pointer[0],"transform","rotate("+(u-r)+", "+h+", "+f+")"),this.$pointerContainer.append(this.$pointerEllipse),this.$pointerContainer.append(this.$pointer),this.$gauge.append(this.$pointerContainer),this.$pointer},createScale:function(t,e,n,i,r,a){var o,s=void 0,l=void 0,c=[],p=a,d=void 0,u=this.prop("Inverted")?this.prop("Minimum"):this.prop("Maximum"),h=this.prop("Width"),f=this.prop("Height"),g=(h-this.prop("Border.Width"))/2,m=(f-this.prop("Border.Width"))/2,b=g-p,v=~~(b/4),y=~~(b/8),C=Math.PI/180,S=b-v,x=b,P=S,w=b-y/2,T=w-y,k=this.getPace(t),B=f-2*a,$=B/(t-1);for(p+=B,this.$pacesCont&&!this.attr("isHorizontal")||(this.$pacesCont=O()(Object(E.a)("g")),c=[]),this.$pacesCont.empty(),this.$pacesCont.attr("transform","rotate("+i+", "+g+", "+m+")"),s=0;s<t;s+=1)if(c[s]||(c[s]={$self:O()(Object(E.a)("g")),$minorTicks:[],$majorTick:O()(Object(E.a)("line")),$paceText:O()(Object(E.a)("text"))},c[s].$self.append(c[s].$majorTick,c[s].$paceText),this.$pacesCont.append(c[s].$self)),c[s].$majorTick.css({"stroke-width":this.prop("Scale.MajorTicks.Width"),stroke:this.prop("Scale.MajorTicks.Color")}),o=(n/t-1)*(t-s),c[s].$majorTick.attr({x1:g+x*Math.cos(o*C),y1:m+x*Math.sin(o*C),x2:g+P*Math.cos(o*C),y2:m+P*Math.sin(o*C)}),c[s].$paceText.text(s===(t-1)/2?u:Math.round(u)),c[s].$paceText.css({"font-size":this.attr("Scale.Font.Size")+(O.a.isNumeric(this.attr("Scale.Font.Size"))?"pt":""),fill:"#000","font-family":this.attr("Scale.Font.Name"),"text-anchor":"middle"}),this.applyFontStyles(c[s].$paceText,"Scale."),p-=$,Object(M.a)(c[s].$paceText[0],"transform","translate("+(g+(g-.9*a)*Math.cos(o*C))+", "+(m+(g-.9*a)*Math.sin(o*C))+"),\n rotate("+r+")"),u=this.prop("Inverted")?Math.round(10*(u+k))/10:Math.round(10*(u-k))/10,0!==s)for(l=0,d=n/t/(e+1);l<e;l+=1)c[s].$minorTicks[l]||(c[s].$minorTicks[l]=O()(Object(E.a)("line")),c[s].$self.append(c[s].$minorTicks[l])),c[s].$minorTicks[l].css({"stroke-width":this.prop("Scale.MinorTicks.Width"),stroke:this.prop("Scale.MinorTicks.Color")}),c[s].$minorTicks[l].attr({x1:g+w*Math.cos((o+d)*C),y1:m+w*Math.sin((o+d)*C),x2:g+T*Math.cos((o+d)*C),y2:m+T*Math.sin((o+d)*C)}),d+=n/t/(e+1);this.$gauge.append(this.$pacesCont)},createEllipse:function(){},render:function(){var t=this.prop("Border.Width")||0,e=this.prop("SemicircleOffset"),n=this.prop("Height")-t,i=this.prop("Height")-t,r=void 0;return this.prop("Width",this.prop("Height")),o.a.render.apply(this,arguments),this.$gauge||(this.$gauge=O()(Object(E.a)("g"))),this.$gauge.empty(),this.attr("isVertical",!0),this.attr("isHorizontal",!1),(r=void 0!==this.types[this.prop("Type")]?this.types[this.prop("Type")].render.call(this,n<0?0:n,i<0?0:i,e<1?1:e):this.types.Circle.render.call(this,n<0?0:n,i<0?0:i,e<1?1:e)).css({fill:this.prop("Fill.Color"),stroke:this.prop("Border.Color"),"stroke-width":1,"stroke-dasharray":a.a.get("dasharrays")[this.prop("Border.Style")]}),this.$gauge.append(r),this.$contentGroup.append(this.$gauge),this.$g},fillPropsNET:function(t){return o.a.fillPropsNET.apply(this,arguments),this.fillFontNET(t,"Scale."),this},toXMLNET:function(t){var i=this;return new Promise(function(n){o.a.toXMLNET.call(i,t).then(function(t){var e=O()(t.xml);return Object(r.a)(e,i,"Scale."),n(t)})})}})},function(t,e,n){"use strict";e.a=function(t){var e=t.touches,n=t.changedTouches;return t.pageX=t.pageX||e&&e[0]&&e[0].pageX||n&&n[0].pageX||0,t.pageY=t.pageY||e&&e[0]&&e[0].pageY||n&&n[0].pageY||0,t}},,,,,,,,function(t,e,n){"use strict";var i=n(46);e.a=function(t){var e;return"string"!=typeof t||!Object(i.a)(t)&&!Object(i.a)(t.replace(",","."))||!(e=parseFloat(t.replace(",","."),10))&&0!==e?t:e}},function(t,e,n){"use strict";function r(){return a.a.get("customFontsUrl")?"custom":"google"}var a=n(4),i=n(202),o=n.n(i),s=n(22),l=new s.a("webfonts"),c={};e.a={load:function(n){return new Promise(function(e){var t;void 0===c[n]?o.a.load(((t={})[r()]={families:[n],urls:[a.a.get("customFontsUrl")+"?family="+n+"&report_id="+window.DSG.currentReport._id]},t.active=function(){c[n]=1,e(1)},t.timeout=1e3,t.fontinactive=function(t){c[n]=0,l.warn(t,"could not be loaded"),e(0)},t)):e(c[n])})},preload:function(){return new Promise(function(n){var t,i=a.a.get("preload-fonts");i&&i.length?o.a.load(((t={})[r()]={families:i},t.active=function(){for(var t=0,e=i.length;t<e;t+=1)c[i[t]]=1;n()},t.timeout=2e3,t.inactive=function(){n()},t.fontinactive=function(t){c[t]=0,l.warn(t,"could not be loaded")},t)):n()})},prefetch:function(){var t,n=a.a.get("prefetch-fonts");n&&n.length&&o.a.load(((t={})[r()]={families:n},t.active=function(){for(var t=0,e=n.length;t<e;t+=1)c[n[t]]=1},t.fontinactive=function(t){c[t]=0,l.warn(t,"could not be loaded")},t))}}},function(t,e,n){"use strict";var i,a,o,r,s,l;n.r(e),i=n(0),a=n.n(i),o=n(7),r=n(3),s=n(5),l=n(59),e.default=o.default.createObject(o.default,{title:"Objects PictureObject",info:"PictureObjectInfo",icon:"icon-103",pos:20,type:"PictureObject",disabled:!1,_init:function(){o.default._init.apply(this,arguments),this.defaultValues={Angle:0,Tile:!1,Transparency:0,TransparentColor:"transparent",Image:"",ShowErrorImage:!1,SizeMode:"Zoom",Grayscale:!1},this.prop({Name:"Picture",Width:75.6,Height:75.6}),this.attr({prefix:"data:image/png;base64,",withPadding:!0})},dblclick:function(){var e=this;n.e(14).then(n.bind(null,592)).then(function(t){return t.create(e)})},render:function(){var t=this.prop("Angle");return o.default.render.apply(this,arguments),this.$image&&this.$rGroup||(this.$rGroup=a()(Object(r.a)("g")),this.$image=a()(Object(r.a)("image",{class:"move"})),this.$rGroup.append(this.$image),this.$contentGroup.append(this.$rGroup)),this.$image.attr({width:this.prop("Width")+"px",height:this.prop("Height")+"px",x:0,y:0}),Object(l.a)(this.$image[0],"href",this.prop("ImageLocation")||this.prop("Image")),this.prop("Grayscale")?Object(s.a)(this.$image[0],"filter","url(#grayscale)"):Object(s.a)(this.$image[0],"filter",""),void 0!==t&&Object(s.a)(this.$rGroup[0],"transform","rotate($angle $x $y)".replace(/\$angle/g,t).replace(/\$x/g,this.prop("Width")/2).replace(/\$y/g,this.prop("Height")/2)),this.$g},fillPropsNET:function(){var t="";return o.default.fillPropsNET.apply(this,arguments),this.prop("Image")&&(t=this.attr("prefix")+this.prop("Image")),this.prop("Image",t),this},toXMLNET:function(t){var r=this;return new Promise(function(i){o.default.toXMLNET.call(r,t).then(function(t){var e,n=a()(t.xml);return r.prop("ImageLocation")?n.removeAttr("Image"):(e=r.prop("Image").replace(/^([\w:\/;]+base64,){1}/,""))&&n.attr("Image",e),i(t)})})}})},function(t,e,n){"use strict";n.r(e);var i=n(7);e.default=i.default.createObject(i.default,{title:"Objects RichObject",info:"RichObjectInfo",icon:"icon-126",pos:90,type:"RichObject",disabled:!1,_init:function(){i.default._init.apply(this,arguments),this.defaultValues={"Padding.Left":2,"Padding.Right":2,CanBreak:!0,ProcessAt:"Default",AllowExpressions:!0,Editable:!1,OldBreakStyle:!1},this.prop({Name:"Rich",Width:94.5,Height:18.9,Text:""}),this.attr({withPadding:!0})}})},function(t,e,n){"use strict";var i,d,u,h,f;n.r(e),i=n(0),d=n.n(i),u=n(7),h=n(3),f=n(5),e.default=u.default.createObject(u.default,{title:"Objects CheckBoxObject",info:"CheckBoxObjectInfo",icon:"icon-116",pos:100,type:"CheckBoxObject",disabled:!1,_init:function(){u.default._init.apply(this,arguments),this.defaultValues={UncheckedSymbol:"None",CheckWithRatio:1,CheckedSymbol:"Check",Editable:!1,HideIfUnchecked:!1},this.prop({Name:"CheckBox",Width:18.9,Height:18.9,CheckColor:"#000000",CheckedSymbol:"Check",CheckWithRatio:1,UncheckedSymbol:"None",Checked:!0,DataColumn:"",expression:""})},render:function(){var t,e,n,i,r,a,o=this.prop("Width"),s=this.prop("Height"),l=this.prop("Left"),c=this.prop("Top"),p=this.prop("CheckWithRatio");if(u.default.render.apply(this,arguments),this.$contentGroup.children().length||(this.$nestedG1=d()(Object(h.a)("g")),this.$nestedG2=d()(Object(h.a)("g")),this.$textNode=d()(Object(h.a)("text",{class:"text"})),this.$nestedG2.append(this.$textNode),this.$nestedG1.append(this.$nestedG2),this.$contentGroup.append(this.$nestedG1)),this.prop("Checked"))switch(t=this.prop("CheckedSymbol")){case"Check":t="✓";break;case"Cross":t="x";break;case"Plus":t="+";break;case"Fill":t="-";break;default:t="✓"}else switch(t=this.prop("UncheckedSymbol")){case"None":t="";break;case"Cross":t="x";break;case"Minus":t="-";break;default:t=""}return this.$textNode.text(t),e=[l,c],n=[l+o,c+s],(i=o/2-(a=Math.sqrt(Math.pow(n[0]-e[0],2)+Math.pow(n[1]-e[1],2))/2)/2)<0&&(i=0),(r=s/2-a/2)<a&&(r=a),Object(f.a)(this.$nestedG1[0],"transform","translate("+i+","+r+")"),this.$textNode.css({"font-size":a,fill:this.prop("CheckColor"),"font-weight":p<1?"normal":"bold"}),this.$g}})},function(t,e,n){"use strict";var i,m,c,b,r,a,o,v,y;n.r(e),i=n(0),m=n.n(i),c=n(4),b=n(17),r=n(25),a=n(2),o=n(1),v=n(3),y=n(5),e.default=b.a.createObject(b.a,{title:"Objects CellularTextObject",info:"CellularTextObjectInfo",icon:"icon-cellular_text",pos:120,type:"CellularTextObject",disabled:!1,_init:function(){b.a._init.apply(this,arguments),this.highlights=r.a.create(this),this.defaultValues={VertAlign:"Top",HorzAlign:"Left","TextFill.Color":"#000000",ParagraphOffset:0,ProcessAt:"Default",WordWrap:!0,AllowExpressions:!0,Editable:!1},this.prop({Name:"CellularText",Text:"",Width:226.8,Height:28.35,CellWidth:0,CellHeight:0,HorzSpacing:0,VertSpacing:0,"Border.Lines":"All"}),this.attr({"Font.Name":c.a.get("default-font-name"),"Font.Size":"10pt","Font.Bold":!1,"Font.Italic":!1,"Font.Underline":!1,"Font.Strikeout":!1,"text-anchor":"middle",cellWidth:28.34,cellHeight:28.34}),this.setMinWH()},setMinWH:function(){this.prop("CellWidth")&&this.prop("CellHeight")?(this.attr("minWidth",this.prop("CellWidth")+this.prop("HorzSpacing")),this.attr("minHeight",this.prop("CellHeight")+this.prop("VertSpacing"))):(this.attr("minWidth",this.attr("cellWidth")+this.prop("HorzSpacing")),this.attr("minHeight",this.attr("cellHeight")+this.prop("VertSpacing")))},_createLine:function(t){var e=m()(Object(v.a)("line",{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2}));return e.css({stroke:t.Color,"stroke-width":t.Width,"stroke-dasharray":t.Style}),e},appendEdges:function(){},appendBorders:function(){},appendBordersForCell:function(t,e,n){var i=c.a.get("dasharrays"),r=this.prop("Border.Lines").split(/,[\s]?/),a=this.prop("Border.Color"),o=this.prop("Border.Width"),s=this.prop("Border.Style"),l=m()();-1===m.a.inArray("None",r)&&((-1<m.a.inArray("All",r)||-1<m.a.inArray("Top",r))&&l.push(this._createLine({x1:0,y1:0,x2:e,y2:0,Color:this.prop("Border.TopLine.Color")||a,Width:this.prop("Border.TopLine.Width")||o,Style:i[this.prop("Border.TopLine.Style")||s]})),(-1<m.a.inArray("All",r)||-1<m.a.inArray("Right",r))&&l.push(this._createLine({x1:e,y1:0,x2:e,y2:n,Color:this.prop("Border.RightLine.Color")||a,Width:this.prop("Border.RightLine.Width")||o,Style:i[this.prop("Border.RightLine.Style")||s]})),(-1<m.a.inArray("All",r)||-1<m.a.inArray("Bottom",r))&&l.push(this._createLine({x1:e,y1:n,x2:0,y2:n,Color:this.prop("Border.BottomLine.Color")||a,Width:this.prop("Border.BottomLine.Width")||o,Style:i[this.prop("Border.BottomLine.Style")||s]})),(-1<m.a.inArray("All",r)||-1<m.a.inArray("Left",r))&&l.push(this._createLine({x1:0,y1:n,x2:0,y2:0,Color:this.prop("Border.LeftLine.Color")||a,Width:this.prop("Border.LeftLine.Width")||o,Style:i[this.prop("Border.LeftLine.Style")||s]}))),l.each(function(){t.append(this)})},generateCell:function(t,e,n,i){var r=m()(Object(v.a)("g")),a=m()(Object(v.a)("rect",{width:t,height:e}));return a.css("fill",this.prop("Fill.Color")),Object(y.a)(r[0],"transform","translate("+n+","+i+")"),r.append(a),this.appendBordersForCell(r,t,e),r},dblclick:function(){o.a.trigger("show-expression-editor",{entity:this,prop:"Text"})},getContextMenuItems:function(){function t(t){e.onChangeCM(t),e._updateProperties()}var e=this;return[{name:a.a.tr("Edit..."),type:"default",closeAfter:!0,onClick:function(){o.a.trigger("activate",e),e.dblclick()}},{name:a.a.tr("TextObject Format"),type:"default",closeAfter:!0,onClick:function(){o.a.trigger("activate",e),o.a.trigger("format",e)}},{name:a.a.tr("Clear"),type:"default",closeAfter:!0,onClick:function(){e.prop("Text","",!0),e.render(),o.a.trigger("activate",e)}},{name:a.a.tr("ComponentMenu Hyperlink"),type:"default",closeAfter:!0,onClick:function(){o.a.trigger("hyperlink-editor",e)}},{type:"separator"},{name:a.a.tr("Can Grow"),type:"checkbox",curVal:e.prop("CanGrow"),prop:"CanGrow",onChange:t},{name:a.a.tr("Can Shrink"),type:"checkbox",curVal:e.prop("CanShrink"),prop:"CanShrink",onChange:t},{name:a.a.tr("Can Break"),type:"checkbox",curVal:e.prop("CanBreak"),prop:"CanBreak",onChange:t},{name:a.a.tr("Grow To Bottom"),type:"checkbox",curVal:e.prop("GrowToBottom"),prop:"GrowToBottom",onChange:t},{type:"separator"},{name:a.a.tr("Auto Width"),type:"checkbox",curVal:e.prop("AutoWidth"),prop:"AutoWidth",onChange:t},{name:a.a.tr("WordWrap"),type:"checkbox",curVal:e.prop("WordWrap"),prop:"WordWrap",onChange:t},{name:a.a.tr("Allow Expressions"),type:"checkbox",curVal:e.prop("AllowExpressions"),prop:"AllowExpressions",onChange:t},{type:"separator"},{name:a.a.tr("Delete"),type:"default",disabled:!e.canBeRemoved(),closeAfter:!0,onClick:function(){o.a.trigger("remove",e)}},{type:"separator"},{name:a.a.tr("Bring to Front"),type:"default",closeAfter:!0,onClick:function(){o.a.trigger("bring-to-front",e)}},{name:a.a.tr("Send to back"),type:"default",closeAfter:!0,onClick:function(){o.a.trigger("send-to-back",e)}}]},render:function(){b.a.render.apply(this,arguments);var t,e,n,i=this.prop("Text").toString(),r=this.attr("cellWidth"),a=this.attr("cellHeight"),o=this.prop("HorzSpacing"),s=this.prop("VertSpacing"),l=this.attr("Font.Size"),c=this.attr("Font.Name"),p=0,d=0,u=0,h=m()(Object(v.a)("g")),f=this.prop("Width"),g=this.prop("Height");for(this.$contentGroup.empty(),this.prop("CellWidth")&&this.prop("CellHeight")&&(r=this.prop("CellWidth"),a=this.prop("CellHeight")),t=Math.floor(f/r)*Math.floor(g/a);p<t&&(f+1<d+r&&(d=0,u+=a+s),!(g+1<u+a));p+=1)e=this.generateCell(r,a,d,u),(n=m()(Object(v.a)("text"))).text(i[p]),n.css({"font-size":l+(m.a.isNumeric(l)?"pt":""),fill:this.prop("TextFill.Color"),"font-family":c,"text-anchor":this.attr("text-anchor")}),Object(y.a)(n[0],"transform","translate("+r/2+","+a/1.3+")"),this.applyFontStyles(n),e.append(n),h.append(e),d+=r+o;return this.$moveBlock.css("fill","transparent"),this.$contentGroup.append(h),this.$g}})},function(t,e,n){"use strict";var i,p,r,a,d,u,o,h,f,s,l,g;n.r(e),i=n(0),p=n.n(i),r=n(4),a=n(17),d=n(3),u=n(5),o=n(65),h=6,f=3,s=3.6,l=40,g=18.89,e.default=a.a.createObject(a.a,{title:"Objects Gauge Linear",info:"LinearGaugeInfo",icon:"icon-135",pos:130,type:"LinearGauge",groupType:"Gauge",disabled:!1,_init:function(){a.a._init.apply(this,arguments),this.defaultValues={Maximum:100,Minimum:0,Value:10,Inverted:!1,"Pointer.BorderColor":"#000","Pointer.Color":"#FFA500","Scale.MajorTicks.Color":"#000","Scale.MajorTicks.Width":2,"Scale.MinorTicks.Color":"#000","Scale.MinorTicks.Width":2},this.prop({Name:"LinearGauge",Width:302.36,Height:75.59,"Border.Lines":"All"}),this.attr({"Scale.Font.Name":r.a.get("default-font-name"),"Scale.Font.Size":"8pt","Scale.Font.Bold":!1,"Scale.Font.Italic":!1,"Scale.Font.Underline":!1,"Scale.Font.Strikeout":!1})},getRange:function(){return this.prop("Maximum")-this.prop("Minimum")},getPace:function(){return Math.floor(this.getRange()/(h-1))},appendPointer:function(){var t,e,n=this.prop("Width"),i=this.prop("Height"),r=100*this.prop("Value")/this.getRange(),a=n-2*g,o=i-2*g;return this.$pointer||(this.$pointerContainer=p()(Object(d.a)("g")),this.$pointer=p()(Object(d.a)("path"))),e=this.prop("Pointer.Width",n*s/100),t=this.prop("Pointer.Height",i*l/100),Object(u.a)(this.$pointer[0],"d","M"+e/2+" 0 L0 10 L0 "+t+" L"+e+" "+t+" L"+e+" 10 L"+e/2+" 0 Z"),this.$pointer.css({stroke:this.prop("Pointer.BorderColor"),fill:this.prop("Pointer.Color")}),this.prop("Inverted")?this.attr("isHorizontal")?(Object(u.a)(this.$pointer[0],"transform","rotate(180, "+e/2+", "+t/2+")"),Object(u.a)(this.$pointerContainer[0],"transform","translate("+(a*r/100+g-e/2)+", "+g+")")):(Object(u.a)(this.$pointer[0],"transform","rotate(90, "+e/2+", "+t/2+")"),Object(u.a)(this.$pointerContainer[0],"transform","translate("+2*g+", "+(o+g-t/2-o*r/100)+")")):this.attr("isHorizontal")?(Object(u.a)(this.$pointer[0],"transform","rotate(0)"),Object(u.a)(this.$pointerContainer[0],"transform","translate("+(a*r/100+g-e/2)+", "+i/2+")")):(Object(u.a)(this.$pointer[0],"transform","rotate(270, "+e/2+", "+t/2+")"),Object(u.a)(this.$pointerContainer[0],"transform","translate("+n/2+", "+(o+g-t/2-o*r/100)+")")),this.$pointerContainer.append(this.$pointer),this.$contentGroup.append(this.$pointerContainer),this.$pointer},createHorz:function(){var t,e,n,i=g,r=this.prop("Width"),a=this.prop("Height"),o=this.getPace(),s=this.prop("Minimum"),l=(r-2*g)/(h-1);for(this.paces&&!this.attr("isVertical")||(this.$contentGroup.empty(),this.paces=[]),t=0;t<h;t+=1){if(this.paces[t]||(this.paces[t]={$self:p()(Object(d.a)("g")),$minorTicks:[],$majorTick:p()(Object(d.a)("line")),$paceText:p()(Object(d.a)("text"))},this.paces[t].$self.append(this.paces[t].$majorTick,this.paces[t].$paceText),this.$contentGroup.append(this.paces[t].$self)),this.paces[t].$majorTick.css({"stroke-width":this.prop("Scale.MajorTicks.Width"),stroke:this.prop("Scale.MajorTicks.Color")}),this.paces[t].$majorTick.attr({x1:0,y1:1,x2:0,y2:a-40}),this.paces[t].$paceText.text(s),this.applyFontStyles(this.paces[t].$paceText,"Scale."),this.paces[t].$paceText.css({"font-size":this.attr("Scale.Font.Size")+(p.a.isNumeric(this.attr("Scale.Font.Size"))?"pt":""),fill:"#000","font-family":this.attr("Scale.Font.Name"),"text-anchor":"middle"}),Object(u.a)(this.paces[t].$self[0],"transform","translate("+i+", 20)"),i+=l,t+1!==h)for(n=e=0;e<f;e+=1)this.paces[t].$minorTicks[e]||(this.paces[t].$minorTicks[e]=p()(Object(d.a)("line")),this.paces[t].$self.append(this.paces[t].$minorTicks[e])),this.paces[t].$minorTicks[e].css({"stroke-width":this.prop("Scale.MinorTicks.Width"),stroke:this.prop("Scale.MinorTicks.Color")}),this.paces[t].$minorTicks[e].attr({x1:0,y1:0,x2:0,y2:a-60}),n+=l/(f+1),Object(u.a)(this.paces[t].$minorTicks[e][0],"transform","translate("+n+", 10)");s+=o,this.prop("Inverted")?Object(u.a)(this.paces[t].$paceText[0],"transform","translate(0, "+(a-20-5)+")"):Object(u.a)(this.paces[t].$paceText[0],"transform","translate(0, 0)")}},createVert:function(){var t,e,n,i=g,r=this.prop("Width"),a=this.prop("Height"),o=this.getPace(),s=this.prop("Minimum"),l=a-2*g,c=l/(h-1);for(i+=l,this.paces&&!this.attr("isHorizontal")||(this.$contentGroup.empty(),this.paces=[]),t=0;t<h;t+=1)if(this.paces[t]||(this.paces[t]={$self:p()(Object(d.a)("g")),$minorTicks:[],$majorTick:p()(Object(d.a)("line")),$paceText:p()(Object(d.a)("text"))},this.paces[t].$self.append(this.paces[t].$majorTick,this.paces[t].$paceText),this.$contentGroup.append(this.paces[t].$self)),this.paces[t].$majorTick.css({"stroke-width":this.prop("Scale.MajorTicks.Width"),stroke:this.prop("Scale.MajorTicks.Color")}),this.paces[t].$majorTick.attr({x1:0,y1:1,x2:r-40,y2:0}),this.paces[t].$paceText.text(s),this.paces[t].$paceText.css({"font-size":this.attr("Scale.Font.Size")+(p.a.isNumeric(this.attr("Scale.Font.Size"))?"pt":""),fill:"#000","font-family":this.attr("Scale.Font.Name"),"text-anchor":"middle"}),this.applyFontStyles(this.paces[t].$paceText,"Scale."),Object(u.a)(this.paces[t].$self[0],"transform","translate(20, "+i+")"),i-=c,s+=o,this.prop("Inverted")?Object(u.a)(this.paces[t].$paceText[0],"transform","translate("+(r-20-10)+", 5)"):Object(u.a)(this.paces[t].$paceText[0],"transform","translate(-10, 5)"),0!==t)for(n=e=0;e<f;e+=1)this.paces[t].$minorTicks[e]||(this.paces[t].$minorTicks[e]=p()(Object(d.a)("line")),this.paces[t].$self.append(this.paces[t].$minorTicks[e])),this.paces[t].$minorTicks[e].css({"stroke-width":this.prop("Scale.MinorTicks.Width"),stroke:this.prop("Scale.MinorTicks.Color")}),this.paces[t].$minorTicks[e].attr({x1:0,y1:0,x2:r-60,y2:0}),n+=c/(f+1),Object(u.a)(this.paces[t].$minorTicks[e][0],"transform","translate(10, "+n+")")},render:function(){return a.a.render.apply(this,arguments),this.prop("Width")>this.prop("Height")?(this.createHorz(),this.attr("isHorizontal",!0),this.attr("isVertical",!1)):(this.createVert(),this.attr("isVertical",!0),this.attr("isHorizontal",!1)),this.appendPointer(),this.$g},fillPropsNET:function(t){return a.a.fillPropsNET.apply(this,arguments),this.fillFontNET(t,"Scale."),this},toXMLNET:function(t){var n=this;return new Promise(function(e){a.a.toXMLNET.call(n,t).then(function(t){return t=p()(t),Object(o.a)(t,n,"Scale."),e(t.get(0))})})}})},function(t,e,n){"use strict";var i,m,r,a,b,v,o,y,C,S,x,P;n.r(e),i=n(0),m=n.n(i),r=n(4),a=n(17),b=n(3),v=n(5),o=n(65),y=6,C=3,S=10,x=18.89,P=14.89,e.default=a.a.createObject(a.a,{title:"Objects Gauge Simple",info:"SimpleGaugeInfo",icon:"icon-135",pos:140,type:"SimpleGauge",groupType:"Gauge",disabled:!1,_init:function(){a.a._init.apply(this,arguments),this.defaultValues={Maximum:100,Minimum:0,Value:75,Inverted:!1,"Pointer.BorderColor":"#000","Pointer.Color":"#FFA500","Scale.FirstSubScale.Enabled":!0,"Scale.FirstSubScale.ShowCaption":!0,"Scale.SecondSubScale.Enabled":!0,"Scale.SecondSubScale.ShowCaption":!0,"Scale.MajorTicks.Color":"#000","Scale.MajorTicks.Width":2,"Scale.MinorTicks.Color":"#000","Scale.MinorTicks.Width":2,"Pointer.Height":6},this.prop({Name:"SimpleGauge",Width:302.36,Height:75.59,"Border.Lines":"All"}),this.attr({"Scale.Font.Name":r.a.get("default-font-name"),"Scale.Font.Size":"8pt","Scale.Font.Bold":!1,"Scale.Font.Italic":!1,"Scale.Font.Underline":!1,"Scale.Font.Strikeout":!1})},getRange:function(){return this.prop("Maximum")-this.prop("Minimum")},getPace:function(){return Math.floor(this.getRange()/(y-1))},appendPointer:function(){var t,e=this.prop("Pointer.Height"),n=this.prop("Width"),i=this.prop("Height"),r=100*this.prop("Value")/this.getRange(),a=n-2*x,o=i-2*P;this.$pointer||(this.$pointerContainer=m()(Object(b.a)("g")),this.$pointer=m()(Object(b.a)("rect"))),this.$pointer.css({stroke:this.prop("Pointer.BorderColor"),fill:this.prop("Pointer.Color")}),this.$pointerContainer.append(this.$pointer),this.$contentGroup.append(this.$pointerContainer),this.attr("isHorizontal")?(t=this.prop("Pointer.Width",a*r/100),this.$pointer.attr({width:t,height:e}),Object(v.a)(this.$pointerContainer[0],"transform","translate("+x+", "+(i/2-e/2)+")")):(t=this.prop("Pointer.Width",o*r/100),this.$pointer.attr({width:e,height:t}),Object(v.a)(this.$pointerContainer[0],"transform","translate("+(n/2-e/2)+", "+(i-P-t)+")"))},createHorz:function(){function t(t,e){e.text(c),r.applyFontStyles(e,"Scale."),e.css({"font-size":d+(m.a.isNumeric(r.attr("Scale.Font.Size"))?"pt":""),fill:"#000","font-family":r.attr("Scale.Font.Name"),"text-anchor":"middle"})}var e,n,i,r=this,a=x,o=this.prop("Width"),s=this.prop("Height"),l=this.getPace(),c=this.prop("Minimum"),p=(o-2*x)/(y-1),d=parseInt(this.attr("Scale.Font.Size"),10),u=s-2*P-S,h=50*u/100,f=h/2;for(this.paces&&!this.attr("isVertical")||(this.$contentGroup.empty(),this.paces=[]),e=0;e<y;e+=1){if(this.paces[e]||(this.paces[e]={$self:m()(Object(b.a)("g")),$minorTicksTop:[],$majorTickTop:m()(Object(b.a)("line")),$paceTextTop:m()(Object(b.a)("text")),$majorTickBottom:m()(Object(b.a)("line")),$minorTicksBottom:[],$paceTextBottom:m()(Object(b.a)("text"))},this.paces[e].$self.append(this.paces[e].$majorTickTop,this.paces[e].$paceTextTop,this.paces[e].$majorTickBottom,this.paces[e].$paceTextBottom),this.$contentGroup.append(this.paces[e].$self)),this.paces[e].$majorTickTop.css({"stroke-width":this.prop("Scale.MajorTicks.Width"),stroke:this.prop("Scale.MajorTicks.Color")}),this.paces[e].$majorTickBottom.css({"stroke-width":this.prop("Scale.MajorTicks.Width"),stroke:this.prop("Scale.MajorTicks.Color")}),this.paces[e].$majorTickTop.attr({x1:0,y1:1,x2:0,y2:h}),this.paces[e].$majorTickBottom.attr({x1:0,y1:h+S,x2:0,y2:h+S+h}),m.a.each([this.paces[e].$paceTextTop,this.paces[e].$paceTextBottom],t),Object(v.a)(this.paces[e].$paceTextBottom[0],"transform","translate(0, "+(u+P+2)+")"),Object(v.a)(this.paces[e].$self[0],"transform","translate("+a+", "+P+")"),a+=p,e+1!==y)for(i=n=0;n<C;n+=1)this.paces[e].$minorTicksTop[n]||(this.paces[e].$minorTicksTop[n]=m()(Object(b.a)("line")),this.paces[e].$self.append(this.paces[e].$minorTicksTop[n])),this.paces[e].$minorTicksBottom[n]||(this.paces[e].$minorTicksBottom[n]=m()(Object(b.a)("line")),this.paces[e].$self.append(this.paces[e].$minorTicksBottom[n])),this.paces[e].$minorTicksTop[n].css({"stroke-width":this.prop("Scale.MinorTicks.Width"),stroke:this.prop("Scale.MinorTicks.Color")}),this.paces[e].$minorTicksBottom[n].css({"stroke-width":this.prop("Scale.MinorTicks.Width"),stroke:this.prop("Scale.MinorTicks.Color")}),this.paces[e].$minorTicksTop[n].attr({x1:0,y1:0,x2:0,y2:f}),this.paces[e].$minorTicksBottom[n].attr({x1:0,y1:f+h+S,x2:0,y2:f+h+S+f}),i+=p/(C+1),Object(v.a)(this.paces[e].$minorTicksTop[n][0],"transform","translate("+i+", "+f+")"),Object(v.a)(this.paces[e].$minorTicksBottom[n][0],"transform","translate("+i+", "+-f+")");c+=l}},createVert:function(){function t(t,e){e.text(c),r.applyFontStyles(e,"Scale."),e.css({"font-size":u+(m.a.isNumeric(r.attr("Scale.Font.Size"))?"pt":""),fill:"#000","font-family":r.attr("Scale.Font.Name"),"text-anchor":"middle"})}var e,n,i,r=this,a=P,o=this.prop("Width"),s=this.prop("Height"),l=this.getPace(),c=this.prop("Minimum"),p=s-2*P,d=p/(y-1),u=parseInt(this.attr("Scale.Font.Size"),10),h=o-2*x-S,f=50*h/100,g=f/2;for(a+=p,this.paces&&!this.attr("isHorizontal")||(this.$contentGroup.empty(),this.paces=[]),e=0;e<y;e+=1){if(this.paces[e]||(this.paces[e]={$self:m()(Object(b.a)("g")),$minorTicksLeft:[],$majorTickLeft:m()(Object(b.a)("line")),$paceTextLeft:m()(Object(b.a)("text")),$majorTickRight:m()(Object(b.a)("line")),$minorTicksRight:[],$paceTextRight:m()(Object(b.a)("text"))},this.paces[e].$self.append(this.paces[e].$majorTickLeft,this.paces[e].$paceTextLeft,this.paces[e].$majorTickRight,this.paces[e].$paceTextRight),this.$contentGroup.append(this.paces[e].$self)),this.paces[e].$majorTickLeft.css({"stroke-width":this.prop("Scale.MajorTicks.Width"),stroke:this.prop("Scale.MajorTicks.Color")}),this.paces[e].$majorTickRight.css({"stroke-width":this.prop("Scale.MajorTicks.Width"),stroke:this.prop("Scale.MajorTicks.Color")}),this.paces[e].$majorTickLeft.attr({x1:1,y1:0,x2:f,y2:0}),this.paces[e].$majorTickRight.attr({x1:f+S,y1:0,x2:f+S+f,y2:0}),m.a.each([this.paces[e].$paceTextLeft,this.paces[e].$paceTextRight],t),Object(v.a)(this.paces[e].$paceTextRight[0],"transform","translate("+(h+x)+", 0)"),Object(v.a)(this.paces[e].$self[0],"transform","translate("+x+", "+a+")"),a-=d,0<e)for(i=n=0;n<C;n+=1)this.paces[e].$minorTicksLeft[n]||(this.paces[e].$minorTicksLeft[n]=m()(Object(b.a)("line")),this.paces[e].$self.append(this.paces[e].$minorTicksLeft[n])),this.paces[e].$minorTicksRight[n]||(this.paces[e].$minorTicksRight[n]=m()(Object(b.a)("line")),this.paces[e].$self.append(this.paces[e].$minorTicksRight[n])),this.paces[e].$minorTicksLeft[n].css({"stroke-width":this.prop("Scale.MinorTicks.Width"),stroke:this.prop("Scale.MinorTicks.Color")}),this.paces[e].$minorTicksRight[n].css({"stroke-width":this.prop("Scale.MinorTicks.Width"),stroke:this.prop("Scale.MinorTicks.Color")}),this.paces[e].$minorTicksLeft[n].attr({x1:0,y1:0,x2:g,y2:0}),this.paces[e].$minorTicksRight[n].attr({x1:g+f+S,y1:0,x2:g+f+S+g,y2:0}),i+=d/(C+1),Object(v.a)(this.paces[e].$minorTicksLeft[n][0],"transform","translate("+g+", "+i+")"),Object(v.a)(this.paces[e].$minorTicksRight[n][0],"transform","translate("+-g+", "+i+")");c+=l}},render:function(){return a.a.render.apply(this,arguments),this.prop("Width")>this.prop("Height")?(this.createHorz(),this.attr("isHorizontal",!0),this.attr("isVertical",!1)):(this.createVert(),this.attr("isVertical",!0),this.attr("isHorizontal",!1)),this.appendPointer(),this.$g},fillPropsNET:function(t){return a.a.fillPropsNET.apply(this,arguments),this.fillFontNET(t,"Scale."),this},toXMLNET:function(t){var i=this;return new Promise(function(n){a.a.toXMLNET.call(i,t).then(function(t){var e=m()(t.xml);return Object(o.a)(e,i,"Scale."),n(t)})})}})},function(t,e,n){"use strict";var i,a,r,o,s,l,c,p,d,u,h;n.r(e),i=n(0),a=n.n(i),r=n(4),o=n(17),s=n(65),l=n(3),c=n(5),p=n(46),d=n(75),u="full",h="Small",e.default=o.a.createObject(o.a,{title:"Objects Gauge SimpleProgress",info:"SimpleProgressGaugeInfo",icon:"icon-135",pos:140,type:"SimpleProgressGauge",groupType:"Gauge",disabled:!1,_init:function(){o.a._init.apply(this,arguments),this.defaultValues={Maximum:100,Minimum:0,Value:75,Inverted:!1,"Pointer.BorderColor":"transparent","Pointer.Color":"#FFA500","Pointer.SmallPointerWidth":.1,"Pointer.Type":"full"},this.prop({Name:"SimpleProgressGauge",Width:302.36,Height:75.59,"Border.Lines":"All","Label.Color":"#000000","Label.Decimals":0}),this.attr({"Label.Font.Name":r.a.get("default-font-name"),"Label.Font.Size":"8pt","Label.Font.Bold":!1,"Label.Font.Italic":!1,"Label.Font.Underline":!1,"Label.Font.Strikeout":!1})},getPercentage:function(){var t=this.prop("Value"),e=this.prop("Minimum"),n=this.prop("Maximum");return(t-e)/(n-e)*100},appendPointer:function(){var t,e,n,i=this.prop("Pointer.Type");return this.$pointer||(this.$pointerContainer=a()(Object(l.a)("g")),this.$pointer=a()(Object(l.a)("rect"))),this.$pointer.css("fill",this.prop("Pointer.Color")),this.$pointer.attr("height",this.prop("Height")),t=this.prop("Width"),e=this.getPercentage(),i===u?this.$pointer.attr("width",t*e/100):i===h&&(n=t*this.prop("Pointer.SmallPointerWidth"),this.$pointer.attr("width",n),Object(c.a)(this.$pointer.get(0),"transform","translate({0},0)".format(t*e/100-n/2))),this.$pointer.css({stroke:this.prop("Pointer.BorderColor"),"stroke-width":1}),this.$pointerContainer.append(this.$pointer),this.$contentGroup.append(this.$pointerContainer),this.$pointer},appendLabel:function(){var t,e,n,i,r;return this.$label||(this.$labelContainer=a()(Object(l.a)("g")),this.$label=a()(Object(l.a)("text"))),t=this.attr("Label.Font.Size"),e=this.attr("Label.Font.Name"),n="{0}%".format(this.getPercentage()),this.$label.text(n),r=30<(i=Object(d.a)(n,{"font-size":t,"font-family":e,"font-weight":this.attr("Font.Bold")?"500":"100"})).h?i.h/1.5:this.prop("Height")/2,Object(c.a)(this.$label.get(0),"transform","translate({0},{1})".format(this.prop("Width")/2-i.w/2,r)),this.$label.css({"font-size":t+(Object(p.a)(t)?"pt":""),fill:this.prop("Label.Color"),"font-family":e}),this.applyFontStyles(this.$label,"Label."),this.$labelContainer.append(this.$label),this.$contentGroup.append(this.$labelContainer),this.$label},render:function(){return o.a.render.apply(this,arguments),this.appendPointer(),this.appendLabel(),this.$g},fillPropsNET:function(t){return o.a.fillPropsNET.apply(this,arguments),this.fillFontNET(t,"Label."),this},toXMLNET:function(t){var i=this;return new Promise(function(n){o.a.toXMLNET.call(i,t).then(function(t){var e=a()(t.xml);return Object(s.a)(e,i,"Label."),n(e.get(0))})})}})},function(t,e,n){"use strict";n.r(e);var i=n(27);e.default=i.default.createObject(i.default,{title:"Objects HtmlObject",info:"HtmlObjectInfo",icon:"icon-135",pos:160,type:"HtmlObject",disabled:!1,_init:function(){i.default._init.apply(this,arguments),this.defaultValues={"Padding.Left":2,"Padding.Right":2,CanBreak:!0,TabWidth:58,ProcessAt:"Default",AllowExpressions:!0,"TextFill.Color":"#000"},this.attr({"droppable-view":!0,"droppable-component":!0,withPadding:!0}),this.prop("Name","Html")}})},function(t,e,n){"use strict";var i,r,a,o,s,l,c,p;n.r(e),i=n(0),r=n.n(i),a=n(7),o=n(3),s=n(5),l=n(59),c=n(22),p=new c.a("SVGObject"),e.default=a.default.createObject(a.default,{title:"Objects SVGObject",info:"SVGObjectInfo",icon:"icon-103",pos:170,type:"SVGObject",disabled:!1,_init:function(){a.default._init.apply(this,arguments),this.defaultValues={Angle:0,Tile:!1,Transparency:0,TransparentColor:"transparent",Tag:"",ShowErrorImage:!1,SizeMode:"Zoom",Grayscale:!1,MaxSvgHeight:0,MaxSvgWidth:0,SvgDocument:"",SvgGrayscale:""},this.prop({Name:"SVG",Width:75.6,Height:75.6}),this.attr("withPadding",!0)},render:function(){var t=this.prop("Angle"),e=this.prop("ImageLocation"),n=this.prop("SvgData");return a.default.render.apply(this,arguments),this.$rGroup||(this.$rGroup=r()(Object(o.a)("g")),this.$contentGroup.append(this.$rGroup)),e?(this.$image||(this.$image=r()(Object(o.a)("image",{class:"move"})),this.$rGroup.append(this.$image)),this.$image.attr({width:this.prop("Width")+"px",height:this.prop("Height")+"px",x:0,y:0}),Object(l.a)(this.$image[0],"href",e)):n&&this.$rGroup.append(n),this.prop("Grayscale")?Object(s.a)(this.$rGroup.get(0),"filter","url(#grayscale)"):Object(s.a)(this.$rGroup.get(0),"filter",""),void 0!==t&&Object(s.a)(this.$rGroup[0],"transform","rotate($angle $x $y)".replace(/\$angle/g,t).replace(/\$x/g,this.prop("Width")/2).replace(/\$y/g,this.prop("Height")/2)),this.$g},fillPropsNET:function(){if(a.default.fillPropsNET.apply(this,arguments),this.prop("SvgData"))try{this.prop("SvgData",atob(this.prop("SvgData")))}catch(t){p.error(t)}return this},toXMLNET:function(e){var n=this;return new Promise(function(t){!n.prop("ImageLocation")&&n.prop("SvgData")&&n.prop("SvgData",btoa(n.prop("SvgData"))),a.default.toXMLNET.call(n,e).then(t)})}})},function(t,e,n){"use strict";var i,r,a,o,s;n.r(e),i=n(0),r=n.n(i),a=n(7),o=n(2),s=n(3),e.default=a.default.createObject(a.default,{title:"Objects DigitalSignatureObject",info:"DigitalSignatureObjectInfo",icon:"icon-133",pos:131,type:"DigitalSignatureObject",disabled:!1,_init:function(){a.default._init.apply(this,arguments),this.defaultValues={Tile:!1,Transparency:0,TransparentColor:"transparent"},this.prop({Name:"DigitalSignature",Width:132.6,Height:45.6})},render:function(){return a.default.render.apply(this,arguments),this.$rGroup||(this.$rGroup=r()(Object(s.a)("g")),this.$text=r()(Object(s.a)("text")),this.$text.text(o.a.tr("Objects DigitalSignatureObject")),this.$text.css({"font-size":"10pt",fill:"#000","font-family":"Arial","text-anchor":"middle"}),this.$text.attr("transform","translate(60, 15)"),this.$rGroup.append(this.$text),this.$contentGroup.append(this.$rGroup)),this.$g}})},function(t,e,n){"use strict";var i,r,a,o,s,l,c,p,d,u,h,f,g,m,b,v,y,C,S,x,P,w,T,k,B,$,O,E,M,D,A,j,F,L,R,N,W,H,_,z,V,I,G,X,U,Y,K,q,J,Z,Q,tt;function et(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,et),this.self=t,this.barcodeType=e,this.props=Z[this.barcodeType],this.isExist()||Q.error("there is no such barcode type")}n.r(e),i=n(0),r=n.n(i),a=n(7),o=n(26),n(325),s=n(22),l=n(3),c=n(5),p=n(59),d=n(93),u=n(294),h=n.n(u),f=n(295),g=n.n(f),m=n(296),b=n.n(m),v=n(297),y=n.n(v),C=n(298),S=n.n(C),x=n(299),P=n.n(x),w=n(300),T=n.n(w),k=n(301),B=n.n(k),$=n(302),O=n.n($),E=n(303),M=n.n(E),D=n(241),A=n.n(D),j=n(304),F=n.n(j),L=n(305),R=n.n(L),N=n(306),W=n.n(N),H=n(307),_=n.n(H),z=n(308),V=n.n(z),I=n(309),G=n.n(I),X=n(310),U=n.n(X),Y=n(311),K=n.n(Y),q=n(312),J=n.n(q),Z={"2/5 Interleaved":{defaultWidth:80,defaultHeight:94.5,canBeRenderedViaJs:!1,isTwoDimensional:!1,path:b.a},"2/5 Industrial":{defaultWidth:155,defaultHeight:94.5,canBeRenderedViaJs:!1,isTwoDimensional:!1,path:g.a},"2/5 Matrix":{defaultWidth:115,defaultHeight:94.5,canBeRenderedViaJs:!1,isTwoDimensional:!1,path:y.a},Codabar:{defaultWidth:126,defaultHeight:94.5,canBeRenderedViaJs:!1,isTwoDimensional:!1,path:S.a},Code128:{defaultWidth:98.6,defaultHeight:94.5,canBeRenderedViaJs:!1,isTwoDimensional:!1,path:P.a},Code39:{defaultWidth:177.6,defaultHeight:94.5,format:"CODE39",canBeRenderedViaJs:!0,isTwoDimensional:!1},"Code39 Extended":{defaultWidth:177.6,defaultHeight:94.5,canBeRenderedViaJs:!1,isTwoDimensional:!1,path:T.a},Code93:{defaultWidth:136.06,defaultHeight:94.5,canBeRenderedViaJs:!1,isTwoDimensional:!1,path:B.a},"Code93 Extended":{defaultWidth:136.06,defaultHeight:94.5,canBeRenderedViaJs:!1,isTwoDimensional:!1,path:O.a},EAN8:{defaultWidth:83.9,defaultHeight:94.5,format:"EAN8",canBeRenderedViaJs:!0,isTwoDimensional:!1},EAN13:{defaultWidth:128.8,defaultHeight:94.5,format:"EAN13",canBeRenderedViaJs:!0,isTwoDimensional:!1},MSI:{defaultWidth:143.6,defaultHeight:94.5,format:"MSI",canBeRenderedViaJs:!0,isTwoDimensional:!1},PostNet:{defaultWidth:154.9,defaultHeight:94.5,canBeRenderedViaJs:!1,isTwoDimensional:!1,path:M.a},"UPC-A":{defaultWidth:138.7,defaultHeight:94.5,format:"UPC",canBeRenderedViaJs:!0,isTwoDimensional:!1},"UPC-E0":{defaultWidth:83.9,defaultHeight:94.5,canBeRenderedViaJs:!1,isTwoDimensional:!1,path:A.a},"UPC-E1":{defaultWidth:83.9,defaultHeight:94.5,canBeRenderedViaJs:!1,isTwoDimensional:!1,path:A.a},"Supplement 2":{defaultWidth:24.9,defaultHeight:94.5,canBeRenderedViaJs:!1,isTwoDimensional:!1,path:F.a},"Supplement 5":{defaultWidth:58.5,defaultHeight:94.5,canBeRenderedViaJs:!1,isTwoDimensional:!1,path:R.a},PDF417:{defaultWidth:171.9,defaultHeight:122.07,canBeRenderedViaJs:!1,isTwoDimensional:!0,path:W.a},Datamatrix:{defaultWidth:35.9,defaultHeight:54.04,canBeRenderedViaJs:!1,isTwoDimensional:!0,path:_.a},"QR Code":{defaultWidth:116.03,defaultHeight:133.79,canBeRenderedViaJs:!1,isTwoDimensional:!0,path:h.a},Plessey:{defaultWidth:183.68,defaultHeight:94.5,canBeRenderedViaJs:!1,isTwoDimensional:!1,path:V.a},"GS1-128 (UCC/EAN-128)":{defaultWidth:98.64,defaultHeight:94.5,canBeRenderedViaJs:!1,isTwoDimensional:!1,path:G.a},Aztec:{defaultWidth:60.09,defaultHeight:77.85,canBeRenderedViaJs:!1,isTwoDimensional:!0,path:U.a},Pharmacode:{defaultWidth:148.9,defaultHeight:94.5,format:"pharmacode",canBeRenderedViaJs:!0,isTwoDimensional:!1},MaxiCode:{defaultWidth:181.79,defaultHeight:193.5,canBeRenderedViaJs:!1,isTwoDimensional:!0,path:K.a},"Intelligent Mail (USPS)":{defaultWidth:94.5,defaultHeight:94.5,canBeRenderedViaJs:!1,isTwoDimensional:!1,path:J.a}},Q=new s.a("Barcode"),et.prototype.init=function(){var t=this.self,e=t.prop("Width")||this.props.defaultWidth||0,n=t.prop("Height")||this.props.defaultHeight||0;0<e&&t.prop("Width",e),0<n&&t.prop("Height",n)},et.prototype.isExist=function(){return Boolean(this.props)},et.prototype.getType=function(){return this.barcodeType},et.prototype.updateAutoSizeWidth=function(){var t,e,n=this.self;n.$preview&&(t=n.prop("Width")||0,e=n.prop("Height")||0,0<t&&n.prop("Width",t),0<e&&n.prop("Height",e))},et.prototype.updateAutoSizeProp=function(){var t=this.self;t.prop("AutoSize")?(this.updateAutoSizeWidth(),t.attr({resizableX:!1,resizableY:!this.props.isTwoDimensional,resizableXY:!1})):t.attr({resizableX:!0,resizableY:!0,resizableXY:!0})},et.prototype.render=function(){var t=this.self;return t.$preview||(t.$preview=r()(Object(l.a)("svg",{class:"move"}))),this.props.canBeRenderedViaJs?(t.$image&&(t.$preview.empty(),delete t.$image),this.renderJS()):(t.$image||(t.$preview.css("overflow","visible"),t.$preview.empty(),t.$image=r()(Object(l.a)("image",{class:"move"})),t.$preview.append(t.$image)),this.renderPreview()),this.updateAutoSizeProp(),t.$preview},et.prototype.renderPreview=function(){Object(p.a)(this.self.$image.get(0),"href",this.props.path),this.self.$image.css({width:this.self.prop("Width"),height:this.self.prop("Height")})},et.prototype.renderJS=function(){var e=this.self;window.JsBarcode(e.$preview.get(0),e.prop("Text"),{format:this.props.format,width:e.prop("Barcode.WideBarRatio")||1,height:e.prop("Height")-30,lineColor:e.prop("Barcode.Color")||"#000",displayValue:e.prop("ShowText"),margin:0,valid:function(t){return t||e.notifyInvalidCode(),!0}}),e.$preview.get(0).setAttribute("width",e.prop("Width")),e.$preview.get(0).setAttribute("preserveAspectRatio","none")},tt=et,e.default=a.default.createObject(a.default,{title:"Objects BarcodeObject",info:"BarcodeObjectInfo",icon:"icon-123",pos:80,type:"BarcodeObject",defaultWidth:160.6,defaultHeight:94.5,disabled:!1,_init:function(){a.default._init.apply(this,arguments),this.defaultValues={AutoSize:!0,HideIfNoData:!0,ShowText:!0,Zoom:1,Text:"12345678","Barcode.Color":"#000000"},this.prop({Name:"Barcode",Barcode:"Code39",Width:this.defaultWidth,Height:this.defaultHeight,AsBitmap:!1}),this.attr({withPadding:!0,lastWidth:this.defaultWidth,bufZoom:1})},notifyInvalidCode:Object(d.a)(function(){Object(o.a)('Text "{0}" is invalid for "{1}" barcode type'.format(this.prop("Text"),this.prop("Barcode")),{danger:!0})},300),render:function(){var t,e,n=this.prop("Barcode");if(!this.currentBarcode||this.currentBarcode.getType()!==n){if(this.currentBarcode=new tt(this,n),!this.currentBarcode.isExist())return delete this.currentBarcode,a.default.render.apply(this,arguments);this.currentBarcode.init(),this.$previewContainer||(this.$previewContainer=r()(Object(l.a)("g",{transform:"scale(1)"})))}return t=this.currentBarcode.render(),a.default.render.apply(this,arguments),e=this.attr("lastWidth"),e=this.prop("Zoom")>this.bufZoom?this.attr("lastWidth")*(this.prop("Barcode.WideBarRatio")||1)*this.prop("Zoom"):this.prop("Zoom")<this.bufZoom?this.attr("lastWidth")*(this.prop("Barcode.WideBarRatio")||1)/this.bufZoom:this.prop("AutoSize")?this.attr("lastWidth")*(this.prop("Barcode.WideBarRatio")||1):this.prop("Width"),Object(c.a)(this.$previewContainer[0],"transform","scale("+this.prop("Zoom")+", 1)"),this.prop("Width",e),this.attr("lastWidth",this.prop("Width")/(this.prop("Barcode.WideBarRatio")||1)),this.bufZoom=this.prop("Zoom"),this.$previewContainer.append(t),this.$contentGroup.append(this.$previewContainer),this.syncUpControls(),this.$g}})},function(t,e,n){"use strict";function i(t){var e,n,i,r,a,o,s,l,c,p=void 0;return!/[^\d.]/i.test(t)&&0<(p=new Date(parseFloat(t))).getTime()?p:(p=Date.parse(t))?p:(n=(e=t.split(" "))[0].split("/"),i=e[1].split(":"),r=+n[0],a=n[1]-1,o=+n[2],s=+i[0],l=+i[1],c=+i[2],new Date(o,a,r,s,l,c))}function r(t){return t&&t instanceof Date?t.getDate()+"/"+(t.getMonth()+1)+"/"+t.getFullYear()+" "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds():""}n.d(e,"b",function(){return i}),n.d(e,"a",function(){return r})},function(t,e,n){"use strict";e.a={fontStyleToNet:function(t){switch(t){case 1:return["Bold"];case 2:return["Italic"];case 3:return["Bold","Italic"];case 4:return["Underline"];case 5:return["Bold","Underline"];case 6:return["Italic","Underline"];case 7:return["Bold","Italic","Underline"];case 8:return["Strikeout"];case 9:return["Bold","Strikeout"];case 10:return["Italic","Strikeout"];case 11:return["Bold","Italic","Strikeout"];case 12:return["Underline","Strikeout"];case 13:return["Bold","Underline","Strikeout"];case 14:return["Italic","Underline","Strikeout"];case 15:return["Bold","Italic","Underline","Strikeout"];default:return[]}},borderLinesToNET:function(t){switch(t){case 1:return"Left";case 2:return"Right";case 3:return"Left, Right";case 4:return"Top";case 5:return"Top, Left";case 6:return"Top, Right";case 7:return"Top, Left, Right";case 8:return"Bottom";case 9:return"Bottom, Left";case 10:return"Bottom, Right";case 11:return"Bottom, Left, Right";case 12:return"Top, Bottom";case 13:return"Top, Bottom, Left";case 14:return"Top, Bottom, Right";case 15:return"All"}},borderStyleToNET:function(t){switch(t){case"fsDot":return"Dot";case"fsDash":return"Dash";case"fsDashDot":return"DashDot";case"fsDashDotDot":return"DashDotDot";default:return"Solid"}}}},function(t,e,n){"use strict";var i=n(4);e.a=function(t){return t=t&&i.a.get("brackets").replace(",",t)}},function(t,e,n){"use strict";var i=n(1),r=n(87),a=n(31),o=n(25),s=n(99),l=n(35),c=n(8),p=n(18);e.a=Object(c.a)(r.a,{type:"Column",_init:function(){this._id="tdscol"+Object(p.a)(),this.columns=o.a.create(this),this.dataSources=s.a.create(this),this.defaultValues={Calculated:!1,BindableControl:"Text"},this.prop({Name:"Column",Alias:"",DataType:a.a.get("System.Int32"),Expression:""}),this.updateBindableControl()},fillMap:function(){this.fieldMap=l.a.factory(["Data:DataType",{prop:"Design:Name",afterSetValue:function(){i.a.trigger("update-data-panel")}},"Design:Alias","Design:Restrictions"]),this.mainFields=[["Design:Name","Data:DataType"]]},isColumn:function(){return!0}})},function(t,e,n){"use strict";var i=n(1),r=n(197),a=n(87),o=n(31),s=n(35),l=n(8),c=n(18);e.a=Object(l.a)(a.a,{type:"Parameter",_init:function(){this._id="p"+Object(c.a)(),this.parameters=r.a.create(this),this.editable=[function(t){i.a.trigger("create-parameter",t)},function(t){i.a.trigger("remove-parameter",t)}],this.defaultValues={Expression:""},this.prop({Name:"Parameter",DataType:o.a.get("System.String")}),this.bindableControl="TextObject"},fillMap:function(){this.fieldMap=s.a.factory(["Data:DataType",{prop:"Design:Name",afterSetValue:function(){i.a.trigger("update-data-panel")}}]),this.mainFields=[["Design:Name"],["Data:DataType"]]},isParameter:function(){return!0}})},function(t,e,n){"use strict";function i(){return new Promise(function(e){n.e(11).then(n.bind(null,593)).then(function(t){return e(t.expression)})})}var r;n.d(e,"a",function(){return i}),r=n(382)},function(t,e,n){"use strict";function l(e,t){var n=c()('<input type="button" value="..."/>');return t&&t.addClass("d-fc-exp-input"),n.addClass("d-fc-exp-but"),n.on("click",function(t){t.preventDefault(),e.expressionEventName=e.expressionEventName||"show-expression-editor","show-expression-editor"===e.expressionEventName?o.a.trigger(e.expressionEventName,{entity:e.element,prop:e.prop,menu:void 0===e.exprMenu||e.exprMenu}):o.a.trigger(e.expressionEventName,e.element,e.prop)}),n}function i(t,e){var n,i,r=D[t.type],a=c()("<div>"),o=c()("<label>"),s=c()("<div>");return o.html(p.a.tr(t.label)),o.addClass("prop-tag"),a.append(o,s),n=r.build(t,o,s),s.children().length||s.append(n.$control),n.$control.data("control",n),n.$control.addClass("d-fc"),s.addClass("fg-body"),a.addClass("fg"),e&&e.globalType&&a[0].setAttribute("entity",e.globalType),a[0].setAttribute("field",t.prop),(i=a)[0].field=t,i[0].control=n,function(t,e){var n,i,r,a;if(!t)return;for(n=(a=Object.keys(t)).length;n--;)r=t[i=a[n]],e.attr(i,"function"==typeof r?r():r)}(t.attrs,n.$control),t.expression&&s.append(l(t,n.$control)),n.$group=a,e&&e.type&&a[0].setAttribute("field-type",e.type),{self:n,$main:a,$body:s,$label:o}}var r,a=n(0),c=n.n(a),p=n(2),o=n(1),s=n(8),d=Object(s.a)(null,{build:function(t,e,n){var i=Object(s.a)(this);return i.field=t,i.$label=e,i.$body=n,i.create.apply(i,arguments),i},isValid:function(){return!0},getValue:function(t){return t=t||this.$control,Number(t.val())||t.val()},getProp:function(){return this.field.prop}}),u=Object(s.a)(d,{create:function(t){var n,i,r,a=this,e=t.collection,o=t.value&&t.value.label||t.value;this.$control=c()("<select>"),"function"==typeof e&&(e=e.call(t.element,t)),Array.isArray(e)||c.a.isPlainObject(e)||(e=[]),t.multiple&&(o&&"string"==typeof o&&(o=o.split(",")),this.$control.attr("multiple",!0)),r=i=n=void 0,c.a.each(e,function(t,e){r="string"==typeof t?i=t:"string"==typeof e?i=e:"string"==typeof e.key&&"string"==typeof e.value?(i=e.key,e.value):i=(i=e).label||i,(n=c()("<option>")).val(i),n.text(r),i.toString()!==o&&-1===(o||[]).indexOf(i)||n.attr("selected",!0),a.$control.append(n)})},getValue:function(t){var e=[];return t=t||this.$control,c()("option:selected",t).each(function(){e.push(c()(this).val())}),1===e.length?e[0]:e}}),h=Object(s.a)(d,{create:function(t){this.$control=c()("<textarea>"),this.$control.val(t.value),this.$control.attr("type",t.type),t.readonly&&this.$control.attr("readonly",!0),this.$control.val(t.value||"")},getValue:function(t){var e;return e=(e=(t=t||this.$control).val())&&e.toString&&e.toString()}}),f=Object(s.a)(d,{create:function(t){this.$control=c()("<input/>"),this.$control.attr({type:"checkbox",checked:t.value})},getValue:function(t){return(t=t||this.$control).prop("checked")}}),g=n(14),m=n(100),b=function(t){return t===+t&&t===(0|t)},v=Object(s.a)(d,{create:function(t){this.$control=c()("<input/>"),this.$control.attr("type","number"),this.$control.val(g.a.toUnit(t.value)||t.defaultValue)},isValid:function(t){return Object(m.a)(t)||b(t)},getValue:function(t,e){var n;return t=t||this.$control,n=parseFloat(g.a.toPx(t.val()),10),e&&(n=g.a.toUnit(n)),n}}),y=(n(360),n(255)),C=Object(s.a)(d,{create:function(t){r=c.a.Deferred(),this.$control=c()("<input/>"),this.$control.attr("type",t.type),this.$control.on("change",function(){Object(y.a)(this,function(t){r.resolve(t.target.result)})})},getValue:function(){return r.promise()}}),S=Object(s.a)(d,{create:function(t,e,n){this.$control=c()("<input/>"),this.$control.attr("type","text"),this.$control.val(t.value),this.$control.css({width:"80%",display:"inline-block"}),this.$control.addClass("d-fc-exp-input"),n.append(this.$control);var i=c()("<input/>");i.attr("type","button"),i.addClass("d-fc-exp-but"),i.attr("tabindex","-1"),i.val("..."),i.on("click",function(){o.a.trigger("procedure",t.element,t)}),n.append(i)}}),x=(n(361),n(363),n(364),Object(s.a)(d,{create:function(t){var e=t.value;this.$control=c()("<input/>"),this.$control.datepicker(),this.$control.datepicker("setDate",e)},getValue:function(t){var e;return e=(t=t||this.$control).val(),new Date(e)}})),P=n(69),w=n(178),T=(n(245),n(246),Object(s.a)(d,{create:function(t,e,n){this.$control=c()("<input/>"),this.$control.attr("type",t.type),Object(w.a)("color")?this.$control.val(Object(P.a)(t.value)):(n.append(this.$control),this.$control.spectrum({color:Object(P.a)(t.value),preferredFormat:"hex",change:function(){c()(this).trigger("change keyup")}}))},isValid:function(t){return!!/#[0-9a-f]{6}|#[0-9a-f]{3}/gi.test(t)}})),k=Object(s.a)(d,{create:function(t){this.$control=c()("<input/>"),this.$control.attr("type",t.type),this.$control.val(t.value)}}),B=Object(s.a)(d,{create:function(t){this.$control=c()("<input/>"),this.$control.attr("type",t.type),t.readonly&&this.$control.attr("readonly",!0),this.$control.val(t.value)},getValue:function(t){var e;return e=(e=(t=t||this.$control).val())&&e.toString&&e.toString()}}),$=n(46),O=Object(s.a)(d,{create:function(t){this.$control=c()("<input/>"),this.$control.attr("type",t.type),this.$control.val(t.value)},isValid:function(t){return Object(m.a)(t)||b(t)},getValue:function(t){var e=(t=t||this.$control).val();return Object($.a)(e)&&(e=+e),Object(m.a)(e)?parseFloat(e,10):parseInt(e,10)}}),E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},M=Object(s.a)(d,{create:function(e){var n,i,r;if("object"!==E(e.value))return(n=c()('<textarea class="d-fc js-subcontrol-value">')).val(e.value),void(this.$control=n);n=c()('<div class="d-fc-json-field">'),Object.keys(e.value).forEach(function(t){"string"==typeof(r=e.value[t])||"number"==typeof r||"boolean"==typeof r||null===r?(i=c()('<input class="d-fc js-subcontrol-value"/>'),"boolean"==typeof r?i.attr({type:"checkbox",checked:r}):(i.attr("type","text"),i.addClass("d-fc--with-border"),i.val(null===r?"":r)),i.data("default-value",r)):(i=c()('<input type="text" class="d-fc js-subcontrol-value">')).val(JSON.stringify(r)),n.append(c()('<label class="d-fc-json-subcontrol js-subcontrol"><span class="js-subcontrol-key">'+t+"</span></label>").append(i)),n.append("<hr/>")}),this.$control=n},getValue:function(t){var e,n,i,r,a;return(t=t||this.$control).is(".d-fc-json-field")?(e={},a=r=i=n=void 0,t.find(".js-subcontrol").each(function(){n=c()(this),i=n.find(".js-subcontrol-value"),r=n.find(".js-subcontrol-key").text(),i.is('[type="checkbox"]')?e[r]=i.prop("checked"):(a=i.val())||null!==i.data("default-value")?e[r]=a:e[r]=null}),e):t.val()}}),D={select:u,textarea:h,checkbox:f,unit:v,file:C,event:S,datetime:x,color:T,url:k,text:B,number:O,json:M};e.a={getFor:function(t,e){return i(t,e)},createExpression:l}},function(t,e,n){"use strict";var i=n(4),r=function(t){for(var e,n=t+"=",i=document.cookie.split(";"),r=0,a=i.length;r<a;r+=1){for(e=i[r];" "===e.charAt(0);)e=e.substring(1);if(0===e.indexOf(n))return e.substring(n.length,e.length)}return""},a=n(83);e.a=function(){var t,e=i.a.get("cookieName"),n=r(e)||Object(a.a)(e);return e&&n&&(t=e+"="+n),t}},function(t,n,a){"use strict";(function(i){var t=a(7),e=a(50),r=a(3);n.a=t.default.createObject(t.default,{poly:!0,_init:function(){e.a._init.apply(this,arguments),this.updatePositionProps()},updatePositionProps:function(){this.prop({Left:this.x,Top:this.y})},getContainer:function(){return this.parent},movingStart:function(){this.parent&&this.parent.runActivate(),this._drag&&this._drag(this)},movingEnd:function(){this.parent.parent.activate(),this.parent.parent.showResizingComponents()},setPosition:function(t,e){this.x=parseFloat(t),this.y=parseFloat(e),this.parent.parent.render()},updateScale:function(t,e){this.processPointScale({x:t,y:e}),this.updatePositionProps()},processPointScale:function(t){t&&(this.x*=t.x,this.y*=t.y)},getPseudoPoint:function(t,e){var n=e.x-t.x,i=e.y-t.y;return n/=3,i/=3,{x:t.x+n,y:t.y+i}},createPointCircle:function(t,e,n){return Object(r.a)("circle",{cx:t,cy:e,r:n,"stroke-width":.5,stroke:"#000",fill:"#000",class:"fr-poly-point fr-hidden"})},createClickArea:function(t,e,n){var i=Object(r.a)("circle",{cx:t,cy:e,r:n,fill:"transparent",class:"fr-crosshair fr-hidden"});return i.component=this,i},createPoint:function(t){var e=2,n=7,i=t||{cx:0,cy:0},r=i.cx+this.x+this.parent.prop("CenterX"),a=i.cy+this.y+this.parent.prop("CenterY");this.g=this.createPointCircle(r,a,e),this.clickArea=this.createClickArea(r,a,n)},createBezierPointLine:function(t){var e=t||{x:0,y:0};return Object(r.a)("path",{d:"M "+e.x+","+e.y+" "+(e.x+this.x+this.parent.prop("CenterX"))+","+(e.y+this.y+this.parent.prop("CenterY")),stroke:"#000","stroke-width":.3,"stroke-dasharray":2,class:"fr-hidden"})},render:function(t){var e=t.point,n=t.line;return this.createPoint(e),this.line=this.createBezierPointLine(n),this.$g=i(this.g),this}})}).call(this,a(0))},function(t,e,n){"use strict";function i(){return new Promise(function(t){var e=o()('<div class="fr-lock_window fr-popup-container"></div>');return e.on("popup-closed",function(){e.children().length||e.remove()}),t(e)})}var r,a,o;n.d(e,"a",function(){return i}),r=n(392),a=n(0),o=n.n(a)},,,,,function(t,e,n){"use strict";function i(t){var e=i.cache[t];return e||((e=document.createElement("input")).setAttribute("type",t),e=e.type,i.cache[t]=e),e===t}i.cache={},e.a=i},,,,,,,,,,,,function(t,e,n){"use strict";n.r(e);var i=n(11);e.default=i.default.createObject(i.default,{title:"Bands GroupFooter",info:"GroupFooterBandInfo",icon:"icon-164",pos:110,type:"GroupFooterBand",disabled:!1,_init:function(){i.default._init.call(this),this.attr({pos:36,layer_defect:-1}),this.prop("Name","GroupFooter")},getFillTitleColor:function(){return"#01DF3A"}})},function(t,e,n){"use strict";function i(t){var e,n;if("string"==typeof t){if("true"===(e=t.toLowerCase()))return!0;if("false"===e)return!1;if("null"===e)return null;if("number"==typeof(n=Object(r.a)(t)))return n}return t}n.d(e,"a",function(){return i});var r=n(151)},function(t,e,n){"use strict";function i(t,e,n){var i=t.slice((n||e)+1||t.length);return t.length=e<0?t.length+e:e,t.push.apply(t,i)}n.d(e,"a",function(){return i})},function(t,e,n){"use strict";var o=n(4),i=n(25),r=n(8),p=n(201),c=n(95),a=n(29);e.a=Object(r.a)(i.a,{initMainCollection:function(t){return this.mainCollection=t,this},everyEntity:function(t){var e,n=this.all();for(e=0;e<n.length;e+=1)if(!1===t.call(this,n[e],e)||n[e].bands.count()&&!1===n[e].bands.everyEntity(t))return!1;return this},everyOwnEntity:function(t){var e,n=this.all();for(e=0;e<n.length;e++)if(!1===t.call(this,n[e],e))return!1;return this},everyBand:function(t){var e,n,i,r=this.getTopBands();for(e=0;e<r.length;e++)if(!1===r[e].bands.everyBand(t))return!1;if(this.container.isBand()&&!1===t(this.container))return!1;for(n=this.getBottomBands(),i=0;i<n.length;i++)if(!1===n[i].bands.everyBand(t))return!1},getAllBandsHeight:function(){return this.getTopBandsHeight()+this.getBottomBandsHeight()},getTopBandsHeight:function(){var t,e,n=this.getTopBands(),i=n.length,r=0,a=0;for(o.a.get("resize-bands")&&(a=o.a.get("band-indent-top")||0),t=0;t<i;t++)r+=(e=n[t]).prop("Height")+a+e.bands.getAllBandsHeight();return r},getBottomBandsHeight:function(){var t,e,n=this.getBottomBands(),i=n.length,r=0,a=0;for(o.a.get("resize-bands")&&(a=o.a.get("band-indent-top")||0),t=0;t<i;t++)r+=(e=n[t]).prop("Height")+a+e.bands.getAllBandsHeight();return r},getHeightTo:function(e,t,n){var i=0,r=0,a=0;return n=n||this.mainCollection,o.a.get("resize-bands")&&(r=o.a.get("band-indent-top")||0),n.everyBand(function(t){if(e===t)return a=i,!1;i+=t.prop("Height")+r}),(t||0)+a},updateThreshold:function(){return this.mainCollection.everyEntity(function(t){t.updateThreshold()}),this},componentsIn:function(n,i){var r=[],a=void 0,o=void 0,s=void 0,l=void 0,c=void 0;return this.everyEntity(function(e){e.components.eachEntity(function(t){t.attr("selectable")&&(a=e.prop("Top"),o=t.prop("Left"),s=t.attr("right"),l=t.prop("Top")+a,c=t.attr("bottom")+a,Object(p.a)(n,i,s<o?[s,o]:[o,s],c<l?[c,l]:[l,c])&&r.push(t))})}),r},add:function(t,e){var n,i,r,a,o,s,l;for(t.collection&&t.collection.remove(t),t.collection=this,-1<e?this.entities.splice(e,0,t):this.entities.push(t),Object(c.a)(this.entities),n=[],i=[],o=a=r=0;o<this.entities.length;o++)(s=this.entities[o])&&(!0===s.attr("placeAboveParent")?(n.push({entity:s,inx:r}),r+=1):(i.push({entity:s,inx:a}),a+=1));return l=function(t,e){var n=t.entity.attr("pos"),i=e.entity.attr("pos");return n<i?-1:i<n?1:t.inx<e.inx?-1:t.inx>e.inx?1:0},n.sort(l),i.sort(l),n=n.map(function(t){return t.entity}),i=i.map(function(t){return t.entity}),this.entities=n.concat(i),this},getTopBands:function(){var e=[];return this.everyOwnEntity(function(t){t&&!0===t.attr("placeAboveParent")&&e.push(t)}),e},getBottomBands:function(){var e=[];return this.everyOwnEntity(function(t){t&&!0!==t.attr("placeAboveParent")&&e.push(t)}),e},findInsideCoord:function(t){var e=null,n=t[0],i=t[1];return this.everyBand(function(t){n>=t.prop("Left")&&i>=t.prop("Top")&&n<=t.prop("Left")+t.prop("Width")&&i<=t.prop("Top")+t.prop("Height")&&(e=t)}),e},remove:function(t,e){if(t)return(!(1<arguments.length&&void 0!==e)||e)&&t.bands.entities.forEach(function(t){t.bands.remove(t)}),Object(a.a)(this.entities,t),this},clear:function(){return this.everyEntity(function(t){return t.$g.remove()}),this.entities.length=0,this}})},function(t,e,n){"use strict";n(322);var i=n(0),r=n.n(i);e.a=function(){var t=r()("<div>"),e=r()("<span>");return t.addClass("d-tooltip"),t.append(e),t}},function(t,e,n){"use strict";var i=n(0),o=n.n(i),s=n(12),r=n(247),a=n(25),l=n(8),c=n(18);e.a=Object(l.a)(s.a,{type:"Highlight",_init:function(t){this._id=t||"hgh"+Object(c.a)(),this.conditions=a.a.create(this)},create:function(){var t=this.createObject(this);return t._init.apply(t,arguments),t},clone:function(){var e=s.a.clone.apply(this,arguments);return this.conditions.eachEntity(function(t){return e.conditions.add(t.clone())}),e},fillPropsNET:function(t){s.a.fillPropsNET.apply(this,arguments);var e,n=t.find("> Condition"),i=this;return n.length&&o.a.each(n,function(){(e=r.a.create()).fillPropsNET(o()(this)),i.conditions.add(e)}),this},toXMLNET:function(a){var t=this;return new Promise(function(r){s.a.toXMLNET.call(t,a).then(function(e){var n,i=o()(e.xml);a=Object.assign({parentNode:i[0]},a),n=[],t.conditions&&t.conditions.eachEntity(function(t){n.push(t.toXMLNET(a))}),Promise.all(n).then(function(t){return t.forEach(function(t){i.append(t)}),r(e)})})})}})},function(t,e,n){"use strict";var i=(r.prototype.getMain=function(){return this.lExport=!1,this.rExport=!0,this.toString()},r.prototype.getPseudo=function(){return this.lExport=!0,this.rExport=!1,this.toString()},r.prototype.rightCurve=function(t){this.rightCurve=!!t},r.prototype.leftCurve=function(t){this.leftCurve=!!t},r.prototype.toString=function(){return this.x+"/"+this.y+(this.lExport&&this.leftCurve?"/L/"+this.cLeftX+"/"+this.cLeftY:"")+(this.rExport&&this.rightCurve?"/R/"+this.cRightX+"/"+this.cRightY:"")},r);function r(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var e=t.split("/"),n=void 0;this.leftCurve=!1,this.rightCurve=!1,-1!==(n=e.indexOf("L"))&&(this.leftCurve=!0,this.lExport=!0,this.cLeftX=parseFloat(e[++n]),this.cLeftY=parseFloat(e[++n])),-1!==(n=e.indexOf("R"))&&(this.rightCurve=!0,this.rExport=!0,this.cRightX=parseFloat(e[++n]),this.cRightY=parseFloat(e[++n])),this.x=parseFloat(e[0]),this.y=parseFloat(e[1])}e.a=i},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(25),o=n(8),s=n(29);e.a=Object(o.a)(a.a,{everyEntity:function(t){for(var e=this.all(),n=e.length,i=0;i<n;i+=1)if(!1===t.call(this,e[i],i)||e[i].parameters.count()&&!1===e[i].parameters.everyEntity(t))return!1;return this},findBy:function(e){var n,i,r,a=[],o=Object.keys(e),s=o.length;return this.everyEntity(function(t){for(n=s;n--;)if(i=o[n],r=e[i],t[i]!==r&&t.attr(i)!==r)return;a.push(t)}),a},remove:function(t){return!!t&&(r.a.each(t.parameters.entities,function(){this.parameters.remove(this)}),Object(s.a)(this.entities,t),this)}})},function(t,e,n){"use strict";function i(t){return t.replace(/^[\s\S]*?(<Report |<inherited |<TfrxReport |<ReportFunctions>)/,function(t,e){return e})}n.d(e,"a",function(){return i})},function(t,e,n){"use strict";var i=n(4);e.a=function(t,e,n){return fetch(i.a.get("makePreview",{id:t})+(n?"&"+n:""),{headers:{"Content-Type":"text/html"},method:"POST",body:e})}},function(t,e,n){"use strict";var i,r,a,o,s,l,d,c,u,p,h,f,g,m,b;n.r(e),n(366),n(367),n(368),i=n(0),r=n.n(i),a=n(4),o=n(2),s=n(34),l=n(1),d=n(26),c=n(8),u=function(t,e,n,i){return t.slice(0,e)+i+t.slice(e+Math.abs(n))},p=Object(c.a)(l.a,{_init:function(){var p=this.trigger;this.bind("procedure",function(l,c){var t=window.DSG.currentReport;t.code.isRestricted()||(p("activate",t.code),l=l||t.getSelected(),r.a.when(t.code.isReady()).done(function(t){var e,n=t.editor,i=(!l.isReport()&&l.prop("Name")||"")+"_"+c.eventName,r="ReportScript",a=t.getCode()||n.getValue(),o=a.search(i),s=a.search(r);if(o<0){if(s<0)return void Object(d.a)("Could not create event handler due to errors in source code",{danger:!0,trans:!0});e=c.eventStatement.replace("%event%",i),a=u(a,s+r.length+10,0,"\t\t"+e+"\n\t\t{\n\t\t\t\n\t\t}\n\n"),n.setValue(a),n.setCursor(19,11),n.focus()}l.prop(c.prop,i),p("update-events-panel",l)}))})}}),h=n(18),f=n(77),g=function(){return'<div class="code-container"><textarea id="code-editor">\nusing System;\nusing System.Collections;\nusing System.Collections.Generic;\nusing System.ComponentModel;\nusing System.Windows.Forms;\nusing System.Drawing;\nusing System.Data;\nusing FastReport;\nusing FastReport.Data;\nusing FastReport.Dialog;\nusing FastReport.Barcode;\nusing FastReport.Table;\nusing FastReport.Utils;\n\nnamespace FastReport\n{\n public class ReportScript\n {\n \n }\n};\n</textarea></div>'},m=n(58),b=n.n(m),n(369),n(370),n(371),n(372),n(373),n(374),n(376),n(203),e.default=s.a.createObject(s.a,{icon:"icon-061",type:"ScriptText",create:function(){return this.createObject(this,{defer:r.a.Deferred(),init:function(){this.SM.add(this),this._id="code"+Object(h.a)(),this.editor=null,this.attr({isHidden:!0,activated:!1,code:null}),this.createWorkspace("code"),this.report=null,p.create()}})},createWorkspace:function(t){this.workspace=r()("<div>"),this.$workspace=r()(this.workspace),this.$workspace.addClass(t)},isReady:function(){return this.defer.promise()},initDefault:function(){var e=this,t=r()(g());this.$code=r()("#code-editor",t),this.$workspace.html(t),this.editor=b.a.fromTextArea(this.$code[0],{lineNumbers:!0,matchBrackets:!0,styleActiveLine:!0,highlightSelectionMatches:{showToken:/\w/},mode:"text/x-csharp",theme:"neat"}),this.editor.display.wrapper.style="height: auto;",this.editor.on("change",function(t){e.attr("code",t.getValue())}),this.setMode(this.report.prop("ScriptLanguage")),this.defer.resolve(this)},setMode:function(t){switch(t.toLowerCase()){case"vb":t="text/vbscript";break;case"csharp":t="text/x-csharp";break;case"pascalscript":t="text/pascal";break;default:throw new Error("wrong mode")}this.editor.setOption("mode",t)},isRestricted:function(){return this.report.prop("CodeRestricted")||a.a.get("CodeRestricted")},isCode:function(){return!0},_show:function(){this.attr("code")&&this.editor.setValue(this.attr("code")),this.editor.setCursor(17,9),this.editor.focus()},show:function(){this._super._super.show.apply(this,arguments),this.report.$workspace.addClass("fr-hidden"),"resolved"!==this.isReady().state()&&this.initDefault(),this._show()},setCode:function(t){this.attr("code",t)},getCode:function(){return this.attr("code")},render:function(){},remove:function(){},toXMLNET:function(t){var i=this;return new Promise(function(n){i._super._super.toXMLNET.call(i,t).then(function(t){var e=r()(t.xml);return i.getCode()?e.text(Object(f.a)(i.getCode())):e=null,n({xml:e?e[0]:null})})})},toXMLVCL:function(e){var n=this;return new Promise(function(t){return r()(e.parentNode).attr("ScriptText.Text",Object(f.a)(n.getCode())),t(r()(e.parentNode))})},toString:function(){return o.a.tr("Workspace Code")}})},function(t,e,n){"use strict";var r=function(t,e){return 0<Math.max(0,Math.min(t[1],e[1])-Math.max(t[0],e[0]))},a=function(t,e){return 0<Math.max(0,Math.min(t[1],e[1])-Math.max(t[0],e[0]))};e.a=function(t,e,n,i){return r(t,n)&&a(e,i)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e);var i=n(11);e.default=i.default.createObject(i.default,{title:"Bands ReportSummary",info:"ReportSummaryBandInfo",icon:"icon-155",pos:20,type:"ReportSummaryBand",disabled:!1,_init:function(){i.default._init.call(this),this.prop("Name","ReportSummary"),this.attr("pos",60)}})},function(t,e,n){"use strict";n.r(e);var i=n(11);e.default=i.default.createObject(i.default,{title:"Bands ColumnHeader",info:"ColumnHeaderBandInfo",icon:"icon-158",pos:50,type:"ColumnHeaderBand",disabled:!1,_init:function(){i.default._init.call(this),this.prop("Name","ColumnHeader"),this.attr("pos",30)}})},function(t,e,n){"use strict";n.r(e);var i=n(11);e.default=i.default.createObject(i.default,{title:"Bands ColumnFooter",info:"ColumnFooterBandInfo",icon:"icon-159",pos:60,type:"ColumnFooterBand",disabled:!1,_init:function(){i.default._init.call(this),this.prop("Name","ColumnFooter"),this.attr("pos",50)}})},function(t,e,n){"use strict";n.r(e);var i=n(11);e.default=i.default.createObject(i.default,{title:"Bands DataHeader",info:"DataHeaderBandInfo",icon:"icon-160",pos:70,type:"DataHeaderBand",disabled:!1,_init:function(){i.default._init.call(this),this.defaultValues={SortOrder:"Ascending"},this.prop("Name","DataHeader"),this.attr({pos:34,layer_defect:-1,placeAboveParent:!0})},getFillTitleColor:function(){return this._parent&&this._parent.getFillTitleColor()}})},function(t,e,n){"use strict";n.r(e);var i=n(11);e.default=i.default.createObject(i.default,{title:"Bands DataFooter",info:"DataFooterBandInfo",icon:"icon-161",pos:90,type:"DataFooterBand",disabled:!1,_init:function(){i.default._init.call(this),this.prop("Name","DataFooter"),this.attr({pos:37,layer_defect:-1})},getFillTitleColor:function(){return this._parent&&this._parent.getFillTitleColor()}})},function(t,e,n){"use strict";n.r(e);var i=n(11);e.default=i.default.createObject(i.default,{title:"Bands Overlay",info:"OverlayBandInfo",icon:"icon-166",pos:130,type:"OverlayBand",disabled:!1,_init:function(){i.default._init.call(this),this.prop("Name","Overlay"),this.attr("pos",80)}})},function(t,e,n){"use strict";function i(){this.render(),this.fieldMap.remove(["Appearance:Barcode"]),this.fieldMap.append([this.getBarcodeProps()]),l.a.trigger("update-properties-panel",this)}var r,a,o,s,l,c,p,d,u,h,f,g,m,b,v,y,C,S,x,P,w,T,k,B,$,O,E,M,D,A,j,F,L,R,N,W,H,_,z,V,I,G,X,U,Y,K,q,J,Z,Q,tt,et,nt,it,rt,at,ot,st,lt,ct,pt,dt,ut,ht,ft,gt,mt,bt,vt,yt,Ct,St,xt,Pt,wt;function Tt(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,Tt),this._config=null}n.r(e),r=n(0),a=n.n(r),o=n(2),s=n(44),l=n(1),c=n(8),p=n(10),d=n(60),u=n(12),h=n(6),f=n(93),g=n(71),m=n(84),b=n(22),v=new b.a,y="__favorite_fields_user_config",Tt.prototype.getConfig=function(n){var i=this;return new Promise(function(e){i._config&&e(n?i._config[n]:i._config),m.a.getItem(y).then(function(t){i._config=t,e(n&&i._config?i._config[n]:i._config)}).catch(function(t){v.error(t),e()})})},Tt.prototype.updateFavoritesState=function(t,e,n){var i,r;this._config?(r={append:function(t,e){var n=[];return t&&(n=t),e.forEach(function(t){-1===n.indexOf(t)&&n.push(t)}),n},remove:function(t,e){var n=[];return t&&(n=t),e.forEach(function(t){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}),n}},n&&r[n]?this._config[t]=r[n](this._config[t],e):this._config[t]=e):this._config=((i={})[t]=e,i),this.updateStorage()},Tt.prototype.updateStorage=function(){m.a.setItem(y,this._config)},C=new Tt,S=[],Object(h.a)(u.a,{_favMap:{},fillFavorites:function(){var e=this;S.includes(this.type)||C.getConfig(this.type).then(function(t){t&&(e._favMap.map=p.a.factory(t,null,null,!0),S.push(e.type),l.a.trigger("update-properties-panel"))})},addFavorite:function(t){var e;e=Object(g.c)(t),C.updateFavoritesState(this.type,e,"append"),this._favMap.map?this._favMap.map.append(e,this._favMap.map,!0):this._favMap.map=p.a.factory(e,null,null,!0),l.a.trigger("update-properties-panel")},buildFavMap:function(t){this._favMap.map=p.a.factory(t,null,null,!0)},removeFavorite:function(t){var e;if(!this._favMap.map)return!1;e=Object(g.c)(t),C.updateFavoritesState(this.type,e,"remove"),this._favMap.map.remove(e,this._favMap.map,!0),l.a.trigger("update-properties-panel")},_updateProperties:function(){this.fieldMap&&window.DSG.currentReport.getSelected()===this&&l.a.trigger("update-properties-panel")}}),Object(h.a)(d.a,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Design:ReportInfo","Design:StoreInResources","Email:EmailSettings","Engine","Misc:AutoFillDataSet","Misc:MaxPages","Misc:SmoothGraphics","Misc:TextQuality","Print:PrintSettings:PrintSettings.Collate","Print:PrintSettings:PrintSettings.Copies","Print:PrintSettings:PrintSettings.CopyNames","Print:PrintSettings:PrintSettings.Duplex","Print:PrintSettings:PrintSettings.PageNumbers","Print:PrintSettings:PrintSettings.PageRange","Print:PrintSettings:PrintSettings.PagesOnSheet","Print:PrintSettings:PrintSettings.PaperSource","Print:PrintSettings:PrintSettings.Printer","Print:PrintSettings:PrintSettings.PrintMode","Print:PrintSettings:PrintSettings.PrintOnSheetHeight","Print:PrintSettings:PrintSettings.PrintOnSheetRawPaperSize","Print:PrintSettings:PrintSettings.PrintOnSheetWidth","Print:PrintSettings:PrintSettings.PrintPages","Print:PrintSettings:PrintSettings.PrintToFile","Print:PrintSettings:PrintSettings.PrintToFileName","Print:PrintSettings:PrintSettings.Reverse","Print:PrintSettings:PrintSettings.SavePrinterWithReport","Print:PrintSettings:PrintSettings.ShowDialog","Script"])}}),(x=n.c[41])&&Object(h.a)(x.exports.default,{_favMap:{},fillMap:function(){var r=Object(f.a)(this.update,250);this.fieldMap=p.a.factory(["Appearance:Border:Border.Shadow","Appearance:Border:Border.ShadowColor","Appearance:Border:Border.ShadowWidth",{prop:"Appearance:Columns:Columns.Count",afterSetValue:function(){this.prop("Columns.Width",this.attr("Width")/this.prop("Columns.Count")),r.call(this)},attrs:{min:1},defaultValue:1},"Appearance:Columns:Columns.Position",{prop:"Appearance:Columns:Columns.Width",afterSetValue:r,getValue:function(){return this.prop("Columns.Width")||this.attr("Width")}},"Appearance:Fill:Fill.Color","Appearance:Watermark:Watermark.Enabled","Appearance:Watermark:Watermark.Font","Appearance:Watermark:Watermark.Image","Appearance:Watermark:Watermark.ImageSize","Appearance:Watermark:Watermark.ImageTransparency","Appearance:Watermark:Watermark.ShowImageOnTop","Appearance:Watermark:Watermark.ShowTextOnTop","Appearance:Watermark:Watermark.Text","Appearance:Watermark:Watermark.TextFill:Watermark.TextFill.Color","Appearance:Watermark:Watermark.TextRotation","Behavior:BackPage","Behavior:MirrorMargins","Behavior:PrintOnPreviousPage","Behavior:ResetPageNumber","Behavior:StartOnOddPage","Behavior:TitleBeforeHeader","Behavior:Visible","Data:OutlineExpression","Design:Name",{prop:"Design:ExtraDesignWidth",afterSetValue:r},"Paper:BottomMargin",{prop:"Paper:Landscape",setValue:function(t,e){var n,i;this.prop(t)!==e&&(this.prop(t,e),n=this.prop("PaperWidth"),i=this.prop("PaperHeight"),this.prop("PaperWidth",i),this.prop("PaperHeight",n),r.call(this))}},{prop:"Paper:LeftMargin",afterSetValue:r},{prop:"Paper:PaperWidth",afterSetValue:r},"Paper:PaperHeight","Paper:RawPaperSize",{prop:"Paper:RightMargin",afterSetValue:r},"Paper:TopMargin",{prop:"Paper:UnlimitedHeight",type:"checkbox"},{prop:"Paper:UnlimitedWidth",type:"checkbox"},"Print:Duplex","Print:FirstPageSource","Print:OtherPagesSource"]),this.mainFields=[["Design:Name"],["Paper:PaperWidth","Paper:PaperHeight"]]}}),(P=n.c[11])&&Object(h.a)(P.exports.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:Border","Appearance:Cursor","Appearance:EvenStyle","Appearance:EvenStylePriority","Appearance:Fill:Fill.Color","Appearance:HoverStyle","Appearance:Style","Behavior:CanBreak","Behavior:CanGrow","Behavior:CanShrink","Behavior:Exportable","Behavior:FirstRowStartsNewPage","Behavior:KeepChild","Behavior:Printable","Behavior:PrintOn","Behavior:PrintOnBottom","Behavior:RepeatOnEveryPage","Behavior:StartNewPage","Behavior:Visible","Design:Name","Design:Restrictions","Layout:Height"]),this.mainFields=[["Design:Name"],["Layout:Height"]]}}),(w=n.c[112])&&Object(h.a)(w.exports.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:BackColor","Appearance:Font","Appearance:FormBorderStyle","Appearance:RightToLeft","Appearance:Text","Behavior:Visible","Design:Name",{prop:"Layout:Width",type:"number",attrs:{step:1}},{prop:"Layout:Height",type:"number",attrs:{step:1}},"Misc:AcceptButton","Misc:CancelButton"]),this.mainFields=[["Design:Name"],["Layout:Width","Layout:Height"]]}}),T=n(167),k=n(168),B=T.a.fillMap,Object(h.a)(T.a,{fillMap:function(){B.call(this),this.fieldMap.append(["Data:Calculated","Data:Expression","Design:BindableControl","Design:CustomBindableControl","Design:Format"]),this.mainFields.push(["Design:BindableControl"])}}),$=k.a.fillMap,Object(h.a)(k.a,{fillMap:function(){$.call(this),this.fieldMap.append(["Data:Expression","Misc:Description"])}}),O=n(163),E=n(242),M=Object.assign||function(t){var e,n,i;for(e=1;e<arguments.length;e++)for(i in n=arguments[e])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t},Object(h.a)(O.default,{_favMap:{},getBarcodeProps:function(){return{prop:"Appearance:Barcode",label:"Barcode",fields:M({Barcode:{label:"Type",type:"select",origin:"Appearance:Barcode:Barcode",collection:Object.keys(E),afterSetValue:i}},E[this.prop("Barcode")].fields)}},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:Angle","Appearance:AsBitmap","Appearance:Border","Appearance:Cursor","Appearance:EvenStyle","Appearance:EvenStylePriority","Appearance:Fill:Fill.Color","Appearance:Style","Appearance:HoverStyle",{prop:"Appearance:Zoom",type:"number",attrs:{min:1},afterSetValue:function(){this.render()}},this.getBarcodeProps(),{prop:"Behavior:AutoSize",label:"AutoSize",afterSetValue:function(){this.reactivate()}},"Behavior:CanGrow","Behavior:CanShrink","Behavior:Exportable","Behavior:GrowToBottom","Behavior:HideIfNoData","Behavior:Printable","Behavior:PrintOn","Behavior:ShiftMode","Behavior:ShowText","Behavior:Visible","Data:AllowExpressions","Data:Brackets","Data:DataColumn","Data:Expression","Data:NoDataText","Data:Text","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock","Layout:Height","Layout:Left","Layout:Padding","Layout:Top","Layout:Width","Navigation:Hyperlink"]),this.mainFields=[["Data:Text"],["Appearance:Barcode:Barcode"]]}}),D=n(156),Object(h.a)(D.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:Border",{prop:"Appearance:CellWidth",type:"unit",afterSetValue:this.setMinWH},{prop:"Appearance:CellHeight",type:"unit",afterSetValue:this.setMinWH},"Appearance:Cursor","Appearance:EvenStyle","Appearance:EvenStylePriority","Appearance:Fill:Fill.Color","Appearance:Font","Appearance:HorzAlign",{prop:"Appearance:HorzSpacing",type:"unit"},"Appearance:HoverStyle","Appearance:ParagraphOffset","Appearance:Style","Appearance:TextFill","Appearance:TextOutline","Appearance:VertAlign",{prop:"Appearance:VertSpacing",type:"unit"},"Behavior:CanGrow","Behavior:CanShrink","Behavior:Duplicates","Behavior:Editable","Behavior:Exportable","Behavior:GrowToBottom","Behavior:HideValue","Behavior:HideZeros","Behavior:NullValue","Behavior:Printable","Behavior:PrintOn","Behavior:ProcessAt","Behavior:ShiftMode","Behavior:Visible","Behavior:WordWrap","Data:AllowExpressions","Data:Brackets","Data:Format","Data:Highlight","Data:Text","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock","Layout:Height","Layout:Left","Layout:Top","Layout:Width","Navigation:Hyperlink"]),this.mainFields=[["Design:Name"],["Data:Text"]]}}),A=n(155),Object(h.a)(A.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:Border",{prop:"Appearance:CheckColor",type:"color",label:"CheckColor"},{prop:"Appearance:CheckedSymbol",type:"select",label:"CheckedSymbol",collection:["Check","Cross","Plus","Fill"]},{prop:"Appearance:CheckWithRatio",type:"number",attrs:{min:.2,max:2,step:.1}},"Appearance:Cursor","Appearance:EvenStyle","Appearance:EvenStylePriority","Appearance:Fill:Fill.Color","Appearance:Style","Appearance:HoverStyle",{prop:"Appearance:UncheckedSymbol",label:"UncheckedSymbol",type:"select",collection:["None","Cross","Minus"]},"Behavior:CanGrow","Behavior:CanShrink","Behavior:Editable","Behavior:Exportable","Behavior:GrowToBottom",{prop:"Behavior:HideIfUnchecked",type:"checkbox",label:"HideIfUnchecked"},"Behavior:Printable","Behavior:PrintOn","Behavior:ShiftMode","Behavior:Visible",{prop:"Data:Checked",type:"checkbox",label:"Checked"},"Data:DataColumn","Data:Expression","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock","Layout:Height","Layout:Left","Layout:Top","Layout:Width","Navigation:Hyperlink"]),this.mainFields=[["Data:Checked","Appearance:CheckColor"],["Appearance:CheckedSymbol","Appearance:UncheckedSymbol"]]}}),j=n(160),Object(h.a)(j.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:Border","Appearance:Cursor","Appearance:EvenStyle","Appearance:EvenStylePriority","Appearance:Fill:Fill.Color","Appearance:HoverStyle","Appearance:Style","Behavior:BreakTo","Behavior:CanBreak","Behavior:CanGrow","Behavior:CanShrink","Behavior:Duplicates","Behavior:Exportable","Behavior:GrowToBottom","Behavior:HideValue","Behavior:HideZeros","Behavior:NullValue","Behavior:Printable","Behavior:PrintOn","Behavior:ProcessAt","Behavior:RightToLeft","Behavior:ShiftMode","Behavior:Visible","Data:AllowExpressions","Data:Brackets","Data:Format","Data:Text","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock","Layout:Height","Layout:Left","Layout:Padding","Layout:Top","Layout:Width","Navigation:Hyperlink"]),this.mainFields=[["Design:Name"],["Data:Text"]]}}),F=n(127),Object(h.a)(F.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:Border","Appearance:Cursor",{prop:"Appearance:Diagonal",type:"checkbox",label:"Diagonal"},{prop:"Appearance:StartCap:StartCap.Height",label:"Height",extraLabel:"StartCap height",type:"number"},{prop:"Appearance:StartCap:StartCap.Style",label:"Style",extraLabel:"StartCap style",type:"select",collection:F.default.tips},{prop:"Appearance:StartCap:StartCap.Width",label:"Width",extraLabel:"StartCap width",type:"number"},{prop:"Appearance:EndCap:EndCap.Height",label:"Height",extraLabel:"EndCap height",type:"number"},{prop:"Appearance:EndCap:EndCap.Style",label:"Style",extraLabel:"EndCap style",type:"select",collection:F.default.tips},{prop:"Appearance:EndCap:EndCap.Width",label:"Width",extraLabel:"EndCap width",type:"number"},"Appearance:EvenStyle","Appearance:EvenStylePriority","Appearance:Style","Appearance:HoverStyle","Behavior:CanGrow","Behavior:CanShrink","Behavior:Exportable","Behavior:GrowToBottom","Behavior:Printable","Behavior:PrintOn","Behavior:ShiftMode","Behavior:Visible","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock","Layout:Height","Layout:Left","Layout:Top","Layout:Width","Navigation:Hyperlink"]),this.mainFields=[["Appearance:StartCap:StartCap.Height","Appearance:StartCap:StartCap.Style","Appearance:StartCap:StartCap.Width"],["Appearance:EndCap:EndCap.Height","Appearance:EndCap:EndCap.Style","Appearance:EndCap:EndCap.Width"]]}}),L=n(117),Object(h.a)(L.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:Border","Appearance:Cursor","Appearance:EvenStyle","Appearance:EvenStylePriority","Appearance:Fill:Fill.Color","Appearance:HoverStyle","Appearance:Style",{prop:"Behavior:AdjustSpannedCellsWidth",type:"checkbox"},{prop:"Behavior:AutoSize",afterSetValue:function(){this.showResizingComponents()}},{prop:"Behavior:CellsSideBySide",type:"checkbox"},"Behavior:Exportable",{prop:"Behavior:KeepCellsSideBySide",type:"checkbox"},"Behavior:Layout",{prop:"Behavior:MatrixEventStylePriority",type:"select",collection:["Rows","Columns"]},"Behavior:Printable","Behavior:PrintOn",{prop:"Behavior:RepeatHeaders",type:"checkbox"},"Behavior:ShiftMode",{prop:"Behavior:ShowTitle",type:"checkbox",afterSetValue:this.onShowTitleChange},"Behavior:Visible",{prop:"Behavior:WrappedGap",type:"unit"},"Data:DataSource","Data:Filter","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock","Layout:Height","Layout:Left","Layout:Top","Layout:Width","Navigation:Hyperlink"]),this.mainFields=[["Design:Name"],["Data:DataSource"]]}}),R=n(153),Object(h.a)(R.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:Angle","Appearance:Border","Appearance:Cursor","Appearance:EvenStyle","Appearance:EvenStylePriority","Appearance:Fill:Fill.Color","Appearance:Grayscale","Appearance:HoverStyle","Appearance:Style","Appearance:Tile","Appearance:Transparency","Appearance:TransparentColor","Behavior:CanGrow","Behavior:CanShrink","Behavior:Exportable","Behavior:GrowToBottom","Behavior:Printable","Behavior:PrintOn","Behavior:ShiftMode","Behavior:ShowErrorImage","Behavior:SizeMode","Behavior:Visible","Data:DataColumn","Data:Image","Data:ImageLocation","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock","Layout:Height","Layout:Left","Layout:Top","Layout:Width","Layout:MaxHeight","Layout:MaxWidth","Layout:Padding","Navigation:Bookmark","Navigation:Hyperlink"]),this.mainFields=[["Data:Image","Data:ImageLocation"],["Data:DataColumn"]]}}),N=n(161),Object(h.a)(N.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:Angle","Appearance:Border","Appearance:Cursor","Appearance:EvenStyle","Appearance:EvenStylePriority","Appearance:Fill:Fill.Color","Appearance:Grayscale","Appearance:HoverStyle","Appearance:Style","Appearance:Tile","Appearance:Transparency","Appearance:TransparentColor","Behavior:CanGrow","Behavior:CanShrink","Behavior:Exportable","Behavior:GrowToBottom","Behavior:Printable","Behavior:PrintOn","Behavior:ShiftMode","Behavior:ShowErrorImage","Behavior:SizeMode","Behavior:Visible","Data:DataColumn","Data:ImageLocation","Design:Name","Design:Restrictions","Design:Tag","Layout:Anchor","Layout:Dock","Layout:Height","Layout:Left","Layout:Top","Layout:Width","Layout:MaxHeight","Layout:MaxWidth","Layout:Padding","Misc:MaxSvgHeight","Misc:MaxSvgWidth","Misc:SvgDocument","Misc:SvgGrayscale","Navigation:Bookmark","Navigation:Hyperlink"]),this.mainFields=[["Data:ImageLocation"],["Data:DataColumn"]]}}),W=n(154),Object(h.a)(W.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:Border","Appearance:Cursor","Appearance:EvenStyle","Appearance:EvenStylePriority","Appearance:Fill:Fill.Color","Appearance:Style","Appearance:HoverStyle","Behavior:BreakTo","Behavior:CanGrow","Behavior:CanBreak","Behavior:CanShrink","Behavior:Duplicates","Behavior:Editable","Behavior:Exportable","Behavior:GrowToBottom","Behavior:HideValue","Behavior:HideZeros","Behavior:NullValue","Behavior:Printable","Behavior:PrintOn","Behavior:ProcessAt","Behavior:ShiftMode","Behavior:Visible","Data:AllowExpressions","Data:Brackets","Data:DataColumn","Data:Format","Data:Text","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock","Layout:Height","Layout:Left","Layout:Top","Layout:Width","Layout:Padding",{prop:"Misc:OldBreakStyle",type:"checkbox"},"Navigation:Hyperlink"]),this.mainFields=[["Design:Name"]]}}),H=n(140),Object(h.a)(H.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:Border","Appearance:Cursor","Appearance:Curve","Appearance:EvenStyle","Appearance:EvenStylePriority","Appearance:Fill:Fill.Color","Appearance:HoverStyle",{prop:"Appearance:Shape",type:"select",label:"Shape",collection:H.default.figures},"Appearance:Style","Behavior:CanGrow","Behavior:CanShrink","Behavior:Exportable","Behavior:GrowToBottom","Behavior:Printable","Behavior:PrintOn","Behavior:ShiftMode","Behavior:Visible","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock","Layout:Height","Layout:Left","Layout:Top","Layout:Width","Navigation:Hyperlink"]),this.mainFields=[["Design:Name"],["Appearance:Shape"]]}}),_=n(141),Object(h.a)(_.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:Border","Appearance:Cursor","Appearance:Curve","Appearance:EvenStyle","Appearance:EvenStylePriority","Appearance:Fill:Fill.Color","Appearance:HoverStyle",{prop:"Appearance:Shape",type:"select",label:"Shape",collection:_.default.figures},"Appearance:Style","Behavior:CanGrow","Behavior:CanShrink","Behavior:Exportable","Behavior:GrowToBottom","Behavior:Printable","Behavior:PrintOn","Behavior:ShiftMode","Behavior:Visible","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock","Layout:Height","Layout:Left","Layout:Top","Layout:Width","Navigation:Hyperlink"]),this.mainFields=[["Design:Name"],["Appearance:Shape"]]}}),z=n(47),Object(h.a)(z.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:Border","Appearance:Cursor","Appearance:Curve","Appearance:EvenStyle","Appearance:EvenStylePriority","Appearance:Fill:Fill.Color","Appearance:HoverStyle","Appearance:Style","Behavior:CanGrow","Behavior:CanShrink","Behavior:Exportable","Behavior:GrowToBottom","Behavior:Printable","Behavior:PrintOn","Behavior:ShiftMode","Behavior:Visible","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock","Layout:Height","Layout:Left","Layout:Top","Layout:Width","Navigation:Hyperlink"]),this.mainFields=[["Design:Name"]]}}),V=n(157),Object(h.a)(V.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:Border","Appearance:Cursor","Appearance:EvenStyle","Appearance:EvenStylePriority","Appearance:Fill:Fill.Color","Appearance:HoverStyle","Appearance:Inverted","Appearance:LinearPointer","Appearance:Scale:Font","Appearance:Scale:MajorTicks","Appearance:Scale:MinorTicks","Appearance:Style","Behavior:CanGrow","Behavior:CanShrink","Behavior:Exportable","Behavior:GrowToBottom","Behavior:Printable","Behavior:PrintOn","Behavior:ShiftMode","Behavior:Visible","Data:Expression","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock","Layout:Height","Layout:Left","Layout:Top","Layout:Width","Layout:Maximum","Layout:Minimum","Layout:Value","Navigation:Hyperlink"]),this.mainFields=[["Design:Name"],["Data:Expression"]]}}),I=n(142),Object(h.a)(I.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:Border","Appearance:Cursor","Appearance:EvenStyle","Appearance:EvenStylePriority","Appearance:Fill:Fill.Color","Appearance:HoverStyle","Appearance:Inverted",{prop:"Appearance:Type",type:"select",label:"Type",collection:I.default.types},"Appearance:SemicircleOffset","Appearance:LinearPointer","Appearance:Scale:Font","Appearance:Scale:MajorTicks","Appearance:Scale:MinorTicks","Appearance:Style","Behavior:CanGrow","Behavior:CanShrink","Behavior:Exportable","Behavior:GrowToBottom","Behavior:Printable","Behavior:PrintOn","Behavior:ShiftMode","Behavior:Visible","Data:Expression","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock","Layout:Height","Layout:Left","Layout:Top","Layout:Width","Layout:Maximum","Layout:Minimum","Layout:Value","Navigation:Hyperlink"]),this.mainFields=[["Design:Name","Layout:Value","Appearance:Type"],["Data:Expression"]]}}),G=n(158),Object(h.a)(G.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:Border","Appearance:Cursor","Appearance:EvenStyle","Appearance:EvenStylePriority","Appearance:Fill:Fill.Color","Appearance:Style","Appearance:HoverStyle","Appearance:Pointer","Appearance:Scale","Behavior:CanGrow","Behavior:CanShrink","Behavior:Exportable","Behavior:GrowToBottom","Behavior:Printable","Behavior:PrintOn","Behavior:ShiftMode","Behavior:Visible","Data:Expression","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock","Layout:Height","Layout:Left","Layout:Top","Layout:Width","Layout:Maximum","Layout:Minimum","Layout:Value","Navigation:Hyperlink"]),this.mainFields=[["Design:Name"],["Data:Expression"]]}}),X=n(159),Object(h.a)(X.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:Border","Appearance:Cursor","Appearance:EvenStyle","Appearance:EvenStylePriority","Appearance:Fill:Fill.Color","Appearance:HoverStyle","Appearance:Label","Appearance:ProgressPointer","Appearance:Style","Behavior:CanGrow","Behavior:CanShrink","Behavior:Exportable","Behavior:GrowToBottom","Behavior:Printable","Behavior:PrintOn","Behavior:ShiftMode","Behavior:Visible","Data:Expression","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock","Layout:Height","Layout:Left","Layout:Top","Layout:Width","Layout:Maximum","Layout:Minimum","Layout:Value","Navigation:Hyperlink"]),this.mainFields=[["Design:Name"],["Data:Expression"]]}}),U=n(116),Object(h.a)(U.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:EvenStyle","Appearance:EvenStylePriority","Appearance:HoverStyle","Behavior:GrowToBottom","Behavior:PrintOn","Behavior:PrintOnParent","Behavior:ShiftMode","Behavior:Visible","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock","Layout:Height","Layout:Left","Layout:Top","Layout:Width",{prop:"Misc:ReportPage",collection:function(){return a.a.grep(window.DSG.currentReport.pages.all(["ReportPage"]),function(t){return t.attr("isSubreport")})}},"Navigation:Hyperlink"])}}),Y=n(33),Object(h.a)(Y.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:Border",{prop:"Appearance:ColumnCount",type:"number",attrs:{min:0,max:20},setValue:function(t,e){this.attr(t,e,1),this.update()}},{prop:"Appearance:RowCount",type:"number",attrs:{min:0,max:20},setValue:function(t,e){this.attr(t,e,1),this.update(),l.a.trigger("balance-band",this.collection.container)}},"Appearance:Cursor","Appearance:EvenStyle","Appearance:EvenStylePriority","Appearance:Fill:Fill.Color","Appearance:HoverStyle","Appearance:Style",{prop:"Behavior:AdjustSpannedCellsWidth",type:"checkbox"},"Behavior:CanBreak","Behavior:Exportable","Behavior:GrowToBottom","Behavior:Layout","Behavior:Printable","Behavior:PrintOn",{prop:"Behavior:RepeatHeaders",type:"checkbox"},"Behavior:ShiftMode","Behavior:Visible",{prop:"Behavior:WrappedGap",type:"unit"},{prop:"Build:ManualBuildAutoSpans",type:"checkbox"},"Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock","Layout:Height","Layout:Left","Layout:Top","Layout:Width",{prop:"Layout:FixedColumns",type:"number",attrs:{min:0,max:4}},{prop:"Layout:FixedRows",type:"number",attrs:{min:0,max:4}},"Navigation:Hyperlink"]),this.mainFields=[["Design:Name"],["Appearance:ColumnCount","Appearance:RowCount"]]}}),K=n(88),Object(h.a)(K.a,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:Angle","Appearance:Border",{prop:"Appearance:ColSpan",type:"number",attrs:{min:1},afterSetValue:function(){this.getTable().update(),l.a.trigger("activate-component",window.DSG.currentReport.getSelected())}},{prop:"Appearance:RowSpan",type:"number",attrs:{min:1},afterSetValue:function(){this.getTable().update(),l.a.trigger("activate-component",window.DSG.currentReport.getSelected())}},"Appearance:Cursor","Appearance:EvenStyle","Appearance:EvenStylePriority","Appearance:Fill:Fill.Color","Appearance:FirstTabOffset","Appearance:Font","Appearance:FontWidthRatio","Appearance:HorzAlign","Appearance:HoverStyle","Appearance:LineHeight","Appearance:ParagraphOffset","Appearance:Style","Appearance:TabWidth","Appearance:TextFill","Appearance:Underlines","Appearance:VertAlign","Behavior:AutoShrink","Behavior:AutoShrinkMinSize","Behavior:BreakTo","Behavior:CanBreak","Behavior:Clip","Behavior:Editable","Behavior:Exportable","Behavior:HideValue","Behavior:HideZeros","Behavior:TextRenderType","Behavior:NullValue","Behavior:Printable","Behavior:PrintOn","Behavior:ProcessAt","Behavior:RightToLeft","Behavior:Trimming","Behavior:Visible","Behavior:WordWrap","Behavior:Wysiwyg","Data:AllowExpressions","Data:Brackets","Data:Format","Data:Highlight","Data:Text","Design:Name","Design:Restrictions","Layout:Padding","Navigation:Hyperlink"]),this.mainFields=[["Design:Name"],["Data:Text"]]}}),q=n(128),Object(h.a)(q.a,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory([{prop:"Behavior:AutoSize",defaultValue:!1},"Behavior:Visible","Design:Name","Design:Restrictions","Layout:MaxWidth","Layout:MinWidth",{prop:"Layout:Width",setValue:function(t,e){var n=void 0;e>this.prop("MaxWidth")&&(n=this.prop("MaxWidth")),e<this.prop("MinWidth")&&(n=this.prop("MinWidth")),this.prop(t,n||e),n&&l.a.trigger("update-properties-panel",this),this.getTable().update(),this.activate()}},"Navigation:Hyperlink"])}}),J=n(129),Object(h.a)(J.a,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory([{prop:"Behavior:AutoSize",defaultValue:!1},"Behavior:Visible","Design:Name","Design:Restrictions","Layout:MaxHeight","Layout:MinHeight",{prop:"Layout:Height",setValue:function(t,e){var n=void 0;e>this.prop("MaxHeight")&&(n=this.prop("MaxHeight")),e<this.prop("MinHeight")&&(n=this.prop("MinHeight")),this.prop(t,n||e),n&&l.a.trigger("update-properties-panel",this),this.getTable().update(),l.a.trigger("balance-band",this.getTable().collection.container),this.activate()}},"Navigation:Hyperlink"])}}),Z=n(27),Object(h.a)(Z.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:Angle","Appearance:Border","Appearance:Cursor","Appearance:EvenStyle","Appearance:EvenStylePriority","Appearance:Fill:Fill.Color","Appearance:FirstTabOffset","Appearance:Font","Appearance:FontWidthRatio","Appearance:HorzAlign","Appearance:VertAlign","Appearance:HoverStyle","Appearance:LineHeight","Appearance:ParagraphOffset","Appearance:Style","Appearance:TabWidth","Appearance:TextFill","Appearance:TextOutline","Appearance:Underlines","Behavior:AutoShrink","Behavior:AutoShrinkMinSize","Behavior:AutoWidth","Behavior:BreakTo","Behavior:CanBreak","Behavior:CanGrow","Behavior:CanShrink","Behavior:Clip","Behavior:Duplicates","Behavior:Editable","Behavior:Exportable","Behavior:GrowToBottom","Behavior:HideValue","Behavior:HideZeros","Behavior:TextRenderType","Behavior:NullValue","Behavior:Printable","Behavior:PrintOn","Behavior:ProcessAt","Behavior:RightToLeft","Behavior:ShiftMode","Behavior:Trimming","Behavior:Visible","Behavior:WordWrap","Behavior:Wysiwyg","Data:AllowExpressions","Data:Brackets","Data:Format","Data:Highlight","Data:Text","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock","Layout:Height","Layout:Left","Layout:Padding","Layout:Top","Layout:Width","Navigation:Hyperlink"]),this.mainFields=[["Design:Name"],["Data:Text"]]}}),Q=n(162),Object(h.a)(Q.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:Border","Appearance:Cursor","Appearance:EvenStyle","Appearance:EvenStylePriority","Appearance:Fill:Fill.Color","Appearance:Grayscale","Appearance:HoverStyle","Appearance:ImageAlign","Appearance:Style","Behavior:CanGrow","Behavior:CanShrink","Behavior:Exportable","Behavior:GrowToBottom","Behavior:Printable","Behavior:PrintOn","Behavior:ShiftMode","Behavior:ShowErrorImage","Behavior:SizeMode","Behavior:Visible","Behavior:VisibleExpression","Data:DataColumn","Data:ImageSourceExpression","Data:ImageLocation","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock","Layout:Height","Layout:Left","Layout:Top","Layout:Width","Layout:MaxHeight","Layout:MaxWidth","Layout:Padding","Navigation:Bookmark","Navigation:Hyperlink"]),this.mainFields=[["Data:DataColumn","Data:ImageLocation"],["Data:ImageSourceExpression"]]}}),tt=n(98),Object(h.a)(tt.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:Border","Appearance:Cursor","Appearance:EvenStyle","Appearance:EvenStylePriority","Appearance:Fill:Fill.Color","Appearance:HoverStyle","Appearance:Style","Behavior:CanGrow","Behavior:CanShrink","Behavior:GrowToBottom","Behavior:Exportable","Behavior:ExportableExpression","Behavior:Printable","Behavior:PrintableExpression","Behavior:PrintOn","Behavior:Visible","Behavior:VisibleExpression","Design:Name","Design:Restrictions","Design:Tag","Layout:Anchor","Layout:Dock","Layout:Height","Layout:Left","Layout:Top","Layout:Width","Navigation:Hyperlink"]),this.mainFields=[["Design:Name"],["Data:Text"]]}}),et=n(118),Object(h.a)(et.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:BackColor","Appearance:Cursor","Appearance:Font","Appearance:ForeColor","Appearance:Image","Appearance:ImageAlign","Appearance:RightToLeft","Appearance:TextAlign","Appearance:TextImageRelation","Behavior:AutoSize","Behavior:DialogResult","Behavior:Enabled","Behavior:TabIndex","Behavior:TabStop","Behavior:Visible",{prop:"Data:Text",exprMenu:!1},"Data Filtering:DetailControl","Data Filtering:ReportParameter","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock",{prop:"Layout:Left",type:"number"},{prop:"Layout:Top",type:"number"},{prop:"Layout:Width",type:"number"},{prop:"Layout:Height",type:"number"}])}}),nt=n(76),Object(h.a)(nt.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:Appearance","Appearance:BackColor","Appearance:CheckAlign","Appearance:Checked","Appearance:CheckState","Appearance:Cursor","Appearance:Font","Appearance:ForeColor","Appearance:Image","Appearance:ImageAlign","Appearance:RightToLeft","Appearance:TextAlign","Appearance:TextImageRelation","Appearance:ThreeState","Behavior:AutoSize","Behavior:Enabled","Behavior:TabIndex","Behavior:TabStop","Behavior:Visible",{prop:"Data:Text",afterSetValue:function(){this.prop("Width",this.prop("Text").width({"font-size":this.attr("Font.Size"),"font-family":this.attr("Font.Name")})+2*nt.default.CHECKBOXWH)}},"Data Filtering:AutoFilter","Data Filtering:DataColumn","Data Filtering:DetailControl","Data Filtering:FilterOperation","Data Filtering:ReportParameter","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock",{prop:"Layout:Left",type:"number"},{prop:"Layout:Top",type:"number"}])}}),it=n(119),Object(h.a)(it.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:BackColor","Appearance:Cursor","Appearance:Font","Appearance:ForeColor","Appearance:RightToLeft","Behavior:ColumnWidth","Behavior:Enabled","Behavior:MultiColumn","Behavior:SelectionMode","Behavior:Sorted","Behavior:TabIndex","Behavior:TabStop","Behavior:UseTabStops","Behavior:Visible",{prop:"Data:ItemsText",label:"Items",type:"text",expression:!0,exprMenu:!1},"Data Filtering:AutoFill","Data Filtering:AutoFilter","Data Filtering:DataColumn","Data Filtering:DetailControl","Data Filtering:FilterOperation","Data Filtering:ReportParameter","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock",{prop:"Layout:Left",type:"number"},{prop:"Layout:Top",type:"number"},{prop:"Layout:Width",type:"number"},{prop:"Layout:Height",type:"number"},{prop:"Misc:CheckOnClick",type:"checkbox"}])}}),rt=n(120),Object(h.a)(rt.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:BackColor","Appearance:Cursor","Appearance:DrawMode","Appearance:DropDownHeight","Appearance:DropDownStyle","Appearance:DropDownWidth","Appearance:Font","Appearance:ForeColor","Appearance:ItemHeight","Appearance:MaxDropDownItems","Appearance:RightToLeft","Behavior:Enabled","Behavior:Sorted","Behavior:TabIndex","Behavior:TabStop","Behavior:Visible",{prop:"Data:ItemsText",label:"Items",type:"text",expression:!0,exprMenu:!1},{prop:"Data:Text",type:"text",expression:!0,exprMenu:!1},"Data Filtering:AutoFill","Data Filtering:AutoFilter","Data Filtering:DataColumn","Data Filtering:DetailControl","Data Filtering:FilterOperation","Data Filtering:ReportParameter","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock",{prop:"Layout:Left",type:"number"},{prop:"Layout:Top",type:"number"},{prop:"Layout:Width",type:"number"},{prop:"Layout:Height",type:"number"}])}}),at=n(70),Object(h.a)(at.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:BackColor","Appearance:Cursor",{prop:"Appearance:DropDownAlign",type:"select",collection:["Left","Right"]},"Appearance:Font","Appearance:ForeColor","Appearance:RightToLeft",{prop:"Appearance:ShowCheckBox",type:"checkbox"},{prop:"Appearance:ShowUpDown",type:"checkbox"},{prop:"Behavior:Checked",type:"checkbox"},"Behavior:Enabled","Behavior:TabIndex","Behavior:TabStop","Behavior:Visible",{prop:"Data:CustomFormat",label:"CustomFormat",type:"text"},{prop:"Data:Format",label:"Format",type:"select",collection:["Long","Short","Time","Custom"]},{prop:"Data:MaxDate",label:"MaxDate",type:"datetime"},{prop:"Data:MinDate",label:"MinDate",type:"datetime"},{prop:"Data:Value",label:"Value",type:"datetime"},"Data Filtering:AutoFill","Data Filtering:AutoFilter","Data Filtering:DataColumn","Data Filtering:DetailControl","Data Filtering:FilterOperation","Data Filtering:ReportParameter","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock",{prop:"Layout:Left",type:"number"},{prop:"Layout:Top",type:"number"},{prop:"Layout:Width",type:"number"},{prop:"Layout:Height",type:"number"}])}}),ot=n(121),Object(h.a)(ot.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:BackColor","Appearance:Cursor","Appearance:Font","Appearance:ForeColor","Appearance:RightToLeft","Appearance:TextAlign","Behavior:Enabled","Behavior:TabIndex","Behavior:TabStop","Behavior:Visible",{prop:"Data:Text",afterSetValue:function(){this.prop("Width",this.prop("Text").width({"font-size":this.attr("Font.Size"),"font-family":this.attr("Font.Name")})+10)}},"Design:Name","Design:Restrictions","Layout:Anchor","Layout:AutoSize","Layout:Dock",{prop:"Layout:Left",type:"number"},{prop:"Layout:Top",type:"number"}])}}),st=n(122),Object(h.a)(st.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:BackColor","Appearance:Cursor","Appearance:DrawMode","Appearance:Font","Appearance:ForeColor","Appearance:ItemHeight","Appearance:RightToLeft","Behavior:ColumnWidth","Behavior:MultiColumn","Behavior:SelectionMode","Behavior:Sorted","Behavior:UseTabStops","Behavior:Enabled","Behavior:TabIndex","Behavior:TabStop","Behavior:Visible",{prop:"Data:ItemsText",label:"Items",type:"text",expression:!0,exprMenu:!1},"Data Filtering:AutoFill","Data Filtering:AutoFilter","Data Filtering:DataColumn","Data Filtering:DetailControl","Data Filtering:FilterOperation","Data Filtering:ReportParameter","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock",{prop:"Layout:Left",type:"number"},{prop:"Layout:Top",type:"number"},{prop:"Layout:Width",type:"number"},{prop:"Layout:Height",type:"number"}])}}),lt=n(123),Object(h.a)(lt.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:BackColor","Appearance:Cursor","Appearance:Font","Appearance:ForeColor","Appearance:RightToLeft","Appearance:ShowToday","Appearance:ShowTodayCircle","Appearance:ShowWeekNumbers",{prop:"Data:FirstDayOfWeek",type:"select",collection:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday","Default"]},{prop:"Data:MaxDate",label:"MaxDate",type:"datetime"},{prop:"Data:MinDate",label:"MinDate",type:"datetime"},{prop:"Data:MaxSelectionCount",type:"number"},{prop:"Data:TodayDate",label:"TodayDate",type:"datetime"},{prop:"Data:Text",exprMenu:!1},"Behavior:Enabled","Behavior:TabIndex","Behavior:TabStop","Behavior:Visible","Data Filtering:AutoFill","Data Filtering:AutoFilter","Data Filtering:DataColumn","Data Filtering:DetailControl","Data Filtering:FilterOperation","Data Filtering:ReportParameter","Design:Name","Design:Restrictions",{prop:"Layout:CalendarDimensions",type:"text"},"Layout:Anchor","Layout:Dock",{prop:"Layout:Left",type:"number"},{prop:"Layout:Top",type:"number"}])}}),ct=n(124),Object(h.a)(ct.default,{_favMap:{},fillMap:function(){this.fieldMap=p.a.factory(["Appearance:BackColor","Appearance:CheckAlign","Appearance:Checked","Appearance:Cursor","Appearance:Font","Appearance:ForeColor","Appearance:Image","Appearance:ImageAlign","Appearance:RightToLeft","Appearance:TextAlign","Appearance:TextImageRelation","Behavior:AutoSize","Behavior:Enabled","Behavior:TabIndex","Behavior:TabStop","Behavior:Visible",{prop:"Data:Text",afterSetValue:function(){this.prop("Width",this.prop("Text").width({"font-size":this.attr("Font.Size"),"font-family":this.attr("Font.Name")})+2*this.attr("radioCX"))}},"Data Filtering:AutoFilter","Data Filtering:DataColumn","Data Filtering:DetailControl","Data Filtering:FilterOperation","Data Filtering:ReportParameter","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock",{prop:"Layout:Left",type:"number"},{prop:"Layout:Top",type:"number"}])}}),n(379),pt=n(139),dt=pt.default.fillMap,Object(h.a)(pt.default,{_favMap:{},fillMap:function(){dt&&dt.call(this),this.fieldMap.append(["Behavior:CompleteToNRows","Behavior:FillUnusedSpace"])}}),ut=n(94),ht=ut.default.fillMap,Object(h.a)(ut.default,{_favMap:{},fillMap:function(){ht&&ht.call(this),this.fieldMap.rebuild(["Appearance:Columns:Columns.Count","Appearance:Columns:Columns.Layout","Appearance:Columns:Columns.MinRowCount","Appearance:Columns:Columns.Width","Behavior:CollectChildRows","Behavior:KeepDetail","Behavior:KeepTogether","Behavior:PrintIfDatasourceEmpty","Behavior:PrintIfDetailEmpty","Behavior:ResetPageNumber","Data:DataSource","Data:Filter","Data:MaxRows","Data:Relation","Data:RowCount"],["Behavior:RepeatOnEveryPage"]),this.mainFields=[["Design:Name","Layout:Height"],["Data:DataSource"]]}}),ft=n(138),gt=ft.default.fillMap,Object(h.a)(ft.default,{_favMap:{},fillMap:function(){gt&>.call(this),this.fieldMap.append(["Behavior:KeepTogether","Behavior:KeepWithData","Behavior:ResetPageNumber","Behavior:SortOrder","Data:Condition"])}}),mt=n(115),bt=mt.default.fillMap,Object(h.a)(mt.default,{_favMap:{},fillMap:function(){bt&&bt.call(this),this.fieldMap.remove(["Behavior:PrintOnBottom","Behavior:RepeatOnEveryPage","Behavior:StartNewPage"])}}),vt=n(114),yt=vt.default.fillMap,Object(h.a)(vt.default,{_favMap:{},fillMap:function(){yt&&yt.call(this),this.fieldMap.remove(["Behavior:PrintOnBottom","Behavior:RepeatOnEveryPage","Behavior:StartNewPage"])}}),Ct=n(113),St=Ct.default.fillMap,Object(h.a)(Ct.default,{_favMap:{},fillMap:function(){St&&St.call(this),this.fieldMap.remove(["Behavior:RepeatOnEveryPage"])}}),xt=n(51),Pt=n(96),wt=Object(c.a)(s.a,{pos:1,className:"properties",icon:"icon-078",create:function(){var e=this;return new Promise(function(t){e.$title=a()("<div>"),e.$body=a()("<div>"),t(e)})},update:function(t){var e;return!!t&&(this.$title&&(this.$titleMain||(this.$titleMain=a()("<strong>"),this.$titleExtra=a()("<span>"),this.$title.append(this.$titleMain,this.$titleExtra)),this.$titleMain.text(o.a.tr("Properties")+" "),this.$titleExtra.text(t.toString())),this.build(t,t.fieldMap,xt.b),e=this.buildFavorites(t,t._favMap.map,xt.b),this.$body&&(this.$body.replaceWith(e),this.$body=e),this)},clear:function(){delete this.$titleMain,delete this.$titleExtra},rightClick:function(t){var e=this.getTargetElement(t.target);return new Pt.a(t,this.getContextMenuTitle(e),this.getContextMenuItems(e),this.getContextMenuEventName()),!1},getContextMenuEventName:function(){},getContextMenuTitle:function(e){try{return e.element.querySelector(".cstn-panel-header")?e.element.querySelector(".cstn-panel-header").querySelector("span").textContent:e.element.querySelector(".prop-tag").textContent}catch(t){return e.element.textContent}},getContextMenuItems:function(t){var e=this,n=Object(g.c)(t.element.field);return[Object(g.a)(this.selectedComponent._favMap.map,n)?{name:o.a.tr("Properties Remove Favorite"),type:"default",closeAfter:!0,onClick:function(){l.a.trigger("component-remove-fav-field",e.selectedComponent,t.element.field)}}:{name:o.a.tr("Properties Add Favorite"),type:"default",closeAfter:!0,onClick:function(){l.a.trigger("component-add-fav-field",e.selectedComponent,t.element.field)}}]},bindEvents:function(){l.a.bind("update-properties-panel",function(t){var e=window.DSG.toolbar;e&&(e.$extraFirstLine&&e.$extraFirstLine.empty(),e.$extraSecondLine&&e.$extraSecondLine.empty(),e.$extra&&e.$extra.removeClass("fr-hidden")),t=t||window.DSG.currentReport.getSelected(),wt.update(t)})}}),e.default=wt},function(t,e,n){"use strict";var i,r,a,o,s,l,c,p,d,u,h,f,g,m,b,v,y,C,S,x,P,w,T,k,B,$,O,E,M,D,A;n.r(e),i=n(0),r=n.n(i),a=n(2),o=n(44),s=n(1),l=n(8),c="event",p=n(60),d=n(89),u={Build:{label:"Properties Build",fields:{FinishReportEvent:{label:"FinishReport",type:"event",eventName:"FinishReport",eventStatement:"private void %event%(object sender, EventArgs e)"},StartReportEvent:{label:"StartReport",type:"event",eventName:"StartReport",eventStatement:"private void %event%(object sender, EventArgs e)"},FinishPageEvent:{label:"FinishPage",type:"event",eventName:"FinishPage",eventStatement:"private void %event%(object sender, EventArgs e)"},ManualBuildEvent:{label:"ManualBuild",type:"event",eventName:"ManualBuild",eventStatement:"private void %event%(object sender, EventArgs e)"},StartPageEvent:{label:"StartPage",type:"event",eventName:"StartPage",eventStatement:"private void %event%(object sender, EventArgs e)"},AfterDataEvent:{label:"AfterData",type:"event",eventName:"AfterData",eventStatement:"private void %event%(object sender, EventArgs e)"},AfterLayoutEvent:{label:"AfterLayout",type:"event",eventName:"AfterLayout",eventStatement:"private void %event%(object sender, EventArgs e)"},AfterPrintEvent:{label:"AfterPrint",type:"event",eventName:"AfterPrint",eventStatement:"private void %event%(object sender, EventArgs e)"},BeforeLayoutEvent:{label:"BeforeLayout",type:"event",eventName:"BeforeLayout",eventStatement:"private void %event%(object sender, EventArgs e)"},BeforePrintEvent:{label:"BeforePrint",type:"event",eventName:"BeforePrint",eventStatement:"private void %event%(object sender, EventArgs e)"},ModifyResult:{label:"ModifyResult",type:"event",eventName:"ModifyResult",eventStatement:"private void %event%(object sender, EventArgs e)"}}},Events:{label:"Properties Events",fields:{CheckedChanged:{label:"CheckedChanged",type:"event",eventName:"CheckedChanged",eventStatement:"private void %event%(object sender, EventArgs e)"},FormClosedEvent:{label:"FormClosed",type:"event",eventName:"FormClosed",eventStatement:"private void %event%(object sender, FormClosedEventArgs e)"},FormClosingEvent:{label:"FormClosing",type:"event",eventName:"FormClosing",eventStatement:"private void %event%(object sender, FormClosingEventArgs e)"},LoadEvent:{label:"Load",type:"event",eventName:"Load",eventStatement:"private void %event%(object sender, EventArgs e)"},PaintEvent:{label:"Paint",type:"event",eventName:"Paint",eventStatement:"private void %event%(object sender, PaintEventArgs e)"},ResizeEvent:{label:"Resize",type:"event",eventName:"Resize",eventStatement:"private void %event%(object sender, EventArgs e)"},ShownEvent:{label:"Shown",type:"event",eventName:"Shown",eventStatement:"private void %event%(object sender, EventArgs e)"},Click:{label:"Click",type:"event",eventName:"Click",eventStatement:"private void %event%(object sender, EventArgs e)"},DataLoaded:{label:"DataLoaded",type:"event",eventName:"DataLoaded",eventStatement:"private void %event%(object sender, EventArgs e)"},DoubleClick:{label:"DoubleClick",type:"event",eventName:"DoubleClick",eventStatement:"private void %event%(object sender, EventArgs e)"},DrawItem:{label:"DrawItem",type:"event",eventName:"DrawItem",eventStatement:"private void %event%(object sender, DrawItemEventArgs e)"},Enter:{label:"Enter",type:"event",eventName:"Enter",eventStatement:"private void %event%(object sender, EventArgs e)"},ItemCheck:{label:"ItemCheck",type:"event",eventName:"ItemCheck",eventStatement:"private void %event%(object sender, ItemCheckEventArgs e)"},KeyDown:{label:"KeyDown",type:"event",eventName:"KeyDown",eventStatement:"private void %event%(object sender, KeyEventArgs e)"},KeyPress:{label:"KeyPress",type:"event",eventName:"KeyPress",eventStatement:"private void %event%(object sender, KeyPressEventArgs e)"},KeyUp:{label:"KeyUp",type:"event",eventName:"KeyUp",eventStatement:"private void %event%(object sender, KeyEventArgs e)"},Leave:{label:"Leave",type:"event",eventName:"Leave",eventStatement:"private void %event%(object sender, EventArgs e)"},MouseDown:{label:"MouseDown",type:"event",eventName:"MouseDown",eventStatement:"private void %event%(object sender, MouseEventArgs e)"},MouseEnter:{label:"MouseEnter",type:"event",eventName:"MouseEnter",eventStatement:"private void %event%(object sender, EventArgs e)"},MouseLeave:{label:"MouseLeave",type:"event",eventName:"MouseLeave",eventStatement:"private void %event%(object sender, EventArgs e)"},MouseMove:{label:"MouseMove",type:"event",eventName:"MouseMove",eventStatement:"private void %event%(object sender, MouseEventArgs e)"},MouseUp:{label:"MouseUp",type:"event",eventName:"MouseUp",eventStatement:"private void %event%(object sender, MouseEventArgs e)"},MeasureItem:{label:"MeasureItem",type:"event",eventName:"MeasureItem",eventStatement:"private void %event%(object sender, MeasureItemEventArgs e)"},Paint:{label:"Paint",type:"event",eventName:"Paint",eventStatement:"private void %event%(object sender, PaintEventArgs e)"},Resize:{label:"Resize",type:"event",eventName:"Resize",eventStatement:"private void %event%(object sender, EventArgs e)"},TextChanged:{label:"TextChanged",type:"event",eventName:"TextChanged",eventStatement:"private void %event%(object sender, EventArgs e)"},ValueChanged:{label:"ValueChanged",type:"event",eventName:"ValueChanged",eventStatement:"private void %event%(object sender, EventArgs e)"},SelectedIndexChanged:{label:"SelectedIndexChanged",type:"event",eventName:"SelectedIndexChanged",eventStatement:"private void %event%(object sender, EventArgs e)"}}},Preview:{label:"Properties Preview",fields:{ClickEvent:{label:"Click",type:"event",eventName:"Click",eventStatement:"private void %event%(object sender, EventArgs e)"},MouseDownEvent:{label:"MouseDown",type:"event",eventName:"MouseDown",eventStatement:"private void %event%(object sender, EventArgs e)"},MouseEnterEvent:{label:"MouseEnter",type:"event",eventName:"MouseEnter",eventStatement:"private void %event%(object sender, EventArgs e)"},MouseLeaveEvent:{label:"MouseLeave",type:"event",eventName:"MouseLeave",eventStatement:"private void %event%(object sender, EventArgs e)"},MouseMoveEvent:{label:"MouseMove",type:"event",eventName:"MouseMove",eventStatement:"private void %event%(object sender, EventArgs e)"},MouseUpEvent:{label:"MouseUp",type:"event",eventName:"MouseUp",eventStatement:"private void %event%(object sender, EventArgs e)"}}},Misc:{label:"Properties Misc",fields:{DateChanged:{label:"DateChanged",type:"event",eventName:"DateChanged",eventStatement:"private void %event%(object sender, DateRangeEventArgs e)"}}}},h=Object(l.a)(d.a,{data:u}),f=n(6),g=n(117),m=n(33),Object(f.a)(g.default,{fillEventMap:function(){m.default.fillEventMap.call(this),this.eventMap.append(["Build:ManualBuildEvent","Build:ModifyResult"])}}),b=n(7),v=n(116),Object(f.a)(v.default,{fillEventMap:function(){b.default.fillEventMap.apply(this,arguments),this.eventMap.remove(["Build:AfterPrintEvent","Build:BeforePrintEvent","Preview:ClickEvent"])}}),Object(f.a)(m.default,{fillEventMap:function(){b.default.fillEventMap.apply(this,arguments),this.eventMap.append(["Build:ManualBuildEvent"])}}),y=n(118),Object(f.a)(y.default,{dblclick:function(){this.eventMap[0].fields.Click.control.$body.find("[type=button]").trigger("click")},fillEventMap:function(){this.eventMap=h.factory(["Events:Click","Events:DataLoaded","Events:DoubleClick","Events:Enter","Events:KeyDown","Events:KeyPress","Events:KeyUp","Events:Leave","Events:MouseDown","Events:MouseEnter","Events:MouseLeave","Events:MouseMove","Events:MouseUp","Events:Paint","Events:Resize","Events:TextChanged"])}}),C=n(76),Object(f.a)(C.default,{dblclick:function(){this.eventMap[0].fields.Click.control.$body.find("[type=button]").trigger("click")},fillEventMap:function(){this.eventMap=h.factory(["Events:CheckedChanged","Events:Click","Events:DataLoaded","Events:DoubleClick","Events:Enter","Events:KeyDown","Events:KeyPress","Events:KeyUp","Events:Leave","Events:MouseDown","Events:MouseEnter","Events:MouseLeave","Events:MouseMove","Events:MouseUp","Events:Paint","Events:Resize","Events:TextChanged"])}}),S=n(119),Object(f.a)(S.default,{dblclick:function(){this.eventMap[0].fields.Click.control.$body.find("[type=button]").trigger("click")},fillEventMap:function(){this.eventMap=h.factory(["Events:Click","Events:DataLoaded","Events:DoubleClick","Events:DrawItem","Events:Enter","Events:ItemCheck","Events:KeyDown","Events:KeyPress","Events:KeyUp","Events:Leave","Events:MeasureItem","Events:MouseDown","Events:MouseEnter","Events:MouseLeave","Events:MouseMove","Events:MouseUp","Events:Paint","Events:Resize","Events:SelectedIndexChanged","Events:TextChanged"])}}),x=n(120),Object(f.a)(x.default,{dblclick:function(){this.eventMap[0].fields.Click.control.$body.find("[type=button]").trigger("click")},fillEventMap:function(){this.eventMap=h.factory(["Events:Click","Events:DataLoaded","Events:DoubleClick","Events:DrawItem","Events:Enter","Events:KeyDown","Events:KeyPress","Events:KeyUp","Events:Leave","Events:MeasureItem","Events:MouseDown","Events:MouseEnter","Events:MouseLeave","Events:MouseMove","Events:MouseUp","Events:Paint","Events:Resize","Events:SelectedIndexChanged","Events:TextChanged"])}}),P=n(70),Object(f.a)(P.default,{dblclick:function(){this.eventMap[0].fields.Click.control.$body.find("[type=button]").trigger("click")},fillEventMap:function(){this.eventMap=h.factory(["Events:Click","Events:DataLoaded","Events:DoubleClick","Events:Enter","Events:KeyDown","Events:KeyPress","Events:KeyUp","Events:Leave","Events:MouseDown","Events:MouseEnter","Events:MouseLeave","Events:MouseMove","Events:MouseUp","Events:Paint","Events:Resize","Events:TextChanged","Events:ValueChanged"])}}),w=n(121),Object(f.a)(w.default,{dblclick:function(){this.eventMap[0].fields.Click.control.$body.find("[type=button]").trigger("click")},fillEventMap:function(){this.eventMap=h.factory(["Events:Click","Events:DoubleClick","Events:Enter","Events:KeyDown","Events:KeyPress","Events:KeyUp","Events:Leave","Events:MouseDown","Events:MouseEnter","Events:MouseLeave","Events:MouseMove","Events:MouseUp","Events:Paint","Events:Resize","Events:TextChanged"])}}),T=n(122),Object(f.a)(T.default,{dblclick:function(){this.eventMap[0].fields.Click.control.$body.find("[type=button]").trigger("click")},fillEventMap:function(){this.eventMap=h.factory(["Events:Click","Events:DataLoaded","Events:DoubleClick","Events:DrawItem","Events:Enter","Events:KeyDown","Events:KeyPress","Events:KeyUp","Events:Leave","Events:MeasureItem","Events:MouseDown","Events:MouseEnter","Events:MouseLeave","Events:MouseMove","Events:MouseUp","Events:Paint","Events:Resize","Events:SelectedIndexChanged","Events:TextChanged"])}}),k=n(123),Object(f.a)(k.default,{dblclick:function(){this.eventMap[0].fields.Click.control.$body.find("[type=button]").trigger("click")},fillEventMap:function(){this.eventMap=h.factory(["Events:Click","Events:DataLoaded","Events:DoubleClick","Events:Enter","Events:KeyDown","Events:KeyPress","Events:KeyUp","Events:Leave","Events:MouseDown","Events:MouseEnter","Events:MouseLeave","Events:MouseMove","Events:MouseUp","Events:Paint","Events:Resize","Events:TextChanged","Misc:DateChanged"])}}),B=n(124),Object(f.a)(B.default,{dblclick:function(){this.eventMap[0].fields.Click.control.$body.find("[type=button]").trigger("click")},fillEventMap:function(){this.eventMap=h.factory(["Events:CheckedChanged","Events:Click","Events:DataLoaded","Events:DoubleClick","Events:Enter","Events:KeyDown","Events:KeyPress","Events:KeyUp","Events:Leave","Events:MouseDown","Events:MouseEnter","Events:MouseLeave","Events:MouseMove","Events:MouseUp","Events:Paint","Events:Resize","Events:TextChanged"])}}),$=n(125),Object(f.a)($.default,{dblclick:function(){this.eventMap[0].fields.Click.control.$body.find("[type=button]").trigger("click")},fillEventMap:function(){this.eventMap=h.factory(["Events:Click","Events:DataLoaded","Events:DoubleClick","Events:Enter","Events:KeyDown","Events:KeyPress","Events:KeyUp","Events:Leave","Events:MouseDown","Events:MouseEnter","Events:MouseLeave","Events:MouseMove","Events:MouseUp","Events:Paint","Events:Resize","Events:TextChanged"])}}),Object(f.a)(p.a,{fillEventMap:function(){this.eventMap=h.factory(["Build:FinishReportEvent","Build:StartReportEvent"])}}),n.c[112]&&(O=n.c[112],Object(f.a)(O.exports.default,{fillEventMap:function(){this.eventMap=h.factory(["Events:FormClosedEvent","Events:FormClosingEvent","Events:LoadEvent","Events:PaintEvent","Events:ResizeEvent","Events:ShownEvent"])}})),n.c[7]&&(E=n.c[7],Object(f.a)(E.exports.default,{fillEventMap:function(){this.eventMap=h.factory(["Build:AfterDataEvent","Build:AfterPrintEvent","Build:BeforePrintEvent","Preview:ClickEvent","Preview:MouseDownEvent","Preview:MouseEnterEvent","Preview:MouseLeaveEvent","Preview:MouseMoveEvent","Preview:MouseUpEvent"])}})),n.c[11]&&(M=n.c[11],Object(f.a)(M.exports.default,{fillEventMap:function(){this.eventMap=h.factory(["Build:AfterDataEvent","Build:AfterLayoutEvent","Build:AfterPrintEvent","Build:BeforeLayoutEvent","Build:BeforePrintEvent","Preview:ClickEvent","Preview:MouseDownEvent","Preview:MouseEnterEvent","Preview:MouseLeaveEvent","Preview:MouseMoveEvent","Preview:MouseUpEvent"])}})),n.c[41]&&(D=n.c[41],Object(f.a)(D.exports.default,{fillEventMap:function(){this.eventMap=h.factory(["Build:FinishPageEvent","Build:ManualBuildEvent","Build:StartPageEvent"])}})),A=Object(l.a)(o.a,{pos:2,className:"events",icon:"icon-079",create:function(){var e=this;return new Promise(function(t){if(window.DSG.currentReport.prop("CodeRestricted"))return t(null);e.$title=r()("<div>"),e.$body=r()("<div>"),t(e)})},update:function(t){var e;return!!t&&(this.$title&&(this.$titleMain||(this.$titleMain=r()("<strong>"),this.$titleExtra=r()("<span>"),this.$title.append(this.$titleMain,this.$titleExtra)),this.$titleMain.text(a.a.tr("Events")+" "),this.$titleExtra.text(t.toString())),e=this.build(t,t.eventMap,c),this.$body&&(this.$body.replaceWith(e),this.$body=e),this)},clear:function(){delete this.$titleMain,delete this.$titleExtra},bindEvents:function(){s.a.bind("update-events-panel",function(t){A.update(t)})}}),e.default=A},function(t,e,n){"use strict";function i(){var t=window.DSG.currentReport,e=t.dataSources.allWithChildren();return t.connections.everyEntity(function(t){e=[].concat(e,t.dataSources.allWithChildren())}),e.unshift(" "),e}var r,s,a,o,l,c,p,d,u,h,f,g,m,b,v,y,C,S,x,P,w,T,k,B,$,O,E,M,D,A,j,F,L,R,N,W;n.r(e),n(381),r=n(0),s=n.n(r),a=n(1),o=n(2),l=n(169),c=n(15),p=n(8),d=n(60),u=n(25),h=Object(p.a)(u.a,{pullDSByView:function(e){var n=void 0;return this.eachEntity(function(t){if(n=t.dataSources.pullByView(e))return!1}),n},findOneDSAmongAll:function(e){var n=void 0;return this.eachEntity(function(t){if(n=t.dataSources.findOneAmongAll(e))return!1}),n}}),f=n(99),g=n(197),m=n(256),b=n(257),v=n(168),y=n(12),C=n(35),S=n(18),x=n(29),P=Object(p.a)(y.a,{type:"Relation",icon:"icon-058",_init:function(){this._id="rel"+Object(S.a)(),this.defaultValues={Restrictions:"none"},this.prop({Name:"",Alias:""}),this.attr({_ChildDataSource:null,_ParentDataSource:null})},create:function(){var t=this.createObject(this);return t._init.apply(t,arguments),t},fillMap:function(){this.fieldMap=C.a.factory([{prop:"Data:ChildColumns",type:"textarea",attrs:{rows:3}},{prop:"Data:ChildDataSource",type:"select",collection:i,getValue:function(){var t=this.attr("_ChildDataSource");if(t)return t.toString()},setValue:function(t,e){var n=window.DSG.currentReport.dataSources.findOneBy({Alias:e});n?this.prop(t,n.prop("Name")):this.prop(t,e),this.update(),a.a.trigger("update-data-panel")}},{prop:"Data:ParentColumns",type:"textarea",attrs:{rows:3}},{prop:"Data:ParentDataSource",type:"select",collection:i,getValue:function(){var t=this.attr("_ParentDataSource");if(t)return t.toString()},setValue:function(t,e){var n=window.DSG.currentReport.dataSources.findOneBy({Alias:e});n?this.prop(t,n.prop("Name")):this.prop(t,e),this.update(),a.a.trigger("update-data-panel")}},{prop:"Design:Name",afterSetValue:function(){a.a.trigger("update-data-panel")}},"Design:Alias","Design:Restrictions"]),this.mainFields=[["Design:Name","Design:Alias"],["Data:ChildDataSource","Data:ParentDataSource"]]},update:function(){var t,e,n=window.DSG.currentReport;t=n.dataSources.findOneBy({Name:this.prop("ChildDataSource")}),(e=this.attr("_ChildDataSource"))&&(e.asChildIn=e.asChildIn||[],Object(x.a)(e.asChildIn,this)),t&&(this.attr("_ChildDataSource",t),t.asChildIn=t.asChildIn||[],-1===t.asChildIn.indexOf(this)&&t.asChildIn.push(this)),t=n.dataSources.findOneBy({Name:this.prop("ParentDataSource")}),(e=this.attr("_ParentDataSource"))&&(e.asParentIn=e.asParentIn||[],Object(x.a)(e.asParentIn,this)),t&&(this.attr("_ParentDataSource",t),t.asParentIn=t.asParentIn||[],-1===t.asParentIn.indexOf(this)&&t.asParentIn.push(this))},isRelation:function(){return!0},toString:function(){var t,e=this.prop("Alias")||this.prop("Name");return e||(t=this.attr("_ParentDataSource"))&&(e=t.toString()),e}}),w=n(87),T=Object(p.a)(w.a,{type:"Total",icon:"icon-132",_init:function(){this._id="t"+Object(S.a)(),this.editable=[null,function(t){a.a.trigger("remove-total",t)}],this.defaultValues={IncludeInvisibleRows:!1,ResetAfterPrint:!0,ResetOnReprint:!0,TotalType:"Sum",Evaluator:"",PrintOn:""},this.prop("Name","Total"),this.bindableControl="TextObject"},fillMap:function(){this.fieldMap=C.a.factory([{prop:"Behavior:IncludeInvisibleRows",type:"checkbox"},{prop:"Behavior:ResetAfterPrint",type:"checkbox"},{prop:"Behavior:ResetOnReprint",type:"checkbox"},{prop:"Design:Name",afterSetValue:function(){a.a.trigger("update-data-panel")}},{prop:"Data:EvaluateCondition",type:"text",expression:!0},{prop:"Data:Evaluator",type:"select",collection:function(){function t(t){return t.prop("Name")}var e,n,i=[],r=window.DSG.currentReport.pages.all(["ReportPage"]);for(e=0,n=r.length;e<n;e+=1)[].push.apply(i,s.a.map(r[e].bands.allWithChildren(["DataBand"]),t));return i.unshift(""),i}},{prop:"Data:Expression",type:"text",expression:!0},{prop:"Data:PrintOn",type:"select",collection:function(){var t=s.a.map(window.DSG.currentReport.getCurrentPage().bands.allWithChildren(),function(t){return t.prop("Name")});return t.unshift(""),t}},{prop:"Data:TotalType",type:"select",collection:["Sum","Min","Max","Avg","Count"]}]),this.mainFields=[["Design:Name"]]},isTotal:function(){return!0}}),k=n(31),B=Object(p.a)(y.a,{entities:[],create:function(){var t=this.createObject(this);return t.attr("icon","icon-060"),s.a.each(function(){function t(){return this.prop("Name")}var e={},n=C.a.factory(["Data:DataType","Design:Name"]),i=[["Design:Name"],["Data:DataType"]];return e.Date={init:function(){this.prop({Name:"Date",DataType:k.a.get("System.DateTime")})},bindableControl:"TextObject",fieldMap:n,mainFields:i,getView:t},e.Page={init:function(){this.prop({Name:"Page",DataType:k.a.get("System.Char")})},bindableControl:"TextObject",fieldMap:n,mainFields:i,getView:t},e.TotalPages={init:function(){this.prop({Name:"TotalPages",DataType:k.a.get("System.Int32")})},bindableControl:"TextObject",fieldMap:n,mainFields:i,getView:t},e.PageN={init:function(){this.prop({Name:"PageN",DataType:k.a.get("System.String")})},bindableControl:"TextObject",fieldMap:n,mainFields:i,getView:t},e.PageNofM={init:function(){this.prop({Name:"PageNofM",DataType:k.a.get("System.String")})},bindableControl:"TextObject",fieldMap:n,mainFields:i,getView:t},e["Row#"]={init:function(){this.prop({Name:"Row#",DataType:k.a.get("System.Int32")})},bindableControl:"TextObject",fieldMap:n,mainFields:i,getView:t},e["AbsRow#"]={init:function(){this.prop({Name:"AbsRow#",DataType:k.a.get("System.Int32")})},bindableControl:"TextObject",fieldMap:n,mainFields:i,getView:t},e["Page#"]={init:function(){this.prop({Name:"Page#",DataType:k.a.get("System.Int32")})},bindableControl:"TextObject",fieldMap:n,mainFields:i,getView:t},e["TotalPages#"]={init:function(){this.prop({Name:"TotalPages#",DataType:k.a.get("System.Int32")})},bindableControl:"TextObject",fieldMap:n,mainFields:i,getView:t},e["CopyName#"]={init:function(){this.prop({Name:"CopyName#",DataType:k.a.get("System.String")})},bindableControl:"TextObject",fieldMap:n,mainFields:i,getView:t},e.HierarchyLevel={init:function(){this.prop({Name:"HierarchyLevel",DataType:k.a.get("System.Int32")})},bindableControl:"TextObject",fieldMap:n,mainFields:i,getView:t},e["HierarchyRow#"]={init:function(){this.prop({Name:"HierarchyRow#",DataType:k.a.get("System.String")})},bindableControl:"TextObject",fieldMap:n,mainFields:i,getView:t},e}(),function(){t.add(y.a.createObject(t,this))}),t},add:function(){var t=this.entities,e=[].slice.call(arguments);s.a.each(e,function(){t.push(this)})},get:function(e){return s.a.grep(this.entities,function(t){return t.prop("Name")===e})[0]}}),$=n(4),O=n(130),E=n(198),M=n(22),D=new M.a("data functions"),A=function(){var i,t=2,r=0;this.bindableControl="TextObject",this.icon="icon-052",i={},this.entities=function(){return new Promise(function(e,n){return t<=r?n({error:new Error(1),entity:"Functions"}):Object.keys(i).length?e(i):fetch($.a.get("getFunctions",{id:window.DSG.currentReport._id}),{credentials:"same-origin"}).then(function(t){return t.text()}).then(function(t){t=s.a.parseXML(Object(E.a)(t)),s()(t).find("ReportFunctions").each(function(){return function t(e,n){var i,r,a=e.children(),o=e.attr("Name");a.length?o?(n[o]={label:o,icon:"icon-066",fields:{}},a.each(function(){t(s()(this),n[o].fields)})):a.each(function(){t(s()(this),n)}):o&&(n[o]={label:o,icon:null,interface:Object(O.a)(e.attr("Description")).replace(/(<br\/?>)*$/g,""),view:(i=o,r=/([\w]+){1}(\([\s\S]+\))?/gi.exec(i),r?r[1]&&!r[2]?r[1]+"()":r[1]+"({0})".format(new Array(r[2].substring(1,r[2].length-1).split(",").length).join(",")):i),bindableControl:"TextObject"})}(s()(this),i),D.info("loaded"),e(i)})}).catch(function(t){return r+=1,n({error:t,entity:"Functions"})})})}},j=n(6),F=d.a._init,Object(j.a)(d.a,{_init:function(){F.apply(this,arguments),this.connections=h.create(this),this.relations=u.a.create(this),this.dataSources=f.a.create(this),this.parameters=g.a.create(this),this.systemVariables=B.create(),this.functions=new A,this.totals=u.a.create(this)},createDataSource:function(t,e){var n=b.a.create(t);return e?e.dataSources.add(n):this.dataSources.add(n),n},createRelation:function(){var t=P.create();return this.relations.add(t),t},createTotal:function(){var t=T.create();return this.totals.add(t),t.createName(),t},createConnection:function(t){var e=m.a.create(t);return this.connections.add(e),e},createParameter:function(t){var e=t&&t.parameters||this.parameters,n=v.a.create();return e.add(n),n.createName(),n}}),L=function(t,e){return t.properties.Name.localeCompare(e.properties.Name)<0?1:0<t.properties.Name.localeCompare(e.properties.Name)?-1:0},R=function(t,e){return t.properties.Name.localeCompare(e.properties.Name)<0?-1:0<t.properties.Name.localeCompare(e.properties.Name)?1:0},N=function e(t,n){return n?(t.columns.entities.sort(R),t.dataSources.entities.sort(R)):(t.columns.entities.sort(L),t.dataSources.entities.sort(L)),t.columns.eachEntity(function(t){n?(t.columns.entities.sort(R),t.dataSources.entities.sort(R)):(t.columns.entities.sort(L),t.dataSources.entities.sort(L)),t.columns.eachEntity(function(t){e(t,n)}),t.dataSources.eachEntity(function(t){e(t,n)})}),t.dataSources.eachEntity(function(t){n?(t.columns.entities.sort(R),t.dataSources.entities.sort(R)):(t.columns.entities.sort(L),t.dataSources.entities.sort(L)),t.columns.eachEntity(function(t){e(t,n)}),t.dataSources.eachEntity(function(t){e(t,n)})}),t},W=Object(p.a)({pos:4,className:"data",icon:"icon-053",descSort:!0,create:function(){var r=this;return new Promise(function(i){Object(l.a)().then(function(t){var e,n=t.getMenu();r.$body=n,r.$title=s()("<div>"),r.$title.text(o.a.tr("Data")),r.$controls=s()("<div>"),r.$controls.addClass("data-controls"),r.$sortButton=s()("<button>"),r.$sortButton.addClass("data-pane js-sort-button"),(e=s()("<div>")).addClass("icon-sort"),r.$sortButton.append(e),r.$sortButton.prop("title",o.a.tr("DataBandEditor Sort")),r.$expandButton=s()("<button>"),r.$expandButton.addClass("data-pane js-expand-button"),r.$expandButton.text("+"),r.$expandButton.prop("title",o.a.tr("DataBandEditor Expand")),r.$collapseButton=s()("<button>"),r.$collapseButton.addClass("data-pane js-collapse-button"),r.$collapseButton.text("-"),r.$collapseButton.prop("title",o.a.tr("DataBandEditor Collapse")),r.$controls.append(r.$sortButton),r.$controls.append(r.$collapseButton),r.$controls.append(r.$expandButton),i(r)})})},bindEvents:function(){var n=this;this.$body.on("click",".rt-content",function(){var t=s()(this).parent()[0].element;if(!t)return!1;!t.fieldMap&&t.fillMap&&t.fillMap(),t.isEntity&&t.isEntity()&&(a.a.trigger("update-properties-panel",t),a.a.trigger("update-events-panel",t))}),this.$sortButton.on("click",function(){var t=window.DSG.currentReport.connections,e=window.DSG.currentReport.dataSources;n.isDescSort?(t.entities.sort(R),e.entities.sort(R),e.eachEntity(function(t){t.dataSources.entities.sort(R),t.columns.entities.sort(R),t.dataSources.eachEntity(function(t){N(t,n.isDescSort)}),t.columns.eachEntity(function(t){N(t,n.isDescSort)})}),t.eachEntity(function(t){t.dataSources.entities.sort(R),t.dataSources.eachEntity(function(t){N(t,n.isDescSort)})}),n.$sortButton.prop("title",o.a.tr("DataBandEditor Sort")+" "+o.a.tr("DataBandEditor Ascending"))):(t.entities.sort(L),e.entities.sort(L),e.eachEntity(function(t){t.dataSources.entities.sort(L),t.columns.entities.sort(L),t.dataSources.eachEntity(function(t){N(t,n.isDescSort)}),t.columns.eachEntity(function(t){N(t,n.isDescSort)})}),t.eachEntity(function(t){t.dataSources.entities.sort(L),t.dataSources.eachEntity(function(t){N(t,n.isDescSort)})}),n.$sortButton.prop("title",o.a.tr("DataBandEditor Sort")+" "+o.a.tr("DataBandEditor Descending"))),n.isDescSort=!n.isDescSort,a.a.trigger("update-data-panel")}),this.$expandButton.on("click",function(){s()(".data-main-container .icon-exp_plus").trigger("click")}),this.$collapseButton.on("click",function(){s()(".data-main-container .icon-exp_minus").trigger("click")}),a.a.bind("update-data-panel",function(t){W.update(t)}),a.a.bind("create-parameter",function(t){var e=window.DSG.currentReport.createParameter(t);a.a.trigger("update-data-panel",{openParameters:!0}),c.a.push({undo:function(){e.remove(),a.a.trigger("update-data-panel")},redo:function(){e.restore(),a.a.trigger("update-data-panel")}}),a.a.trigger("update-menu")}),a.a.bind("remove-parameter",function(t){t.remove(),a.a.trigger("update-data-panel"),c.a.push({undo:function(){t.restore(),a.a.trigger("update-data-panel")},redo:function(){t.remove(),a.a.trigger("update-data-panel")}}),a.a.trigger("update-menu")}),a.a.bind("create-total",function(){var t=window.DSG.currentReport.createTotal();a.a.trigger("update-data-panel",{openTotals:!0}),c.a.push({undo:function(){t.remove(),a.a.trigger("update-data-panel")},redo:function(){t.restore(),a.a.trigger("update-data-panel")}}),a.a.trigger("update-menu")}),a.a.bind("remove-total",function(t){t.remove(),a.a.trigger("update-data-panel"),c.a.push({undo:function(){t.restore(),a.a.trigger("update-data-panel")},redo:function(){t.remove(),a.a.trigger("update-data-panel")}}),a.a.trigger("update-menu")}),a.a.bind("add-connection",function(t){window.DSG.currentReport.connections.add(t),a.a.trigger("update-data-panel",{openConnections:!0}),c.a.push({undo:function(){t.remove(),a.a.trigger("update-data-panel")},redo:function(){t.restore(),a.a.trigger("update-data-panel")}}),a.a.trigger("update-menu")}),a.a.bind("remove-connection",function(t){t.remove(),a.a.trigger("update-data-panel"),c.a.push({undo:function(){t.restore(),a.a.trigger("update-data-panel")},redo:function(){t.remove(),a.a.trigger("update-data-panel")}}),a.a.trigger("update-menu")})},update:function(e){var n=this;Object(l.a)().then(function(t){n.$body.html(t.getMenu(e).children())})}}),e.default=W},function(t,e,n){"use strict";var i,r,a,o,s,l,c,p,d,u,h,f,g,m,b,v,y,C,S,x,P,w,T,k,B,$,O,E,M,D,A,j,F;n.r(e),n(380),i=n(0),r=n.n(i),a=n(2),o=n(1),s=n(12),l=n(8),c=n(60),p=n(34),d=n(41),u=n(39),h=n(11),f=n(112),g=n(7),m=n(33),b=n(88),v=n(129),y=n(128),C=n(98),S=n(200),x=n(6),S.default.buildTree=function(){},S.default.searchTree=function(){},P=100,w=c.a.createDialog,T=c.a.createPage,k=u.a.put,B=u.a.render,$=u.a.remove,O=h.default.put,E=g.default.render,M=g.default.remove,D=f.default.put,A=m.default.update,j=b.a.put,Object(x.a)(s.a,{selfTree:null,statusTree:1,selectedInTree:null,buildHTMLTreeBlock:function(t){var e={$main:r()("<li>"),$expand:r()("<div>"),$icon:r()("<div>"),$content:r()("<div>"),$container:r()("<ul>")};return e.$main.addClass("rt-node"),e.$expand.addClass("rt-expand icon-leaf"),e.$icon.addClass("rt-icon"),e.$content.addClass("rt-content"),e.$container.addClass("rt-container"),e.$main.append(e.$expand,e.$icon,e.$content,e.$container),t&&t.icon&&e.$icon.addClass(t.icon),e},rebuildTree:function(){var t;return this.selfTree?(t=this.selfTree.$main,this.selfTree=null,this.buildTree(),t.replaceWith(this.selfTree.$main),this.selfTree.$main):this.buildTree()},buildTree:function(){return this.selfTree=this.selfTree||this.buildHTMLTreeBlock({icon:this.attr("icon")||this.icon}),this.statusTree=this.statusTree,this.selfTree.$main.data("entity",this),this.selfTree.$main},putInTree:function(t){if(!this.selfTree||!t)return!1;t.find(this.selfTree.$container).length&&t.replaceWith(this.selfTree.$main),this.selfTree.$container.find(t).length||this.selfTree.$container.append(t),t.removeClass("fr-hidden"),this.updateTreeView()},isVisibleTreeChildrenExists:function(){return!!this.selfTree&&!!Array.from(this.selfTree.$container[0].children).filter(function(t){return!t.classList.contains("fr-hidden")}).length},checkSearchValue:function(t){this.isVisibleTreeChildrenExists()?this.showTreeItem(this.selfTree.$main):this.selfTree.$content[0].textContent.toUpperCase().includes(t.toString().toUpperCase())?(this.showTreeItem(this.selfTree.$main),this.setStatusTreeNode(!1)):this.removeFromTree(this.selfTree.$main)},showTreeNodeChildren:function(t){var e=this;t&&t[0]&&(t[0].querySelectorAll(".rt-node").forEach(function(t){e.showTreeItem(t)}),e.setExpandIcon(!1))},setExpandIcon:function(t){var e=0<arguments.length&&void 0!==t&&t,n=Array.from(this.selfTree.$main[0].children).find(function(t){return t.classList.contains("rt-expand")});n&&(e?(n.classList.remove("icon-exp_plus"),n.classList.add("icon-exp_minus")):(n.classList.remove("icon-exp_minus"),n.classList.add("icon-exp_plus")))},setStatusTreeNode:function(t){var e=0<arguments.length&&void 0!==t&&t,n=this;e?this.selfTree.$container.slideDown(P,function(){n.setExpandIcon(e),n.statusTree=1}):this.selfTree.$container.slideUp(P,function(){n.setExpandIcon(e),n.statusTree=0,n.showTreeNodeChildren(n.selfTree.$container),n.updateTreeView()})},removeFromTree:function(t){t.addClass?t.addClass("fr-hidden"):t.classList.add("fr-hidden"),this.updateTreeView()},showTreeItem:function(t){t.removeClass?t.removeClass("fr-hidden"):t.classList.remove("fr-hidden"),this.updateTreeView()},updateTreeView:function(){var t=this.selfTree;t&&(t.$content.text(this),t.$container.children().length?this.statusTree?t.$expand.addClass("icon-exp_minus").removeClass("icon-exp_plus").removeClass("icon-leaf"):t.$expand.addClass("icon-exp_plus").removeClass("icon-exp_minus").removeClass("icon-leaf"):t.$expand.removeClass("icon-exp_minus icon-exp_plus").addClass("icon-leaf"))}}),Object(x.a)(c.a,{buildTree:function(e){var n=this;return s.a.buildTree.call(this),this.pages.eachEntity(function(t){n.putInTree(t.buildTree(e))}),this.updateTreeView(),this.selfTree.$main.addClass("rt-root"),this.selfTree.$main},searchTree:function(e){this.selfTree&&e[0].value&&this.pages.eachEntity(function(t){t.searchTree(e)}),this.selfTree&&""===e[0].value&&this.buildTree(!0)},createPage:function(){var t=T.apply(this,arguments);return this.putInTree(t.buildTree()),t},createDialog:function(){var t=w.apply(this,arguments);return t&&this.putInTree(t.buildTree()),t}}),Object(x.a)(u.a,{updateExts:function(){this.rebuildTree()},put:function(t){k.apply(this,arguments),this.putInTree(t.buildTree())},render:function(){return this.attr("removed")&&this.collection.container.putInTree(this.buildTree()),B.apply(this,arguments)},remove:function(){return this.collection.container.removeFromTree(this.selfTree.$main),$.apply(this,arguments)},searchTree:function(t){this.selfTree&&this.checkSearchValue(t[0].value)}}),Object(x.a)(f.default,{put:function(t){return D.apply(this,arguments),this.putInTree(t.buildTree()),this},buildTree:function(){return p.a.buildTree.call(this),this.updateTreeView(),this.selfTree.$main.addClass("rt-form"),this.selfTree.$main}}),d.default.buildTree=function(e){var n=this;return p.a.buildTree.call(this),this.bands.eachEntity(function(t){n.putInTree(t.buildTree(e))}),this.updateTreeView(),e&&this.setStatusTreeNode(!0),this.selfTree.$main.addClass("rt-page"),this.selfTree.$main},d.default.searchTree=function(e){this.selfTree&&(this.bands.eachEntity(function(t){t.searchTree(e)}),this.checkSearchValue(e[0].value))},Object(x.a)(h.default,{buildTree:function(e){var n=this;return u.a.buildTree.call(this),this.bands.eachEntity(function(t){n.putInTree(t.buildTree(e))}),this.components.eachEntity(function(t){n.putInTree(t.buildTree(e))}),this.updateTreeView(),e&&this.setStatusTreeNode(!0),this.selfTree.$main},searchTree:function(e){this.selfTree&&(this.bands.eachEntity(function(t){t.searchTree(e)}),this.components.eachEntity(function(t){t.searchTree(e)}),this.checkSearchValue(e[0].value))},put:function(t){var e=t.collection&&t.collection.container;return this.putInTree(t.buildTree()),e&&e.updateTreeView(),O.apply(this,arguments)}}),Object(x.a)(g.default,{render:function(){return this.attr("removed")&&this.collection.container.putInTree(this.buildTree()),E.apply(this,arguments)},remove:function(){return this.collection.container.removeFromTree(this.selfTree.$main),M.apply(this,arguments)},buildTree:function(t){return s.a.buildTree.call(this,t),this.updateTreeView(),t&&this.setStatusTreeNode(!0),this.selfTree.$main},searchTree:function(e){this.selfTree&&(this.components&&this.components.eachEntity(function(t){t.searchTree(e)}),this.checkSearchValue(e[0].value))}}),m.default.update=function(){var t=A.apply(this,arguments);return this.rebuildTree(),t},m.default.buildTree=function(t){var e=void 0,n=void 0;for(g.default.buildTree.call(this,t),e=0,n=this.columns.length;e<n;e+=1)this.putInTree(this.columns[e].buildTree(t));for(e=0,n=this.rows.length;e<n;e+=1)this.putInTree(this.rows[e].buildTree(t));return this.updateTreeView(),t&&this.setStatusTreeNode(!0),this.selfTree.$main},m.default.searchTree=function(t){var e=void 0,n=void 0,i=void 0,r=void 0;for(e=0,i=this.columns.length;e<i;e+=1)this.columns[e].checkSearchValue(t[0].value);for(e=0,i=this.rows.length;e<i;e+=1){for(n=0,r=this.rows[e].cells.length;n<r;n++)this.rows[e].cells[n].searchTree(t),this.rows[e].cells[n].checkSearchValue(t[0].value);this.rows[e].checkSearchValue(t[0].value)}this.checkSearchValue(t[0].value)},b.a.put=function(t){return this.putInTree(t.buildTree()),j.apply(this,arguments)},b.a.buildTree=function(e){var n=this;return g.default.buildTree.call(this,e),this.components.eachEntity(function(t){n.putInTree(t.buildTree(e))}),this.updateTreeView(),e&&this.setStatusTreeNode(!0),this.selfTree.$main},b.a.searchTree=function(e){this.selfTree&&(this.components.eachEntity(function(t){t.searchTree(e)}),this.checkSearchValue(e[0].value))},v.a.buildTree=function(t){var e,n=void 0;for(s.a.buildTree.call(this),n=0,e=this.cells.length;n<e;n+=1)this.putInTree(this.cells[n].buildTree(t));return this.updateTreeView(),t&&this.setStatusTreeNode(!0),this.selfTree.$main},y.a.buildTree=function(t){return s.a.buildTree.call(this),this.updateTreeView(),t&&this.setStatusTreeNode(!0),this.selfTree.$main},C.default.put=function(t){return this.putInTree(t.buildTree()),j.apply(this,arguments)},C.default.buildTree=function(e){var n=this;return g.default.buildTree.call(this,e),this.components.eachEntity(function(t){n.putInTree(t.buildTree(e))}),this.updateTreeView(),e&&this.setStatusTreeNode(!0),this.selfTree.$main},F={pos:3,className:"report-tree",icon:"icon-189",create:function(){var n=this;return new Promise(function(t){var e=window.DSG.currentReport;n.$body=r()("<div>"),n.$search=r()('<input type="text" placeholder="'+a.a.tr("Search")+'"/>'),n.$tree=r()("<ul>").append(e.buildTree()),n.$search.addClass("rt-search"),n.$tree.addClass("rt-container"),n.$body.append(n.$search,n.$tree),n.$title=r()("<div>"),n.$title.text(a.a.tr("ReportTree")),n.$body.addClass("rt-main-container"),t(n)})},bindEvents:function(){var t=window.DSG.currentReport,e=this;this.$search.on("input",function(){t.searchTree(e.$search)}),t.selfTree.$main.on("click",".rt-content",function(){o.a.trigger("activate",r()(this).parent().data("entity"))}),t.selfTree.$main.on("click",".rt-expand, .rt-icon",function(){var t,e=r()(this);return e.is(".rt-icon")&&(e=e.prev(".rt-expand")),t=e.parent().data("entity"),e.is(".icon-exp_minus")?t.selfTree.$container.slideUp(P,function(){e.removeClass("icon-exp_minus").addClass("icon-exp_plus"),t.statusTree=0}):e.is(".icon-exp_plus")&&t.selfTree.$container.slideDown(P,function(){e.removeClass("icon-exp_plus").addClass("icon-exp_minus"),t.statusTree=1}),!1}),o.a.bind("select-in-tree",function(t){var e;return s.a.selectedInTree&&s.a.selectedInTree.removeClass("selected"),!(!t||!t.selfTree)&&(s.a.selectedInTree=t.selfTree.$content,s.a.selectedInTree.addClass("selected"),(e=s.a.selectedInTree.parents(".rt-page,.rt-form").data("entity"))&&o.a.trigger("show-page",e),this)})}},e.default=Object(l.a)(F)},function(t,e,n){t.exports=n.p+"images/upc-e.af30393a6a96ebffe1bd4374946293ca.png"},function(t){t.exports=JSON.parse('{"2/5 Interleaved":{"label":"2/5 Interleaved","fields":{"Barcode.CalcCheckSum":{"label":"CalcCheckSum","type":"checkbox","defaultValue":true},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Trim":{"label":"Trim","type":"checkbox","defaultValue":true},"Barcode.WideBarRatio":{"label":"WideBarRatio","type":"number","defaultValue":2}}},"2/5 Industrial":{"label":"2/5 Industrial","fields":{"Barcode.CalcCheckSum":{"label":"CalcCheckSum","type":"checkbox","defaultValue":true},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Trim":{"label":"Trim","type":"checkbox","defaultValue":true},"Barcode.WideBarRatio":{"label":"WideBarRatio","type":"number","defaultValue":2}}},"2/5 Matrix":{"label":"2/5 Matrix","fields":{"Barcode.CalcCheckSum":{"label":"CalcCheckSum","type":"checkbox","defaultValue":true},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Trim":{"label":"Trim","type":"checkbox","defaultValue":true},"Barcode.WideBarRatio":{"label":"WideBarRatio","type":"number","defaultValue":2.5}}},"Codabar":{"label":"Codabar","fields":{"Barcode.CalcCheckSum":{"label":"CalcCheckSum","type":"checkbox","defaultValue":true},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Trim":{"label":"Trim","type":"checkbox","defaultValue":true},"Barcode.WideBarRatio":{"label":"WideBarRatio","type":"number","defaultValue":2}}},"Code128":{"label":"Code128","fields":{"Barcode.AutoEncode":{"label":"AutoEncode","type":"checkbox","defaultValue":true},"Barcode.CalcCheckSum":{"label":"CalcCheckSum","type":"checkbox","defaultValue":true},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Trim":{"label":"Trim","type":"checkbox","defaultValue":true},"Barcode.WideBarRatio":{"label":"WideBarRatio","type":"number","defaultValue":2}}},"Code39":{"label":"Code39","fields":{"Barcode.CalcCheckSum":{"label":"CalcCheckSum","type":"checkbox","defaultValue":true},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Trim":{"label":"Trim","type":"checkbox","defaultValue":true},"Barcode.WideBarRatio":{"label":"WideBarRatio","type":"number","defaultValue":2}}},"Code39 Extended":{"label":"Code39 Extended","fields":{"Barcode.CalcCheckSum":{"label":"CalcCheckSum","type":"checkbox","defaultValue":true},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Trim":{"label":"Trim","type":"checkbox","defaultValue":true},"Barcode.WideBarRatio":{"label":"WideBarRatio","type":"number","defaultValue":2}}},"Code93":{"label":"Code93","fields":{"Barcode.CalcCheckSum":{"label":"CalcCheckSum","type":"checkbox","defaultValue":true},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Trim":{"label":"Trim","type":"checkbox","defaultValue":true},"Barcode.WideBarRatio":{"label":"WideBarRatio","type":"number","defaultValue":2}}},"Code93 Extended":{"label":"Code93 Extended","fields":{"Barcode.CalcCheckSum":{"label":"CalcCheckSum","type":"checkbox","defaultValue":true},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Trim":{"label":"Trim","type":"checkbox","defaultValue":true},"Barcode.WideBarRatio":{"label":"WideBarRatio","type":"number","defaultValue":2}}},"EAN8":{"label":"EAN8","fields":{"Barcode.CalcCheckSum":{"label":"CalcCheckSum","type":"checkbox","defaultValue":true},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Trim":{"label":"Trim","type":"checkbox","defaultValue":true},"Barcode.WideBarRatio":{"label":"WideBarRatio","type":"number","defaultValue":2}}},"EAN13":{"label":"EAN13","fields":{"Barcode.CalcCheckSum":{"label":"CalcCheckSum","type":"checkbox","defaultValue":true},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Trim":{"label":"Trim","type":"checkbox","defaultValue":true},"Barcode.WideBarRatio":{"label":"WideBarRatio","type":"number","defaultValue":2}}},"MSI":{"label":"MSI","fields":{"Barcode.CalcCheckSum":{"label":"CalcCheckSum","type":"checkbox","defaultValue":true},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Trim":{"label":"Trim","type":"checkbox","defaultValue":true},"Barcode.WideBarRatio":{"label":"WideBarRatio","type":"number","defaultValue":2}}},"PostNet":{"label":"PostNet","fields":{"Barcode.CalcCheckSum":{"label":"CalcCheckSum","type":"checkbox","defaultValue":true},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Trim":{"label":"Trim","type":"checkbox","defaultValue":true},"Barcode.WideBarRatio":{"label":"WideBarRatio","type":"number","defaultValue":2}}},"UPC-A":{"label":"UPC-A","fields":{"Barcode.CalcCheckSum":{"label":"CalcCheckSum","type":"checkbox","defaultValue":true},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Trim":{"label":"Trim","type":"checkbox","defaultValue":true},"Barcode.WideBarRatio":{"label":"WideBarRatio","type":"number","defaultValue":2}}},"UPC-E0":{"label":"UPC-E0","fields":{"Barcode.CalcCheckSum":{"label":"CalcCheckSum","type":"checkbox","defaultValue":true},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Trim":{"label":"Trim","type":"checkbox","defaultValue":true},"Barcode.WideBarRatio":{"label":"WideBarRatio","type":"number","defaultValue":2}}},"UPC-E1":{"label":"UPC-E1","fields":{"Barcode.CalcCheckSum":{"label":"CalcCheckSum","type":"checkbox","defaultValue":true},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Trim":{"label":"Trim","type":"checkbox","defaultValue":true},"Barcode.WideBarRatio":{"label":"WideBarRatio","type":"number","defaultValue":2}}},"Supplement 2":{"label":"Supplement 2","fields":{"Barcode.CalcCheckSum":{"label":"CalcCheckSum","type":"checkbox","defaultValue":true},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Trim":{"label":"Trim","type":"checkbox","defaultValue":true},"Barcode.WideBarRatio":{"label":"WideBarRatio","type":"number","defaultValue":2}}},"Supplement 5":{"label":"Supplement 5","fields":{"Barcode.CalcCheckSum":{"label":"CalcCheckSum","type":"checkbox","defaultValue":true},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Trim":{"label":"Trim","type":"checkbox","defaultValue":true},"Barcode.WideBarRatio":{"label":"WideBarRatio","type":"number","defaultValue":2}}},"PDF417":{"label":"PDF417","fields":{"Barcode.AspectRatio":{"label":"AspectRatio","type":"number","defaultValue":0.5},"Barcode.CodePage":{"label":"CodePage","type":"number","defaultValue":437},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Columns":{"label":"Columns","type":"number","defaultValue":0},"Barcode.CompactionMode":{"label":"CompactionMode","type":"select","collection":["Auto","Text","Numeric","Binary"],"defaultValue":"Auto"},"Barcode.ErrorCorrection":{"label":"ErrorCorrection","type":"select","collection":["Auto","Level0","Level1","Level2","Level3","Level4","Level5","Level6","Level7","Level8"],"defaultValue":"Auto"},"Barcode.PixelSize":{"label":"PixelSize","type":"text","defaultValue":"2, 8"},"Barcode.Rows":{"label":"Rows","type":"number","defaultValue":0}}},"Datamatrix":{"label":"Datamatrix","fields":{"Barcode.CodePage":{"label":"CodePage","type":"number","defaultValue":1252},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Encoding":{"label":"Encoding","type":"select","collection":["Auto","Ascii","C40","Text","Base256","X12","Edifact"],"defaultValue":"Auto"},"Barcode.PixelSize":{"label":"PixelSize","type":"number","defaultValue":3},"Barcode.SymbolSize":{"label":"SymbolSize","type":"select","collection":["Auto","Size10x10","Size12x12","Size8x18","Size14x14","Size8x32","Size16x16","Size12x26","Size22x22","Size16x36","Size24x24","Size26x26","Size16x48","Size32x32","Size36x36","Size40x40","Size44x44","Size48x48","Size52x52","Size64x64","Size72x72","Size80x80","Size88x88","Size96x96","Size104x104","Size120x120","Size132x132","Size144x144"],"defaultValue":"Auto"}}},"QR Code":{"label":"QR Code","fields":{"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Encoding":{"label":"Encoding","type":"select","collection":["Auto","Ascii","C40","Text","Base256","X12","Edifact"],"defaultValue":"Auto"},"Barcode.ErrorCorrection":{"label":"ErrorCorrection","type":"select","collection":["L","M","H","Q"],"defaultValue":"L"},"Barcode.QuietZone":{"label":"QuietZone","type":"checkbox","defaultValue":true}}},"Plessey":{"label":"Plessey","fields":{"Barcode.CalcCheckSum":{"label":"CalcCheckSum","type":"checkbox","defaultValue":true},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Trim":{"label":"Trim","type":"checkbox","defaultValue":true},"Barcode.WideBarRatio":{"label":"WideBarRatio","type":"number","defaultValue":2}}},"GS1-128 (UCC/EAN-128)":{"label":"GS1-128 (UCC/EAN-128)","fields":{"Barcode.AutoEncode":{"label":"AutoEncode","type":"checkbox","defaultValue":true},"Barcode.CalcCheckSum":{"label":"CalcCheckSum","type":"checkbox","defaultValue":true},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Trim":{"label":"Trim","type":"checkbox","defaultValue":true},"Barcode.WideBarRatio":{"label":"WideBarRatio","type":"number","defaultValue":2}}},"Aztec":{"label":"Aztec","fields":{"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.ErrorCorrectionPercent":{"label":"ErrorCorrectionPercent","type":"number","defaultValue":33}}},"Pharmacode":{"label":"Pharmacode","fields":{"Barcode.CalcCheckSum":{"label":"CalcCheckSum","type":"checkbox","defaultValue":true},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Trim":{"label":"Trim","type":"checkbox","defaultValue":true},"Barcode.WideBarRatio":{"label":"WideBarRatio","type":"number","defaultValue":2},"Barcode.QuietZone":{"label":"QuietZone","type":"checkbox","defaultValue":true}}},"MaxiCode":{"label":"MaxiCode","fields":{"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Mode":{"label":"Mode","type":"number","defaultValue":4}}},"Intelligent Mail (USPS)":{"label":"Intelligent Mail (USPS)","fields":{"Barcode.CalcCheckSum":{"label":"CalcCheckSum","type":"checkbox","defaultValue":true},"Barcode.Color":{"label":"Color","type":"color","defaultValue":"#000000"},"Barcode.Trim":{"label":"Trim","type":"checkbox","defaultValue":true},"Barcode.WideBarRatio":{"label":"WideBarRatio","type":"number","defaultValue":2},"Barcode.QuietZone":{"label":"QuietZone","type":"checkbox","defaultValue":true}}}}')},function(t,e,n){"use strict";var i=n(0),s=n.n(i),d=n(4),r=n(1),u=n(15),a=n(8),h=n(178),f=n(69),g=n(26),m=n(16);n(245),n(246);e.a=Object(a.a)(r.a,{_init:function(l){function c(t,e){void 0!==t&&(l.unlock(e),t&&l.select(e))}function t(i){var t=a.$color,r=o._getSelected(),e="Fill.Color"===i?r[0].getFillColor():r[0].prop(i);Object(h.a)("color")?(s()(".fr-reusable").css({left:"40%",top:"16%"}),t.trigger("click"),t.val(Object(f.a)(e))):(t.spectrum({color:Object(f.a)(e),preferredFormat:"hex",change:function(){s()(".sp-container:not(.sp-hidden)").remove(),s()(this).trigger("change keyup")}}),t.next().trigger("click"),s()(".sp-container:not(.sp-hidden)").css({left:"40%",top:"16%"})),t.off("change keyup").on("change keyup",function(){for(var t=s()(this).val(),e=void 0,n=r.length-1;0<=n;n-=1)(e=r[n]).canModify()&&e.canEdit()&&(e.prop(i,t,!0),e.render())})}var e=this.bind,n=this.trigger,p=this.report=window.DSG.currentReport,a=this.head=window.DSG.head,o=this;l&&(e("menu-fill-color",function(){t("Fill.Color")}),e("menu-border-color",function(){t("Border.Color")}),e("menu-text-fill",function(){t("TextFill.Color")}),e("menu-font-name",function(t){n("font-name",t)}),e("menu-font-width",function(t){n("font-width",t)}),e("menu-font-bold",function(){n("font-bold")}),e("menu-font-italic",function(){n("font-italic")}),e("menu-font-underline",function(){n("font-underline")}),e("menu-font-strikeout",function(){n("font-strikeout")}),e("menu-horz-align-left",function(){n("horz-align-left")}),e("menu-horz-align-center",function(){n("horz-align-center")}),e("menu-horz-align-right",function(){n("horz-align-right")}),e("menu-horz-align-justify",function(){n("horz-align-justify")}),e("menu-border-all",function(){s.a.each(o._getSelected(),function(){this.applyForBorder("All"),this.render()})}),e("menu-border-none",function(){s.a.each(o._getSelected(),function(){this.applyForBorder("None"),this.render()})}),e("menu-border-left",function(){s.a.each(o._getSelected(),function(){this.applyForBorder("Left"),this.render()})}),e("menu-border-top",function(){s.a.each(o._getSelected(),function(){this.applyForBorder("Top"),this.render()})}),e("menu-border-right",function(){s.a.each(o._getSelected(),function(){this.applyForBorder("Right"),this.render()})}),e("menu-border-bottom",function(){s.a.each(o._getSelected(),function(){this.applyForBorder("Bottom"),this.render()})}),e("menu-edit-border",function(){n("edit-border",p.getCurrentPage().bands.getSelectedComponents())}),e("update-menu",function(){var t,e,n,i,r,a,o,s;if(l.unselect(["horz-align-left","horz-align-center","horz-align-right","horz-align-justify","vert-align-top","vert-align-center","vert-align-bottom","font-bold","font-italic","font-underline","font-strikeout"]),l.lock(["copy","cut","paste","undo","redo","bring-to-front","send-to-back","group","text-fill","horz-align-left","horz-align-center","horz-align-right","horz-align-justify","vert-align-top","vert-align-center","vert-align-bottom","font-bold","font-italic","font-underline","font-strikeout","font-name","font-width","fill-color","border-color","border-style","border-width","edit-border"]),!(t=p.getCurrentPage()).isCode()){switch(u.a.canUndo()&&l.unlock("undo"),u.a.canRedo()&&l.unlock("redo"),t.buffer.length&&l.unlock("paste"),(e=(t.bands||t.components).getSelectedComponents()).length&&l.unlock(["copy","cut","bring-to-front","send-to-back","edit-border"]),1<e.length&&l.unlock(["group"]),1===e.length?((n=(e=e[0]).prop("HorzAlign"))&&(l.unlock(["horz-align-left","horz-align-center","horz-align-right","horz-align-justify"]),l.select("horz-align-"+n.toLowerCase())),(n=e.prop("VertAlign"))&&(l.unlock(["vert-align-top","vert-align-center","vert-align-bottom"]),l.select("vert-align-"+n.toLowerCase())),c(e.attr("Font.Bold"),"font-bold"),c(e.attr("Font.Italic"),"font-italic"),c(e.attr("Font.Underline"),"font-underline"),c(e.attr("Font.Strikeout"),"font-strikeout"),(n=e.attr("Font.Name"))&&(d.a.get("font-names").includes(n)||e.attr("notified_about_wrong_font")||(Object(g.a)("Font is not in the system",{danger:!0,trans:!0}),e.attr("notified_about_wrong_font",1)),l.unlock("font-name"),l.set("font-name",n)),(n=e.attr("Font.Size"))&&(l.unlock("font-width"),l.set("font-width",n)),e.canHaveProp("Appearance:TextFill:TextFill.Color")&&l.unlock("text-fill")):e=e.length?null:p.getSelected(),function(t){var e,n,i=["border-all","border-none","border-left","border-top","border-right","border-bottom"];if(!t||!t.canHaveProp("Appearance:Border:TopLine"))return l.lock(i),l.unselect(i);if(l.unlock(i),l.unselect(i),e=t.prop("Border.Lines")){for(n=(e=e.split(/,[\s]?/)).length;n--;)l.select("border-"+e[n].toLowerCase());~e.indexOf("All")&&l.select(["border-left","border-top","border-right","border-bottom"])}else l.select("border-none")}(e),[i="instrument-move",r="instrument-newpoint",a="instrument-bezier",o="instrument-point",s="instrument-delete-point"].forEach(function(t){return l.unselect(t)}),m.b.getInstrument()){case m.a.MOVE:l.select(i);break;case m.a.NEW_POINT:l.select(r);break;case m.a.BEZIER:l.select(a);break;case m.a.POINT:l.select(o)}e&&e.poly||l.hideBlock("instruments"),e&&(e.poly&&(l.showBlock("instruments"),e.selectedPoint&&l.unlock(s),e.hideResizingComponents(),e.showResizingComponents()),e.canHaveProp("Appearance:Fill:Fill.Color")&&l.unlock("fill-color"),e.canHaveProp("Appearance:Border:Border.Color")&&l.unlock("border-color"),e.canHaveProp("Appearance:Border:Border.Style")&&(l.unlock("border-style"),l.set("border-style",e.prop("Border.Style"))),e.canHaveProp("Appearance:Border:Border.Width")&&(l.unlock("border-width"),l.set("border-width",e.prop("Border.Width"))))}}))},_getSelected:function(){var t,e=this.report.getCurrentPage();return e.isReportPage()&&((t=e.bands.getSelectedComponents()).length||(t=[t=(t=e.bands.getSelectedBand())||e])),Array.prototype.slice.apply(t)}})},function(t,e,n){"use strict";n(384);var i=n(0),r=n.n(i),a=(n(385),n(391),n(4)),o=n(2),s=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:" ";return'\n <div class="fr-modal fade fr-modal-transform">\n <div class="fr-modal-header">\n <button type="button" class="close">\n <i class="fa fa-times"></i>\n </button>\n <h4 class="fr-modal-title">'+o.a.tr(t)+'</h4>\n </div>\n <div class="fr-modal-dialog">\n <div class="fr-modal-content"></div>\n </div>\n </div>\n '},l=0,c=void 0;r()(document.body).on("keydown",function(){"function"==typeof c&&c.apply(this,arguments)}),e.a=function(t,e){function n(){"function"==typeof e.onClose&&e.onClose.apply(this,arguments);var t=i.parent();i.remove(),l-=1,t.trigger("popup-closed")}e=e||{};var i=r()(s(t));return l+=1,i.css({position:"relative","z-index":l}),c=function(t){27!==t.keyCode||a.a.get("hotkeyProhibited")||(n(),i.trigger("closed"))},e.addClass&&i.addClass(e.addClass),!0===e.danger&&i.find(".fr-modal-header").addClass("fr-modal-header-danger"),e.dontMove||i.draggable({handle:".fr-modal-header"}),i.close=n,i.on("click",".close",n),i}},,,function(t,i,s){"use strict";(function(r){var e=s(4),a=s(12),t=s(8),n=s(18),o=s(65);i.a=Object(t.a)(a.a,{type:"Condition",defaultValue:"Value == 0",_init:function(t){this._id=t||"cnd"+Object(n.a)(),this.defaultValues={ApplyTextFill:!0,"TextFill.Color":"#000",Visible:!0},this.attr({"Font.Name":e.a.get("default-font-name"),"Font.Size":"10pt","Font.Bold":!1,"Font.Italic":!1,"Font.Underline":!1,"Font.Strikeout":!1})},create:function(){var t=this.createObject(this);return t._init.apply(t,arguments),t},toXMLNET:function(t){var i=this;return new Promise(function(n){a.a.toXMLNET.call(i,t).then(function(t){var e=r(t.xml);return Object(o.a)(e,i),n(t)})})}})}).call(this,s(0))},,,,,,,,function(t,e,n){"use strict";function i(t,e){var n;t.files&&t.files[0]&&(n=new FileReader,"function"==typeof e&&(n.onload=e),n.readAsDataURL(t.files[0]))}n.d(e,"a",function(){return i})},function(t,e,n){"use strict";var i=n(0),o=n.n(i),r=n(12),a=n(99),s=n(35),l=n(18),c=n(1);e.a=r.a.createObject(r.a,{icon:"icon-053",_init:function(t){this._id="conn"+Object(l.a)(),this.type=t,this.dataSources=a.a.create(this),this.defaultValues={CommandTimeout:30,ConnectionStringExpression:"",LoginPrompt:!1},this.prop("Name","Connection"),this.editable=[null,function(t){c.a.trigger("remove-connection",t)}]},create:function(){var t=this.createObject(this);return t._init.apply(t,arguments),t},isConnection:function(){return!0},fillMap:function(){this.fieldMap=s.a.factory(["Design:Name","Design:Alias","Design:Restrictions","Data:CommandTimeout","Data:ConnectionString","Data:ConnectionStringExpression","Data:LoginPrompt"]),this.mainFields=[["Design:Name"]]},remove:function(){this.attr("removed",!0)},restore:function(){this.attr("removed",!1)},toXMLNET:function(a){var t=this;return new Promise(function(e){var n,i,r=o()(a.parentNode.ownerDocument.createElement(t.type));a=Object.assign({},a),t.eachProp(function(t,e){r.attr(t,e)}),a.parentNode=r[0],n=[],i={type:"connection",dataSources:[]},t.dataSources.eachEntity(function(t){n.push(t.toXMLNET(a))}),Promise.all(n).then(function(t){return t.forEach(function(t){t.xml&&r.append(t.xml),t.component&&(t.component.columns.length||t.component.dataSources.length||t.component.origins)&&i.dataSources.push(t.component)}),e({xml:r[0]})})})},toString:function(){return this.prop("Alias")||this.prop("Name")}})},function(t,e,n){"use strict";var i=n(25),r=n(99),a=n(87),o=n(167),s=n(31),l=n(35),c=n(8),p=n(18),d={default:["Data:Parameters","Data:SelectCommand","Data:StoreData","Data:TableName","Design:Name","Design:Alias","Design:Restrictions","Misc:ForceLoadData"],BusinessObjectDataSource:["Design:Name","Design:Alias","Design:Restrictions","Misc:ForceLoadData"]};e.a=Object(c.a)(a.a,{icon:"icon-tds",_init:function(t){this._id="tds"+Object(p.a)(),this.type=t,this.dataSources=r.a.create(this),this.columns=i.a.create(this),this.defaultValues={ForceLoadData:!1,StoreData:!1},this.prop({Name:"DataSource",DataType:s.a.get("System.Int32")}),this.unparsed=[]},fillMap:function(){this.fieldMap=l.a.factory(d[this.type]||d.default),this.mainFields=[["Design:Name"]]},isDataSource:function(){return!0},createColumn:function(){return a.a.createColumn.call(this,o.a)}})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";function a(t){return'\n <div class="d-mc d-lib d-wb" data-info="'+t.info+'" data-component="'+t.type+'">\n <div class="'+t.icon+'"></div>\n <span class="fr-component-title">'+h.a.tr(t.title)+'</span>\n <div class="aqw"></div>\n </div>\n '}function c(t,e){new F.a(t,function(t){return h.a.tr(t.label)}(e),function(t){var e=window.DSG.currentReport,n=e.getSelected(),i=Object(L.c)(t);return[Object(L.a)(n._favMap.map,i)?{name:h.a.tr("Properties Remove Favorite"),type:"default",closeAfter:!0,onClick:function(){f.a.trigger("component-remove-fav-field",n,t)}}:{name:h.a.tr("Properties Add Favorite"),type:"default",closeAfter:!0,onClick:function(){f.a.trigger("component-add-fav-field",n,t)}}]}(e))}var n,d,u,h,f,p,o,i,g,m,b,s,l,v,y,C,S,x,P,w,T,k,B,$,O,E,M,D,A,j,F,L,R;r.r(e),r(400),n=r(0),d=r.n(n),u=r(4),h=r(2),f=r(1),p=r(8),o=r(93),i=Object(p.a)({},{defer:d.a.Deferred(),create:function(){return Object(p.a)(this)},init:function(){this.$node||(this.$node=d()("<div>"),this.$node.addClass("fr-menu"),this.$node.on("click dragstart","img,a",function(){return!1}))},_select:function(t){d()(".d-mc.menu-"+t,this.$node).addClass("d-wsb")},_isSelected:function(t){return d()(".d-mc.menu-"+t,this.$node).hasClass("d-wsb")},_unselect:function(t){d()(".d-mc.menu-"+t,this.$node).removeClass("d-wsb")},_has:function(t){return d()(".d-mc.menu-"+t,this.$node).length},_hideBlock:function(t){var e=d()(".menu-"+t+"-block",this.$node);e&&e.addClass("fr-hidden")},_showBlock:function(t){var e=d()(".menu-"+t+"-block",this.$node);e&&e.removeClass("fr-hidden")},_lock:function(t){var e=d()(".d-mc.menu-"+t,this.$node);e.length||(e=d()(t+"",this.$node)),e.attr("disabled",!0)},_unlock:function(t){var e=d()(".d-mc.menu-"+t,this.$node);e.length||(e=d()(t+"",this.$node)),e.removeAttr("disabled")},_set:function(t,e){var n=d()(".d-mc.menu-"+t,this.$node);n.length||(n=d()(t+"",this.$node)),n.val(e),e&&n.is(".d-mc-auto-update")&&!n.find(":selected").length&&n.prepend('<option value="{0}">{1}</option>'.format(e,e))},_bindMenuListeners:function(t){var e=".d-mc[class*=menu-]:not([disabled])",i=Object(o.a)(function(){return f.a.trigger("update-properties-panel")},500),r=function(t){return t.split(" ").filter(function(t){return~t.indexOf("menu-")})[0]};t.on("click",e,function(t){var e=d()(this),n=r(e.attr("class"));e.is("select")?d()(".menu-helper").remove():n&&(f.a.trigger(n,e.val(),t,"click"),f.a.trigger("update-menu"),i())}).on("change",e,function(t){var e=d()(this),n=r(e.attr("class"));n&&(f.a.trigger(n,e.val(),t,"change"),f.a.trigger("update-menu"),i())}).on("input",e,function(t){var e=d()(this),n=r(e.attr("class"));n&&(f.a.trigger(n,e.val(),t,"input"),i())}).on("focus",e,function(t){var e=d()(this),n=r(e.attr("class"));u.a.set("hotkeyProhibited",!0),n&&f.a.trigger(n+"-start",e.val(),t,"focus")}).on("blur",e,function(t){var e=d()(this),n=r(e.attr("class"));u.a.set("hotkeyProhibited",!1),n&&f.a.trigger(n+"-end",e.val(),t,"end")})},isReady:function(){return this.defer.promise()},lock:function(t){var e,n=0;for(d.a.isArray(t)||(t=[t]),e=t.length;n<e;n+=1)this._lock(t[n])},unlock:function(t){var e,n=0;for(d.a.isArray(t)||(t=[t]),e=t.length;n<e;n+=1)this._unlock(t[n])},set:function(t,e){var n,i=0;for(d.a.isArray(t)||(t=[t]),n=t.length;i<n;i+=1)this._set(t[i],e)},select:function(t){var e,n=0;for(d.a.isArray(t)||(t=[t]),e=t.length;n<e;n+=1)this._select(t[n])},unselect:function(t){var e,n=0;for(d.a.isArray(t)||(t=[t]),e=t.length;n<e;n+=1)this._unselect(t[n])},unselectAll:function(){d()(".d-wsb",this.$node).removeClass("d-wsb")},isSelected:function(t){return this._isSelected(t)},has:function(t){return this._has(t)},lockAll:function(){d()(".d-mc",this.$node).attr("disabled",!0)},getHeight:function(){return this.$node.outerHeight(!0)},hideBlock:function(t){this._hideBlock(t)},showBlock:function(t){this._showBlock(t)}}),g=r(23),m=r(30),b=function(){return'\n <div class="topbar">\n <ul class="fr-nav fr-nav-tabs">\n <li class="m-item active">\n <a class="d-tab" data-tab="'+m.g.HOME_TAB+'">\n <i class="fa fa-home"></i>\n <span>'+h.a.tr("Ribbon Home")+'</span>\n </a>\n </li>\n\n <li class="m-item">\n <a class="d-tab" data-tab="'+m.g.REPORT_TAB+'">\n <span>'+h.a.tr("Menu Report")+'</span>\n </a>\n </li>\n\n <li class="m-item">\n <a class="d-tab" data-tab="'+m.g.LAYOUT_TAB+'">\n <span>'+h.a.tr("Toolbar Layout")+'</span>\n </a>\n </li>\n\n <li class="m-item">\n <a class="d-tab" data-tab="'+m.g.VIEW_TAB+'">\n <span>'+h.a.tr("Menu View")+'</span>\n </a>\n </li>\n\n <li class="m-item">\n <a class="d-tab" data-tab="'+m.g.COMPONENTS_TAB+'">\n <span>'+h.a.tr("Components")+'</span>\n </a>\n </li>\n\n <li class="m-item">\n <a class="d-tab" data-tab="'+m.g.BANDS_TAB+'">\n <span>'+h.a.tr("Objects Bands")+'</span>\n </a>\n </li>\n <li class="m-item">\n <a class="d-tab" data-tab="'+m.g.PREVIEW_TAB+'">\n <span>'+h.a.tr("ReportPreview")+'</span>\n </a>\n </li><li class="pull-right">\n <span class="fr-navbar-brand">'+h.a.tr("HTML5Designer")+'</span>\n </li>\n </ul>\n </div>\n\n <div class="fr-tab-content">\n <div class="fr-tabs-container"></div>\n\n <div class="helper-buttons">\n <a class="fullscreen d-wb">\n <i class="fa fa-arrows-alt"></i>\n </a>\n\n <a class="show-helper d-wb">\n <i class="fa fa-info"></i>\n </a>\n\n <a class="hide-menu d-wb">\n <i class="fa fa-chevron-up"></i>\n </a>\n </div>\n </div>\n '},s=r(16),l=function(){return'\n <div class="fr-tab-pane active" data-tab="'+m.c+'">\n <ul class="fr-tab-pane-body">\n <li class="fr-group">\n <div class="fr-container">\n <div class="fr-group-body">\n <div class="fr-group-body-subcontainer d-two-lines d-vertical">\n <a class="d-mc menu-undo d-sb d-wb" data-info="'+h.a.tr("Toolbar Standard Undo")+'">\n <i class="fa fa-undo"></i>\n </a>\n <a class="d-mc menu-redo d-sb d-wb" data-info="'+h.a.tr("Toolbar Standard Redo")+'">\n <i class="fa fa-repeat"></i>\n </a>\n </div>\n </div>\n <div class="fr-group-label">'+h.a.tr("Menu Edit Undo")+'</div>\n </div>\n <div class="fr-separator"></div>\n </li>\n\n <li class="fr-group">\n <div class="fr-container">\n <div class="fr-group-body">\n <div class="fr-group-body-subcontainer d-one-line d-vertical">\n <a class="d-mc menu-paste d-lb d-wb">\n <div class="icon-007"></div>\n <span>'+h.a.tr("Menu Edit Paste")+'</span>\n </a>\n </div>\n <div class="fr-group-body-subcontainer d-three-lines d-vertical">\n <a class="d-mc menu-copy d-sb d-wb">\n <div class="icon-006 pull-left"></div>\n <span>'+h.a.tr("Menu Edit Copy")+'</span>\n </a>\n <a class="d-mc menu-cut d-sb d-wb">\n <div class="icon-005 pull-left"></div>\n <span>'+h.a.tr("Menu Edit Cut")+'</span>\n </a>\n <a class="d-mc menu-remove d-sb d-wb">\n <div class="icon-012 pull-left"></div>\n <span>'+h.a.tr("Menu Edit Delete")+'</span>\n </a>\n </div>\n </div>\n <div class="fr-group-label">'+h.a.tr("Clipboard")+'</div>\n </div>\n <div class="fr-separator"></div>\n </li>\n <li class="fr-group">\n <div class="fr-container">\n <div class="fr-group-body">\n <div class="fr-group-body-subcontainer d-one-line d-horizontal">'+function(){var e="",t=u.a.get("font-names");return t.forEach(function(t){e+='<option value="'+t+'">'+t+"</option>"}),'\n <select class="d-mc menu-font-name d-sb d-mc-auto-update" data-info="'+h.a.tr("Toolbar Text Name")+'">\n '+e+"\n </select>\n "}()+'</div>\n <div class="fr-group-body-subcontainer d-one-line d-horizontal">\n <a class="d-mc menu-font-bold d-sb d-wb pull-left" data-info="'+h.a.tr("Toolbar Text Bold")+'">\n <div class="icon-020"></div>\n </a>\n <a class="d-mc menu-font-italic d-sb d-wb pull-left" data-info="'+h.a.tr("Toolbar Text Italic")+'">\n <div class="icon-021"></div>\n </a>\n <a class="d-mc menu-font-underline d-sb d-wb pull-left" data-info="'+h.a.tr("Toolbar Text Underline")+'">\n <div class="icon-022"></div>\n </a>\n <a class="d-mc menu-font-strikeout d-sb d-wb pull-left" data-info="'+h.a.tr("Toolbar Text Strikeout")+'">\n <div class="icon-strikeout icon-16by16"></div>\n </a>\n '+function(){var e="",t=u.a.get("font-sizes");return t.forEach(function(t){e+='<option value="'+t+'pt">'+t+"</option>"}),'\n <select class="d-mc menu-font-width d-sb" data-info="'+h.a.tr("Toolbar Text Size")+'">\n '+e+"\n </select>\n "}()+'\n </div>\n </div>\n <div class="fr-group-label">'+h.a.tr("HighlightEditor Font")+'</div>\n </div>\n <div class="fr-separator"></div>\n </li>\n <li class="fr-group">\n <div class="fr-container">\n <div class="fr-group-body">\n <div class="fr-group-body-subcontainer d-one-line d-horizontal">\n <a class="d-mc menu-text-fill d-sb d-wb" data-info="'+h.a.tr("Toolbar Text Color")+'">\n <div class="icon-023"></div>\n </a>\n <a class="d-mc menu-vert-align-top d-sb d-wb" data-info="'+h.a.tr("Toolbar Text Top")+'">\n <div class="icon-029"></div>\n </a>\n <a class="d-mc menu-vert-align-center d-sb d-wb" data-info="'+h.a.tr("Toolbar Text Middle")+'">\n <div class="icon-030"></div>\n </a>\n <a class="d-mc menu-vert-align-bottom d-sb d-wb" data-info="'+h.a.tr("Toolbar Text Bottom")+'">\n <div class="icon-031"></div>\n </a>\n </div>\n <div class="fr-group-body-subcontainer d-one-line d-horizontal">\n <a class="d-mc menu-horz-align-left d-sb d-wb" data-info="'+h.a.tr("Toolbar Text Left")+'">\n <div class="icon-025"></div>\n </a>\n <a class="d-mc menu-horz-align-center d-sb d-wb" data-info="'+h.a.tr("Toolbar Text Center")+'">\n <div class="icon-026"></div>\n </a>\n <a class="d-mc menu-horz-align-right d-sb d-wb" data-info="'+h.a.tr("Toolbar Text Right")+'">\n <div class="icon-027"></div>\n </a>\n <a class="d-mc menu-horz-align-justify d-sb d-wb" data-info="'+h.a.tr("Toolbar Text Justify")+'">\n <div class="icon-028"></div>\n </a>\n </div>\n </div>\n\n <div class="fr-group-label">'+h.a.tr("Alignment")+'</div>\n </div>\n <div class="fr-separator"></div>\n </li>\n <li class="fr-group">\n <div class="fr-container">\n <div class="fr-group-body">\n <div class="fr-group-body-subcontainer d-one-line d-horizontal">\n <a class="d-mc menu-border-all d-sb d-wb" data-info="'+h.a.tr("Toolbar Border All")+'">\n <div class="icon-036"></div>\n </a>\n <a class="d-mc menu-border-none d-sb d-wb" data-info="'+h.a.tr("Toolbar Border None")+'">\n <div class="icon-037"></div>\n </a>\n <a class="d-mc menu-border-left d-sb d-wb" data-info="'+h.a.tr("Toolbar Border Left")+'">\n <div class="icon-034"></div>\n </a>\n <a class="d-mc menu-border-top d-sb d-wb" data-info="'+h.a.tr("Toolbar Border Top")+'">\n <div class="icon-032"></div>\n </a>\n <a class="d-mc menu-border-right d-sb d-wb" data-info="'+h.a.tr("Toolbar Border Right")+'">\n <div class="icon-035"></div>\n </a>\n <a class="d-mc menu-border-bottom d-sb d-wb" data-info="'+h.a.tr("Toolbar Border Bottom")+'">\n <div class="icon-033"></div>\n </a>\n <a class="d-mc menu-edit-border d-sb d-wb" data-info="'+h.a.tr("Toolbar Border Props")+'">\n <div class="icon-040"></div>\n </a>\n </div>\n <div class="fr-group-body-subcontainer d-one-line d-horizontal">\n <a class="d-mc menu-fill-color d-sb d-wb pull-left" data-info="'+h.a.tr("Toolbar Border FillColor")+'">\n <div class="icon-038"></div>\n </a>\n <a class="d-mc menu-border-color d-sb d-wb pull-left" data-info="'+h.a.tr("Toolbar Border LineColor")+'">\n <div class="icon-039"></div>\n </a>\n '+function(){var e="";return Object.keys(u.a.get("dasharrays")).forEach(function(t){e+='<option value="'+t+'">'+t+"</option>"}),'\n <select class="d-mc menu-border-style d-sb" data-info="'+h.a.tr("Toolbar Border Style")+'">\n '+e+"\n </select>\n "}()+'\n <select class="d-mc menu-border-width d-sb" data-info="'+h.a.tr("Toolbar Border Width")+'">\n <option value="1">1</option>\n <option value="2">2</option>\n <option value="3">3</option>\n <option value="4">4</option>\n <option value="5">5</option>\n <option value="6">6</option>\n <option value="7">7</option>\n <option value="8">8</option>\n <option value="9">9</option>\n <option value="10">10</option>\n <option value="11">11</option>\n <option value="12">12</option>\n </select>\n </div>\n </div>\n <div class="fr-group-label">'+h.a.tr("Toolbar Border")+'</div>\n </div>\n <div class="fr-separator"></div>\n </li>\n <li class="fr-group">\n <div class="fr-container">\n <div class="fr-group-body">\n <div class="fr-group-body-subcontainer d-two-lines d-vertical">\n <a class="d-mc menu-bring-to-front d-sb d-wb" data-info="'+h.a.tr("Layout BringToFront")+'">\n <div class="icon-014"></div>\n </a>\n <a class="d-mc menu-send-to-back d-sb d-wb" data-info="'+h.a.tr("Layout SendToBack")+'">\n <div class="icon-015"></div>\n </a>\n </div>\n </div>\n <div class="fr-group-label"> </div>\n </div>\n <div class="fr-separator"></div>\n </li>\n <li class="fr-group">\n <div class="fr-container">\n <div class="fr-group-body d-extra">\n <div class="fr-group-body-subcontainer d-one-line d-horizontal"></div>\n <div class="fr-group-body-subcontainer d-one-line d-horizontal"></div>\n </div>\n <div class="fr-group-label">'+h.a.tr("Extra")+'</div>\n </div>\n <div class="fr-separator"></div>\n </li>\n <li class="fr-group menu-instruments-block fr-hidden">\n <div class="fr-container">\n <div class="fr-group-body fr-instruments">\n <div class="d-horizontal">\n <div class="d-one-line">\n <a class="d-mc instr-button menu-instrument-move d-sb d-wb '+(s.b.getInstrument()===s.a.MOVE&&"d-wsb")+'" data-info="Move instrument">\n <div class="icon-move-instr"></div>\n </a>\n <a class="d-mc instr-button menu-instrument-newpoint d-sb d-wb '+(s.b.getInstrument()===s.a.NEW_POINT&&"d-wsb")+'" data-info="Add new point">\n <div class="icon-new-point-instr"></div>\n </a>\n <a class="d-mc instr-button menu-instrument-delete-point d-sb d-wb" data-info="Delete point">\n <div class="icon-delete-point"></div>\n </a>\n </div>\n <div class="d-one-line">\n <a class="d-mc instr-button menu-instrument-bezier d-sb d-wb '+(s.b.getInstrument()===s.a.BEZIER&&"d-wsb")+'" data-info="Add bezier point">\n <div class="icon-bezier-instr"></div>\n </a>\n <a class="d-mc instr-button menu-instrument-point d-sb d-wb '+(s.b.getInstrument()===s.a.POINT&&"d-wsb")+'" data-info="Pointer">\n <div class="icon-point-instr"></div>\n </a>\n </div>\n </div>\n </div>\n <div class="fr-group-label">Instruments</div>\n </div>\n <div class="fr-separator"></div>\n </li>\n </ul>\n </div>\n '},v=function(){return'\n <div class="fr-tab-pane" data-tab="'+m.d+'">\n <ul class="fr-tab-pane-body">\n <li class="fr-group">\n <div class="fr-container">\n <div class="fr-group-body">\n <div class="fr-group-body-subcontainer d-one-line d-vertical">\n <a class="d-mc menu-group d-lb d-wb">\n <div class="icon-Group"></div>\n <span>'+h.a.tr("Edit Group")+'</span>\n </a>\n </div>\n <div class="fr-group-body-subcontainer d-one-line d-vertical">\n <a class="d-mc menu-ungroup d-lb d-wb">\n <div class="icon-Ungroup"></div>\n <span>'+h.a.tr("Edit Ungroup")+'</span>\n </a>\n </div>\n </div>\n <div class="fr-group-label">'+h.a.tr("Toolbar Layout")+'</div>\n </div>\n <div class="fr-separator"></div>\n </li>\n </ul>\n </div>\n '},y=r(14),C=function(){return'\n <div class="fr-tab-pane" data-tab="'+m.h+'">\n <ul class="fr-tab-pane-body">\n <li class="fr-group">\n <div class="fr-container">\n <div class="fr-group-body">\n <div class="fr-group-body-subcontainer d-one-line d-vertical">\n <a class="d-mc menu-grid d-lb d-wb">\n <div class="icon-ViewGridlines"></div>\n <span>'+h.a.tr("Menu View Grid")+'</span>\n </a>\n </div>\n <div class="fr-group-body-subcontainer d-two-lines d-vertical">\n '+function(){var i="";return Object.entries(y.a.all()).forEach(function(t){var e=t[0],n=t[1];i+='<option value="'+e+'">'+h.a.tr(n)+"</option>"}),'\n <select class="d-mc menu-units d-sb" data-info="'+h.a.tr("Menu View Units")+'">\n '+i+"\n </select>\n "}()+'\n <input class="d-mc menu-snap-size d-sb" min="0" step="0.1" type="number" data-info="'+h.a.tr("SnapSize")+'"/>\n </div>\n </div>\n <div class="fr-group-label">'+h.a.tr("Menu View")+'</div>\n </div>\n <div class="fr-separator"></div>\n </li>\n <li class="fr-group">\n <div class="fr-container">\n <div class="fr-group-body">\n \n <div class="fr-group-body-subcontainer d-one-line d-vertical">\n <a class="d-mc menu-guides d-lb d-wb">\n <div class="icon-ViewGuides"></div>\n <span>'+h.a.tr("Menu View Guides")+'</span>\n </a>\n </div>\n \n <div class="fr-group-body-subcontainer d-one-line d-vertical">\n '+function(){var i="",r=h.a.getCurrentLang();return Object.entries(u.a.get("languages")).forEach(function(t){var e=t[0],n=t[1];i+='<option value="'+e+'" '+(r===e?"selected":"")+">"+h.a.tr(n)+"</option>"}),'<select class="d-mc menu-language d-sb" data-info="'+h.a.tr("Menu SelectLanguage")+'" l10n>'+i+"</select>"}()+'\n </div>\n </div>\n <div class="fr-group-label"> </div>\n </div>\n <div class="fr-separator"></div>\n </li>\n </ul>\n </div>\n '},S=function(t){return'\n <div class="fr-tab-pane" data-tab="'+m.b+'">\n <ul class="fr-tab-pane-body">\n <li class="fr-group">\n <div class="fr-container">\n <div class="fr-group-body">'+function(t){var n="",i={};return t.forEach(function(t){if(!t.disabled)if(t.groupType){i[t.groupType]||(n+='\n <div class="d-mc d-lib d-wb fr-component-group">\n <div class="'+t.icon+'"></div>\n <span class="fr-component-title">'+h.a.tr(t.groupType)+'</span>\n <div class="fr-component-group-switcher"></div>\n <div class="fr-component-group-list fr-hidden">%'+t.groupType+"%</div>\n </div>\n ");var e=i[t.groupType]||"";e+=a(t),i[t.groupType]=e}else n+=a(t)}),Object.keys(i).forEach(function(t){n=n.replace("%"+t+"%",i[t])}),'<div class="fr-group-body-subcontainer d-horizontal">'+n+"</div>"}(t)+'</div>\n <div class="fr-group-label">'+h.a.tr("Components")+"</div>\n </div>\n </li>\n </ul>\n </div>\n "},x=function(t){return'\n <div class="fr-tab-pane" data-tab="'+m.a+'">\n <ul class="fr-tab-pane-body">\n '+(u.a.get("sort-bands")?'<li class="fr-group">\n <div class="fr-container">\n <div class="fr-group-body fr-group-body--no-margin-bottom">\n <div class="d-two-lines d-vertical">\n <a class="d-mc menu-sort-band-up d-sb d-wb">\n <div class="icon-208"></div>\n </a>\n <a class="d-mc menu-sort-band-down d-sb d-wb">\n <div class="icon-209"></div>\n </a>\n </div>\n </div>\n <div class="fr-group-label"> </div>\n </div>\n <div class="fr-separator"></div>\n </li>':"")+'\n <li class="fr-group">\n <div class="fr-container">\n <div class="fr-group-body">'+function(t){var e="",n=void 0;return t.forEach(function(t){t.disabled||(n=h.a.tr(t.info),e+='\n <a class="d-mc d-lib d-wb" '+(n?'data-info="'+n+'" ':"")+' data-band="'+t.type+'">\n <div class="'+t.icon+'"></div>\n <span class="fr-band-title">'+h.a.tr(t.title)+"</span>\n </a>\n ")}),'<div class="fr-group-body-subcontainer d-horizontal">'+e+"</div>"}(t)+'</div>\n <div class="fr-group-label">'+h.a.tr("Objects Bands")+"</div>\n </div>\n </li>\n </ul>\n </div>\n "},P=function(){return'\n <div class="fr-tab-pane" data-tab="'+m.f+'">\n <ul class="fr-tab-pane-body">\n <li class="fr-group">\n <div class="fr-container">\n <div class="fr-group-body"><div class="fr-group-body-subcontainer d-one-line d-vertical">\n <a class="d-mc menu-save d-lb d-wb">\n <div class="icon-002"></div>\n <span>'+h.a.tr("Save")+'</span>\n </a>\n </div>\n </div>\n <div class="fr-group-label">'+h.a.tr("Menu Report")+'</div>\n </div>\n <div class="fr-separator"></div>\n </li>\n <li class="fr-group">\n <div class="fr-container">\n <div class="fr-group-body">'+(r.c[13]?'\n <div class="fr-group-body-subcontainer d-vertical d-three-lines">\n <a class="d-mc menu-new-report-page d-sb d-wb">\n <div class="icon-010 pull-left"></div>\n <span>'+h.a.tr("Standard NewPage")+'</span>\n </a>\n <a class="d-mc menu-new-dialog d-sb d-wb">\n <div class="icon-011 pull-left"></div>\n <span>'+h.a.tr("Standard NewDialog")+'</span>\n </a>\n <a class="d-mc menu-delete-page d-sb d-wb">\n <div class="icon-012 pull-left"></div>\n <span>'+h.a.tr("Menu Edit DeletePage")+"</span>\n </a>\n </div>\n ":'\n <div class="fr-group-body-subcontainer d-vertical d-two-lines">\n <a class="d-mc menu-new-report-page d-sb d-wb">\n <div class="icon-010 pull-left"></div>\n <span>'+h.a.tr("Standard NewPage")+'</span>\n </a>\n <a class="d-mc menu-delete-page d-sb d-wb">\n <div class="icon-012 pull-left"></div>\n <span>'+h.a.tr("Menu Edit DeletePage")+"</span>\n </a>\n </div>\n ")+'</div>\n <div class="fr-group-label">'+h.a.tr("PrinterSetup Numbers")+'</div>\n </div>\n <div class="fr-separator"></div>\n </li>\n </ul>\n </div>\n '},w=r(313),T=150,k=Object(p.a)(i,{homeTab:function(){var t=d()(l());return this._bindMenuListeners(t),this.$extra=d()(".d-extra",t),this.$extraFirstLine=d()(".fr-group-body-subcontainer:first",this.$extra),this.$extraSecondLine=d()(".fr-group-body-subcontainer:last",this.$extra),t},layoutTab:function(){var t=d()(v());return this._bindMenuListeners(t),t},viewTab:function(){var t=d()(C());return this._bindMenuListeners(t),t},componentsTab:function(t){var e,n=this.$navTabs.find('[data-tab="components"]'),i=[];if(t&&t.isDialog()?(i.push(r(118).default),i.push(r(76).default),i.push(r(119).default),i.push(r(120).default),i.push(r(70).default),i.push(r(121).default),i.push(r(122).default),i.push(r(123).default),i.push(r(124).default),i.push(r(125).default)):(i.push(r(27).default),i.push(r(153).default),i.push(r(140).default),i.push(r(141).default),i.push(r(47).default),i.push(r(127).default),i.push(r(116).default),i.push(r(33).default),i.push(r(117).default),i.push(r(163).default),i.push(r(154).default),i.push(r(155).default),i.push(r(156).default),i.push(r(157).default),i.push(r(158).default),i.push(r(142).default),i.push(r(159).default),i.push(r(160).default),i.push(r(161).default),i.push(r(98).default),i.push(r(162).default)),e=void 0,i.length){if(t&&t.isCode())return n.attr("disabled",!0),null;i=i.sort(function(t,e){return t.pos-e.pos}),e=d()(S(i)),n.css("display",""),e.on("click",".fr-component-group",function(t){var e,n=d()(t.currentTarget),i=n.find(".fr-component-group-list");i.is(".fr-hidden")?(i.removeClass("fr-hidden"),n.addClass("fr-component-group-active"),e=n.get(0).getBoundingClientRect(),i.css({top:e.top+e.height-10,left:Math.max(0,e.left-i.width()/2+e.width/2-8)})):(i.addClass("fr-hidden"),n.removeClass("fr-component-group-active"))})}else n.addClass("fr-hidden"),e=d()("<div>");return e},bandsTab:function(t){var e,n=this.$navTabs.find('[data-tab="bands"]'),i=[];if(i.push(r(113).default),i.push(r(231).default),i.push(r(114).default),i.push(r(115).default),i.push(r(232).default),i.push(r(233).default),i.push(r(234).default),i.push(r(94).default),i.push(r(235).default),i.push(r(138).default),i.push(r(190).default),i.push(r(139).default),i.push(r(236).default),e=void 0,u.a.get("add-bands")&&i.length){if(t&&!t.isReportPage())return n.attr("disabled",!0),null;i=i.sort(function(t,e){return t.pos-e.pos}),(e=d()(x(i))).on("click",".d-mc:not([disabled])",function(){var t=d()(this);n.css("display",""),t.is("[data-band]")&&f.a.trigger("add-band",t.data("band"))})}else n.addClass("fr-hidden"),e=d()("<div>");return this._bindMenuListeners(e),e},previewTab:function(){return w.a.create()},reportTab:function(){var t=d()(P());return this._bindMenuListeners(t),t},update:function(t){var e,n,i,r,a,o,s,l,c=this,p=d()(b());this.$node.empty().append(p),this.$tabContent=d()(".fr-tab-content",this.$node),this.$navTabs=d()(".fr-nav-tabs",this.$node),this.$tabsContainer=d()(".fr-tabs-container",this.$tabContent),e=this.homeTab(t),n=this.reportTab(t),i=this.layoutTab(t),r=this.viewTab(t),a=this.componentsTab(t),o=this.bandsTab(t),s=this.previewTab(t),l=this.currentTab||u.a.get("default-tab-menu"),this.$tabsContainer.append(e,n,i,r,a,o,s.getDummy()),this.$navTabs.on("click",".d-tab:not([disabled])",function(t){var e=d()(t.currentTarget);if(!e.is("a[data-tab]"))return!1;c.$navTabs.find(".active").removeClass("active"),e.parent().addClass("active"),c.currentTab=e.data("tab"),c.$tabContent.find(".fr-tab-pane.active").removeClass("active"),e.is('a[data-tab="'+m.e+'"]')?s.show():s.hide(),c.$tabContent.find(".fr-tab-pane[data-tab="+c.currentTab+"]").addClass("active"),c.$tabContent.slideDown(T,function(){f.a.trigger("align-workspace")})}),l&&(l=this.$navTabs.find("a[data-tab="+l+"]")).length&&l.trigger("click"),this.$tabContent.on("click",".hide-menu",function(){c.$tabContent.slideUp(T,function(){return f.a.trigger("align-workspace")}),c.$navTabs.find(".active").removeClass("active")}),this.$tabContent.on("click",".show-helper",function(){return f.a.trigger("show-hotkey-helper")}),this.$tabContent.on("click",".fullscreen",function(){return f.a.trigger("toogle-fullscreen")}),this.$tabContent.on("mouseenter",":not([disabled])[data-info]",function(t){var e,n=d()(t.currentTarget),i=h.a.tr(n.data("info"));return!g.a&&(c.removeHelpers(),i&&i.length&&!1!==u.a.get("showHelpers")?((e=d()("<div>")).addClass("menu-helper"),e.css({left:n.offset().left,top:c.$node.height()-1}),e.html(i),void c.$node.append(e)):null)}),this.$tabContent.on("mouseleave",":not([disabled])[data-info]",function(){return c.removeHelpers()}),this.defer.resolve(this)},removeHelpers:function(){d()(".menu-helper",this.$node).remove()}}),B=function(t){var e=t.band,n=t.component,i=t.amount,r=t.scaleValue;return"\n <div>\n "+function(t){var e="";return(t||[]).forEach(function(t){e+='\n <a data-page="'+t._id+'" '+(t.isCode()&&t.isRestricted()?"disabled":"")+' class="show-page '+(t.attr("isHidden")?"":"active")+'">\n <div class="'+(t.attr("icon")||t.icon)+'"></div>\n <span class="fr-page-title">'+t.toString()+"</span>\n </a>\n "}),'\n <div class="switcher">'+e+"</div>\n "}(t.allPages)+'\n <div class="info-data">\n <span>'+(e||"")+"</span> \n <span>"+(n||"")+"</span> \n "+(i?"<span>"+h.a.tr("Properties NObjectsSelected",i)+"</span>":"")+'\n </div>\n <div class="scale-page">\n <a class="d-ic">\n <span class="scale-minus">-</span>\n </a>\n '+(r?'<input type="range" class="d-ic d-icr" value="'+r+'" min="0.1" max="2" step="0.1"/>':"")+'\n <a class="d-ic">\n <span class="scale-plus">+</span>\n </a>\n </div>\n </div>\n '},$=function(){var n=d.a.Deferred(),i=this;this.$node=d()("<div>"),this.$node.addClass("fr-info"),this.$node.on("click",".show-page",function(){f.a.trigger("activate-page-by-id",d()(this).data("page"))}),this.$node.on("input change","input[type=range]",function(){var t=d()(this),e=parseFloat(t.val(),10);f.a.trigger("scale-page",e)}),this.$node.on("click",".scale-page a",function(t){var e=d()(t.currentTarget),n=parseFloat(d()("input[type=range]",i.$node).val(),10);return e.find(".scale-plus").length?n+=.1:n-=.1,f.a.trigger("scale-page",n),!1}),this.update=function(t){t=t||{};var e=d()(B({allPages:t["all-pages"],band:t.band,component:t.component,amount:t.amount,scaleValue:t.scale}));i.$node.html(e),function(t){d()("input[type=range]",i.$node).val(t||u.a.get("scale"))}(t.scale),n.resolve(i)},this.getHeight=function(){return this.$node.outerHeight(!0)},this.isReady=function(){return n.promise()}},O=r(315),E=r(7),M=r(44),D=r(51),A=r(170),j=r(6),F=r(96),L=r(71),R=function(s){function l(t,e){var n=void 0;(n=t.data("ref"))?n.push(e):n=[e],t.data("ref",n)}function a(t,e,n,i,r){var a,o=M.a._generateGroupHeader(r,e,n);if(M.a._bindMainProps.call(this,i,r),o)return t.append(o.$main),r.expression&&o.$header.append(A.a.createExpression(r)),M.a._buildMap.call(this,r.fields,n,o.$body),o;r.control=A.a.getFor(r,n),(a=r.control.self.$control).is(".d-fc-json-field")?(a.on("change keyup","input",M.a._changeControl),a.on("focus","input",M.a._focusOnControl),a.on("blur","input",M.a._blurFromControl)):(a.on("change keyup",M.a._changeControl),a.is(":not(select[multiple])")&&(a.on("focus",M.a._focusOnControl),a.on("blur",M.a._blurFromControl))),t.append(r.control.$main),n&&!n.buildExtra||function(e){var t,n,i,r,a,o;e.origin&&(r=i=void 0,(n=(t=e.element).mainFields||[]).length?(i=Boolean(n[0]&&n[0].includes(e.origin)),r=Boolean(n[1]&&n[1].includes(e.origin))):s.$extra.addClass("fr-hidden"),(i||r)&&(a=e.control.self.$body.clone(!0,!0),(o=d()('input:not([type="button"]),select,textarea',a)).addClass("d-mc d-sb"),o[0].component=Object(p.a)(E.default,{rightClick:function(t){t.preventDefault(),c(t,e)}}),l(o,e.control.self.$control),l(e.control.self.$control,o),a.find("span").remove(),a.attr("field",e.prop),a[0].control=o,i?(a.width(100/t.mainFields[0].length-1+"%"),s.$extraFirstLine.append(a)):r&&(a.width(100/t.mainFields[1].length-1+"%"),s.$extraSecondLine.append(a)),o.attr("data-info",h.a.tr(e.extraLabel||e.label)),s.$extra.removeClass("fr-hidden")))}(r),function(t,e){var n,i;e&&e.type===D.a&&(n=M.a._getRelatedField.call(this,t.control.self.$control,e.rootNode[0]),i=M.a._getRelatedExtraField.call(this,t.control.self.$control,s.$extra[0]),n&&(l(t.control.self.$control,n.control.$control),l(n.control.$control,t.control.self.$control)),i&&(l(t.control.self.$control,i.control),l(i.control,t.control.self.$control),l(i.control,n.control.$control),l(n.control.$control,i.control)))}(r,n)}Object(j.a)(M.a,{_buildMap:function(e,t,n,i){var r=a.bind(this,n,i,t);e instanceof Array?e.forEach(function(t,e){return r(e,t)}):Object.keys(e).forEach(function(t){return r(t,e[t])})}})},e.default=function(){var n=window.DSG.head,t=window.DSG.toolbar=k.create(),e=window.DSG.info=new $;return e.update(),t.update(),d.a.when(t.isReady(),e.isReady()).done(function(t,e){return n.$controls.append(t.$node),n.$controls.append(e.$node),new R(t),O.a.create(t,e),!0})}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(4),o=n(3);e.a=function(){var t=r()(Object(o.a)("g",{id:"d-button-rect"})),e=r()(Object(o.a)("rect"));return e.css("fill",a.a.get("rectButtonFill")),e.attr({width:a.a.get("rectButtonWidth"),height:a.a.get("rectButtonHeight")}),t.append(e),t}},function(t,e,n){"use strict";var i=n(0),a=n.n(i),o=n(4),s=n(3);e.a=function(){for(var t,e=2,n=0,i=o.a.get("resizingBandBlockWidth"),r=a()(Object(s.a)("g",{id:"d-resizing-band"}));0<e;e-=1)(t=a()(Object(s.a)("line"))).attr({x1:n,y1:5*e,x2:i,y2:5*e}).css({stroke:"#666666","stroke-width":1,"stroke-dasharray":"3, 2"}),n+=0,i-=0,r.append(t);return r}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(4),o=n(3);e.a=function(){var t=r()(Object(o.a)("g",{id:"d-button-circle"})),e=r()(Object(o.a)("circle"));return e.attr({cx:a.a.get("circleButtonWidth"),cy:a.a.get("circleButtonHeight")}),e.attr("r",a.a.get("circleButtonRadius")),e.css("fill",a.a.get("colors")["button-circle"]),t.append(e),t}},function(t,e,n){"use strict";var i=n(0),r=n.n(i),a=n(4),o=n(3);e.a=function(t){var e,n,i=a.a.get("grid");return t=t||"d-net",e=r()(Object(o.a)("pattern",{id:t,patternUnits:"userSpaceOnUse",width:i,height:i})),n=r()(Object(o.a)("line",{x1:0,y1:0,x2:i,y2:0,stroke:"gray","stroke-width":1,fill:"none",style:"stroke-dasharray: 1, "+(i-1)+";"})),e.append(n),e}},,function(t,e,n){t.exports=n.p+"images/qr-code.5a294511bca71aaf0c361cf0e7b616f2.png"},function(t,e,n){t.exports=n.p+"images/2-5-industrial.0ce2279a9505d8518e950ea2044a5bbf.png"},function(t,e,n){t.exports=n.p+"images/2-5-interleaved.49574e86680a4a06b9e9ea80d8dcf192.png"},function(t,e,n){t.exports=n.p+"images/2-5-matrix.8874a4280b6713f2d3410bcb6c1bd33b.png"},function(t,e,n){t.exports=n.p+"images/codabar.831cf693f20bd2d375752cbfe4609e18.png"},function(t,e,n){t.exports=n.p+"images/code-128.8146fb314a480db7d4fd88fbda6db3a0.png"},function(t,e,n){t.exports=n.p+"images/code-39-extended.f2326ee4a18442b382d023988b4b1c1d.png"},function(t,e,n){t.exports=n.p+"images/code-93.33d970650ebfa8a0be35a6c2ac2797f9.png"},function(t,e,n){t.exports=n.p+"images/code-93-extended.fdbfddd85d3bf9535f9000132aa375aa.png"},function(t,e,n){t.exports=n.p+"images/postnet.323847dc1f7a2c0eb33fb800b80d68a0.png"},function(t,e,n){t.exports=n.p+"images/supplement-2.7164fa3a970b65f3154916394f0463fc.png"},function(t,e,n){t.exports=n.p+"images/supplement-5.9ce77a5f0ab44256bf2525d1968554fc.png"},function(t,e,n){t.exports=n.p+"images/pdf-417.745d2656d28531252d070ea3591506e1.png"},function(t,e,n){t.exports=n.p+"images/datamatrix.8bdfa8b774d9dffec5ba73a979823f00.png"},function(t,e,n){t.exports=n.p+"images/plessey.d9b51921793775e87defd909d7a0bd38.png"},function(t,e,n){t.exports=n.p+"images/gs1-128.6d2f98ced41d7e11f0340530130de63f.png"},function(t,e,n){t.exports=n.p+"images/aztec.af9dd92a357b9464429ee0af6bb8725c.png"},function(t,e,n){t.exports=n.p+"images/maxi-code.5a96aff791085d828f4d90e04d8f02d7.png"},function(t,e,n){t.exports=n.p+"images/usps.f2eab2fc355019c4ffbec0c80eed84f7.png"},function(t,i,r){"use strict";(function(s){var t=r(314),e=r(6),l=r(199),c=r(1),p=r(48),d=r(26),n=r(22),u=r(61),h=r(77),f=r(171),g=new n.a;i.a=Object(e.a)(t.a,{_createContent:function(){var o=arguments;return new Promise(function(i,r){var a=window.DSG.currentReport;u.c.toXML().then(function(t){var e=Object(h.a)((new XMLSerializer).serializeToString(t)),n=Object(f.a)();Object(l.a)(a._id,e,n).then(function(t){t.text().then(function(t){c.a.trigger("preview_success"),window.parent!==window&&window.parent.postMessage("preview_success","*"),i(s('<span class="preview-cont">'+t+"</span>"))})}).catch(function(){p.a.hide(),g.error(o),Object(d.a)("something went wrong",{danger:!0}),c.a.trigger("preview_failure"),window.parent!==window&&window.parent.postMessage("preview_failure","*"),r(null)})})})}})}).call(this,r(0))},function(t,e,n){"use strict";var i=n(12),r=n(30),a=n(0),o=n.n(a),s=n(48);e.a=i.a.createObject(null,{create:function(){var t=this.createObject(this),e=o()("<div>"),n=o()("body");return e.addClass("fr-modal-tab"),t.$container=e,t.$documentBody=n,t.hide(),n.append(e),t},getDummy:function(){return o()('\n <div class="fr-tab-pane" data-tab="'+r.e+'">\n <div class="fr-tab-pane-body">\n </div>\n </div>\n ')},show:function(){var e=this,t=this._createContent();t instanceof Promise?o.a.when(s.a.show(void 0,1)).done(function(){t.then(function(t){e.$container.append(t)}).finally(function(){s.a.hide()})}):this.$container.append(t),this.shown=!0,this.$container.removeClass("fr-hidden")},hide:function(){this.shown=!1,this.$container.addClass("fr-hidden"),this.$container.empty()},_createContent:function(){return o()("<div>")}})},function(t,e,n){"use strict";(function(o){var s=n(4),l=n(243),c=n(15),p=n(14),t=n(8),d=n(84),u=n(16);e.a=Object(t.a)(l.a,{_init:function(i,n){var r,t,e=this.bind,a=this.trigger;l.a._init.apply(this,arguments),r=this.report,t=this.head,this.unbind("activate-page"),this.unbind("show-page"),this.unbind("update-properties-panel"),e("activate-page",function(t){var e=r.getCurrentPage();t.active(),e!==t&&i.update(t)}),e("show-page",function(t){var e=r.getCurrentPage();t!==e&&(e.deactivate(),t.show(),i.update(t))}),e("align-workspace",function(){r.attr({Top:i.getHeight(),Bottom:n.getHeight()}),t.$workspace.css({top:r.attr("Top"),bottom:r.attr("Bottom"),height:"auto"})}),e("update-info",function(){var t=r.getCurrentPage(),e={report:r,page:t,scale:r.attr("data-scale")};e["all-pages"]=r.pages.all(r.code.isRestricted()?["ReportPage","DialogPage"]:null),t.isReportPage()&&(e.band=t.bands.getSelectedBand(),e.component=t.bands.getSelectedComponents()[0],e.amount=t.bands.getSelectedComponents().length),n.update(e)}),e("menu-grid",function(){a("grid"),a("re-render")}),e("menu-guides",function(){s.a.set("guides",!s.a.get("guides")),a("re-render")}),e("menu-group",function(){a("group")}),e("menu-ungroup",function(){a("ungroup")}),e("menu-snap-size",function(t){var e=s.a.get("grid");t=parseFloat(t),t=isNaN(t)||t<=0?e:p.a.toPx(t),s.a.set("grid",t),t!==e&&r.updateFilters().updateDefs()}),e("menu-language",function(t){d.a.setItem("lang",t).then(function(){return location.reload()})}),e("menu-new-report-page",function(){var t=r.createPage();a("activate",t),c.a.push({undo:function(t){r.removePage(t)},redo:function(t){t.render(),a("activate",t)},data:[t]})}),e("menu-new-dialog",function(){var t=r.createDialog();a("activate",t),c.a.push({undo:function(t){r.removePage(t)},redo:function(t){t.render(),a("activate",t)},data:[t]}),o.when(r.createDialogDefaultSet(t)).done(function(){return a("update-properties-panel",t)})}),e("menu-delete-page",function(t){t=t||r.getCurrentPage(),r.removePage(t),c.a.push({undo:function(t){t.render(),a("activate",t)},redo:function(t){return r.removePage(t)},data:[t]})}),e("menu-units",function(t){p.a.setCurrent(t),a("update-properties-panel",r.getSelected()),r.getCurrentPage().render()}),e("menu-remove",function(t){a("remove",t)}),e("menu-undo",function(){return a("undo")}),e("menu-redo",function(){return a("redo")}),e("menu-preview",function(){return a("preview")}),e("menu-save",function(){return a("save")}),e("menu-copy",function(){return a("copy")}),e("menu-cut",function(){return a("cut")}),e("menu-paste",function(){return a("paste",!0)}),e("menu-vert-align-top",function(){return a("vert-align-top")}),e("menu-vert-align-center",function(){return a("vert-align-center")}),e("menu-vert-align-bottom",function(){return a("vert-align-bottom")}),e("menu-send-to-back",function(){return a("send-to-back")}),e("menu-bring-to-front",function(){return a("bring-to-front")}),e("menu-instrument-move",function(){a("instrument-move"),u.b.setInstrument(u.a.MOVE)}),e("menu-instrument-bezier",function(){a("instrument-bezier"),u.b.setInstrument(u.a.BEZIER)}),e("menu-instrument-point",function(){a("instrument-point"),u.b.setInstrument(u.a.POINT)}),e("menu-instrument-newpoint",function(){a("instrument-newpoint"),u.b.setInstrument(u.a.NEW_POINT)}),e("menu-instrument-delete-point",function(){var t=window.DSG.currentReport,e=t.getSelected();e&&e.onDeletePoint&&e.onDeletePoint()}),e("menu-border-style",function(t){return a("border-style",t)}),e("menu-border-width",function(t){return a("border-width",t)}),e("menu-sort-band-up",function(){return a("sort-band-up")}),e("menu-sort-band-down",function(){return a("sort-band-down")}),e("update-menu",function(){var t,e,n=r.getCurrentPage();if(n.isCode())return i.lockAll(),void i.unlock(["preview","new-report-page","save","new-dialog"]);i.unlock("new-page"),r.canNotBeSaved()?i.lock("save"):i.unlock("save"),1<r.pages.count(["ReportPage","DialogPage"])?i.unlock("delete-page"):i.lock("delete-page"),(t=r.getSelected())&&("function"==typeof t.remove?(i.unlock("remove"),t.isPage()&&i.lock("remove")):i.lock("remove")),i[r.attr("grid")?"select":"unselect"]("grid"),i[s.a.get("guides")?"select":"unselect"]("guides"),i.set("units",p.a.getCurrent()),i.set("snap-size",p.a.toUnit(s.a.get("grid"))),n.isReportPage()&&(i.lock(["[data-band]","sort-band-up","sort-band-down"]),t=(e=n.bands).getSelectedBand(),e.findBy({type:"ReportTitleBand"}).length||i.unlock("[data-band=ReportTitleBand]"),e.findBy({type:"PageHeaderBand"}).length||i.unlock("[data-band=PageHeaderBand]"),e.findBy({type:"ColumnHeaderBand"}).length||i.unlock("[data-band=ColumnHeaderBand]"),e.findBy({type:"ColumnFooterBand"}).length||i.unlock("[data-band=ColumnFooterBand]"),e.findBy({type:"ReportSummaryBand"}).length||i.unlock("[data-band=ReportSummaryBand]"),e.findBy({type:"PageFooterBand"}).length||i.unlock("[data-band=PageFooterBand]"),e.findBy({type:"OverlayBand"}).length||i.unlock("[data-band=OverlayBand]"),i.unlock(["[data-band=DataBand]","[data-band=GroupHeaderBand]"]),t&&(t.canHaveChildren("ChildBand")&&!t.has("ChildBand")&&i.unlock("[data-band=ChildBand]"),t.canHaveChildren("DataHeaderBand")&&!t.has("DataHeaderBand")&&i.unlock("[data-band=DataHeaderBand]"),t.canHaveChildren("DataFooterBand")&&!t.has("DataFooterBand")&&i.unlock("[data-band=DataFooterBand]"),t.canHaveChildren("GroupFooterBand")&&!t.has("GroupFooterBand")&&i.unlock("[data-band=GroupFooterBand]"),t.canBeSorted()&&i.unlock(["sort-band-up","sort-band-down"])))}),e("re-render",function(){a("update-menu"),a("update-info")})}})}).call(this,n(0))},,,function(t,e,n){},function(t,e,n){},,function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){},,,,,function(t,e,n){},,,function(t,e,n){},,,,,,,,,,,function(t,e,a){"use strict";(function(n){var t=a(125),i=a(1),e=a(10),r=a(6);Object(r.a)(t.default,{_favMap:{},fillMap:function(){this.fieldMap=e.a.factory(["Appearance:BackColor","Appearance:Cursor","Appearance:Font","Appearance:ForeColor","Appearance:RightToLeft","Appearance:ScrollBars",{prop:"Appearance:TextAlign",collection:["Left","Center","Right"]},"Behavior:AcceptsReturn","Behavior:AcceptsTab","Behavior:CharacterCasing","Behavior:Enabled","Behavior:MaxLength",{prop:"Behavior:Multiline",setValue:function(t,e){this.prop(t,e),this.$resizing.each(function(){n(this).remove()}),this.$resizing=null,this.attr("resizableY",e),this.attr("resizableXY",e),e?this.prop("Height",this.attr("mulTHeight")):this.prop("Height",this.attr("mulFHeight")),this.touch(),this.render(),i.a.trigger("activate",this)}},"Behavior:ReadOnly","Behavior:TabIndex","Behavior:TabStop","Behavior:UseSystemPasswordChar","Behavior:Visible","Behavior:WordWrap","Data:Text","Data Filtering:AutoFill","Data Filtering:AutoFilter","Data Filtering:DataColumn","Data Filtering:DetailControl","Data Filtering:FilterOperation","Data Filtering:ReportParameter","Design:Name","Design:Restrictions","Layout:Anchor","Layout:Dock",{prop:"Layout:Left",type:"number"},{prop:"Layout:Top",type:"number"}])}})}).call(this,a(0))},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},,,,,,,,function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,h){"use strict";var n,i,f,r,a,g,m,b,v;h.r(e),n=h(396),i=h(0),f=h.n(i),r=h(397),a=h(399),g=h(4),m=h(1),b=h(143),v=h(43),e.default=function(){var s=this,p=function(){var t=f()("<div>"),e=f()("<div>"),n=f()("<div>");return t.html('<i class="fa fa-times"></i>'),e.html('<i class="fa fa-paperclip"></i>'),e.addClass("fr-hidden"),t.addClass("close-panel cstn-mb"),e.addClass("attach-panel cstn-mb"),n.addClass("cstn-header-mb"),n.append(e,t),n},a=function(){g.a.get("customization-toggler")&&(s.$panelsToggler=s.$panelsToggler||f()('<div class="cstn-toggle-panels js-toggle-panels"></div>'),s.getOpened().length?(s.$panelsToggler.removeClass("cstn-toggle-panels-right"),s.$panelsToggler.addClass("cstn-toggle-panels-left")):(s.$panelsToggler.removeClass("cstn-toggle-panels-left"),s.$panelsToggler.addClass("cstn-toggle-panels-right")),s.$controls.append(s.$panelsToggler))},d=function(){var t=f()("<a>"),e="V";t.addClass("horz-control"),t.addClass("cstn-control"),t.append(e),s.$horzControl=t,s.$controls.append(t)},o=function(){var t,e=void 0,n=void 0,i=void 0,r=void 0,a=void 0,o=void 0,s=void 0,l=void 0,c=void 0;for(t=0;t<arguments.length;t+=1)(e=arguments[t])&&(i=e.className,(n=e.opt=g.a.get("customization:"+i)).enable&&(n.button&&(r=f()("<a>"),(a=f()("<div>")).addClass(e.icon),r.addClass(i),r.addClass("cstn-control"),r.append(a),this.$controls.append(r)),(o=f()("<div>")).addClass("cstn-panel"),o.toggleClass("has-border",n.hasBorder),o.addClass(i+"-pane"),n.background&&o.css("background",n.background),(s=e.$title)&&(n.header?(s.addClass("cstn-panel-title"),n.movable&&!e.$miniButtons&&(s.addClass("cstn-panel-title-movable"),e.$miniButtons=p(),s.append(e.$miniButtons)),o.append(s)):(s.remove(),s=null)),(l=e.$controls)&&o.append(l),e.$body&&((c=f()("<div>")).addClass("cstn-panel-body"),c.append(e.$body),o.append(c)),o.data("panel",{panel:e,$button:r,$icon:a,$group:o,$title:s,$body:c,$controls:l}),this.$mainContainer.append(o),this.panels.push(e)));d()},e=function(t){var e,n,i,r,a,o;Object(b.a)(t),e=t.pageX,n=t.pageY,i=s.$mainContainer[0].getBoundingClientRect(),(a=(r=f()(t.target).parents(".cstn-panel")).data("panel")).panel.opt.movable&&(o=r[0].getBoundingClientRect(),s.isMoving={panel:a,disToCursorX:e-o.left,disToCursorY:n-o.top,mainLeft:i.left,mainTop:i.top,initPageX:e,initPageY:n})},l=function(t){var e=t.$group,n=t.panel.opt;e.hasClass("detached-panel")||(e.css("width",v.c),n.resizable&&(n.direction?e.resizable({handles:"hors"===n.direction?"s":"e"}):e.resizable({handles:"se"})),e.addClass("detached-panel"),e.css("height",""),t.$title&&t.$title.find(".attach-panel").removeClass("fr-hidden"))},n=function(t){var e=t.$group,n=t.panel.opt;e.hasClass("detached-panel")&&(t.$title&&t.$title.find(".attach-panel").addClass("fr-hidden"),e.removeClass("detached-panel"),e.css({height:"",width:"",top:"",left:""}),n.resizable&&e.resizable("destroy"))},i=function(t,e){var n=t.pageX,i=t.pageY,r=e.panel.$group;return(!e.isSoared&&Math.abs(n-e.initPageX)>v.d||Math.abs(i-e.initPageY)>v.d)&&(e.isSoared=!0,l(e.panel),s.balance()),(e.isSoared||r.is(".detached-panel"))&&r.css({left:n-e.mainLeft-e.disToCursorX,top:i-e.mainTop-e.disToCursorY}),!1},c=function(t){Object(b.a)(t),s.isResizing={initPageX:t.pageX}},u=function(t,e){var n=e.initPageX-t.pageX,i=e.initPageX-n-s.$mainContainer.get(0).getBoundingClientRect().left;return i<v.g?(i<=v.f&&s.hideAll(),i=v.g):s.getOpened().length||s.showAll(),s.setContainerWidth(i),s.balance(),!1};this.isReady=function(){return this.dfd.promise()},this.setContainerWidth=function(t){this.setContainerWidth.lastW=t||this.setContainerWidth.lastW,this.getOpened().length?this.$mainContainer.css({width:t||this.setContainerWidth.lastW,marginLeft:5,marginRight:5}):this.$mainContainer.css({width:0,marginLeft:"",marginRight:""})},this.setContainerWidth.lastW=v.c,this.init=function(){function r(t,e){var n,i=t.children();for(n=i.length;n--;)if(0<f()(i[n])[e]())return!0;return!1}var t,a=this;this.dfd=f.a.Deferred(),(t=[]).push(h(237).default),t.push(h(238).default),t.push(h(240).default),t.push(h(239).default),this.panels=this.panels||[],this.$node=f()("<div>"),this.$controls=f()("<div>"),this.$mainContainer=f()("<div>"),this.$node.addClass("cstn"),this.$controls.addClass("cstn-controls"),this.$mainContainer.addClass("cstn-container"),this.setContainerWidth(v.c),this.$node.append(this.$controls,this.$mainContainer),g.a.get("customization-toggler")&&(this.$widthHandler=f()("<div>"),this.$widthHandler.addClass("cstn-width-handler"),this.$node.append(this.$widthHandler)),this.append.apply(this,t).then(function(){return a.dfd.resolve()}),m.a.bind("update-workspace-indent",function(){var t=window.DSG.currentReport,e=a.$node.outerWidth(!0),n=a.$horzCntr,i=a.$vertCntr;t.attr("left",e),n&&(n.css("left",e),n.height(""),r(n,"height")?(t.$node.css("bottom",v.a+"px"),n.height(v.a+"px"),a.$horzControl.addClass("active")):(t.$node.css("bottom",""),n.height(""))),i&&(i.width(""),r(i,"width")?(t.$node.css("right",v.b+"px"),i.width(v.b+"px")):(t.$node.css("right",""),i.width("")))}),this.$controls.on("click","> a",function(t,e){var n,i=f()(t.currentTarget);if(i.hasClass("horz-control"))a.toggle(a.$horzCntr,i,e);else{if(!(n=a.panels.filter(function(t){return i.hasClass(t.className)})[0])||!n.$body)return;a.toggle(n.$body.parents(".cstn-panel:first"),i,e)}}),this.$controls.on("click",".js-toggle-panels",function(){a.getOpened().length?a.$controls.find("> a.active").trigger("click",!1):a.$controls.find("> a").trigger("click",!1)}),this.$node.on("mousedown",".cstn-width-handler",function(t){if(0!==t.button)return null;c(t)}),this.$mainContainer.on("mousedown",".cstn-panel-title-movable",function(t){if(0!==t.button||f()(t.target).is(".cstn-mb"))return null;e(t)}),this.$mainContainer.on("touchstart",".cstn-panel-title",e),f()(document.body).on("mousemove touchmove",function(t){return Object(b.a)(t),a.isMoving?i(t,a.isMoving):a.isResizing?u(t,a.isResizing):void 0}),f()(document.body).on("mouseup touchend",function(){delete a.isMoving,delete a.isResizing}),this.$mainContainer.on("click",".close-panel",function(t){var e=f()(t.target).parents(".cstn-panel"),n=e.data("panel");a.hide(e,n.$button)}),this.$mainContainer.on("click",".attach-panel",function(t){n(f()(t.target).parents(".cstn-panel").data("panel")),a.balance()})},this.append=function(){var t,e,n=this,i=[],r=[].slice.call(arguments).sort(function(t,e){return e.pos-t.pos});for(t=r.length;t--;)!1===(e=r[t]).canBeRecreated&&e.$body?i.push(e):i.push(e.create(this));return Promise.all(i).then(function(t){t.filter(function(t){return t}).forEach(function(t){"function"==typeof t.bindEvents&&t.bindEvents()}),o.apply(n,t),n.showDefaultPanels(),a()})},this.clear=function(){this.panels.forEach(function(t){"function"==typeof t.clear&&t.clear()}),this.panels.length=0,this.$mainContainer.empty(),this.$controls.empty()},this.updateIndent=function(){return m.a.trigger("update-workspace-indent")},this.getOpened=function(){return f()(".opened:not(.detached-panel)",this.$mainContainer)},this.recalculate=function(){var t=this.getOpened(),e=100/t.length;t.height(e-.3+"%")},this.balance=function(){this.setContainerWidth(),this.recalculate(),this.updateIndent()},this.show=function(t,e,n){t.addClass("opened"),!1!==n&&t.addClass("appear"),e&&e.addClass("active"),t.hasClass("fr-position-cntr__horz")&&this.$horzCntr.show(),this.balance()},this.hide=function(t,e){t.removeClass("opened appear"),e&&e.removeClass("active"),t.hasClass("fr-position-cntr__horz")?(this.$horzCntr.hide(),window.DSG.currentReport.$node.css("bottom","")):this.balance()},this.toggle=function(t){this[t.is(".opened")?"hide":"show"].apply(this,arguments),a()},this.showAll=function(){this.$controls.find("> a").each(function(){f()(this).is(".active")||f()(this).trigger("click",!1)})},this.hideAll=function(){this.$controls.find("> a").each(function(){f()(this).is(".active")&&f()(this).trigger("click",!1)})},this.showDefaultPanels=function(){for(var t=this.panels,e=t.length,n=void 0,i=void 0,r=void 0,a=void 0,o=this.$horzCntr,s=this.$vertCntr;e--;)n=(i=t[e]).className,r=i.opt,a=i.$body.parents(".cstn-panel:first"),void 0!==r.position?(a.css("height",""),r.position===v.e?(o||(this.$horzCntr=o=o||f()("<div>"),o.addClass("fr-position-cntr fr-position-cntr__horz"),o.addClass("opened"),r.table&&o.addClass("fr-position-cntr--table"),window.DSG.currentReport.$node.after(o)),o.append(a)):r.position===v.h&&(s||(this.$vertCntr=s=s||f()("<div>"),s.addClass("fr-position-cntr fr-position-cntr__vert"),r.table&&s.addClass("fr-position-cntr--table"),window.DSG.currentReport.$node.after(s)),s.append(a))):void 0!==r.x&&void 0!==r.y&&(l(a.data("panel")),"number"==typeof r.x&&a.css("left",r.x),"number"==typeof r.y&&a.css("top",r.y)),r&&r.shown&&this.show(a,this.$controls.find("."+n),!1)},this.init()}},function(t,e,n){},,,,function(t,e,n){},function(t,e,n){"use strict";var o,i,r;n.r(e),o=n(15),i=n(1),r=n(8),e.default=Object(r.a)(i.a,{_init:function(){var r=window.DSG.currentReport,t=this.bind,a=this.trigger;t("balance-band",function(t,e){t.bands&&(t.balance(e),r.getCurrentPage().render())}),t("remove-band",function(t){t.remove(),t.getPage().render()}),t("render-band",function(t){t.render(),t.getPage().render()}),t("add-band",function(t,e,n){var i=r.getCurrentPage();"string"==typeof t&&(t=window.DSG.bands[t]),t&&(t=t.create(),n=!1!==n,(e=e||i.bands.getSelectedBand())&&e.canHaveChildren(t)||(e=i),(t=e.addBand(t))&&(t.applyRule()&&(n=!1),n&&o.a.push({undo:function(t,e){a("remove-band",t),e.updateExts()},redo:function(t,e){a("render-band",t),e.updateExts()},data:[t,e]}),a("balance-band",t,0),a("update-menu"),e.updateExts()))}),t("sort-band-up",function(){var t=r.getCurrentPage(),e=t.bands.getSelectedBand();e&&e.moveUp()}),t("sort-band-down",function(){var t=r.getCurrentPage(),e=t.bands.getSelectedBand();e&&e.moveDown()})}})},function(t,e,n){"use strict";var i,y,o,C,r,S,x,s,a,l,c,p,P;n.r(e),i=n(0),y=n.n(i),o=n(152),C=n(15),r=n(1),S=n(26),x=n(2),s=n(23),a=n(8),l=n(166),c=n(38),p=n(95),P=n(78),e.default=Object(a.a)(r.a,{_init:function(){function r(t){return t.filter(function(){return this.attr("copyable")})}function m(t,e,n,i){return t.render(),"function"==typeof e.put?e.put(t):t.getContainer().put(t),s.a||0===n&&0===i?b("align-component",t,0,0,!0):(b("align-component",t,n,i,!0),t.setState("in_move"),v.movements.data.activate("moving-component")),t}function a(t){var e,n,i=v.getCurrentPage(),r=i.bands||i.components,a={action:"change"};if(i.isCode())return null;if(n=(e=r.getSelectedComponents()).length){for(n-=1;0<=n;n-=1)t.call(e[n]),e[n].render(a);n=e.length}else(e=v.getSelected())&&(t.call(e),e.render(a),n=1);return n}var t=this.bind,b=this.trigger,v=window.DSG.currentReport;t("remove-component",function(t){var e=t.getContainer();t.remove(),e.updateThreshold&&e.updateThreshold()}),t("render-component",function(t){var e=t.getContainer();t.render(),e.updateThreshold&&e.updateThreshold()}),t("create-component",function(t,e){var n=y.a.Deferred();return"string"==typeof t&&(t=/Control$/.test(t)?window.DSG.controls[t]:window.DSG.components[t]),t?n.resolve(t.create(e)):n.reject(),n.promise()}),t("add-component",function(t,e,n){var i=y.a.Deferred();return n=n||{left:0,top:0,remember:!0},e=e||v.getCurrentPage().bands.first(),b("create-component",t,n.internalId).done(function(t){(!t.isDialogControl()&&e.isBand()||t.isDialogControl()&&e.isDialog())&&(n.view&&(void 0!==t.prop("Text")&&t.prop("Text",Object(l.a)(n.view)),void 0!==t.prop("DataColumn")&&t.prop("DataColumn",n.view)),t.render({action:"init",left:n.left,top:n.top}),e.put(t),b("align-component",t,n.left,n.top),t.afterAlign(),!1!==n.remember&&C.a.push({context:t,undo:function(){this.remove()},redo:function(){this.render()}}),e.isBand()&&b("balance-band",e),b("re-render"),Object(S.a)(t.toString()+" "+x.a.tr("created"),{success:!0}),"SubreportObject"!==t.type||t.prop("ReportPage")||b("new-subreport-page",t)),b("component-added",t,e),i.resolve(t)}).fail(function(){i.resolve(null)}),i.promise()}),t("put-component",function(t,e,n,i){t&&(e.collection.container!==t&&t.put(e),e.setPosition(n,i),e.render())}),t("drop-component",function(t,e){var n,i,r=t.getContainer(),a=[];for(e?b("put-component",e,t):e=v.drop(t),e&&a.push(e),e!==r&&r.isBand()&&a.push(r),n=0,i=Object(p.a)(a).length;n<i;n+=1)b("balance-band",a[n])}),t("align-component",function(t,e,n,i){var r;t.isDialogControl()||(r=Object(c.a)([e,n]),t.setPosition(r[0],r[1]),i||(r=Object(c.a)([t.prop("Left")+t.prop("Width"),t.prop("Top")+t.prop("Height")]),t.prop("Width",+(r[0]-t.prop("Left")).toFixed(2)),t.prop("Height",+(r[1]-t.prop("Top")).toFixed(2)),t.render({action:"align"})))}),t("new-subreport-page",function(t){var e=v.createPage(!0);e.attr("isSubreport",!0),b("add-band","DataBand",e,!1),t.prop("ReportPage",e.prop("Name")),e.render(),b("activate",e)}),t("copy",function(t){var e=v.getCurrentPage(),n=e.bands||e.components;e.buffer=r(t||n.getSelectedComponents()),e.buffer.length&&(Object(S.a)(x.a.tr("copied")+" "+e.buffer.length,{info:!0,inEmptyList:!0}),b("update-menu"))}),t("cut",function(t){function e(t){return n.buffer=r(t||i.getSelectedComponents()),!!n.buffer.length&&(Object(S.a)(x.a.tr("cut")+" "+n.buffer.length,{info:!0,inEmptyList:!0}),n.buffer.cut=!0,n.buffer.each(function(){this.remove()}),!0)}var n=v.getCurrentPage(),i=n.bands||n.components;e(t)&&(C.a.push({context:this,undo:function(t){y.a.each(t,function(){this.render()}),n.buffer.length=0,b("update-menu")},redo:function(t){e(t),b("update-menu")},data:[n.buffer.slice(0)]}),b("update-menu"))}),t("paste",function(t){var e,n,i,r,a,o,s,l,c=v.getCurrentPage(),p=0,d=0,u=c.buffer.length,h=[],f=Object(P.a)(y()(document.elementsFromPoint(v.movements.data.pageX,v.movements.data.pageY))),g=f&&f.isBand()?f:f.getContainer();if(u){if(!t){for(s=u;s--;)p=(l=c.buffer[s]).prop("Left"),d=l.prop("Top"),a=l.attr("right"),o=l.attr("bottom"),(!e||p<e)&&(e=p),(!n||n<a)&&(n=a),(!i||d<i)&&(i=d),(!r||r<o)&&(r=o);p=v.movements.data.offsetX||0,d=v.movements.data.pageY-g.g.getBoundingClientRect().top||0}if(c.buffer.cut)for(s=u;s--;)l=c.buffer[s],s===u?m(l,g,p,d):m(l,g,p+l.prop("Left"),d+l.prop("Top")),h.push(l);else for(s=u;s--;)l=c.buffer[s].clone(),h.push(l),s===u?m(l,g,p,d):m(l,g,p+l.prop("Left"),d+l.prop("Top"));C.a.push({func:function(t,e){for(var n,i=t.length;i--;)(n=t[i]).setState("normal"),b(e,n);v.movements.data.deactivate("moving-component")},undoData:[h,"remove-component"],redoData:[h,"render-component"]}),Object(S.a)(x.a.tr("pasted")+" "+h.length,{success:!0,inEmptyList:!0}),c.buffer.cut&&(c.buffer=[]),b("update-properties-panel",v.getSelected()),b("update-events-panel",v.getSelected())}}),t("move-component",function(n,i,t){var e=a(function(){var t,e;if(this.canMove()){switch(t=this.prop("Left"),e=this.prop("Top"),i=i||1,n){case 1:t-=i;break;case 2:e-=i;break;case 3:t+=i;break;case 4:e+=i}this.setPosition(t,e,!0)}});e&&(1===e&&(b("update-properties-panel",v.getSelected()),b("update-events-panel",v.getSelected())),t&&t())}),t("select-all-components",function(){v.getCurrentPage().bands.everyEntity(function(t){t.components.eachEntity(function(t){t.activate()})}),b("update-info")}),t("vert-align-top",function(){a(function(){this.canModify()&&this.canEdit()&&this.prop("VertAlign","Top",!0)})}),t("vert-align-center",function(){a(function(){this.canModify()&&this.canEdit()&&this.prop("VertAlign","Center",!0)})}),t("vert-align-bottom",function(){a(function(){this.canModify()&&this.canEdit()&&this.prop("VertAlign","Bottom",!0)})}),t("horz-align-left",function(){a(function(){this.canModify()&&this.canEdit()&&this.prop("HorzAlign","Left",!0)})}),t("horz-align-center",function(){a(function(){this.canModify()&&this.canEdit()&&this.prop("HorzAlign","Center",!0)})}),t("horz-align-right",function(){a(function(){this.canModify()&&this.canEdit()&&this.prop("HorzAlign","Right",!0)})}),t("horz-align-justify",function(){a(function(){this.canModify()&&this.canEdit()&&this.prop("HorzAlign","Justify",!0)})}),t("font-bold",function(){a(function(){this.canModify()&&this.canEdit()&&this.attr("Font.Bold",!this.attr("Font.Bold"),!0)})}),t("font-italic",function(){a(function(){this.canModify()&&this.canEdit()&&this.attr("Font.Italic",!this.attr("Font.Italic"),!0)})}),t("font-underline",function(){a(function(){this.canModify()&&this.canEdit()&&this.attr("Font.Underline",!this.attr("Font.Underline"),!0)})}),t("font-strikeout",function(){a(function(){this.canModify()&&this.canEdit()&&this.attr("Font.Strikeout",!this.attr("Font.Strikeout"),!0)})}),t("lock",function(t){var e,n,i,r;r=(t=t||["DontMove","DontResize","DontModify","DontEdit","DontDelete"]).length,a(function(){for("string"==typeof(e=this.prop("Restrictions").slice(0))&&(e=e.split(",").map(function(t){return t.trim()})),i=0;i<r;i+=1)n=t[i],~e.indexOf(n)||e.push(n);this.prop("Restrictions",e)})}),t("unlock",function(t){var e,n,i,r;i=(t=t||["DontMove","DontResize","DontModify","DontEdit","DontDelete"]).length,a(function(){for("string"==typeof(r=this.prop("Restrictions").slice(0))&&(r=r.split(",").map(function(t){return t.trim()})),n=0;n<i;n+=1)~(e=r.indexOf(t[n]))&&r.splice(e,1);this.prop("Restrictions",r)})}),t("group",function(){var t,e=[];a(function(){t=t||this.formGroupInx(),this.prop("GroupIndex",t),e.push(this)}),e.forEach(function(t){t.attr("group",e)})}),t("ungroup",function(){a(function(){this.deleteProp("GroupIndex"),this.deleteAttr("group")})}),t("send-to-back",function(t){var e;t?(e=t.getContainer())&&e.components&&e.components.addInStart(t):a(function(){(e=this.getContainer())&&e.components&&e.components.addInStart(this)})}),t("bring-to-front",function(t){var e;t?(e=t.getContainer())&&e.components&&e.components.add(t):a(function(){(e=this.getContainer())&&e.components&&e.components.add(this)})}),t("border-style",function(t){a(function(){this.canModify()&&this.canEdit()&&this.prop("Border.Style",t,!0)})}),t("border-width",function(t){a(function(){this.canModify()&&this.canEdit()&&this.prop("Border.Width",t,!0)})}),t("font-name",function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"";o.a.load(t).then(function(){e?(e.attr(n+"Font.Name",t,!0),e.render()):a(function(){this.canModify()&&this.canEdit()&&this.attr(n+"Font.Name",t,!0)}),b("update-menu")})}),t("font-width",function(t){a(function(){this.canModify()&&this.canEdit()&&this.attr("Font.Size",t,!0)})})}})},function(t,e,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,c){"use strict";function n(r){return{get:function(t){var e=getComputedStyle(t).getPropertyValue(r);return e?Object(s.a)(e):null},set:function(t,e){var n,i=/\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*/;i.test(e)&&(3===(n=(n=e.match(i)).slice(1)).length&&(e=l.a.apply(null,n)),e=e),t.style[r]=e}}}function i(t){t.eachEntity(function(t){t.removeFromCoords()})}function r(){Ht.a.trigger("info",{title:Zt.a.tr("Hotkeys"),message:'\n <div class="fr-helper">\n <ul>\n <li>\n <strong>Esc</strong> - '+Zt.a.tr("RemoveAllPopups")+"\n </li>\n <li>\n <strong>Del</strong> - "+Zt.a.tr("DeleteSelectedComponentsOrBand")+"\n </li>\n <li>\n <strong>Ctrl + A</strong> - "+Zt.a.tr("SelectAllComponentsOnThePage")+"\n </li>\n <li>\n <strong>Ctrl + C</strong> - "+Zt.a.tr("CopySelectedComponents")+"\n </li>\n <li>\n <strong>Ctrl + X</strong> - "+Zt.a.tr("CutSelectedComponents")+"\n </li>\n <li>\n <strong>Ctrl + V</strong> - "+Zt.a.tr("PasteTheCopiedComponent")+"\n </li>\n <li>\n <strong>Ctrl + D</strong> - "+Zt.a.tr("Duplicate")+"\n </li>\n <li>\n <strong>Ctrl + Z</strong> - "+Zt.a.tr("Menu Edit Undo")+"\n </li>\n <li>\n <strong>Ctrl + Y</strong> - "+Zt.a.tr("Menu Edit Redo")+"\n </li>\n <li>\n <strong><left></strong> - "+Zt.a.tr("MoveSelectedComponentsLeft")+"\n </li>\n <li>\n <strong><right></strong> - "+Zt.a.tr("MoveSelectedComponentsRight")+"\n </li>\n <li>\n <strong><up></strong> - "+Zt.a.tr("MoveSelectedComponentsUp")+"\n </li>\n <li>\n <strong><down></strong> - "+Zt.a.tr("MoveSelectedComponentsDown")+"\n </li>\n <li>\n <strong>Ctrl + <left></strong> - "+Zt.a.tr("MoveSelectedComponentsLeftOn1px")+"\n </li>\n <li>\n <strong>Ctrl + <right></strong> - "+Zt.a.tr("MoveSelectedComponentsRightOn1px")+"\n </li>\n <li>\n <strong>Ctrl + <up></strong> - "+Zt.a.tr("MoveSelectedComponentsUpOn1px")+"\n </li>\n <li>\n <strong>Ctrl + <down></strong> - "+Zt.a.tr("MoveSelectedComponentsDownOn1px")+"\n </li>\n <li>\n <strong>Ctrl + S</strong> - "+Zt.a.tr("SaveCurrentReport")+"\n </li>\n <li>\n <strong>Ctrl + P</strong> - "+Zt.a.tr("PreviewCurrentReport")+"\n </li>\n <li>\n <strong>Alt + Enter</strong> - "+Zt.a.tr("ToogleFullscreen")+'\n </li>\n <li>\n <strong>Ctrl + "+"</strong> - '+Zt.a.tr("Scale plus")+'\n </li>\n <li>\n <strong>Ctrl + "-"</strong> - '+Zt.a.tr("Scale minus")+"\n </li>\n <li>\n <strong>Ctrl + 0</strong> - "+Zt.a.tr("Scale to original size")+"\n </li>\n <li>\n <strong>Ctrl + G</strong> - "+Zt.a.tr("Group")+"\n </li>\n <li>\n <strong>Ctrl + Shift + G</strong> - "+Zt.a.tr("Ungroup")+'\n </li>\n </ul>\n <div class="fr-helper-product-info">'+Zt.a.tr("HTML5Designer")+" ("+u.a.get("version")+")</div>\n </div>\n "})}function p(t){return null!=t&&"function"==typeof t[Symbol.iterator]}function a(){var t=".fr-designer",e=d()("<div>");this.$color=d()('<input type="color"/>','<input type="file"/>'),e.append(this.$color),this.$main=null,this.$main=d()(t),this.$main&&this.$main.length||(this.$main=d()(document.body)),this.$node=d()("<div>"),this.$reusable=d()("<div>"),this.$mainContainer=d()("<div>"),this.$controls=d()("<div>"),this.$workspace=d()("<div>"),this.$mainContainer.append(this.$controls,this.$workspace),this.$node.addClass("fr-main"),this.$reusable.addClass("fr-reusable"),this.$mainContainer.addClass("fr-main-container"),this.$workspace.addClass("fr-body"),this.$reusable.append(e),this.$node.append(this.$mainContainer,this.$reusable),this.$main.prepend(this.$node),this.put=function(t){this.$node.append(t)}}var o,d,s,l,h,u,f,g,m,b,v,y,C,S,x,P,w,T,k,B,$,O,E,M,D,A,j,F,L,R,N,W,H,_,z,V,I,G,X,U,Y,K,q,J,Z,Q,tt,et,nt,it,rt,at,ot,st,lt,ct,pt,dt,ut,ht,ft,gt,mt,bt,vt,yt,Ct,St,xt,Pt,wt,Tt,kt,Bt,$t,Ot,Et,Mt,Dt,At,jt,Ft,Lt,Rt,Nt,Wt,Ht,_t,zt,Vt,It,Gt,Xt,Ut,Yt,Kt,qt,Jt,Zt,Qt,te,ee,ne,ie,re,ae,oe,se,le,ce,pe,de,ue,he,fe,ge,me,be;c.r(e),c(317),c(318),c(319),o=c(0),d=c.n(o),s=c(69),l=c(136),String.prototype.format||(String.prototype.format=function(){var n=arguments;return this.replace(/{(\d+)}/g,function(t,e){return void 0!==n[e]?n[e]:t})}),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(t,e,n){var i,r=atob(this.toDataURL(e,n).split(",")[1]),a=r.length,o=new Uint8Array(a);for(i=0;i<a;i++)o[i]=r.charCodeAt(i);t(new Blob([o],{type:e||"image/png"}))}}),window.requestIdleCallback=window.requestIdleCallback||function(t){var e=Date.now();return setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)},window.cancelIdleCallback=window.cancelIdleCallback||function(t){clearTimeout(t)},d.a.cssHooks.fill=n("fill"),d.a.cssHooks.stroke=n("stroke"),h=c(14),u=c(4),f=c(41),g=c(39),m=c(7),b=c(11),v=c(126),y=c(29),C=m.default._init,S=f.default.create,x=m.default.remove,P=m.default.moving,w=m.default.resizing,T=m.default.movingEnd,k=m.default.resizingEnd,B=m.default.render,f.default.create=function(){var t=S.apply(this,arguments);return t.guides={l:{},t:{},r:{},b:{}},t},b.default.remove=function(){return!!g.a.remove.apply(this,arguments)&&(i(this.components),this.bands.everyEntity(function(t){i(t.components)}),!0)},m.default._init=function(){C.apply(this,arguments),this.inCoords={l:[],t:[],r:[],b:[]}},m.default.remove=function(){return!!x.apply(this,arguments)&&(this.removeFromCoords(),!0)},m.default.render=function(){var t=B.apply(this,arguments);return this.touched&&this.unstuck(),t},m.default.moving=function(){P.apply(this,arguments),u.a.get("guides")&&this.stuck()},m.default.resizing=function(){w.apply(this,arguments),u.a.get("guides")&&this.stuck()},m.default.resizingEnd=function(){k.apply(this,arguments),this.unstuck()},m.default.movingEnd=function(){T.apply(this,arguments),this.unstuck()},m.default.removeFromCoords=function(){for(var t,e,n,i,r=this.inCoords,a=Object.keys(r),o=a.length;o--;){for(e=0,n=(i=r[t=a[o]]).length;e<n;e+=1)Object(y.a)(i[e],this);r[t].length=0}},m.default.putIntoCoords=function(){var t,e,n,i,r,a,o,s;if(this.attr("movable")){if(t=this.getPage(),e=this.absoluteTop(),n=this.inCoords,i=t&&t.guides,r=h.a.toUnit(this.prop("Left")),a=h.a.toUnit(e),o=h.a.toUnit(this.attr("right")),s=h.a.toUnit(e+this.prop("Height")),!i)return null;i.l[r]=i.l[r]||[],i.t[a]=i.t[a]||[],i.r[o]=i.r[o]||[],i.b[s]=i.b[s]||[],i.l[r].push(this),i.t[a].push(this),i.r[o].push(this),i.b[s].push(this),n.l.push(i.l[r]),n.t.push(i.t[a]),n.r.push(i.r[o]),n.b.push(i.b[s])}},m.default.updateCoords=function(){this.removeFromCoords(),this.putIntoCoords()},m.default._getFarest=function(t,e,n){var i,r,a,o,s={},l=0;if(!t)return this;for(n=n||function(){},r=t.length;l<r;l+=1)(i=t[l])!==this&&"in_move"!==i.attr("state")&&(o=(a=e.call(this,i))<0?"a":"b",a=Math.abs(a),(!s[o]||a>s[o].diff)&&(s[o]={diff:a,el:i}));return n(s),this},m.default.stuck=function(){function t(t){return d-t.absoluteTop()}function e(t){return c-t.prop("Left")}function n(t){var e;t.a&&(t.a=i[r].la.call(s,t.a.el),(e=new v.a(t.a)).removeClass("fr-hidden"),s.$sticks.append(e)),t.b&&(t.b=i[r].lb.call(s,t.b.el),(e=new v.a(t.b)).removeClass("fr-hidden"),s.$sticks.append(e))}var i,r,a,o=this.getPage(),s=this,l=o&&o.guides,c=this.prop("Left"),p=this.attr("right"),d=this.absoluteTop(),u=d+this.prop("Height");if(!l)return null;for(i=[{coords:l.l[h.a.toUnit(c)],d:t,la:function(t){return{x1:0,y1:0,x2:0,y2:t.absoluteTop()-d}},lb:function(t){return{x1:0,y1:0,x2:0,y2:-(d-t.absoluteTop())}}},{coords:l.r[h.a.toUnit(c)],d:t,la:function(t){return{x1:0,y1:0,x2:0,y2:t.absoluteTop()-d}},lb:function(t){return{x1:0,y1:0,x2:0,y2:-(d-t.absoluteTop())}}},{coords:l.l[h.a.toUnit(p)],d:t,la:function(t){var e=this.prop("Width");return{x1:e,y1:0,x2:e,y2:t.absoluteTop()-d}},lb:function(t){var e=this.prop("Width");return{x1:e,y1:0,x2:e,y2:-(d-t.absoluteTop())}}},{coords:l.r[h.a.toUnit(p)],d:t,la:function(t){var e=this.prop("Width");return{x1:e,y1:0,x2:e,y2:t.absoluteTop()-d}},lb:function(t){var e=this.prop("Width");return{x1:e,y1:0,x2:e,y2:-(d-t.absoluteTop())}}},{coords:l.t[h.a.toUnit(d)],d:e,la:function(t){return{x1:0,y1:0,x2:t.prop("Left")-c,y2:0}},lb:function(t){return{x1:0,y1:0,x2:-(c-t.prop("Left")),y2:0}}},{coords:l.b[h.a.toUnit(d)],d:e,la:function(t){return{x1:0,y1:0,x2:t.prop("Left")-c,y2:0}},lb:function(t){return{x1:0,y1:0,x2:-(c-t.prop("Left")),y2:0}}},{coords:l.t[h.a.toUnit(u)],d:e,la:function(t){var e=this.prop("Height");return{x1:0,y1:e,x2:t.prop("Left")-c,y2:e}},lb:function(t){var e=this.prop("Height");return{x1:0,y1:e,x2:-(c-t.prop("Left")),y2:e}}},{coords:l.b[h.a.toUnit(u)],d:e,la:function(t){var e=this.prop("Height");return{x1:0,y1:e,x2:t.prop("Left")-c,y2:e}},lb:function(t){var e=this.prop("Height");return{x1:0,y1:e,x2:-(c-t.prop("Left")),y2:e}}}],this.unstuck(),r=0,a=i.length;r<a;r+=1)this._getFarest(i[r].coords,i[r].d,n);return this},m.default.unstuck=function(){return this.$sticks.empty(),this},$=c(194),O=c(6),E=m.default.moving,M=m.default.movingEnd,D=m.default.remove,Object(O.a)(m.default,{showPositionBlock:function(t){var e,n=this.$moveBlock.get(0).getBoundingClientRect(),i=this.prop("Left").toFixed(2),r=this.absoluteTop().toFixed(2),a=window.DSG.head,o=a.$main,s=o.get(0).getBoundingClientRect();return this.$posTip||(this.$posTip=new $.a,a.put(this.$posTip),this.$posTip.height(20)),this.$posTip.css({left:n.left-s.left,top:n.top-25-s.top}),e=this.$posTip.find("span"),t?e.html(h.a.toUnit(i)+", "+h.a.toUnit(r)):e.html(i+", "+r),this},hidePositionBlock:function(){return this.$posTip&&(this.$posTip.remove(),delete this.$posTip),this},remove:function(){var t=D.apply(this,arguments);return t&&this.hidePositionBlock(),t},moving:function(){E.apply(this,arguments),this.showPositionBlock(!0)},movingEnd:function(){M.apply(this,arguments),this.hidePositionBlock()}}),(A=c.c[13])&&(A.exports.default.moving=function(){this.showPositionBlock()}),c(323),j=c(3),F=c(5),L=function(l){var c={cm:1,mm:10,hi:100,in:1};this.width=0,this.height=0,this.render=function(t){var e,n,i=c[h.a.getCurrent()],r=parseFloat(h.a.toPx(i),10),a=r/2,o=0,s=0;if(t=t||{},this.width=t.left||0,this.height=t.top||0,this.$g||(this.$g=d()(Object(j.a)("g",{class:"ruler"})),this.$back=d()(Object(j.a)("rect",{class:"ruler-back"})),this.$rulerBack=d()(Object(j.a)("rect",{class:"ruler-m-back"})),this.$marks=d()(Object(j.a)("g")),this.$g.append(this.$back,this.$marks)),this.$marks.empty(),this.$marks.append(this.$rulerBack),l){for(Object(F.a)(this.$g[0],"text-anchor","end"),Object(F.a)(this.$marks[0],"transform","translate(5, 0)");s<this.width;s+=r,o+=i)e=Object(j.a)("text"),n=Object(j.a)("text"),d()(e).text(o||" "),Object(F.a)(e,"transform","translate(8, "+(s+3)+")"),this.$marks.append(e),d()(n).text("."),Object(F.a)(n,"transform","translate(5, "+(s+a)+")"),this.$marks.append(n);this.$marks.find(":last").remove(),Object(F.a)(this.$back[0],{width:this.height,height:this.width}),Object(F.a)(this.$rulerBack[0],{width:this.height/2,height:this.width})}else{for(Object(F.a)(this.$g[0],"text-anchor","middle"),Object(F.a)(this.$marks[0],"transform","translate(0, 5)");s<this.width;s+=r,o+=i)e=Object(j.a)("text"),n=Object(j.a)("text"),d()(e).text(o||" "),Object(F.a)(e,"transform","translate("+s+", 8)"),this.$marks.append(e),d()(n).text("."),Object(F.a)(n,"transform","translate("+(s+a)+", 5)"),this.$marks.append(n);this.$marks.find(":last").remove(),Object(F.a)(this.$back[0],{width:this.width,height:this.height}),Object(F.a)(this.$rulerBack[0],{width:this.width,height:this.height/2})}return this.$g}},R=18,N=f.default.render,W=b.default.render,f.default.render=function(){N.apply(this,arguments),this.ruler?this.ruler.render({left:this.attr("Width"),top:R}):(this.ruler=new L,this.$g.append(this.ruler.render({left:this.attr("Width"),top:R}))),Object(F.a)(this.ruler.$g.get(0),"transform","translate("+(this.attr("margin")+this.attr("padding"))+",0)")},b.default.render=function(){W.apply(this,arguments),this.ruler||(this.ruler=new L(!0),this.ruler.render({left:this.prop("Height"),top:R}),this.$title.after(this.ruler.$g)),this.ruler.render({left:this.prop("Height"),top:R}),Object(F.a)(this.ruler.$g.get(0),"transform","translate("+this.attr("margin")+", "+this.bands.getTopBandsHeight()+")")},H=c(23),_=f.default.create,z=b.default.render,f.default.create=function(){var e,n=_.apply(this,arguments);return H.a||(e=void 0,n.$g.on("mousedown",".js-band-resize",function(t){e={x:t.pageX,margin:n.attr("margin")}}),n.$g.on("mousemove",function(t){void 0!==e&&(n.attr("margin",e.margin+(t.pageX-e.x)),n.update(),n.bands.everyEntity(function(t){return t.updateComponentsCoords()}))}),d()(document.body).on("mouseup",function(){void 0!==e&&(e=void 0)})),n},b.default.render=function(){var t,e;return z.apply(this,arguments),H.a||(t=this.attr("separator.width"),this.$bandResizerCntr||(this.$bandResizerCntr=d()(Object(j.a)("g")),this.$bandResizer=d()(Object(j.a)("line",{class:"js-band-resize js-disable-common col-resize"})),this.$bandResizer.css({stroke:this.attr("separator.color"),"stroke-width":t,"stroke-dasharray":this.attr("separator.style"),opacity:this.attr("separator.opacity")}),this.$bandResizerCntr.append(this.$bandResizer),this.$title.append(this.$bandResizerCntr)),e=this.attr("margin")-t,e-=this.attr("margin-left")||0,this.$bandResizer.attr({x1:e,y1:0,x2:e,y2:this.prop("Height")})),this.$g},V=c(84),I=c(26),G=c(22),X=c(113),U=c(231),Y=c(114),K=c(115),q=c(232),J=c(233),Z=c(234),Q=c(94),tt=c(235),et=c(138),nt=c(190),it=c(139),rt=c(236),at=c(27),ot=c(153),st=c(140),lt=c(141),ct=c(47),pt=c(127),dt=c(116),ut=c(33),ht=c(117),ft=c(163),gt=c(154),mt=c(155),bt=c(156),vt=c(157),yt=c(158),Ct=c(142),St=c(159),xt=c(160),Pt=c(161),wt=c(98),Tt=c(162),kt=c(118),Bt=c(76),$t=c(119),Ot=c(120),Et=c(70),Mt=c(121),Dt=c(122),At=c(123),jt=c(124),Ft=c(125),Lt=c(237),Rt=c(238),Nt=c(240),Wt=c(239),Ht=c(1),new G.a("hotkey"),_t=function(t,e){var n=t.ctrlKey?1:u.a.get("grid");Ht.a.trigger("move-component",e,n,function(){t.stopPropagation(),t.preventDefault()})},zt=function(){var t,e=window.DSG.currentReport;return!!e&&(t=e.getCurrentPage(),!(u.a.get("hotkeyProhibited")||!t||t.isCode()||d()(".d-cm").length||d()(".fr-popup-container").length))},function(){if(H.a)return;d()(document.body).on("keydown",function(t){var e=window.event?t.which:t.keyCode,n=t.ctrlKey,i=t.shiftKey;if(zt()&&(!document.activeElement||"INPUT"!==document.activeElement.tagName))switch(e){case 46:case 8:return Ht.a.trigger("remove"),!1;case 65:if(n)return Ht.a.trigger("select-all-components"),!1;break;case 67:if(n)return Ht.a.trigger("copy"),!1;break;case 86:if(n)return Ht.a.trigger("paste"),!1;break;case 88:if(n)return Ht.a.trigger("cut"),!1;break;case 90:if(n)return i?Ht.a.trigger("redo"):Ht.a.trigger("undo"),!1;break;case 89:if(n)return Ht.a.trigger("redo"),!1;break;case 37:if(i)return Ht.a.trigger("rotate-left"),!1;_t(t,1);break;case 38:_t(t,2);break;case 39:if(i)return Ht.a.trigger("rotate-right"),!1;_t(t,3);break;case 40:_t(t,4);break;case 83:if(n)return Ht.a.trigger("save"),!1;break;case 80:if(n)return Ht.a.trigger("preview"),!1;break;case 72:return Ht.a.trigger("show-hotkey-helper"),!1;case 13:if(t.altKey)return Ht.a.trigger("toogle-fullscreen"),!1;break;case 68:if(n)return Ht.a.trigger("copy"),Ht.a.trigger("paste",!0),Ht.a.trigger("update-component-viewer-panel"),!1;break;case 222:if(n)return i?Ht.a.trigger("sticky-grid"):(Ht.a.trigger("grid"),Ht.a.trigger("re-render")),!1;break;case 71:if(n)return i?Ht.a.trigger("ungroup"):Ht.a.trigger("group"),Ht.a.trigger("update-menu"),!1;break;case 107:case 187:if(n)return Ht.a.trigger("scale-page-plus"),!1;break;case 109:case 189:if(n)return Ht.a.trigger("scale-page-minus"),!1;break;case 96:case 48:if(n)return Ht.a.trigger("scale-page-original"),!1;break;case 33:if(n&&i)return Ht.a.trigger("menu-higher"),!1;break;case 34:if(n&&i)return Ht.a.trigger("menu-lower"),!1;break;case 32:return Ht.a.trigger("toggle-mouse-scroll-enable"),!1;case 79:if(n)return Ht.a.trigger("open-fs-report"),!1}}).on("keyup",function(t){var e=window.event?t.which:t.keyCode;if(zt())switch(e){case 32:return Ht.a.trigger("toggle-mouse-scroll-disable"),!1}})}(),Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},It=function(t){function e(){this.init.apply(this,arguments)}return e.prototype.init=function(){},e.include=function(t){var e,n,i;if("object"!==(void 0===t?"undefined":Vt(t))&&t.constructor!==Object)return!1;for(e=(n=Object.keys(t)).length;e--;)i=n[e],this.prototype[i]=t[i];return this},t&&e.include(t),e},Gt=c(60),Xt=c(61),Ut=c(48),Yt=c(8),Kt=Object(Yt.a)(Ht.a,{_init:function(){var o=window.DSG.currentReport,e=window.DSG.head,t=this.bind,s=this.trigger,n=this.unbind;t("init",function(){s("activate",o.pages.first(["ReportPage"])),o.show().afterInitShow(),n("init")}),t("component-add-fav-field",function(t,e){t.addFavorite(e)}),t("component-remove-fav-field",function(t,e){t.removeFavorite(e)}),t("remove-popups",function(t){t?d()(".fr-popup-container").remove():d()(".fr-popup-container").fadeOut(150,function(t){d()(t.currentTarget).remove()}),d()(".will-be-created",e.$node).remove()}),t("remove-context-menus",function(){return d()(".d-cm").remove()}),t("activate",function(t){var e,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=n.force,r=n.withoutRerender,a=n.withoutUpdatingWorkspace;t&&((e=o.getSelected())&&!e.isPage()&&e.deactivate(),!t.fieldMap&&t.fillMap&&t.fillMap(),!t.eventMap&&t.fillEventMap&&t.fillEventMap(),!t._favMap.map&&t.fillFavorites&&t.fillFavorites(),t.isComponent()?s("activate-component",t):t.isBand()?s("activate-band",t):t.isPage()?s("activate-page",t):t.isReport()?s("activate-report",t):t.activate(),t===e&&!i||(r||s("re-render",t),t.isPage()&&!a&&s("update-workspace-indent")))}),t("activate-report",function(t){return t.activate()}),t("activate-page",function(t){return t.active()}),t("activate-page-by-id",function(t,e){var n=o.pages.findOneBy({_id:t});s("activate",n,e)}),t("show-page",function(t){var e=o.getCurrentPage();t!==e&&(e.deactivate(),t.show())}),t("activate-band",function(t){return t.active()}),t("activate-component",function(t){return t.active()}),t("scale-page",function(t){var e=o.getCurrentPage();t<.1&&(t=.1),2<t&&(t=2),o.attr("data-scale",t),e.updateSize(),d()(".scale-page").find(".d-icr").val(t)}),t("scale-page-plus",function(){return s("scale-page",o.attr("data-scale")+.1)}),t("scale-page-minus",function(){return s("scale-page",o.attr("data-scale")-.1)}),t("scale-page-original",function(){return s("scale-page",u.a.get("scale"))}),t("toggle-mouse-scroll-enable",function(){o.$node.addClass("fr-grab-page"),u.a.set("scroll-on-space",!0)}),t("toggle-mouse-scroll-disable",function(){o.$node.removeClass("fr-grab-page fr-grabbing-page"),u.a.set("scroll-on-space",!1)}),t("re-render",function(t){t=t||o.getSelected(),s("select-in-tree",t),s("update-properties-panel",t),s("update-events-panel",t)})}}),qt=c(15),Jt=c(12),Zt=c(2),Qt=c(244),te=c(173),ee=c(77),ne=c(171),ie=c(199),re=function(t,e,n){return fetch(u.a.get("saveReport",{id:t})+(n?"&"+n:""),{headers:{"Content-Type":"text/html"},method:"POST",body:e})},c(393),c(394),ae=new G.a,oe=Object(Yt.a)(Ht.a,{_init:function(){var a=window.DSG.currentReport,t=this.bind,o=this.trigger;t("show-hotkey-helper",r),t("toogle-fullscreen",function(){return function(t){var e,n,i=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement;t=t||document.documentElement,i?(n=document.exitFullscreen||document.msExitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen)&&n.apply(document):void 0!==(e=t.requestFullscreen||t.msRequestFullscreen||t.mozRequestFullScreen||t.webkitRequestFullscreen)&&e.apply(t,[Element.ALLOW_KEYBOARD_INPUT])}(window.DSG.head.$main.get(0))}),t("remove",function(t,e){var n=a.getCurrentPage(),i=n.bands||n.components,r=0;if(t)void 0===t.length&&(t=[t]);else if(!(t=i.getSelectedComponents()).length){if(!(t=i.getSelectedBand())||!t.canBeRemoved())return;t=[t]}d.a.each(t,function(){this.attr("removeable")&&(o(this.isComponent()?"remove-component":"remove-band",this),r+=1)}),e||qt.a.push({context:this,func:function(t,e){d.a.each(t,function(){o(e+(this.isComponent()?"-component":"-band"),this),this.isBand()&&this.collection.container.updateExts()}),n.balance&&n.balance()},undoData:[t,"render"],redoData:[t,"remove"]}),Jt.a.deactivate(),o("remove-popups"),o("re-render",n),Object(I.a)(Zt.a.tr("removed")+" "+r,{info:!0})}),t("undo",function(){var t,e=qt.a.prev();if(e){if("function"!=typeof(t=e.undo||e.func))return o("undo");t.apply(e.context,e.undoData||e.data),o("re-render")}}),t("redo",function(){var t,e=qt.a.next();return e?"function"!=typeof(t=e.redo||e.func)?o("redo"):(t.apply(e.context,e.redoData||e.data),void o("re-render")):null}),t("sticky-grid",function(){u.a.set("sticky-grid",!u.a.get("sticky-grid")),o("update-info")}),t("grid",function(){a.attr("grid",!a.attr("grid")),a.getCurrentPage().render()}),t("preview",function(){var i=arguments;Xt.c.toXML().then(function(t){var e=Object(ee.a)((new XMLSerializer).serializeToString(t.xml)),n=Object(ne.a)();return ae.dirxml(t.xml),d.a.when(Ut.a.show(void 0,1)).done(function(){Object(ie.a)(a._id,e,n).then(function(n){Object(te.a)().then(function(t){var e=new Qt.a(Zt.a.tr("Preview"));e.find(".fr-modal-content").html("<span class='preview-cont'>"+n+"</span>"),t.append(e),Ut.a.hide(),window.DSG.head.put(t),o("preview_success"),window.parent!==window&&window.parent.postMessage("preview_success","*")})}).catch(function(){Ut.a.hide(),ae.error(i),Object(I.a)("something went wrong",{danger:!0}),o("preview_failure"),window.parent!==window&&window.parent.postMessage("preview_failure","*")})})})}),t("save_success",function(){Object(I.a)(Zt.a.tr("Messages Saved"),{success:!0,inEmptyList:!0})}),t("save_failure",function(t){t&&Object.keys(t).length?o("alert",{title:t.status+": "+t.statusText,message:t.responseText}):Object(I.a)(Zt.a.tr("Messages CantSaveReport"),{danger:!0,inEmptyList:!0})}),t("save",function(){a.canNotBeSaved()?ae.warn('ReportInfo.SaveMode is set to "Deny"'):(o("save_begin"),window.parent!==window&&window.parent.postMessage("save_begin","*"),Xt.c.toXML().then(function(t){var e=Object(ee.a)((new XMLSerializer).serializeToString(t.xml)),n=u.a.get("show-saving-progress"),i=Object(ne.a)(),r=function(){return d.a.when(Ut.a.show(void 0,1)).done(function(){re(a._id,e,i).then(function(){var t=u.a.get("save_success_redirect"),e=window;Ut.a.hide(),o("save_success"),e.parent!==e&&e.parent.postMessage("save_success","*"),t&&t.url&&(t.useParent&&e.parent&&(e=e.parent),t.blank?e.open(t.url,"_blank"):(t.removeConfirmation&&d()(window).off("beforeunload"),e.location.href=t.url))}).catch(function(t){Ut.a.hide(),o("save_failure",t),window.parent!==window&&window.parent.postMessage("save_failure","*")})})};return ae.dirxml(t.xml),"large"===n?Ut.a.show(void 0,1):"small"===n&&Object(I.a)(d()('\n <div id="floatingCirclesG">\n <div class="f_circleG" id="frotateG_01">\n </div>\n <div class="f_circleG" id="frotateG_02">\n </div>\n <div class="f_circleG" id="frotateG_03">\n </div>\n <div class="f_circleG" id="frotateG_04">\n </div>\n <div class="f_circleG" id="frotateG_05">\n </div>\n <div class="f_circleG" id="frotateG_06">\n </div>\n <div class="f_circleG" id="frotateG_07">\n </div>\n <div class="f_circleG" id="frotateG_08">\n </div>\n </div>\n '),{delay:!1}),r()}))}),t("open-fs-report",function(){d()('<input type="file"/>').on("change",function(t){var e=t.target,n=e.files[0];n||ae.warn("file is not selected"),function(a){return new Promise(function(e){var t,n=0,i=a.size-1,r=new FileReader;r.onloadend=function(t){t.target.readyState===FileReader.DONE&&e(t.target.result)},t=a.slice(n,i+1),r.readAsBinaryString(t)})}(n).then(function(t){return window.DSG.app.openReport(t)})}).trigger("click")})}}),se=c(169),le=c(195),ce=Object(Yt.a)(Ht.a,{_init:function(){var t=this.bind,l=this.trigger;t("show-expression-editor",function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=t.entity,i=t.prop,e=t.menu,r=void 0===e||e,a=t.onSave;Object(se.a)().then(function(t){var e=t.edit(n,i,r);"function"==typeof a&&(e.onClick=a),Object(te.a)().then(function(t){t.append(e.$popup),window.DSG.head.put(t),e.$textarea.focus()})})}),t("edit-border",function(o,s){c.e(12).then(c.bind(null,610)).then(function(t){var a,e={};"function"!=typeof s&&(s=function(){}),void 0===o?o=[]:p(o)||(o=[o]),a=function(t){var e={lines:(t.prop("Border.Lines")||"").split(", "),width:t.prop("Border.Width"),style:t.prop("Border.Style"),color:t.prop("Border.Color")};return t.prop("Border.Shadow")&&(e.shadow={width:t.prop("Border.ShadowWidth"),color:t.prop("Border.ShadowColor")}),e},1===o.length&&(e=a(o[0])),t.create(e).then(function(r){r.on("ok",function(t,e){var n=function(t){var e,n,i;for(e=0;e<t.length;e+=1)n=t[e].entity,(i=t[e].data).lines&&n.prop("Border.Lines",i.lines.join(", ")),i.color&&n.prop("Border.Color",i.color),i.width&&n.prop("Border.Width",i.width),i.style&&n.prop("Border.Style",i.style),i.shadow?(n.prop("Border.Shadow",!0),n.prop("Border.ShadowWidth",i.shadow.width),n.prop("Border.ShadowColor",i.shadow.color)):(n.deleteProp("Border.Shadow"),n.deleteProp("Border.ShadowWidth"),n.deleteProp("Border.ShadowColor")),n.render();s()},i=d.a.map(o,function(t){return{entity:t,data:e}});qt.a.push({context:null,func:n,undoData:[d.a.map(o,function(t){return{entity:t,data:a(t)}})],redoData:[i]}),n(i),r.close(),l("re-render")})})})}),t("edit-highlight",function(r){c.e(4).then(c.bind(null,611)).then(function(t){var n=void 0,i=void 0;n=r.highlights.count()?(i=r.highlights.first()).clone():le.a.create(),t.create(n).then(function(e){e.on("ok",function(){function t(t,e){r.highlights.remove(t),r.highlights.add(e)}t(i,n),qt.a.push({context:null,func:t,undoData:[n,i],redoData:[i,n]}),e.close(),l("re-render")})})})}),t("text-outline",function(e){c.e(13).then(c.bind(null,612)).then(function(t){t.create(e)})}),t("format",function(e){c.e(10).then(c.bind(null,607)).then(function(t){t.create(e)})}),t("edit-font",function(a,o){c.e(3).then(c.bind(null,613)).then(function(t){var e,n={};"function"!=typeof o&&(o=function(){}),void 0===a?a=[]:p(a)||(a=[a]),1===a.length&&(e=a[0],n.name=e.attr("Font.Name")||"",n.size=e.attr("Font.Size"),n.isBold=!!e.attr("Font.Bold"),n.isItalic=!!e.attr("Font.Italic"),n.isUnderline=!!e.attr("Font.Underline"),n.isStrikeout=!!e.attr("Font.Strikeout")),t.create(n).then(function(r){r.on("ok",function(t,e){var n=function(t){var e,n;for(e=0;e<t.length;e+=1)(n=t[e].entity).attr(t[e].data),n.render();o()},i=a.map(function(t){return{entity:t,data:{"Font.Name":e.name,"Font.Size":e.size,"Font.Bold":e.isBold,"Font.Italic":e.isItalic,"Font.Underline":e.isUnderline,"Font.Strikeout":e.isStrikeout}}});qt.a.push({context:null,func:n,undoData:[a.map(function(t){return{entity:t,data:{"Font.Name":t.attr("Font.Name"),"Font.Size":t.attr("Font.Size"),"Font.Bold":t.attr("Font.Bold"),"Font.Italic":t.attr("Font.Italic"),"Font.Underline":t.attr("Font.Underline"),"Font.Strikeout":t.attr("Font.Strikeout")}}})],redoData:[i]}),n(i),r.close(),l("re-render")})})})}),t("hyperlink-editor",function(e){c.e(15).then(c.bind(null,614)).then(function(t){return t.create(e)})}),t("new-connection-wizard",function(e){c.e(7).then(c.bind(null,615)).then(function(t){return t.create(e)})}),t("edit-connection-string",function(e){c.e(8).then(c.bind(null,608)).then(function(t){return t.create(e)})}),t("alert",function(e){c.e(0).then(c.bind(null,609)).then(function(t){return t.create(e)})}),t("info",function(e){c.e(17).then(c.bind(null,606)).then(function(t){return t.create(e)})})}}),pe=c(18),de=new G.a,ue=12e4,u.a.set("key","d65a4f032c7efea300d514fa72b0bbcc"),he=It({version:u.a.get("version"),preInitSubSystems:function(){var i=this;this.initHandler.addPromise(new Promise(function(t){var e,n=window.DSG.customization;n?n.init():(e=c(395).default,n=window.DSG.customization=new e),d.a.when(n.isReady()).done(function(){window.DSG.head.$workspace.append(n.$node),i.initHandler.handlers.add(function(){return n.updateIndent()}),de.info("customization panel initialised"),t()})})),this.initHandler.addPromise(new Promise(function(t){var e=c(288).default;d.a.when(e()).done(function(){de.info("theme loaded"),t()})}))},initHandler:function(){var n,t=this,e=this.initHandler={promises:[],addPromise:function(t){this.promises.push(t)},getPromises:function(){var t=this.promises.slice(0);return this.promises.length=0,t},handlers:(n=[function(){Ht.a.trigger("align-workspace"),Ht.a.trigger("re-render")},function(){Ut.a.hide(),Ht.a.trigger("initialized"),d()(window).trigger("resize")},function(){d()(".fr-designer").trigger("initialized")},function(){var t=setInterval(function(){return Ht.a.trigger("save")},ue);Ht.a.bind("save_failure",function(){clearInterval(t)})}],{all:function(){return n},add:function(t,e){n.splice(e||n.length-1,0,t)}}),done:function(){t.preInitSubSystems(),Promise.all(e.getPromises()).then(function(){e.handlers.all().forEach(function(t){t()})})}};return e},createReport:function(){var t=d.a.Deferred(),e=Gt.a.create();return window.DSG.currentReport=e,Xt.c.init(e,this.state),window.DSG.head.$workspace.empty(),window.DSG.head.$workspace.append(e.$node),Kt.create(),oe.create(),ce.create(),c(401).default.create(),c(402).default.create(),t.resolve(e),this.reportCreated=!0,t.promise()},createStandardReport:function(){var t=this,e=d.a.Deferred();return d.a.when(this.clear()).then(function(){return t.createReport()}).then(function(t){return t.createPage()}).done(function(){Ht.a.trigger("init"),t.initHandler.done(),e.resolve(window.DSG.currentReport)}),e.promise()},openReport:function(t){var e,n,i=this;try{t=(e=(e=d.a.parseJSON(t)).reports).shift()}catch(t){}try{n=Object(Xt.a)(t)}catch(e){return c.e(0).then(c.bind(null,609)).then(function(t){return t.create({name:"Error happened during parsing report",message:e.toString()})}),d.a.Deferred().reject("report was not parsed")}return d.a.when(this.clear()).then(function(){return i.createReport()}).then(function(){return Xt.c.parse(n)}).then(function(t){return e&&e.length&&e.forEach(function(t){Xt.c.extendCurrent(Object(Xt.a)(t))}),t}).done(function(t){return t.pages.count(["ReportPage"])||t.createPage(),Ht.a.trigger("init"),i.initHandler.done(),t})},_saveState:function(t){var e=this;this.state={texts:{}},t&&window.DSG.currentReport.getComponents("TextObject").each(function(){e.prop("mission")&&(e.state.texts[e.prop("mission")]={Text:e.prop("Text"),Width:e.prop("Width"),Height:e.prop("Height")})})},openReportByUUID:function(e,t){var n=this,i=d.a.Deferred(),r=u.a.get("getReport",{id:e,rand_hash:Object(pe.a)()});return this._saveState(!!t),d.a.when(Object(Xt.b)(r)).done(function(t){return n.openReport(t,e).done(function(t){t._id=e,i.resolve(t)})}).fail(function(){var e=arguments;de.error(arguments[2]),i.reject(),c.e(0).then(c.bind(null,609)).then(function(t){return t.create({name:e[1],message:e[2]})})}),i.promise()},openDemoReport:function(t,e){var n=this,i=d.a.Deferred();return this._saveState(!!e),d.a.when(Object(Xt.b)("https://dsg2014.fast-report.com:3000/api/demos/"+t,"jsonp")).done(function(t){return n.openReport(t).done(function(t){i.resolve(t)})}).fail(function(){var e=arguments;de.log(arguments),de.error(arguments[2]),i.reject(),c.e(0).then(c.bind(null,609)).then(function(t){return t.create({name:e[1],message:e[2]})})}),i.promise()},clear:function(){var t;return!this.reportCreated||(t=d.a.Deferred(),Ht.a.clear(),window.DSG.customization&&window.DSG.customization.clear(),window.DSG.currentReport.remove(),delete window.DSG.currentReport,t.resolve(),t.promise())}}),c(403),c(152),fe=c(83),c(288),ge=arguments,me=window.DSG={},be=new G.a,window.DSG.bands={},window.DSG.bands.ReportTitleBand=X.default,window.DSG.bands.ReportSummaryBand=U.default,window.DSG.bands.PageHeaderBand=Y.default,window.DSG.bands.PageFooterBand=K.default,window.DSG.bands.ColumnHeaderBand=q.default,window.DSG.bands.ColumnFooterBand=J.default,window.DSG.bands.DataHeaderBand=Z.default,window.DSG.bands.DataBand=Q.default,window.DSG.bands.DataFooterBand=tt.default,window.DSG.bands.GroupHeaderBand=et.default,window.DSG.bands.GroupFooterBand=nt.default,window.DSG.bands.ChildBand=it.default,window.DSG.bands.OverlayBand=rt.default,window.DSG.components={},window.DSG.components.TextObject=at.default,window.DSG.components.PictureObject=ot.default,window.DSG.components.ShapeObject=st.default,window.DSG.components.PolygonObject=lt.default,window.DSG.components.PolyLineObject=ct.default,window.DSG.components.LineObject=pt.default,window.DSG.components.SubreportObject=dt.default,window.DSG.components.TableObject=ut.default,window.DSG.components.MatrixObject=ht.default,window.DSG.components.BarcodeObject=ft.default,window.DSG.components.RichObject=gt.default,window.DSG.components.CheckBoxObject=mt.default,window.DSG.components.CellularTextObject=bt.default,window.DSG.components.LinearGauge=vt.default,window.DSG.components.SimpleGauge=yt.default,window.DSG.components.RadialGauge=Ct.default,window.DSG.components.SimpleProgressGauge=St.default,window.DSG.components.HtmlObject=xt.default,window.DSG.components.SVGObject=Pt.default,window.DSG.components.ContainerObject=wt.default,window.DSG.components.DigitalSignatureObject=Tt.default,window.DSG.controls={},window.DSG.controls.ButtonControl=kt.default,window.DSG.controls.CheckBoxControl=Bt.default,window.DSG.controls.CheckedListBoxControl=$t.default,window.DSG.controls.ComboBoxControl=Ot.default,window.DSG.controls.DateTimePickerControl=Et.default,window.DSG.controls.LabelControl=Mt.default,window.DSG.controls.ListBoxControl=Dt.default,window.DSG.controls.MonthCalendarControl=At.default,window.DSG.controls.RadioButtonControl=jt.default,window.DSG.controls.TextBoxControl=Ft.default,window.DSG.panels={},window.DSG.panels.Properties=Lt.default,window.DSG.panels.Events=Rt.default,window.DSG.panels.ReportTree=Nt.default,window.DSG.panels.Data=Wt.default,Promise.all([u.a.init(),Zt.a.init(),V.a.init()]).then(function(){var t,e,n,i,r=d()(window);me.app=new he,me.head=new a,r.on("beforeunload",function(t){var e=Zt.a.tr("If you leave before saving, your changes will be lost");return(t||window.event).returnValue=e}),r.on("error",function(){return be.error("error occured",ge)}),t=function(){navigator.onLine?Object(I.a)("online",{success:!0}):Object(I.a)("offline",{danger:!0})},r.on("online",t),r.on("offline",t),me.app.initHandler(),(e=me.app,n=Object(fe.a)("uuid"),i=Object(fe.a)("demo"),n?e.openReportByUUID(n).done(function(){return be.info("report was opened")}):i?e.openDemoReport(i).done(function(){return be.info("report was opened")}):e.createStandardReport().done(function(){return be.info("report was created")})).done(function(){be.info("system initialised")})})}]); |