@wavemaker/app-runtime-wm-build 11.4.0-rc.5346 → 11.4.0-rc.5347

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/compiler"),require("rxjs"),require("@angular/core"),require("@angular/common/http")):"function"==typeof define&&define.amd?define("@wm/core",["exports","@angular/compiler","rxjs","@angular/core","@angular/common/http"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.core={}),e.ng.compiler,e.rxjs,e.ng.core,e.ng.common.http)}(this,(function(e,t,n,i,o){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a,s,l,c,p=r(i),u=r(o);e.FormWidgetType=void 0,(a=e.FormWidgetType||(e.FormWidgetType={})).AUTOCOMPLETE="autocomplete",a.CHECKBOX="checkbox",a.CHECKBOXSET="checkboxset",a.CHIPS="chips",a.COLORPICKER="colorpicker",a.CURRENCY="currency",a.DATE="date",a.DATETIME="datetime",a.NUMBER="number",a.PASSWORD="password",a.RADIOSET="radioset",a.RATING="rating",a.RICHTEXT="richtext",a.SELECT="select",a.TOGGLE="toggle",a.SLIDER="slider",a.SWITCH="switch",a.TEXT="text",a.TEXTAREA="textarea",a.TIME="time",a.TIMESTAMP="timestamp",a.TYPEAHEAD="typeahead",a.UPLOAD="upload",e.DataType=void 0,(s=e.DataType||(e.DataType={})).INTEGER="integer",s.BIG_INTEGER="big_integer",s.SHORT="short",s.FLOAT="float",s.BIG_DECIMAL="big_decimal",s.DOUBLE="double",s.LONG="long",s.BYTE="byte",s.STRING="string",s.CHARACTER="character",s.TEXT="text",s.DATE="date",s.TIME="time",s.TIMESTAMP="timestamp",s.DATETIME="datetime",s.LOCALDATETIME="localdatetime",s.BOOLEAN="boolean",s.LIST="list",s.CLOB="clob",s.BLOB="blob",e.MatchMode=void 0,(l=e.MatchMode||(e.MatchMode={})).BETWEEN="between",l.GREATER="greaterthanequal",l.LESSER="lessthanequal",l.NULL="null",l.EMPTY="empty",l.NULLOREMPTY="nullorempty",l.EQUALS="exact",e.DEFAULT_FORMATS=void 0,(c=e.DEFAULT_FORMATS||(e.DEFAULT_FORMATS={})).DATE="yyyy-MM-dd",c.TIME="HH:mm:ss",c.TIMESTAMP="timestamp",c.DATETIME="yyyy-MM-ddTHH:mm:ss",c.LOCALDATETIME="yyyy-MM-ddTHH:mm:ss",c.DATETIME_ORACLE="yyyy-MM-dd HH:mm:ss",c.DATE_TIME="yyyy-MM-dd HH:mm:ss";var d=function(e,t,n){var i="";return e.forEach((function(e,o){if(o&&o.endsWith(".event")){var r=o.split(".")[0];i=" "+i+" ("+r+')="'+(t?t+".":"")+"triggerUploadEvent($event, '"+r+"', '"+n+"', row)\" "}})),i},h=d,m=function(e,n,i){i=i.replace("bind:","");var o=e.attrs.find((function(e){return"datasetboundexpr"===e.name}));"dataset"!==n.name||o||e.attrs.push(new t.Attribute("datasetboundexpr",i,n.sourceSpan,n.keySpan,n.valueSpan,void 0,void 0))},f=m,g=function(e){var t=e.match(/(custom(\s*:))/g);return t&&t.length},v=function(e,t,n,i,o){void 0===i&&(i=""),void 0===o&&(o="item");var r,a,s,l=t.replace(/([^a-zA-Z0-9.])/g,"\\$1"),c=new RegExp("("+l+")(\\[0\\])?(.data\\[\\$i\\])?(.content\\[\\$i\\])?(\\[\\$i\\])?","g"),p={"wm-list":["itemclass","disableitem","dataset"]};n&&(r=new RegExp("(Widgets."+n+".currentItem)\\b","g"),a=new RegExp("(Widgets."+n+".currentItemWidgets)\\b","g"),s=new RegExp("(Widgets.(.*).(formWidgets|filterWidgets))\\b","g")),(_.isArray(e)?e:p[e.name]?[e]:e.children||[]).forEach((function(e){if(e.name){var l=e.name,u=new RegExp("bind:\\s*\\(*"+t+"\\)*\\.length\\)*");e.attrs.forEach((function(n){var d=n.value&&n.value.trim();_.startsWith(d,"bind:")&&((!p[l]||p[l]&&p[l].indexOf(n.name)>-1)&&_.includes(d,t)&&d!=="bind:"+t&&!u.test(d)&&(d=d.replace("bind:",""),m(e,n,d),d=d.replace(c,o),g(d="bind:"+d)&&r&&(d+=":"+r.exec(r.source)[0])),r&&r.test(d)&&((d.includes(".formWidgets")||d.includes(".filterWidgets"))&&(d=d.replace(s,"Widgets")),m(e,n,d),d=d.replace(r,o)),a&&a.test(d)&&(d=d.replace(a,i+"currentItemWidgets")),n.value=d)})),v(e.children,t,n,i,o)}}))},y=new Map([["display-name","caption"],["display-name.bind","caption.bind"],["title","hint"],["title.bind","hint.bind"],["show","show"],["show.bind","show.bind"],["disabled","disabled"],["disabled.bind","disabled.bind"],["hyperlink","hyperlink"],["hyperlink.bind","hyperlink.bind"],["target","target"],["conditionalclass.bind","conditionalclass.bind"],["conditionalstyle.bind","conditionalstyle.bind"]]),b=window.requestAnimationFrame,w=[],P=function(e){w.length||b((function(){w.forEach((function(e){return e()})),w.length=0})),w.push(e)},O=function(e,t,n){var i=function(t){return e.classList.remove(t)};(t=t||"").split(" ").forEach((function(e){e.length&&(n?i(e):P((function(){return i(e)})))}))},S=function(e,t,n){var i=function(t){return e.classList.add(t)};(t=t||"").split(" ").forEach((function(e){e.length&&(n?i(e):P((function(){return i(e)})))}))},E=function(e,t,n,i){var o=function(){return e.style[t]=n};i?o():P(o)},T=function(e,t,n,i){var o=function(){return e instanceof Element&&e.setAttribute(t,n)};i?o():P(o)};function R(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))}function A(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}Object.create;function C(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function I(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function D(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var N={};function x(){return window._WM_APP_PROPERTIES?window._WM_APP_PROPERTIES:N}var k,M,L,F=function(){function e(e){this.generator=function(e){var t;return A(this,(function(n){switch(n.label){case 0:t=1,n.label=1;case 1:return[4,""+e+t++];case 2:return n.sent(),[3,1];case 3:return[2]}}))}(e)}return e.prototype.nextUid=function(){return this.generator.next().value},e}(),j=function(e){return"string"==typeof e},B=function(e){return void 0!==e},G=function(e,t){return void 0===e?t:e},V=function(e,t){return void 0===e?t:void 0===t?e:e+t},U=function(e,t){return G(e,0)-G(t,0)},W=function(){},q=new Map,z=new Map,H=new Map,Y=function(e,t){return"object"!=typeof e&&"object"!=typeof t&&(e!=e&&t!=t||e===t)},K=function(e,t){var n=t.length,i=n>10;switch(n){case 10:if(i=!Y(e[9],t[9]))break;case 9:if(i=!Y(e[8],t[8]))break;case 8:if(i=!Y(e[7],t[7]))break;case 7:if(i=!Y(e[6],t[6]))break;case 6:if(i=!Y(e[5],t[5]))break;case 5:if(i=!Y(e[4],t[4]))break;case 4:if(i=!Y(e[3],t[3]))break;case 3:if(i=!Y(e[2],t[2]))break;case 2:if(i=!Y(e[1],t[1]))break;case 1:if(i=!Y(e[0],t[0]))break}return i},Q=function(e,t,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var r,a=t.get(n);if(a){var s=K(a.args,i);if(!s)return a.result}return a={args:i,result:r=e.transform.apply(e,D([],I(i)))},t.set(n,a),r},X=/[^ a-zA-Z0-9]/g,J=function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},Z=function(){function e(e,t,n){this.ast=e,this.declarations=[],this.stmts=[],this.pipes=[],this.vIdx=0,this.exprType=t,this.pipeNameVsIsPureMap=n}return e.prototype.createVar=function(){var e="v"+this.vIdx++;return this.declarations.push(e),e},e.prototype.processImplicitReceiver=function(){return"ctx"},e.prototype.processLiteralPrimitive=function(){var e=this.cAst;return j(e.value)?'"'+e.value.replace(/"/g,'"').replace(X,J)+'"':e.value},e.prototype.processLiteralArray=function(){var e,t,n=this.cAst,i=this.cStmts,o=this.createVar(),r=[];try{for(var a=C(n.expressions),s=a.next();!s.done;s=a.next()){var l=s.value;r.push(this.build(l,i))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return i.push(o+"=["+r.join(",")+"]"),o},e.prototype.processLiteralMap=function(){var e,t,n=this.cAst,i=this.cStmts,o=this.createVar(),r=[];try{for(var a=C(n.values),s=a.next();!s.done;s=a.next()){var l=s.value;r.push(this.build(l,i))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return i.push(o+"={"+n.keys.map((function(e,t){return"'"+e.key+"':"+r[t]}))+"}"),o},e.prototype.processPropertyRead=function(){var e=this.cAst,t=this.cStmts,n=this.build(e.receiver,t),i=this.createVar();return t.push(i+"="+n+"&&"+n+"."+e.name),i},e.prototype.processKeyedRead=function(){var e=this.cAst,t=this.cStmts,n=this.build(e.key,t),i=this.build(e.receiver,t),o=this.createVar();return t.push(o+"="+i+"&&"+i+"["+n+"]"),o},e.prototype.processPrefixNot=function(){var e=this.cAst,t=this.cStmts,n=this.build(e.expression,t);return t.push(n+"=!"+n),n},e.prototype.handleBinaryPlus_Minus=function(){var e=this.cAst,t=this.cStmts,n=this.build(e.left,t),i=this.build(e.right,t),o=this.createVar(),r="+"===e.operation?"_plus":"_minus";return t.push(o+"="+r+"("+n+","+i+")"),o},e.prototype.handleBinaryAND_OR=function(){var e=this.cAst,t=this.cStmts,n=[],i=[],o=[],r=this.build(e.left,i),a=this.build(e.right,o),s=this.createVar();return"&&"===e.operation?n.push(i.join(";"),";"+s+"=false",";if("+r+"){",o.join(";"),";"+s+"="+a+";","}"):n.push(i.join(";"),";"+s+"="+r,";if(!"+r+"){",o.join(";"),";"+s+"="+a+";","}"),t.push(n.join("")),s},e.prototype.handleBinaryDefault=function(){var e=this.cAst,t=this.cStmts,n=this.build(e.left,t),i=this.build(e.right,t),o=this.createVar();return t.push(o+"="+n+e.operation+i),o},e.prototype.processBinary=function(){var e=this.cAst.operation;return"+"===e||"-"===e?this.handleBinaryPlus_Minus():"&&"===e||"||"===e?this.handleBinaryAND_OR():this.handleBinaryDefault()},e.prototype.processConditional=function(){var e=this.cAst,t=this.cStmts,n=this.build(e.condition,t),i=this.createVar(),o=[],r=[],a=[],s=this.build(e.trueExp,r),l=this.build(e.falseExp,a);return o.push("if("+n+"){",r.join(";"),";"+i+"="+s+";","}else{",a.join(";"),";"+i+"="+l+";","}"),t.push(o.join(" ")),i},e.prototype.processMethodCall=function(){var e,n,i=this.cAst,o=this.cStmts,r=[];try{for(var a=C(i.args),s=a.next();!s.done;s=a.next()){var l=s.value;r.push(this.build(l,o))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}var c=this.build(i.receiver,o),p=this.createVar(),u=i.receiver instanceof t.ImplicitReceiver;return o.push(p+"= "+c+"&&"+c+"."+i.name+"&&"+c+"."+i.name+(u?".bind(_ctx)":"")+"("+r.join(",")+")"),p},e.prototype.processChain=function(){var e=this;return this.cAst.expressions.map((function(t){return e.build(t)})).join(";")},e.prototype.processPropertyWrite=function(){var e,n,i=this.cAst,o=this.cStmts;n=i.receiver instanceof t.ImplicitReceiver?"_ctx."+i.name:(e=this.build(i.receiver,o))+(e.length?".":"")+i.name;var r=this.build(i.value,o);o.push(n+"="+r)},e.prototype.processPipe=function(){var e,t,n=this.cAst,i=this.cStmts,o=this.createVar(),r=[],a=[],s=[],l=this.build(n.exp,i);try{for(var c=C(n.args),p=c.next();!p.done;p=c.next()){var u=p.value;r.push(this.build(u,s))}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}var d="_p"+this.pipes.length;return this.pipes.push([n.name,d]),r.unshift(l),a.push(s.length?s.join(";")+";":"",this.pipeNameVsIsPureMap.get(n.name)?o+"=getPPVal("+d+',_ppc,"'+d+'",'+r+")":o+"="+d+".transform("+r+")"),i.push(a.join("")),o},e.prototype.build=function(e,n){return this.cAst=e,this.cStmts=n||this.stmts,e instanceof t.ImplicitReceiver?this.processImplicitReceiver():e instanceof t.LiteralPrimitive?this.processLiteralPrimitive():e instanceof t.LiteralArray?this.processLiteralArray():e instanceof t.LiteralMap?this.processLiteralMap():e instanceof t.PropertyRead?this.processPropertyRead():e instanceof t.PropertyWrite?this.processPropertyWrite():e instanceof t.KeyedRead?this.processKeyedRead():e instanceof t.PrefixNot?this.processPrefixNot():e instanceof t.Binary?this.processBinary():e instanceof t.Conditional?this.processConditional():e instanceof t.MethodCall?this.processMethodCall():e instanceof t.Chain?this.processChain():e instanceof t.BindingPipe?this.processPipe():void 0},e.prototype.extendCtxWithLocals=function(){var e=this.createVar();this.stmts.push(e+"=Object.assign({}, locals)","Object.setPrototypeOf("+e+", _ctx)","ctx="+e)},e.prototype.fnBody=function(){return this.declarations.push("ctx"),'"use strict";\nvar '+this.declarations.join(",")+";\n"+this.stmts.join(";")},e.prototype.fnArgs=function(){var e,t,n=["_plus","_minus","_isDef"];if(this.exprType===L.Binding){n.push("getPPVal","_ppc");try{for(var i=C(this.pipes),o=i.next();!o.done;o=i.next()){var r=I(o.value,2)[1];n.push(r)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}}return n.push("_ctx","locals"),n.join(",")},e.prototype.addReturnStmt=function(e){this.stmts.push("return "+e+";")},e.prototype.cleanup=function(){this.ast=this.cAst=this.stmts=this.cStmts=this.declarations=this.pipes=this.pipeNameVsIsPureMap=void 0},e.prototype.compile=function(e){if(this.extendCtxWithLocals(),this.addReturnStmt(this.build(this.ast)),e)return{fnBody:this.fnBody(),fnArgs:this.fnArgs(),pipes:this.pipes};var t,n=new Function(this.fnArgs(),this.fnBody());return this.exprType===L.Binding?(t=n.bind(void 0,V,U,B,Q)).usedPipes=this.pipes.slice(0):t=n.bind(void 0,V,U,B),this.cleanup(),t},e}(),ee=function(){return{transform:W}},te=function(){if(void 0!==k)return k;try{new Function,k=!1}catch(e){k=!0}return k};function ne(e,n){var i,o;if(!M)return console.log("set pipe provider"),W;if(!j(e))return W;if((e=e.trim()).endsWith(";")&&(e=e.slice(0,-1)),!e.length)return W;var r,a=q.get(e);if(a)return a;if(n||(r=le(e)),!r)if(te())r=function(t,n){var i=Object.assign({},n);return Object.setPrototypeOf(i,t),_.get(i,e)};else{var s=new t.Parser(new t.Lexer).parseBinding(e,"",0);if(s.errors.length)r=a=W;else{var l=M.getPipeNameVsIsPureMap();if(a=new Z(s.ast,L.Binding,l).compile(n),n)return a;if(a.usedPipes.length){var c=[],p=!1;try{for(var u=C(a.usedPipes),d=u.next();!d.done;d=u.next()){var h=I(d.value,1)[0],m=M.meta(h),f=void 0;m?(m.pure&&(p=!0,f=H.get(h)),f||(f=M.getInstance(h)),m.pure&&H.set(h,f)):f=ee,c.push(f)}}catch(e){i={error:e}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}c.unshift(p?new Map:void 0),r=a.bind.apply(a,D([void 0],I(c)))}else r=a.bind(void 0,void 0)}}return q.set(e,r),r}function ie(e,t,n){var i=Object.assign({},n);Object.setPrototypeOf(i,t);var o=e.split("("),r=o[0],a=_.get(t,r);if(a){var s=o[1].replace(")","");s=s.split(",");var l=[];return s.forEach((function(e){e=e&&e.trim(),l.push(_.get(i,e))})),a.bind(i).apply(void 0,D([],I(l)))}}function oe(e,n){if(!j(e))return W;if(!(e=e.trim()).length)return W;var i=z.get(e);if(i)return i;if(n||(i=ce(e)),!i)if(te())i=ie.bind(void 0,e);else{var o=new t.Parser(new t.Lexer).parseAction(e,"",0);if(o.errors.length)return W;i=new Z(o.ast,L.Action).compile(n)}return z.set(e,i),i}!function(e){e[e.Binding=0]="Binding",e[e.Action=1]="Action"}(L||(L={}));var re=new Map,ae=function(e){return re.get(e)},se=function(e,t){var n,i,o=ae(e);if(o){var r=o.usedPipes||[];if(o=t===L.Binding?o.bind(void 0,V,U,B,Q):o.bind(void 0,V,U,B),r.length){var a=[],s=!1;try{for(var l=C(r),c=l.next();!c.done;c=l.next()){var p=I(c.value,1)[0],u=M.meta(p),d=void 0;u?(u.pure&&(s=!0,d=H.get(p)),d||(d=M.getInstance(p)),u.pure&&H.set(p,d)):d=ee,a.push(d)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}a.unshift(s?new Map:void 0),o=o.bind.apply(o,D([void 0],I(a)))}else t===L.Binding&&(o=o.bind(void 0,void 0));return o}},le=function(e){return se(e,L.Binding)},ce=function(e){return se(e,L.Action)},pe=new Map,ue=new F("watch-id-"),de={};Object.freeze(de);var he,me,fe,ge=!1,ve=function(e,t){var n;return void 0===t&&(t=50),function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];window.__zone_symbol__clearTimeout(n),n=window.__zone_symbol__setTimeout((function(){return e.apply(void 0,D([],I(i)))}),t)}},ye=function(e,t,n,i){var o,r=n;_.isArray(r)&&(o=r.map((function(e){return Vt(e,t)})),_.isArray(o[0])&&(o=_.flatten(o)),e(o,i))},be=function(e,t,n){var i="[$i]";if(!t)return{expr:e.replace(/\[\$i\]/g,"[0]"),listener:n};var o=e.lastIndexOf(i),r=e.substr(0,o).replace(i,"[0]"),a=e.substr(o+5),s=n;return a&&(s=ye.bind(void 0,n,a)),{expr:r,listener:s}},we=function(e,t,n,i,o,r,a,s){if(void 0===o&&(o=ue.nextUid()),void 0===r&&(r=!1),void 0===a&&(a={}),-1!==e.indexOf("[$i]")){var l=be(e,a&&a.arrayType,i);e=l.expr,i=l.listener}var c=ne(e);return pe.set(o,{fn:c.bind(e,t,n),listener:i,expr:e,last:de,doNotClone:r,isMuted:s}),function(){return Pe(o)}},Pe=function(e){return pe.delete(e)},_e=!1,Oe=window.requestAnimationFrame,Se=function(e){if(!ge||e){var t,n=1;do{t=!1,pe.forEach((function(e){if(!e.isMuted||!e.isMuted()){var n,i=e.fn,o=e.listener,r=e.last;try{n=i()}catch(t){console.warn("error in executing expression: '"+e.expr+"'")}_.isEqual(n,r)||(t=!0,_e=!0,e.last=n,_.isObject(n)&&!e.doNotClone&&!1!==n.__cloneable__&&(e.last=_.clone(n)),o(n,r),Ee())}})),n++}while(t&&n<5);t&&5===n&&console.warn("Number of watch cycles gone above set limit of: 5 ")}},Ee=function(){return _e=!1};window.watchRegistry=pe;var Te,Re,Ae=ve((function(){fe=!0,me.run((function(){return Se()}))}),100),Ce=(Te=!1,function(e){if(he)if(e)me.run((function(){return he.tick()})),Te=!1;else{if(Te)return;Te=!0,Oe((function(){me.run((function(){return he.tick()})),Te=!1}))}});e.ComponentType=void 0,(Re=e.ComponentType||(e.ComponentType={}))[Re.PAGE=0]="PAGE",Re[Re.PREFAB=1]="PREFAB",Re[Re.PARTIAL=2]="PARTIAL";var Ie,De=function(){};!function(e){e.LIST_RECORDS="listRecords",e.UPDATE_RECORD="updateRecord",e.INSERT_RECORD="insertRecord",e.DELETE_RECORD="deleteRecord",e.INVOKE="invoke",e.UPDATE="update",e.NOTIFY="notify",e.IS_API_AWARE="isApiAware",e.SUPPORTS_CRUD="supportsCRUD",e.SUPPORTS_DISTINCT_API="supportsDistinctAPI",e.IS_PAGEABLE="isPageable",e.IS_SORTABLE="isSortable",e.GET_OPERATION_TYPE="getOperationType",e.GET_RELATED_PRIMARY_KEYS="getRelatedTablePrimaryKeys",e.GET_ENTITY_NAME="getEntityName",e.SET_INPUT="setinput",e.GET_RELATED_TABLE_DATA="getRelatedTableData",e.GET_DISTINCT_DATA_BY_FIELDS="getDistinctDataByFields",e.GET_AGGREGATED_DATA="getAggregatedData",e.GET_MATCH_MODE="getMatchMode",e.DOWNLOAD="download",e.GET_NAME="getName",e.GET_PROPERTIES_MAP="getPropertiesMap",e.GET_PRIMARY_KEY="getPrimaryKey",e.GET_BLOB_URL="getBlobURL",e.SUPPORTS_SERVER_FILTER="supportsServerFilter",e.GET_OPTIONS="getOptions",e.SEARCH_RECORDS="searchRecords",e.GET_REQUEST_PARAMS="getRequestParams",e.GET_PAGING_OPTIONS="getPagingOptions",e.FETCH_DISTINCT_VALUES="fetchDistinctValues",e.GET_UNIQUE_IDENTIFIER="getUniqueIdentifier",e.GET_CONTEXT_IDENTIFIER="getContextIdentifier",e.IS_UPDATE_REQUIRED="isUpdateRequired",e.ADD_ITEM="addItem",e.SET_ITEM="setItem",e.REMOVE_ITEM="removeItem",e.IS_BOUND_TO_LOCALE="isBoundToLocale",e.GET_DEFAULT_LOCALE="getDefaultLocale",e.CANCEL="cancel",e.SET_PAGINATION="setPagination"}(Ie||(Ie={}));var Ne={Operation:Ie},xe=function(){},ke=function(){},Me=function(){},Le=function(){},Fe=function(){},je=function(){},Be=function(){},Ge=function(){},Ve=function(){},$e=function(){},Ue=function(){},We=window.navigator.userAgent,qe={SNAKE_CASE:/[A-Z]/g,ANDROID:/Android/i,IPHONE:/iPhone/i,IPOD:/iPod/i,IPAD:/iPad/i,MAC:/Mac/i,ANDROID_TABLET:/android|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i,MOBILE:/Mobile/i,WINDOWS:/Windows Phone/i,SUPPORTED_IMAGE_FORMAT:/\.(bmp|gif|jpe|jpg|jpeg|tif|tiff|pbm|png|ico)$/i,SUPPORTED_FILE_FORMAT:/\.(txt|js|css|html|script|properties|json|java|xml|smd|xmi|sql|log|wsdl|vm|ftl|jrxml|yml|yaml|md|less|jsp)$/i,SUPPORTED_AUDIO_FORMAT:/\.(mp3|ogg|webm|wma|3gp|wav|m4a)$/i,SUPPORTED_VIDEO_FORMAT:/\.(mp4|ogg|webm|wmv|mpeg|mpg|avi|mov)$/i,PAGE_RESOURCE_PATH:/^\/pages\/.*\.(js|css|html|json)$/,MIN_PAGE_RESOURCE_PATH:/.*(page.min.html)$/,VALID_EMAIL:/^[a-zA-Z][\w.+]+@[a-zA-Z_]+?\.[a-zA-Z.]{1,4}[a-zA-Z]$/,VALID_WEB_URL:/^(http[s]?:\/\/)(www\.){0,1}[a-zA-Z0-9=:?\/\.\-]+(\.[a-zA-Z]{2,5}[\.]{0,1})?/,VALID_WEBSOCKET_URL:/^(ws[s]?:\/\/)(www\.){0,1}[a-zA-Z0-9=:?\/\.\-]+(\.[a-zA-Z]{2,5}[\.]{0,1})?/,VALID_RELATIVE_URL:/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/).*/,REPLACE_PATTERN:/\$\{([^\}]+)\}/g,ZIP_FILE:/\.zip$/i,EXE_FILE:/\.exe$/i,NO_QUOTES_ALLOWED:/^[^'|"]*$/,NO_DOUBLE_QUOTES_ALLOWED:/^[^"]*$/,VALID_HTML:/<[a-z][\s\S]*>/i,VALID_PASSWORD:/^[0-9a-zA-Z-_.@&*!#$%]+$/,SPECIAL_CHARACTERS:/[^A-Z0-9a-z_]+/i,APP_SERVER_URL_FORMAT:/^(http[s]?:\/\/)(www\.){0,1}[a-zA-Z0-9\.\-]+([:]?[0-9]{2,5}|\.[a-zA-Z]{2,5}[\.]{0,1})\/+[^?#&=]+$/,JSON_DATE_FORMAT:/\d{4}-[0-1]\d-[0-3]\d(T[0-2]\d:[0-5]\d:[0-5]\d.\d{1,3}Z$)?/,DATA_URL:/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i,ISO_DATE_FORMAT:/(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}:\d{2})(\.\d+)?([+-]\d{2}:?\d{2}|Z)$/},ze=["int",e.DataType.INTEGER,e.DataType.FLOAT,e.DataType.DOUBLE,e.DataType.LONG,e.DataType.SHORT,e.DataType.BYTE,e.DataType.BIG_INTEGER,e.DataType.BIG_DECIMAL],He=new Date,Ye=function(e){return void 0!==e},Ke=function(e){return null!==e&&"object"==typeof e},Qe=function(e,t){return!(!e||"false"===e)||!!t&&e===t};var Xe=function(){return window.navigator.appVersion.indexOf("Trident/")>-1||window.navigator.userAgent.indexOf("MSIE")>-1},Je=function(){return qe.ANDROID.test(We)},Ze=function(){return qe.ANDROID_TABLET.test(We)&&!/Tablet PC 2.0/i.test(We)},et=function(){return qe.IPHONE.test(We)},tt=function(){return qe.IPOD.test(We)},nt=function(){return qe.IPAD.test(We)||window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>2&&qe.MAC.test(window.navigator.platform)},it=function(){return et()||tt()||nt()},ot=function(){return window.matchMedia("only screen and (min-device-width : 1366px) and (max-device-width : 1366px) and (min-device-height : 1024px) and (max-device-height : 1024px) and (min-width: 1366px) and (max-width: 1366px)").matches},rt=function(){return window.matchMedia("only screen and (min-device-width : 1024px) and (max-device-width : 1024px) and (min-device-height : 1366px) and (max-device-height : 1366px) and (min-width: 1024px) and (max-width: 1024px)").matches},at=function(){return Je()||it()||Ze()||$("#wm-mobile-display:visible").length>0},st=function(){return"MOBILE"===x().platformType&&"APPLICATION"===x().type},lt=function(){var e=window.navigator.userAgent.toLowerCase().match(/android\s([0-9\.]*)/);return e?e[1]:""},ct=function(){return Je()&&4===parseInt(lt(),10)},pt=function(e){var t=e.indexOf("?");return t>-1?(e=encodeURI(e.substring(0,t))+e.substring(t),e=ut(e)):e=encodeURI(e),e},ut=function(e){var t,n,i="";return(n=e.indexOf("?"))>-1&&(n+=1,(t=e.substring(n))&&(t.split("&").forEach((function(e){var t,n=_.includes(e,"=")?e.indexOf("="):e&&e.length,o=e.substr(0,n),r=e.substr(n+1);if(r||_.includes(e,"=")){try{t=decodeURIComponent(r)}catch(e){t=r}i+=o+"="+encodeURIComponent(t)+"&"}else i+=o+"&"})),i=i.slice(0,-1),e=e.replace(t,i))),e},dt=function(e){return e?e.charAt(0).toUpperCase()+e.substring(1):""},ht=function(e){return e===e.toUpperCase()?e:e.replace(qe.SNAKE_CASE,(function(e,t){return(t?" ":"")+e}))},mt=function(e,t,n){return e.substr(0,t)+n+e.substr(t+n.length)},ft=function(e){var t;return-1!==(t=e.indexOf("."))&&(e=mt(e,t+1,e.charAt(t+1).toUpperCase()),e=mt(e,t," ")),e},gt=function(e){return e=_.camelCase(e),e=dt(e),e=ht(e),e=ft(e)},vt=function(e){return e.split("-").join(" ")},yt=function(e,t){void 0===t&&(t=",");var n,i=[];return _.isArray(e)||(i=_.split(e,t)),n=_.map(i,gt),_.isArray(e)?n:n.join(t)},bt=function(e){var t=document.createElement("a");return t.href=e,""!==t.protocol&&(!qe.DATA_URL.test(e)&&(!!wt(location.href,"https://")&&("https:"!==t.protocol&&"wss:"!==t.protocol)))},wt=function(e,t,n){return!!e&&new RegExp("^"+t,n?"i":"").test(e)},Pt=function(e,t){var n;return n=_.attempt((function(){var n=Object.keys(e).map((function(e){return"var "+e+" = data['"+e+"'];"})).join(" ");return new Function("data",n+" return "+t)(e)})),_.isError(n)&&(n=_.get(e,t)),n},_t=function(e){return qe.SUPPORTED_IMAGE_FORMAT.test(e)},Ot=function(e){return qe.SUPPORTED_AUDIO_FORMAT.test(e)},St=function(e){return qe.SUPPORTED_VIDEO_FORMAT.test(e)},Et=function(e){return qe.VALID_WEB_URL.test(e)},Tt=function(e){return Et(e),e};function Rt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=1,o=arguments.length,r=new Array(o-i);i<o;i++)r[i-1]=arguments[i];if(_.isFunction(e))return e.apply(null,r)}var At=function(e,t,n,i,o,r,a){if(t){if("timestamp"===n)return moment(t).valueOf();if("UTC"===n)return new Date(t).toISOString();if(i){var s=n.replaceAll("y","Y").replaceAll("d","D").replace("a","A");if(r)return moment(t).format(s);if("datetimestamp"===o)return t=dn(i,t),moment(t).format(s)}return e.transform(t,n,i,a)}},Ct=function(e){if("string"==typeof e){var t=e.match(qe.ISO_DATE_FORMAT);return!(!t||!t[4])||void 0}},It=function(e,t,n){if(t&&t.pattern&&"timestamp"!==t.pattern){var i=(t&&t.hasOwnProperty("isNativePicker")?_.get(t,"isNativePicker"):at())?"YYYY/MM/DD HH:mm:ss":Qt(t.pattern);e=moment(e,i).toDate()}if(_.isDate(e))return e;if(isNaN(e)||(e=parseInt(e,10)),moment(e).isValid()&&""!==e&&null!=e){var o=new Date(e);return _.isString(e)&&(o=n?dn(n,e):new Date(moment(moment(e).format()).valueOf())),"CURRENT_DATE"===e||isNaN(o.getDay())?He:o}},Dt=function(e,t,n,i,o,r,a,s){void 0===s&&(s=!1);var l=e,c=function(e){if(!t||!t.contains(e.target)&&t!==e.target)if(n.contains(e.target)){if($(e.target).is("input")&&!o)return;l.removeEventListener(i,c,s)}else 0===a&&l.removeEventListener(i,c,s),r()};l.addEventListener(i,c,s);return function(){l.removeEventListener(i,c,s)}},Nt=function(e){return _.cloneDeep(e)},xt=function(e,t,n){var i=_.get(document.forms,[e,t,"files"]);return n?_.map(i,_.identity):i&&i[0]};function kt(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}var Mt,Lt,Ft=function(){return kt()+"-"+kt()+"-"+kt()},jt=function(e,t){var n;return!e||!t||(n=e&&e.split(",").map(Function.prototype.call,String.prototype.trim),_.intersection(n,t.userRoles).length)},Bt=function(e){if(e)try{var t=parseInt(e,10);return Ke(e)||!isNaN(t)?e:JSON.parse(e)}catch(e){return}},Gt=function(e){var t=new X2JS({emptyNodeForm:"content",attributePrefix:"",enableToStringFunc:!1}).xml2js(e);return t&&(t=_.get(t,Object.keys(t)[0])),t},Vt=function(e,t,n){if(e&&t){if(!n)return _.get(e,t);var i,o=t.split("."),r=[];if(o.forEach((function(e){if(!o.length)return i=!0,!1;for(var t,n=e.match(/\w+/g);n.length;)t=n.shift(),r.push({key:t,value:n.length?[]:{}})})),!i)return r.forEach((function(t){var n=e[t.key];Ke(n)||(n=Bt(n))||(n=t.value),e[t.key]=n,e=n})),e}},$t=function(t){var n;return t?n=(n=(n=t&&t.substring(t.lastIndexOf(".")+1))&&n.toLowerCase())===e.DataType.LOCALDATETIME?e.DataType.DATETIME:n:e.DataType.STRING},Ut=function(e){return-1!==ze.indexOf($t(e).toLowerCase())},Wt=function(e){return!(!Ke(e)||_.isArray(e))&&0===Object.keys(e).length},qt=function(e){var t=$(e),n=t.offset().top,i=t.closest('[wmsmoothscroll="true"]');if(st()&&i.length){var o=_.get(i[0],"iscroll"),r=-(n-o.y);r=o.maxScrollY>r?o.maxScrollY:r,o.scrollTo(0,r)}else window.scroll({top:n,left:0,behavior:"smooth"})},zt=function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},Ht=function(e){var t=_.omit(e,"empty");return _.isEqual(_.keys({content:[],first:!0,last:!0,number:0,numberOfElements:10,size:20,sort:null,totalElements:10,totalPages:1}),_.keys(t).sort())},Yt=function(e,t,n){var i=qe.REPLACE_PATTERN;if(e)return n&&(i=/\{([^\}]+)\}/g),e.replace(i,(function(e,n){return _.get(t,n)}))},Kt=function(t){return _.includes(t,".")&&(t=_.toLower($t(t))),_.includes([e.DataType.DATE,e.DataType.TIME,e.DataType.TIMESTAMP,e.DataType.DATETIME,e.DataType.LOCALDATETIME],t)},Qt=function(e){return _.includes(e,"E")&&(e=_.replace(e,/E[,]?/g,"")),_.replace(e,/y*d*/g,(function(e){return e.toUpperCase()}))},Xt=Qt,Jt=function(e,t){var n=["AM","PM"],i=moment()._locale.meridiem();t&&t.meridians&&_.includes(n,i)&&_.forEach(t.meridians,(function(t,i){_.includes(e,t)&&(e=e.replace(t,n[i]))}));var o=(t&&t.hasOwnProperty("isNativePicker")?_.get(t,"isNativePicker"):at())?_.get(t,"pattern")||"YYYY/MM/DD HH:mm:ss":Qt(_.get(t,"pattern"))||"";return t&&t.pattern&&"timestamp"!==t.pattern&&(isNaN(new Date(e).getTime())?e=moment(e,o):(it()&&(e=moment(e).format("YYYY/MM/DD HH:mm:ss")),e=moment(new Date(e),o)),e=e.toDate()),moment(e,o).isValid()?(it()&&(e=moment(moment(e).valueOf()).format("YYYY/MM/DD HH:mm:ss")),e):(isNaN(e)?new Date(e).getTime()||(e=moment(moment().format("YYYY-MM-DD")+" "+e,"YYYY-MM-DD HH:mm:ss A")):e=parseInt(e,10),new Date(moment(e).valueOf()))},Zt=function(e,t){return e=Jt(e,t),new Date(e)},en=function(e,t){if(e instanceof Blob)return e;var n=Bt(e);return e=n&&n instanceof Object?new Blob([JSON.stringify(n)],{type:t||"application/json"}):new Blob([e],{type:t||"text/plain"})},tn=function(e,t,n){var i=_.isArray(n)?n:_.split(n,",");return i=_.map(i,_.trim),_.isEqualWith(e,t,(function(e,t){return _.every(i,(function(n){var i,o,r;return-1===_.indexOf(n,":")?i=o=_.trim(n):(r=_.split(n,":"),i=_.trim(r[0]),o=_.trim(r[1])),_.get(e,i)===_.get(t,o)}))}))},nn=function(e){return document.querySelector(e)},on=nn,rn=function(e){return!!nn('link[href="'+e+'"]')},an=rn,sn=function(e){var t=nn('link[href="'+e+'"]');t&&t.remove()},ln=function(e,t){if(!rn(e)){var n=document.createElement("link");return n.href=e,t&&t.name&&n.setAttribute(t.name,t.value),n.setAttribute("rel","stylesheet"),n.setAttribute("type","text/css"),document.head.appendChild(n),n}},cn=function(e){void 0===e&&(e=[]),Array.isArray(e)||(e=[e]),e.forEach(ln)},pn=function(e){return!!nn('script[src="'+e+'"], script[data-src="'+e+'"]')},un=pn,dn=function(e,t){return t?new Date(new Date(moment(t).tz(e).format()).toLocaleString("en-US",{timeZone:e})):new Date(new Date(moment().tz(e).format()).toLocaleString("en-US",{timeZone:e}))},hn=function(e,t,n){return void 0===n&&(n=!1),R(void 0,void 0,void 0,(function(){var i;return A(this,(function(o){return!(i=e.trim()).length||pn(i)?[2,Promise.resolve()]:t?[2,new Promise((function(e,t){var n=document.createElement("script");n.type="text/javascript",n.src=i,n.async=!1,n.readyState?n.onreadystatechange=function(){"loaded"!==n.readyState&&"complete"!==n.readyState||(n.onreadystatechange=null,e(!0))}:n.onload=function(){e(!0)},n.onerror=function(e){return t(e)},document.getElementsByTagName("head")[0].appendChild(n)}))]:n?[2,$.ajax({dataType:"script",cache:!0,url:e}).done((function(e){return e})).fail((function(e){return e}))]:[2,$.getScript(e).done((function(e){return e})).fail((function(e){return e}))]}))}))},mn=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=!0),R(void 0,void 0,void 0,(function(){var n,i,o,r,a,s;return A(this,(function(l){switch(l.label){case 0:l.trys.push([0,5,6,7]),n=C(e),i=n.next(),l.label=1;case 1:return i.done?[3,4]:(o=i.value,[4,hn(o,t)]);case 2:l.sent(),l.label=3;case 3:return i=n.next(),[3,1];case 4:return[3,7];case 5:return r=l.sent(),a={error:r},[3,7];case 6:try{i&&!i.done&&(s=n.return)&&s.call(n)}finally{if(a)throw a.error}return[7];case 7:return[2,Promise.resolve()]}}))}))},fn={},gn=function(e,t){var n=window.sessionStorage.getItem(fn.id);(n=n?JSON.parse(n):{})[e]=t,window.sessionStorage.setItem(fn.id,JSON.stringify(n))},vn=function(e){var t=window&&window.sessionStorage&&window.sessionStorage.getItem(fn.id);if(t)return(t=JSON.parse(t))[e]},yn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},bn=function(e){return _.isArray(e)},wn=function(e){return"string"==typeof e},Pn=function(e){return"number"==typeof e},_n=function(e){return"boolean"==typeof e},On=function(e){return new Promise((function(t,n){resolveLocalFileSystemURL(e,(function(i){i.file((function(i){var o=new FileReader;o.onloadend=function(){var n=new Blob([o.result],{type:i.type});t({blob:n,filepath:e})},o.onerror=n,o.readAsArrayBuffer(i)}))}),n)}))},Sn=function(){return!!window.cordova},En={INT_MAX_VALUE:2147483647},Tn=function(e,t){void 0===t&&(t="_self"),Sn()&&_.startsWith(e,"#")?location.hash=e:window.open(e,t)},Rn=function(e,t,n,i,o){return void 0===n&&(n=!1),$.ajax({type:"get",dataType:e,url:t,async:!n}).done((function(e){return i&&i(e)})).fail((function(e){return o&&o(e)}))},An=function(e){return e instanceof Promise?e:Promise.resolve(e)},Cn=function(e,t,n,i){void 0===i&&(i=function(){return Promise.resolve(!1)});var o=0,r=function(){if(o++,_.isFunction(e))return e()};return n=_.isNumber(n)&&n>0?n:0,t=_.isNumber(t)&&t>0?t:0,new Promise((function(e,a){var s=function(){var l=arguments;setTimeout((function(){An(i()).then((function(t){!1!==t&&(!n||o<=n)?An(r()).then(e,s):a(l)}),(function(){return a(l)}))}),t)};An(r()).then(e,s)}))},In=function(){var e={promise:null,reject:null,resolve:null,onAbort:function(){},isAborted:!1};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e.promise.abort=function(){Rt(e.onAbort),e.reject("aborted"),e.isAborted=!0},e},Dn=function(e,t){document.styleSheets[0].insertRule(e+" { "+t+" }")},Nn=function(e){var t={},n=e.indexOf("?");-1!==n&&_.split(e.substring(n+1,e.length),"&").forEach((function(e){e=_.split(e,"="),t[e[0]]=e[1]}));return t},xn=function(e){var t=(e=e.replace("#/","/")).indexOf("?");return-1!==t&&(e=e.substring(0,t)),e},kn=/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Mn=function(){var e={promise:null,resolve:yn,reject:yn};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e},Ln=function(e,t,n,i){if(n=n||Mn(),0===(i=i||0)&&(e=_.filter(e,(function(e){return!(_.isUndefined(e)||_.isNull(e))}))),e&&i<e.length)try{An(e[i].apply(void 0,t)).then((function(){return Ln(e,t,n,i+1)}),n.reject)}catch(e){n.reject(e)}else n.resolve();return n.promise},Fn=function(e,t){return e.execute(Ne.Operation.GET_UNIQUE_IDENTIFIER)===t.execute(Ne.Operation.GET_UNIQUE_IDENTIFIER)&&_.isEqual(e.execute(Ne.Operation.GET_CONTEXT_IDENTIFIER),t.execute(Ne.Operation.GET_CONTEXT_IDENTIFIER))},jn=function(e,t){return e.execute(Ne.Operation.GET_CONTEXT_IDENTIFIER)===t},Bn=function(e,t,i){var o=e.registerDestroyListener?e.registerDestroyListener.bind(e):_.noop,r=new n.Subject,a=function(n,a){wt(n[a],"bind:")&&o(we(n[a].replace("bind:",""),e,{},i?i.invokeOnFiltertExpressionChange.bind(i,n,a):function(e,i){e===i&&_.isUndefined(e)||_.isUndefined(e)&&!_.isUndefined(i)||(_.includes(["blob","file"],n.type)||(e=Nt(e)),"dataBinding"===n.target?(t.rules=[],_.forEach(e,(function(e,i){t.rules.push({target:i,value:e,matchMode:n.matchMode||"startignorecase",required:!1,type:""})}))):n[a]=e,r.next({filterExpressions:t,newVal:e}))},void 0,!1,{arrayType:_.includes(["in","notin"],n.matchMode)}))},s=function(e){e.rules&&_.forEach(e.rules,(function(e,t){e.rules?s(e):("between"===e.matchMode&&a(e,"secondvalue"),a(e,"value"))}))};return s(t),r},Gn=function(e,t){for(var n=Object.getPrototypeOf(e);Object.getPrototypeOf(n).constructor!==Object;)if(t===(n=Object.getPrototypeOf(n)))return;Object.setPrototypeOf(n,t)},Vn=function(e){if(_.isString(e))return _.startsWith(e,"file:///")||/^data:image\/([a-z]{2,});base64,/.test(e)?e:e.replace(new RegExp("([^:]/)(/)+","g"),"$1")};$.cachedScript=(Mt=new Map,Lt=new Set,function(e){if(function(e){return Lt.has(e)}(e))return Promise.resolve();if(function(e){return Mt.has(e)}(e))return Mt.get(e);!function(e){var t,n,i=new Promise((function(e,i){t=e,n=i}));i.resolve=t,i.reject=n,Mt.set(e,i)}(e);var t={dataType:"script",cache:!0,url:e};return $.ajax(t).done((function(){return function(e){Lt.add(e),Mt.get(e).resolve(),Mt.delete(e)}(e)})),Mt.get(e)});var $n={DATE:"yyyy-MM-dd",TIME:"hh:mm a",TIMESTAMP:"yyyy-MM-dd hh:mm:ss a",DATETIME:"yyyy-MM-dd hh:mm:ss a"},Un=function(e){return $n[_.toUpper(e)]},Wn=function(e){var t=e.querySelectorAll("label.control-label"),n=e.querySelectorAll("[focus-target]");(n.length||(n=e.querySelectorAll("input, select, textarea")),t.length&&n.length)&&((o=$(n[0]).closest("[widget-id]").attr("widget-id"))&&(T(n[0],"id",o),T(t[0],"for",o)));var i=e.querySelectorAll("ul");if(t.length&&i.length&&("radiogroup"===i[0].getAttribute("role")||"group"===i[0].getAttribute("role"))){var o="wm-group-label-"+Ft();T(i[0],"aria-labelledby",o),T(t[0],"id",o)}},qn=function(e,t,n,i){(n._ngZone||n.ngZone).onStable.subscribe((function(){var t=Yn(e);t.m41<0&&(t.m41=0,Hn(e,t))}))},zn=function(e,t,n,i){var o,r=i?_.parseInt(i.css("width")):_.parseInt(e.css("width")),a=$(window).width()+window.scrollX,s=t.getBoundingClientRect(),l=s.right+window.scrollX;(n._ngZone||n.ngZone).onStable.subscribe((function(){var t=Yn(e);a-(l+s.width)<r&&((o=l-r)<0&&(o=0),t.m41=o,Hn(e,t))}))},Hn=function(e,t){var n="translate3d("+t.m41+"px, "+t.m42+"px, 0px)";e[0].style.webkitTransform=n,e[0].style.MozTransform=n,e[0].style.msTransform=n,e[0].style.OTransform=n,e[0].style.transform=n},Yn=function(e){return"undefined"==typeof WebKitCSSMatrix?new MSCSSMatrix(window.getComputedStyle(e[0]).transform):new WebKitCSSMatrix(window.getComputedStyle(e[0]).webkitTransform)},Kn=function(e){if(!e.closest(".app-popover").length){var t=document.querySelectorAll(".app-popover-wrapper");_.forEach(t,(function(e){e.widget.isOpen&&(e.widget.isOpen=!1)}))}},Qn=Ce,Xn=function(e,t){var n=t.link,i=t.action,o=t.target;if(i&&(e.itemActionFn||(e.itemActionFn=oe(i)),e.itemActionFn(e.userDefinedExecutionContext,Object.create(t))),n)if(!n.startsWith("#/")||o&&"_self"!==o)Tn(n,o);else{var r=Nn(n);n=xn(n),(_.get(e,"route")||_.get(e,"menuRef.route")).navigate([n],{queryParams:r})}},Jn=function(e,t){var n=_.startsWith(e,"Variables."),i=_.startsWith(e,"Widgets."),o=e.split(".");if(n)return _.get(t.viewParent.Variables,o[1]);if(i){var r,a=_.get(t.viewParent.Widgets,o[1]),s=a.$attrs.get("datasetboundexpr");return r=!a.datasource&&s?s:a.binddataset,Jn(r,a)}},Zn=function(e,t){if(/^Widgets\..*\.currentItem/g.test(e)){var n=e.split("."),i=_.get(t.viewParent.Widgets,n[1]),o=i.$attrs.get("datasetboundexpr");if(!i.datasource&&o)return e=e.replace(/^Widgets\..*\.currentItem/g,o+"[$i]"),Zn(e,t);e=e.replace(/^Widgets\..*\.currentItem/g,i.binddataset+"[$i]")}return e},ei=function(e){var t=e.closest(".app-prefab");return t.length||(t=e.closest(".app-partial")),t.length||(t=e.closest(".app-spa-page")),t.length||(t=e.closest(".app-page")),t.length&&t.parent()[0].tagName},ti={REQUIRED:"required",MAXCHARS:"maxchars",MINVALUE:"minvalue",MAXVALUE:"maxvalue",REGEXP:"regexp",MINDATE:"mindate",MAXDATE:"maxdate",MINTIME:"mintime",MAXTIME:"maxtime",EXCLUDEDATES:"excludedates",EXCLUDEDAYS:"excludedays"},ni=function(e){if(e&&Sn()&&e.startsWith("file://")){if(it())return e.replace("file://","/_app_file_");if(Je()&&location.href.startsWith("http")){if(e.startsWith(cordova.file.applicationDirectory))return e.replace(cordova.file.applicationDirectory+"www","");if(e.startsWith("file://"))return e.replace("file://","/_app_file_")}}return e},ii=function(e){var t=document.createElement("script");t.onload=function(){e(WM_CUSTOM_FORMATTERS)},t.onerror=function(e){console.warn("Error while loading the file "+t.src+"\n"+e)},t.type="text/javascript",t.src="./extensions/formatters.js",document.head.appendChild(t)},oi=function(e,t){return _WM_APP_PROPERTIES.extra_settings&&_.get(_WM_APP_PROPERTIES.extra_settings,e)||t},ri=function(e){var t="";e.itemsperrow?isNaN(parseInt(e.itemsperrow,10))?(_.split(e.itemsperrow," ").forEach((function(e){var n=_.split(e,"-");e=n[0]+"-"+12/parseInt(n[1],10),t+=" col-"+e})),e.itemsPerRowClass=t.trim()):e.itemsPerRowClass="col-xs-"+12/parseInt(e.itemsperrow,10):e.itemsPerRowClass="col-xs-12"},ai=Object.freeze({__proto__:null,isDefined:Ye,isObject:Ke,toBoolean:Qe,isIE:Xe,isAndroid:Je,isAndroidTablet:Ze,isIphone:et,isIpod:tt,isIpad:nt,isIos:it,isLargeTabletLandscape:ot,isLargeTabletPortrait:rt,isMobile:at,isTablet:function(){var e=document.querySelector(".app-page").widget;return e&&e.viewParent.Viewport.isTabletType},isMobileApp:st,getAndroidVersion:lt,isKitkatDevice:ct,encodeUrl:pt,encodeUrlParams:ut,initCaps:dt,spaceSeparate:ht,replaceAt:mt,periodSeparate:ft,prettifyLabel:gt,deHyphenate:vt,prettifyLabels:yt,isInsecureContentRequest:bt,stringStartsWith:wt,getEvaluatedExprValue:Pt,isImageFile:_t,isAudioFile:Ot,isVideoFile:St,isValidWebURL:Et,getResourceURL:Tt,triggerFn:Rt,getFormattedDate:At,hasOffsetStr:Ct,getDateObj:It,addEventListenerOnElement:Dt,getClonedObject:Nt,getFiles:xt,generateGUId:Ft,validateAccessRoles:jt,getValidJSON:Bt,xmlToJson:Gt,findValueOf:Vt,extractType:$t,isNumberType:Ut,isEmptyObject:Wt,scrollToElement:qt,isElementInViewport:zt,isPageable:Ht,replace:Yt,isDateTimeType:Kt,getValidDateObject:Jt,getNativeDateObject:Zt,getBlob:en,isEqualWithFields:tn,loadStyleSheet:ln,loadStyleSheets:cn,getMomentLocaleObject:dn,loadScript:hn,loadScripts:mn,_WM_APP_PROJECT:fn,setSessionStorageItem:gn,getSessionStorageItem:vn,noop:yn,isArray:bn,isString:wn,isNumber:Pn,isBoolean:_n,convertToBlob:On,hasCordova:Sn,AppConstants:En,openLink:Tn,fetchContent:Rn,toPromise:An,retryIfFails:Cn,getAbortableDefer:In,createCSSRule:Dn,getUrlParams:Nn,getRouteNameFromLink:xn,isAppleProduct:kn,defer:Mn,executePromiseChain:Ln,isDataSourceEqual:Fn,validateDataSourceCtx:jn,processFilterExpBindNode:Bn,extendProto:Gn,removeExtraSlashes:Vn,getDisplayDateTimeFormat:Un,addForIdAttributes:Wn,adjustContainerPosition:qn,adjustContainerRightEdges:zn,setTranslation3dPosition:Hn,getWebkitTraslationMatrix:Yn,closePopover:Kn,detectChanges:Qn,triggerItemAction:Xn,getDatasourceFromExpr:Jn,extractCurrentItemExpr:Zn,findRootContainer:ei,VALIDATOR:ti,transformFileURI:ni,appendScriptToHead:ii,getAppSetting:oi,setListClass:ri,"\u02750":Xt,"\u02751":on,"\u02752":an,"\u02753":sn,"\u02754":un}),si=function(){function e(e){void 0===e&&(e=!0),this._subject=new n.Subject,this._isInitialized=!1,this._eventsBeforeInit=[],e&&this.start()}return e.prototype.notify=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this._isInitialized?this._subject.next({name:e,data:t}):this._eventsBeforeInit.push({name:e,data:t})},e.prototype.start=function(){var e=this;this._isInitialized||(this._isInitialized=!0,this._eventsBeforeInit.forEach((function(t){return e._subject.next(t)})))},e.prototype.subscribe=function(e,t){var n;return e&&t?(n=this._subject.subscribe((function(n){n&&Ke(n)&&n.name===e&&t.apply(void 0,n.data)})),function(){n.unsubscribe()}):yn},e.prototype.destroy=function(){this._subject.complete()},e}(),li=function(){function e(){var e=this;this.orientation={isPortrait:!1,isLandscape:!1},this.isMobileType=!1,this.isTabletType=!1,this._eventNotifier=new si(!0),this.setScreenType(),window.addEventListener("resize",this.resizeFn.bind(this));var t=window.matchMedia("(orientation: portrait)");t.matches?this.orientation.isPortrait=!0:this.orientation.isLandscape=!0,t.addEventListener&&t.addEventListener("change",(function(t){return e.orientationChange(t,!t.matches)}))}return e.prototype.update=function(e){this.selectedViewPort=e,this.setScreenType()},e.prototype.orientationChange=function(e,t){t!==this.orientation.isLandscape&&(this.orientation.isPortrait=!t,this.orientation.isLandscape=t,this.notify("orientationchange",{$event:e,data:{isPortrait:!t,isLandscape:t}}))},e.prototype.resizeFn=function(e){this.setScreenType(),this.orientationChange(e,this.screenWidth>=this.screenHeight),this.notify("resize",{$event:e,data:{screenWidth:this.screenWidth,screenHeight:this.screenHeight}})},e.prototype.subscribe=function(e,t){return this._eventNotifier.subscribe(e,t)},e.prototype.notify=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this._eventNotifier.notify.apply(this._eventNotifier,arguments)},e.prototype.setScreenType=function(){var e=document.querySelector(".wm-app");this.screenWidth=e.clientWidth,this.screenHeight=e.clientHeight;var t=this.screenWidth<this.screenHeight?this.screenWidth:this.screenHeight,n=this.screenWidth>this.screenHeight?this.screenWidth:this.screenHeight;if(this.isTabletType=!1,this.isMobileType=!1,_.get(this.selectedViewPort,"deviceCategory")){var i=this.selectedViewPort.deviceCategory;"Tab"===i?this.isTabletType=!0:"Smartphone"===i&&(this.isMobileType=!0)}else t>=480&&n>=768?(this.type=1,(Je()||it()||Ze())&&(this.isTabletType=!0)):(this.type=0,this.isMobileType=!0)},e.prototype.ngOnDestroy=function(){this._eventNotifier.destroy(),window.removeEventListener("resize",this.resizeFn)},e}();li.\u0275prov=p.\u0275\u0275defineInjectable({factory:function(){return new li},token:li,providedIn:"root"}),li.decorators=[{type:i.Injectable,args:[{providedIn:"root"}]}],li.ctorParameters=function(){return[]};var ci=function(){this.MATCH_MODES={STARTS_WITH_IGNORE_CASE:"startignorecase",STARTS_WITH:"start",ENDS_WITH_IGNORE_CASE:"endignorecase",ENDS_WITH:"end",CONTAINS:"anywhere",CONTAINS_IGNORE_CASE:"anywhereignorecase",IS_EQUAL_WITH_IGNORE_CASE:"exactignorecase",IS_EQUAL:"exact"},this.VALIDATOR=ti};ci.\u0275prov=p.\u0275\u0275defineInjectable({factory:function(){return new ci},token:ci,providedIn:"root"}),ci.decorators=[{type:i.Injectable,args:[{providedIn:"root"}]}];var pi=function(){_.assign(this,ai)};pi.\u0275prov=p.\u0275\u0275defineInjectable({factory:function(){return new pi},token:pi,providedIn:"root"}),pi.decorators=[{type:i.Injectable,args:[{providedIn:"root"}]}],pi.ctorParameters=function(){return[]};var ui=function(){_.assign(this,{INTEGER:"integer",BIG_INTEGER:"big_integer",SHORT:"short",FLOAT:"float",BIG_DECIMAL:"big_decimal",DOUBLE:"double",LONG:"long",BYTE:"byte",STRING:"string",CHARACTER:"character",TEXT:"text",DATE:"date",TIME:"time",TIMESTAMP:"timestamp",DATETIME:"datetime",BOOLEAN:"boolean",LIST:"list",CLOB:"clob",BLOB:"blob"})};ui.\u0275prov=p.\u0275\u0275defineInjectable({factory:function(){return new ui},token:ui,providedIn:"root"}),ui.decorators=[{type:i.Injectable,args:[{providedIn:"root"}]}],ui.ctorParameters=function(){return[]};var di=function(){_.assign(this,{TEXT:"text",NUMBER:"number",TEXTAREA:"textarea",PASSWORD:"password",CHECKBOX:"checkbox",SLIDER:"slider",RICHTEXT:"richtext",CURRENCY:"currency",SWITCH:"switch",SELECT:"select",CHECKBOXSET:"checkboxset",RADIOSET:"radioset",DATE:"date",TIME:"time",TIMESTAMP:"timestamp",UPLOAD:"upload",RATING:"rating",DATETIME:"datetime",AUTOCOMPLETE:"autocomplete",CHIPS:"chips",COLORPICKER:"colorpicker"})};di.\u0275prov=p.\u0275\u0275defineInjectable({factory:function(){return new di},token:di,providedIn:"root"}),di.decorators=[{type:i.Injectable,args:[{providedIn:"root"}]}],di.ctorParameters=function(){return[]};var hi=[],mi=function(){function e(e){var t=this;this.http=e,this.scripts={},hi.forEach((function(e){t.scripts[e.name]={loaded:!1,src:e.src}}))}return e.prototype.load=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t&&t.length?Promise.resolve().then((function(){return e.pathMappings||e.loadPathMappings()})).then((function(){return Promise.all(t.map((function(t){return e.loadScript(t)})))})):Promise.resolve()},e.prototype.loadPathMappings=function(){var e=this,t=(fn.cdnUrl||fn.ngDest)+"path_mapping.json";return this.http.get(t).toPromise().then((function(t){e.pathMappings=t}),(function(){e.pathMappings={}}))},e.prototype.loadScript=function(e){var t=this;return new Promise((function(n,i){if(t.scripts[e]&&t.scripts[e].loaded)n({script:e,loaded:!0});else{t.scripts[e]||(t.scripts[e]={loaded:!1,src:e});var o=document.createElement("script");o.type="text/javascript",o.async=!1;var r=t.scripts[e].src;(r=t.pathMappings[r]||r).startsWith("http")?o.src=r:o.src=(fn.cdnUrl||fn.ngDest)+r,o.readyState?o.onreadystatechange=function(){"loaded"!==o.readyState&&"complete"!==o.readyState||(o.onreadystatechange=null,t.scripts[e].loaded=!0,n({script:e,loaded:!0}))}:o.onload=function(){t.scripts[e].loaded=!0,n({script:e,loaded:!0})},o.onerror=function(t){return n({script:e,loaded:!1,status:"Loaded"})},document.getElementsByTagName("head")[0].appendChild(o)}}))},e}();mi.\u0275prov=p.\u0275\u0275defineInjectable({factory:function(){return new mi(p.\u0275\u0275inject(u.HttpClient))},token:mi,providedIn:"root"}),mi.decorators=[{type:i.Injectable,args:[{providedIn:"root"}]}],mi.ctorParameters=function(){return[{type:o.HttpClient}]};var fi=function(){function e(){this.customPipes=new Map}return e.prototype.setCustomPipe=function(e,t){this.customPipes.set(e,t)},e.prototype.getCustomPipe=function(e){return this.customPipes.get(e)},e.prototype.hasCustomPipe=function(e){return this.customPipes.has(e)},e}();fi.\u0275prov=p.\u0275\u0275defineInjectable({factory:function(){return new fi},token:fi,providedIn:"root"}),fi.decorators=[{type:i.Injectable,args:[{providedIn:"root"}]}];var gi=function(){function e(){this.HISTORY_HANDLER="replace",this.HISTORY_HANDLER_TYPES={push:"pushState",replace:"replaceState"},this.WIDGET_STATE_KEY="ws"}return e.prototype.setHistoryHandler=function(e){Object.keys(this.HISTORY_HANDLER_TYPES).indexOf(e)>-1&&(this.HISTORY_HANDLER=e)},e.prototype.getNestedPath=function(e,t,n){var i=n||t;return e&&(e.prefabName||e.partialName)?(i=(i=i.length>0?i+"."+(e.prefabName||e.partialName):e.prefabName||e.partialName)+"."+e.containerWidget.name,this.getNestedPath(e.containerWidget.viewParent,t,i)):i.split(".").reverse().join(".")},e.prototype.getStateInformation=function(e){var t;if("url"===e.toLowerCase()){if(t=decodeURIComponent(window.location.href).match(/(wm_state=).*?(&|$)/))return t=t[0].replace("wm_state=",""),this.uriToJson(t)}else"localstorage"===e.toLowerCase()?t=localStorage.getItem(window.location.pathname.replace(/\//g,"")+"_wm_state"):"sessionstorage"===e.toLowerCase()&&(t=sessionStorage.getItem(window.location.pathname.replace(/\//g,"")+"_wm_state"));if(t)return JSON.parse(t)},e.prototype.getWidgetState=function(e,t){if(t=t||this.computeMode(e.statehandler)){var n=this.getStateInformation(t);if(n&&e&&e.getAppInstance().activePageName&&("localstorage"===t.toLowerCase()||"sessionstorage"===t.toLowerCase())&&(n=n[e.getAppInstance().activePageName]),_.get(n,this.WIDGET_STATE_KEY)){var i=this.getNestedPath(e.viewParent,e.getWidget().name);return n[this.WIDGET_STATE_KEY][i]}}},e.prototype.computeMode=function(e){return e?e&&"none"===e.toLowerCase()?void 0:e.toLowerCase():"url"},e.prototype.setWidgetState=function(e,t,n){var i=this.getNestedPath(e.viewParent,e.getWidget().name);(n=n||this.computeMode(e.statehandler))&&this.setStateParams(this.WIDGET_STATE_KEY,i,t,n,e)},e.prototype.removeWidgetState=function(e,t,n){if(n=n||this.computeMode(e.statehandler)){var i=this.getNestedPath(e.viewParent,e.getWidget().name);this.removeStateParam(this.WIDGET_STATE_KEY,i,t,n,e)}},e.prototype.setStateVariable=function(e,t,n){(n=n||this.computeMode(n))&&this.setStateParams("",e,t,n)},e.prototype.getStateVariable=function(e,t){if(t=t||this.computeMode(t)){var n=this.getStateInformation(t);return n?n[e]:void 0}},e.prototype.removeStateVariable=function(e,t){(t=t||this.computeMode(t))&&this.removeStateParam("",e,null,t)},e.prototype.setStateParams=function(e,t,n,i,o){var r,a,s,l,c,p=this.getStateInformation(i);c=o&&p&&o.getAppInstance().activePageName&&("localstorage"===i.toLowerCase()||"sessionstorage"===i.toLowerCase())?p[o.getAppInstance().activePageName]:_.clone(p),e?(c&&!c[e]?c[e]={}:c||((r={})[e]={},c=r),_.isObject(n)&&!_.isArray(n)?(c[e][t]=c[e][t]||{},_.merge(c[e][t],n)):c[e][t]=n):(c&&!c[t]?c[t]={}:c||((a={})[t]={},c=a),_.isObject(n)&&!_.isArray(n)?(c[t]=c[t]||{},_.merge(c[t],n)):c[t]=n),o&&o.getAppInstance().activePageName&&("localstorage"===i.toLowerCase()||"sessionstorage"===i.toLowerCase())&&(p?(p[o.getAppInstance().activePageName]=c,c=p):((s={})[o.getAppInstance().activePageName]=c,c=s));var u=decodeURIComponent(window.location.href);u.indexOf("?")<0?u+="?wm_state=":u.indexOf("wm_state")<0&&(u+="&wm_state="),l=u.replace(/(wm_state=).*?(&|$)/,"$1"+this.jsonToUri(c)+"$2"),"localstorage"!==i.toLowerCase()?"sessionstorage"!==i.toLowerCase()?decodeURIComponent(window.location.href)!==decodeURIComponent(l)&&("push"===this.HISTORY_HANDLER?window.history.pushState({path:l},"",l):"replace"===this.HISTORY_HANDLER&&window.history.replaceState({path:l},"",l)):sessionStorage.setItem(window.location.pathname.replace(/\//g,"")+"_wm_state",JSON.stringify(c)):localStorage.setItem(window.location.pathname.replace(/\//g,"")+"_wm_state",JSON.stringify(c))},e.prototype.removeStateParam=function(e,t,n,i,o){var r,a,s="",l=this.getStateInformation(i);if(a=o&&l&&o.getAppInstance().activePageName&&("localstorage"===i.toLowerCase()||"sessionstorage"===i.toLowerCase())?l[o.getAppInstance().activePageName]:_.clone(l),_.get(a,[e])||_.get(a,t))if(_.get(a,e+"."+t)?(n?delete a[e][t][n]:delete a[e][t],_.isEmpty(a[e][t])&&delete a[e][t],_.isEmpty(a[e])&&delete a[e]):!e&&_.get(a,t)&&delete a[t],o&&o.getAppInstance().activePageName&&("localstorage"===i.toLowerCase()||"sessionstorage"===i.toLowerCase())&&(l?(l[o.getAppInstance().activePageName]=a,a=l):((r={})[o.getAppInstance().activePageName]=a,a=r)),"localstorage"!==i.toLowerCase())if("sessionstorage"!==i.toLowerCase()){var c=decodeURIComponent(window.location.href);_.isEmpty(a)?(s=c.replace(/(wm_state=).*?(&|$)/,"$2"),_.includes(["&","?"],s.charAt(s.length-1))&&(s=s.replace(s.charAt(s.length-1),""))):s=c.replace(/(wm_state=).*?(&|$)/,"$1"+this.jsonToUri(a)+"$2"),window.history.replaceState({path:s},"",s)}else sessionStorage.setItem(window.location.pathname.replace(/\//g,"")+"_wm_state",JSON.stringify(a));else localStorage.setItem(window.location.pathname.replace(/\//g,"")+"_wm_state",JSON.stringify(a))},e.prototype.jsonToUri=function(e){return encodeURIComponent(JSON.stringify(e).replace(/[()'~_!*]/g,(function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})).replace(/\{/g,"(").replace(/\}/g,")").replace(/"/g,"'").replace(/\:/g,"~").replace(/,/g,"_").replace(/\[/g,"!").replace(/\]/g,"*"))},e.prototype.uriToJson=function(e){var t;try{t=JSON.parse(decodeURIComponent(e).replace(/\(/g,"{").replace(/\)/g,"}").replace(/'/g,'"').replace(/~/g,":").replace(/_/g,",").replace(/\!/g,"[").replace(/\*/g,"]"))}catch(e){console.warn(e)}return t},e}();gi.\u0275prov=p.\u0275\u0275defineInjectable({factory:function(){return new gi},token:gi,providedIn:"root"}),gi.decorators=[{type:i.Injectable,args:[{providedIn:"root"}]}];var vi=function(){function e(){}return e.prototype.updateFieldsOnPagination=function(e,t){var n,i="wm-table"===e.widgetType?e.gridData:e.fieldDefs;"wm-table"===e.widgetType&&e.gridOptions.isNavTypeScrollOrOndemand()&&-1!==e.gridOptions.deletedRowIndex&&(i.splice(e.gridOptions.deletedRowIndex,1),e.gridOptions.setDeletedRowIndex(-1)),"wm-table"!==e.widgetType||!e.gridOptions.isNavTypeScrollOrOndemand()||e.gridOptions.lastActionPerformed!==e.gridOptions.ACTIONS.SEARCH_OR_SORT&&e.gridOptions.lastActionPerformed!==e.gridOptions.ACTIONS.FILTER_CRITERIA&&e.gridOptions.lastActionPerformed!==e.gridOptions.ACTIONS.DATASET_UPDATE||(i=[],e.gridOptions.setCurrentPage(1)),n="wm-table"===e.widgetType&&e.gridOptions.showviewlessbutton&&"viewless"===e.gridOptions.mode?e.gridOptions.getCurrentPage():e.currentPage;var o=e.dataNavigator,r=e.pagesize;if(!Ye(i)||o.isFirstPage())i=[],n=1;else if(i.length/r<=o.pageCount){var a=void 0,s=[];if(i.length===n*r&&n+1===o.dn.currentPage)s=t,n++;else if(i.length<n*r){i.length===(n-1)*r&&n-1===o.dn.currentPage?t=[]:o.dataSize<n*r?a=o.dataSize-i.length:(a=n*r-i.length,n++);var l=t.length-a;s=t.slice(l)}else i.length===n*r&&n===o.dn.currentPage&&(s=[]);t=s}return[i="wm-table"!==e.widgetType||e.gridOptions.lastActionPerformed!==e.gridOptions.ACTIONS.DELETE&&e.gridOptions.lastActionPerformed!==e.gridOptions.ACTIONS.EDIT?D(D([],I(i)),I(t)):this.getUniqueRecordsInFieldDef(i,t),n]},e.prototype.getUniqueRecordsInFieldDef=function(e,t){var n=!1;return e.length?t.forEach((function(t){n=!1,e.forEach((function(e){_.isEqual(t,e)&&(n=!0)})),!1===n&&e.push(t)})):e=t,e},e.prototype.bindScrollEvt=function(e,t,n){var i,o,r=this,a=e.dataNavigator,s=e.$element.find(t),l=s.children().first(),c=this,p=0;l.length&&((o=(i=l.scrollParent(!1))[0]===document?document.body:i[0]).scrollHeight>o.clientHeight?(i.each((function(e,t){p=t===document?t.body.scrollTop||$(window).scrollTop():t.scrollTop})).off("scroll.scroll_evt").on("scroll.scroll_evt",(function(t){var i,o,r,s=t.target;s=s===document?s.scrollingElement||document.body:s,"wm-table"===e.widgetType&&e.gridOptions.isNavTypeScrollOrOndemand()&&t.stopPropagation(),i=s.clientHeight,o=s.scrollHeight,r=s===document.body?$(window).scrollTop():s.scrollTop,p<r&&.9*o<r+i&&($(this).off("scroll.scroll_evt"),c.debouncedFetchNextDatasetOnScroll(a,n,e)()),p=r})),s.off("wheel.scroll_evt")):s.on("wheel.scroll_evt",(function(t){"wm-table"===e.widgetType&&e.gridOptions.isNavTypeScrollOrOndemand()&&t.stopPropagation(),t.originalEvent.deltaY>0&&(s.off("wheel.scroll_evt"),r.debouncedFetchNextDatasetOnScroll(a,n,e)())})))},e.prototype.debouncedFetchNextDatasetOnScroll=function(e,t,n){var i=this;return _.debounce((function(){return i.fetchNextDatasetOnScroll(e,n)}),t)},e.prototype.fetchNextDatasetOnScroll=function(e,t){t.variableInflight||("wm-table"===t.widgetType&&(t.gridOptions.setIsNextPageData(!0),t.gridOptions.setIsDataUpdatedByUser(!1)),e.navigatePage("next"))},e.prototype.bindIScrollEvt=function(e,t){var n=this,i=e.$element,o=e.dataNavigator,r=e.app,a=i.closest('[wmsmoothscroll="true"]');if(_.get(a[0],"iscroll"))this.setIscrollHandlers(a[0],o,t);else{var s=r.subscribe("iscroll-update",(function(e){!_.isEmpty(e)&&e.isSameNode(a[0])&&(n.setIscrollHandlers(a[0],o,t),s())}));r.notify("no-iscroll",a[0])}},e.prototype.setIscrollHandlers=function(e,t,n){var i=this,o=0,r=_.get(e.iscroll,"wrapper"),a=e.iscroll;e.iscroll.on("scrollEnd",(function(){var s=r.clientHeight,l=r.scrollHeight,c=Math.abs(e.iscroll.y);o<c&&.9*l<c+s&&(i.debouncedFetchNextDatasetOnScroll(t,n,parent)(),a.indicatorRefresh&&a.indicatorRefresh()),o=c}))},e}();vi.\u0275prov=p.\u0275\u0275defineInjectable({factory:function(){return new vi},token:vi,providedIn:"root"}),vi.decorators=[{type:i.Injectable,args:[{providedIn:"root"}]}];var yi=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[]}},e}();yi.decorators=[{type:i.NgModule,args:[{declarations:[],imports:[o.HttpClientModule],providers:[],bootstrap:[]}]}];var bi=function(){function e(e,t,n){var i=this;void 0===e&&(e=100),void 0===t&&(t=60),this.maxSize=e,this.maxAge=t,this.onEvict=n,this.cache=new Map,this.evictQueue=[""],this.evictQueue.shift(),this.maxAge>0&&(this.maxAge<=30&&console.warn("Cache age "+this.maxAge+"s is very less. Keep it atleast 30s."),this.maxAge=1e3*this.maxAge,setInterval((function(){var e=Date.now()-i.maxAge,t=i.evictQueue.filter((function(t){return i.cache.get(t).lastAccessedTime<=e}));i.evict(t.length)}),this.maxAge))}return e.prototype.addToEvictQueue=function(e){var t=this.evictQueue.findIndex((function(t){return t===e}));t>=0&&this.evictQueue.splice(t,1),this.evictQueue.push(e)},e.prototype.evict=function(e){void 0===e&&(e=1);for(var t=0;t<e;t++)this.delete(this.evictQueue[0])},e.prototype.keys=function(){return this.cache.keys()},e.prototype.set=function(e,t){if(!_.isNil(t)){var n={instance:t,lastAccessedTime:Date.now()};this.cache.set(e,n),this.addToEvictQueue(e),this.evict(this.evictQueue.length-this.maxSize)}},e.prototype.get=function(e){var t=this.cache.get(e);return t?(t.lastAccessedTime=Date.now(),this.addToEvictQueue(e),t.instance):null},e.prototype.delete=function(e){if(e&&this.cache.has(e)){var t=this.cache.get(e);this.cache.delete(e),this.onEvict&&this.onEvict(e,t.instance);var n=this.evictQueue.findIndex((function(t){return t===e}));n>=0&&this.evictQueue.splice(n,1)}},e.prototype.has=function(e){return this.cache.has(e)},e.prototype.size=function(){return this.evictQueue.length},e.prototype.clear=function(){this.evict(this.evictQueue.length)},e}();e.$appDigest=Ce,e.$invokeWatchers=function(e,t){if(e)Se(t);else{if(fe)return void(fe=!1);Ae()}},e.$parseEvent=oe,e.$parseExpr=ne,e.$unwatch=Pe,e.$watch=we,e.AbstractDialogService=ke,e.AbstractHttpService=Me,e.AbstractI18nService=Le,e.AbstractNavigationService=Ge,e.AbstractSpinnerService=je,e.AbstractToasterService=Fe,e.App=xe,e.AppConstants=En,e.AppDefaults=Ve,e.CURRENCY_INFO={USD:{symbol:"$",name:"US Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"USD",name_plural:"US dollars"},CAD:{symbol:"CA$",name:"Canadian Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"CAD",name_plural:"Canadian dollars"},EUR:{symbol:"\u20ac",name:"Euro",symbol_native:"\u20ac",decimal_digits:2,rounding:0,code:"EUR",name_plural:"euros"},AED:{symbol:"AED",name:"United Arab Emirates Dirham",symbol_native:"\u062f.\u0625.\u200f",decimal_digits:2,rounding:0,code:"AED",name_plural:"UAE dirhams"},AFN:{symbol:"Af",name:"Afghan Afghani",symbol_native:"\u060b",decimal_digits:0,rounding:0,code:"AFN",name_plural:"Afghan Afghanis"},ALL:{symbol:"ALL",name:"Albanian Lek",symbol_native:"Lek",decimal_digits:0,rounding:0,code:"ALL",name_plural:"Albanian lek\xeb"},AMD:{symbol:"AMD",name:"Armenian Dram",symbol_native:"\u0564\u0580.",decimal_digits:0,rounding:0,code:"AMD",name_plural:"Armenian drams"},ARS:{symbol:"AR$",name:"Argentine Peso",symbol_native:"$",decimal_digits:2,rounding:0,code:"ARS",name_plural:"Argentine pesos"},AUD:{symbol:"AU$",name:"Australian Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"AUD",name_plural:"Australian dollars"},AZN:{symbol:"man.",name:"Azerbaijani Manat",symbol_native:"\u043c\u0430\u043d.",decimal_digits:2,rounding:0,code:"AZN",name_plural:"Azerbaijani manats"},BAM:{symbol:"KM",name:"Bosnia-Herzegovina Convertible Mark",symbol_native:"KM",decimal_digits:2,rounding:0,code:"BAM",name_plural:"Bosnia-Herzegovina convertible marks"},BDT:{symbol:"Tk",name:"Bangladeshi Taka",symbol_native:"\u09f3",decimal_digits:2,rounding:0,code:"BDT",name_plural:"Bangladeshi takas"},BGN:{symbol:"BGN",name:"Bulgarian Lev",symbol_native:"\u043b\u0432.",decimal_digits:2,rounding:0,code:"BGN",name_plural:"Bulgarian leva"},BHD:{symbol:"BD",name:"Bahraini Dinar",symbol_native:"\u062f.\u0628.\u200f",decimal_digits:3,rounding:0,code:"BHD",name_plural:"Bahraini dinars"},BIF:{symbol:"FBu",name:"Burundian Franc",symbol_native:"FBu",decimal_digits:0,rounding:0,code:"BIF",name_plural:"Burundian francs"},BND:{symbol:"BN$",name:"Brunei Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"BND",name_plural:"Brunei dollars"},BOB:{symbol:"Bs",name:"Bolivian Boliviano",symbol_native:"Bs",decimal_digits:2,rounding:0,code:"BOB",name_plural:"Bolivian bolivianos"},BRL:{symbol:"R$",name:"Brazilian Real",symbol_native:"R$",decimal_digits:2,rounding:0,code:"BRL",name_plural:"Brazilian reals"},BWP:{symbol:"BWP",name:"Botswanan Pula",symbol_native:"P",decimal_digits:2,rounding:0,code:"BWP",name_plural:"Botswanan pulas"},BYR:{symbol:"BYR",name:"Belarusian Ruble",symbol_native:"BYR",decimal_digits:0,rounding:0,code:"BYR",name_plural:"Belarusian rubles"},BZD:{symbol:"BZ$",name:"Belize Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"BZD",name_plural:"Belize dollars"},CDF:{symbol:"CDF",name:"Congolese Franc",symbol_native:"FrCD",decimal_digits:2,rounding:0,code:"CDF",name_plural:"Congolese francs"},CHF:{symbol:"CHF",name:"Swiss Franc",symbol_native:"CHF",decimal_digits:2,rounding:.05,code:"CHF",name_plural:"Swiss francs"},CLP:{symbol:"CL$",name:"Chilean Peso",symbol_native:"$",decimal_digits:0,rounding:0,code:"CLP",name_plural:"Chilean pesos"},CNY:{symbol:"CN\xa5",name:"Chinese Yuan",symbol_native:"CN\xa5",decimal_digits:2,rounding:0,code:"CNY",name_plural:"Chinese yuan"},COP:{symbol:"CO$",name:"Colombian Peso",symbol_native:"$",decimal_digits:0,rounding:0,code:"COP",name_plural:"Colombian pesos"},CRC:{symbol:"\u20a1",name:"Costa Rican Col\xf3n",symbol_native:"\u20a1",decimal_digits:0,rounding:0,code:"CRC",name_plural:"Costa Rican col\xf3ns"},CVE:{symbol:"CV$",name:"Cape Verdean Escudo",symbol_native:"CV$",decimal_digits:2,rounding:0,code:"CVE",name_plural:"Cape Verdean escudos"},CZK:{symbol:"K\u010d",name:"Czech Republic Koruna",symbol_native:"K\u010d",decimal_digits:2,rounding:0,code:"CZK",name_plural:"Czech Republic korunas"},DJF:{symbol:"Fdj",name:"Djiboutian Franc",symbol_native:"Fdj",decimal_digits:0,rounding:0,code:"DJF",name_plural:"Djiboutian francs"},DKK:{symbol:"Dkr",name:"Danish Krone",symbol_native:"kr",decimal_digits:2,rounding:0,code:"DKK",name_plural:"Danish kroner"},DOP:{symbol:"RD$",name:"Dominican Peso",symbol_native:"RD$",decimal_digits:2,rounding:0,code:"DOP",name_plural:"Dominican pesos"},DZD:{symbol:"DA",name:"Algerian Dinar",symbol_native:"\u062f.\u062c.\u200f",decimal_digits:2,rounding:0,code:"DZD",name_plural:"Algerian dinars"},EEK:{symbol:"Ekr",name:"Estonian Kroon",symbol_native:"kr",decimal_digits:2,rounding:0,code:"EEK",name_plural:"Estonian kroons"},EGP:{symbol:"EGP",name:"Egyptian Pound",symbol_native:"\u062c.\u0645.\u200f",decimal_digits:2,rounding:0,code:"EGP",name_plural:"Egyptian pounds"},ERN:{symbol:"Nfk",name:"Eritrean Nakfa",symbol_native:"Nfk",decimal_digits:2,rounding:0,code:"ERN",name_plural:"Eritrean nakfas"},ETB:{symbol:"Br",name:"Ethiopian Birr",symbol_native:"Br",decimal_digits:2,rounding:0,code:"ETB",name_plural:"Ethiopian birrs"},GBP:{symbol:"\xa3",name:"British Pound Sterling",symbol_native:"\xa3",decimal_digits:2,rounding:0,code:"GBP",name_plural:"British pounds sterling"},GEL:{symbol:"GEL",name:"Georgian Lari",symbol_native:"GEL",decimal_digits:2,rounding:0,code:"GEL",name_plural:"Georgian laris"},GHS:{symbol:"GH\u20b5",name:"Ghanaian Cedi",symbol_native:"GH\u20b5",decimal_digits:2,rounding:0,code:"GHS",name_plural:"Ghanaian cedis"},GNF:{symbol:"FG",name:"Guinean Franc",symbol_native:"FG",decimal_digits:0,rounding:0,code:"GNF",name_plural:"Guinean francs"},GTQ:{symbol:"GTQ",name:"Guatemalan Quetzal",symbol_native:"Q",decimal_digits:2,rounding:0,code:"GTQ",name_plural:"Guatemalan quetzals"},HKD:{symbol:"HK$",name:"Hong Kong Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"HKD",name_plural:"Hong Kong dollars"},HNL:{symbol:"HNL",name:"Honduran Lempira",symbol_native:"L",decimal_digits:2,rounding:0,code:"HNL",name_plural:"Honduran lempiras"},HRK:{symbol:"kn",name:"Croatian Kuna",symbol_native:"kn",decimal_digits:2,rounding:0,code:"HRK",name_plural:"Croatian kunas"},HUF:{symbol:"Ft",name:"Hungarian Forint",symbol_native:"Ft",decimal_digits:0,rounding:0,code:"HUF",name_plural:"Hungarian forints"},IDR:{symbol:"Rp",name:"Indonesian Rupiah",symbol_native:"Rp",decimal_digits:0,rounding:0,code:"IDR",name_plural:"Indonesian rupiahs"},ILS:{symbol:"\u20aa",name:"Israeli New Sheqel",symbol_native:"\u20aa",decimal_digits:2,rounding:0,code:"ILS",name_plural:"Israeli new sheqels"},INR:{symbol:"\u20b9",name:"Indian Rupee",symbol_native:"\u099f\u0995\u09be",decimal_digits:2,rounding:0,code:"INR",name_plural:"Indian rupees"},IQD:{symbol:"IQD",name:"Iraqi Dinar",symbol_native:"\u062f.\u0639.\u200f",decimal_digits:0,rounding:0,code:"IQD",name_plural:"Iraqi dinars"},IRR:{symbol:"IRR",name:"Iranian Rial",symbol_native:"\ufdfc",decimal_digits:0,rounding:0,code:"IRR",name_plural:"Iranian rials"},ISK:{symbol:"Ikr",name:"Icelandic Kr\xf3na",symbol_native:"kr",decimal_digits:0,rounding:0,code:"ISK",name_plural:"Icelandic kr\xf3nur"},JMD:{symbol:"J$",name:"Jamaican Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"JMD",name_plural:"Jamaican dollars"},JOD:{symbol:"JD",name:"Jordanian Dinar",symbol_native:"\u062f.\u0623.\u200f",decimal_digits:3,rounding:0,code:"JOD",name_plural:"Jordanian dinars"},JPY:{symbol:"\xa5",name:"Japanese Yen",symbol_native:"\uffe5",decimal_digits:0,rounding:0,code:"JPY",name_plural:"Japanese yen"},KES:{symbol:"Ksh",name:"Kenyan Shilling",symbol_native:"Ksh",decimal_digits:2,rounding:0,code:"KES",name_plural:"Kenyan shillings"},KHR:{symbol:"KHR",name:"Cambodian Riel",symbol_native:"\u17db",decimal_digits:2,rounding:0,code:"KHR",name_plural:"Cambodian riels"},KMF:{symbol:"CF",name:"Comorian Franc",symbol_native:"FC",decimal_digits:0,rounding:0,code:"KMF",name_plural:"Comorian francs"},KRW:{symbol:"\u20a9",name:"South Korean Won",symbol_native:"\u20a9",decimal_digits:0,rounding:0,code:"KRW",name_plural:"South Korean won"},KWD:{symbol:"KD",name:"Kuwaiti Dinar",symbol_native:"\u062f.\u0643.\u200f",decimal_digits:3,rounding:0,code:"KWD",name_plural:"Kuwaiti dinars"},KZT:{symbol:"KZT",name:"Kazakhstani Tenge",symbol_native:"\u0442\u04a3\u0433.",decimal_digits:2,rounding:0,code:"KZT",name_plural:"Kazakhstani tenges"},LBP:{symbol:"LB\xa3",name:"Lebanese Pound",symbol_native:"\u0644.\u0644.\u200f",decimal_digits:0,rounding:0,code:"LBP",name_plural:"Lebanese pounds"},LKR:{symbol:"SLRs",name:"Sri Lankan Rupee",symbol_native:"SL Re",decimal_digits:2,rounding:0,code:"LKR",name_plural:"Sri Lankan rupees"},LTL:{symbol:"Lt",name:"Lithuanian Litas",symbol_native:"Lt",decimal_digits:2,rounding:0,code:"LTL",name_plural:"Lithuanian litai"},LVL:{symbol:"Ls",name:"Latvian Lats",symbol_native:"Ls",decimal_digits:2,rounding:0,code:"LVL",name_plural:"Latvian lati"},LYD:{symbol:"LD",name:"Libyan Dinar",symbol_native:"\u062f.\u0644.\u200f",decimal_digits:3,rounding:0,code:"LYD",name_plural:"Libyan dinars"},MAD:{symbol:"MAD",name:"Moroccan Dirham",symbol_native:"\u062f.\u0645.\u200f",decimal_digits:2,rounding:0,code:"MAD",name_plural:"Moroccan dirhams"},MDL:{symbol:"MDL",name:"Moldovan Leu",symbol_native:"MDL",decimal_digits:2,rounding:0,code:"MDL",name_plural:"Moldovan lei"},MGA:{symbol:"MGA",name:"Malagasy Ariary",symbol_native:"MGA",decimal_digits:0,rounding:0,code:"MGA",name_plural:"Malagasy Ariaries"},MKD:{symbol:"MKD",name:"Macedonian Denar",symbol_native:"MKD",decimal_digits:2,rounding:0,code:"MKD",name_plural:"Macedonian denari"},MMK:{symbol:"MMK",name:"Myanma Kyat",symbol_native:"K",decimal_digits:0,rounding:0,code:"MMK",name_plural:"Myanma kyats"},MOP:{symbol:"MOP$",name:"Macanese Pataca",symbol_native:"MOP$",decimal_digits:2,rounding:0,code:"MOP",name_plural:"Macanese patacas"},MUR:{symbol:"MURs",name:"Mauritian Rupee",symbol_native:"MURs",decimal_digits:0,rounding:0,code:"MUR",name_plural:"Mauritian rupees"},MXN:{symbol:"MX$",name:"Mexican Peso",symbol_native:"$",decimal_digits:2,rounding:0,code:"MXN",name_plural:"Mexican pesos"},MYR:{symbol:"RM",name:"Malaysian Ringgit",symbol_native:"RM",decimal_digits:2,rounding:0,code:"MYR",name_plural:"Malaysian ringgits"},MZN:{symbol:"MTn",name:"Mozambican Metical",symbol_native:"MTn",decimal_digits:2,rounding:0,code:"MZN",name_plural:"Mozambican meticals"},NAD:{symbol:"N$",name:"Namibian Dollar",symbol_native:"N$",decimal_digits:2,rounding:0,code:"NAD",name_plural:"Namibian dollars"},NGN:{symbol:"\u20a6",name:"Nigerian Naira",symbol_native:"\u20a6",decimal_digits:2,rounding:0,code:"NGN",name_plural:"Nigerian nairas"},NIO:{symbol:"C$",name:"Nicaraguan C\xf3rdoba",symbol_native:"C$",decimal_digits:2,rounding:0,code:"NIO",name_plural:"Nicaraguan c\xf3rdobas"},NOK:{symbol:"Nkr",name:"Norwegian Krone",symbol_native:"kr",decimal_digits:2,rounding:0,code:"NOK",name_plural:"Norwegian kroner"},NPR:{symbol:"NPRs",name:"Nepalese Rupee",symbol_native:"\u0928\u0947\u0930\u0942",decimal_digits:2,rounding:0,code:"NPR",name_plural:"Nepalese rupees"},NZD:{symbol:"NZ$",name:"New Zealand Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"NZD",name_plural:"New Zealand dollars"},OMR:{symbol:"OMR",name:"Omani Rial",symbol_native:"\u0631.\u0639.\u200f",decimal_digits:3,rounding:0,code:"OMR",name_plural:"Omani rials"},PAB:{symbol:"B/.",name:"Panamanian Balboa",symbol_native:"B/.",decimal_digits:2,rounding:0,code:"PAB",name_plural:"Panamanian balboas"},PEN:{symbol:"S/.",name:"Peruvian Nuevo Sol",symbol_native:"S/.",decimal_digits:2,rounding:0,code:"PEN",name_plural:"Peruvian nuevos soles"},PHP:{symbol:"\u20b1",name:"Philippine Peso",symbol_native:"\u20b1",decimal_digits:2,rounding:0,code:"PHP",name_plural:"Philippine pesos"},PKR:{symbol:"PKRs",name:"Pakistani Rupee",symbol_native:"\u20a8",decimal_digits:0,rounding:0,code:"PKR",name_plural:"Pakistani rupees"},PLN:{symbol:"z\u0142",name:"Polish Zloty",symbol_native:"z\u0142",decimal_digits:2,rounding:0,code:"PLN",name_plural:"Polish zlotys"},PYG:{symbol:"\u20b2",name:"Paraguayan Guarani",symbol_native:"\u20b2",decimal_digits:0,rounding:0,code:"PYG",name_plural:"Paraguayan guaranis"},QAR:{symbol:"QR",name:"Qatari Rial",symbol_native:"\u0631.\u0642.\u200f",decimal_digits:2,rounding:0,code:"QAR",name_plural:"Qatari rials"},RON:{symbol:"RON",name:"Romanian Leu",symbol_native:"RON",decimal_digits:2,rounding:0,code:"RON",name_plural:"Romanian lei"},RSD:{symbol:"din.",name:"Serbian Dinar",symbol_native:"\u0434\u0438\u043d.",decimal_digits:0,rounding:0,code:"RSD",name_plural:"Serbian dinars"},RUB:{symbol:"RUB",name:"Russian Ruble",symbol_native:"\u0440\u0443\u0431.",decimal_digits:2,rounding:0,code:"RUB",name_plural:"Russian rubles"},RWF:{symbol:"RWF",name:"Rwandan Franc",symbol_native:"FR",decimal_digits:0,rounding:0,code:"RWF",name_plural:"Rwandan francs"},SAR:{symbol:"SR",name:"Saudi Riyal",symbol_native:"\u0631.\u0633.\u200f",decimal_digits:2,rounding:0,code:"SAR",name_plural:"Saudi riyals"},SDG:{symbol:"SDG",name:"Sudanese Pound",symbol_native:"SDG",decimal_digits:2,rounding:0,code:"SDG",name_plural:"Sudanese pounds"},SEK:{symbol:"Skr",name:"Swedish Krona",symbol_native:"kr",decimal_digits:2,rounding:0,code:"SEK",name_plural:"Swedish kronor"},SGD:{symbol:"S$",name:"Singapore Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"SGD",name_plural:"Singapore dollars"},SOS:{symbol:"Ssh",name:"Somali Shilling",symbol_native:"Ssh",decimal_digits:0,rounding:0,code:"SOS",name_plural:"Somali shillings"},SYP:{symbol:"SY\xa3",name:"Syrian Pound",symbol_native:"\u0644.\u0633.\u200f",decimal_digits:0,rounding:0,code:"SYP",name_plural:"Syrian pounds"},THB:{symbol:"\u0e3f",name:"Thai Baht",symbol_native:"\u0e3f",decimal_digits:2,rounding:0,code:"THB",name_plural:"Thai baht"},TND:{symbol:"DT",name:"Tunisian Dinar",symbol_native:"\u062f.\u062a.\u200f",decimal_digits:3,rounding:0,code:"TND",name_plural:"Tunisian dinars"},TOP:{symbol:"T$",name:"Tongan Pa\u02bbanga",symbol_native:"T$",decimal_digits:2,rounding:0,code:"TOP",name_plural:"Tongan pa\u02bbanga"},TRY:{symbol:"TL",name:"Turkish Lira",symbol_native:"TL",decimal_digits:2,rounding:0,code:"TRY",name_plural:"Turkish Lira"},TTD:{symbol:"TT$",name:"Trinidad and Tobago Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"TTD",name_plural:"Trinidad and Tobago dollars"},TWD:{symbol:"NT$",name:"New Taiwan Dollar",symbol_native:"NT$",decimal_digits:2,rounding:0,code:"TWD",name_plural:"New Taiwan dollars"},TZS:{symbol:"TSh",name:"Tanzanian Shilling",symbol_native:"TSh",decimal_digits:0,rounding:0,code:"TZS",name_plural:"Tanzanian shillings"},UAH:{symbol:"\u20b4",name:"Ukrainian Hryvnia",symbol_native:"\u20b4",decimal_digits:2,rounding:0,code:"UAH",name_plural:"Ukrainian hryvnias"},UGX:{symbol:"USh",name:"Ugandan Shilling",symbol_native:"USh",decimal_digits:0,rounding:0,code:"UGX",name_plural:"Ugandan shillings"},UYU:{symbol:"$U",name:"Uruguayan Peso",symbol_native:"$",decimal_digits:2,rounding:0,code:"UYU",name_plural:"Uruguayan pesos"},UZS:{symbol:"UZS",name:"Uzbekistan Som",symbol_native:"UZS",decimal_digits:0,rounding:0,code:"UZS",name_plural:"Uzbekistan som"},VEF:{symbol:"Bs.F.",name:"Venezuelan Bol\xedvar",symbol_native:"Bs.F.",decimal_digits:2,rounding:0,code:"VEF",name_plural:"Venezuelan bol\xedvars"},VND:{symbol:"\u20ab",name:"Vietnamese Dong",symbol_native:"\u20ab",decimal_digits:0,rounding:0,code:"VND",name_plural:"Vietnamese dong"},XAF:{symbol:"FCFA",name:"CFA Franc BEAC",symbol_native:"FCFA",decimal_digits:0,rounding:0,code:"XAF",name_plural:"CFA francs BEAC"},XOF:{symbol:"CFA",name:"CFA Franc BCEAO",symbol_native:"CFA",decimal_digits:0,rounding:0,code:"XOF",name_plural:"CFA francs BCEAO"},YER:{symbol:"YR",name:"Yemeni Rial",symbol_native:"\u0631.\u064a.\u200f",decimal_digits:0,rounding:0,code:"YER",name_plural:"Yemeni rials"},ZAR:{symbol:"R",name:"South African Rand",symbol_native:"R",decimal_digits:2,rounding:0,code:"ZAR",name_plural:"South African rand"},ZMK:{symbol:"ZK",name:"Zambian Kwacha",symbol_native:"ZK",decimal_digits:0,rounding:0,code:"ZMK",name_plural:"Zambian kwachas"}},e.ConstantService=ci,e.CoreModule=yi,e.CustomPipeManager=fi,e.DataSource=Ne,e.DynamicComponentRefProvider=$e,e.EventNotifier=si,e.FIRST_TIME_WATCH=de,e.FieldTypeService=ui,e.FieldWidgetService=di,e.IDGenerator=F,e.IDataSource=De,e.LRUCache=bi,e.PaginationService=vi,e.PartialRefProvider=Ue,e.ScriptLoaderService=mi,e.ScriptStore=hi,e.StatePersistence=gi,e.UserDefinedExecutionContext=Be,e.UtilsService=pi,e.VALIDATOR=ti,e.Viewport=li,e._WM_APP_PROJECT=fn,e.addClass=S,e.addEventListenerOnElement=Dt,e.addForIdAttributes=Wn,e.adjustContainerPosition=qn,e.adjustContainerRightEdges=zn,e.appendNode=function(e,t,n){var i=function(){return t.appendChild(e)};n?i():P(i)},e.appendScriptToHead=ii,e.checkIsCustomPipeExpression=g,e.closePopover=Kn,e.convertToBlob=On,e.createCSSRule=Dn,e.createElement=function(e,t,n){var i=document.createElement(e);return t&&Object.keys(t).forEach((function(e){T(i,e,t[e],n)})),i},e.deHyphenate=vt,e.debounce=ve,e.defer=Mn,e.detectChanges=Qn,e.encodeUrl=pt,e.encodeUrlParams=ut,e.executePromiseChain=Ln,e.extendProto=Gn,e.extractCurrentItemExpr=Zn,e.extractType=$t,e.fetchContent=Rn,e.findRootContainer=ei,e.findValueOf=Vt,e.generateGUId=Ft,e.getAbortableDefer=In,e.getAndroidVersion=lt,e.getAppSetting=oi,e.getBlob=en,e.getClonedObject=Nt,e.getDatasourceFromExpr=Jn,e.getDateObj=It,e.getDisplayDateTimeFormat=Un,e.getEvaluatedExprValue=Pt,e.getFiles=xt,e.getFnByExpr=ae,e.getFnForBindExpr=le,e.getFnForEventExpr=ce,e.getFormWidgetTemplate=function(t,n,i,o){var r;void 0===o&&(o={});var a=i.get("updateon"),s=a?'updateon="'+a+'"':"";switch(t){case e.FormWidgetType.AUTOCOMPLETE:case e.FormWidgetType.TYPEAHEAD:r='<div wmSearch type="autocomplete" debouncetime="'+i.get("debouncetime")+'" '+n+"></div>";break;case e.FormWidgetType.CHECKBOX:r="<div wmCheckbox "+n+" "+("true"===i.get("required")?"required=true":"")+"></div>";break;case e.FormWidgetType.CHECKBOXSET:r='<ul role="group" wmCheckboxset '+n+" "+("true"===i.get("required")?"required=true":"")+"></ul>";break;case e.FormWidgetType.CHIPS:r='<ul wmChips role="input" debouncetime="'+i.get("debouncetime")+'" '+n+"></ul>";break;case e.FormWidgetType.COLORPICKER:r="<div wmColorPicker "+("true"===i.get("required")?"required=true":"")+" "+n+"></div>";break;case e.FormWidgetType.CURRENCY:r="<div wmCurrency "+("true"===i.get("required")?"required=true":"")+" "+s+" "+n+"></div>";break;case e.FormWidgetType.DATE:r="<div wmDate "+("true"===i.get("required")?"required=true":"")+' dataentrymode="'+i.get("dataentrymode")+'" '+n+"></div>";break;case e.FormWidgetType.DATETIME:r="<div wmDateTime "+("true"===i.get("required")?"required=true":"")+' dataentrymode="'+i.get("dataentrymode")+'" '+n+"></div>";break;case e.FormWidgetType.NUMBER:r="<div wmNumber "+n+" "+("true"===i.get("required")?"required=true":"")+' type="number" aria-label="Only numbers" '+s+"></div>";break;case e.FormWidgetType.PASSWORD:r="<wm-input "+n+" "+("true"===i.get("required")?"required=true":"")+' type="password" aria-label="Enter password" '+s+"></wm-input>";break;case e.FormWidgetType.RADIOSET:r='<ul role="radiogroup" wmRadioset '+n+"></ul>";break;case e.FormWidgetType.RATING:r="<div wmRating "+n+"></div>";break;case e.FormWidgetType.RICHTEXT:r='<div wmRichTextEditor role="textbox" '+n+"></div>";break;case e.FormWidgetType.SELECT:r="<wm-select "+("true"===i.get("required")?"required=true":"")+" "+n+"></wm-select>";break;case e.FormWidgetType.TOGGLE:r="<div wmCheckbox "+n+" "+("true"===i.get("required")?"required=true":"")+' type="toggle" role="checkbox" aria-label="Toggle button"></div>';break;case e.FormWidgetType.SLIDER:r="<div wmSlider "+n+"></div>";break;case e.FormWidgetType.SWITCH:r="<div wmSwitch "+n+"></div>";break;case e.FormWidgetType.TEXT:var l=o.inputType||"inputtype";r="<wm-input "+n+" "+("true"===i.get("required")?"required=true":"")+' type="'+(i.get(l)||"text")+'" '+s+"></wm-input>";break;case e.FormWidgetType.TEXTAREA:r="<wm-textarea "+n+" "+("true"===i.get("required")?"required=true":"")+' role="textbox" '+s+"></wm-textarea>";break;case e.FormWidgetType.TIME:r="<div wmTime "+("true"===i.get("required")?"required=true":"")+' dataentrymode="'+i.get("dataentrymode")+'" '+n+"></div>";break;case e.FormWidgetType.TIMESTAMP:r="<div wmDateTime "+("true"===i.get("required")?"required=true":"")+' dataentrymode="'+i.get("dataentrymode")+'" '+n+' role="input"></div>';break;case e.FormWidgetType.UPLOAD:var c=o.counter,p=o.pCounter,u=o.uploadProps,h=d(i,c,u&&u.name);r=u?'<form name="'+u.formName+'" '+n+'>\n <input focus-target class="file-upload" type="file" name="'+u.name+'" '+h+"/>\n </form>":'<a class="form-control-static" href="{{'+c+'.href}}" target="_blank" *ngIf="'+c+".filetype === 'image' && "+c+'.href">\n <img style="height:2em" class="wi wi-file" [src]="'+c+'.href"/></a>\n <a class="form-control-static" target="_blank" href="{{'+c+'.href}}" *ngIf="'+c+".filetype !== 'image' && "+c+'.href">\n <i class="wi wi-file"></i></a>\n <input '+n+' class="app-blob-upload" [ngClass]="{\'file-readonly\': '+c+'.readonly}" '+h+'\n [required]="'+c+'.required" type="file" name="'+(i.get("key")||i.get("name"))+'_formWidget" [readonly]="'+c+'.readonly"\n [class.hidden]="!'+p+'.isUpdateMode" [accept]="'+c+'.permitted">';break;default:r="<wm-input "+n+" "+("true"===i.get("required")?"required=true":"")+' type="text" '+s+"></wm-input>"}return r},e.getFormattedDate=At,e.getMomentLocaleObject=dn,e.getNativeDateObject=Zt,e.getNgModelAttr=function(e){return e.has("formControlName")||e.has("formControlName.bind")?"":"ngModel"},e.getRequiredFormWidget=function(t){switch(t){case e.FormWidgetType.AUTOCOMPLETE:case e.FormWidgetType.TYPEAHEAD:return"wm-search";case e.FormWidgetType.CHIPS:return"wm-chips";case e.FormWidgetType.COLORPICKER:return"wm-colorpicker";case e.FormWidgetType.CURRENCY:return"wm-currency";case e.FormWidgetType.DATE:return"wm-date";case e.FormWidgetType.DATETIME:return"wm-datetime";case e.FormWidgetType.TIME:case e.FormWidgetType.TIMESTAMP:return"wm-time";case e.FormWidgetType.RATING:return"wm-rating";case e.FormWidgetType.RICHTEXT:return"wm-richtexteditor";case e.FormWidgetType.SLIDER:return"wm-slider";default:return"wm-text"}},e.getResourceURL=Tt,e.getRouteNameFromLink=xn,e.getRowActionAttrs=function(e){var t="";return e.forEach((function(e,n){var i=y.get(n);i&&(t+=i+'="'+e+'" ')})),t},e.getSessionStorageItem=vn,e.getUrlParams=Nn,e.getValidDateObject=Jt,e.getValidJSON=Bt,e.getWebkitTraslationMatrix=Yn,e.getWmProjectProperties=x,e.hasCordova=Sn,e.hasOffsetStr=Ct,e.initCaps=dt,e.insertAfter=function(e,t,n){var i=function(){return t.parentNode.insertBefore(e,t.nextSibling)};n?i():P(i)},e.insertBefore=function(e,t,n){var i=function(){return t.parentNode.insertBefore(e,t)};n?i():P(i)},e.isAndroid=Je,e.isAndroidTablet=Ze,e.isAppleProduct=kn,e.isArray=bn,e.isAudioFile=Ot,e.isBoolean=_n,e.isChangeFromWatch=function(){return _e},e.isDataSourceEqual=Fn,e.isDateTimeType=Kt,e.isDefined=Ye,e.isElementInViewport=zt,e.isEmptyObject=Wt,e.isEqualWithFields=tn,e.isFirstTimeChange=function(e){return e===de},e.isIE=Xe,e.isImageFile=_t,e.isInsecureContentRequest=bt,e.isIos=it,e.isIpad=nt,e.isIphone=et,e.isIpod=tt,e.isKitkatDevice=ct,e.isLargeTabletLandscape=ot,e.isLargeTabletPortrait=rt,e.isMobile=at,e.isMobileApp=st,e.isNumber=Pn,e.isNumberType=Ut,e.isObject=Ke,e.isPageable=Ht,e.isString=wn,e.isValidWebURL=Et,e.isVideoFile=St,e.loadScript=hn,e.loadScripts=mn,e.loadStyleSheet=ln,e.loadStyleSheets=cn,e.muteWatchers=function(){ge=!0},e.noop=yn,e.openLink=Tn,e.periodSeparate=ft,e.prettifyLabel=gt,e.prettifyLabels=yt,e.processFilterExpBindNode=Bn,e.registerFnByExpr=function(e,t,n){t.usedPipes=n||[],re.set(e,t)},e.removeAttr=function(e,t,n){var i=function(){return e.removeAttribute(t)};n?i():P(i)},e.removeClass=O,e.removeExtraSlashes=Vn,e.removeNode=function(e,t){var n=function(){return e.remove()};t?n():P(n)},e.replace=Yt,e.replaceAt=mt,e.resetChangeFromWatch=Ee,e.retryIfFails=Cn,e.scrollToElement=qt,e.setAppRef=function(e){he=e},e.setAttr=T,e.setCSS=E,e.setCSSFromObj=function(e,t,n){Object.keys(t||{}).forEach((function(i){return E(e,i,t[i],n)}))},e.setHtml=function(e,t,n){var i=function(){return e.innerHTML=t};n?i():P(i)},e.setListClass=ri,e.setNgZone=function(e){return me=e},e.setPipeProvider=function(e){M=e},e.setProperty=function(e,t,n,i){var o=function(){return e[t]=n};i?o():P(o)},e.setSessionStorageItem=gn,e.setTranslation3dPosition=Hn,e.setWmProjectProperties=function(e){Object.setPrototypeOf(N,e)},e.spaceSeparate=ht,e.stringStartsWith=wt,e.switchClass=function(e,t,n,i){void 0===t&&(t=""),void 0===n&&(n=""),O(e,n,i),S(e,t,i)},e.toBoolean=Qe,e.toDimension=function(e){return e==+e?e+"px":e},e.toPromise=An,e.toggleClass=function(e,t,n,i){n?S(e,t,i):O(e,t,i)},e.transformFileURI=ni,e.triggerFn=Rt,e.triggerItemAction=Xn,e.unMuteWatchers=function(){ge=!1,Se()},e.updateTemplateAttrs=v,e.validateAccessRoles=jt,e.validateDataSourceCtx=jn,e.xmlToJson=Gt,e["\u02750"]=h,e["\u02751"]=f,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define("@wm/swipey",["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).swipey={})}(this,(function(e){"use strict";var t=function(){function e(){this._isGesturesEnabled=!0}return e.prototype.bindEvents=function(){return window.PointerEvent?["pointer"]:["touch"]},e.prototype.bounds=function(e,t){return{}},e.prototype.context=function(){return{}},e.prototype.direction=function(){return $.fn.swipey.DIRECTIONS.HORIZONTAL},e.prototype.setGesturesEnabled=function(e){this._isGesturesEnabled=e},e.prototype.isGesturesEnabled=function(){return this._isGesturesEnabled},e.prototype.goToLower=function(e){this._$ele.swipeAnimation("gotoLower",e)},e.prototype.goToUpper=function(e){this._$ele.swipeAnimation("gotoUpper",e)},e.prototype.onAnimation=function(e,t){},e.prototype.onUpper=function(e){},e.prototype.onLower=function(e){},e.prototype.threshold=function(){return 30},e.prototype.init=function(e,t){this._$ele=e,e.swipeAnimation({animation:this.animation(),target:t,bounds:this.bounds.bind(this),bindEvents:this.bindEvents(),context:this.context.bind(this),direction:this.direction(),enableGestures:this.isGesturesEnabled.bind(this),onAnimation:this.onAnimation.bind(this),onLower:this.onLower.bind(this),onUpper:this.onUpper.bind(this),threshold:this.threshold(),disableMouse:!0})},e}();e.SwipeAnimation=t,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/compiler"),require("@wm/core")):"function"==typeof define&&define.amd?define("@wm/transpiler",["exports","@angular/compiler","@wm/core"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.transpiler={}),e.ng.compiler,e.wm.core)}(this,(function(e,t,n){"use strict";
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/compiler"),require("rxjs"),require("@angular/core"),require("@angular/common/http")):"function"==typeof define&&define.amd?define("@wm/core",["exports","@angular/compiler","rxjs","@angular/core","@angular/common/http"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.core={}),e.ng.compiler,e.rxjs,e.ng.core,e.ng.common.http)}(this,(function(e,t,n,i,o){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a,s,l,c,p=r(i),u=r(o);e.FormWidgetType=void 0,(a=e.FormWidgetType||(e.FormWidgetType={})).AUTOCOMPLETE="autocomplete",a.CHECKBOX="checkbox",a.CHECKBOXSET="checkboxset",a.CHIPS="chips",a.COLORPICKER="colorpicker",a.CURRENCY="currency",a.DATE="date",a.DATETIME="datetime",a.NUMBER="number",a.PASSWORD="password",a.RADIOSET="radioset",a.RATING="rating",a.RICHTEXT="richtext",a.SELECT="select",a.TOGGLE="toggle",a.SLIDER="slider",a.SWITCH="switch",a.TEXT="text",a.TEXTAREA="textarea",a.TIME="time",a.TIMESTAMP="timestamp",a.TYPEAHEAD="typeahead",a.UPLOAD="upload",e.DataType=void 0,(s=e.DataType||(e.DataType={})).INTEGER="integer",s.BIG_INTEGER="big_integer",s.SHORT="short",s.FLOAT="float",s.BIG_DECIMAL="big_decimal",s.DOUBLE="double",s.LONG="long",s.BYTE="byte",s.STRING="string",s.CHARACTER="character",s.TEXT="text",s.DATE="date",s.TIME="time",s.TIMESTAMP="timestamp",s.DATETIME="datetime",s.LOCALDATETIME="localdatetime",s.BOOLEAN="boolean",s.LIST="list",s.CLOB="clob",s.BLOB="blob",e.MatchMode=void 0,(l=e.MatchMode||(e.MatchMode={})).BETWEEN="between",l.GREATER="greaterthanequal",l.LESSER="lessthanequal",l.NULL="null",l.EMPTY="empty",l.NULLOREMPTY="nullorempty",l.EQUALS="exact",e.DEFAULT_FORMATS=void 0,(c=e.DEFAULT_FORMATS||(e.DEFAULT_FORMATS={})).DATE="yyyy-MM-dd",c.TIME="HH:mm:ss",c.TIMESTAMP="timestamp",c.DATETIME="yyyy-MM-ddTHH:mm:ss",c.LOCALDATETIME="yyyy-MM-ddTHH:mm:ss",c.DATETIME_ORACLE="yyyy-MM-dd HH:mm:ss",c.DATE_TIME="yyyy-MM-dd HH:mm:ss";var d=function(e,t,n){var i="";return e.forEach((function(e,o){if(o&&o.endsWith(".event")){var r=o.split(".")[0];i=" "+i+" ("+r+')="'+(t?t+".":"")+"triggerUploadEvent($event, '"+r+"', '"+n+"', row)\" "}})),i},h=d,m=function(e,n,i){i=i.replace("bind:","");var o=e.attrs.find((function(e){return"datasetboundexpr"===e.name}));"dataset"!==n.name||o||e.attrs.push(new t.Attribute("datasetboundexpr",i,n.sourceSpan,n.keySpan,n.valueSpan,void 0,void 0))},f=m,g=function(e){var t=e.match(/(custom(\s*:))/g);return t&&t.length},v=function(e,t,n,i,o){void 0===i&&(i=""),void 0===o&&(o="item");var r,a,s,l=t.replace(/([^a-zA-Z0-9.])/g,"\\$1"),c=new RegExp("("+l+")(\\[0\\])?(.data\\[\\$i\\])?(.content\\[\\$i\\])?(\\[\\$i\\])?","g"),p={"wm-list":["itemclass","disableitem","dataset"]};n&&(r=new RegExp("(Widgets."+n+".currentItem)\\b","g"),a=new RegExp("(Widgets."+n+".currentItemWidgets)\\b","g"),s=new RegExp("(Widgets.(.*).(formWidgets|filterWidgets))\\b","g")),(_.isArray(e)?e:p[e.name]?[e]:e.children||[]).forEach((function(e){if(e.name){var l=e.name,u=new RegExp("bind:\\s*\\(*"+t+"\\)*\\.length\\)*");e.attrs.forEach((function(n){var d=n.value&&n.value.trim();_.startsWith(d,"bind:")&&((!p[l]||p[l]&&p[l].indexOf(n.name)>-1)&&_.includes(d,t)&&d!=="bind:"+t&&!u.test(d)&&(d=d.replace("bind:",""),m(e,n,d),d=d.replace(c,o),g(d="bind:"+d)&&r&&(d+=":"+r.exec(r.source)[0])),r&&r.test(d)&&((d.includes(".formWidgets")||d.includes(".filterWidgets"))&&(d=d.replace(s,"Widgets")),m(e,n,d),d=d.replace(r,o)),a&&a.test(d)&&(d=d.replace(a,i+"currentItemWidgets")),n.value=d)})),v(e.children,t,n,i,o)}}))},y=new Map([["display-name","caption"],["display-name.bind","caption.bind"],["title","hint"],["title.bind","hint.bind"],["show","show"],["show.bind","show.bind"],["disabled","disabled"],["disabled.bind","disabled.bind"],["hyperlink","hyperlink"],["hyperlink.bind","hyperlink.bind"],["target","target"],["conditionalclass.bind","conditionalclass.bind"],["conditionalstyle.bind","conditionalstyle.bind"]]),b=window.requestAnimationFrame,w=[],P=function(e){w.length||b((function(){w.forEach((function(e){return e()})),w.length=0})),w.push(e)},O=function(e,t,n){var i=function(t){return e.classList.remove(t)};(t=t||"").split(" ").forEach((function(e){e.length&&(n?i(e):P((function(){return i(e)})))}))},S=function(e,t,n){var i=function(t){return e.classList.add(t)};(t=t||"").split(" ").forEach((function(e){e.length&&(n?i(e):P((function(){return i(e)})))}))},E=function(e,t,n,i){var o=function(){return e.style[t]=n};i?o():P(o)},T=function(e,t,n,i){var o=function(){return e instanceof Element&&e.setAttribute(t,n)};i?o():P(o)};function R(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))}function A(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}Object.create;function C(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function I(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function D(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var N={};function x(){return window._WM_APP_PROPERTIES?window._WM_APP_PROPERTIES:N}var k,M,L,F=function(){function e(e){this.generator=function(e){var t;return A(this,(function(n){switch(n.label){case 0:t=1,n.label=1;case 1:return[4,""+e+t++];case 2:return n.sent(),[3,1];case 3:return[2]}}))}(e)}return e.prototype.nextUid=function(){return this.generator.next().value},e}(),j=function(e){return"string"==typeof e},B=function(e){return void 0!==e},G=function(e,t){return void 0===e?t:e},V=function(e,t){return void 0===e?t:void 0===t?e:e+t},U=function(e,t){return G(e,0)-G(t,0)},W=function(){},q=new Map,z=new Map,H=new Map,Y=function(e,t){return"object"!=typeof e&&"object"!=typeof t&&(e!=e&&t!=t||e===t)},K=function(e,t){var n=t.length,i=n>10;switch(n){case 10:if(i=!Y(e[9],t[9]))break;case 9:if(i=!Y(e[8],t[8]))break;case 8:if(i=!Y(e[7],t[7]))break;case 7:if(i=!Y(e[6],t[6]))break;case 6:if(i=!Y(e[5],t[5]))break;case 5:if(i=!Y(e[4],t[4]))break;case 4:if(i=!Y(e[3],t[3]))break;case 3:if(i=!Y(e[2],t[2]))break;case 2:if(i=!Y(e[1],t[1]))break;case 1:if(i=!Y(e[0],t[0]))break}return i},Q=function(e,t,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var r,a=t.get(n);if(a){var s=K(a.args,i);if(!s)return a.result}return a={args:i,result:r=e.transform.apply(e,D([],I(i)))},t.set(n,a),r},X=/[^ a-zA-Z0-9]/g,J=function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},Z=function(){function e(e,t,n){this.ast=e,this.declarations=[],this.stmts=[],this.pipes=[],this.vIdx=0,this.exprType=t,this.pipeNameVsIsPureMap=n}return e.prototype.createVar=function(){var e="v"+this.vIdx++;return this.declarations.push(e),e},e.prototype.processImplicitReceiver=function(){return"ctx"},e.prototype.processLiteralPrimitive=function(){var e=this.cAst;return j(e.value)?'"'+e.value.replace(/"/g,'"').replace(X,J)+'"':e.value},e.prototype.processLiteralArray=function(){var e,t,n=this.cAst,i=this.cStmts,o=this.createVar(),r=[];try{for(var a=C(n.expressions),s=a.next();!s.done;s=a.next()){var l=s.value;r.push(this.build(l,i))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return i.push(o+"=["+r.join(",")+"]"),o},e.prototype.processLiteralMap=function(){var e,t,n=this.cAst,i=this.cStmts,o=this.createVar(),r=[];try{for(var a=C(n.values),s=a.next();!s.done;s=a.next()){var l=s.value;r.push(this.build(l,i))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return i.push(o+"={"+n.keys.map((function(e,t){return"'"+e.key+"':"+r[t]}))+"}"),o},e.prototype.processPropertyRead=function(){var e=this.cAst,t=this.cStmts,n=this.build(e.receiver,t),i=this.createVar();return t.push(i+"="+n+"&&"+n+"."+e.name),i},e.prototype.processKeyedRead=function(){var e=this.cAst,t=this.cStmts,n=this.build(e.key,t),i=this.build(e.receiver,t),o=this.createVar();return t.push(o+"="+i+"&&"+i+"["+n+"]"),o},e.prototype.processPrefixNot=function(){var e=this.cAst,t=this.cStmts,n=this.build(e.expression,t);return t.push(n+"=!"+n),n},e.prototype.handleBinaryPlus_Minus=function(){var e=this.cAst,t=this.cStmts,n=this.build(e.left,t),i=this.build(e.right,t),o=this.createVar(),r="+"===e.operation?"_plus":"_minus";return t.push(o+"="+r+"("+n+","+i+")"),o},e.prototype.handleBinaryAND_OR=function(){var e=this.cAst,t=this.cStmts,n=[],i=[],o=[],r=this.build(e.left,i),a=this.build(e.right,o),s=this.createVar();return"&&"===e.operation?n.push(i.join(";"),";"+s+"=false",";if("+r+"){",o.join(";"),";"+s+"="+a+";","}"):n.push(i.join(";"),";"+s+"="+r,";if(!"+r+"){",o.join(";"),";"+s+"="+a+";","}"),t.push(n.join("")),s},e.prototype.handleBinaryDefault=function(){var e=this.cAst,t=this.cStmts,n=this.build(e.left,t),i=this.build(e.right,t),o=this.createVar();return t.push(o+"="+n+e.operation+i),o},e.prototype.processBinary=function(){var e=this.cAst.operation;return"+"===e||"-"===e?this.handleBinaryPlus_Minus():"&&"===e||"||"===e?this.handleBinaryAND_OR():this.handleBinaryDefault()},e.prototype.processConditional=function(){var e=this.cAst,t=this.cStmts,n=this.build(e.condition,t),i=this.createVar(),o=[],r=[],a=[],s=this.build(e.trueExp,r),l=this.build(e.falseExp,a);return o.push("if("+n+"){",r.join(";"),";"+i+"="+s+";","}else{",a.join(";"),";"+i+"="+l+";","}"),t.push(o.join(" ")),i},e.prototype.processMethodCall=function(){var e,n,i=this.cAst,o=this.cStmts,r=[];try{for(var a=C(i.args),s=a.next();!s.done;s=a.next()){var l=s.value;r.push(this.build(l,o))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}var c=this.build(i.receiver,o),p=this.createVar(),u=i.receiver instanceof t.ImplicitReceiver;return o.push(p+"= "+c+"&&"+c+"."+i.name+"&&"+c+"."+i.name+(u?".bind(_ctx)":"")+"("+r.join(",")+")"),p},e.prototype.processChain=function(){var e=this;return this.cAst.expressions.map((function(t){return e.build(t)})).join(";")},e.prototype.processPropertyWrite=function(){var e,n,i=this.cAst,o=this.cStmts;n=i.receiver instanceof t.ImplicitReceiver?"_ctx."+i.name:(e=this.build(i.receiver,o))+(e.length?".":"")+i.name;var r=this.build(i.value,o);o.push(n+"="+r)},e.prototype.processPipe=function(){var e,t,n=this.cAst,i=this.cStmts,o=this.createVar(),r=[],a=[],s=[],l=this.build(n.exp,i);try{for(var c=C(n.args),p=c.next();!p.done;p=c.next()){var u=p.value;r.push(this.build(u,s))}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}var d="_p"+this.pipes.length;return this.pipes.push([n.name,d]),r.unshift(l),a.push(s.length?s.join(";")+";":"",this.pipeNameVsIsPureMap.get(n.name)?o+"=getPPVal("+d+',_ppc,"'+d+'",'+r+")":o+"="+d+".transform("+r+")"),i.push(a.join("")),o},e.prototype.build=function(e,n){return this.cAst=e,this.cStmts=n||this.stmts,e instanceof t.ImplicitReceiver?this.processImplicitReceiver():e instanceof t.LiteralPrimitive?this.processLiteralPrimitive():e instanceof t.LiteralArray?this.processLiteralArray():e instanceof t.LiteralMap?this.processLiteralMap():e instanceof t.PropertyRead?this.processPropertyRead():e instanceof t.PropertyWrite?this.processPropertyWrite():e instanceof t.KeyedRead?this.processKeyedRead():e instanceof t.PrefixNot?this.processPrefixNot():e instanceof t.Binary?this.processBinary():e instanceof t.Conditional?this.processConditional():e instanceof t.MethodCall?this.processMethodCall():e instanceof t.Chain?this.processChain():e instanceof t.BindingPipe?this.processPipe():void 0},e.prototype.extendCtxWithLocals=function(){var e=this.createVar();this.stmts.push(e+"=Object.assign({}, locals)","Object.setPrototypeOf("+e+", _ctx)","ctx="+e)},e.prototype.fnBody=function(){return this.declarations.push("ctx"),'"use strict";\nvar '+this.declarations.join(",")+";\n"+this.stmts.join(";")},e.prototype.fnArgs=function(){var e,t,n=["_plus","_minus","_isDef"];if(this.exprType===L.Binding){n.push("getPPVal","_ppc");try{for(var i=C(this.pipes),o=i.next();!o.done;o=i.next()){var r=I(o.value,2)[1];n.push(r)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}}return n.push("_ctx","locals"),n.join(",")},e.prototype.addReturnStmt=function(e){this.stmts.push("return "+e+";")},e.prototype.cleanup=function(){this.ast=this.cAst=this.stmts=this.cStmts=this.declarations=this.pipes=this.pipeNameVsIsPureMap=void 0},e.prototype.compile=function(e){if(this.extendCtxWithLocals(),this.addReturnStmt(this.build(this.ast)),e)return{fnBody:this.fnBody(),fnArgs:this.fnArgs(),pipes:this.pipes};var t,n=new Function(this.fnArgs(),this.fnBody());return this.exprType===L.Binding?(t=n.bind(void 0,V,U,B,Q)).usedPipes=this.pipes.slice(0):t=n.bind(void 0,V,U,B),this.cleanup(),t},e}(),ee=function(){return{transform:W}},te=function(){if(void 0!==k)return k;try{new Function,k=!1}catch(e){k=!0}return k};function ne(e,n){var i,o;if(!M)return console.log("set pipe provider"),W;if(!j(e))return W;if((e=e.trim()).endsWith(";")&&(e=e.slice(0,-1)),!e.length)return W;var r,a=q.get(e);if(a)return a;if(n||(r=le(e)),!r)if(te())r=function(t,n){var i=Object.assign({},n);return Object.setPrototypeOf(i,t),_.get(i,e)};else{var s=new t.Parser(new t.Lexer).parseBinding(e,"",0);if(s.errors.length)r=a=W;else{var l=M.getPipeNameVsIsPureMap();if(a=new Z(s.ast,L.Binding,l).compile(n),n)return a;if(a.usedPipes.length){var c=[],p=!1;try{for(var u=C(a.usedPipes),d=u.next();!d.done;d=u.next()){var h=I(d.value,1)[0],m=M.meta(h),f=void 0;m?(m.pure&&(p=!0,f=H.get(h)),f||(f=M.getInstance(h)),m.pure&&H.set(h,f)):f=ee,c.push(f)}}catch(e){i={error:e}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}c.unshift(p?new Map:void 0),r=a.bind.apply(a,D([void 0],I(c)))}else r=a.bind(void 0,void 0)}}return q.set(e,r),r}function ie(e,t,n){var i=Object.assign({},n);Object.setPrototypeOf(i,t);var o=e.split("("),r=o[0],a=_.get(t,r);if(a){var s=o[1].replace(")","");s=s.split(",");var l=[];return s.forEach((function(e){e=e&&e.trim(),l.push(_.get(i,e))})),a.bind(i).apply(void 0,D([],I(l)))}}function oe(e,n){if(!j(e))return W;if(!(e=e.trim()).length)return W;var i=z.get(e);if(i)return i;if(n||(i=ce(e)),!i)if(te())i=ie.bind(void 0,e);else{var o=new t.Parser(new t.Lexer).parseAction(e,"",0);if(o.errors.length)return W;i=new Z(o.ast,L.Action).compile(n)}return z.set(e,i),i}!function(e){e[e.Binding=0]="Binding",e[e.Action=1]="Action"}(L||(L={}));var re=new Map,ae=function(e){return re.get(e)},se=function(e,t){var n,i,o=ae(e);if(o){var r=o.usedPipes||[];if(o=t===L.Binding?o.bind(void 0,V,U,B,Q):o.bind(void 0,V,U,B),r.length){var a=[],s=!1;try{for(var l=C(r),c=l.next();!c.done;c=l.next()){var p=I(c.value,1)[0],u=M.meta(p),d=void 0;u?(u.pure&&(s=!0,d=H.get(p)),d||(d=M.getInstance(p)),u.pure&&H.set(p,d)):d=ee,a.push(d)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}a.unshift(s?new Map:void 0),o=o.bind.apply(o,D([void 0],I(a)))}else t===L.Binding&&(o=o.bind(void 0,void 0));return o}},le=function(e){return se(e,L.Binding)},ce=function(e){return se(e,L.Action)},pe=new Map,ue=new F("watch-id-"),de={};Object.freeze(de);var he,me,fe,ge=!1,ve=function(e,t){var n;return void 0===t&&(t=50),function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];window.__zone_symbol__clearTimeout(n),n=window.__zone_symbol__setTimeout((function(){return e.apply(void 0,D([],I(i)))}),t)}},ye=function(e,t,n,i){var o,r=n;_.isArray(r)&&(o=r.map((function(e){return Vt(e,t)})),_.isArray(o[0])&&(o=_.flatten(o)),e(o,i))},be=function(e,t,n){var i="[$i]";if(!t)return{expr:e.replace(/\[\$i\]/g,"[0]"),listener:n};var o=e.lastIndexOf(i),r=e.substr(0,o).replace(i,"[0]"),a=e.substr(o+5),s=n;return a&&(s=ye.bind(void 0,n,a)),{expr:r,listener:s}},we=function(e,t,n,i,o,r,a,s){if(void 0===o&&(o=ue.nextUid()),void 0===r&&(r=!1),void 0===a&&(a={}),-1!==e.indexOf("[$i]")){var l=be(e,a&&a.arrayType,i);e=l.expr,i=l.listener}var c=ne(e);return pe.set(o,{fn:c.bind(e,t,n),listener:i,expr:e,last:de,doNotClone:r,isMuted:s}),function(){return Pe(o)}},Pe=function(e){return pe.delete(e)},_e=!1,Oe=window.requestAnimationFrame,Se=function(e){if(!ge||e){var t,n=1;do{t=!1,pe.forEach((function(e){if(!e.isMuted||!e.isMuted()){var n,i=e.fn,o=e.listener,r=e.last;try{n=i()}catch(t){console.warn("error in executing expression: '"+e.expr+"'")}_.isEqual(n,r)||(t=!0,_e=!0,e.last=n,_.isObject(n)&&!e.doNotClone&&!1!==n.__cloneable__&&(e.last=_.clone(n)),o(n,r),Ee())}})),n++}while(t&&n<5);t&&5===n&&console.warn("Number of watch cycles gone above set limit of: 5 ")}},Ee=function(){return _e=!1};window.watchRegistry=pe;var Te,Re,Ae=ve((function(){fe=!0,me.run((function(){return Se()}))}),100),Ce=(Te=!1,function(e){if(he)if(e)me.run((function(){return he.tick()})),Te=!1;else{if(Te)return;Te=!0,Oe((function(){me.run((function(){return he.tick()})),Te=!1}))}});e.ComponentType=void 0,(Re=e.ComponentType||(e.ComponentType={}))[Re.PAGE=0]="PAGE",Re[Re.PREFAB=1]="PREFAB",Re[Re.PARTIAL=2]="PARTIAL";var Ie,De=function(){};!function(e){e.LIST_RECORDS="listRecords",e.UPDATE_RECORD="updateRecord",e.INSERT_RECORD="insertRecord",e.DELETE_RECORD="deleteRecord",e.INVOKE="invoke",e.UPDATE="update",e.NOTIFY="notify",e.IS_API_AWARE="isApiAware",e.SUPPORTS_CRUD="supportsCRUD",e.SUPPORTS_DISTINCT_API="supportsDistinctAPI",e.IS_PAGEABLE="isPageable",e.IS_SORTABLE="isSortable",e.GET_OPERATION_TYPE="getOperationType",e.GET_RELATED_PRIMARY_KEYS="getRelatedTablePrimaryKeys",e.GET_ENTITY_NAME="getEntityName",e.SET_INPUT="setinput",e.GET_RELATED_TABLE_DATA="getRelatedTableData",e.GET_DISTINCT_DATA_BY_FIELDS="getDistinctDataByFields",e.GET_AGGREGATED_DATA="getAggregatedData",e.GET_MATCH_MODE="getMatchMode",e.DOWNLOAD="download",e.GET_NAME="getName",e.GET_PROPERTIES_MAP="getPropertiesMap",e.GET_PRIMARY_KEY="getPrimaryKey",e.GET_BLOB_URL="getBlobURL",e.SUPPORTS_SERVER_FILTER="supportsServerFilter",e.GET_OPTIONS="getOptions",e.SEARCH_RECORDS="searchRecords",e.GET_REQUEST_PARAMS="getRequestParams",e.GET_PAGING_OPTIONS="getPagingOptions",e.FETCH_DISTINCT_VALUES="fetchDistinctValues",e.GET_UNIQUE_IDENTIFIER="getUniqueIdentifier",e.GET_CONTEXT_IDENTIFIER="getContextIdentifier",e.IS_UPDATE_REQUIRED="isUpdateRequired",e.ADD_ITEM="addItem",e.SET_ITEM="setItem",e.REMOVE_ITEM="removeItem",e.IS_BOUND_TO_LOCALE="isBoundToLocale",e.GET_DEFAULT_LOCALE="getDefaultLocale",e.CANCEL="cancel",e.SET_PAGINATION="setPagination"}(Ie||(Ie={}));var Ne={Operation:Ie},xe=function(){},ke=function(){},Me=function(){},Le=function(){},Fe=function(){},je=function(){},Be=function(){},Ge=function(){},Ve=function(){},$e=function(){},Ue=function(){},We=window.navigator.userAgent,qe={SNAKE_CASE:/[A-Z]/g,ANDROID:/Android/i,IPHONE:/iPhone/i,IPOD:/iPod/i,IPAD:/iPad/i,MAC:/Mac/i,ANDROID_TABLET:/android|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i,MOBILE:/Mobile/i,WINDOWS:/Windows Phone/i,SUPPORTED_IMAGE_FORMAT:/\.(bmp|gif|jpe|jpg|jpeg|tif|tiff|pbm|png|ico)$/i,SUPPORTED_FILE_FORMAT:/\.(txt|js|css|html|script|properties|json|java|xml|smd|xmi|sql|log|wsdl|vm|ftl|jrxml|yml|yaml|md|less|jsp)$/i,SUPPORTED_AUDIO_FORMAT:/\.(mp3|ogg|webm|wma|3gp|wav|m4a)$/i,SUPPORTED_VIDEO_FORMAT:/\.(mp4|ogg|webm|wmv|mpeg|mpg|avi|mov)$/i,PAGE_RESOURCE_PATH:/^\/pages\/.*\.(js|css|html|json)$/,MIN_PAGE_RESOURCE_PATH:/.*(page.min.html)$/,VALID_EMAIL:/^[a-zA-Z][\w.+]+@[a-zA-Z_]+?\.[a-zA-Z.]{1,4}[a-zA-Z]$/,VALID_WEB_URL:/^(http[s]?:\/\/)(www\.){0,1}[a-zA-Z0-9=:?\/\.\-]+(\.[a-zA-Z]{2,5}[\.]{0,1})?/,VALID_WEBSOCKET_URL:/^(ws[s]?:\/\/)(www\.){0,1}[a-zA-Z0-9=:?\/\.\-]+(\.[a-zA-Z]{2,5}[\.]{0,1})?/,VALID_RELATIVE_URL:/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/).*/,REPLACE_PATTERN:/\$\{([^\}]+)\}/g,ZIP_FILE:/\.zip$/i,EXE_FILE:/\.exe$/i,NO_QUOTES_ALLOWED:/^[^'|"]*$/,NO_DOUBLE_QUOTES_ALLOWED:/^[^"]*$/,VALID_HTML:/<[a-z][\s\S]*>/i,VALID_PASSWORD:/^[0-9a-zA-Z-_.@&*!#$%]+$/,SPECIAL_CHARACTERS:/[^A-Z0-9a-z_]+/i,APP_SERVER_URL_FORMAT:/^(http[s]?:\/\/)(www\.){0,1}[a-zA-Z0-9\.\-]+([:]?[0-9]{2,5}|\.[a-zA-Z]{2,5}[\.]{0,1})\/+[^?#&=]+$/,JSON_DATE_FORMAT:/\d{4}-[0-1]\d-[0-3]\d(T[0-2]\d:[0-5]\d:[0-5]\d.\d{1,3}Z$)?/,DATA_URL:/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i,ISO_DATE_FORMAT:/(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}:\d{2})(\.\d+)?([+-]\d{2}:?\d{2}|Z)$/},ze=["int",e.DataType.INTEGER,e.DataType.FLOAT,e.DataType.DOUBLE,e.DataType.LONG,e.DataType.SHORT,e.DataType.BYTE,e.DataType.BIG_INTEGER,e.DataType.BIG_DECIMAL],He=new Date,Ye=function(e){return void 0!==e},Ke=function(e){return null!==e&&"object"==typeof e},Qe=function(e,t){return!(!e||"false"===e)||!!t&&e===t};var Xe=function(){return window.navigator.appVersion.indexOf("Trident/")>-1||window.navigator.userAgent.indexOf("MSIE")>-1},Je=function(){return qe.ANDROID.test(We)},Ze=function(){return qe.ANDROID_TABLET.test(We)&&!/Tablet PC 2.0/i.test(We)},et=function(){return qe.IPHONE.test(We)},tt=function(){return qe.IPOD.test(We)},nt=function(){return qe.IPAD.test(We)||window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>2&&qe.MAC.test(window.navigator.platform)},it=function(){return et()||tt()||nt()},ot=function(e,t){var n=e||"1366px",i=t||"1024px";return window.matchMedia("only screen and (min-device-width : "+n+") and (max-device-width : "+n+") and (min-device-height : "+i+") and (max-device-height : "+i+") and (min-width: "+n+") and (max-width: "+n+")").matches},rt=function(e,t){var n=e||"1366px",i=t||"1024px";return window.matchMedia("only screen and (min-device-width : "+i+") and (max-device-width : "+i+") and (min-device-height : "+n+") and (max-device-height : "+n+") and (min-width: "+i+") and (max-width: "+i+")").matches},at=function(){return Je()||it()||Ze()||$("#wm-mobile-display:visible").length>0},st=function(){return"MOBILE"===x().platformType&&"APPLICATION"===x().type},lt=function(){var e=window.navigator.userAgent.toLowerCase().match(/android\s([0-9\.]*)/);return e?e[1]:""},ct=function(){return Je()&&4===parseInt(lt(),10)},pt=function(e){var t=e.indexOf("?");return t>-1?(e=encodeURI(e.substring(0,t))+e.substring(t),e=ut(e)):e=encodeURI(e),e},ut=function(e){var t,n,i="";return(n=e.indexOf("?"))>-1&&(n+=1,(t=e.substring(n))&&(t.split("&").forEach((function(e){var t,n=_.includes(e,"=")?e.indexOf("="):e&&e.length,o=e.substr(0,n),r=e.substr(n+1);if(r||_.includes(e,"=")){try{t=decodeURIComponent(r)}catch(e){t=r}i+=o+"="+encodeURIComponent(t)+"&"}else i+=o+"&"})),i=i.slice(0,-1),e=e.replace(t,i))),e},dt=function(e){return e?e.charAt(0).toUpperCase()+e.substring(1):""},ht=function(e){return e===e.toUpperCase()?e:e.replace(qe.SNAKE_CASE,(function(e,t){return(t?" ":"")+e}))},mt=function(e,t,n){return e.substr(0,t)+n+e.substr(t+n.length)},ft=function(e){var t;return-1!==(t=e.indexOf("."))&&(e=mt(e,t+1,e.charAt(t+1).toUpperCase()),e=mt(e,t," ")),e},gt=function(e){return e=_.camelCase(e),e=dt(e),e=ht(e),e=ft(e)},vt=function(e){return e.split("-").join(" ")},yt=function(e,t){void 0===t&&(t=",");var n,i=[];return _.isArray(e)||(i=_.split(e,t)),n=_.map(i,gt),_.isArray(e)?n:n.join(t)},bt=function(e){var t=document.createElement("a");return t.href=e,""!==t.protocol&&(!qe.DATA_URL.test(e)&&(!!wt(location.href,"https://")&&("https:"!==t.protocol&&"wss:"!==t.protocol)))},wt=function(e,t,n){return!!e&&new RegExp("^"+t,n?"i":"").test(e)},Pt=function(e,t){var n;return n=_.attempt((function(){var n=Object.keys(e).map((function(e){return"var "+e+" = data['"+e+"'];"})).join(" ");return new Function("data",n+" return "+t)(e)})),_.isError(n)&&(n=_.get(e,t)),n},_t=function(e){return qe.SUPPORTED_IMAGE_FORMAT.test(e)},Ot=function(e){return qe.SUPPORTED_AUDIO_FORMAT.test(e)},St=function(e){return qe.SUPPORTED_VIDEO_FORMAT.test(e)},Et=function(e){return qe.VALID_WEB_URL.test(e)},Tt=function(e){return Et(e),e};function Rt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=1,o=arguments.length,r=new Array(o-i);i<o;i++)r[i-1]=arguments[i];if(_.isFunction(e))return e.apply(null,r)}var At=function(e,t,n,i,o,r,a){if(t){if("timestamp"===n)return moment(t).valueOf();if("UTC"===n)return new Date(t).toISOString();if(i){var s=n.replaceAll("y","Y").replaceAll("d","D").replace("a","A");if(r)return moment(t).format(s);if("datetimestamp"===o)return t=dn(i,t),moment(t).format(s)}return e.transform(t,n,i,a)}},Ct=function(e){if("string"==typeof e){var t=e.match(qe.ISO_DATE_FORMAT);return!(!t||!t[4])||void 0}},It=function(e,t,n){if(t&&t.pattern&&"timestamp"!==t.pattern){var i=(t&&t.hasOwnProperty("isNativePicker")?_.get(t,"isNativePicker"):at())?"YYYY/MM/DD HH:mm:ss":Qt(t.pattern);e=moment(e,i).toDate()}if(_.isDate(e))return e;if(isNaN(e)||(e=parseInt(e,10)),moment(e).isValid()&&""!==e&&null!=e){var o=new Date(e);return _.isString(e)&&(o=n?dn(n,e):new Date(moment(moment(e).format()).valueOf())),"CURRENT_DATE"===e||isNaN(o.getDay())?He:o}},Dt=function(e,t,n,i,o,r,a,s){void 0===s&&(s=!1);var l=e,c=function(e){if(!t||!t.contains(e.target)&&t!==e.target)if(n.contains(e.target)){if($(e.target).is("input")&&!o)return;l.removeEventListener(i,c,s)}else 0===a&&l.removeEventListener(i,c,s),r()};l.addEventListener(i,c,s);return function(){l.removeEventListener(i,c,s)}},Nt=function(e){return _.cloneDeep(e)},xt=function(e,t,n){var i=_.get(document.forms,[e,t,"files"]);return n?_.map(i,_.identity):i&&i[0]};function kt(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}var Mt,Lt,Ft=function(){return kt()+"-"+kt()+"-"+kt()},jt=function(e,t){var n;return!e||!t||(n=e&&e.split(",").map(Function.prototype.call,String.prototype.trim),_.intersection(n,t.userRoles).length)},Bt=function(e){if(e)try{var t=parseInt(e,10);return Ke(e)||!isNaN(t)?e:JSON.parse(e)}catch(e){return}},Gt=function(e){var t=new X2JS({emptyNodeForm:"content",attributePrefix:"",enableToStringFunc:!1}).xml2js(e);return t&&(t=_.get(t,Object.keys(t)[0])),t},Vt=function(e,t,n){if(e&&t){if(!n)return _.get(e,t);var i,o=t.split("."),r=[];if(o.forEach((function(e){if(!o.length)return i=!0,!1;for(var t,n=e.match(/\w+/g);n.length;)t=n.shift(),r.push({key:t,value:n.length?[]:{}})})),!i)return r.forEach((function(t){var n=e[t.key];Ke(n)||(n=Bt(n))||(n=t.value),e[t.key]=n,e=n})),e}},$t=function(t){var n;return t?n=(n=(n=t&&t.substring(t.lastIndexOf(".")+1))&&n.toLowerCase())===e.DataType.LOCALDATETIME?e.DataType.DATETIME:n:e.DataType.STRING},Ut=function(e){return-1!==ze.indexOf($t(e).toLowerCase())},Wt=function(e){return!(!Ke(e)||_.isArray(e))&&0===Object.keys(e).length},qt=function(e){var t=$(e),n=t.offset().top,i=t.closest('[wmsmoothscroll="true"]');if(st()&&i.length){var o=_.get(i[0],"iscroll"),r=-(n-o.y);r=o.maxScrollY>r?o.maxScrollY:r,o.scrollTo(0,r)}else window.scroll({top:n,left:0,behavior:"smooth"})},zt=function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},Ht=function(e){var t=_.omit(e,"empty");return _.isEqual(_.keys({content:[],first:!0,last:!0,number:0,numberOfElements:10,size:20,sort:null,totalElements:10,totalPages:1}),_.keys(t).sort())},Yt=function(e,t,n){var i=qe.REPLACE_PATTERN;if(e)return n&&(i=/\{([^\}]+)\}/g),e.replace(i,(function(e,n){return _.get(t,n)}))},Kt=function(t){return _.includes(t,".")&&(t=_.toLower($t(t))),_.includes([e.DataType.DATE,e.DataType.TIME,e.DataType.TIMESTAMP,e.DataType.DATETIME,e.DataType.LOCALDATETIME],t)},Qt=function(e){return _.includes(e,"E")&&(e=_.replace(e,/E[,]?/g,"")),_.replace(e,/y*d*/g,(function(e){return e.toUpperCase()}))},Xt=Qt,Jt=function(e,t){var n=["AM","PM"],i=moment()._locale.meridiem();t&&t.meridians&&_.includes(n,i)&&_.forEach(t.meridians,(function(t,i){_.includes(e,t)&&(e=e.replace(t,n[i]))}));var o=(t&&t.hasOwnProperty("isNativePicker")?_.get(t,"isNativePicker"):at())?_.get(t,"pattern")||"YYYY/MM/DD HH:mm:ss":Qt(_.get(t,"pattern"))||"";return t&&t.pattern&&"timestamp"!==t.pattern&&(isNaN(new Date(e).getTime())?e=moment(e,o):(it()&&(e=moment(e).format("YYYY/MM/DD HH:mm:ss")),e=moment(new Date(e),o)),e=e.toDate()),moment(e,o).isValid()?(it()&&(e=moment(moment(e).valueOf()).format("YYYY/MM/DD HH:mm:ss")),e):(isNaN(e)?new Date(e).getTime()||(e=moment(moment().format("YYYY-MM-DD")+" "+e,"YYYY-MM-DD HH:mm:ss A")):e=parseInt(e,10),new Date(moment(e).valueOf()))},Zt=function(e,t){return e=Jt(e,t),new Date(e)},en=function(e,t){if(e instanceof Blob)return e;var n=Bt(e);return e=n&&n instanceof Object?new Blob([JSON.stringify(n)],{type:t||"application/json"}):new Blob([e],{type:t||"text/plain"})},tn=function(e,t,n){var i=_.isArray(n)?n:_.split(n,",");return i=_.map(i,_.trim),_.isEqualWith(e,t,(function(e,t){return _.every(i,(function(n){var i,o,r;return-1===_.indexOf(n,":")?i=o=_.trim(n):(r=_.split(n,":"),i=_.trim(r[0]),o=_.trim(r[1])),_.get(e,i)===_.get(t,o)}))}))},nn=function(e){return document.querySelector(e)},on=nn,rn=function(e){return!!nn('link[href="'+e+'"]')},an=rn,sn=function(e){var t=nn('link[href="'+e+'"]');t&&t.remove()},ln=function(e,t){if(!rn(e)){var n=document.createElement("link");return n.href=e,t&&t.name&&n.setAttribute(t.name,t.value),n.setAttribute("rel","stylesheet"),n.setAttribute("type","text/css"),document.head.appendChild(n),n}},cn=function(e){void 0===e&&(e=[]),Array.isArray(e)||(e=[e]),e.forEach(ln)},pn=function(e){return!!nn('script[src="'+e+'"], script[data-src="'+e+'"]')},un=pn,dn=function(e,t){return t?new Date(new Date(moment(t).tz(e).format()).toLocaleString("en-US",{timeZone:e})):new Date(new Date(moment().tz(e).format()).toLocaleString("en-US",{timeZone:e}))},hn=function(e,t,n){return void 0===n&&(n=!1),R(void 0,void 0,void 0,(function(){var i;return A(this,(function(o){return!(i=e.trim()).length||pn(i)?[2,Promise.resolve()]:t?[2,new Promise((function(e,t){var n=document.createElement("script");n.type="text/javascript",n.src=i,n.async=!1,n.readyState?n.onreadystatechange=function(){"loaded"!==n.readyState&&"complete"!==n.readyState||(n.onreadystatechange=null,e(!0))}:n.onload=function(){e(!0)},n.onerror=function(e){return t(e)},document.getElementsByTagName("head")[0].appendChild(n)}))]:n?[2,$.ajax({dataType:"script",cache:!0,url:e}).done((function(e){return e})).fail((function(e){return e}))]:[2,$.getScript(e).done((function(e){return e})).fail((function(e){return e}))]}))}))},mn=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=!0),R(void 0,void 0,void 0,(function(){var n,i,o,r,a,s;return A(this,(function(l){switch(l.label){case 0:l.trys.push([0,5,6,7]),n=C(e),i=n.next(),l.label=1;case 1:return i.done?[3,4]:(o=i.value,[4,hn(o,t)]);case 2:l.sent(),l.label=3;case 3:return i=n.next(),[3,1];case 4:return[3,7];case 5:return r=l.sent(),a={error:r},[3,7];case 6:try{i&&!i.done&&(s=n.return)&&s.call(n)}finally{if(a)throw a.error}return[7];case 7:return[2,Promise.resolve()]}}))}))},fn={},gn=function(e,t){var n=window.sessionStorage.getItem(fn.id);(n=n?JSON.parse(n):{})[e]=t,window.sessionStorage.setItem(fn.id,JSON.stringify(n))},vn=function(e){var t=window&&window.sessionStorage&&window.sessionStorage.getItem(fn.id);if(t)return(t=JSON.parse(t))[e]},yn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},bn=function(e){return _.isArray(e)},wn=function(e){return"string"==typeof e},Pn=function(e){return"number"==typeof e},_n=function(e){return"boolean"==typeof e},On=function(e){return new Promise((function(t,n){resolveLocalFileSystemURL(e,(function(i){i.file((function(i){var o=new FileReader;o.onloadend=function(){var n=new Blob([o.result],{type:i.type});t({blob:n,filepath:e})},o.onerror=n,o.readAsArrayBuffer(i)}))}),n)}))},Sn=function(){return!!window.cordova},En={INT_MAX_VALUE:2147483647},Tn=function(e,t){void 0===t&&(t="_self"),Sn()&&_.startsWith(e,"#")?location.hash=e:window.open(e,t)},Rn=function(e,t,n,i,o){return void 0===n&&(n=!1),$.ajax({type:"get",dataType:e,url:t,async:!n}).done((function(e){return i&&i(e)})).fail((function(e){return o&&o(e)}))},An=function(e){return e instanceof Promise?e:Promise.resolve(e)},Cn=function(e,t,n,i){void 0===i&&(i=function(){return Promise.resolve(!1)});var o=0,r=function(){if(o++,_.isFunction(e))return e()};return n=_.isNumber(n)&&n>0?n:0,t=_.isNumber(t)&&t>0?t:0,new Promise((function(e,a){var s=function(){var l=arguments;setTimeout((function(){An(i()).then((function(t){!1!==t&&(!n||o<=n)?An(r()).then(e,s):a(l)}),(function(){return a(l)}))}),t)};An(r()).then(e,s)}))},In=function(){var e={promise:null,reject:null,resolve:null,onAbort:function(){},isAborted:!1};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e.promise.abort=function(){Rt(e.onAbort),e.reject("aborted"),e.isAborted=!0},e},Dn=function(e,t){document.styleSheets[0].insertRule(e+" { "+t+" }")},Nn=function(e){var t={},n=e.indexOf("?");-1!==n&&_.split(e.substring(n+1,e.length),"&").forEach((function(e){e=_.split(e,"="),t[e[0]]=e[1]}));return t},xn=function(e){var t=(e=e.replace("#/","/")).indexOf("?");return-1!==t&&(e=e.substring(0,t)),e},kn=/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Mn=function(){var e={promise:null,resolve:yn,reject:yn};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e},Ln=function(e,t,n,i){if(n=n||Mn(),0===(i=i||0)&&(e=_.filter(e,(function(e){return!(_.isUndefined(e)||_.isNull(e))}))),e&&i<e.length)try{An(e[i].apply(void 0,t)).then((function(){return Ln(e,t,n,i+1)}),n.reject)}catch(e){n.reject(e)}else n.resolve();return n.promise},Fn=function(e,t){return e.execute(Ne.Operation.GET_UNIQUE_IDENTIFIER)===t.execute(Ne.Operation.GET_UNIQUE_IDENTIFIER)&&_.isEqual(e.execute(Ne.Operation.GET_CONTEXT_IDENTIFIER),t.execute(Ne.Operation.GET_CONTEXT_IDENTIFIER))},jn=function(e,t){return e.execute(Ne.Operation.GET_CONTEXT_IDENTIFIER)===t},Bn=function(e,t,i){var o=e.registerDestroyListener?e.registerDestroyListener.bind(e):_.noop,r=new n.Subject,a=function(n,a){wt(n[a],"bind:")&&o(we(n[a].replace("bind:",""),e,{},i?i.invokeOnFiltertExpressionChange.bind(i,n,a):function(e,i){e===i&&_.isUndefined(e)||_.isUndefined(e)&&!_.isUndefined(i)||(_.includes(["blob","file"],n.type)||(e=Nt(e)),"dataBinding"===n.target?(t.rules=[],_.forEach(e,(function(e,i){t.rules.push({target:i,value:e,matchMode:n.matchMode||"startignorecase",required:!1,type:""})}))):n[a]=e,r.next({filterExpressions:t,newVal:e}))},void 0,!1,{arrayType:_.includes(["in","notin"],n.matchMode)}))},s=function(e){e.rules&&_.forEach(e.rules,(function(e,t){e.rules?s(e):("between"===e.matchMode&&a(e,"secondvalue"),a(e,"value"))}))};return s(t),r},Gn=function(e,t){for(var n=Object.getPrototypeOf(e);Object.getPrototypeOf(n).constructor!==Object;)if(t===(n=Object.getPrototypeOf(n)))return;Object.setPrototypeOf(n,t)},Vn=function(e){if(_.isString(e))return _.startsWith(e,"file:///")||/^data:image\/([a-z]{2,});base64,/.test(e)?e:e.replace(new RegExp("([^:]/)(/)+","g"),"$1")};$.cachedScript=(Mt=new Map,Lt=new Set,function(e){if(function(e){return Lt.has(e)}(e))return Promise.resolve();if(function(e){return Mt.has(e)}(e))return Mt.get(e);!function(e){var t,n,i=new Promise((function(e,i){t=e,n=i}));i.resolve=t,i.reject=n,Mt.set(e,i)}(e);var t={dataType:"script",cache:!0,url:e};return $.ajax(t).done((function(){return function(e){Lt.add(e),Mt.get(e).resolve(),Mt.delete(e)}(e)})),Mt.get(e)});var $n={DATE:"yyyy-MM-dd",TIME:"hh:mm a",TIMESTAMP:"yyyy-MM-dd hh:mm:ss a",DATETIME:"yyyy-MM-dd hh:mm:ss a"},Un=function(e){return $n[_.toUpper(e)]},Wn=function(e){var t=e.querySelectorAll("label.control-label"),n=e.querySelectorAll("[focus-target]");(n.length||(n=e.querySelectorAll("input, select, textarea")),t.length&&n.length)&&((o=$(n[0]).closest("[widget-id]").attr("widget-id"))&&(T(n[0],"id",o),T(t[0],"for",o)));var i=e.querySelectorAll("ul");if(t.length&&i.length&&("radiogroup"===i[0].getAttribute("role")||"group"===i[0].getAttribute("role"))){var o="wm-group-label-"+Ft();T(i[0],"aria-labelledby",o),T(t[0],"id",o)}},qn=function(e,t,n,i){(n._ngZone||n.ngZone).onStable.subscribe((function(){var t=Yn(e);t.m41<0&&(t.m41=0,Hn(e,t))}))},zn=function(e,t,n,i){var o,r=i?_.parseInt(i.css("width")):_.parseInt(e.css("width")),a=$(window).width()+window.scrollX,s=t.getBoundingClientRect(),l=s.right+window.scrollX;(n._ngZone||n.ngZone).onStable.subscribe((function(){var t=Yn(e);a-(l+s.width)<r&&((o=l-r)<0&&(o=0),t.m41=o,Hn(e,t))}))},Hn=function(e,t){var n="translate3d("+t.m41+"px, "+t.m42+"px, 0px)";e[0].style.webkitTransform=n,e[0].style.MozTransform=n,e[0].style.msTransform=n,e[0].style.OTransform=n,e[0].style.transform=n},Yn=function(e){return"undefined"==typeof WebKitCSSMatrix?new MSCSSMatrix(window.getComputedStyle(e[0]).transform):new WebKitCSSMatrix(window.getComputedStyle(e[0]).webkitTransform)},Kn=function(e){if(!e.closest(".app-popover").length){var t=document.querySelectorAll(".app-popover-wrapper");_.forEach(t,(function(e){e.widget.isOpen&&(e.widget.isOpen=!1)}))}},Qn=Ce,Xn=function(e,t){var n=t.link,i=t.action,o=t.target;if(i&&(e.itemActionFn||(e.itemActionFn=oe(i)),e.itemActionFn(e.userDefinedExecutionContext,Object.create(t))),n)if(!n.startsWith("#/")||o&&"_self"!==o)Tn(n,o);else{var r=Nn(n);n=xn(n),(_.get(e,"route")||_.get(e,"menuRef.route")).navigate([n],{queryParams:r})}},Jn=function(e,t){var n=_.startsWith(e,"Variables."),i=_.startsWith(e,"Widgets."),o=e.split(".");if(n)return _.get(t.viewParent.Variables,o[1]);if(i){var r,a=_.get(t.viewParent.Widgets,o[1]),s=a.$attrs.get("datasetboundexpr");return r=!a.datasource&&s?s:a.binddataset,Jn(r,a)}},Zn=function(e,t){if(/^Widgets\..*\.currentItem/g.test(e)){var n=e.split("."),i=_.get(t.viewParent.Widgets,n[1]),o=i.$attrs.get("datasetboundexpr");if(!i.datasource&&o)return e=e.replace(/^Widgets\..*\.currentItem/g,o+"[$i]"),Zn(e,t);e=e.replace(/^Widgets\..*\.currentItem/g,i.binddataset+"[$i]")}return e},ei=function(e){var t=e.closest(".app-prefab");return t.length||(t=e.closest(".app-partial")),t.length||(t=e.closest(".app-spa-page")),t.length||(t=e.closest(".app-page")),t.length&&t.parent()[0].tagName},ti={REQUIRED:"required",MAXCHARS:"maxchars",MINVALUE:"minvalue",MAXVALUE:"maxvalue",REGEXP:"regexp",MINDATE:"mindate",MAXDATE:"maxdate",MINTIME:"mintime",MAXTIME:"maxtime",EXCLUDEDATES:"excludedates",EXCLUDEDAYS:"excludedays"},ni=function(e){if(e&&Sn()&&e.startsWith("file://")){if(it())return e.replace("file://","/_app_file_");if(Je()&&location.href.startsWith("http")){if(e.startsWith(cordova.file.applicationDirectory))return e.replace(cordova.file.applicationDirectory+"www","");if(e.startsWith("file://"))return e.replace("file://","/_app_file_")}}return e},ii=function(e){var t=document.createElement("script");t.onload=function(){e(WM_CUSTOM_FORMATTERS)},t.onerror=function(e){console.warn("Error while loading the file "+t.src+"\n"+e)},t.type="text/javascript",t.src="./extensions/formatters.js",document.head.appendChild(t)},oi=function(e,t){return _WM_APP_PROPERTIES.extra_settings&&_.get(_WM_APP_PROPERTIES.extra_settings,e)||t},ri=function(e){var t="";e.itemsperrow?isNaN(parseInt(e.itemsperrow,10))?(_.split(e.itemsperrow," ").forEach((function(e){var n=_.split(e,"-");e=n[0]+"-"+12/parseInt(n[1],10),t+=" col-"+e})),e.itemsPerRowClass=t.trim()):e.itemsPerRowClass="col-xs-"+12/parseInt(e.itemsperrow,10):e.itemsPerRowClass="col-xs-12"},ai=Object.freeze({__proto__:null,isDefined:Ye,isObject:Ke,toBoolean:Qe,isIE:Xe,isAndroid:Je,isAndroidTablet:Ze,isIphone:et,isIpod:tt,isIpad:nt,isIos:it,isLargeTabletLandscape:ot,isLargeTabletPortrait:rt,isMobile:at,isTablet:function(){var e=document.querySelector(".app-page").widget;return e&&e.viewParent.Viewport.isTabletType},isMobileApp:st,getAndroidVersion:lt,isKitkatDevice:ct,encodeUrl:pt,encodeUrlParams:ut,initCaps:dt,spaceSeparate:ht,replaceAt:mt,periodSeparate:ft,prettifyLabel:gt,deHyphenate:vt,prettifyLabels:yt,isInsecureContentRequest:bt,stringStartsWith:wt,getEvaluatedExprValue:Pt,isImageFile:_t,isAudioFile:Ot,isVideoFile:St,isValidWebURL:Et,getResourceURL:Tt,triggerFn:Rt,getFormattedDate:At,hasOffsetStr:Ct,getDateObj:It,addEventListenerOnElement:Dt,getClonedObject:Nt,getFiles:xt,generateGUId:Ft,validateAccessRoles:jt,getValidJSON:Bt,xmlToJson:Gt,findValueOf:Vt,extractType:$t,isNumberType:Ut,isEmptyObject:Wt,scrollToElement:qt,isElementInViewport:zt,isPageable:Ht,replace:Yt,isDateTimeType:Kt,getValidDateObject:Jt,getNativeDateObject:Zt,getBlob:en,isEqualWithFields:tn,loadStyleSheet:ln,loadStyleSheets:cn,getMomentLocaleObject:dn,loadScript:hn,loadScripts:mn,_WM_APP_PROJECT:fn,setSessionStorageItem:gn,getSessionStorageItem:vn,noop:yn,isArray:bn,isString:wn,isNumber:Pn,isBoolean:_n,convertToBlob:On,hasCordova:Sn,AppConstants:En,openLink:Tn,fetchContent:Rn,toPromise:An,retryIfFails:Cn,getAbortableDefer:In,createCSSRule:Dn,getUrlParams:Nn,getRouteNameFromLink:xn,isAppleProduct:kn,defer:Mn,executePromiseChain:Ln,isDataSourceEqual:Fn,validateDataSourceCtx:jn,processFilterExpBindNode:Bn,extendProto:Gn,removeExtraSlashes:Vn,getDisplayDateTimeFormat:Un,addForIdAttributes:Wn,adjustContainerPosition:qn,adjustContainerRightEdges:zn,setTranslation3dPosition:Hn,getWebkitTraslationMatrix:Yn,closePopover:Kn,detectChanges:Qn,triggerItemAction:Xn,getDatasourceFromExpr:Jn,extractCurrentItemExpr:Zn,findRootContainer:ei,VALIDATOR:ti,transformFileURI:ni,appendScriptToHead:ii,getAppSetting:oi,setListClass:ri,"\u02750":Xt,"\u02751":on,"\u02752":an,"\u02753":sn,"\u02754":un}),si=function(){function e(e){void 0===e&&(e=!0),this._subject=new n.Subject,this._isInitialized=!1,this._eventsBeforeInit=[],e&&this.start()}return e.prototype.notify=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this._isInitialized?this._subject.next({name:e,data:t}):this._eventsBeforeInit.push({name:e,data:t})},e.prototype.start=function(){var e=this;this._isInitialized||(this._isInitialized=!0,this._eventsBeforeInit.forEach((function(t){return e._subject.next(t)})))},e.prototype.subscribe=function(e,t){var n;return e&&t?(n=this._subject.subscribe((function(n){n&&Ke(n)&&n.name===e&&t.apply(void 0,n.data)})),function(){n.unsubscribe()}):yn},e.prototype.destroy=function(){this._subject.complete()},e}(),li=480,ci=768,pi=function(){function e(){var e=this;this.orientation={isPortrait:!1,isLandscape:!1},this.isMobileType=!1,this.isTabletType=!1,this._eventNotifier=new si(!0),this.setScreenType(),window.addEventListener("resize",this.resizeFn.bind(this));var t=window.matchMedia("(orientation: portrait)");t.matches?this.orientation.isPortrait=!0:this.orientation.isLandscape=!0,t.addEventListener&&t.addEventListener("change",(function(t){return e.orientationChange(t,!t.matches)}))}return e.prototype.update=function(e){this.selectedViewPort=e,this.setScreenType()},e.prototype.orientationChange=function(e,t){t!==this.orientation.isLandscape&&(this.orientation.isPortrait=!t,this.orientation.isLandscape=t,this.notify("orientationchange",{$event:e,data:{isPortrait:!t,isLandscape:t}}))},e.prototype.resizeFn=function(e){this.setScreenType(),this.orientationChange(e,this.screenWidth>=this.screenHeight),this.notify("resize",{$event:e,data:{screenWidth:this.screenWidth,screenHeight:this.screenHeight}})},e.prototype.subscribe=function(e,t){return this._eventNotifier.subscribe(e,t)},e.prototype.notify=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this._eventNotifier.notify.apply(this._eventNotifier,arguments)},e.prototype.setScreenType=function(){var e=document.querySelector(".wm-app");this.screenWidth=e.clientWidth,this.screenHeight=e.clientHeight;var t=this.screenWidth<this.screenHeight?this.screenWidth:this.screenHeight,n=this.screenWidth>this.screenHeight?this.screenWidth:this.screenHeight;if(this.isTabletType=!1,this.isMobileType=!1,_.get(this.selectedViewPort,"deviceCategory")){var i=this.selectedViewPort.deviceCategory;"Tab"===i?this.isTabletType=!0:"Smartphone"===i&&(this.isMobileType=!0)}else li=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--screen-xs"))||480,ci=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--screen-sm"))||768,t>=li&&n>=ci?(this.type=1,(Je()||it()||Ze())&&(this.isTabletType=!0)):(this.type=0,this.isMobileType=!0)},e.prototype.ngOnDestroy=function(){this._eventNotifier.destroy(),window.removeEventListener("resize",this.resizeFn)},e}();pi.\u0275prov=p.\u0275\u0275defineInjectable({factory:function(){return new pi},token:pi,providedIn:"root"}),pi.decorators=[{type:i.Injectable,args:[{providedIn:"root"}]}],pi.ctorParameters=function(){return[]};var ui=function(){this.MATCH_MODES={STARTS_WITH_IGNORE_CASE:"startignorecase",STARTS_WITH:"start",ENDS_WITH_IGNORE_CASE:"endignorecase",ENDS_WITH:"end",CONTAINS:"anywhere",CONTAINS_IGNORE_CASE:"anywhereignorecase",IS_EQUAL_WITH_IGNORE_CASE:"exactignorecase",IS_EQUAL:"exact"},this.VALIDATOR=ti};ui.\u0275prov=p.\u0275\u0275defineInjectable({factory:function(){return new ui},token:ui,providedIn:"root"}),ui.decorators=[{type:i.Injectable,args:[{providedIn:"root"}]}];var di=function(){_.assign(this,ai)};di.\u0275prov=p.\u0275\u0275defineInjectable({factory:function(){return new di},token:di,providedIn:"root"}),di.decorators=[{type:i.Injectable,args:[{providedIn:"root"}]}],di.ctorParameters=function(){return[]};var hi=function(){_.assign(this,{INTEGER:"integer",BIG_INTEGER:"big_integer",SHORT:"short",FLOAT:"float",BIG_DECIMAL:"big_decimal",DOUBLE:"double",LONG:"long",BYTE:"byte",STRING:"string",CHARACTER:"character",TEXT:"text",DATE:"date",TIME:"time",TIMESTAMP:"timestamp",DATETIME:"datetime",BOOLEAN:"boolean",LIST:"list",CLOB:"clob",BLOB:"blob"})};hi.\u0275prov=p.\u0275\u0275defineInjectable({factory:function(){return new hi},token:hi,providedIn:"root"}),hi.decorators=[{type:i.Injectable,args:[{providedIn:"root"}]}],hi.ctorParameters=function(){return[]};var mi=function(){_.assign(this,{TEXT:"text",NUMBER:"number",TEXTAREA:"textarea",PASSWORD:"password",CHECKBOX:"checkbox",SLIDER:"slider",RICHTEXT:"richtext",CURRENCY:"currency",SWITCH:"switch",SELECT:"select",CHECKBOXSET:"checkboxset",RADIOSET:"radioset",DATE:"date",TIME:"time",TIMESTAMP:"timestamp",UPLOAD:"upload",RATING:"rating",DATETIME:"datetime",AUTOCOMPLETE:"autocomplete",CHIPS:"chips",COLORPICKER:"colorpicker"})};mi.\u0275prov=p.\u0275\u0275defineInjectable({factory:function(){return new mi},token:mi,providedIn:"root"}),mi.decorators=[{type:i.Injectable,args:[{providedIn:"root"}]}],mi.ctorParameters=function(){return[]};var fi=[],gi=function(){function e(e){var t=this;this.http=e,this.scripts={},fi.forEach((function(e){t.scripts[e.name]={loaded:!1,src:e.src}}))}return e.prototype.load=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t&&t.length?Promise.resolve().then((function(){return e.pathMappings||e.loadPathMappings()})).then((function(){return Promise.all(t.map((function(t){return e.loadScript(t)})))})):Promise.resolve()},e.prototype.loadPathMappings=function(){var e=this,t=(fn.cdnUrl||fn.ngDest)+"path_mapping.json";return this.http.get(t).toPromise().then((function(t){e.pathMappings=t}),(function(){e.pathMappings={}}))},e.prototype.loadScript=function(e){var t=this;return new Promise((function(n,i){if(t.scripts[e]&&t.scripts[e].loaded)n({script:e,loaded:!0});else{t.scripts[e]||(t.scripts[e]={loaded:!1,src:e});var o=document.createElement("script");o.type="text/javascript",o.async=!1;var r=t.scripts[e].src;(r=t.pathMappings[r]||r).startsWith("http")?o.src=r:o.src=(fn.cdnUrl||fn.ngDest)+r,o.readyState?o.onreadystatechange=function(){"loaded"!==o.readyState&&"complete"!==o.readyState||(o.onreadystatechange=null,t.scripts[e].loaded=!0,n({script:e,loaded:!0}))}:o.onload=function(){t.scripts[e].loaded=!0,n({script:e,loaded:!0})},o.onerror=function(t){return n({script:e,loaded:!1,status:"Loaded"})},document.getElementsByTagName("head")[0].appendChild(o)}}))},e}();gi.\u0275prov=p.\u0275\u0275defineInjectable({factory:function(){return new gi(p.\u0275\u0275inject(u.HttpClient))},token:gi,providedIn:"root"}),gi.decorators=[{type:i.Injectable,args:[{providedIn:"root"}]}],gi.ctorParameters=function(){return[{type:o.HttpClient}]};var vi=function(){function e(){this.customPipes=new Map}return e.prototype.setCustomPipe=function(e,t){this.customPipes.set(e,t)},e.prototype.getCustomPipe=function(e){return this.customPipes.get(e)},e.prototype.hasCustomPipe=function(e){return this.customPipes.has(e)},e}();vi.\u0275prov=p.\u0275\u0275defineInjectable({factory:function(){return new vi},token:vi,providedIn:"root"}),vi.decorators=[{type:i.Injectable,args:[{providedIn:"root"}]}];var yi=function(){function e(){this.HISTORY_HANDLER="replace",this.HISTORY_HANDLER_TYPES={push:"pushState",replace:"replaceState"},this.WIDGET_STATE_KEY="ws"}return e.prototype.setHistoryHandler=function(e){Object.keys(this.HISTORY_HANDLER_TYPES).indexOf(e)>-1&&(this.HISTORY_HANDLER=e)},e.prototype.getNestedPath=function(e,t,n){var i=n||t;return e&&(e.prefabName||e.partialName)?(i=(i=i.length>0?i+"."+(e.prefabName||e.partialName):e.prefabName||e.partialName)+"."+e.containerWidget.name,this.getNestedPath(e.containerWidget.viewParent,t,i)):i.split(".").reverse().join(".")},e.prototype.getStateInformation=function(e){var t;if("url"===e.toLowerCase()){if(t=decodeURIComponent(window.location.href).match(/(wm_state=).*?(&|$)/))return t=t[0].replace("wm_state=",""),this.uriToJson(t)}else"localstorage"===e.toLowerCase()?t=localStorage.getItem(window.location.pathname.replace(/\//g,"")+"_wm_state"):"sessionstorage"===e.toLowerCase()&&(t=sessionStorage.getItem(window.location.pathname.replace(/\//g,"")+"_wm_state"));if(t)return JSON.parse(t)},e.prototype.getWidgetState=function(e,t){if(t=t||this.computeMode(e.statehandler)){var n=this.getStateInformation(t);if(n&&e&&e.getAppInstance().activePageName&&("localstorage"===t.toLowerCase()||"sessionstorage"===t.toLowerCase())&&(n=n[e.getAppInstance().activePageName]),_.get(n,this.WIDGET_STATE_KEY)){var i=this.getNestedPath(e.viewParent,e.getWidget().name);return n[this.WIDGET_STATE_KEY][i]}}},e.prototype.computeMode=function(e){return e?e&&"none"===e.toLowerCase()?void 0:e.toLowerCase():"url"},e.prototype.setWidgetState=function(e,t,n){var i=this.getNestedPath(e.viewParent,e.getWidget().name);(n=n||this.computeMode(e.statehandler))&&this.setStateParams(this.WIDGET_STATE_KEY,i,t,n,e)},e.prototype.removeWidgetState=function(e,t,n){if(n=n||this.computeMode(e.statehandler)){var i=this.getNestedPath(e.viewParent,e.getWidget().name);this.removeStateParam(this.WIDGET_STATE_KEY,i,t,n,e)}},e.prototype.setStateVariable=function(e,t,n){(n=n||this.computeMode(n))&&this.setStateParams("",e,t,n)},e.prototype.getStateVariable=function(e,t){if(t=t||this.computeMode(t)){var n=this.getStateInformation(t);return n?n[e]:void 0}},e.prototype.removeStateVariable=function(e,t){(t=t||this.computeMode(t))&&this.removeStateParam("",e,null,t)},e.prototype.setStateParams=function(e,t,n,i,o){var r,a,s,l,c,p=this.getStateInformation(i);c=o&&p&&o.getAppInstance().activePageName&&("localstorage"===i.toLowerCase()||"sessionstorage"===i.toLowerCase())?p[o.getAppInstance().activePageName]:_.clone(p),e?(c&&!c[e]?c[e]={}:c||((r={})[e]={},c=r),_.isObject(n)&&!_.isArray(n)?(c[e][t]=c[e][t]||{},_.merge(c[e][t],n)):c[e][t]=n):(c&&!c[t]?c[t]={}:c||((a={})[t]={},c=a),_.isObject(n)&&!_.isArray(n)?(c[t]=c[t]||{},_.merge(c[t],n)):c[t]=n),o&&o.getAppInstance().activePageName&&("localstorage"===i.toLowerCase()||"sessionstorage"===i.toLowerCase())&&(p?(p[o.getAppInstance().activePageName]=c,c=p):((s={})[o.getAppInstance().activePageName]=c,c=s));var u=decodeURIComponent(window.location.href);u.indexOf("?")<0?u+="?wm_state=":u.indexOf("wm_state")<0&&(u+="&wm_state="),l=u.replace(/(wm_state=).*?(&|$)/,"$1"+this.jsonToUri(c)+"$2"),"localstorage"!==i.toLowerCase()?"sessionstorage"!==i.toLowerCase()?decodeURIComponent(window.location.href)!==decodeURIComponent(l)&&("push"===this.HISTORY_HANDLER?window.history.pushState({path:l},"",l):"replace"===this.HISTORY_HANDLER&&window.history.replaceState({path:l},"",l)):sessionStorage.setItem(window.location.pathname.replace(/\//g,"")+"_wm_state",JSON.stringify(c)):localStorage.setItem(window.location.pathname.replace(/\//g,"")+"_wm_state",JSON.stringify(c))},e.prototype.removeStateParam=function(e,t,n,i,o){var r,a,s="",l=this.getStateInformation(i);if(a=o&&l&&o.getAppInstance().activePageName&&("localstorage"===i.toLowerCase()||"sessionstorage"===i.toLowerCase())?l[o.getAppInstance().activePageName]:_.clone(l),_.get(a,[e])||_.get(a,t))if(_.get(a,e+"."+t)?(n?delete a[e][t][n]:delete a[e][t],_.isEmpty(a[e][t])&&delete a[e][t],_.isEmpty(a[e])&&delete a[e]):!e&&_.get(a,t)&&delete a[t],o&&o.getAppInstance().activePageName&&("localstorage"===i.toLowerCase()||"sessionstorage"===i.toLowerCase())&&(l?(l[o.getAppInstance().activePageName]=a,a=l):((r={})[o.getAppInstance().activePageName]=a,a=r)),"localstorage"!==i.toLowerCase())if("sessionstorage"!==i.toLowerCase()){var c=decodeURIComponent(window.location.href);_.isEmpty(a)?(s=c.replace(/(wm_state=).*?(&|$)/,"$2"),_.includes(["&","?"],s.charAt(s.length-1))&&(s=s.replace(s.charAt(s.length-1),""))):s=c.replace(/(wm_state=).*?(&|$)/,"$1"+this.jsonToUri(a)+"$2"),window.history.replaceState({path:s},"",s)}else sessionStorage.setItem(window.location.pathname.replace(/\//g,"")+"_wm_state",JSON.stringify(a));else localStorage.setItem(window.location.pathname.replace(/\//g,"")+"_wm_state",JSON.stringify(a))},e.prototype.jsonToUri=function(e){return encodeURIComponent(JSON.stringify(e).replace(/[()'~_!*]/g,(function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})).replace(/\{/g,"(").replace(/\}/g,")").replace(/"/g,"'").replace(/\:/g,"~").replace(/,/g,"_").replace(/\[/g,"!").replace(/\]/g,"*"))},e.prototype.uriToJson=function(e){var t;try{t=JSON.parse(decodeURIComponent(e).replace(/\(/g,"{").replace(/\)/g,"}").replace(/'/g,'"').replace(/~/g,":").replace(/_/g,",").replace(/\!/g,"[").replace(/\*/g,"]"))}catch(e){console.warn(e)}return t},e}();yi.\u0275prov=p.\u0275\u0275defineInjectable({factory:function(){return new yi},token:yi,providedIn:"root"}),yi.decorators=[{type:i.Injectable,args:[{providedIn:"root"}]}];var bi=function(){function e(){}return e.prototype.updateFieldsOnPagination=function(e,t){var n,i="wm-table"===e.widgetType?e.gridData:e.fieldDefs;"wm-table"===e.widgetType&&e.gridOptions.isNavTypeScrollOrOndemand()&&-1!==e.gridOptions.deletedRowIndex&&(i.splice(e.gridOptions.deletedRowIndex,1),e.gridOptions.setDeletedRowIndex(-1)),"wm-table"!==e.widgetType||!e.gridOptions.isNavTypeScrollOrOndemand()||e.gridOptions.lastActionPerformed!==e.gridOptions.ACTIONS.SEARCH_OR_SORT&&e.gridOptions.lastActionPerformed!==e.gridOptions.ACTIONS.FILTER_CRITERIA&&e.gridOptions.lastActionPerformed!==e.gridOptions.ACTIONS.DATASET_UPDATE||(i=[],e.gridOptions.setCurrentPage(1)),n="wm-table"===e.widgetType&&e.gridOptions.showviewlessbutton&&"viewless"===e.gridOptions.mode?e.gridOptions.getCurrentPage():e.currentPage;var o=e.dataNavigator,r=e.pagesize;if(!Ye(i)||o.isFirstPage())i=[],n=1;else if(i.length/r<=o.pageCount){var a=void 0,s=[];if(i.length===n*r&&n+1===o.dn.currentPage)s=t,n++;else if(i.length<n*r){i.length===(n-1)*r&&n-1===o.dn.currentPage?t=[]:o.dataSize<n*r?a=o.dataSize-i.length:(a=n*r-i.length,n++);var l=t.length-a;s=t.slice(l)}else i.length===n*r&&n===o.dn.currentPage&&(s=[]);t=s}return[i="wm-table"!==e.widgetType||e.gridOptions.lastActionPerformed!==e.gridOptions.ACTIONS.DELETE&&e.gridOptions.lastActionPerformed!==e.gridOptions.ACTIONS.EDIT?D(D([],I(i)),I(t)):this.getUniqueRecordsInFieldDef(i,t),n]},e.prototype.getUniqueRecordsInFieldDef=function(e,t){var n=!1;return e.length?t.forEach((function(t){n=!1,e.forEach((function(e){_.isEqual(t,e)&&(n=!0)})),!1===n&&e.push(t)})):e=t,e},e.prototype.bindScrollEvt=function(e,t,n){var i,o,r=this,a=e.dataNavigator,s=e.$element.find(t),l=s.children().first(),c=this,p=0;l.length&&((o=(i=l.scrollParent(!1))[0]===document?document.body:i[0]).scrollHeight>o.clientHeight?(i.each((function(e,t){p=t===document?t.body.scrollTop||$(window).scrollTop():t.scrollTop})).off("scroll.scroll_evt").on("scroll.scroll_evt",(function(t){var i,o,r,s=t.target;s=s===document?s.scrollingElement||document.body:s,"wm-table"===e.widgetType&&e.gridOptions.isNavTypeScrollOrOndemand()&&t.stopPropagation(),i=s.clientHeight,o=s.scrollHeight,r=s===document.body?$(window).scrollTop():s.scrollTop,p<r&&.9*o<r+i&&($(this).off("scroll.scroll_evt"),c.debouncedFetchNextDatasetOnScroll(a,n,e)()),p=r})),s.off("wheel.scroll_evt")):s.on("wheel.scroll_evt",(function(t){"wm-table"===e.widgetType&&e.gridOptions.isNavTypeScrollOrOndemand()&&t.stopPropagation(),t.originalEvent.deltaY>0&&(s.off("wheel.scroll_evt"),r.debouncedFetchNextDatasetOnScroll(a,n,e)())})))},e.prototype.debouncedFetchNextDatasetOnScroll=function(e,t,n){var i=this;return _.debounce((function(){return i.fetchNextDatasetOnScroll(e,n)}),t)},e.prototype.fetchNextDatasetOnScroll=function(e,t){t.variableInflight||("wm-table"===t.widgetType&&(t.gridOptions.setIsNextPageData(!0),t.gridOptions.setIsDataUpdatedByUser(!1)),e.navigatePage("next"))},e.prototype.bindIScrollEvt=function(e,t){var n=this,i=e.$element,o=e.dataNavigator,r=e.app,a=i.closest('[wmsmoothscroll="true"]');if(_.get(a[0],"iscroll"))this.setIscrollHandlers(a[0],o,t);else{var s=r.subscribe("iscroll-update",(function(e){!_.isEmpty(e)&&e.isSameNode(a[0])&&(n.setIscrollHandlers(a[0],o,t),s())}));r.notify("no-iscroll",a[0])}},e.prototype.setIscrollHandlers=function(e,t,n){var i=this,o=0,r=_.get(e.iscroll,"wrapper"),a=e.iscroll;e.iscroll.on("scrollEnd",(function(){var s=r.clientHeight,l=r.scrollHeight,c=Math.abs(e.iscroll.y);o<c&&.9*l<c+s&&(i.debouncedFetchNextDatasetOnScroll(t,n,parent)(),a.indicatorRefresh&&a.indicatorRefresh()),o=c}))},e}();bi.\u0275prov=p.\u0275\u0275defineInjectable({factory:function(){return new bi},token:bi,providedIn:"root"}),bi.decorators=[{type:i.Injectable,args:[{providedIn:"root"}]}];var wi=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[]}},e}();wi.decorators=[{type:i.NgModule,args:[{declarations:[],imports:[o.HttpClientModule],providers:[],bootstrap:[]}]}];var Pi=function(){function e(e,t,n){var i=this;void 0===e&&(e=100),void 0===t&&(t=60),this.maxSize=e,this.maxAge=t,this.onEvict=n,this.cache=new Map,this.evictQueue=[""],this.evictQueue.shift(),this.maxAge>0&&(this.maxAge<=30&&console.warn("Cache age "+this.maxAge+"s is very less. Keep it atleast 30s."),this.maxAge=1e3*this.maxAge,setInterval((function(){var e=Date.now()-i.maxAge,t=i.evictQueue.filter((function(t){return i.cache.get(t).lastAccessedTime<=e}));i.evict(t.length)}),this.maxAge))}return e.prototype.addToEvictQueue=function(e){var t=this.evictQueue.findIndex((function(t){return t===e}));t>=0&&this.evictQueue.splice(t,1),this.evictQueue.push(e)},e.prototype.evict=function(e){void 0===e&&(e=1);for(var t=0;t<e;t++)this.delete(this.evictQueue[0])},e.prototype.keys=function(){return this.cache.keys()},e.prototype.set=function(e,t){if(!_.isNil(t)){var n={instance:t,lastAccessedTime:Date.now()};this.cache.set(e,n),this.addToEvictQueue(e),this.evict(this.evictQueue.length-this.maxSize)}},e.prototype.get=function(e){var t=this.cache.get(e);return t?(t.lastAccessedTime=Date.now(),this.addToEvictQueue(e),t.instance):null},e.prototype.delete=function(e){if(e&&this.cache.has(e)){var t=this.cache.get(e);this.cache.delete(e),this.onEvict&&this.onEvict(e,t.instance);var n=this.evictQueue.findIndex((function(t){return t===e}));n>=0&&this.evictQueue.splice(n,1)}},e.prototype.has=function(e){return this.cache.has(e)},e.prototype.size=function(){return this.evictQueue.length},e.prototype.clear=function(){this.evict(this.evictQueue.length)},e}();e.$appDigest=Ce,e.$invokeWatchers=function(e,t){if(e)Se(t);else{if(fe)return void(fe=!1);Ae()}},e.$parseEvent=oe,e.$parseExpr=ne,e.$unwatch=Pe,e.$watch=we,e.AbstractDialogService=ke,e.AbstractHttpService=Me,e.AbstractI18nService=Le,e.AbstractNavigationService=Ge,e.AbstractSpinnerService=je,e.AbstractToasterService=Fe,e.App=xe,e.AppConstants=En,e.AppDefaults=Ve,e.CURRENCY_INFO={USD:{symbol:"$",name:"US Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"USD",name_plural:"US dollars"},CAD:{symbol:"CA$",name:"Canadian Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"CAD",name_plural:"Canadian dollars"},EUR:{symbol:"\u20ac",name:"Euro",symbol_native:"\u20ac",decimal_digits:2,rounding:0,code:"EUR",name_plural:"euros"},AED:{symbol:"AED",name:"United Arab Emirates Dirham",symbol_native:"\u062f.\u0625.\u200f",decimal_digits:2,rounding:0,code:"AED",name_plural:"UAE dirhams"},AFN:{symbol:"Af",name:"Afghan Afghani",symbol_native:"\u060b",decimal_digits:0,rounding:0,code:"AFN",name_plural:"Afghan Afghanis"},ALL:{symbol:"ALL",name:"Albanian Lek",symbol_native:"Lek",decimal_digits:0,rounding:0,code:"ALL",name_plural:"Albanian lek\xeb"},AMD:{symbol:"AMD",name:"Armenian Dram",symbol_native:"\u0564\u0580.",decimal_digits:0,rounding:0,code:"AMD",name_plural:"Armenian drams"},ARS:{symbol:"AR$",name:"Argentine Peso",symbol_native:"$",decimal_digits:2,rounding:0,code:"ARS",name_plural:"Argentine pesos"},AUD:{symbol:"AU$",name:"Australian Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"AUD",name_plural:"Australian dollars"},AZN:{symbol:"man.",name:"Azerbaijani Manat",symbol_native:"\u043c\u0430\u043d.",decimal_digits:2,rounding:0,code:"AZN",name_plural:"Azerbaijani manats"},BAM:{symbol:"KM",name:"Bosnia-Herzegovina Convertible Mark",symbol_native:"KM",decimal_digits:2,rounding:0,code:"BAM",name_plural:"Bosnia-Herzegovina convertible marks"},BDT:{symbol:"Tk",name:"Bangladeshi Taka",symbol_native:"\u09f3",decimal_digits:2,rounding:0,code:"BDT",name_plural:"Bangladeshi takas"},BGN:{symbol:"BGN",name:"Bulgarian Lev",symbol_native:"\u043b\u0432.",decimal_digits:2,rounding:0,code:"BGN",name_plural:"Bulgarian leva"},BHD:{symbol:"BD",name:"Bahraini Dinar",symbol_native:"\u062f.\u0628.\u200f",decimal_digits:3,rounding:0,code:"BHD",name_plural:"Bahraini dinars"},BIF:{symbol:"FBu",name:"Burundian Franc",symbol_native:"FBu",decimal_digits:0,rounding:0,code:"BIF",name_plural:"Burundian francs"},BND:{symbol:"BN$",name:"Brunei Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"BND",name_plural:"Brunei dollars"},BOB:{symbol:"Bs",name:"Bolivian Boliviano",symbol_native:"Bs",decimal_digits:2,rounding:0,code:"BOB",name_plural:"Bolivian bolivianos"},BRL:{symbol:"R$",name:"Brazilian Real",symbol_native:"R$",decimal_digits:2,rounding:0,code:"BRL",name_plural:"Brazilian reals"},BWP:{symbol:"BWP",name:"Botswanan Pula",symbol_native:"P",decimal_digits:2,rounding:0,code:"BWP",name_plural:"Botswanan pulas"},BYR:{symbol:"BYR",name:"Belarusian Ruble",symbol_native:"BYR",decimal_digits:0,rounding:0,code:"BYR",name_plural:"Belarusian rubles"},BZD:{symbol:"BZ$",name:"Belize Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"BZD",name_plural:"Belize dollars"},CDF:{symbol:"CDF",name:"Congolese Franc",symbol_native:"FrCD",decimal_digits:2,rounding:0,code:"CDF",name_plural:"Congolese francs"},CHF:{symbol:"CHF",name:"Swiss Franc",symbol_native:"CHF",decimal_digits:2,rounding:.05,code:"CHF",name_plural:"Swiss francs"},CLP:{symbol:"CL$",name:"Chilean Peso",symbol_native:"$",decimal_digits:0,rounding:0,code:"CLP",name_plural:"Chilean pesos"},CNY:{symbol:"CN\xa5",name:"Chinese Yuan",symbol_native:"CN\xa5",decimal_digits:2,rounding:0,code:"CNY",name_plural:"Chinese yuan"},COP:{symbol:"CO$",name:"Colombian Peso",symbol_native:"$",decimal_digits:0,rounding:0,code:"COP",name_plural:"Colombian pesos"},CRC:{symbol:"\u20a1",name:"Costa Rican Col\xf3n",symbol_native:"\u20a1",decimal_digits:0,rounding:0,code:"CRC",name_plural:"Costa Rican col\xf3ns"},CVE:{symbol:"CV$",name:"Cape Verdean Escudo",symbol_native:"CV$",decimal_digits:2,rounding:0,code:"CVE",name_plural:"Cape Verdean escudos"},CZK:{symbol:"K\u010d",name:"Czech Republic Koruna",symbol_native:"K\u010d",decimal_digits:2,rounding:0,code:"CZK",name_plural:"Czech Republic korunas"},DJF:{symbol:"Fdj",name:"Djiboutian Franc",symbol_native:"Fdj",decimal_digits:0,rounding:0,code:"DJF",name_plural:"Djiboutian francs"},DKK:{symbol:"Dkr",name:"Danish Krone",symbol_native:"kr",decimal_digits:2,rounding:0,code:"DKK",name_plural:"Danish kroner"},DOP:{symbol:"RD$",name:"Dominican Peso",symbol_native:"RD$",decimal_digits:2,rounding:0,code:"DOP",name_plural:"Dominican pesos"},DZD:{symbol:"DA",name:"Algerian Dinar",symbol_native:"\u062f.\u062c.\u200f",decimal_digits:2,rounding:0,code:"DZD",name_plural:"Algerian dinars"},EEK:{symbol:"Ekr",name:"Estonian Kroon",symbol_native:"kr",decimal_digits:2,rounding:0,code:"EEK",name_plural:"Estonian kroons"},EGP:{symbol:"EGP",name:"Egyptian Pound",symbol_native:"\u062c.\u0645.\u200f",decimal_digits:2,rounding:0,code:"EGP",name_plural:"Egyptian pounds"},ERN:{symbol:"Nfk",name:"Eritrean Nakfa",symbol_native:"Nfk",decimal_digits:2,rounding:0,code:"ERN",name_plural:"Eritrean nakfas"},ETB:{symbol:"Br",name:"Ethiopian Birr",symbol_native:"Br",decimal_digits:2,rounding:0,code:"ETB",name_plural:"Ethiopian birrs"},GBP:{symbol:"\xa3",name:"British Pound Sterling",symbol_native:"\xa3",decimal_digits:2,rounding:0,code:"GBP",name_plural:"British pounds sterling"},GEL:{symbol:"GEL",name:"Georgian Lari",symbol_native:"GEL",decimal_digits:2,rounding:0,code:"GEL",name_plural:"Georgian laris"},GHS:{symbol:"GH\u20b5",name:"Ghanaian Cedi",symbol_native:"GH\u20b5",decimal_digits:2,rounding:0,code:"GHS",name_plural:"Ghanaian cedis"},GNF:{symbol:"FG",name:"Guinean Franc",symbol_native:"FG",decimal_digits:0,rounding:0,code:"GNF",name_plural:"Guinean francs"},GTQ:{symbol:"GTQ",name:"Guatemalan Quetzal",symbol_native:"Q",decimal_digits:2,rounding:0,code:"GTQ",name_plural:"Guatemalan quetzals"},HKD:{symbol:"HK$",name:"Hong Kong Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"HKD",name_plural:"Hong Kong dollars"},HNL:{symbol:"HNL",name:"Honduran Lempira",symbol_native:"L",decimal_digits:2,rounding:0,code:"HNL",name_plural:"Honduran lempiras"},HRK:{symbol:"kn",name:"Croatian Kuna",symbol_native:"kn",decimal_digits:2,rounding:0,code:"HRK",name_plural:"Croatian kunas"},HUF:{symbol:"Ft",name:"Hungarian Forint",symbol_native:"Ft",decimal_digits:0,rounding:0,code:"HUF",name_plural:"Hungarian forints"},IDR:{symbol:"Rp",name:"Indonesian Rupiah",symbol_native:"Rp",decimal_digits:0,rounding:0,code:"IDR",name_plural:"Indonesian rupiahs"},ILS:{symbol:"\u20aa",name:"Israeli New Sheqel",symbol_native:"\u20aa",decimal_digits:2,rounding:0,code:"ILS",name_plural:"Israeli new sheqels"},INR:{symbol:"\u20b9",name:"Indian Rupee",symbol_native:"\u099f\u0995\u09be",decimal_digits:2,rounding:0,code:"INR",name_plural:"Indian rupees"},IQD:{symbol:"IQD",name:"Iraqi Dinar",symbol_native:"\u062f.\u0639.\u200f",decimal_digits:0,rounding:0,code:"IQD",name_plural:"Iraqi dinars"},IRR:{symbol:"IRR",name:"Iranian Rial",symbol_native:"\ufdfc",decimal_digits:0,rounding:0,code:"IRR",name_plural:"Iranian rials"},ISK:{symbol:"Ikr",name:"Icelandic Kr\xf3na",symbol_native:"kr",decimal_digits:0,rounding:0,code:"ISK",name_plural:"Icelandic kr\xf3nur"},JMD:{symbol:"J$",name:"Jamaican Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"JMD",name_plural:"Jamaican dollars"},JOD:{symbol:"JD",name:"Jordanian Dinar",symbol_native:"\u062f.\u0623.\u200f",decimal_digits:3,rounding:0,code:"JOD",name_plural:"Jordanian dinars"},JPY:{symbol:"\xa5",name:"Japanese Yen",symbol_native:"\uffe5",decimal_digits:0,rounding:0,code:"JPY",name_plural:"Japanese yen"},KES:{symbol:"Ksh",name:"Kenyan Shilling",symbol_native:"Ksh",decimal_digits:2,rounding:0,code:"KES",name_plural:"Kenyan shillings"},KHR:{symbol:"KHR",name:"Cambodian Riel",symbol_native:"\u17db",decimal_digits:2,rounding:0,code:"KHR",name_plural:"Cambodian riels"},KMF:{symbol:"CF",name:"Comorian Franc",symbol_native:"FC",decimal_digits:0,rounding:0,code:"KMF",name_plural:"Comorian francs"},KRW:{symbol:"\u20a9",name:"South Korean Won",symbol_native:"\u20a9",decimal_digits:0,rounding:0,code:"KRW",name_plural:"South Korean won"},KWD:{symbol:"KD",name:"Kuwaiti Dinar",symbol_native:"\u062f.\u0643.\u200f",decimal_digits:3,rounding:0,code:"KWD",name_plural:"Kuwaiti dinars"},KZT:{symbol:"KZT",name:"Kazakhstani Tenge",symbol_native:"\u0442\u04a3\u0433.",decimal_digits:2,rounding:0,code:"KZT",name_plural:"Kazakhstani tenges"},LBP:{symbol:"LB\xa3",name:"Lebanese Pound",symbol_native:"\u0644.\u0644.\u200f",decimal_digits:0,rounding:0,code:"LBP",name_plural:"Lebanese pounds"},LKR:{symbol:"SLRs",name:"Sri Lankan Rupee",symbol_native:"SL Re",decimal_digits:2,rounding:0,code:"LKR",name_plural:"Sri Lankan rupees"},LTL:{symbol:"Lt",name:"Lithuanian Litas",symbol_native:"Lt",decimal_digits:2,rounding:0,code:"LTL",name_plural:"Lithuanian litai"},LVL:{symbol:"Ls",name:"Latvian Lats",symbol_native:"Ls",decimal_digits:2,rounding:0,code:"LVL",name_plural:"Latvian lati"},LYD:{symbol:"LD",name:"Libyan Dinar",symbol_native:"\u062f.\u0644.\u200f",decimal_digits:3,rounding:0,code:"LYD",name_plural:"Libyan dinars"},MAD:{symbol:"MAD",name:"Moroccan Dirham",symbol_native:"\u062f.\u0645.\u200f",decimal_digits:2,rounding:0,code:"MAD",name_plural:"Moroccan dirhams"},MDL:{symbol:"MDL",name:"Moldovan Leu",symbol_native:"MDL",decimal_digits:2,rounding:0,code:"MDL",name_plural:"Moldovan lei"},MGA:{symbol:"MGA",name:"Malagasy Ariary",symbol_native:"MGA",decimal_digits:0,rounding:0,code:"MGA",name_plural:"Malagasy Ariaries"},MKD:{symbol:"MKD",name:"Macedonian Denar",symbol_native:"MKD",decimal_digits:2,rounding:0,code:"MKD",name_plural:"Macedonian denari"},MMK:{symbol:"MMK",name:"Myanma Kyat",symbol_native:"K",decimal_digits:0,rounding:0,code:"MMK",name_plural:"Myanma kyats"},MOP:{symbol:"MOP$",name:"Macanese Pataca",symbol_native:"MOP$",decimal_digits:2,rounding:0,code:"MOP",name_plural:"Macanese patacas"},MUR:{symbol:"MURs",name:"Mauritian Rupee",symbol_native:"MURs",decimal_digits:0,rounding:0,code:"MUR",name_plural:"Mauritian rupees"},MXN:{symbol:"MX$",name:"Mexican Peso",symbol_native:"$",decimal_digits:2,rounding:0,code:"MXN",name_plural:"Mexican pesos"},MYR:{symbol:"RM",name:"Malaysian Ringgit",symbol_native:"RM",decimal_digits:2,rounding:0,code:"MYR",name_plural:"Malaysian ringgits"},MZN:{symbol:"MTn",name:"Mozambican Metical",symbol_native:"MTn",decimal_digits:2,rounding:0,code:"MZN",name_plural:"Mozambican meticals"},NAD:{symbol:"N$",name:"Namibian Dollar",symbol_native:"N$",decimal_digits:2,rounding:0,code:"NAD",name_plural:"Namibian dollars"},NGN:{symbol:"\u20a6",name:"Nigerian Naira",symbol_native:"\u20a6",decimal_digits:2,rounding:0,code:"NGN",name_plural:"Nigerian nairas"},NIO:{symbol:"C$",name:"Nicaraguan C\xf3rdoba",symbol_native:"C$",decimal_digits:2,rounding:0,code:"NIO",name_plural:"Nicaraguan c\xf3rdobas"},NOK:{symbol:"Nkr",name:"Norwegian Krone",symbol_native:"kr",decimal_digits:2,rounding:0,code:"NOK",name_plural:"Norwegian kroner"},NPR:{symbol:"NPRs",name:"Nepalese Rupee",symbol_native:"\u0928\u0947\u0930\u0942",decimal_digits:2,rounding:0,code:"NPR",name_plural:"Nepalese rupees"},NZD:{symbol:"NZ$",name:"New Zealand Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"NZD",name_plural:"New Zealand dollars"},OMR:{symbol:"OMR",name:"Omani Rial",symbol_native:"\u0631.\u0639.\u200f",decimal_digits:3,rounding:0,code:"OMR",name_plural:"Omani rials"},PAB:{symbol:"B/.",name:"Panamanian Balboa",symbol_native:"B/.",decimal_digits:2,rounding:0,code:"PAB",name_plural:"Panamanian balboas"},PEN:{symbol:"S/.",name:"Peruvian Nuevo Sol",symbol_native:"S/.",decimal_digits:2,rounding:0,code:"PEN",name_plural:"Peruvian nuevos soles"},PHP:{symbol:"\u20b1",name:"Philippine Peso",symbol_native:"\u20b1",decimal_digits:2,rounding:0,code:"PHP",name_plural:"Philippine pesos"},PKR:{symbol:"PKRs",name:"Pakistani Rupee",symbol_native:"\u20a8",decimal_digits:0,rounding:0,code:"PKR",name_plural:"Pakistani rupees"},PLN:{symbol:"z\u0142",name:"Polish Zloty",symbol_native:"z\u0142",decimal_digits:2,rounding:0,code:"PLN",name_plural:"Polish zlotys"},PYG:{symbol:"\u20b2",name:"Paraguayan Guarani",symbol_native:"\u20b2",decimal_digits:0,rounding:0,code:"PYG",name_plural:"Paraguayan guaranis"},QAR:{symbol:"QR",name:"Qatari Rial",symbol_native:"\u0631.\u0642.\u200f",decimal_digits:2,rounding:0,code:"QAR",name_plural:"Qatari rials"},RON:{symbol:"RON",name:"Romanian Leu",symbol_native:"RON",decimal_digits:2,rounding:0,code:"RON",name_plural:"Romanian lei"},RSD:{symbol:"din.",name:"Serbian Dinar",symbol_native:"\u0434\u0438\u043d.",decimal_digits:0,rounding:0,code:"RSD",name_plural:"Serbian dinars"},RUB:{symbol:"RUB",name:"Russian Ruble",symbol_native:"\u0440\u0443\u0431.",decimal_digits:2,rounding:0,code:"RUB",name_plural:"Russian rubles"},RWF:{symbol:"RWF",name:"Rwandan Franc",symbol_native:"FR",decimal_digits:0,rounding:0,code:"RWF",name_plural:"Rwandan francs"},SAR:{symbol:"SR",name:"Saudi Riyal",symbol_native:"\u0631.\u0633.\u200f",decimal_digits:2,rounding:0,code:"SAR",name_plural:"Saudi riyals"},SDG:{symbol:"SDG",name:"Sudanese Pound",symbol_native:"SDG",decimal_digits:2,rounding:0,code:"SDG",name_plural:"Sudanese pounds"},SEK:{symbol:"Skr",name:"Swedish Krona",symbol_native:"kr",decimal_digits:2,rounding:0,code:"SEK",name_plural:"Swedish kronor"},SGD:{symbol:"S$",name:"Singapore Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"SGD",name_plural:"Singapore dollars"},SOS:{symbol:"Ssh",name:"Somali Shilling",symbol_native:"Ssh",decimal_digits:0,rounding:0,code:"SOS",name_plural:"Somali shillings"},SYP:{symbol:"SY\xa3",name:"Syrian Pound",symbol_native:"\u0644.\u0633.\u200f",decimal_digits:0,rounding:0,code:"SYP",name_plural:"Syrian pounds"},THB:{symbol:"\u0e3f",name:"Thai Baht",symbol_native:"\u0e3f",decimal_digits:2,rounding:0,code:"THB",name_plural:"Thai baht"},TND:{symbol:"DT",name:"Tunisian Dinar",symbol_native:"\u062f.\u062a.\u200f",decimal_digits:3,rounding:0,code:"TND",name_plural:"Tunisian dinars"},TOP:{symbol:"T$",name:"Tongan Pa\u02bbanga",symbol_native:"T$",decimal_digits:2,rounding:0,code:"TOP",name_plural:"Tongan pa\u02bbanga"},TRY:{symbol:"TL",name:"Turkish Lira",symbol_native:"TL",decimal_digits:2,rounding:0,code:"TRY",name_plural:"Turkish Lira"},TTD:{symbol:"TT$",name:"Trinidad and Tobago Dollar",symbol_native:"$",decimal_digits:2,rounding:0,code:"TTD",name_plural:"Trinidad and Tobago dollars"},TWD:{symbol:"NT$",name:"New Taiwan Dollar",symbol_native:"NT$",decimal_digits:2,rounding:0,code:"TWD",name_plural:"New Taiwan dollars"},TZS:{symbol:"TSh",name:"Tanzanian Shilling",symbol_native:"TSh",decimal_digits:0,rounding:0,code:"TZS",name_plural:"Tanzanian shillings"},UAH:{symbol:"\u20b4",name:"Ukrainian Hryvnia",symbol_native:"\u20b4",decimal_digits:2,rounding:0,code:"UAH",name_plural:"Ukrainian hryvnias"},UGX:{symbol:"USh",name:"Ugandan Shilling",symbol_native:"USh",decimal_digits:0,rounding:0,code:"UGX",name_plural:"Ugandan shillings"},UYU:{symbol:"$U",name:"Uruguayan Peso",symbol_native:"$",decimal_digits:2,rounding:0,code:"UYU",name_plural:"Uruguayan pesos"},UZS:{symbol:"UZS",name:"Uzbekistan Som",symbol_native:"UZS",decimal_digits:0,rounding:0,code:"UZS",name_plural:"Uzbekistan som"},VEF:{symbol:"Bs.F.",name:"Venezuelan Bol\xedvar",symbol_native:"Bs.F.",decimal_digits:2,rounding:0,code:"VEF",name_plural:"Venezuelan bol\xedvars"},VND:{symbol:"\u20ab",name:"Vietnamese Dong",symbol_native:"\u20ab",decimal_digits:0,rounding:0,code:"VND",name_plural:"Vietnamese dong"},XAF:{symbol:"FCFA",name:"CFA Franc BEAC",symbol_native:"FCFA",decimal_digits:0,rounding:0,code:"XAF",name_plural:"CFA francs BEAC"},XOF:{symbol:"CFA",name:"CFA Franc BCEAO",symbol_native:"CFA",decimal_digits:0,rounding:0,code:"XOF",name_plural:"CFA francs BCEAO"},YER:{symbol:"YR",name:"Yemeni Rial",symbol_native:"\u0631.\u064a.\u200f",decimal_digits:0,rounding:0,code:"YER",name_plural:"Yemeni rials"},ZAR:{symbol:"R",name:"South African Rand",symbol_native:"R",decimal_digits:2,rounding:0,code:"ZAR",name_plural:"South African rand"},ZMK:{symbol:"ZK",name:"Zambian Kwacha",symbol_native:"ZK",decimal_digits:0,rounding:0,code:"ZMK",name_plural:"Zambian kwachas"}},e.ConstantService=ui,e.CoreModule=wi,e.CustomPipeManager=vi,e.DataSource=Ne,e.DynamicComponentRefProvider=$e,e.EventNotifier=si,e.FIRST_TIME_WATCH=de,e.FieldTypeService=hi,e.FieldWidgetService=mi,e.IDGenerator=F,e.IDataSource=De,e.LRUCache=Pi,e.PaginationService=bi,e.PartialRefProvider=Ue,e.ScriptLoaderService=gi,e.ScriptStore=fi,e.StatePersistence=yi,e.UserDefinedExecutionContext=Be,e.UtilsService=di,e.VALIDATOR=ti,e.Viewport=pi,e._WM_APP_PROJECT=fn,e.addClass=S,e.addEventListenerOnElement=Dt,e.addForIdAttributes=Wn,e.adjustContainerPosition=qn,e.adjustContainerRightEdges=zn,e.appendNode=function(e,t,n){var i=function(){return t.appendChild(e)};n?i():P(i)},e.appendScriptToHead=ii,e.checkIsCustomPipeExpression=g,e.closePopover=Kn,e.convertToBlob=On,e.createCSSRule=Dn,e.createElement=function(e,t,n){var i=document.createElement(e);return t&&Object.keys(t).forEach((function(e){T(i,e,t[e],n)})),i},e.deHyphenate=vt,e.debounce=ve,e.defer=Mn,e.detectChanges=Qn,e.encodeUrl=pt,e.encodeUrlParams=ut,e.executePromiseChain=Ln,e.extendProto=Gn,e.extractCurrentItemExpr=Zn,e.extractType=$t,e.fetchContent=Rn,e.findRootContainer=ei,e.findValueOf=Vt,e.generateGUId=Ft,e.getAbortableDefer=In,e.getAndroidVersion=lt,e.getAppSetting=oi,e.getBlob=en,e.getClonedObject=Nt,e.getDatasourceFromExpr=Jn,e.getDateObj=It,e.getDisplayDateTimeFormat=Un,e.getEvaluatedExprValue=Pt,e.getFiles=xt,e.getFnByExpr=ae,e.getFnForBindExpr=le,e.getFnForEventExpr=ce,e.getFormWidgetTemplate=function(t,n,i,o){var r;void 0===o&&(o={});var a=i.get("updateon"),s=a?'updateon="'+a+'"':"";switch(t){case e.FormWidgetType.AUTOCOMPLETE:case e.FormWidgetType.TYPEAHEAD:r='<div wmSearch type="autocomplete" debouncetime="'+i.get("debouncetime")+'" '+n+"></div>";break;case e.FormWidgetType.CHECKBOX:r="<div wmCheckbox "+n+" "+("true"===i.get("required")?"required=true":"")+"></div>";break;case e.FormWidgetType.CHECKBOXSET:r='<ul role="group" wmCheckboxset '+n+" "+("true"===i.get("required")?"required=true":"")+"></ul>";break;case e.FormWidgetType.CHIPS:r='<ul wmChips role="input" debouncetime="'+i.get("debouncetime")+'" '+n+"></ul>";break;case e.FormWidgetType.COLORPICKER:r="<div wmColorPicker "+("true"===i.get("required")?"required=true":"")+" "+n+"></div>";break;case e.FormWidgetType.CURRENCY:r="<div wmCurrency "+("true"===i.get("required")?"required=true":"")+" "+s+" "+n+"></div>";break;case e.FormWidgetType.DATE:r="<div wmDate "+("true"===i.get("required")?"required=true":"")+' dataentrymode="'+i.get("dataentrymode")+'" '+n+"></div>";break;case e.FormWidgetType.DATETIME:r="<div wmDateTime "+("true"===i.get("required")?"required=true":"")+' dataentrymode="'+i.get("dataentrymode")+'" '+n+"></div>";break;case e.FormWidgetType.NUMBER:r="<div wmNumber "+n+" "+("true"===i.get("required")?"required=true":"")+' type="number" aria-label="Only numbers" '+s+"></div>";break;case e.FormWidgetType.PASSWORD:r="<wm-input "+n+" "+("true"===i.get("required")?"required=true":"")+' type="password" aria-label="Enter password" '+s+"></wm-input>";break;case e.FormWidgetType.RADIOSET:r='<ul role="radiogroup" wmRadioset '+n+"></ul>";break;case e.FormWidgetType.RATING:r="<div wmRating "+n+"></div>";break;case e.FormWidgetType.RICHTEXT:r='<div wmRichTextEditor role="textbox" '+n+"></div>";break;case e.FormWidgetType.SELECT:r="<wm-select "+("true"===i.get("required")?"required=true":"")+" "+n+"></wm-select>";break;case e.FormWidgetType.TOGGLE:r="<div wmCheckbox "+n+" "+("true"===i.get("required")?"required=true":"")+' type="toggle" role="checkbox" aria-label="Toggle button"></div>';break;case e.FormWidgetType.SLIDER:r="<div wmSlider "+n+"></div>";break;case e.FormWidgetType.SWITCH:r="<div wmSwitch "+n+"></div>";break;case e.FormWidgetType.TEXT:var l=o.inputType||"inputtype";r="<wm-input "+n+" "+("true"===i.get("required")?"required=true":"")+' type="'+(i.get(l)||"text")+'" '+s+"></wm-input>";break;case e.FormWidgetType.TEXTAREA:r="<wm-textarea "+n+" "+("true"===i.get("required")?"required=true":"")+' role="textbox" '+s+"></wm-textarea>";break;case e.FormWidgetType.TIME:r="<div wmTime "+("true"===i.get("required")?"required=true":"")+' dataentrymode="'+i.get("dataentrymode")+'" '+n+"></div>";break;case e.FormWidgetType.TIMESTAMP:r="<div wmDateTime "+("true"===i.get("required")?"required=true":"")+' dataentrymode="'+i.get("dataentrymode")+'" '+n+' role="input"></div>';break;case e.FormWidgetType.UPLOAD:var c=o.counter,p=o.pCounter,u=o.uploadProps,h=d(i,c,u&&u.name);r=u?'<form name="'+u.formName+'" '+n+'>\n <input focus-target class="file-upload" type="file" name="'+u.name+'" '+h+"/>\n </form>":'<a class="form-control-static" href="{{'+c+'.href}}" target="_blank" *ngIf="'+c+".filetype === 'image' && "+c+'.href">\n <img style="height:2em" class="wi wi-file" [src]="'+c+'.href"/></a>\n <a class="form-control-static" target="_blank" href="{{'+c+'.href}}" *ngIf="'+c+".filetype !== 'image' && "+c+'.href">\n <i class="wi wi-file"></i></a>\n <input '+n+' class="app-blob-upload" [ngClass]="{\'file-readonly\': '+c+'.readonly}" '+h+'\n [required]="'+c+'.required" type="file" name="'+(i.get("key")||i.get("name"))+'_formWidget" [readonly]="'+c+'.readonly"\n [class.hidden]="!'+p+'.isUpdateMode" [accept]="'+c+'.permitted">';break;default:r="<wm-input "+n+" "+("true"===i.get("required")?"required=true":"")+' type="text" '+s+"></wm-input>"}return r},e.getFormattedDate=At,e.getMomentLocaleObject=dn,e.getNativeDateObject=Zt,e.getNgModelAttr=function(e){return e.has("formControlName")||e.has("formControlName.bind")?"":"ngModel"},e.getRequiredFormWidget=function(t){switch(t){case e.FormWidgetType.AUTOCOMPLETE:case e.FormWidgetType.TYPEAHEAD:return"wm-search";case e.FormWidgetType.CHIPS:return"wm-chips";case e.FormWidgetType.COLORPICKER:return"wm-colorpicker";case e.FormWidgetType.CURRENCY:return"wm-currency";case e.FormWidgetType.DATE:return"wm-date";case e.FormWidgetType.DATETIME:return"wm-datetime";case e.FormWidgetType.TIME:case e.FormWidgetType.TIMESTAMP:return"wm-time";case e.FormWidgetType.RATING:return"wm-rating";case e.FormWidgetType.RICHTEXT:return"wm-richtexteditor";case e.FormWidgetType.SLIDER:return"wm-slider";default:return"wm-text"}},e.getResourceURL=Tt,e.getRouteNameFromLink=xn,e.getRowActionAttrs=function(e){var t="";return e.forEach((function(e,n){var i=y.get(n);i&&(t+=i+'="'+e+'" ')})),t},e.getSessionStorageItem=vn,e.getUrlParams=Nn,e.getValidDateObject=Jt,e.getValidJSON=Bt,e.getWebkitTraslationMatrix=Yn,e.getWmProjectProperties=x,e.hasCordova=Sn,e.hasOffsetStr=Ct,e.initCaps=dt,e.insertAfter=function(e,t,n){var i=function(){return t.parentNode.insertBefore(e,t.nextSibling)};n?i():P(i)},e.insertBefore=function(e,t,n){var i=function(){return t.parentNode.insertBefore(e,t)};n?i():P(i)},e.isAndroid=Je,e.isAndroidTablet=Ze,e.isAppleProduct=kn,e.isArray=bn,e.isAudioFile=Ot,e.isBoolean=_n,e.isChangeFromWatch=function(){return _e},e.isDataSourceEqual=Fn,e.isDateTimeType=Kt,e.isDefined=Ye,e.isElementInViewport=zt,e.isEmptyObject=Wt,e.isEqualWithFields=tn,e.isFirstTimeChange=function(e){return e===de},e.isIE=Xe,e.isImageFile=_t,e.isInsecureContentRequest=bt,e.isIos=it,e.isIpad=nt,e.isIphone=et,e.isIpod=tt,e.isKitkatDevice=ct,e.isLargeTabletLandscape=ot,e.isLargeTabletPortrait=rt,e.isMobile=at,e.isMobileApp=st,e.isNumber=Pn,e.isNumberType=Ut,e.isObject=Ke,e.isPageable=Ht,e.isString=wn,e.isValidWebURL=Et,e.isVideoFile=St,e.loadScript=hn,e.loadScripts=mn,e.loadStyleSheet=ln,e.loadStyleSheets=cn,e.muteWatchers=function(){ge=!0},e.noop=yn,e.openLink=Tn,e.periodSeparate=ft,e.prettifyLabel=gt,e.prettifyLabels=yt,e.processFilterExpBindNode=Bn,e.registerFnByExpr=function(e,t,n){t.usedPipes=n||[],re.set(e,t)},e.removeAttr=function(e,t,n){var i=function(){return e.removeAttribute(t)};n?i():P(i)},e.removeClass=O,e.removeExtraSlashes=Vn,e.removeNode=function(e,t){var n=function(){return e.remove()};t?n():P(n)},e.replace=Yt,e.replaceAt=mt,e.resetChangeFromWatch=Ee,e.retryIfFails=Cn,e.scrollToElement=qt,e.setAppRef=function(e){he=e},e.setAttr=T,e.setCSS=E,e.setCSSFromObj=function(e,t,n){Object.keys(t||{}).forEach((function(i){return E(e,i,t[i],n)}))},e.setHtml=function(e,t,n){var i=function(){return e.innerHTML=t};n?i():P(i)},e.setListClass=ri,e.setNgZone=function(e){return me=e},e.setPipeProvider=function(e){M=e},e.setProperty=function(e,t,n,i){var o=function(){return e[t]=n};i?o():P(o)},e.setSessionStorageItem=gn,e.setTranslation3dPosition=Hn,e.setWmProjectProperties=function(e){Object.setPrototypeOf(N,e)},e.spaceSeparate=ht,e.stringStartsWith=wt,e.switchClass=function(e,t,n,i){void 0===t&&(t=""),void 0===n&&(n=""),O(e,n,i),S(e,t,i)},e.toBoolean=Qe,e.toDimension=function(e){return e==+e?e+"px":e},e.toPromise=An,e.toggleClass=function(e,t,n,i){n?S(e,t,i):O(e,t,i)},e.transformFileURI=ni,e.triggerFn=Rt,e.triggerItemAction=Xn,e.unMuteWatchers=function(){ge=!1,Se()},e.updateTemplateAttrs=v,e.validateAccessRoles=jt,e.validateDataSourceCtx=jn,e.xmlToJson=Gt,e["\u02750"]=h,e["\u02751"]=f,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define("@wm/swipey",["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).swipey={})}(this,(function(e){"use strict";var t=function(){function e(){this._isGesturesEnabled=!0}return e.prototype.bindEvents=function(){return window.PointerEvent?["pointer"]:["touch"]},e.prototype.bounds=function(e,t){return{}},e.prototype.context=function(){return{}},e.prototype.direction=function(){return $.fn.swipey.DIRECTIONS.HORIZONTAL},e.prototype.setGesturesEnabled=function(e){this._isGesturesEnabled=e},e.prototype.isGesturesEnabled=function(){return this._isGesturesEnabled},e.prototype.goToLower=function(e){this._$ele.swipeAnimation("gotoLower",e)},e.prototype.goToUpper=function(e){this._$ele.swipeAnimation("gotoUpper",e)},e.prototype.onAnimation=function(e,t){},e.prototype.onUpper=function(e){},e.prototype.onLower=function(e){},e.prototype.threshold=function(){return 30},e.prototype.init=function(e,t){this._$ele=e,e.swipeAnimation({animation:this.animation(),target:t,bounds:this.bounds.bind(this),bindEvents:this.bindEvents(),context:this.context.bind(this),direction:this.direction(),enableGestures:this.isGesturesEnabled.bind(this),onAnimation:this.onAnimation.bind(this),onLower:this.onLower.bind(this),onUpper:this.onUpper.bind(this),threshold:this.threshold(),disableMouse:!0})},e}();e.SwipeAnimation=t,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/compiler"),require("@wm/core")):"function"==typeof define&&define.amd?define("@wm/transpiler",["exports","@angular/compiler","@wm/core"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.transpiler={}),e.ng.compiler,e.wm.core)}(this,(function(e,t,n){"use strict";
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -40,7 +40,7 @@
40
40
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
41
41
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
42
42
  PERFORMANCE OF THIS SOFTWARE.
43
- ***************************************************************************** */var u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function h(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))}function m(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}Object.create;function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function v(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var y=function(){},b=function(){},w=new t.InjectionToken("Context Provider Reference"),P=new Set([i.FormWidgetType.SELECT,i.FormWidgetType.CHECKBOXSET,i.FormWidgetType.RADIOSET,i.FormWidgetType.SWITCH,i.FormWidgetType.AUTOCOMPLETE,i.FormWidgetType.CHIPS,i.FormWidgetType.TYPEAHEAD,i.FormWidgetType.RATING]),O=function(e){var t,n,i,o,r,a,s,l,c,p="";for(e=e.replace(/\$\[data\[\$i\]/g,"$[__1"),i=0;i<e.length;i++)if(t=e[i],n=e[i+1],"$"===t&&"["===n){for(a=1,c=!1,s=!1,o=i+2;o<e.length;o++)if(" "!==(r=e[o])&&(c||(s='"'===e[o]||"'"===e[o],c=!0),"["===r?a++:"]"===r&&a--,!a)){l=e.substring(i+2,o),p+=s?"__1["+l+"]":l;break}i=o}else p+=t;return p},S=function(e,t){var n;return t?(t.replace(/\[(\w+)\]/g,".$1").split(".").forEach((function(t){n=n&&n[t]||(_.isNull(e)?e:e[t])})),n):e},E=function(e,t,n){var o,r=t.field,a=t.expression,s=t.bindExpression;return s?(o=s.replace("bind:",""),i.checkIsCustomPipeExpression(o)&&(o+=": __1"),o=O(o)):o=a||r,s||a?i.$parseExpr(o)(n,Object.assign({},e,{__1:e})):_.get(e,r)},T=function(e,t){return!(!e||!t)&&(t=-1===t.indexOf("?")?t:t.substring(0,t.indexOf("?")),e=-1===e.indexOf("?")?e:e.substring(0,e.indexOf("?")),new RegExp("^(#/|#)"+t+"$").test(e))},R=function(e,t){return e.some((function(e){return!!T(e.link,t)||(e.children?R(e.children,t):void 0)}))},A=function(e){return P.has(e)},C=function(e,t,n){return i.isValidWebURL(e)||(e||(e=n||"resources/images/imagelists/default-image.png"),e=t?i.encodeUrl(e):e,i.stringStartsWith(e,"services/prefabs")),e},I=function(e){return""===e||"none"===e?e:"url("+C(e)+")"};function D(e,n,i){return{provide:n,useExisting:t.forwardRef((function(){return e})),multi:i}}function N(e){return D(e,y)}var x,k=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.join("_")},M={number:["number","integer","big_integer","short","float","big_decimal","double","long","byte"],string:["string","text"],character:["character"],date:["date","time","timestamp","datetime"]},L={number:["exact","notequals","lessthan","lessthanequal","greaterthan","greaterthanequal","null","isnotnull"],string:["anywhereignorecase","anywhere","startignorecase","start","endignorecase","end","exactignorecase","exact","notequalsignorecase","notequals","null","isnotnull","empty","isnotempty","nullorempty"],character:["exactignorecase","exact","notequalsignorecase","notequals","null","isnotnull","empty","isnotempty","nullorempty"],date:["exact","lessthan","lessthanequal","greaterthan","greaterthanequal","null","notequals","isnotnull"]},F={boolean:["exact","null","isnotnull"],clob:[],blob:[]},j=function(e){var t=[];return _.isArray(e)?(e.forEach((function(e){t=t.concat(j(e))})),t):_.isObject(e)?(_.forEach(e,(function(e,n){e&&(t=t.concat(n.split(" ")))})),t):void 0},B=function(e,t){var n,i,o=e.toAdd||e,r=e.toRemove||t;return _.isObject(e)?(n=_.isArray(o)?o:j(o||[]),i=r?_.isArray(r)?r:j(r):[]):(n=o?[o]:[],i=r?[r]:[]),{toAdd:n,toRemove:i}},G=function(e,t,n,o){var r,a,s,l,c,p;o||(o={}),_.forEach(e,(function(e,u){_.includes(u,".")&&(l=_.split(u,"."),a=l[0],s=l[1],p=!0),o.noModifyTitle?r=u:_.isString(u)?(r=i.prettifyLabel(u),r=i.deHyphenate(r),r=n?i.initCaps(n)+" "+r:r):r=u,u=n?n+"."+u:u,c=p?(c=_.split(r," ")).length>1?c[c.length-2]+" "+c[c.length-1]:c[0]:r;var d=o.setBindingField?{displayName:c,field:u,relatedTable:a,relatedField:s||r}:{displayName:c,relatedTable:a,relatedField:s||r};if(!_.isObject(e)||_.isArray(e)&&!e[0]){if(o.upperBound&&o.columnCount===o.upperBound)return;t.terminals.push(d),o.columnCount+=1}else o.columnCount!==o.upperBound&&t.objects.push(d),_.isArray(e)&&e[0]?G(e[0],t,u+"[0]",o):G(e,t,u,o)}))},V=function(e){var t;return _.isArray(e)?_.isObject(e[0])?(t=i.getClonedObject(e[0]),_.forEach(e,(function(e,n){if(n+1>=10)return!1;_.assignWith(t,e,(function(e,t){return null==e?t:e}))}))):t=e[0]:t=e,t};e.APPLY_STYLES_TYPE=void 0,(x=e.APPLY_STYLES_TYPE||(e.APPLY_STYLES_TYPE={}))[x.CONTAINER=0]="CONTAINER",x[x.SCROLLABLE_CONTAINER=1]="SCROLLABLE_CONTAINER",x[x.INNER_SHELL=2]="INNER_SHELL",x[x.SHELL=3]="SHELL";var U={backgroundattachment:"backgroundAttachment",backgroundcolor:"backgroundColor",backgroundgradient:"backgroundGradient",backgroundimage:"backgroundImage",backgroundposition:"backgroundPosition",backgroundrepeat:"backgroundRepeat",backgroundsize:"backgroundSize",bordercolor:"borderColor",borderradius:"borderRadius",borderstyle:"borderStyle",borderwidth:"borderWidth",borderbottomwidth:"borderBottomWidth",borderleftwidth:"borderLeftWidth",borderrightwidth:"borderRightWidth",bordertopwidth:"borderTopWidth",color:"color",cursor:"cursor",display:"display",fontsize:"fontSize",fontfamily:"fontFamily",fontstyle:"fontStyle",fontunit:"fontunit",fontvariant:"fontVariant",fontweight:"fontWeight",height:"height",horizontalalign:"textAlign",lineheight:"lineHeight",margin:"margin",marginbottom:"marginBottom",marginleft:"marginLeft",marginright:"marginRight",margintop:"marginTop",opacity:"opacity",overflow:"overflow",padding:"padding",paddingbottom:"paddingBottom",paddingleft:"paddingLeft",paddingright:"paddingRight",paddingtop:"paddingTop",picturesource:"backgroundImage",textalign:"textAlign",textdecoration:"textDecoration",verticalalign:"verticalAlign",visibility:"visibility",whitespace:"whiteSpace",width:"width",wordbreak:"wordbreak",zindex:"zIndex"},W=function(e){return!!U[e]},q={height:!0,overflow:!0,padding:!0,paddingbottom:!0,paddingleft:!0,paddingright:!0,paddingtop:!0},z={textalign:!0},H={textalign:!0,width:!0};function Y(t,n,o,r){var a=Object.create(null);r&&r.forEach((function(e){return a[e]=!0})),n.registerStyleChangeListener((function(r,s){if(!(a[r]||o===e.APPLY_STYLES_TYPE.SHELL&&q[r])){if(o===e.APPLY_STYLES_TYPE.INNER_SHELL){if(!q[r])return;"height"===r&&i.setCSS(t,"overflow",s?"auto":"")}if(o!==e.APPLY_STYLES_TYPE.CONTAINER||!z[r]){if(o===e.APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER){if(H[r])return;"height"===r&&i.setCSS(t,"overflow",s?"auto":"")}"fontsize"===r||"fontunit"===r?i.setCSS(t,"fontSize",""===n.fontsize?"":n.fontsize+(n.fontunit||"px")):"backgroundimage"===r?i.setCSS(t,"backgroundImage",n.picturesource||I(s)):U[r]&&i.setCSS(t,U[r],s)}}}))}var K,Q="wm-form-field-",X=function(){var e=new Map;for(var t in i.FormWidgetType)e.set(Q+i.FormWidgetType[t],new Map);return e}(),J=function(e){return X.get(e)},Z=function(e,t){X.set(e,t),window.WM_LOADED_COMPONENTS=v(v([],g(window.WM_LOADED_COMPONENTS||[])),[e])};e.PROP_TYPE=void 0,(K=e.PROP_TYPE||(e.PROP_TYPE={}))[K.BOOLEAN=1]="BOOLEAN",K[K.NUMBER=2]="NUMBER",K[K.STRING=3]="STRING";var ee={type:e.PROP_TYPE.STRING},te={type:e.PROP_TYPE.NUMBER},ne={type:e.PROP_TYPE.BOOLEAN},ie={arrayType:!0},oe=function(){Z("wm-container",new Map([["animation",ee],["class",ee],["conditionalclass",ie],["conditionalstyle",ie],["content",ee],["name",ee],["show",Object.assign({value:!0},ne)]]))},re=new Map,ae=new i.IDGenerator("widget-id"),se=new Map([["tap","click"]]),le={BLOCK:"block",INLINE_BLOCK:"inline-block",INLINE:"inline"},ce=new Set(["readonly","autofocus","disabled","startchecked","multiple","selected","required","controls","autoplay","loop","muted","show"]),pe=function(e){return ce.has(e)},ue=new Set(["width","height","iconheight","iconwidth","popoverwidth","popoverheight","imagewidth","imageheight"]),de=function(e){return ue.has(e)},he=function(t,n,o){return o===e.PROP_TYPE.BOOLEAN?i.toBoolean(n,pe(t)&&t):o===e.PROP_TYPE.NUMBER?+n:n},me=function(e,t,n){var o=e.widgetId,r=e[t];i.isChangeFromWatch()||i.$unwatch(k(o,t)),i.resetChangeFromWatch();var a=J(e.getWidgetSubType()).get(t);if(a){var s=a.type;s&&(n=he(t,n,s))}if(n!==r||i.isObject(n)||i.isObject(r)){if(de(t))n=i.toDimension(n);else if(_.startsWith(n,"resources/")){var l=e;void 0===l._parentPrefab_&&(l._parentPrefab_=e.$element.parent().closest('[prefabname][prefabname!="__self__"]').attr("prefabname")||""),l._parentPrefab_?n="./app/prefabs/"+l._parentPrefab_+"/"+n:a&&n!=a.value&&(n="./"+n)}e[t]=n,W(t)?e.notifyStyleChange(t,n,r):("conditionalclass"===t&&(n=B(n,r)),a&&e.notifyPropertyChange(t,n,r)),i.$appDigest()}},fe={set:function(e,t,n){return me(e,t,n),!0},get:function(e,t){var n=e[t];return _.isFunction(n)?n.bind(e):n}},ge=window.requestAnimationFrame,ve=[],ye=function(e){ve.length||ge((function(){ve.forEach((function(e){return e()})),ve.length=0})),ve.push(e)},be=function(){function e(){}return e.create=function(e,t,n){if(window.Proxy)return new Proxy(e,fe);var i=Object.create(e);return ye((function(){for(var t in e)_.isFunction(e[t])&&"constructor"!==t&&"super"!==t&&!_.startsWith(t,"ng")&&(e[t]=e[t].bind(e))})),Object.keys(U).forEach((function(t){Object.defineProperty(i,t,{get:function(){return e[t]},set:function(n){return me(e,t,n)}})})),n&&n.forEach((function(t,n){Object.defineProperty(i,n,{get:function(){return e[n]},set:function(t){return me(e,n,t)}})})),i},e}(),we=function(e,t,n){t&&t.length&&i.removeClass(n,_.join(t," ")),e&&e.length&&i.addClass(n,_.join(e," "))},Pe=function(e,t,n){t&&_.isObject(t)&&Object.keys(t||{}).forEach((function(e){i.setCSS(n,e,"")}));e&&_.isObject(e)&&i.setCSSFromObj(n,e)},_e=function(){function e(e,n,o){var r=this;this.inj=e,this.isAttached=!1,this.styleChange=new s.ReplaySubject,this.propertyChange=new s.Subject,this.readyState=new s.Subject,this.destroy=new s.Subject,this.eventHandlers=new Map,this.toBeSetupEventsQueue=[],this.__cloneable__=!1,this.$attrs=new Map,this.isMuted=!1;var l=e.get(t.ElementRef);this.nativeElement=l.nativeElement,this.widgetType=n.widgetType,this.widgetSubType=n.widgetSubType||n.widgetType,this.viewParent=e.view.component,this.displayType=n.displayType||le.BLOCK,this.context=e.view.context,this.widget=this.createProxy(),this.eventManager=e.get(a.EventManager),this.nativeElement.widget=this.widget,this.appLocale=e.get(i.App).appLocale||{},this.initContext(),n.hostClass&&i.addClass(this.nativeElement,n.hostClass),this.widgetId=this.generateWidgetId(),i.setAttr(this.nativeElement,"widget-id",this.widgetId,!0),this.registerStyleChangeListener(this.onStyleChange,this),this.registerPropertyChangeListener(this.onPropertyChange,this),o?(this.delayedInit=!0,o.then((function(){r.initWidget(),r.setInitProps()}))):this.initWidget()}return Object.defineProperty(e.prototype,"$element",{get:function(){return $(this.nativeElement)},enumerable:!1,configurable:!0}),e.prototype.getNativeElement=function(){return this.nativeElement},e.prototype.getWidgetType=function(){return this.widgetType},e.prototype.getWidgetSubType=function(){return this.widgetSubType},e.prototype.getWidget=function(){return this.widget},e.prototype.setProperty=function(e,t){this.widget[e]=t},e.prototype.getViewParent=function(){return this.viewParent},e.prototype.notifyStyleChange=function(e,t,n){this.styleChange.next({key:e,nv:t,ov:n})},e.prototype.notifyPropertyChange=function(e,t,n){this.propertyChange.next({key:e,nv:t,ov:n})},e.prototype.registerStyleChangeListener=function(e,t){t&&(e=e.bind(t)),this.styleChange.subscribe((function(t){var n=t.key,i=t.nv,o=t.ov;return e(n,i,o)}))},e.prototype.registerReadyStateListener=function(e,t){t&&(e=e.bind(t)),this.readyState.isStopped?e():this.readyState.subscribe((function(){return e()}))},e.prototype.registerPropertyChangeListener=function(e,t){t&&(e=e.bind(t)),this.propertyChange.subscribe((function(t){var n=t.key,i=t.nv,o=t.ov;return e(n,i,o)}))},e.prototype.registerDestroyListener=function(e,t){t&&(e=e.bind(t)),this.destroy.subscribe((function(){}),(function(){}),(function(){return e()}))},e.prototype.getDisplayType=function(){return this.displayType},e.prototype.createProxy=function(){return be.create(this,this.widgetSubType,J(this.widgetSubType))},e.prototype.initContext=function(){var e=this.inj.view.context,t=this.inj.get(w,{});if(this.viewParent!==e?this.context=e:this.context={},t){var n={};_.isArray(t)?_.forEach(t,(function(e){Object.assign(n,e)})):n=t,this.context=Object.assign({},n,this.context)}},e.prototype.setWidgetProperty=function(e,t){this.widget[e]=t},e.prototype.getAttr=function(e){return this.$attrs.get(e)},e.prototype.getAppInstance=function(){return this.inj.get(i.App)},e.prototype.generateWidgetId=function(){return ae.nextUid()},e.prototype.onPropertyChange=function(e,t,n){if("show"===e)this.nativeElement.hidden=!t;else if("hint"===e)i.isMobileApp()||i.setAttr(this.nativeElement,"title",t);else if("class"===e){i.switchClass(this.nativeElement,t,n);var o=t.match(/(\W|^)(h([0-6]))(?=\s|$)/);o&&(i.setAttr(this.nativeElement,"role","heading"),i.setAttr(this.nativeElement,"aria-level",o[3]))}else if("name"===e||"tabindex"===e)i.setAttr(this.nativeElement,e,t),"name"===e&&t&&function(e,t,n,o){i.isDefined(e.Widgets)&&(o&&(e.Widgets[o]=void 0),n&&(e.Widgets[n]=t))}(this.viewParent,this.widget,t,n);else if("conditionalclass"===e)we(t.toAdd,t.toRemove,this.nativeElement);else if("autoplay"===e){var r="wm-audio"===this.widgetType?"audio":"video";this.nativeElement.querySelector(r).load()}else"conditionalstyle"===e?Pe(t,n,this.nativeElement):"animation"===e?i.addClass(this.nativeElement,"animated "+t):"disabled"===e&&(!0===t?i.setAttr(this.nativeElement,"disabled","true",!0):i.removeAttr(this.nativeElement,"disabled",!0))},e.prototype.onStyleChange=function(e,t,n){},e.prototype.registerWidget=function(e){var t,n,o,r,a;this.registerDestroyListener((t=this.widget,n=this.viewParent,o=this.widgetId,r=e,a=!1,re.set(o,t),r&&i.isDefined(n.Widgets)&&(a=!0,n.Widgets[r]=t),function(){re.delete(o),a&&(n.Widgets[r]=void 0)}))},e.prototype.getMappedEventName=function(e){return se.get(e)||e},e.prototype.handleEvent=function(e,t,n,i,o){this.eventManager.addEventListener(e,t,(function(e){if(i.$event=e,"delayed"!==o)return n();setTimeout((function(){return n()}),150)}))},e.prototype.processEventAttr=function(e,t,n){var o=this,r=i.$parseEvent(t),a=this.context;a.widget=this.widget;var s=r.bind(void 0,this.viewParent,a),l=function(){var t;i.$invokeWatchers(!0);try{if(a.$event=a.$event||new window.CustomEvent(e),!((t=s())instanceof Promise))return t;t.then((function(e){return e}),(function(e){return e}))}catch(e){console.error(e)}};this.eventHandlers.set(this.getMappedEventName(e),{callback:l,locals:a}),this[_.camelCase("on-"+e)]=l,this.toBeSetupEventsQueue.push((function(){o.handleEvent(o.nativeElement,o.getMappedEventName(e),l,a,n)}))},e.prototype.processBindAttr=function(e,t){var n=this;this.initState.delete(e),this.registerDestroyListener(i.$watch(t,this.viewParent,this.context,(function(t){return n.widget[e]=t}),k(this.widgetId,e),"datasource"===e,this.widgetProps.get(e),(function(){return n.isMuted})))},e.prototype.removePropertyBinding=function(e){i.$unwatch(k(this.widgetId,e))},e.prototype.invokeEventCallback=function(e,t){var n=this.eventHandlers.get(e);if(n){var i=n.callback,o=n.locals||{};if(i)return i(Object.assign(o,t))}},e.prototype.processAttr=function(e,t){var n=e.split("."),o=n[0],r=n[1],a=n[2],s=n.length;"bind"===r?("show"===o&&(this.nativeElement.hidden=!0),this.processBindAttr(o,t)):"event"===r?this.processEventAttr(o,t,a):1===s&&("class"===e?i.removeClass(this.nativeElement,t):"tabindex"!==e&&"name"!==e||i.removeAttr(this.nativeElement,e),this.initState.set(o,t))},e.prototype.processAttrs=function(){var e,t,n=this.inj.elDef;try{for(var i=f(n.element.attrs),o=i.next();!o.done;o=i.next()){var r=g(o.value,3),a=r[1],s=r[2];this.$attrs.set(a,s),this.processAttr(a,s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},e.prototype.initWidget=function(){var e=this;this.initState=new Map;var t=J(this.widgetSubType);t.forEach((function(t,n){i.isDefined(t.value)&&e.initState.set(n,t.value)})),this.widgetProps=t,this.processAttrs(),this.registerWidget(this.initState.get("name"))},e.prototype.setInitProps=function(){var e=this;this.initState.get("name")&&(this.widget.name=this.initState.get("name")),this.initState.forEach((function(t,n){(e.widgetProps.get(n)||W(n))&&"name"!==n&&(e.widget[n]=t)})),this.initState.clear(),this.initState=void 0,this.readyState.next(),this.readyState.complete()},e.prototype.hasEventCallback=function(e){return this.eventHandlers.has(e)},e.prototype.focus=function(){var e=this.$element[0].querySelector("[focus-target]");e||(e=this.$element[0]),e.focus()},e.prototype.execute=function(e,t){},e.prototype.mute=function(){this.isMuted=!0},e.prototype.unmute=function(){this.isMuted=!1},e.prototype.ngOnAttach=function(){this.isAttached=!0},e.prototype.ngOnDetach=function(){this.isAttached=!1},e.prototype.ngOnInit=function(){this.delayedInit||this.setInitProps()},e.prototype.ngAfterViewInit=function(){var e,t;if(this.toBeSetupEventsQueue.length)try{for(var n=f(this.toBeSetupEventsQueue),i=n.next();!i.done;i=n.next()){(0,i.value)()}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.toBeSetupEventsQueue.length=0,this.isAttached=!0},e.prototype.ngAfterContentInit=function(){},e.prototype.ngOnDestroy=function(){this.isDestroyed=!0,this.widget=Object.create(null),this.styleChange.complete(),this.propertyChange.complete(),this.destroy.complete(),this.isAttached=!1},e}();_e.decorators=[{type:t.Injectable}],_e.ctorParameters=function(){return[{type:t.Injector},{type:void 0},{type:Promise}]};var Oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t}(_e);Oe.decorators=[{type:t.Injectable}];var Se=function(e){this.redraw=function(){var t=e.$element.closest("[wmtabpane]"),n=e.$element.closest("[wmaccordionpane]").find(".panel-heading");if(!(t.length&&!t.hasClass("active")||n.length&&!n.hasClass("active")))return e.redraw&&e.redraw()}};Se.decorators=[{type:t.Directive,args:[{selector:"[redrawable]"}]}],Se.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Self},{type:t.Inject,args:[y]}]}]};var Ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.updateRedrawableComponents=function(e){var t=this;_.pickBy(e,(function(e){e&&e.nativeElement&&e.nativeElement.hasAttribute("redrawable")&&!_.includes(t.reDrawableComponents._results,e)&&t.reDrawableComponents._results.push(e),e&&e.Widgets&&t.updateRedrawableComponents(e.Widgets)}))},t.prototype.redrawChildren=function(){var e=this;this.content&&this.Widgets&&this.updateRedrawableComponents(this.Widgets),setTimeout((function(){e.reDrawableComponents&&e.reDrawableComponents.forEach((function(e){return e.redraw()}))}),100)},t.prototype.onPropertyChange=function(t,n,i){e.prototype.onPropertyChange.call(this,t,n,i),"show"===t&&n&&this.redrawChildren()},t}(Oe);Ee.decorators=[{type:t.Directive}],Ee.propDecorators={reDrawableComponents:[{type:t.ContentChildren,args:[Se,{descendants:!0}]}]};var Te="app-container",Re={widgetType:"wm-container",hostClass:Te},Ae=function(t){function n(n){var o=t.call(this,n,Re)||this;return i.addClass(o.nativeElement,Te),Y(o.nativeElement,o,e.APPLY_STYLES_TYPE.CONTAINER),o}return d(n,t),n}(Ee);Ae.initializeProps=oe(),Ae.decorators=[{type:t.Directive,args:[{selector:"[wmContainer]",providers:[N(Ae)]}]}],Ae.ctorParameters=function(){return[{type:t.Injector}]};var Ce=function(){function e(){}return e.prototype.transform=function(e,t,n){return i.transformFileURI(C(e,t,n))},e}();Ce.decorators=[{type:t.Pipe,args:[{name:"image"}]}];var Ie=function(){Z("wm-item-template",new Map([["content",ee]]))},De={widgetType:"wm-item-template"},Ne=function(e){function t(t,n,i){var o=e.call(this,t,De)||this;return o.app=i,o.nativeElement=n.nativeElement,o.context=t.view.context,o}return d(t,e),Object.defineProperty(t.prototype,"$index",{get:function(){return this.context.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wmItemTemplate",{set:function(e){this.widget.content=e},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),this.partialParams.item=this.userComponentParams.dataObject},t}(Oe);Ne.initializeProps=Ie(),Ne.decorators=[{type:t.Directive,args:[{selector:"[wmItemTemplate]",exportAs:"itemTemplateRef",providers:[N(Ne)]}]}],Ne.ctorParameters=function(){return[{type:t.Injector},{type:t.ElementRef},{type:i.App}]},Ne.propDecorators={userComponentParams:[{type:t.Input}],wmItemTemplate:[{type:t.Input}]};var xe=function(){Z("wm-repeat-template",new Map([["show",ne]]))},ke={widgetType:"wm-repeat-template",hostClass:"app-repeat-item"},Me=function(e){function t(t){var n=e.call(this,t,ke)||this;return Y(n.nativeElement,n),n}return d(t,e),t}(Oe);Me.initializeProps=xe(),Me.decorators=[{type:t.Directive,args:[{selector:"[wmRepeatTemplate]"}]}],Me.ctorParameters=function(){return[{type:t.Injector}]};var Le=function(){function e(e,t,n){this.templateRef=t,this.viewContainer=n,this.viewParent=e.view.component,this.context=e.view.context}return Object.defineProperty(e.prototype,"lazyLoad",{set:function(e){var t=this;this.unSubscribeFn=i.$watch(e,this.viewParent,this.context,(function(e){!t.embeddedView&&e&&(t.embeddedView=t.viewContainer.createEmbeddedView(t.templateRef,t.context),t.unSubscribeFn())}))},enumerable:!1,configurable:!0}),e.prototype.ngOnDestroy=function(){this.unSubscribeFn()},e}();Le.decorators=[{type:t.Directive,args:[{selector:"[lazyLoad]"}]}],Le.ctorParameters=function(){return[{type:t.Injector},{type:t.TemplateRef},{type:t.ViewContainerRef}]},Le.propDecorators={lazyLoad:[{type:t.Input}]};var Fe=function(){Z("wm-message",new Map([["animation",ee],["caption",Object.assign({value:"Message"},ee)],["class",ee],["hideclose",Object.assign({value:!1},ne)],["name",ee],["show",Object.assign({value:!0},ne)],["type",Object.assign({value:"success"},ee)]]))},je={widgetType:"wm-message",hostClass:"alert app-message"},Be=function(e){function t(t){var n=e.call(this,t,je)||this;return n.messageClass="",n.messageIconClass="",n.type="",Y(n.nativeElement,n),n}return d(t,e),t.prototype.showMessage=function(e,t){e&&(this.caption=e),t&&this.setWidgetProperty("type",t),this.setWidgetProperty("show",!0)},t.prototype.hideMessage=function(){this.setWidgetProperty("show",!1)},t.prototype.dismiss=function(e){this.hideMessage(),this.invokeEventCallback("close",{$event:e})},t.prototype.onMessageTypeChange=function(e){var t,n;switch(e){case"success":t="alert-success",n="wm-sl-l sl-check";break;case"error":t="alert-danger",n="wi wi-cancel";break;case"warn":case"warning":t="alert-warning",n="wm-sl-l sl-alarm-bell";break;case"info":t="alert-info",n="wi wi-info";break;case"loading":t="alert-info alert-loading",n="fa fa-spinner fa-spin"}i.switchClass(this.nativeElement,t,this.messageClass),this.messageClass=t,this.messageIconClass=n},t.prototype.onPropertyChange=function(t,n,i){"type"===t?this.onMessageTypeChange(n):e.prototype.onPropertyChange.call(this,t,n,i)},t}(Oe);Be.initializeProps=Fe(),Be.decorators=[{type:t.Component,args:[{selector:"[wmMessage]",template:'<i aria-hidden="true" [title]="type + \'Alert\'" class="icon {{type}} {{messageIconClass}}"></i>\n<span [innerHtml]="caption"></span>\n<button title="Close" type="button" class="btn-transparent close" [hidden]="hideclose" (click)="dismiss($event)" aria-label="Close">\n <span aria-hidden="true">&times;</span>\n</button>\n',providers:[N(Be)],exportAs:"wmMessage"}]}],Be.ctorParameters=function(){return[{type:t.Injector}]};var Ge=function(){Z("wm-partial",new Map([["name",ee]]))},Ve={widgetType:"wm-partial",hostClass:"app-partial clearfix"},$e=function(e){function t(t,n){var i=e.call(this,t,Ve)||this;return i.viewport=n,i.registerDestroyListener(i.viewport.subscribe("resize",(function(e){return i.callback("resize",e)}))),i.registerDestroyListener(i.viewport.subscribe("orientationchange",(function(e){return i.callback("orientationchange",e)}))),i}return d(t,e),t.prototype.callback=function(e,t){t=_.assign({widget:this},t),this.invokeEventCallback(e,t)},t.prototype.ngOnAttach=function(){this.callback("attach")},t.prototype.ngOnDetach=function(){this.callback("detach")},t.prototype.ngOnDestroy=function(){this.callback("destroy")},t}(Oe);$e.initializeProps=Ge(),$e.decorators=[{type:t.Directive,args:[{selector:"[wmPartial]",providers:[N($e)]}]}],$e.ctorParameters=function(){return[{type:t.Injector},{type:i.Viewport}]};var Ue=function(){function e(e){this.widgetRef=e,this.widgetRef.partialParams={},this.widgetRef.pageParams=this.widgetRef.partialParams,this.widgetRef.params$=new s.Subject}return e.prototype.registerParams=function(e,t,n,o){var r=this;this.widgetRef.partialParams[e]=t,!t&&n?this.widgetRef.registerDestroyListener(i.$watch(n,this.widgetRef.getViewParent(),_.get(this.widgetRef,"context"),(function(t){r.widgetRef.partialParams[e]=t,r.widgetRef.params$.next()}))):this.widgetRef.params$.next()},e}();Ue.decorators=[{type:t.Directive,args:[{selector:"[partialContainer]"}]}],Ue.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Self},{type:t.Inject,args:[y]}]}]};var We=function(){function e(e,t,n){this.bindValue=e,this.type=t,this.partialParamsProvider=n}return e.prototype.ngOnInit=function(){this.partialParamsProvider.registerParams(this.name,this.value,this.bindValue,this.type)},e}();We.decorators=[{type:t.Directive,args:[{selector:"[wmParam]"}]}],We.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Attribute,args:["value.bind"]}]},{type:void 0,decorators:[{type:t.Attribute,args:["type"]}]},{type:Ue}]},We.propDecorators={name:[{type:t.Input}],value:[{type:t.Input}]};var qe=function(){function e(e,t,n,o,r,a,s,c){var p=this;this.componentInstance=e,this.vcRef=t,this.elRef=n,this.inj=o,this.app=r,this.resolver=s,this.partialRefProvider=c,this.contentInitialized=!1,this.renderPartial=_.debounce(this._renderPartial,200),e.registerPropertyChangeListener((function(t,n,o){"content"===t&&(e.$lazyLoad?e.$lazyLoad=function(){p.renderPartial(n),e.$lazyLoad=i.noop}:p.renderPartial(n))}));var u=e.params$.pipe(l.filter((function(){return p.contentInitialized})),l.debounceTime(200)).subscribe((function(){return p.renderPartial(e.content)}));e.registerDestroyListener((function(){return u.unsubscribe()}))}return Object.defineProperty(e.prototype,"name",{get:function(){return this.componentInstance.name},enumerable:!1,configurable:!0}),e.prototype._renderPartial=function(e){return h(this,void 0,void 0,(function(){var t,n,o,r,a=this;return m(this,(function(s){switch(s.label){case 0:return this.vcRef.clear(),i.$invokeWatchers(!0),(t=$(this.elRef.nativeElement).closest(".app-prefab")).length?n=t.attr("prefabname"):this.componentInstance.viewParent&&(n=this.componentInstance.viewParent.prefabName),[4,this.partialRefProvider.getComponentFactoryRef(e,i.ComponentType.PARTIAL,{prefab:n})];case 1:return(o=s.sent())&&((r=this.vcRef.createComponent(o,0,this.inj))&&r._component&&n&&(r._component.prefabName=n),this.$target||(this.$target=this.elRef.nativeElement.querySelector("[partial-container-target]")||this.elRef.nativeElement),this.$target.innerHTML="",this.$target.appendChild(r.location.nativeElement),this.contentInitialized=!0,setTimeout((function(){return a.onLoadSuccess()}),200)),[2]}}))}))},e.prototype.onLoadSuccess=function(){this.componentInstance.invokeEventCallback("load"),this.app.notify("partialLoaded")},e}();qe.decorators=[{type:t.Directive,args:[{selector:"[partialContainer]"}]}],qe.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Self},{type:t.Inject,args:[y]}]},{type:t.ViewContainerRef},{type:t.ElementRef},{type:t.Injector},{type:i.App},{type:String,decorators:[{type:t.Attribute,args:["content"]}]},{type:t.ComponentFactoryResolver},{type:i.PartialRefProvider}]};var ze=function(){function e(e,t,n,i,o){this.elRef=e,this.widget=t,this.viewContainerRef=n,this.templateRef=o,this.context=i.view.context,window.addEventListener("resize",this.onResize.bind(this))}return Object.defineProperty(e.prototype,"showInDevice",{set:function(e){this.devices=e.split(","),this.onResize()},enumerable:!1,configurable:!0}),e.prototype.onResize=function(e){this.devices.indexOf("lg")>-1&&window.matchMedia("(min-width: 1200px)").matches&&!i.isLargeTabletLandscape()||this.devices.indexOf("md")>-1&&(i.isLargeTabletLandscape()||window.matchMedia("(min-width: 992px) and (max-width: 1199px)").matches&&!i.isLargeTabletPortrait())||this.devices.indexOf("sm")>-1&&(window.matchMedia("(min-width: 768px) and (max-width: 991px)").matches||i.isLargeTabletPortrait())||this.devices.indexOf("xs")>-1&&window.matchMedia("(max-width: 767px)").matches||this.devices.indexOf("all")>-1?this.embeddedView||(this.embeddedView=this.viewContainerRef.createEmbeddedView(this.templateRef,this.context)):(this.viewContainerRef.clear(),this.embeddedView="")},e.prototype.ngOnDestroy=function(){window.removeEventListener("resize",this.onResize)},e}();ze.decorators=[{type:t.Directive,args:[{selector:"[showInDevice]"}]}],ze.ctorParameters=function(){return[{type:t.ElementRef},{type:_e,decorators:[{type:t.Inject,args:[y]}]},{type:t.ViewContainerRef},{type:t.Injector},{type:t.TemplateRef}]},ze.propDecorators={showInDevice:[{type:t.Input}]};var He=function(){function e(e,t,n){this._isEnabled=!1,this._lastScrollY=-1,this._waitRefreshTill=-1,this.pendingIscrolls=[],this._$el=$(t.nativeElement),this.app=n}return e.prototype.ngOnInit=function(){var e=this;this.cancelSubscription=this.app.subscribe("no-iscroll",(function(t){e.pendingIscrolls.push(t)}))},e.prototype.ngDoCheck=function(){this._isEnabled?this._smoothScrollInstance?this.refreshIScroll():this._smoothScrollInstance=this.applySmoothScroll():this._smoothScrollInstance&&this._smoothScrollInstance.destroy&&this._smoothScrollInstance.destroy()},e.prototype.ngOnDestroy=function(){this._smoothScrollInstance&&this._smoothScrollInstance.destroy&&this._smoothScrollInstance.destroy(),this.cancelSubscription&&this.cancelSubscription()},Object.defineProperty(e.prototype,"wmSmoothscroll",{set:function(e){this._isEnabled=!0===e||"true"===e,this._isEnabled?this._smoothScrollInstance||(this._smoothScrollInstance=this.applySmoothScroll()):this.ngOnDestroy()},enumerable:!1,configurable:!0}),e.prototype.applySmoothScroll=function(e,t){var n=this;if(!i.isMobileApp()||i.isKitkatDevice())return null;var o={scrollbars:!0,preventDefault:!1,momentum:!0,bounce:!1,mouseWheel:!0,disablePointer:!0,disableTouch:!1,disableMouse:!1},r=this._$el[0];if(!r.children.length)return null;this._$el.addClass("smoothscroll-wrapper"),r.onscroll=function(e){e.target.iscroll&&e.target.scrollTop&&(e.target.iscroll.scrollTo(e.target.iscroll.x,e.target.iscroll.y-e.target.scrollTop),e.target.scrollTop=0)},t&&"INPUT"===t.tagName&&t.focus(),e&&(o.fadeScrollbars=!0);var a=new IScroll(r,o);if(e){_.forEach(e,(function(e,t){_.forEach(e,(function(e){a.on(t,e)}))}));var s=this;a.on("scrollStart",(function(){this._scrolling=!0,i.isMobileApp()&&s.app.notify("iscroll-start",{})})),a.on("scrollEnd",(function(){this._scrolling=!1})),a.refresh()}return this.app.notify("iscroll-start",{}),a.indicatorRefresh=function(){var e,t=n._$el[0].iscroll.indicators;if(t.length)for(e=0;e<t.length;e++)t[e].refresh()},this._$el[0].iscroll=a,_.forEach(this.pendingIscrolls,(function(e,t){if(e.isSameNode(n._$el[0]))return n.app.notify("iscroll-update",{el:e}),void n.pendingIscrolls.splice(t,1)})),this.app.notify("iscroll-update",{}),{iScroll:a,destroy:function(){a.destroy(),$(a.scroller).css({"transition-timing-function":"","transition-duration":"",transform:""}),a=null,delete r.iscroll}}},e.prototype.refreshIScroll=function(){var e=this._smoothScrollInstance.iScroll;if(!(e._scrolling||this._waitRefreshTill>Date.now())){if(e.wrapper&&!_.includes(e.wrapper.children[0].classList,"smoothscroll-container")&&e.wrapper.scrollHeight>e.wrapper.clientHeight){var t=e._events,n=document.activeElement;$(e.wrapper.children).wrapAll('<div class="smoothscroll-container"></div>'),this._smoothScrollInstance.destroy(),this._smoothScrollInstance=this.applySmoothScroll(t,n)}this._lastScrollY!==this._$el[0].iscroll.maxScrollY?(Ye(this._smoothScrollInstance.iScroll),this._lastScrollY=this._$el[0].iscroll.maxScrollY):this._smoothScrollInstance.iScroll.refresh(),this._waitRefreshTill=Date.now()+500}},e}();He.decorators=[{type:t.Directive,args:[{selector:"[wmSmoothscroll]"}]}],He.ctorParameters=function(){return[{type:t.Injector},{type:t.ElementRef},{type:i.App}]},He.propDecorators={wmSmoothscroll:[{type:t.Input}]};var Ye=function(e){var t=!e&&$(".smoothscroll-container");e&&e.wrapper&&e.wrapper.contains(document.activeElement)&&"INPUT"===document.activeElement.tagName&&$(document.activeElement).offset().top+document.activeElement.clientHeight>.9*window.innerHeight&&document.activeElement.scrollIntoView({behavior:"auto",block:"end",inline:"end"}),e?(e.indicatorRefresh&&e.indicatorRefresh(),e.refresh&&e.refresh()):t.length&&t.parent().each((function(e,t){t.iscroll.indicatorRefresh(),t.iscroll.refresh()}))},Ke=Ye;window.addEventListener("resize",i.debounce(Ye,200));var Qe=function(){function e(e){this.elRef=e}return Object.defineProperty(e.prototype,"textContent",{set:function(e){var t=e;null==e&&(t=""),this.elRef.nativeElement.textContent=t},enumerable:!1,configurable:!0}),e}();Qe.decorators=[{type:t.Directive,args:[{selector:"[textContent]"}]}],Qe.ctorParameters=function(){return[{type:t.ElementRef}]},Qe.propDecorators={textContent:[{type:t.Input}]};var Xe=function(e){return _.isDate(e)||isNaN(e)||(e=parseInt(e,10)),moment(e).valueOf()||moment((new Date).toDateString()+" "+e).valueOf()},Je=function(){function e(e){this.decimalPipe=e}return e.prototype.transform=function(e,t,n,i,o,r,a,s){n=o&&!a?"1."+r.length+"-16":n;var l=s?s.number:void 0;return this.decimalPipe.transform(e,n,i||l||t)},e}();Je.decorators=[{type:t.Pipe,args:[{name:"trailingZeroDecimalPipe"}]}],Je.ctorParameters=function(){return[{type:n.DecimalPipe}]};var Ze=function(){function e(e,t){this.datePipe=e,this.i18nService=t}return e.prototype.transform=function(e,t,n,o){var r;if("null"===e||""===e)return"";if(!i.isDefined(e))return"";if(r=Xe(e)){if("timestamp"===t)return r;if("UTC"===t)return new Date(r).toISOString();var a=this.i18nService?this.i18nService.getTimezone(o):n;return a&&(e===r||i.hasOffsetStr(e))?moment(r).tz(a).format(t.replaceAll("y","Y").replaceAll("d","D").replace("a","A")):this.datePipe.transform(r,t)}return""},e}();Ze.decorators=[{type:t.Pipe,args:[{name:"toDate"}]}],Ze.ctorParameters=function(){return[{type:n.DatePipe},{type:i.AbstractI18nService}]};var et=function(){function e(e,t){this.decimalPipe=e,this.i18nService=t}return e.prototype.transform=function(e,t){if(t&&!String(t).match(/^(\d+)?\.((\d+)(-(\d+))?)?$/)&&(t="1."+t+"-"+t),!_.isNaN(+e)){var n=this.i18nService&&this.i18nService.getwidgetLocale()?this.i18nService.getwidgetLocale():void 0,i=n?n.number:null;return this.decimalPipe.transform(e,t,i)}},e}();et.decorators=[{type:t.Pipe,args:[{name:"toNumber"}]}],et.ctorParameters=function(){return[{type:n.DecimalPipe},{type:i.AbstractI18nService,decorators:[{type:t.Inject,args:[i.AbstractI18nService]}]}]};var tt=function(){function e(e,t){this.decimalPipe=e,this.i18nService=t}return e.prototype.transform=function(e,t,n){var o=(i.CURRENCY_INFO[t]||{}).symbol||t||"",r=new et(this.decimalPipe,this.i18nService).transform(e,n),a=_.startsWith(r,"-");return a&&(r=r.replace("-","")),r?a?"-"+o+r:o+r:""},e}();tt.decorators=[{type:t.Pipe,args:[{name:"toCurrency"}]}],tt.ctorParameters=function(){return[{type:n.DecimalPipe},{type:i.AbstractI18nService,decorators:[{type:t.Inject,args:[i.AbstractI18nService]}]}]};var nt=function(){function e(){}return e.prototype.transform=function(e,t){return _.isUndefined(e)||null===e||""===e?e:(t||"")+e},e}();nt.decorators=[{type:t.Pipe,args:[{name:"prefix"}]}];var it=function(){function e(){}return e.prototype.transform=function(e,t){return _.isUndefined(e)||null===e||""===e?e:e+(t||"")},e}();it.decorators=[{type:t.Pipe,args:[{name:"suffix"}]}];var ot=function(){function e(e){this.custmeUserPipe=e}return e.prototype.transform=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n.push(arguments[i]);var o=this.custmeUserPipe.getCustomPipe(t);if(!o||!_.isFunction(o.formatter))return console.warn("formatter is not defined, please check the custom pipes documentation"),e;try{return o.formatter.apply(o,v([e],g(n)))}catch(n){return console.error("Pipe name: "+t,n),e}},e}();ot.decorators=[{type:t.Pipe,args:[{name:"custom"}]}],ot.ctorParameters=function(){return[{type:i.CustomPipeManager}]};var rt=function(){function e(){}return e.prototype.transform=function(e){var t;if(i.isDefined(e))return(t=Xe(e))?moment(t).fromNow():void 0},e}();rt.decorators=[{type:t.Pipe,args:[{name:"timeFromNow"}]}];var at=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t}(et);at.decorators=[{type:t.Pipe,args:[{name:"numberToString"}]}];var st=function(){function e(){}return e.prototype.transform=function(e){return Number(e)||void 0},e}();st.decorators=[{type:t.Pipe,args:[{name:"stringToNumber"}]}];var lt=function(){function e(){}return e.prototype.transform=function(e,t,n){return e?_.isObject(t)?_.filter(e,t):_.filter(e,(function(e){return _.includes(e[t],n)})):[]},e}();lt.decorators=[{type:t.Pipe,args:[{name:"filter"}]}];var ct=function(){function e(){}return e.prototype.transform=function(e,t){for(var n=0;e>=1024;)e/=1024,n++;return e.toFixed(+t)+" "+["bytes","KB","MB","GB","TB","PB"][n]},e}();ct.decorators=[{type:t.Pipe,args:[{name:"filesize"}]}];var pt=function(){function e(){}return e.prototype.transform=function(e){return"fa "+({zip:"fa-file-zip-o",pdf:"fa-file-pdf-o",rar:"fa-file-archive-o",txt:"fa-file-text-o",ppt:"fa-file-powerpoint-o",pot:"fa-file-powerpoint-o",pps:"fa-file-powerpoint-o",pptx:"fa-file-powerpoint-o",potx:"fa-file-powerpoint-o",ppsx:"fa-file-powerpoint-o",mpg:"fa-file-movie-o",mp4:"fa-file-movie-o",mov:"fa-file-movie-o",avi:"fa-file-movie-o",mp3:"fa-file-audio-o",docx:"fa-file-word-o",js:"fa-file-code-o",md:"fa-file-code-o",html:"fa-file-code-o",css:"fa-file-code-o",xlsx:"fa-file-excel-o",png:"fa-file-image-o",jpg:"fa-file-image-o",jpeg:"fa-file-image-o",file:"fa-file-o",default:"fa-file-o"}[e]||"fa-file-o")},e}();pt.decorators=[{type:t.Pipe,args:[{name:"fileIconClass"}]}];var ut=function(){function e(){}return e.prototype.transform=function(e){return{success:"wi wi-done text-success",error:"wi wi-error text-danger"}[e.toLowerCase()]},e}();ut.decorators=[{type:t.Pipe,args:[{name:"stateClass"}]}];var dt=function(){function e(){}return e.prototype.transform=function(e){return{"audio/aac":".aac","application/x-abiword":".abw","application/vnd.android.package-archive":".apk","video/x-msvideo":".avi","application/vnd.amazon.ebook":".azw","application/octet-stream":".bin","image/bmp":".bmp","application/x-bzip":".bz","application/x-bzip2":".bz2","application/x-csh":".csh","text/css":".css","text/csv":".csv","application/msword":".doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":".docx","application/vnd.ms-fontobject":".eot","application/epub+zip":".epub","application/ecmascript":".es","image/gif":".gif","text/html":".html","image/x-icon":".ico","text/calendar":".ics","application/java-archive":".jar","image/jpeg":[".jpeg",".jpg"],"application/javascript":".js","application/json":".json","audio/midi":".mid","audio/x-midi":".midi","video/mpeg":".mpeg","application/vnd.apple.installer+xml":"mpkg","application/vnd.oasis.opendocument.presentation":".odp","application/vnd.oasis.opendocument.spreadsheet":".ods","application/vnd.oasis.opendocument.text":".odt","audio/ogg":".oga","video/ogg":".ogv","application/ogg":".ogx","font/otf":".otf","image/png":".png","application/pdf":".pdf","application/vnd.ms-powerpoint":".ppt","application/vnd.openxmlformats-officedocument.presentationml.presentation":".pptx","application/x-rar-compressed":".rar","application/rtf":".rtf","application/x-sh":".sh","image/svg+xml":".svg","application/x-shockwave-flash":".swf","application/x-tar":".tar","image/tiff":".tiff","application/typescript":".ts","font/ttf":".ttf","text/plain":".txt","application/vnd.visio":".vsd","audio/wav":".wav","audio/webm":".weba","video/webm":".webm","image/webp":".webp","font/woff":".woff","font/woff2":".woff2","application/xhtml+xml":".xhtml","application/vnd.ms-excel":".xls","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":".xlsx","application/xml":".xml","application/vnd.mozilla.xul+xml":".xul","application/zip":".zip","video/3gpp":".3gp","audio/3gpp":".3gp","video/3gpp2":".3g2","audio/3gpp2":".3g2","application/x-7z-compressed":".7z"}[e]},e}();dt.decorators=[{type:t.Pipe,args:[{name:"fileExtensionFromMime"}]}];var ht=function(){function e(e){this.domSanitizer=e}return e.prototype.transform=function(e,n){if(null==e)return"";switch(n){case"html":case t.SecurityContext.HTML:return this.domSanitizer.bypassSecurityTrustHtml(e);case"style":case t.SecurityContext.STYLE:return this.domSanitizer.bypassSecurityTrustStyle(e);case"script":case t.SecurityContext.SCRIPT:return this.domSanitizer.bypassSecurityTrustScript(e);case"url":case t.SecurityContext.URL:return this.domSanitizer.bypassSecurityTrustUrl(e);case"resource":case t.SecurityContext.RESOURCE_URL:return this.domSanitizer.bypassSecurityTrustResourceUrl(e)}},e}();ht.decorators=[{type:t.Pipe,args:[{name:"trustAs"}]}],ht.ctorParameters=function(){return[{type:a.DomSanitizer}]};var mt=[],ft=[],gt=function(){function e(){this.dialogRefsCollection=new Map,this.appConfirmDialog="_app-confirm-dialog"}return e.prototype.register=function(e,t,n){e&&(this.dialogRefsCollection.get(e)?this.dialogRefsCollection.get(e).set(n,t):this.dialogRefsCollection.set(e,new Map([[n,t]])))},e.prototype.getDialogRefsCollection=function(){return this.dialogRefsCollection},e.prototype.deRegister=function(e,t){e&&this.dialogRefsCollection.get(e)&&this.dialogRefsCollection.get(e).delete(t)},e.prototype.getDialogRef=function(e,t){var n,i=this.dialogRefsCollection.get(e);return t?(n=i.get(t))||(t.pageName||t.partialName||t.prefabName?console.error('No dialog with the name "'+e+'" found in the given scope.'):i.forEach((function(t,i){i&&"Common"===i.partialName?n=t:console.error('No dialog with the name "'+e+'" found in the App scope.')}))):1===i.size?n=i.entries().next().value[1]:console.error("There are multiple instances of this dialog name. Please provide the Page/Partial/App instance in which the dialog exists."),n},e.prototype.open=function(e,t,n){var i=this.getDialogRef(e,t);i&&i.open(n)},e.prototype.close=function(e,t,n){var i=this.getDialogRef(e,t);i&&(i.closeCallBackFn=n,i.close())},e.prototype.closeAllDialogs=function(){_.forEach(mt.reverse(),(function(e){e.close()}))},e.prototype.showAppConfirmDialog=function(e){this.open(this.getAppConfirmDialog(),void 0,e)},e.prototype.closeAppConfirmDialog=function(){this.close(this.getAppConfirmDialog())},e.prototype.getAppConfirmDialog=function(){return this.appConfirmDialog},e.prototype.setAppConfirmDialog=function(e){this.appConfirmDialog=e},e.prototype.addToOpenedDialogs=function(e){mt.push(e)},e.prototype.getLastOpenedDialog=function(){return mt[mt.length-1]},e.prototype.removeFromOpenedDialogs=function(e){(-1!==mt.indexOf(e)&&mt.splice(mt.indexOf(e),1),0===mt.length&&(i.isMobile()||i.isMobileApp()))&&$("body > app-root")[0].removeAttribute("aria-hidden")},e.prototype.getOpenedDialogs=function(){return mt},e.prototype.addToClosedDialogs=function(e){ft.push(e)},e.prototype.removeFromClosedDialogs=function(e){-1!==ft.indexOf(e)&&ft.splice(ft.indexOf(e),1)},e.prototype.getDialogRefFromClosedDialogs=function(){return ft[ft.length-1]},e}();gt.decorators=[{type:t.Injectable}],gt.ctorParameters=function(){return[]};var vt=function(){function e(e){this.domSanitizer=e}return e.prototype.transform=function(e,n){if(null==e)return"";switch(n){case"html":case t.SecurityContext.HTML:return this.domSanitizer.sanitize(t.SecurityContext.HTML,e);case"style":case t.SecurityContext.STYLE:return this.domSanitizer.sanitize(t.SecurityContext.STYLE,e);case"script":case t.SecurityContext.SCRIPT:return this.domSanitizer.sanitize(t.SecurityContext.SCRIPT,e);case"url":case t.SecurityContext.URL:return this.domSanitizer.sanitize(t.SecurityContext.URL,e);case"resource":case t.SecurityContext.RESOURCE_URL:return this.domSanitizer.sanitize(t.SecurityContext.RESOURCE_URL,e);case"none":case t.SecurityContext.NONE:return this.domSanitizer.sanitize(t.SecurityContext.NONE,e)}},e}();vt.decorators=[{type:t.Pipe,args:[{name:"sanitize"}]}],vt.ctorParameters=function(){return[{type:a.DomSanitizer}]};var yt=[Ae,Ne,Me,Le,Be,$e,Ue,We,qe,Se,ze,He,Qe],bt=[Ze,pt,dt,lt,ct,et,tt,nt,it,rt,at,ut,st,Je,ht,Ce,ot,vt],wt=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[Ze,lt,Je,ht,Ce,ot,vt,n.Location,{provide:i.AbstractDialogService,useClass:gt}]}},e}();wt.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,o.SecurityModule],declarations:v(v([],g(yt)),g(bt)),exports:v(v([],g(yt)),g(bt))}]}];var Pt,_t=function(){};e.Live_Operations=void 0,(Pt=e.Live_Operations||(e.Live_Operations={})).INSERT="insert",Pt.UPDATE="update",Pt.DELETE="delete",Pt.READ="read";var Ot="All Fields",St={EMPTY_KEY:"EMPTY_NULL_FILTER",EMPTY_VALUE:"No Value",LABEL_KEY:"key",LABEL_VALUE:"value",NULL_EMPTY:["null","empty"],NULL:"null",EMPTY:"empty"};function Et(e){return _.includes([i.FormWidgetType.AUTOCOMPLETE,i.FormWidgetType.TYPEAHEAD,i.FormWidgetType.CHIPS],e)}var Tt=function(e,t,n){var o=i.debounce((function(){_.isFunction(n)&&n(t)}),300);o();var r=t?_.isObject(t)?t:JSON.parse(t):{},a=e.registerDestroyListener?e.registerDestroyListener.bind(e):_.noop,s=i.processFilterExpBindNode(e,r).subscribe((function(e){t=JSON.stringify(e.filterExpressions),o()}));a((function(){return s.unsubscribe()}))},Rt=function(e,t){var n,o={};return t["is-related"]?(o.tableName=t["lookup-type"],n=t["lookup-field"],o.distinctField=n,o.aliasColumn=n.replace(".","$"),o.filterExpr=t.filterexpressions?_.isObject(t.filterexpressions)?t.filterexpressions:JSON.parse(t.filterexpressions):{}):(o.tableName=e.execute(i.DataSource.Operation.GET_ENTITY_NAME),n=t.field||t.key,o.distinctField=n,o.aliasColumn=n),o};function At(e,t,n){var o;return new Promise((function(r,a){!A(t[n])||t.isDataSetBound&&"filterwidget"!==n||(o=Rt(e,t),e.execute(i.DataSource.Operation.GET_DISTINCT_DATA_BY_FIELDS,{fields:o.distinctField,entityName:o.tableName,pagesize:t.limit,filterExpr:t.filterexpressions?JSON.parse(t.filterexpressions):{}}).then((function(e){r({field:t,data:e.data,aliasColumn:o.aliasColumn})}),a))}))}function Ct(e,t){if(Et(e[t.widget]))return e.datafield=t.aliasColumn||St.LABEL_KEY,e.searchkey=t.distinctField||St.LABEL_KEY,void(e.displaylabel=e.displayfield=t.aliasColumn||St.LABEL_VALUE);e.datafield=St.LABEL_KEY,e.displayfield=St.LABEL_VALUE}function It(e,t,n){var o=[i.FormWidgetType.SELECT,i.FormWidgetType.RADIOSET],r={},a=[];n.isEnableEmptyFilter&&_.includes(o,e[n.widget])&&!e["is-range"]&&!e.multiple&&(r[St.LABEL_KEY]=St.EMPTY_KEY,r[St.LABEL_VALUE]=n.EMPTY_VALUE||St.EMPTY_VALUE,a.push(r)),_.each(t,(function(e){var t=e[n.aliasColumn],i={};null!==t&&""!==t&&(i[St.LABEL_KEY]=t,i[St.LABEL_VALUE]=t,a.push(i))})),Ct(e,n),e.dataset=a}function Dt(e,t,n){if(e&&t&&!t.isDataSetBound)if(Et(t[n.widget])){var i=Rt(e,t);t.dataoptions=i,Ct(t,Object.assign(n||{},i)),t.datasource=e}else Tt(t.viewParent,t.filterexpressions,(function(i){t.filterexpressions=i,At(e,t,n.widget).then((function(e){It(e.field,e.data,{aliasColumn:e.aliasColumn,widget:n.widget,isEnableEmptyFilter:Mt(n.enableemptyfilter),EMPTY_VALUE:n.EMPTY_VALUE})}))}))}function Nt(e){return i.isDefined(e)&&""!==e&&null!==e}function xt(e,t){var n;return Nt(e)&&Nt(t)?n=[e,t]:Nt(e)?n=e:Nt(t)&&(n=t),n}function kt(e,t){var n;return Nt(e)&&Nt(t)?n=i.MatchMode.BETWEEN:Nt(e)?n=i.MatchMode.GREATER:Nt(t)&&(n=i.MatchMode.LESSER),n}function Mt(e){return e&&_.intersection(e.split(","),St.NULL_EMPTY).length>0}function Lt(e){var t,n=_.split(e,",");return 2===_.intersection(n,St.NULL_EMPTY).length?t=i.MatchMode.NULLOREMPTY:_.includes(n,St.NULL)?t=i.MatchMode.NULL:_.includes(n,St.EMPTY)&&(t=i.MatchMode.EMPTY),t}var Ft=function(e){return _.isUndefined(e)||_.isNull(e)?[]:(_.isString(e)&&(e=e.split(",").map(Function.prototype.call,String.prototype.trim)),_.isArray(e)||(e=[e]),e)};var jt,Bt=moment.localeData(),Gt=i.getClonedObject(Bt._calendar),Vt=Bt._calendarDay||{lastDay:"[Yesterday]",lastWeek:"[Last] dddd",nextDay:"[Tomorrow]",nextWeek:"dddd",sameDay:"[Today]",sameElse:"L"},$t="alphabet",Ut="Others",Wt={HOUR:"hour",DAY:"day",WEEK:"week",MONTH:"month",YEAR:"year"},qt="yyyy-MM-dd",zt="w 'Week', yyyy",Ht="MMM, yyyy",Yt="YYYY",Kt="hh:mm a",Qt=function(e,t,n){if(!t)return _.cloneDeep(e);var i=t.split(","),o=[],r=[];return i.forEach((function(e){var t=e.split(":");o.push(n?n+"."+t[0]:t[0]),r.push(t[1])})),_.orderBy(e,o,r)},Xt=function(e){return _.isString(e)&&(e=_.split(e,",").map((function(e){return e.trim()}))),e},Jt=function(e){return"wm-search"===e},Zt=function(e,t,n,o){if(e&&Jt(e.widgetType))if(e.groupby)if(_.includes(e.groupby,"(")){var r=i.$parseEvent(e.groupby);n.groupby=r(t,{row:n.dataObject||n})}else n.groupby=rn(e.groupby,e.match,o,e.dateformat,e.datePipe,e.appDefaults,n);else n.groupby=""},en=function(e,t,n){var i=[];return _.forEach(_.keys(e),(function(o,r){var a=Qt(e[o],n,"dataObject");i.push({key:o,data:_.sortBy(a,(function(e){return e._groupIndex=r+1,_.get(e,t)||_.get(e.dataObject,t)}))})})),i},tn=function(e,t,n,i,o,r,a,s){n===Wt.DAY&&(Bt._calendar=Vt),e=_.orderBy(e,(function(e){var n=_.get(a?e[a]:e,t);if(n)return _.toLower(n)}));var l=_.groupBy(e,rn.bind(void 0,t,n,a,o,r,s));return Bt._calendar=Gt,l},nn=function(e,t,n,o){return"timestamp"===t?e:i.getFormattedDate(o,e,t||n)},on=function(e,t,n,i,o){var r,a=moment(e),s=n,l=moment(),c=function(){return"["+nn(this.valueOf(),s,qt,i)+"]"};switch(t){case Wt.HOUR:s=s||o.timeFormat,a.isValid()||(a=moment((new Date).toDateString()+" "+e)).isValid()&&(Bt._calendar.sameDay=function(){return"["+nn(this.valueOf(),s,Kt,i)+"]"}),a=a.startOf("hour"),Bt._calendar.sameElse=c,r=a.calendar(l);break;case Wt.WEEK:r=nn(a.valueOf(),s,zt,i);break;case Wt.MONTH:r=nn(a.valueOf(),s,Ht,i);break;case Wt.YEAR:r=a.format(Yt);break;case Wt.DAY:s=s||o.dateFormat,a=a.startOf("day"),Bt._calendar.sameElse=c,r=a.calendar(l)}return"Invalid date"===r?Ut:r},rn=function(e,t,n,i,o,r,a){var s=_.get(n?a[n]:a,e);return _.isUndefined(s)||_.isNull(s)||""===s.toString().trim()?Ut:(t===$t&&(s=s.substr(0,1)),_.includes(_.values(Wt),t)&&(s=on(s,t,i,o,r)),s)},an=function(){},sn="default",ln="label",cn=function(e,t,n,i){_.forEach(e,(function(e){_.get(e,"isGroup")&&(e.field===n?e.columns[i]=t:cn(e.columns,t,n,i))}))},pn=function(e){return"true"===e||"false"!==e&&(/^\d+$/.test(e)?+e:e)},un={integer:["number","text","select","checkboxset","radioset","rating","slider","currency","autocomplete","chips"],big_integer:["number","text","select","checkboxset","radioset","rating","slider","currency","autocomplete","chips"],short:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],float:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],big_decimal:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],number:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],double:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],long:["number","text","select","checkboxset","radioset","rating","slider","currency","autocomplete","chips"],byte:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],string:["text","number","textarea","password","richtext","select","checkboxset","radioset","date","time","timestamp","switch","currency","autocomplete","chips","colorpicker"],character:["text","number","textarea","password","richtext","select","checkboxset","radioset","switch","currency","autocomplete","chips"],text:["text","number","textarea","password","richtext","select","checkboxset","radioset","date","time","timestamp","switch","currency","autocomplete","chips","colorpicker"],date:["date","text","number","select","checkboxset","radioset","autocomplete","chips"],time:["time","text","number","select","checkboxset","radioset","autocomplete","chips"],timestamp:["timestamp","text","number","select","checkboxset","radioset","autocomplete","chips"],datetime:["datetime","text","select","checkboxset","radioset","autocomplete","chips"],boolean:["checkbox","radioset","toggle","select"],list:["select","radioset","checkboxset","switch","autocomplete","chips"],clob:["text","textarea","richtext"],blob:["upload"],file:["upload"],custom:["text","number","textarea","password","checkbox","toggle","slider","richtext","currency","switch","select","checkboxset","radioset","date","time","timestamp","rating","datetime","autocomplete","chips","colorpicker"]},dn=function(e){if(e)return/^(\/|#\/|#)(?!\W).*/.test(e)?"#/"+(e=_.first(e.match(/[\w]+.*/g))||""):_.startsWith(e,"www.")?"//"+e:e},hn=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.nodes=[],i.nodes$=new s.Subject,i._resetNodes=_.debounce(i.resetNodes,50),i.securityService=i.inj.get(o.SecurityService),i.binditemlabel=i.nativeElement.getAttribute("itemlabel.bind"),i.binditemicon=i.nativeElement.getAttribute("itemicon.bind"),i.binditemaction=i.nativeElement.getAttribute("itemaction.bind"),i.binditembadge=i.nativeElement.getAttribute("itembadge.bind"),i.binditemchildren=i.nativeElement.getAttribute("itemchildren.bind"),i.binditemid=i.nativeElement.getAttribute("itemid.bind"),i.binditemlink=i.nativeElement.getAttribute("itemlink.bind"),i.binditemtarget=i.nativeElement.getAttribute("itemtarget.bind"),i.binduserrole=i.nativeElement.getAttribute("userrole.bind"),i.bindisactive=i.nativeElement.getAttribute("isactive.bind"),i}return d(t,e),t.prototype.getNode=function(e,t){var n=this.viewParent.pageScope||this.viewParent,o=E(t,{field:this.itemchildren,bindExpression:this.binditemchildren},n)||_.get(t,e.childrenField),r={action:E(t,{field:this.itemaction,bindExpression:this.binditemaction},n)||_.get(t,e.actionField),badge:E(t,{field:this.itembadge,bindExpression:this.binditembadge},n)||_.get(t,e.badgeField),children:Array.isArray(o)?this.getNodes(o):[],class:_.get(t,e.classField),disabled:t.disabled,icon:E(t,{field:this.itemicon,bindExpression:this.binditemicon},n)||_.get(t,e.iconField),id:E(t,{field:this.itemid,bindExpression:this.binditemid},n)||_.get(t,e.idField),label:E(t,{field:this.itemlabel,bindExpression:this.binditemlabel},n)||_.get(t,e.labelField),link:dn(E(t,{field:this.itemlink,bindExpression:this.binditemlink},n)||_.get(t,e.linkField)),target:dn(E(t,{field:this.itemtarget,bindExpression:this.binditemtarget},n)||_.get(t,e.targetField)),role:E(t,{field:this.userrole,bindExpression:this.binduserrole},n),isactive:E(t,{field:this.isactive,bindExpression:this.bindisactive},n),value:this.datafield?"All Fields"===this.datafield?t:i.findValueOf(t,this.datafield):t};return _.omitBy(r,_.isUndefined)},t.prototype.resetItemFieldMap=function(){this._itemFieldMap=null},t.prototype.getItemFieldsMap=function(){return this._itemFieldMap||(this._itemFieldMap={idField:this.itemid||"itemid",iconField:this.itemicon||"icon",labelField:this.itemlabel||"label",linkField:this.itemlink||"link",targetField:this.itemtarget||"target",badgeField:this.itembadge||"badge",childrenField:this.itemchildren||"children",classField:this.itemclass||"class",actionField:this.itemaction||"action",isactiveField:this.isactive||"isactive"}),this._itemFieldMap},t.prototype.prepareNodeDataSet=function(e){return(e=Ft(e)).map((function(e){return i.isObject(e)?e:{label:e,value:e}}))},t.prototype.getNodes=function(e){var t=this;void 0===e&&(e=this.dataset||{});var n=Qt(this.prepareNodeDataSet(e),this.orderby)||[];if(n.length){var o=this.userrole,r=this.getItemFieldsMap();n=n.reduce((function(e,n){return i.validateAccessRoles(n[o],t.securityService.loggedInUser)&&e.push(t.getNode(r,n)),e}),[])}return n},t.prototype.resetNodes=function(){this.resetItemFieldMap(),this.nodes=this.getNodes(),i.$appDigest(),this.nodes$.next()},t.prototype.onPropertyChange=function(t,n,i){switch(t){case"dataset":case"itemicon":case"itemlabel":case"itemlink":case"itemtarget":case"itemclass":case"itemchildren":case"isactive":case"orderby":this._resetNodes()}e.prototype.onPropertyChange.call(this,t,n,i)},t}(Oe),mn={pattern:"regexp",max:"maxvalue",min:"minvalue",required:"required",maxlength:"maxchars",mindate:"mindate",maxdate:"maxdate",excludedates:"excludedates",excludedays:"excludedays",invalidNumber:"invalidNumber"},fn=function(){function e(e,t,n,i,o,r){this.instance=e,this.formwidget=t,this.widgettype=n,this.widgetControl=i,this.widgetContext=o,this.defaultValidatorMessages=[],r&&(this.tableFieldType=r)}return e.prototype.getDefaultValidators=function(){var e=[];return this.instance.required&&!1!==this.instance.show&&(this.widgettype===i.FormWidgetType.CHECKBOX||this.widgettype===i.FormWidgetType.TOGGLE?e.push(c.Validators.requiredTrue):e.push(c.Validators.required)),this.instance.maxchars&&e.push(c.Validators.maxLength(this.instance.maxchars)),this.instance.minvalue&&e.push(c.Validators.min(this.instance.minvalue)),this.instance.maxvalue&&this.widgettype!==i.FormWidgetType.RATING&&e.push(c.Validators.max(this.instance.maxvalue)),this.instance.regexp&&e.push(c.Validators.pattern(this.instance.regexp)),this.formwidget&&_.isFunction(this.formwidget.validate)&&e.push(this.formwidget.validate.bind(this.formwidget)),e},e.prototype.setUpValidators=function(e){if(!this.hasValidators&&(this.instance._validators=this.getDefaultValidators(),e&&this.instance._validators.push(e),this.widgetContext.ngform)){this.widgetControl.setValidators(this.instance._validators);var t={};this.formwidget&&this.instance.value===this.formwidget.prevDatavalue&&(t.emitEvent=!1),this.widgetControl.updateValueAndValidity(t)}},e.prototype.getPromiseList=function(e){var t=this,n=[];return _.forEach(e,(function(e,i){var o=e;e instanceof Function&&e.bind&&(o=e(t.widgetControl,t.widgetContext)),o instanceof Promise&&n.push(o)})),n},e.prototype.setAsyncValidators=function(e){var t=this;this._asyncValidatorFn=function(){return function(){return Promise.all(t.getPromiseList(e)).then((function(){return t.instance.validationmessage="",null}),(function(e){if(e.hasOwnProperty("errorMessage"))t.instance.validationmessage=_.get(e,"errorMessage");else{var n=_.keys(e);t.instance.validationmessage=e[n[0]].toString()}return e})).then((function(e){var n=function(){setTimeout((function(){"PENDING"===t.widgetControl.status?n():t.instance.onStatusChange(t.widgetControl.status,t.tableFieldType)}),100)};return n(),e}))}},this.widgetControl.setAsyncValidators([this._asyncValidatorFn()]),this.widgetContext.ngform.touched&&this.widgetControl.updateValueAndValidity()},e.prototype.isDefaultValidator=function(e){return _.get(i.VALIDATOR,_.toUpper(e))},e.prototype.setDefaultValidator=function(e,t){t&&t instanceof Function?this.watchDefaultValidatorExpr(t.bind(void 0,this.widgetControl,this.widgetContext),e):(this.instance.widget[e]=t,this.instance[e]=t)},e.prototype.setValidators=function(e){var t=this,n=_.cloneDeep(e);this.hasValidators=!0,this._syncValidators=[],_.forEach(n,(function(e,i){if(e&&e instanceof Function)n[i]=e.bind(void 0,t.widgetControl,t.widgetContext),t._syncValidators.push(n[i]);else{var o=_.get(e,"type");if(t.defaultValidatorMessages[o]=_.get(e,"errorMessage"),t.isDefaultValidator(o)){var r=_.get(e,"validator");t.setDefaultValidator(o,r),n[i]=""}}})),this._syncValidators=_.filter(n,(function(e){if(e)return e})),this.applyDefaultValidators()},e.prototype.observeOn=function(e,t){var n=this;_.forEach(e,(function(e){var i=_.find(n.widgetContext[t],{key:e});i&&(i.notifyForFields||(i.notifyForFields=[]),i.notifyForFields.push(n.instance))}))},e.prototype.validate=function(){this.applyDefaultValidators(),this._asyncValidatorFn&&(this.widgetControl.setAsyncValidators([this._asyncValidatorFn()]),this.widgetControl.updateValueAndValidity()),this.widgetContext.ngform.touched&&this.widgetControl.markAsTouched()},e.prototype.watchDefaultValidatorExpr=function(e,t){var n=this,o=this.instance.widgetId+"_"+t+"_formField";i.$unwatch(o),this.instance.registerDestroyListener(i.$watch("boundFn(fn)",_.extend(this.instance,this.instance.viewParent),{fn:e},(function(e,i){n.instance.widget[t]=e,n.applyDefaultValidators()}),o))},e.prototype.applyDefaultValidators=function(){var e=this.getDefaultValidators();this.widgetControl.setValidators(_.concat(this._syncValidators||[],e)),this.widgetControl.updateValueAndValidity(),this.setCustomValidationMessage()},e.prototype.setCustomValidationMessage=function(){var e=this.widgetControl&&this.widgetControl.errors;if(e)if(e.hasOwnProperty("errorMessage"))this.instance.validationmessage=_.get(e,"errorMessage");else{var t=_.keys(e)[0],n=_.get(mn,t)||this.formwidget.validateType;if(n){var i=_.get(this.defaultValidatorMessages,n)||this.instance.validationmessage;this.instance.validationmessage=i&&i instanceof Function?i(this.widgetControl,this.widgetContext):i}else this.instance.validationmessage=""}},e}(),gn=function(e){function t(t,n,o){var r=e.call(this)||this;r.$el=t,r.app=n,r.onPullToRefresh=o,r.count=0;return r.$el.prepend('<div class="refresh-container"></div>'),r.infoContainer=r.$el.find(".refresh-container"),i.isIos()&&r.infoContainer.addClass("ios-refresh-container"),r.init(r.$el),r}return d(t,e),t.prototype.threshold=function(){return 10},t.prototype.direction=function(){return $.fn.swipey.DIRECTIONS.VERTICAL},t.prototype.subscribe=function(){var e=this;this.cancelSubscription=this.app.subscribe("toggle-variable-state",(function(t){t.active&&e.animationInProgress?(e.count++,e.wait()):e.count>0&&e.count--,!e.count&&e.animationInProgress&&e.stopAnimation()}))},t.prototype.bounds=function(e,t){var n=this.$el[0].iscroll;return t<0||n&&!isNaN(n.y)&&0!==n.y?{lower:void 0,upper:void 0}:(this.spinner||(this.spinner=i.isIos()?new yn(this.infoContainer):new vn(this.infoContainer),this.subscribe()),{lower:0,center:0,upper:i.isIos()?0:150,strict:!i.isIos()})},t.prototype.context=function(){var e=this;return this.infoContainer.show(),i.isIos()&&this.infoContainer.addClass("entry"),{spin:function(t){e.spinner.setRotation(2*t)}}},t.prototype.animation=function(){return i.isIos()?{css:{transform:"translate3d(0, ${{$D + $d}}px, 0)",spin:"${{spin($d)}}"}}:{target:this.infoContainer,css:{transform:"translate3d(0, ${{$D + $d}}px, 0)",spin:"${{spin($d)}}",opacity:"${{min(($D + $d) / 100, 1)}}"}}},t.prototype.onAnimation=function(){var e=this;this.animationInProgress=!0,this.spinner.start(),this.onPullToRefresh&&this.onPullToRefresh(),setTimeout((function(){e.runAnimation||e.stopAnimation()}))},t.prototype.stopAnimation=function(){var e=this;setTimeout((function(){e.runAnimation=!1,e.animationInProgress=!1,e.spinner.stop(),e.infoContainer.hide(),i.setCSS(e.infoContainer[0],"transform","none"),i.isIos()||i.setCSS(e.infoContainer[0],"opacity",0),e.infoContainer.removeClass("entry")}),800)},t.prototype.wait=function(){this.runAnimation=!0},t}(p.SwipeAnimation),vn=function(){function e(e,t){this.$el=e,this.options=t||{}}return e.prototype.polarToCartesian=function(e,t,n,i){var o=(i-90)*Math.PI/180;return{x:e+n*Math.cos(o),y:t+n*Math.sin(o)}},e.prototype.describeArc=function(e,t,n,i,o){var r=this.polarToCartesian(e,t,n,o),a=this.polarToCartesian(e,t,n,i),s=o-i<=180?"0":"1";return["M",r.x,r.y,"A",n,n,0,s,0,a.x,a.y,"L",a.x,a.y].join(" ")},e.prototype.init=function(){if(!this.initialized){var e=$('<svg><path id="arc1"/></svg>'),t=$('<div class="android-spinner"></div>');t.append(e),this.$el.append(t),this.cx=t.outerWidth()/2,this.cy=t.outerHeight()/2,this.r=.6*this.cx,this.path=t.find("path"),this.initialized=!0,this.container=t}},e.prototype.setRotation=function(e){this.init(),this.path.attr("d",this.describeArc(this.cx,this.cy,this.r,0,e))},e.prototype.start=function(){var e=this;this.init();var t=this,n=this.options.time||1800,i=0;this.container.addClass("spin"),this.intervalId=setInterval((function(){var n;n=(i+=10)>720?i=0:i>360?720-i:i,t.path.attr("d",e.describeArc(t.cx,t.cy,t.r,0,n))}),10*n/360)},e.prototype.stop=function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=0),this.container.removeClass("spin")},e}(),yn=function(){function e(e){this.$el=e}return e.prototype.init=function(){if(!this.svg){var e=$('<div class="ios-spinner"><svg></svg></div>'),t=e.find("svg");this.$el.append(e);for(var n=e.width(),i=0;i<12;i++)t[0].innerHTML+='<line y1="'+.15*n+'" y2="'+.3*n+'"\n transform="translate('+.5*n+", "+.5*n+") rotate("+30*i+')">\n </line>';e.append(t),this.svg=t}},e.prototype.setRotation=function(e){this.init(),this.svg.css("transform","rotateZ( "+30*Math.round(e/30)+"deg)")},e.prototype.start=function(){var e=this;this.init();var t=0;this.intervalId=setInterval((function(){t+=10,e.setRotation(t)}),20)},e.prototype.stop=function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=0)},e}(),bn=this;!function(e){e.LEFT_PANEL="page-left-panel",e.RIGHT_PANEL="page-right-panel",e.SWIPE_ELEM="page-left-panel-icon",e.CONTENT="app-content-column",e.HEADER="page-header",e.SEARCH="app-search"}(jt||(jt={}));var wn=function(e){return"[data-role='"+e+"']"},Pn=(wn("pageContainer"),function(e,t){"string"==typeof e&&(e=document.querySelector(e)),e&&(e.removeEventListener("click",t),e.addEventListener("click",t))}),_n=function(e,t){if(i.isMobile()){if(e)try{e.widget.collapse()}catch(e){}t&&i.setCSS(t,"display","none")}},On=function(e,t,n,i){void 0===i&&(i=!1),i||Pn(t,_n.bind(bn,e,n))},Sn=function(e,t){Pn(wn(jt.SWIPE_ELEM),(function(){e&&(e.widget.toggle(),e.classList.contains("visible")&&t&&i.setCSS(t,"display","none"))}))},En=function(e){Pn(e,_n)},Tn=function(e,t){"none"===$(e).css("display")?(_n(t),i.setCSS(e,"display","inline-table")):_n(t,e)},Rn=function(e,t){$(e).each((function(e,n){var i=$('<a class="app-header-action"><i class="wi wi-search"></i></a>');$(n).before(i),Pn(i,(function(){return Tn(n,t)}))}))};e.ALLFIELDS=Ot,e.AUTOCLOSE_TYPE={OUTSIDECLICK:"outsideClick",ALWAYS:"always",DISABLED:"disabled"},e.BaseComponent=_e,e.BaseContainerComponent=Ee,e.BaseFieldValidations=fn,e.ContainerDirective=Ae,e.Context=w,e.CustomPipe=ot,e.DEBOUNCE_TIMES={PAGINATION_DEBOUNCE_TIME:250},e.DISPLAY_TYPE=le,e.DataSetItem=an,e.DatasetAwareNavComponent=hn,e.DialogRef=b,e.DialogServiceImpl=gt,e.EDIT_MODE={QUICK_EDIT:"quickedit",INLINE:"inline",FORM:"form",DIALOG:"dialog"},e.EVENTS_MAP=se,e.FileExtensionFromMimePipe=dt,e.FileIconClassPipe=pt,e.FileSizePipe=ct,e.FilterPipe=lt,e.INPUTMODE={FINANCIAL:"financial",NATURAL:"natural"},e.ImagePipe=Ce,e.ItemTemplateDirective=Ne,e.LIVE_CONSTANTS=St,e.LazyLoadDirective=Le,e.MessageComponent=Be,e.NAVIGATION_TYPE={ADVANCED:"Advanced",BASIC:"Basic",CLASSIC:"Classic",INLINE:"Inline",NONE:"None",ONDEMAND:"On-Demand",PAGER:"Pager",SCROLL:"Scroll"},e.NumberToStringPipe=at,e.PROP_ANY=ie,e.PROP_BOOLEAN=ne,e.PROP_NUMBER=te,e.PROP_STRING=ee,e.PartialContainerDirective=qe,e.PartialDirective=$e,e.PartialParamDirective=We,e.PartialParamHandlerDirective=Ue,e.PrefixPipe=nt,e.PullToRefresh=gn,e.RedrawableDirective=Se,e.RepeatTemplateDirective=Me,e.SanitizePipe=vt,e.ShowInDeviceDirective=ze,e.SmoothScrollDirective=He,e.StateClassPipe=ut,e.StringToNumberPipe=st,e.StylableComponent=Oe,e.SuffixPipe=it,e.TextContentDirective=Qe,e.TimeFromNowPipe=rt,e.ToCurrencyPipe=tt,e.ToDatePipe=Ze,e.ToNumberPipe=et,e.TrailingZeroDecimalPipe=Je,e.TrustAsPipe=ht,e.WidgetRef=y,e.WmComponentsModule=wt,e.applyFilterOnField=function(e,t,n,o,r){void 0===r&&(r={});var a=t.field||t.key,s=_.filter(n,{"filter-on":a});o=t["is-range"]?xt(t.minValue,t.maxValue):i.isDefined(o)?o:t.value,!e||r.isFirst&&(_.isUndefined(o)||""===o)||_.forEach(s,(function(n){var a,s,l,c=n.field||n.key,p=t["lookup-field"]||t._primaryKey,u=n["edit-widget-type"]||n.widgettype,d={},h=n["filter-on"];A(u)&&!n.isDataSetBound&&h!==c&&(t&&t["is-related"]&&(h+="."+p),i.isDefined(o)?(l=t["is-range"]?kt(t.minValue,t.maxValue):Mt(r.enableemptyfilter)&&o===St.EMPTY_KEY?Lt(r.enableemptyfilter):i.MatchMode.EQUALS,a=_.isObject(o)&&!_.isArray(o)?o[p]:o,d[h]={value:a,matchMode:l}):d={},s=c,Et(u)&&n.dataoptions?n.dataoptions.filterFields=d:e.execute(i.DataSource.Operation.GET_DISTINCT_DATA_BY_FIELDS,{fields:s,filterFields:d,pagesize:n.limit}).then((function(e){It(n,e.data,{aliasColumn:s,widget:r.widget||"widgettype",isEnableEmptyFilter:Mt(r.enableemptyfilter),EMPTY_VALUE:r.EMPTY_VALUE})}),_t))}))},e.configureDnD=function(e,t,n,i,o){var r=Object.assign({containment:e,delay:100,opacity:.8,helper:"clone",zIndex:1050,tolerance:"pointer",start:n,update:i,sort:o},t);e.sortable(r)},e.convertDataToObject=Xt,e.createArrayFrom=Ft,e.extractDataAsArray=function(e){return _.isUndefined(e)||_.isNull(e)||""===_.trim(e)?[]:(_.isString(e)&&(e=_.split(e,",").map((function(e){return e.trim()}))),_.isArray(e)||(e=[e]),e)},e.extractDataSourceName=function(e){if(e){var t,n=e.split(".");return n.length>1&&"Variables"===n[0]&&(t=n[1]),t}},e.fetchDistinctValues=function(e,t,n){_.isEmpty(t)||t.forEach((function(t){Dt(e,t,n)}))},e.fetchRelatedFieldData=function(e,t,n){var o,r,a=n.relatedField,s=n.datafield;e&&(o=e.execute(i.DataSource.Operation.GET_RELATED_PRIMARY_KEYS,a),t.datafield=s,t._primaryKey=_.isEmpty(o)?void 0:o[0],t.compareby=o&&o.join(","),r=s===Ot?void 0:s,t.displayfield=r=t.displayfield||r||t._primaryKey,Et(t[n.widget])?(t.dataoptions={relatedField:a,filterExpr:t.filterexpressions?t.filterexpressions:{}},t.datasource=e,t.searchkey=t.searchkey||r,t.displaylabel=t.displayfield=t.displaylabel||r,t.showPendingSpinner&&(t.showPendingSpinner=!1)):Tt(t.viewParent,t.filterexpressions,(function(n){t.filterexpressions=n,e.execute(i.DataSource.Operation.GET_RELATED_TABLE_DATA,{relatedField:a,pagesize:t.limit,orderBy:t.orderby?_.replace(t.orderby,/:/g," "):"",filterFields:{},filterExpr:t.filterexpressions?t.filterexpressions:{}}).then((function(e){t.dataset=e.data,t.displayfield=t.displayfield||_.head(_.keys(_.get(e,"[0]"))),t.showPendingSpinner&&(t.showPendingSpinner=!1)}),_t)})))},e.filterDate=nn,e.getBackGroundImageUrl=I,e.getConditionalClasses=B,e.getContainerTargetClass=function(e){return".wm-app"},e.getDataTableFilterWidget=function(e){var t=un[e]&&un[e][0];return e===i.DataType.BOOLEAN&&(t=i.FormWidgetType.SELECT),_.includes([i.FormWidgetType.TEXT,i.FormWidgetType.NUMBER,i.FormWidgetType.SELECT,i.FormWidgetType.AUTOCOMPLETE,i.FormWidgetType.DATE,i.FormWidgetType.TIME,i.FormWidgetType.DATETIME],t)?t:i.FormWidgetType.TEXT},e.getDefaultValue=function(e,t,n){return n?n===i.FormWidgetType.NUMBER||n===i.FormWidgetType.SLIDER||n===i.FormWidgetType.CURRENCY?isNaN(Number(e))?null:Number(e):n===i.FormWidgetType.CHECKBOX||n===i.FormWidgetType.TOGGLE?pn(e):e:i.isNumberType(t)?isNaN(Number(e))?null:Number(e):t===i.DataType.BOOLEAN?pn(e):e},e.getDefaultViewModeWidget=function(e){return _.includes(["checkbox","toggle","rating"],e)?sn:ln},e.getDistinctFieldProperties=Rt,e.getDistinctValues=At,e.getDistinctValuesForField=Dt,e.getEditModeWidget=function(e){return e["related-entity-name"]&&e["primary-key"]?i.FormWidgetType.SELECT:un[e.type]&&un[e.type][0]||i.FormWidgetType.TEXT},e.getEmptyMatchMode=Lt,e.getEnableEmptyFilter=Mt,e.getEvaluatedData=E,e.getFieldLayoutConfig=function(e,t,n){var o="",r="";return"top"===(t=t||"top")||"floating"===t?n&&"android"===n||!i.isMobileApp()||i.isAndroid()?o=r="col-xs-12":i.isMobileApp()&&(o="col-xs-4",r="col-xs-8"):e&&_.forEach(_.split(e," "),(function(e){var t,n,i=_.split(e,"-"),a=i[0];t=parseInt(i[1],10),o+=" col-"+a+"-"+t,r+=" col-"+a+"-"+(n=(n=12-t)<=0?12:n)})),{captionCls:o,widgetCls:r}},e.getFieldTypeWidgetTypesMap=function(){return un},e.getImageUrl=C,e.getKeyboardFocusableElements=function(e){var t=e.querySelectorAll("a, button, input, textarea, select, details, iframe, embed, object, summary dialog, audio[controls], video[controls], [contenteditable]");return Array.from(t).filter((function(e){return!e.hasAttribute("disabled")&&!e.hasAttribute("hidden")&&(!e.hasAttribute("tabindex")||e.hasAttribute("tabindex")&&!e.getAttribute("tabindex").startsWith("-"))}))},e.getMatchModeMsgs=function(e){return{start:e.LABEL_STARTS_WITH,startignorecase:e.LABEL_STARTS_WITH_IGNORECASE,end:e.LABEL_ENDS_WITH,endignorecase:e.LABEL_ENDS_WITH_IGNORECASE,anywhere:e.LABEL_CONTAINS,anywhereignorecase:e.LABEL_CONTAINS_IGNORECASE,exact:e.LABEL_IS_EQUAL_TO,exactignorecase:e.LABEL_IS_EQUAL_TO_IGNORECASE,notequals:e.LABEL_IS_NOT_EQUAL_TO,notequalsignorecase:e.LABEL_IS_NOT_EQUAL_TO_IGNORECASE,lessthan:e.LABEL_LESS_THAN,lessthanequal:e.LABEL_LESS_THAN_OR_EQUALS_TO,greaterthan:e.LABEL_GREATER_THAN,greaterthanequal:e.LABEL_GREATER_THAN_OR_EQUALS_TO,null:e.LABEL_IS_NULL,isnotnull:e.LABEL_IS_NOT_NULL,empty:e.LABEL_IS_EMPTY,isnotempty:e.LABEL_IS_NOT_EMPTY,nullorempty:e.LABEL_IS_NULL_OR_EMPTY,in:e.LABEL_IN,notin:e.LABEL_NOT_IN,between:e.LABEL_BETWEEN}},e.getMatchModeTypesMap=function(e){return e&&(L.number.push("in","notin","between"),L.date.push("between"),L.string.push("in","notin"),L.character.push("in","notin")),_.forEach(M,(function(e,t){_.forEach(e,(function(e){F[e]=L[t]}))})),F.default=_.union(L.number,L.string,L.character,L.date,L.date),F},e.getObjValueByKey=S,e.getOrderByExpr=function(e){e=e||[];var t=[];return _.forEach(e,(function(e){e.direction&&t.push(e.property+" "+e.direction.toLowerCase())})),_.join(t,",")},e.getOrderedDataset=Qt,e.getRangeFieldValue=xt,e.getRangeMatchMode=kt,e.getRowOperationsColumn=function(){return{field:"rowOperations",type:"custom",displayName:"Actions",width:"120px",readonly:!0,sortable:!1,searchable:!1,resizable:!1,selectable:!1,show:!0,operations:[],opConfig:{},pcDisplay:!0,mobileDisplay:!0,tabletDisplay:!0,include:!0,isRowOperation:!0}},e.getUniqObjsByDataField=function(e,t,n,i){var o,r=t===Ot;return o=r?_.uniqWith(e,_.isEqual):_.uniqBy(e,"key"),!n||i?o:_.filter(o,(function(e){return(r||_.trim(e.key))&&_.trim(e.label)}))},e.getWatchIdentifier=k,e.getWidgetPropsByType=J,e.groupData=function(e,t,n,o,r,a,s,l,c){var p={};if(_.includes(n,"(")){var u=i.$parseEvent(n);p=_.groupBy(t,(function(t){return u(e.viewParent,{row:t.dataObject||t})}))}else p=tn(t,n,o,r,a,s,l,c);return en(p,n,r)},e.handleHeaderClick=function(e){var t=$(e.target).closest(".item-group"),n=t.find("li.list-group-header .app-icon");n.hasClass("wi-chevron-down")?n.removeClass("wi-chevron-down").addClass("wi-chevron-up"):n.removeClass("wi-chevron-up").addClass("wi-chevron-down"),t.find(".group-list-item").toggle()},e.hasLinkToCurrentPage=R,e.interpolateBindExpressions=Tt,e.isActiveNavItem=T,e.isBooleanAttr=pe,e.isDataSetWidget=A,e.isDimensionProp=de,e.isStyle=W,e.parseValueByType=function(e,t,n,o){return n?n===i.FormWidgetType.NUMBER||n===i.FormWidgetType.SLIDER||n===i.FormWidgetType.CURRENCY?isNaN(Number(e))?null:o?e:Number(e):n===i.FormWidgetType.CHECKBOX||n===i.FormWidgetType.TOGGLE?pn(e):e:i.isNumberType(t)?isNaN(Number(e))?null:Number(e):t===i.DataType.BOOLEAN?pn(e):e},e.performDataOperation=function(t,n,o){return new Promise((function(r,a){if(t.execute(i.DataSource.Operation.SUPPORTS_CRUD)){var s=void 0;switch(o.operationType){case e.Live_Operations.UPDATE:s=i.DataSource.Operation.UPDATE_RECORD;break;case e.Live_Operations.INSERT:s=i.DataSource.Operation.INSERT_RECORD;break;case e.Live_Operations.DELETE:s=i.DataSource.Operation.DELETE_RECORD}t.execute(s,n).then((function(e){return function(e,t,n){e.error?n(e):t(e)}(e,r,a)}),a)}else if(t.execute(i.DataSource.Operation.IS_API_AWARE))if("wm.CrudVariable"===t.category){var l="insert"===o.operationType?"create":"delete"===o.operationType?"delete":"update";t.execute(i.DataSource.Operation.INVOKE,{skipNotification:!0,operation:l,inputFields:n}).then(r,a)}else t.execute(i.DataSource.Operation.SET_INPUT,n),t.execute(i.DataSource.Operation.INVOKE,{skipNotification:!0}).then(r,a);else r(n)}))},e.prepareFieldDefs=function(e,t){var n,i={objects:[],terminals:[]};if(e||(e=[]),t||(t={}),t.setBindingField=!0,t.columnCount=0,n=V(e),G(n,i,"",t),!t||t&&!t.filter)return i.terminals;switch(t.filter){case"all":return i;case"objects":return i.objects;case"terminals":return i.terminals}return i},e.propNameCSSKeyMap=U,e.provideAs=D,e.provideAsDialogRef=function(e){return D(e,b)},e.provideAsWidgetRef=N,e.refreshDataSource=function(e,t){return new Promise((function(n,o){e?e.execute(i.DataSource.Operation.LIST_RECORDS,{filterFields:t.filterFields||{},orderBy:t.orderBy,page:t.page||1,logicalOp:t.condition||""}).then(n,o):o()}))},e.register=Z,e.registerFormWidget=function(e,t){var n=Q+e,i=X.get(n);i&&t.forEach((function(e,t){return i.set(t,e)}))},e.setFocusTrap=function(e,t,n){return r.createFocusTrap(e,{onActivate:function(){return e.classList.add("is-active")},onDeactivate:function(){return e.classList.remove("is-active")},allowOutsideClick:t,setReturnFocus:n})},e.setHeaderConfig=cn,e.setHeaderConfigForTable=function(e,t,n,i){n?cn(e,t,n,i):e[i]=t},e.setItemByCompare=function(e,t,n){_.forEach(e,(function(e){if(i.isEqualWithFields(e.value,t,n))return e.selected=!0,!1}))},e.styler=Y,e.toggleAllHeaders=function(e){var t=$(e.nativeElement).find(".item-group");t.find(".group-list-item").toggle();var n=t.find("li.list-group-header .app-icon");n&&_.forEach(n,(function(e){(e=$(e)).hasClass("wi-chevron-down")?e.removeClass("wi-chevron-down").addClass("wi-chevron-up"):e.removeClass("wi-chevron-up").addClass("wi-chevron-down")}))},e.transformData=function(e,t){var n,i,o,r,a,s,l;return e=e||[],_.isArray(e)?_.isString(e[0])&&(i=[],_.forEach(e,(function(e){(n={})[t.split(".").join("-")]=e,i.push(n)})),e=i):(_.isString(e)&&(o=t.substring(t.indexOf(".")+1,t.length).split("."),r=[],a=o.length,l=s={},o.forEach((function(t,n){r.forEach((function(e){l=s[e]})),l[t]=n===a-1?e:{},r.push(t)})),e=s),e=[e]),e},e.transformDataWithKeys=function(e){var t=[];if(_.isObject(e[0])||_.isObject(e)&&!(e instanceof Array)){var n=Object.keys(e[0]||e);_.forEach(n,(function(e,n){t.push({key:e,label:e,value:e,index:n+1})}))}return t},e.transformFormData=function(e,t,n,o,r,a){var s=[];if(t){if(t=Xt(t),_.isUndefined(r)&&(r=1),_.isString(t))(t=t.split(",").map((function(e){return e.trim()}))).forEach((function(t,n){var o={key:t,value:t,label:i.isDefined(t)&&null!==t?t.toString():"",index:r+n};Zt(a,e,o,"value"),s.push(o)}));else if(_.isArray(t)&&!_.isObject(t[0]))t.forEach((function(t,n){var o={key:t,value:t,label:i.isDefined(t)&&null!==t?t.toString():"",index:r+n};Zt(a,e,o,"value"),s.push(o)}));else if(t instanceof Array||!_.isObject(t))n||(n=Ot),t.forEach((function(t,l){var c=n===Ot?r+l:S(t,n);if(!_.isUndefined(c)&&!_.isNull(c)){var p=E(t,{field:o.displayField,expression:o.displayExpr,bindExpression:o.bindDisplayExpr},e),u={key:c,label:i.isDefined(p)&&null!==p?p.toString():"",value:n===Ot?t:c,dataObject:t,index:r+l};(o.displayImgSrc||o.bindDisplayImgSrc)&&(u.imgSrc=E(t,{expression:o.displayImgSrc,bindExpression:o.bindDisplayImgSrc},e)),Zt(a,e,u,"dataObject"),s.push(u)}}));else{_.forEach(t,(function(n,o){var l={key:_.trim(o),value:o,label:i.isDefined(n)&&null!==n?n.toString():"",index:r,dataObject:t};Zt(a,e,l,"value"),s.push(l)}))}return s}},e.unsupportedStatePersistenceTypes=["On-Demand","Scroll"],e.updateDeviceView=function(e,t){void 0===t&&(t=!1);var n=e.querySelector(wn(jt.LEFT_PANEL)),i=e.querySelector(wn(jt.RIGHT_PANEL)),o=e.querySelector(wn(jt.HEADER)),r=o&&o.querySelector("."+jt.SEARCH),a=e.querySelector("."+jt.CONTENT);On(n,a,r,t),n?Sn(n,r):$(o).find(wn(jt.SWIPE_ELEM)).remove(),i&&En(i),r&&Rn(r,n)},e["\u02750"]=Ke,e["\u0275a"]=oe,e["\u0275b"]=Ie,e["\u0275c"]=xe,e["\u0275d"]=Fe,e["\u0275e"]=Ge,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@wm/transpiler"),require("@wm/core"),require("@angular/compiler")):"function"==typeof define&&define.amd?define("@wm/buildTask",["exports","@wm/transpiler","@wm/core","@angular/compiler"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.buildTask={}),e.wm.transpiler,e.wm.core,e.ng.compiler)}(this,(function(e,t,n,i){"use strict";var o=new n.IDGenerator("wm_carousel_ref_"),r=function(e){return e.attrs.find((function(e){return"type"===e.name&&"dynamic"===e.value}))},a=r;t.register("wm-carousel",(function(){return{pre:function(e,n){var i=o.nextUid();return n.set("carousel_ref",i),'<div class="app-carousel carousel"><carousel wmCarousel #'+i+'="wmCarousel" '+t.getAttrMarkup(e)+' interval="0" [ngClass]="'+i+'.navigationClass">'},post:function(){return"</carousel></div>"},template:function(e){if(r(e)){var i=e.attrs.find((function(e){return"dataset"===e.name})),o=e.attrs.find((function(e){return"name"===e.name}));if(!i)return;var a=t.getBoundToExpr(i.value);if(!a)return;n.updateTemplateAttrs(e,a,o.value)}},provide:function(e,t){var n=new Map;return n.set("carousel_ref",t.get("carousel_ref")),n}}}));var s=Object.freeze({__proto__:null,default:function(){},"\u02750":a}),l=1;t.register("wm-carousel-content",(function(){return{pre:function(e){return"<slide wmCarouselTemplate "+t.getAttrMarkup(e)+">"},post:function(){return"</slide>"}}})),t.register("wm-carousel-template",(function(){return{requires:["wm-carousel"],pre:function(e,n,i){var o=i.get("carousel_ref");return'<div *ngIf="!'+o+'.fieldDefs">{{'+o+".nodatamessage}}</div>\n <"+"slide wmCarouselTemplate "+t.getAttrMarkup(e)+' *ngFor="let item of '+o+'.fieldDefs; let i = index;">\n <ng-container [ngTemplateOutlet]="carouselTempRef'+l+'" [ngTemplateOutletContext]="{item:item, index:i}"></ng-container>\n </'+"slide>\n <ng-template #carouselTempRef"+l+++' let-item="item" let-index="index">'},post:function(){return"</ng-template>"}}}));var c=Object.freeze({__proto__:null,default:function(){}});t.register("wm-login",(function(){return{pre:function(e){return"<div wmLogin "+t.getAttrMarkup(e)+' eventsource.bind="Actions.loginAction">'},post:function(){return"</div>"},provide:function(){var e=new Map;return e.set("isLogin",!0),e}}}));var p=Object.freeze({__proto__:null,default:function(){}});t.register("wm-marquee",(function(){return{pre:function(e){return'<marquee onmouseover="this.stop();" onmouseout="this.start();" wmMarquee role="marquee" aria-live="off" '+t.getAttrMarkup(e)+">"},post:function(){return"</marquee>"}}}));var u=Object.freeze({__proto__:null,default:function(){}}),d=new n.IDGenerator("wm_anchor");t.register("wm-anchor",(function(){return{pre:function(e){var n=d.nextUid();return"<a wmAnchor #"+n+'="wmAnchor" role="link" data-identifier="anchor" [attr.aria-label]="'+n+".hint || "+n+'.caption" '+t.getAttrMarkup(e)+">"},post:function(){return"</a>"}}}));var h=Object.freeze({__proto__:null,default:function(){}});t.register("wm-audio",(function(){return{pre:function(e){return"<div wmAudio "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var m=Object.freeze({__proto__:null,default:function(){}}),f=new n.IDGenerator("wm_html");t.register("wm-html",(function(){return{pre:function(e){var n=f.nextUid();return"<div wmHtml #"+n+'="wmHtml" [attr.aria-label]="'+n+".hint || 'HTML content'\" "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var g=Object.freeze({__proto__:null,default:function(){}});t.register("wm-icon",(function(){return{pre:function(e){return'<span wmIcon aria-hidden="true" '+t.getAttrMarkup(e)+">"},post:function(){return"</span>"}}}));var v=Object.freeze({__proto__:null,default:function(){}});t.register("wm-iframe",(function(){return{pre:function(e){return"<div wmIframe "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var y=Object.freeze({__proto__:null,default:function(){}}),b=new n.IDGenerator("wm_label");t.register("wm-label",(function(){return{pre:function(e){var n=b.nextUid();return"<label wmLabel #"+n+'="wmLabel" [attr.aria-label]="'+n+'.hint" '+t.getAttrMarkup(e)+">"},post:function(){return"</label>"}}}));var w=Object.freeze({__proto__:null,default:function(){}}),P=new n.IDGenerator("wm_picture");t.register("wm-picture",(function(){return{pre:function(e){var n=P.nextUid();return"<img wmPicture #"+n+'="wmPicture" alt="image" wmImageCache="'+(e.get("offline")||"true")+'" [attr.aria-label]="'+n+".hint || 'Image'\" "+t.getAttrMarkup(e)+">"}}}));var O=Object.freeze({__proto__:null,default:function(){}}),S=new n.IDGenerator("wm_spinner");t.register("wm-spinner",(function(){return{pre:function(e){var n=S.nextUid();return"<div wmSpinner #"+n+'="wmSpinner" role="alert" [attr.aria-label]="'+n+'.hint || \'Loading...\'" aria-live="assertive" aria-busy="true" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var E=Object.freeze({__proto__:null,default:function(){}}),T=function(e,t){return e.attrs.find((function(e){return e.name===t}))},R=T,A=function(e,t){var n=T(e,t);if(n)return n.value},C=A,I=function(e){return new RegExp("bind:("+e+"|"+e+"\\[\\$i])\\.","g")},D=I;t.register("wm-progress-bar",(function(){return{template:function(e){var n=A(e,"dataset"),i=t.getBoundToExpr(n);if(i){var o=A(e,"type"),r=A(e,"datavalue"),a=I(i);o&&o.includes(i)&&(o=o.replace(a,""),T(e,"type").value=o),r&&r.includes(i)&&(r=r.replace(a,""),T(e,"datavalue").value=r)}},pre:function(e){return"<div wmProgressBar "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var N=Object.freeze({__proto__:null,default:function(){},"\u02750":R,"\u02751":C,"\u02752":D});t.register("wm-progress-circle",(function(){return{pre:function(e){return"<div wmProgressCircle "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var x=Object.freeze({__proto__:null,default:function(){}}),k=new n.IDGenerator("wm_richtexteditor");t.register("wm-richtexteditor",(function(){return{pre:function(e){var n=k.nextUid();return"<div wmRichTextEditor #"+n+'="wmRichTextEditor" role="textbox" [attr.aria-label]="'+n+".hint || 'Richtext editor'\" "+t.getFormMarkupAttr(e)+">"},post:function(){return"</div>"}}}));var M=Object.freeze({__proto__:null,default:function(){}});t.register("wm-search",(function(){return{pre:function(e){return"<div wmSearch "+t.getFormMarkupAttr(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</div>"}}}));var L=Object.freeze({__proto__:null,default:function(){}});t.register("wm-tree",(function(){return{pre:function(e){return'<ul wmTree class="ztree" '+t.getAttrMarkup(e)+">"},post:function(){return"</ul>"}}}));var F=Object.freeze({__proto__:null});t.register("wm-card",(function(){return{pre:function(e){return"<div wmCard "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var j=Object.freeze({__proto__:null,default:function(){}});t.register("wm-card-content",(function(){return{pre:function(e){return"<div wmCardContent partialContainer "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var B=Object.freeze({__proto__:null,default:function(){}});t.register("wm-card-actions",(function(){return{pre:function(e){return"<div wmCardActions "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var G=Object.freeze({__proto__:null,default:function(){}});t.register("wm-card-footer",(function(){return{pre:function(e){return"<div wmCardFooter "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var V=Object.freeze({__proto__:null,default:function(){}});t.register("wm-chart",(function(){return{pre:function(e){return'<div wmChart redrawable aria-label="'+e.get("type")+' Chart" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var $=Object.freeze({__proto__:null,default:function(){}}),U=new n.IDGenerator("wm_accordion_ref_"),W=function(e){return e.attrs.find((function(e){return"type"===e.name&&"dynamic"===e.value}))},q=W;t.register("wm-accordion",(function(){return{pre:function(e,n){var i=U.nextUid();return n.set("accordion_ref",i),"<div wmAccordion #"+i+'="wmAccordion" role="tablist" aria-multiselectable="true" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"},template:function(e,i){if(W(e)){var o=e.attrs.find((function(e){return"dataset"===e.name})),r=e.attrs.find((function(e){return"name"===e.name}));if(!o)return;var a=t.getBoundToExpr(o.value);if(!a)return;n.updateTemplateAttrs(e,a,r.value)}},provide:function(e,t){var n=new Map;return n.set("accordion_ref",t.get("accordion_ref")),n}}}));var z=Object.freeze({__proto__:null,default:function(){},"\u02750":q}),H=new n.IDGenerator("wm_accordionpane");t.register("wm-accordionpane",(function(){return{pre:function(e){var n=H.nextUid();return"<div #"+n+'="wmAccordionPane" [attr.aria-expanded]="'+n+'.isActive" wmAccordionPane partialContainer wm-navigable-element="true" role="tab" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var Y=Object.freeze({__proto__:null,default:function(){}});t.register("wm-container",(function(){return{pre:function(e){return'<div wmContainer partialContainer wmSmoothscroll="'+(e.get("smoothscroll")||"false")+'" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var K=Object.freeze({__proto__:null,default:function(){}});t.register("wm-gridcolumn",(function(){return{pre:function(e){return"<div wmLayoutGridColumn "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var Q=Object.freeze({__proto__:null,default:function(){}});t.register("wm-gridrow",(function(){return{pre:function(e){return"<div wmLayoutGridRow "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var X=Object.freeze({__proto__:null,default:function(){}});t.register("wm-layoutgrid",(function(){return{pre:function(e){return"<div wmLayoutGrid "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var J=Object.freeze({__proto__:null,default:function(){}}),Z=new n.IDGenerator("wm_panel");t.register("wm-panel",(function(){return{pre:function(e){return"<div wmPanel #"+Z.nextUid()+'="wmPanel" partialContainer wm-navigable-element="true" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}})),t.register("wm-panel-footer",(function(){return{pre:function(e){return"<div wmPanelFooter "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var ee=Object.freeze({__proto__:null,default:function(){}});t.register("wm-segmented-control",(function(){return{pre:function(e){return"<div wmSegmentedControl "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var te=Object.freeze({__proto__:null,default:function(){}});t.register("wm-segment-content",(function(){return{pre:function(e){return"<li wmSegmentContent partialContainer wmSmoothscroll="+(e.get("smoothscroll")||"false")+' wm-navigable-element="true" '+t.getAttrMarkup(e)+">"},post:function(){return"</li>"}}}));var ne=Object.freeze({__proto__:null,default:function(){}}),ie=1;t.register("wm-repeat-template",(function(){return{requires:["wm-accordion","wm-tabs"],pre:function(e,n,i,o){var r=i&&i.get("accordion_ref")||o&&o.get("tabs_ref");if(r)return'<div *ngIf="'+r+".fieldDefs && !"+r+'.fieldDefs.length">{{'+r+".nodatamessage}}</div>\n <div wmRepeatTemplate "+t.getAttrMarkup(e)+' *ngFor="let item of '+r+'.fieldDefs; let i = index;">\n <ng-container [ngTemplateOutlet]="widgetRef'+ie+'" [ngTemplateOutletContext]="{item:item, index:i}"></ng-container>\n </div>\n <ng-template #widgetRef'+ie+++' let-item="item" let-index="index">'},post:function(){return"</ng-template>"}}}));var oe=Object.freeze({__proto__:null,default:function(){}}),re=new n.IDGenerator("wm_tabs_ref_"),ae=function(e){return e.attrs.find((function(e){return"type"===e.name&&"dynamic"===e.value}))},se=ae;t.register("wm-tabs",(function(){return{pre:function(e,n){var i=re.nextUid();return n.set("tabs_ref",i),"<div wmTabs #"+i+'="wmTabs" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"},template:function(e,i){if(ae(e)){var o=e.attrs.find((function(e){return"dataset"===e.name})),r=e.attrs.find((function(e){return"name"===e.name}));if(!o)return;var a=t.getBoundToExpr(o.value);if(!a)return;n.updateTemplateAttrs(e,a,r.value)}},provide:function(e,t){var n=new Map;return n.set("tabs_ref",t.get("tabs_ref")),n}}}));var le=Object.freeze({__proto__:null,default:function(){},"\u02750":se});t.register("wm-tabpane",(function(){return{pre:function(e){return"<div wmTabPane partialContainer "+t.getAttrMarkup(e)+' wm-navigable-element="true" role="tabpanel">'},post:function(){return"</div>"}}}));var ce=Object.freeze({__proto__:null,default:function(){}});t.register("wm-tile",(function(){return{pre:function(e){return'<div wmTile aria-describedby="Tile" wm-navigable-element="true" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var pe=Object.freeze({__proto__:null,default:function(){}});t.register("wm-wizard",(function(){return{pre:function(e){return'<div wmWizard role="tablist" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var ue=Object.freeze({__proto__:null,default:function(){}}),de=new n.IDGenerator("wizard_step_id_");t.register("wm-wizardstep",(function(){return{pre:function(e){var n=de.nextUid();return"<form wmWizardStep #"+n+'="wmWizardStep" '+t.getAttrMarkup(e)+'>\n <ng-template [ngIf]="'+n+'.isInitialized">'},post:function(){return"</ng-template></form>"}}}));var he=Object.freeze({__proto__:null,default:function(){}}),me=new n.IDGenerator("wm_barcodescanner");t.register("wm-barcodescanner",(function(){return{pre:function(e){var n=me.nextUid();return"<button wmBarcodescanner #"+n+'="wmBarcodescanner" [attr.aria-label]="'+n+".hint || 'Barcode scanner'\" "+t.getAttrMarkup(e)+">"},post:function(){return"</button>"}}}));var fe=Object.freeze({__proto__:null,default:function(){}}),ge=new n.IDGenerator("wm_camera");t.register("wm-camera",(function(){return{pre:function(e){var n=ge.nextUid();return"<button type='button' wmCamera #"+n+'="wmCamera" [attr.aria-label]="'+n+".hint || 'Camera'\" "+t.getAttrMarkup(e)+">"},post:function(){return"</button>"}}}));var ve=Object.freeze({__proto__:null,default:function(){}});t.register("wm-alertdialog",(function(){return{pre:function(e){return'<div wmAlertDialog role="alertdialog" wm-navigable-element="true" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var ye=Object.freeze({__proto__:null,default:function(){}});t.register("wm-confirmdialog",(function(){return{pre:function(e){return'<div wmConfirmDialog wm-navigable-element="true" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var be=Object.freeze({__proto__:null,default:function(){}});t.register("wm-dialogactions",(function(){return{pre:function(e){return'<ng-template #dialogFooter><div wmDialogFooter data-identfier="actions" '+t.getAttrMarkup(e)+">"},post:function(){return"</div></ng-template>"}}}));var we=Object.freeze({__proto__:null,default:function(){}});t.register("wm-dialog",(function(){return{pre:function(e){return"<div wmDialog "+t.getAttrMarkup(e)+' aria-modal="true" role="dialog" wm-navigable-element="true"><ng-template #dialogBody>'},post:function(){return"</ng-template></div>"}}})),t.register("wm-view",(function(){return{pre:function(e){return""},post:function(){return""}}}));var Pe=Object.freeze({__proto__:null,default:function(){}});t.register("wm-iframedialog",(function(){return{pre:function(e){return'<div wmIframeDialog wm-navigable-element="true" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var _e=Object.freeze({__proto__:null,default:function(){}});t.register("wm-logindialog",(function(){return{pre:function(e){return"<div wmDialog wmLoginDialog "+t.getAttrMarkup(e)+' eventsource.bind="Actions.loginAction" wm-navigable-element="true"><ng-template #dialogBody>'},post:function(){return"</ng-template></div>"}}}));var Oe=Object.freeze({__proto__:null,default:function(){}});t.register("wm-pagedialog",(function(){return{pre:function(e,n){var i=e.get("content");e.delete("content");var o=e.get("content.bind");e.delete("content.bind");var r=e.get("load.event");e.delete("load.event");var a="",s="";r&&(a='load.event="'+r+'"'),o?s='content.bind="'+o+'"':i&&(s='content="'+i+'"');var l="";return s&&(n.set("hasPartialContent",!0),l+="<ng-template><div wmContainer #partial partialContainer "+s+' width="100%" height="100%" '+a+">"),"<div wmPartialDialog "+t.getAttrMarkup(e)+">"+l},post:function(e,t){var n="";return t.get("hasPartialContent")&&(n="</div></ng-template>"),n+"</div>"}}}));var Se=Object.freeze({__proto__:null,default:function(){}}),Ee="quickedit",Te="form",Re="dialog",Ae={integer:["number","text","select","checkboxset","radioset","rating","slider","currency","autocomplete","chips"],big_integer:["number","text","select","checkboxset","radioset","rating","slider","currency","autocomplete","chips"],short:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],float:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],big_decimal:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],number:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],double:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],long:["number","text","select","checkboxset","radioset","rating","slider","currency","autocomplete","chips"],byte:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],string:["text","number","textarea","password","richtext","select","checkboxset","radioset","date","time","timestamp","switch","currency","autocomplete","chips","colorpicker"],character:["text","number","textarea","password","richtext","select","checkboxset","radioset","switch","currency","autocomplete","chips"],text:["text","number","textarea","password","richtext","select","checkboxset","radioset","date","time","timestamp","switch","currency","autocomplete","chips","colorpicker"],date:["date","text","number","select","checkboxset","radioset","autocomplete","chips"],time:["time","text","number","select","checkboxset","radioset","autocomplete","chips"],timestamp:["timestamp","text","number","select","checkboxset","radioset","autocomplete","chips"],datetime:["datetime","text","select","checkboxset","radioset","autocomplete","chips"],boolean:["checkbox","radioset","toggle","select"],list:["select","radioset","checkboxset","switch","autocomplete","chips"],clob:["text","textarea","richtext"],blob:["upload"],file:["upload"],custom:["text","number","textarea","password","checkbox","toggle","slider","richtext","currency","switch","select","checkboxset","radioset","date","time","timestamp","rating","datetime","autocomplete","chips","colorpicker"]},Ce=new Set([n.FormWidgetType.SELECT,n.FormWidgetType.CHECKBOXSET,n.FormWidgetType.RADIOSET,n.FormWidgetType.SWITCH,n.FormWidgetType.AUTOCOMPLETE,n.FormWidgetType.CHIPS,n.FormWidgetType.TYPEAHEAD,n.FormWidgetType.RATING]),Ie=function(e){var t=Ae[e]&&Ae[e][0];return e===n.DataType.BOOLEAN&&(t=n.FormWidgetType.SELECT),[n.FormWidgetType.TEXT,n.FormWidgetType.NUMBER,n.FormWidgetType.SELECT,n.FormWidgetType.AUTOCOMPLETE,n.FormWidgetType.DATE,n.FormWidgetType.TIME,n.FormWidgetType.DATETIME].includes(t)?t:n.FormWidgetType.TEXT},De=new n.IDGenerator("formfield_"),Ne=function(e){var n=new Map;return e.has("focus.event")||e.set("focus.event",""),e.has("blur.event")||e.set("blur.event",""),e.forEach((function(t,i){i.endsWith(".event")&&("focus.event"===i?t="_onFocusField($event);"+t:"blur.event"===i&&(t="_onBlurField($event);"+t),n.set(i,t),e.delete(i))})),t.getFormMarkupAttr(n)},xe=Ne,ke=new Map([[n.FormWidgetType.SELECT,["Select Min value","Select Max value","Select value"]],[n.FormWidgetType.DATETIME,["Select Min date time","Select Max date time","Select date time"]],[n.FormWidgetType.TIME,["Select Min time","Select Max time","Select time"]],[n.FormWidgetType.DATE,["Select Min date","Select Max date","Select date"]],[n.FormWidgetType.TEXTAREA,["","","Enter value"]],[n.FormWidgetType.RICHTEXT,["","","Enter value"]],[n.FormWidgetType.COLORPICKER,["Select Color","Select Color","Select Color"]],[n.FormWidgetType.CHIPS,["","","Type here..."]],[n.FormWidgetType.PASSWORD,["Enter Min value","Enter Max value","Enter value"]],[n.FormWidgetType.NUMBER,["Enter Min value","Enter Max value","Enter value"]],[n.FormWidgetType.TEXT,["Enter Min value","Enter Max value","Enter value"]],[n.FormWidgetType.CURRENCY,["Enter Min value","Enter Max value","Enter value"]],[n.FormWidgetType.AUTOCOMPLETE,["","","Search"]]]),Me=function(e,t,n){var i=1===n?"maxplaceholder":"placeholder",o=e.get(i);o||""===o||(o=ke.get(t)&&ke.get(t)[n])&&e.set(i,o)},Le=Me,Fe=function(e,t){var i=e.get("name"),o=(e.get("key")||i||"").trim(),r=t.isMaxWidget?'formControlName="'+o+'_max"':t.isInList?'[formControlName]="'+t.counter+'._fieldName"':'formControlName="'+o+'"',a=t.isMaxWidget?"#formWidgetMax":"#formWidget",s=i?t.isMaxWidget?'name="'+i+'_formWidgetMax"':'name="'+i+'_formWidget"':"",l='[ngClass]="'+e.get("ngclass")+'"',c='[class.hidden]="!'+t.pCounter+".isUpdateMode && "+t.counter+".viewmodewidget !== 'default'\" "+r+" "+t.eventsTmpl+" "+l+" "+a+" "+s;return n.getFormWidgetTemplate(t.widgetType,c,e,{counter:t.counter,pCounter:t.pCounter})},je=Fe,Be=function(e,t,i,o,r,a){if(!("true"===e.get("is-range")))return Fe(e,{widgetType:t,eventsTmpl:i,counter:o,pCounter:r,isInList:a});var s=n.isMobileApp()?"col-xs-6":"col-sm-6";return'<div class="'+s+'">'+Fe(e,{widgetType:t,eventsTmpl:i,counter:o,pCounter:r})+'</div>\n <div class="'+s+'">'+Fe(e,{widgetType:t,eventsTmpl:i,counter:o,pCounter:r,isMaxWidget:!0})+"</div>"},Ge=Be,Ve=function(e,t,i){if("true"===e.get("is-related"))return i+".getDisplayExpr()";if(t===n.FormWidgetType.PASSWORD)return"'********'";var o,r=i+".value";return t===n.FormWidgetType.DATETIME||t===n.FormWidgetType.TIMESTAMP?r+=" | toDate:"+i+".formWidget.datepattern || 'yyyy-MM-dd hh:mm:ss a'":t===n.FormWidgetType.TIME?r+=" | toDate:"+i+".formWidget.timepattern || 'hh:mm a'":t===n.FormWidgetType.DATE?r+=" | toDate:"+i+".formWidget.datepattern || 'yyyy-MMM-dd'":t===n.FormWidgetType.RATING||t===n.FormWidgetType.UPLOAD?"":(o=t,Ce.has(o)&&"All Fields"===e.get("datafield")?i+".getDisplayExpr()":i+".getCaption()")},$e=Ve,Ue=function(e){return{requires:["wm-form","wm-liveform","wm-livefilter","wm-list"],pre:function(i,o,r,a,s,l){var c=De.nextUid(),p=r||a||s,u=p&&p.get("form_reference")||"form",d=i.get("widget")||n.FormWidgetType.TEXT,h=e?"form-field":"filter-field",m="wmform-field-error-"+n.generateGUId(),f=e?'<p *ngIf="'+c+"._control?.invalid && "+c+"._control?.touched && "+u+'.isUpdateMode"\n class="help-block text-danger" aria-hidden="false" role="alert"\n aria-live="assertive" [attr.aria-label]="'+c+'.validationmessage" id="'+m+'"><span aria-hidden="true" [textContent]="'+c+'.validationmessage"></span></p>':"",g=d===n.FormWidgetType.UPLOAD?"":Ne(i),v=n.isMobileApp()?"col-xs-12":"col-sm-12",y=u===(l&&l.get("parent_form_reference"));return i.set("__validationId",m),i.set("__widgetType",d),i.delete("widget"),o.set("counter",c),"true"===i.get("is-range")?(Me(i,d,0),Me(i,d,1)):Me(i,d,2),'<div data-role="'+h+'" [formGroup]="'+u+'.ngform" wmFormField captionPosition #'+c+'="wmFormField" widgettype="'+d+'" '+t.getFormMarkupAttr(i)+'>\n <div class="live-field form-group app-composite-widget clearfix caption-{{'+u+'.captionposition}}" widget="'+d+'">\n <label [hidden]="!'+c+'.displayname" class="app-label control-label formfield-label {{'+u+'._captionClass}}"\n [ngStyle]="{width: '+u+".captionsize}\" [ngClass]=\"{'text-danger': "+c+"._control?.invalid && "+c+"._control?.touched && "+u+".isUpdateMode,\n required: "+u+".isUpdateMode && "+c+'.required}" [textContent]="'+c+'.displayname"> </label>\n <div [ngClass]="'+c+".displayname ? "+u+"._widgetClass : '"+v+'\'">\n <label class="form-control-static app-label"\n [hidden]="'+u+".isUpdateMode || "+c+".viewmodewidget === 'default' || "+c+".widgettype === 'upload'\" [innerHTML]=\""+Ve(i,d,c)+'"></label>\n '+Be(i,d,g,c,u,y)+'\n <span aria-hidden="true" *ngIf="'+c+'.showPendingSpinner" class="form-field-spinner fa fa-circle-o-notch fa-spin form-control-feedback"></span>\n <p *ngIf="!('+c+"._control?.invalid && "+c+"._control?.touched) && "+u+'.isUpdateMode"\n class="help-block" aria-hidden="true" role="alert" aria-live="polite" [textContent]="'+c+'.hint"></p>\n '+f+"\n </div>\n </div>"},post:function(){return"</div>"},provide:function(e,t){var n=new Map;return n.set("form_reference",t.get("counter")),n},imports:function(e){var t=n.getRequiredFormWidget(e.get("__widgetType")||e.get("type"));return e.delete("__widgetType"),[t,"wm-form"]}}},We=Ue;t.register("wm-form-field",Ue.bind(this,!0)),t.register("wm-filter-field",Ue.bind(this,!1));var qe=Object.freeze({__proto__:null,default:function(){},"\u02750":xe,"\u02751":Le,"\u02752":je,"\u02753":Ge,"\u02754":$e,"\u02755":We}),ze=function(e){return{pre:function(n){return'<div wmFormAction name="'+(n.get("name")||n.get("key"))+'" '+t.getAttrMarkup(n)+" "+e+">"},post:function(){return"</div>"}}},He=ze;t.register("wm-form-action",ze.bind(this,"")),t.register("wm-filter-action",ze.bind(this,' update-mode="true" '));var Ye,Ke=Object.freeze({__proto__:null,default:function(){},"\u02750":He}),Qe=new n.IDGenerator("form_"),Xe=new Set(["wm-text","wm-textarea","wm-checkbox","wm-slider","wm-richtexteditor","wm-currency","wm-switch","wm-select","wm-checkboxset","wm-radioset","wm-date","wm-time","wm-timestamp","wm-upload","wm-rating","wm-datetime","wm-search","wm-chips","wm-colorpicker","wm-table"]),Je=function(e){void 0===e&&(e=[]),e.forEach((function(e){if("wm-form-field"===e.name&&Ye++,Xe.has(e.name)){var t=e.attrs.find((function(e){return"key"===e.name||"name"===e.name}));if(!(t=t&&t.value)){var n=e.attrs.find((function(e){return"datavalue"===e.name}));if(n&&n.value){(n=n.value.match(/\((.*)\)/))&&n.length>1&&(t=n[1].replace(/["']/g,""))}}e.attrs.push(new i.Attribute("formControlName",t,1,1,1,void 0,void 0)),e.attrs.push(new i.Attribute("wmFormWidget","",1,1,1,void 0,void 0))}Je(e.children)}))},Ze=Je,et=function(e){if(e.get("formdata.bind")){var n=t.getDataSource(e.get("formdata.bind"));n&&e.set("formdatasource.bind",n)}},tt=et,nt=function(e){return void 0===e&&(e=""),{requires:["wm-livetable","wm-login"],template:function(e){Ye=0,Je(e.children)},pre:function(n,i,o,r){var a,s,l=r&&r.get("isLogin")?"app-login":"",c=Qe.nextUid(),p=n.get("dependson")?'dependson="'+n.get("dependson")+'"':"",u="page"===n.get("formlayout")?"app-device-liveform panel liveform-inline":"";n.delete("dependson");var d='<form wmForm data-role="'+l+'" '+e+" #"+c+' ngNativeValidate [formGroup]="'+c+'.ngform" [noValidate]="'+c+".validationtype !== 'html'\"\n class=\""+u+'" [class]="'+c+'.captionAlignClass" [autocomplete]="'+c+".autocomplete ? 'on' : 'off'\" captionposition="+n.get("captionposition");if(n.set("numberOfFields",""+Ye),i.set("counter",c),et(n),"dialog"===n.get("formlayout")){s=o?o.get("liveform_dialog_id"):"liveform_dialog_id_"+c,n.set("dialogId",s);var h=new Map;return["title","title.bind","iconclass","iconclass.bind","width"].forEach((function(e){n.get(e)&&h.set(e,n.get(e))})),n.set("width","100%"),a=t.getAttrMarkup(n),'<div data-identifier="liveform" init-widget class="app-liveform liveform-dialog" '+p+' dialogid="'+s+'">\n <div wmDialog class="app-liveform-dialog" name="'+s+'" role="form" '+t.getAttrMarkup(h)+' modal="true">\n <ng-template #dialogBody>\n '+d+" "+a+">"}var m="",f="";if("page"===n.get("formlayout")){var g="device_liveform_header_"+c,v=new Map;v.set("title",n.get("title")),v.set("backbtnclick.event",n.get("backbtnclick.event")),f='<ng-template #buttonRef let-btn="btn">\n <button wmButton name="{{btn.key}}" class="navbar-btn btn-primary btn-transparent" iconclass.bind="btn.iconclass" show.bind="btn.show"\n (click)="'+c+'.invokeActionEvent($event, btn.action)" type.bind="btn.type" hint.bind="btn.title" shortcutkey.bind="btn.shortcutkey" disabled.bind="btn.disabled"\n tabindex.bind="btn.tabindex" [class.hidden]="btn.updateMode ? !'+c+".isUpdateMode : "+c+'.isUpdateMode"></button>\n </ng-template>',m='<header wmMobileNavbar name="'+g+'" '+t.getAttrMarkup(v)+'>\n <ng-container *ngFor="let btn of '+c+'.buttonArray" [ngTemplateOutlet]="buttonRef" [ngTemplateOutletContext]="{btn:btn}">\n </ng-container>\n </header>\n <div class="form-elements panel-body" >'}return d+" "+(a=t.getAttrMarkup(n))+" "+p+">\n "+f+" "+m},post:function(e){return"dialog"===e.get("formlayout")?"</form></ng-template></div></div>":"page"===e.get("formlayout")?"</div></form>":"</form>"},provide:function(e,t){var n=new Map;return n.set("form_reference",t.get("counter")),n}}},it=nt;t.register("wm-form",nt),t.register("wm-liveform",(function(){return nt("wmLiveForm")})),t.register("wm-livefilter",(function(){return nt("wmLiveFilter")}));var ot=Object.freeze({__proto__:null,default:function(){},"\u02750":Ze,"\u02751":tt,"\u02752":it});t.register("wm-calendar",(function(){return{pre:function(e){return'<div wmCalendar redrawable style="width:100%" aria-label="'+(e.get("view")?e.get("view")+" view":"month view")+'" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var rt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-chips",(function(){return{pre:function(e){return'<ul wmChips role="listbox" '+t.getAttrMarkup(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</ul>"}}}));var at=Object.freeze({__proto__:null,default:function(){}});t.register("wm-colorpicker",(function(){return{pre:function(e){return"<div wmColorPicker "+t.getAttrMarkup(e)+' role="input" '+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</div>"}}}));var st=Object.freeze({__proto__:null,default:function(){}});t.register("wm-currency",(function(){return{pre:function(e){return"<div wmCurrency "+t.getAttrMarkup(e)+' role="input" '+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</div>"}}}));var lt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-buttongroup",(function(){return{pre:function(e){return'<div wmButtonGroup role="group" aria-labelledby="button group" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var ct=Object.freeze({__proto__:null,default:function(){}}),pt=new n.IDGenerator("wm_button");t.register("wm-button",(function(){return{pre:function(e){var n=pt.nextUid();return"<button wmButton #"+n+'="wmButton" [attr.aria-label]="'+n+".hint || "+n+'.caption" '+t.getAttrMarkup(e)+">"},post:function(){return"</button>"}}}));var ut=Object.freeze({__proto__:null,default:function(){}});t.register("wm-checkbox",(function(){return{pre:function(e){return"<div wmCheckbox "+t.getFormMarkupAttr(e)+" "+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</div>"}}}));var dt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-checkboxset",(function(){return{pre:function(e){return'<ul role="group" wmCheckboxset '+t.getFormMarkupAttr(e)+" "+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</ul>"}}}));var ht=Object.freeze({__proto__:null,default:function(){}});t.register("wm-composite",(function(){return{pre:function(e){return"<div wmComposite captionPosition "+t.setChildAttrs(e)+" "+t.getAttrMarkup(e)+">"},post:function(){return"</div"+t.clearChildAttrs()+">"}}}));var mt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-number",(function(){return{pre:function(e){return"<div wmNumber "+t.getFormMarkupAttr(e)+" "+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</div>"}}}));var ft=Object.freeze({__proto__:null,default:function(){}});t.register("wm-radioset",(function(){return{pre:function(e){return'<ul role="radiogroup" wmRadioset '+t.getFormMarkupAttr(e)+" "+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</ul>"}}}));var gt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-select",(function(){return{pre:function(e){return"<wm-select "+t.getFormMarkupAttr(e)+" "+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</wm-select>"}}}));var vt=Object.freeze({__proto__:null,default:function(){}}),yt=new n.IDGenerator("wm_switch");t.register("wm-switch",(function(){return{pre:function(e){var i=yt.nextUid();return"<div wmSwitch #"+i+'="wmSwitch" [attr.aria-label]="'+i+".hint || 'Switch button'\" "+t.getFormMarkupAttr(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</div>"}}}));var bt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-text",(function(){return{pre:function(e){return"<wm-input "+t.getFormMarkupAttr(e)+" "+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</wm-input>"}}}));var wt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-textarea",(function(){return{pre:function(e){return"<wm-textarea "+t.getFormMarkupAttr(e)+" "+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</wm-textarea>"}}}));var Pt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-datetime",(function(){return{pre:function(e){return"<div wmDateTime "+t.getFormMarkupAttr(e)+" "+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</div>"}}}));var _t=Object.freeze({__proto__:null,default:function(){}});t.register("wm-date",(function(){return{pre:function(e){return"<div wmDate "+t.getFormMarkupAttr(e)+" "+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</div>"}}}));var Ot=Object.freeze({__proto__:null,default:function(){}});t.register("wm-time",(function(){return{pre:function(e){return"<div wmTime "+t.getFormMarkupAttr(e)+" "+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</div>"}}}));var St=Object.freeze({__proto__:null,default:function(){}});t.register("wm-fileupload",(function(){return{pre:function(e){if(e.get("select.event")){var n=t.getDataSource(e.get("select.event"));e.set("datasource.bind",n)}return"<div wmFileUpload "+t.getAttrMarkup(e)+' role="input">'},post:function(){return"</div>"}}}));var Et=Object.freeze({__proto__:null,default:function(){}});t.register("wm-rating",(function(){return{pre:function(e){return"<div wmRating "+t.getFormMarkupAttr(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</div>"}}}));var Tt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-slider",(function(){return{pre:function(e){return"<div wmSlider "+t.getAttrMarkup(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</div>"}}}));var Rt=Object.freeze({__proto__:null,default:function(){}});function At(e,t,n,o){var r=e.attrs.find((function(e){return e.name===t}));r&&n.attrs.push(new i.Attribute(o,r.value,r.sourceSpan,r.keySpan,r.valueSpan,void 0,void 0))}t.register("wm-media-list",(function(){return{template:function(e){var t,n=e.attrs.find((function(e){return"dataset"===e.name})),o=function(e){void 0===e&&(e=[]),e.forEach((function(e){e.name&&"wm-list"!==e.name&&(e.attrs.forEach((function(e){e.value.startsWith("bind:"+t+".data[$i]")?e.value=e.value.replace(t+".data[$i]","item"):e.value.startsWith("bind:"+t)&&(e.value=e.value.replace(t,"item"))})),o(e.children))}))};n&&n.value.startsWith("bind:")&&(t=n.value.replace("bind:","")),t&&o(e.children);var r=e.children.find((function(e){return e instanceof i.Element&&"wm-media-template"===e.name}));null!=r&&(At(r,"width",e,"thumbnailwidth"),At(r,"height",e,"thumbnailheight"))},pre:function(e){return"<div wmMediaList "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var Ct=Object.freeze({__proto__:null,default:function(){}});t.register("wm-media-template",(function(){return{pre:function(){return'<ng-template #mediaListTemplate let-item="item" let-index="index">'},post:function(){return"</ng-template>"}}}));var It=Object.freeze({__proto__:null,default:function(){}});t.register("wm-list",(function(){return{requires:["wm-form","wm-liveform"],template:function(e){var i=e.attrs.find((function(e){return"dataset"===e.name})),o=e.attrs.find((function(e){return"name"===e.name}));if(i){var r=t.getBoundToExpr(i.value);r&&n.updateTemplateAttrs(e,r,o.value,"itemRef.")}},pre:function(e,n,i,o){var r=i||o;return n.set("form_reference",r&&r.get("form_reference")),"<div wmList wmLiveActions "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"},provide:function(e,t){var n=new Map;return n.set("parent_form_reference",t.get("form_reference")),n}}})),t.register("wm-listtemplate",(function(){return{pre:function(){return'<ng-template #listTemplate let-item="item" let-$index="$index" let-itemRef="itemRef" let-$first="$first" let-$last="$last" let-currentItemWidgets="currentItemWidgets" >'},post:function(){return"</ng-template>"}}})),t.register("wm-list-action-template",(function(){return{template:function(e){e.attrs.find((function(e){return"position"===e.name})).value;e.children.filter((function(e){return e instanceof i.Element&&"wm-button"===e.name})).forEach((function(t){var n,o,r,a;n="position",o=t,r="swipe-position",(a=e.attrs.find((function(e){return e.name===n})))&&o.attrs.push(new i.Attribute(r,a.value,a.sourceSpan,a.keySpan,a.valueSpan,void 0,void 0))}))},pre:function(e,n){return"left"===e.get("position")?'<ng-template #listLeftActionTemplate>\n <li class="app-list-item-action-panel app-list-item-left-action-panel actionMenu" '+t.getAttrMarkup(e)+">":"right"===e.get("position")?'<ng-template #listRightActionTemplate>\n <li class="app-list-item-action-panel app-list-item-right-action-panel actionMenu" '+t.getAttrMarkup(e)+">":void 0},post:function(){return"</li></ng-template>"}}}));var Dt=Object.freeze({__proto__:null,default:function(){}}),Nt=new n.IDGenerator("liveform_dialog_id_");t.register("wm-livetable",(function(){return{pre:function(e,n){var i=Nt.nextUid();return n.set("counter",i),"<div wmLiveTable "+t.getAttrMarkup(e)+' dialogid="'+i+'">'},post:function(){return"</div>"},provide:function(e,t){var n=new Map;return n.set("liveform_dialog_id",t.get("counter")),n}}}));var xt=Object.freeze({__proto__:null,default:function(){}}),kt=new n.IDGenerator("wm_message");t.register("wm-message",(function(){return{pre:function(e){return'<p wmMessage tabindex="0" #'+kt.nextUid()+'="wmMessage" '+t.getAttrMarkup(e)+">"},post:function(){return"</p>"}}}));var Mt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-breadcrumb",(function(){return{pre:function(e){return"<ol wmBreadcrumb "+t.getAttrMarkup(e)+">"},post:function(){return"</ol>"}}}));var Lt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-menu",(function(){return{pre:function(e){return"<div wmMenu dropdown "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var Ft=Object.freeze({__proto__:null,default:function(){}});t.register("wm-nav-item",(function(){return{pre:function(e){return'<li wmNavItem role="listitem" '+t.getAttrMarkup(e)+">"},post:function(){return"</li>"}}}));var jt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-nav",(function(){return{pre:function(e){return'<ul wmNav data-element-type="wmNav" data-role="page-header" role="list" '+t.getAttrMarkup(e)+">"},post:function(){return"</ul>"}}}));var Bt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-navbar",(function(){return{pre:function(e){return'<nav wmNavbar data-element-type="wmNavbar" role="navigation" '+t.getAttrMarkup(e)+">"},post:function(){return"</nav>"}}}));var Gt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-popover",(function(){return{requires:["wm-table"],pre:function(e,n,i){var o;if("inline"!==e.get("contentsource")){var r=e.get("content"),a=e.get("content.bind"),s="";r?s='content="'+r+'"':a&&(s='content.bind="'+a+'"'),o="<div wmContainer #partial partialContainer "+s+">",n.set("hasPopoverContent",!0)}var l="<wm-popover wmPopover "+t.getAttrMarkup(e)+">";return l+="<ng-template "+(i?'let-row="row"':"")+'><div tabindex="0" class="popover-start sr-only" aria-label="">popover content start</div>',o&&(l+=""+(o||"")),l},post:function(e,t){var n="";return t.get("hasPopoverContent")&&(n+="</div>"),n+'<div tabindex="0" class="popover-end sr-only" aria-label="">popover content ended</div></ng-template></'+"wm-popover>"}}}));var Vt=Object.freeze({__proto__:null,default:function(){}}),$t=function(e,t){return e&&e.children.find((function(e){return e instanceof i.Element&&e.name===t}))},Ut=$t,Wt=function(e){return new i.Element(e,[],[],Qt,Qt,Qt)},qt=Wt,zt=function(e,t,n){var o=new i.Attribute(t,n,Qt,Qt,Qt,void 0,void 0);e.attrs.push(o)},Ht=zt,Yt=function(e,t){var n;if(t)return _.forEach(t.children,(function(t){return t instanceof i.Element&&(t.name===e?n=t:t.children&&(n=Yt(e,t))),!n})),n},Kt=Yt,Qt={},Xt=new n.IDGenerator("wm_page");t.register("wm-page",(function(){return{template:function(e){var t=$t($t(e,"wm-content"),"wm-page-content");if(t||(t=Yt("wm-page-content",Yt("wm-content",e))),t){var o=Wt("ng-container");if(zt(o,"*ngIf","compilePageContent"),o.children=o.children.concat(t.children),o.children.push(new i.Text("{{onPageContentReady()}}",null,void 0,void 0)),t.children=[o],n.isMobileApp()){var r=Wt("div");zt(r,"wmPageContentLoader",""),zt(r,"*ngIf","!showPageContent"),t.children.push(r)}}},pre:function(e){var n=Xt.nextUid();return"<div wmPage #"+n+'="wmPage" data-role="pageContainer" [attr.aria-label]="'+n+'.hint" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var Jt=Object.freeze({__proto__:null,default:function(){},"\u02750":Ut,"\u02751":qt,"\u02752":Ht,"\u02753":Kt}),Zt=new n.IDGenerator("wm_layout");t.register("wm-layout",(function(){return{pre:function(e){var n=Zt.nextUid();return"<div wmLayout #"+n+'="wmLayout" data-role="pageContainer" [attr.aria-label]="'+n+".hint || 'Main page content'\" "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var en=Object.freeze({__proto__:null,default:function(){}}),tn="router-outlet";t.register("wm-router-outlet",(function(){return{pre:function(e){return'<div wmRouterOutlet name="wmRouterOutlet" '+t.getAttrMarkup(e)+"><"+tn+' (activate)="onActivate($event)">'},post:function(){return"</router-outlet></div>"}}}));var nn=Object.freeze({__proto__:null,default:function(){}});t.register("wm-pagination",(function(){return{pre:function(e){return'<nav wmPagination data-identifier="pagination" aria-label="Page navigation" '+t.getAttrMarkup(e)+">"},post:function(){return"</nav>"}}}));var on=Object.freeze({__proto__:null,default:function(){}});t.register("wm-content",(function(){return{pre:function(e){return'<main wmContent data-role="page-content" role="main" '+t.getAttrMarkup(e)+">"},post:function(){return"</main>"}}}));var rn=Object.freeze({__proto__:null,default:function(){}}),an=new n.IDGenerator("wm_footer");t.register("wm-footer",(function(){return{pre:function(e){var n=an.nextUid();return"<footer wmFooter #"+n+'="wmFooter" partialContainer data-role="page-footer" role="contentinfo" [attr.aria-label]="'+n+".hint || 'Page footer'\" "+t.getAttrMarkup(e)+">"},post:function(){return"</footer>"}}}));var sn=Object.freeze({__proto__:null,default:function(){}}),ln=new n.IDGenerator("wm_header");t.register("wm-header",(function(){return{pre:function(e){var n=ln.nextUid();return"<header wmHeader #"+n+'="wmHeader" partialContainer data-role="page-header" role="banner" [attr.aria-label]="'+n+".hint || 'Page header'\" "+t.getAttrMarkup(e)+">"},post:function(){return"</header>"}}}));var cn=Object.freeze({__proto__:null,default:function(){}}),pn=new n.IDGenerator("wm_left_panel");t.register("wm-left-panel",(function(){return{pre:function(e){var n=pn.nextUid();return"<aside wmLeftPanel #"+n+'="wmLeftPanel" partialContainer data-role="page-left-panel" [attr.aria-label]="'+n+".hint || 'Left navigation panel'\" wmSmoothscroll=\""+(e.get("smoothscroll")||"false")+'" '+t.getAttrMarkup(e)+">"},post:function(){return"</aside>"}}}));var un=Object.freeze({__proto__:null,default:function(){}});t.register("wm-mobile-navbar",(function(){return{pre:function(e){return"<header wmMobileNavbar "+t.getAttrMarkup(e)+">"},post:function(){return"</header>"}}}));var dn=Object.freeze({__proto__:null,default:function(){}}),hn=new n.IDGenerator("wm_right_panel");t.register("wm-right-panel",(function(){return{pre:function(e){var n=hn.nextUid();return"<aside wmRightPanel #"+n+'="wmRightPanel" partialContainer data-role="page-right-panel" role="complementary" [attr.aria-label]="'+n+".hint || 'Right navigation panel'\" "+t.getAttrMarkup(e)+">"},post:function(){return"</aside>"}}}));var mn=Object.freeze({__proto__:null,default:function(){}});Object.create;function fn(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;var gn=function(e){return new i.Element(e,[],[],wn,wn,wn)},vn=gn,yn=function(e,t,n){var o=new i.Attribute(t,n,wn,wn,wn,void 0,void 0);e.attrs.push(o)},bn=yn,wn={};t.register("wm-page-content",(function(){return{template:function(e){var t,n;try{for(var o=fn(e.attrs),r=o.next();!r.done;r=o.next()){var a=r.value;if("spa"===a.name&&"true"===a.value){var s=gn("ng-container");yn(s,"*ngIf","compilePageContent"),s.children=s.children.concat(e.children),s.children.push(new i.Text("{{onPageContentReady()}}",null,void 0,void 0)),e.children=[s];break}}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},pre:function(e){return"<div wmPageContent "+(e.get("spa")?"wmSpaPage":"")+' wmSmoothscroll="'+(e.get("smoothscroll")||"false")+'" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var Pn=Object.freeze({__proto__:null,default:function(){},"\u02750":vn,"\u02751":bn});t.register("wm-mobile-tabbar",(function(){return{pre:function(e){return"<div wmMobileTabbar "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var _n=Object.freeze({__proto__:null,default:function(){}}),On=new n.IDGenerator("wm_top_nav");t.register("wm-top-nav",(function(){return{pre:function(e){var n=On.nextUid();return"<section wmTopNav #"+n+'="wmTopNav" partialContainer data-role="page-topnav" role="navigation" [attr.aria-label]="'+n+".hint || 'Second level navigation'\" "+t.getAttrMarkup(e)+">"},post:function(){return"</section>"}}}));var Sn=Object.freeze({__proto__:null,default:function(){}}),En={},Tn=function(e){return new i.Element(e,[],[],En,En,En)},Rn=Tn,An=function(e,t,n){var o=new i.Attribute(t,n,En,En,En,void 0,void 0);e.attrs.push(o)},Cn=An;t.register("wm-partial",(function(){return{template:function(e){var t=Tn("ng-container");An(t,"*ngIf","compileContent"),t.children=t.children.concat(e.children),e.children.length=0,e.children.push(t)},pre:function(e){return'<section wmPartial data-role="partial" '+t.getAttrMarkup(e)+">"},post:function(){return"</section>"}}}));var In=Object.freeze({__proto__:null,default:function(){},"\u02750":Rn,"\u02751":Cn});t.register("wm-param",(function(){return{pre:function(e){return"<div wmParam hidden "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var Dn=Object.freeze({__proto__:null,default:function(){}});t.register("wm-prefab",(function(){return{pre:function(e){return'<section wmPrefab redrawable data-role="perfab" '+t.getAttrMarkup(e)+">"},post:function(){return"</section>"}}}));var Nn=Object.freeze({__proto__:null,default:function(){}}),xn={},kn=function(e){return new i.Element(e,[],[],xn,xn,xn)},Mn=kn,Ln=function(e,t,n){var o=new i.Attribute(t,n,xn,xn,xn,void 0,void 0);e.attrs.push(o)},Fn=Ln;t.register("wm-prefab-container",(function(){return{template:function(e){var t=kn("ng-container");Ln(t,"*ngIf","compileContent"),t.children=t.children.concat(e.children),e.children.length=0,e.children.push(t)},pre:function(e){return"<div wmPrefabContainer "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var jn=Object.freeze({__proto__:null,default:function(){},"\u02750":Mn,"\u02751":Fn});t.register("wm-table-action",(function(){return{pre:function(e){return'<div name="'+(e.get("name")||e.get("key"))+'" wmTableAction '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var Bn=Object.freeze({__proto__:null,default:function(){}});t.register("wm-table-column-group",(function(){return{pre:function(e){return"<div wmTableColumnGroup "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var Gn=Object.freeze({__proto__:null,default:function(){}}),Vn=new n.IDGenerator("data_table_form_"),$n=new Set(["wm-text","wm-textarea","wm-checkbox","wm-slider","wm-currency","wm-switch","wm-select","wm-checkboxset","wm-radioset","wm-date","wm-time","wm-timestamp","wm-rating","wm-datetime","wm-search","wm-chips","wm-colorpicker"]),Un=function(e){void 0===e&&(e=[]);e.forEach((function(e){if($n.has(e.name)){if("wm-checkbox"===e.name&&e.attrs.filter((function(e){return"formControlName"===e.name})).length)return;e.attrs.push(new i.Attribute("[ngModelOptions]","{standalone: true}",1,1,1,void 0,void 0))}Un(e.children)}))},Wn=Un,qn=function(e,i){var o,r,a=e.get("filterwidget")||Ie(e.get("type")||n.DataType.STRING),s=e.get("binding"),l=e.get("type")||"string",c=e.get("filterdataset.bind");if("autocomplete"===e.get("filterwidget")){if(c)o='dataset.bind="'+c+'" datasource.bind="'+t.getDataSource(c)+'"';r="submit.event=\"changeFn('"+s+"')\""}var p='#filterWidget formControlName="'+s+'_filter" '+o+" "+r+" change.event=\"changeFn('"+s+"')\"\n disabled.bind=\"isDisabled('"+s+"')\"";return'<ng-template #filterTmpl let-changeFn="changeFn" let-isDisabled="isDisabled">\n <div class="input-group '+a+'" data-col-identifier="'+s+'">\n '+(""+n.getFormWidgetTemplate(a,p,e,{inputType:"filterinputtype"}))+'\n <span class="input-group-addon filter-clear-icon" *ngIf="'+i+".showClearIcon('"+s+'\')">\n <button class="btn-transparent btn app-button" aria-label="Clear button" type="button" (click)="'+i+".clearRowFilter('"+s+'\')">\n <i class="app-icon wi wi-clear" aria-hidden="true"></i>\n </button>\n </span>\n <span class="input-group-addon" dropdown container="body" (onShown)="'+i+".adjustContainer('"+s+'\');">\n <button class="btn-transparent btn app-button" type="button" dropdownToggle><i class="app-icon wi wi-filter-list"></i></button>\n <ul class="matchmode-dropdown dropdown-menu" *dropdownMenu>\n <li *ngFor="let matchMode of '+i+".matchModeTypesMap['"+l+'\']"\n [ngClass]="{active: matchMode === ('+i+".rowFilter['"+s+"'].matchMode || "+i+".matchModeTypesMap['"+l+'\'][0])}">\n <a href="javascript:void(0);" (click)="'+i+".onFilterConditionSelect('"+s+'\', matchMode)" [innerText]="'+i+'.matchModeMsgs[matchMode]"></a>\n </li>\n </ul>\n </span>\n </div></ng-template>'},zn=qn,Hn=function(e){var t="";return e.forEach((function(e,n){n.endsWith(".event")&&(t+=n+'="'+e+'" ')})),t},Yn=Hn,Kn=function(e){var n=new Map;return["disabled","disabled.bind"].forEach((function(t){e.get(t)&&(n.set(t,e.get(t)),e.delete(t))})),t.getAttrMarkup(n)},Qn=Kn,Xn=function(e,t,i,o){var r,a={},s=e.get("binding"),l=e.get("edit-widget-type")||((r={type:e.get("type"),"related-entity-name":e.get("related-entity-name"),"primary-key":e.get("primary-key")})["related-entity-name"]&&r["primary-key"]?n.FormWidgetType.SELECT:Ae[r.type]&&Ae[r.type][0]||n.FormWidgetType.TEXT),c="",p="",u="";l===n.FormWidgetType.UPLOAD?(a.uploadProps={formName:Vn.nextUid(),name:s},a.counter=o):(c=t?"#inlineWidgetNew":"#inlineWidget",p=t?'formControlName="'+s+'_new"':'formControlName="'+s+'"',u="wmFormWidget"),a.inputType="editinputtype";var d=t?"#inlineWidgetTmplNew":"#inlineWidgetTmpl",h=c+" "+u+' key="'+s+'" data-field-name="'+s+'" '+p+" "+(l===n.FormWidgetType.UPLOAD?"":Hn(e))+" "+Kn(e),m=t?"getPendingSpinnerStatusNew":"getPendingSpinnerStatus";return"<ng-template "+d+' let-row="row" let-getControl="getControl" let-getValidationMessage="getValidationMessage" let-'+m+'="'+m+'">\n <div data-col-identifier="'+s+'" >\n '+n.getFormWidgetTemplate(l,h,e,a)+"\n "+Zn(i)+'\n <div class="overlay" *ngIf="'+m+'()"><span aria-hidden="true" class="form-field-spinner fa fa-circle-o-notch fa-spin form-control-feedback"></span></div>\n <span class="sr-only" *ngIf="getValidationMessage()">{{getValidationMessage()}}</span>\n </div>\n </ng-template>'},Jn=Xn,Zn=function(e){var t="";switch(e){case"bottom":t='<span class="help-block text-danger" *ngIf="getValidationMessage() && getControl() && getControl().invalid && getControl().touched">{{getValidationMessage()}}</span>';break;case"hover":default:t='<span placement="top" container="body" tooltip="{{getValidationMessage()}}" class="text-danger wi wi-error"\n *ngIf="getValidationMessage() && getControl() && getControl().invalid && getControl().touched">\n </span>'}return t},ei=Zn,ti=function(e){var t="row.getProperty('"+e.get("binding")+"')",i=e.get("custompipeformat")||e.get("formatpattern"),o="";switch(!n.isDateTimeType(e.get("type"))||i&&"None"!==i||(e.set("formatpattern","toDate"),e.delete("datepattern"),i="toDate"),i){case"toDate":o="{{"+t+" | toDate: colDef.datepattern}}";break;case"toCurrency":e.get("currencypattern")&&(o="{{"+t+" | toCurrency: '"+e.get("currencypattern"),e.get("fractionsize")?o+="': "+e.get("fractionsize")+"}}":o+="'}}");break;case"numberToString":e.get("fractionsize")&&(o="{{"+t+" | numberToString: '"+e.get("fractionsize")+"'}}");break;case"stringToNumber":o="{{"+t+" | stringToNumber}}";break;case"timeFromNow":o="{{"+t+" | timeFromNow}}";break;case"prefix":e.get("prefix")&&(o="{{"+t+" | prefix: '"+e.get("prefix")+"'}}");break;case"suffix":e.get("suffix")&&(o="{{"+t+" | suffix: '"+e.get("suffix")+"'}}");break;default:n.checkIsCustomPipeExpression(i)&&(o="{{"+t+" | "+i+" : row}}")}return o},ni=ti;t.register("wm-table-column",(function(){return{requires:["wm-table"],template:function(e,t){if(e.children.length){if(1===e.children.length&&e.children[0]instanceof i.Text&&0===e.children[0].value.trim().length)return;t.set("customExpression",!0),Un(e.children)}},pre:function(e,i,o){var r="",a="",s="",l="";if(o){var c=o.get("table_reference");r="multicolumn"===o.get("filtermode")&&"false"!==e.get("searchable")?qn(e,c):"";var p=o.get("editmode"),u=p!==Re&&p!==Te&&"true"!==e.get("readonly");a=u?Xn(e,!1,o.get("errorstyle"),c):"",s=u&&p===Ee&&"false"!==o.get("shownewrow")?Xn(e,!0,e.get("errorstyle")):"",l=' [formGroup]="'+c+'.ngform" '}var d=e.get("formatpattern"),h='<ng-template #customExprTmpl let-row="row" let-colDef="colDef" let-editRow="editRow" let-deleteRow="deleteRow" let-addNewRow="addNewRow">',m="",f="";return i.get("customExpression")?(e.set("customExpression","true"),m=h+'<div data-col-identifier="'+e.get("binding")+'">'):(d&&"None"!==d||n.isDateTimeType(e.get("type")))&&(f=ti(e))&&(i.set("customExpression",!0),e.set("customExpression","true"),m=h+'<div data-col-identifier="'+e.get("binding")+'" title="'+f+'">'+f),"<div wmTableColumn "+t.getAttrMarkup(e)+" "+l+">\n "+r+"\n "+a+"\n "+s+"\n "+m},post:function(e,t){var n="";return t.get("customExpression")&&(n="</div></ng-template>"),n+"</div>"},imports:function(e){var t=e.get("edit-widget-type"),i=e.get("filterwidget")||Ie(e.get("type")||n.DataType.STRING);return[n.getRequiredFormWidget(t),n.getRequiredFormWidget(i),"wm-table"]}}}));var ii=Object.freeze({__proto__:null,default:function(){},"\u02750":Wn,"\u02751":zn,"\u02752":Yn,"\u02753":Qn,"\u02754":Jn,"\u02755":ei,"\u02756":ni}),oi=function(e){var t="anchor"===e.get("widget-type")?"a":"button",i="anchor"===e.get("widget-type")?"wmAnchor":"wmButton",o=e.get("display-name")||e.get("title")||"Collapse/Expand";return'<ng-template #rowExpansionActionTmpl let-row="row">\n <'+t+" "+i+"\n "+n.getRowActionAttrs(e)+'\n class="'+e.get("class")+' row-expansion-button"\n iconclass="'+e.get("collapseicon")+'"\n type="button" aria-label="'+o+'"></'+t+">\n </ng-template>"},ri=oi;t.register("wm-table-row",(function(){return{pre:function(e){return"<div wmTableRow "+t.getAttrMarkup(e)+">\n "+oi(e)+'\n <ng-template #rowExpansionTmpl let-row="row" let-rowDef="rowDef" let-containerLoad="containerLoad">\n <div wmContainer partialContainer content.bind="rowDef.content" load.event="containerLoad(widget)"\n [ngStyle]="{\'height\': rowDef.height, \'overflow-y\': \'auto\'}">\n <div *ngFor="let param of rowDef.partialParams | keyvalue" wmParam hidden\n [name]="param.key" [value]="param.value"></div>'},post:function(){return"</div></ng-template></div>"}}}));var ai=Object.freeze({__proto__:null,default:function(){},"\u02750":ri}),si=function(){return'<button type="button" aria-label="Save edit icon" class="save row-action-button btn app-button btn-transparent save-edit-row-button hidden" title="Save">\n <i class="wi wi-done" aria-hidden="true"></i>\n </button>\n <button type="button" aria-label="Cancel edit icon" class="cancel row-action-button btn app-button btn-transparent cancel-edit-row-button hidden" title="Cancel">\n <i class="wi wi-cancel" aria-hidden="true"></i>\n </button>'},li=si,ci=function(e){var t=e.get("action"),i=t?' click.event.delayed="'+t+'" ':"",o=t&&t.includes("editRow(")?'<button type="button" aria-label="Save edit icon" class="save row-action-button btn app-button btn-transparent save-edit-row-button hidden" title="Save">\n <i class="wi wi-done" aria-hidden="true"></i>\n </button>\n <button type="button" aria-label="Cancel edit icon" class="cancel row-action-button btn app-button btn-transparent cancel-edit-row-button hidden" title="Cancel">\n <i class="wi wi-cancel" aria-hidden="true"></i>\n </button>':"",r=t?t.includes("editRow(")?"edit edit-row-button":t.includes("deleteRow(")?"delete delete-row-button":"":"",a=e.get("tabindex")?'tabindex="'+e.get("tabindex")+'"':"",s="anchor"===e.get("widget-type")?"a":"button";return'<ng-template #rowActionTmpl let-row="row">\n <'+s+" "+("anchor"===e.get("widget-type")?"wmAnchor":"wmButton")+' data-action-key="'+e.get("key")+'"\n '+n.getRowActionAttrs(e)+'\n class="row-action row-action-button '+e.get("class")+" "+r+'"\n iconclass="'+e.get("iconclass")+'"\n '+i+"\n "+a+'\n type="button"></'+s+">\n "+o+"\n </ng-template>"},pi=ci;t.register("wm-table-row-action",(function(){return{pre:function(e){return"<div wmTableRowAction "+t.getAttrMarkup(e)+">\n "+ci(e)},post:function(){return"</div>"}}}));var ui=Object.freeze({__proto__:null,default:function(){},"\u02750":li,"\u02751":pi}),di=new n.IDGenerator("table_"),hi=0;function mi(e,t){var n=0;e.forEach((function(e){var o=e.name,r=void 0!==t?t:n;"wm-table-column"!==o&&"wm-table-column-group"!==o||(e.attrs.push(new i.Attribute("index",""+hi,1,1,1,void 0,void 0)),e.attrs.push(new i.Attribute("headerIndex",""+r,1,1,1,void 0,void 0)),"wm-table-column-group"===o&&mi(e.children,n),hi++,n++)}))}t.register("wm-table",(function(){return{template:function(e,i){if(e.children.length){var o=e.children.some((function(e){return"wm-table-column"===e.name||"wm-table-column-group"===e.name}));mi(e.children),i.set("isdynamictable",o?"false":"true");var r=e.children.some((function(e){return"wm-table-row"===e.name}));i.set("isrowexpansionenabled",r?"true":"false")}else i.set("isdynamictable","true");var a=e.attrs.find((function(e){return"dataset"===e.name})),s=e.attrs.find((function(e){return"name"===e.name}));if(a){var l=t.getBoundToExpr(a.value);l&&n.updateTemplateAttrs(e,l,s.value,"","row")}},pre:function(e,n){var i=di.nextUid();return n.set("counter",i),e.set("isdynamictable",n.get("isdynamictable")),e.set("isrowexpansionenabled",n.get("isrowexpansionenabled")),e.set("table_reference",i),'<div wmTable="'+i+'" wmTableFilterSort wmTableCUD #'+i+' data-identifier="table" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"},provide:function(e,t){var n=new Map;return n.set("table_reference",t.get("counter")),n.set("filtermode",e.get("filtermode")),n.set("errorstyle",e.get("errorstyle")),n.set("editmode",e.get("editmode")),n.set("shownewrow",e.get("shownewrow")),n}}}));var fi=Object.freeze({__proto__:null,default:function(){}});t.register("wm-video",(function(){return{pre:function(e){return"<div wmVideo "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var gi=Object.freeze({__proto__:null,default:function(){}}),vi="parentLinearLayout.spacing";t.register("wm-linearlayout",(function(){return{requires:["wm-linearlayout"],pre:function(e,n,i){var o=e.get("spacing");return e.set("spacing",o&&"0"!==o||!i?o:i.get(vi)),"<div wmLinearLayout "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"},provide:function(e,t){var n=new Map;return n.set(vi,e.get("spacing")),n}}}));var yi=Object.freeze({__proto__:null,default:function(){}});t.register("wm-linearlayoutitem",(function(){return{pre:function(e){return"<div wmLinearLayoutItem "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var bi=Object.freeze({__proto__:null,default:function(){}});e.accordionBuild=z,e.accordionPaneBuild=Y,e.alertDlgBuild=ye,e.anchorBuild=h,e.audioBuild=m,e.barcodeScannerBuild=fe,e.breadcrumbBuild=Lt,e.buttonBuild=ut,e.buttonGroupBuild=ct,e.calendarBuild=rt,e.cameraBuild=ve,e.cardActionsBuild=G,e.cardBuild=j,e.cardContentBuild=B,e.cardFooterBuild=V,e.carouselBuild=s,e.carouselTemplateBuild=c,e.chartBuild=$,e.checkboxBuild=dt,e.checkboxSetBuild=ht,e.chipsBuild=at,e.colorPickerBuild=st,e.compositeBuild=mt,e.confirmDlgBuild=be,e.containerBuild=K,e.contentBuild=rn,e.currencyBuild=lt,e.dateBuild=Ot,e.dateTimeBuild=_t,e.dlgBuild=Pe,e.dlgFooterBuild=we,e.fileUploadBuild=Et,e.footerBuild=sn,e.formActionBuild=Ke,e.formBuild=ot,e.formFieldBuild=qe,e.headerBuild=cn,e.htmlBuild=g,e.iconBuild=v,e.iframeBuild=y,e.iframeDlgBuild=_e,e.initComponentsBuildTask=function(){},e.labelBuild=w,e.layoutBuild=en,e.leftPanelBuild=un,e.lgBuild=J,e.lgcolBuild=Q,e.lgrowBuild=X,e.linearLayoutBuild=yi,e.linearLayoutItemBuild=bi,e.listBuild=Dt,e.liveTableBuild=xt,e.loginBuild=p,e.loginDlgBuild=Oe,e.marqueeBuild=u,e.mediaListBuild=Ct,e.mediaListItemBuild=It,e.menuBuild=Ft,e.messageBuild=Mt,e.mobileNavbarBuild=dn,e.navBuild=Bt,e.navItemBuild=jt,e.navbarBuild=Gt,e.numberBuild=ft,e.pageBuild=Jt,e.pageContentBuild=Pn,e.paginationBuild=on,e.panelBuild=ee,e.partialBuild=In,e.partialDlgBuild=Se,e.partialParamBuild=Dn,e.pictureBuild=O,e.popoverBuild=Vt,e.prefabBuild=Nn,e.prefabContainerBuild=jn,e.progressBarBuild=N,e.progressCircleBuild=x,e.radiosetBuild=gt,e.ratingBuild=Tt,e.repeatTemplateBuild=oe,e.rightPanelBuild=mn,e.routerOutletBuild=nn,e.rteBuild=M,e.searchBuild=L,e.segContentBuild=ne,e.segControlBuild=te,e.selectBuild=vt,e.sliderBuild=Rt,e.spinnerBuild=E,e.switchBuild=bt,e.tabBarBuild=_n,e.tabPaneBuild=ce,e.tableActionBuild=Bn,e.tableBuild=fi,e.tableColumnBuild=ii,e.tableColumnGroupBuild=Gn,e.tableRowActionBuild=ui,e.tableRowBuild=ai,e.tabsBuild=le,e.textAreaBuild=Pt,e.textBuild=wt,e.tileBuild=pe,e.timeBuild=St,e.topNavBuild=Sn,e.treeBuild=F,e.videoBuild=gi,e.wizardBuild=ue,e.wizardStepBuild=he,Object.keys(t).forEach((function(n){"default"===n||e.hasOwnProperty(n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})})),Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/forms"),require("angular-imask"),require("@wm/components/base"),require("@wm/core"),require("rxjs")):"function"==typeof define&&define.amd?define("@wm/components/input",["exports","@angular/core","@angular/common","@angular/forms","angular-imask","@wm/components/base","@wm/core","rxjs"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.components=e.wm.components||{},e.wm.components.input={}),e.ng.core,e.ng.common,e.ng.forms,e["angular-imask"],e.wm.components.base,e.wm.core,e.rxjs)}(this,(function(e,t,n,i,o,r,a,s){"use strict";
43
+ ***************************************************************************** */var u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function h(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))}function m(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}Object.create;function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function v(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var y=function(){},b=function(){},w=new t.InjectionToken("Context Provider Reference"),P=new Set([i.FormWidgetType.SELECT,i.FormWidgetType.CHECKBOXSET,i.FormWidgetType.RADIOSET,i.FormWidgetType.SWITCH,i.FormWidgetType.AUTOCOMPLETE,i.FormWidgetType.CHIPS,i.FormWidgetType.TYPEAHEAD,i.FormWidgetType.RATING]),O=function(e){var t,n,i,o,r,a,s,l,c,p="";for(e=e.replace(/\$\[data\[\$i\]/g,"$[__1"),i=0;i<e.length;i++)if(t=e[i],n=e[i+1],"$"===t&&"["===n){for(a=1,c=!1,s=!1,o=i+2;o<e.length;o++)if(" "!==(r=e[o])&&(c||(s='"'===e[o]||"'"===e[o],c=!0),"["===r?a++:"]"===r&&a--,!a)){l=e.substring(i+2,o),p+=s?"__1["+l+"]":l;break}i=o}else p+=t;return p},S=function(e,t){var n;return t?(t.replace(/\[(\w+)\]/g,".$1").split(".").forEach((function(t){n=n&&n[t]||(_.isNull(e)?e:e[t])})),n):e},E=function(e,t,n){var o,r=t.field,a=t.expression,s=t.bindExpression;return s?(o=s.replace("bind:",""),i.checkIsCustomPipeExpression(o)&&(o+=": __1"),o=O(o)):o=a||r,s||a?i.$parseExpr(o)(n,Object.assign({},e,{__1:e})):_.get(e,r)},T=function(e,t){return!(!e||!t)&&(t=-1===t.indexOf("?")?t:t.substring(0,t.indexOf("?")),e=-1===e.indexOf("?")?e:e.substring(0,e.indexOf("?")),new RegExp("^(#/|#)"+t+"$").test(e))},R=function(e,t){return e.some((function(e){return!!T(e.link,t)||(e.children?R(e.children,t):void 0)}))},A=function(e){return P.has(e)},C=function(e,t,n){return i.isValidWebURL(e)||(e||(e=n||"resources/images/imagelists/default-image.png"),e=t?i.encodeUrl(e):e,i.stringStartsWith(e,"services/prefabs")),e},I=function(e){return""===e||"none"===e?e:"url("+C(e)+")"};function D(e,n,i){return{provide:n,useExisting:t.forwardRef((function(){return e})),multi:i}}function N(e){return D(e,y)}var x,k=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.join("_")},M={number:["number","integer","big_integer","short","float","big_decimal","double","long","byte"],string:["string","text"],character:["character"],date:["date","time","timestamp","datetime"]},L={number:["exact","notequals","lessthan","lessthanequal","greaterthan","greaterthanequal","null","isnotnull"],string:["anywhereignorecase","anywhere","startignorecase","start","endignorecase","end","exactignorecase","exact","notequalsignorecase","notequals","null","isnotnull","empty","isnotempty","nullorempty"],character:["exactignorecase","exact","notequalsignorecase","notequals","null","isnotnull","empty","isnotempty","nullorempty"],date:["exact","lessthan","lessthanequal","greaterthan","greaterthanequal","null","notequals","isnotnull"]},F={boolean:["exact","null","isnotnull"],clob:[],blob:[]},j=function(e){var t=[];return _.isArray(e)?(e.forEach((function(e){t=t.concat(j(e))})),t):_.isObject(e)?(_.forEach(e,(function(e,n){e&&(t=t.concat(n.split(" ")))})),t):void 0},B=function(e,t){var n,i,o=e.toAdd||e,r=e.toRemove||t;return _.isObject(e)?(n=_.isArray(o)?o:j(o||[]),i=r?_.isArray(r)?r:j(r):[]):(n=o?[o]:[],i=r?[r]:[]),{toAdd:n,toRemove:i}},G=function(e,t,n,o){var r,a,s,l,c,p;o||(o={}),_.forEach(e,(function(e,u){_.includes(u,".")&&(l=_.split(u,"."),a=l[0],s=l[1],p=!0),o.noModifyTitle?r=u:_.isString(u)?(r=i.prettifyLabel(u),r=i.deHyphenate(r),r=n?i.initCaps(n)+" "+r:r):r=u,u=n?n+"."+u:u,c=p?(c=_.split(r," ")).length>1?c[c.length-2]+" "+c[c.length-1]:c[0]:r;var d=o.setBindingField?{displayName:c,field:u,relatedTable:a,relatedField:s||r}:{displayName:c,relatedTable:a,relatedField:s||r};if(!_.isObject(e)||_.isArray(e)&&!e[0]){if(o.upperBound&&o.columnCount===o.upperBound)return;t.terminals.push(d),o.columnCount+=1}else o.columnCount!==o.upperBound&&t.objects.push(d),_.isArray(e)&&e[0]?G(e[0],t,u+"[0]",o):G(e,t,u,o)}))},V=function(e){var t;return _.isArray(e)?_.isObject(e[0])?(t=i.getClonedObject(e[0]),_.forEach(e,(function(e,n){if(n+1>=10)return!1;_.assignWith(t,e,(function(e,t){return null==e?t:e}))}))):t=e[0]:t=e,t};e.APPLY_STYLES_TYPE=void 0,(x=e.APPLY_STYLES_TYPE||(e.APPLY_STYLES_TYPE={}))[x.CONTAINER=0]="CONTAINER",x[x.SCROLLABLE_CONTAINER=1]="SCROLLABLE_CONTAINER",x[x.INNER_SHELL=2]="INNER_SHELL",x[x.SHELL=3]="SHELL";var U={backgroundattachment:"backgroundAttachment",backgroundcolor:"backgroundColor",backgroundgradient:"backgroundGradient",backgroundimage:"backgroundImage",backgroundposition:"backgroundPosition",backgroundrepeat:"backgroundRepeat",backgroundsize:"backgroundSize",bordercolor:"borderColor",borderradius:"borderRadius",borderstyle:"borderStyle",borderwidth:"borderWidth",borderbottomwidth:"borderBottomWidth",borderleftwidth:"borderLeftWidth",borderrightwidth:"borderRightWidth",bordertopwidth:"borderTopWidth",color:"color",cursor:"cursor",display:"display",fontsize:"fontSize",fontfamily:"fontFamily",fontstyle:"fontStyle",fontunit:"fontunit",fontvariant:"fontVariant",fontweight:"fontWeight",height:"height",horizontalalign:"textAlign",lineheight:"lineHeight",margin:"margin",marginbottom:"marginBottom",marginleft:"marginLeft",marginright:"marginRight",margintop:"marginTop",opacity:"opacity",overflow:"overflow",padding:"padding",paddingbottom:"paddingBottom",paddingleft:"paddingLeft",paddingright:"paddingRight",paddingtop:"paddingTop",picturesource:"backgroundImage",textalign:"textAlign",textdecoration:"textDecoration",verticalalign:"verticalAlign",visibility:"visibility",whitespace:"whiteSpace",width:"width",wordbreak:"wordbreak",zindex:"zIndex"},W=function(e){return!!U[e]},q={height:!0,overflow:!0,padding:!0,paddingbottom:!0,paddingleft:!0,paddingright:!0,paddingtop:!0},z={textalign:!0},H={textalign:!0,width:!0};function Y(t,n,o,r){var a=Object.create(null);r&&r.forEach((function(e){return a[e]=!0})),n.registerStyleChangeListener((function(r,s){if(!(a[r]||o===e.APPLY_STYLES_TYPE.SHELL&&q[r])){if(o===e.APPLY_STYLES_TYPE.INNER_SHELL){if(!q[r])return;"height"===r&&i.setCSS(t,"overflow",s?"auto":"")}if(o!==e.APPLY_STYLES_TYPE.CONTAINER||!z[r]){if(o===e.APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER){if(H[r])return;"height"===r&&i.setCSS(t,"overflow",s?"auto":"")}"fontsize"===r||"fontunit"===r?i.setCSS(t,"fontSize",""===n.fontsize?"":n.fontsize+(n.fontunit||"px")):"backgroundimage"===r?i.setCSS(t,"backgroundImage",n.picturesource||I(s)):U[r]&&i.setCSS(t,U[r],s)}}}))}var K,Q="wm-form-field-",X=function(){var e=new Map;for(var t in i.FormWidgetType)e.set(Q+i.FormWidgetType[t],new Map);return e}(),J=function(e){return X.get(e)},Z=function(e,t){X.set(e,t),window.WM_LOADED_COMPONENTS=v(v([],g(window.WM_LOADED_COMPONENTS||[])),[e])};e.PROP_TYPE=void 0,(K=e.PROP_TYPE||(e.PROP_TYPE={}))[K.BOOLEAN=1]="BOOLEAN",K[K.NUMBER=2]="NUMBER",K[K.STRING=3]="STRING";var ee={type:e.PROP_TYPE.STRING},te={type:e.PROP_TYPE.NUMBER},ne={type:e.PROP_TYPE.BOOLEAN},ie={arrayType:!0},oe=function(){Z("wm-container",new Map([["animation",ee],["class",ee],["conditionalclass",ie],["conditionalstyle",ie],["content",ee],["name",ee],["show",Object.assign({value:!0},ne)]]))},re=new Map,ae=new i.IDGenerator("widget-id"),se=new Map([["tap","click"]]),le={BLOCK:"block",INLINE_BLOCK:"inline-block",INLINE:"inline"},ce=new Set(["readonly","autofocus","disabled","startchecked","multiple","selected","required","controls","autoplay","loop","muted","show"]),pe=function(e){return ce.has(e)},ue=new Set(["width","height","iconheight","iconwidth","popoverwidth","popoverheight","imagewidth","imageheight"]),de=function(e){return ue.has(e)},he=function(t,n,o){return o===e.PROP_TYPE.BOOLEAN?i.toBoolean(n,pe(t)&&t):o===e.PROP_TYPE.NUMBER?+n:n},me=function(e,t,n){var o=e.widgetId,r=e[t];i.isChangeFromWatch()||i.$unwatch(k(o,t)),i.resetChangeFromWatch();var a=J(e.getWidgetSubType()).get(t);if(a){var s=a.type;s&&(n=he(t,n,s))}if(n!==r||i.isObject(n)||i.isObject(r)){if(de(t))n=i.toDimension(n);else if(_.startsWith(n,"resources/")){var l=e;void 0===l._parentPrefab_&&(l._parentPrefab_=e.$element.parent().closest('[prefabname][prefabname!="__self__"]').attr("prefabname")||""),l._parentPrefab_?n="./app/prefabs/"+l._parentPrefab_+"/"+n:a&&n!=a.value&&(n="./"+n)}e[t]=n,W(t)?e.notifyStyleChange(t,n,r):("conditionalclass"===t&&(n=B(n,r)),a&&e.notifyPropertyChange(t,n,r)),i.$appDigest()}},fe={set:function(e,t,n){return me(e,t,n),!0},get:function(e,t){var n=e[t];return _.isFunction(n)?n.bind(e):n}},ge=window.requestAnimationFrame,ve=[],ye=function(e){ve.length||ge((function(){ve.forEach((function(e){return e()})),ve.length=0})),ve.push(e)},be=function(){function e(){}return e.create=function(e,t,n){if(window.Proxy)return new Proxy(e,fe);var i=Object.create(e);return ye((function(){for(var t in e)_.isFunction(e[t])&&"constructor"!==t&&"super"!==t&&!_.startsWith(t,"ng")&&(e[t]=e[t].bind(e))})),Object.keys(U).forEach((function(t){Object.defineProperty(i,t,{get:function(){return e[t]},set:function(n){return me(e,t,n)}})})),n&&n.forEach((function(t,n){Object.defineProperty(i,n,{get:function(){return e[n]},set:function(t){return me(e,n,t)}})})),i},e}(),we=function(e,t,n){t&&t.length&&i.removeClass(n,_.join(t," ")),e&&e.length&&i.addClass(n,_.join(e," "))},Pe=function(e,t,n){t&&_.isObject(t)&&Object.keys(t||{}).forEach((function(e){i.setCSS(n,e,"")}));e&&_.isObject(e)&&i.setCSSFromObj(n,e)},_e=function(){function e(e,n,o){var r=this;this.inj=e,this.isAttached=!1,this.styleChange=new s.ReplaySubject,this.propertyChange=new s.Subject,this.readyState=new s.Subject,this.destroy=new s.Subject,this.eventHandlers=new Map,this.toBeSetupEventsQueue=[],this.__cloneable__=!1,this.$attrs=new Map,this.isMuted=!1;var l=e.get(t.ElementRef);this.nativeElement=l.nativeElement,this.widgetType=n.widgetType,this.widgetSubType=n.widgetSubType||n.widgetType,this.viewParent=e.view.component,this.displayType=n.displayType||le.BLOCK,this.context=e.view.context,this.widget=this.createProxy(),this.eventManager=e.get(a.EventManager),this.nativeElement.widget=this.widget,this.appLocale=e.get(i.App).appLocale||{},this.initContext(),n.hostClass&&i.addClass(this.nativeElement,n.hostClass),this.widgetId=this.generateWidgetId(),i.setAttr(this.nativeElement,"widget-id",this.widgetId,!0),this.registerStyleChangeListener(this.onStyleChange,this),this.registerPropertyChangeListener(this.onPropertyChange,this),o?(this.delayedInit=!0,o.then((function(){r.initWidget(),r.setInitProps()}))):this.initWidget()}return Object.defineProperty(e.prototype,"$element",{get:function(){return $(this.nativeElement)},enumerable:!1,configurable:!0}),e.prototype.getNativeElement=function(){return this.nativeElement},e.prototype.getWidgetType=function(){return this.widgetType},e.prototype.getWidgetSubType=function(){return this.widgetSubType},e.prototype.getWidget=function(){return this.widget},e.prototype.setProperty=function(e,t){this.widget[e]=t},e.prototype.getViewParent=function(){return this.viewParent},e.prototype.notifyStyleChange=function(e,t,n){this.styleChange.next({key:e,nv:t,ov:n})},e.prototype.notifyPropertyChange=function(e,t,n){this.propertyChange.next({key:e,nv:t,ov:n})},e.prototype.registerStyleChangeListener=function(e,t){t&&(e=e.bind(t)),this.styleChange.subscribe((function(t){var n=t.key,i=t.nv,o=t.ov;return e(n,i,o)}))},e.prototype.registerReadyStateListener=function(e,t){t&&(e=e.bind(t)),this.readyState.isStopped?e():this.readyState.subscribe((function(){return e()}))},e.prototype.registerPropertyChangeListener=function(e,t){t&&(e=e.bind(t)),this.propertyChange.subscribe((function(t){var n=t.key,i=t.nv,o=t.ov;return e(n,i,o)}))},e.prototype.registerDestroyListener=function(e,t){t&&(e=e.bind(t)),this.destroy.subscribe((function(){}),(function(){}),(function(){return e()}))},e.prototype.getDisplayType=function(){return this.displayType},e.prototype.createProxy=function(){return be.create(this,this.widgetSubType,J(this.widgetSubType))},e.prototype.initContext=function(){var e=this.inj.view.context,t=this.inj.get(w,{});if(this.viewParent!==e?this.context=e:this.context={},t){var n={};_.isArray(t)?_.forEach(t,(function(e){Object.assign(n,e)})):n=t,this.context=Object.assign({},n,this.context)}},e.prototype.setWidgetProperty=function(e,t){this.widget[e]=t},e.prototype.getAttr=function(e){return this.$attrs.get(e)},e.prototype.getAppInstance=function(){return this.inj.get(i.App)},e.prototype.generateWidgetId=function(){return ae.nextUid()},e.prototype.onPropertyChange=function(e,t,n){if("show"===e)this.nativeElement.hidden=!t;else if("hint"===e)i.isMobileApp()||i.setAttr(this.nativeElement,"title",t);else if("class"===e){i.switchClass(this.nativeElement,t,n);var o=t.match(/(\W|^)(h([0-6]))(?=\s|$)/);o&&(i.setAttr(this.nativeElement,"role","heading"),i.setAttr(this.nativeElement,"aria-level",o[3]))}else if("name"===e||"tabindex"===e)i.setAttr(this.nativeElement,e,t),"name"===e&&t&&function(e,t,n,o){i.isDefined(e.Widgets)&&(o&&(e.Widgets[o]=void 0),n&&(e.Widgets[n]=t))}(this.viewParent,this.widget,t,n);else if("conditionalclass"===e)we(t.toAdd,t.toRemove,this.nativeElement);else if("autoplay"===e){var r="wm-audio"===this.widgetType?"audio":"video";this.nativeElement.querySelector(r).load()}else"conditionalstyle"===e?Pe(t,n,this.nativeElement):"animation"===e?i.addClass(this.nativeElement,"animated "+t):"disabled"===e&&(!0===t?i.setAttr(this.nativeElement,"disabled","true",!0):i.removeAttr(this.nativeElement,"disabled",!0))},e.prototype.onStyleChange=function(e,t,n){},e.prototype.registerWidget=function(e){var t,n,o,r,a;this.registerDestroyListener((t=this.widget,n=this.viewParent,o=this.widgetId,r=e,a=!1,re.set(o,t),r&&i.isDefined(n.Widgets)&&(a=!0,n.Widgets[r]=t),function(){re.delete(o),a&&(n.Widgets[r]=void 0)}))},e.prototype.getMappedEventName=function(e){return se.get(e)||e},e.prototype.handleEvent=function(e,t,n,i,o){this.eventManager.addEventListener(e,t,(function(e){if(i.$event=e,"delayed"!==o)return n();setTimeout((function(){return n()}),150)}))},e.prototype.processEventAttr=function(e,t,n){var o=this,r=i.$parseEvent(t),a=this.context;a.widget=this.widget;var s=r.bind(void 0,this.viewParent,a),l=function(){var t;i.$invokeWatchers(!0);try{if(a.$event=a.$event||new window.CustomEvent(e),!((t=s())instanceof Promise))return t;t.then((function(e){return e}),(function(e){return e}))}catch(e){console.error(e)}};this.eventHandlers.set(this.getMappedEventName(e),{callback:l,locals:a}),this[_.camelCase("on-"+e)]=l,this.toBeSetupEventsQueue.push((function(){o.handleEvent(o.nativeElement,o.getMappedEventName(e),l,a,n)}))},e.prototype.processBindAttr=function(e,t){var n=this;this.initState.delete(e),this.registerDestroyListener(i.$watch(t,this.viewParent,this.context,(function(t){return n.widget[e]=t}),k(this.widgetId,e),"datasource"===e,this.widgetProps.get(e),(function(){return n.isMuted})))},e.prototype.removePropertyBinding=function(e){i.$unwatch(k(this.widgetId,e))},e.prototype.invokeEventCallback=function(e,t){var n=this.eventHandlers.get(e);if(n){var i=n.callback,o=n.locals||{};if(i)return i(Object.assign(o,t))}},e.prototype.processAttr=function(e,t){var n=e.split("."),o=n[0],r=n[1],a=n[2],s=n.length;"bind"===r?("show"===o&&(this.nativeElement.hidden=!0),this.processBindAttr(o,t)):"event"===r?this.processEventAttr(o,t,a):1===s&&("class"===e?i.removeClass(this.nativeElement,t):"tabindex"!==e&&"name"!==e||i.removeAttr(this.nativeElement,e),this.initState.set(o,t))},e.prototype.processAttrs=function(){var e,t,n=this.inj.elDef;try{for(var i=f(n.element.attrs),o=i.next();!o.done;o=i.next()){var r=g(o.value,3),a=r[1],s=r[2];this.$attrs.set(a,s),this.processAttr(a,s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},e.prototype.initWidget=function(){var e=this;this.initState=new Map;var t=J(this.widgetSubType);t.forEach((function(t,n){i.isDefined(t.value)&&e.initState.set(n,t.value)})),this.widgetProps=t,this.processAttrs(),this.registerWidget(this.initState.get("name"))},e.prototype.setInitProps=function(){var e=this;this.initState.get("name")&&(this.widget.name=this.initState.get("name")),this.initState.forEach((function(t,n){(e.widgetProps.get(n)||W(n))&&"name"!==n&&(e.widget[n]=t)})),this.initState.clear(),this.initState=void 0,this.readyState.next(),this.readyState.complete()},e.prototype.hasEventCallback=function(e){return this.eventHandlers.has(e)},e.prototype.focus=function(){var e=this.$element[0].querySelector("[focus-target]");e||(e=this.$element[0]),e.focus()},e.prototype.execute=function(e,t){},e.prototype.mute=function(){this.isMuted=!0},e.prototype.unmute=function(){this.isMuted=!1},e.prototype.ngOnAttach=function(){this.isAttached=!0},e.prototype.ngOnDetach=function(){this.isAttached=!1},e.prototype.ngOnInit=function(){this.delayedInit||this.setInitProps()},e.prototype.ngAfterViewInit=function(){var e,t;if(this.toBeSetupEventsQueue.length)try{for(var n=f(this.toBeSetupEventsQueue),i=n.next();!i.done;i=n.next()){(0,i.value)()}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.toBeSetupEventsQueue.length=0,this.isAttached=!0},e.prototype.ngAfterContentInit=function(){},e.prototype.ngOnDestroy=function(){this.isDestroyed=!0,this.widget=Object.create(null),this.styleChange.complete(),this.propertyChange.complete(),this.destroy.complete(),this.isAttached=!1},e}();_e.decorators=[{type:t.Injectable}],_e.ctorParameters=function(){return[{type:t.Injector},{type:void 0},{type:Promise}]};var Oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t}(_e);Oe.decorators=[{type:t.Injectable}];var Se=function(e){this.redraw=function(){var t=e.$element.closest("[wmtabpane]"),n=e.$element.closest("[wmaccordionpane]").find(".panel-heading");if(!(t.length&&!t.hasClass("active")||n.length&&!n.hasClass("active")))return e.redraw&&e.redraw()}};Se.decorators=[{type:t.Directive,args:[{selector:"[redrawable]"}]}],Se.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Self},{type:t.Inject,args:[y]}]}]};var Ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.updateRedrawableComponents=function(e){var t=this;_.pickBy(e,(function(e){e&&e.nativeElement&&e.nativeElement.hasAttribute("redrawable")&&!_.includes(t.reDrawableComponents._results,e)&&t.reDrawableComponents._results.push(e),e&&e.Widgets&&t.updateRedrawableComponents(e.Widgets)}))},t.prototype.redrawChildren=function(){var e=this;this.content&&this.Widgets&&this.updateRedrawableComponents(this.Widgets),setTimeout((function(){e.reDrawableComponents&&e.reDrawableComponents.forEach((function(e){return e.redraw()}))}),100)},t.prototype.onPropertyChange=function(t,n,i){e.prototype.onPropertyChange.call(this,t,n,i),"show"===t&&n&&this.redrawChildren()},t}(Oe);Ee.decorators=[{type:t.Directive}],Ee.propDecorators={reDrawableComponents:[{type:t.ContentChildren,args:[Se,{descendants:!0}]}]};var Te="app-container",Re={widgetType:"wm-container",hostClass:Te},Ae=function(t){function n(n){var o=t.call(this,n,Re)||this;return i.addClass(o.nativeElement,Te),Y(o.nativeElement,o,e.APPLY_STYLES_TYPE.CONTAINER),o}return d(n,t),n}(Ee);Ae.initializeProps=oe(),Ae.decorators=[{type:t.Directive,args:[{selector:"[wmContainer]",providers:[N(Ae)]}]}],Ae.ctorParameters=function(){return[{type:t.Injector}]};var Ce=function(){function e(){}return e.prototype.transform=function(e,t,n){return i.transformFileURI(C(e,t,n))},e}();Ce.decorators=[{type:t.Pipe,args:[{name:"image"}]}];var Ie=function(){Z("wm-item-template",new Map([["content",ee]]))},De={widgetType:"wm-item-template"},Ne=function(e){function t(t,n,i){var o=e.call(this,t,De)||this;return o.app=i,o.nativeElement=n.nativeElement,o.context=t.view.context,o}return d(t,e),Object.defineProperty(t.prototype,"$index",{get:function(){return this.context.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wmItemTemplate",{set:function(e){this.widget.content=e},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),this.partialParams.item=this.userComponentParams.dataObject},t}(Oe);Ne.initializeProps=Ie(),Ne.decorators=[{type:t.Directive,args:[{selector:"[wmItemTemplate]",exportAs:"itemTemplateRef",providers:[N(Ne)]}]}],Ne.ctorParameters=function(){return[{type:t.Injector},{type:t.ElementRef},{type:i.App}]},Ne.propDecorators={userComponentParams:[{type:t.Input}],wmItemTemplate:[{type:t.Input}]};var xe=function(){Z("wm-repeat-template",new Map([["show",ne]]))},ke={widgetType:"wm-repeat-template",hostClass:"app-repeat-item"},Me=function(e){function t(t){var n=e.call(this,t,ke)||this;return Y(n.nativeElement,n),n}return d(t,e),t}(Oe);Me.initializeProps=xe(),Me.decorators=[{type:t.Directive,args:[{selector:"[wmRepeatTemplate]"}]}],Me.ctorParameters=function(){return[{type:t.Injector}]};var Le=function(){function e(e,t,n){this.templateRef=t,this.viewContainer=n,this.viewParent=e.view.component,this.context=e.view.context}return Object.defineProperty(e.prototype,"lazyLoad",{set:function(e){var t=this;this.unSubscribeFn=i.$watch(e,this.viewParent,this.context,(function(e){!t.embeddedView&&e&&(t.embeddedView=t.viewContainer.createEmbeddedView(t.templateRef,t.context),t.unSubscribeFn())}))},enumerable:!1,configurable:!0}),e.prototype.ngOnDestroy=function(){this.unSubscribeFn()},e}();Le.decorators=[{type:t.Directive,args:[{selector:"[lazyLoad]"}]}],Le.ctorParameters=function(){return[{type:t.Injector},{type:t.TemplateRef},{type:t.ViewContainerRef}]},Le.propDecorators={lazyLoad:[{type:t.Input}]};var Fe=function(){Z("wm-message",new Map([["animation",ee],["caption",Object.assign({value:"Message"},ee)],["class",ee],["hideclose",Object.assign({value:!1},ne)],["name",ee],["show",Object.assign({value:!0},ne)],["type",Object.assign({value:"success"},ee)]]))},je={widgetType:"wm-message",hostClass:"alert app-message"},Be=function(e){function t(t){var n=e.call(this,t,je)||this;return n.messageClass="",n.messageIconClass="",n.type="",Y(n.nativeElement,n),n}return d(t,e),t.prototype.showMessage=function(e,t){e&&(this.caption=e),t&&this.setWidgetProperty("type",t),this.setWidgetProperty("show",!0)},t.prototype.hideMessage=function(){this.setWidgetProperty("show",!1)},t.prototype.dismiss=function(e){this.hideMessage(),this.invokeEventCallback("close",{$event:e})},t.prototype.onMessageTypeChange=function(e){var t,n;switch(e){case"success":t="alert-success",n="wm-sl-l sl-check";break;case"error":t="alert-danger",n="wi wi-cancel";break;case"warn":case"warning":t="alert-warning",n="wm-sl-l sl-alarm-bell";break;case"info":t="alert-info",n="wi wi-info";break;case"loading":t="alert-info alert-loading",n="fa fa-spinner fa-spin"}i.switchClass(this.nativeElement,t,this.messageClass),this.messageClass=t,this.messageIconClass=n},t.prototype.onPropertyChange=function(t,n,i){"type"===t?this.onMessageTypeChange(n):e.prototype.onPropertyChange.call(this,t,n,i)},t}(Oe);Be.initializeProps=Fe(),Be.decorators=[{type:t.Component,args:[{selector:"[wmMessage]",template:'<i aria-hidden="true" [title]="type + \'Alert\'" class="icon {{type}} {{messageIconClass}}"></i>\n<span [innerHtml]="caption"></span>\n<button title="Close" type="button" class="btn-transparent close" [hidden]="hideclose" (click)="dismiss($event)" aria-label="Close">\n <span aria-hidden="true">&times;</span>\n</button>\n',providers:[N(Be)],exportAs:"wmMessage"}]}],Be.ctorParameters=function(){return[{type:t.Injector}]};var Ge=function(){Z("wm-partial",new Map([["name",ee]]))},Ve={widgetType:"wm-partial",hostClass:"app-partial clearfix"},$e=function(e){function t(t,n){var i=e.call(this,t,Ve)||this;return i.viewport=n,i.registerDestroyListener(i.viewport.subscribe("resize",(function(e){return i.callback("resize",e)}))),i.registerDestroyListener(i.viewport.subscribe("orientationchange",(function(e){return i.callback("orientationchange",e)}))),i}return d(t,e),t.prototype.callback=function(e,t){t=_.assign({widget:this},t),this.invokeEventCallback(e,t)},t.prototype.ngOnAttach=function(){this.callback("attach")},t.prototype.ngOnDetach=function(){this.callback("detach")},t.prototype.ngOnDestroy=function(){this.callback("destroy")},t}(Oe);$e.initializeProps=Ge(),$e.decorators=[{type:t.Directive,args:[{selector:"[wmPartial]",providers:[N($e)]}]}],$e.ctorParameters=function(){return[{type:t.Injector},{type:i.Viewport}]};var Ue=function(){function e(e){this.widgetRef=e,this.widgetRef.partialParams={},this.widgetRef.pageParams=this.widgetRef.partialParams,this.widgetRef.params$=new s.Subject}return e.prototype.registerParams=function(e,t,n,o){var r=this;this.widgetRef.partialParams[e]=t,!t&&n?this.widgetRef.registerDestroyListener(i.$watch(n,this.widgetRef.getViewParent(),_.get(this.widgetRef,"context"),(function(t){r.widgetRef.partialParams[e]=t,r.widgetRef.params$.next()}))):this.widgetRef.params$.next()},e}();Ue.decorators=[{type:t.Directive,args:[{selector:"[partialContainer]"}]}],Ue.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Self},{type:t.Inject,args:[y]}]}]};var We=function(){function e(e,t,n){this.bindValue=e,this.type=t,this.partialParamsProvider=n}return e.prototype.ngOnInit=function(){this.partialParamsProvider.registerParams(this.name,this.value,this.bindValue,this.type)},e}();We.decorators=[{type:t.Directive,args:[{selector:"[wmParam]"}]}],We.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Attribute,args:["value.bind"]}]},{type:void 0,decorators:[{type:t.Attribute,args:["type"]}]},{type:Ue}]},We.propDecorators={name:[{type:t.Input}],value:[{type:t.Input}]};var qe=function(){function e(e,t,n,o,r,a,s,c){var p=this;this.componentInstance=e,this.vcRef=t,this.elRef=n,this.inj=o,this.app=r,this.resolver=s,this.partialRefProvider=c,this.contentInitialized=!1,this.renderPartial=_.debounce(this._renderPartial,200),e.registerPropertyChangeListener((function(t,n,o){"content"===t&&(e.$lazyLoad?e.$lazyLoad=function(){p.renderPartial(n),e.$lazyLoad=i.noop}:p.renderPartial(n))}));var u=e.params$.pipe(l.filter((function(){return p.contentInitialized})),l.debounceTime(200)).subscribe((function(){return p.renderPartial(e.content)}));e.registerDestroyListener((function(){return u.unsubscribe()}))}return Object.defineProperty(e.prototype,"name",{get:function(){return this.componentInstance.name},enumerable:!1,configurable:!0}),e.prototype._renderPartial=function(e){return h(this,void 0,void 0,(function(){var t,n,o,r,a=this;return m(this,(function(s){switch(s.label){case 0:return this.vcRef.clear(),i.$invokeWatchers(!0),(t=$(this.elRef.nativeElement).closest(".app-prefab")).length?n=t.attr("prefabname"):this.componentInstance.viewParent&&(n=this.componentInstance.viewParent.prefabName),[4,this.partialRefProvider.getComponentFactoryRef(e,i.ComponentType.PARTIAL,{prefab:n})];case 1:return(o=s.sent())&&((r=this.vcRef.createComponent(o,0,this.inj))&&r._component&&n&&(r._component.prefabName=n),this.$target||(this.$target=this.elRef.nativeElement.querySelector("[partial-container-target]")||this.elRef.nativeElement),this.$target.innerHTML="",this.$target.appendChild(r.location.nativeElement),this.contentInitialized=!0,setTimeout((function(){return a.onLoadSuccess()}),200)),[2]}}))}))},e.prototype.onLoadSuccess=function(){this.componentInstance.invokeEventCallback("load"),this.app.notify("partialLoaded")},e}();qe.decorators=[{type:t.Directive,args:[{selector:"[partialContainer]"}]}],qe.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Self},{type:t.Inject,args:[y]}]},{type:t.ViewContainerRef},{type:t.ElementRef},{type:t.Injector},{type:i.App},{type:String,decorators:[{type:t.Attribute,args:["content"]}]},{type:t.ComponentFactoryResolver},{type:i.PartialRefProvider}]};var ze=function(){function e(e,t,n,i,o){this.elRef=e,this.widget=t,this.viewContainerRef=n,this.templateRef=o,this.context=i.view.context,window.addEventListener("resize",this.onResize.bind(this))}return Object.defineProperty(e.prototype,"showInDevice",{set:function(e){this.devices=e.split(","),this.onResize()},enumerable:!1,configurable:!0}),e.prototype.onResize=function(e){var t=getComputedStyle(document.documentElement).getPropertyValue("--screen-lg")||"1200px",n=getComputedStyle(document.documentElement).getPropertyValue("--screen-md")||"992px",o=getComputedStyle(document.documentElement).getPropertyValue("--screen-sm")||"768px",r=getComputedStyle(document.documentElement).getPropertyValue("--screen-lg-tab-landscape")||"1366px",a=getComputedStyle(document.documentElement).getPropertyValue("--screen-lg-tab-portrait")||"1024px",s=parseFloat(t)-1+"px",l=parseFloat(n)-1+"px",c=parseFloat(o)-1+"px";this.devices.indexOf("lg")>-1&&window.matchMedia("(min-width: "+t+")").matches&&!i.isLargeTabletLandscape(r,a)||this.devices.indexOf("md")>-1&&(i.isLargeTabletLandscape(r,a)||window.matchMedia("(min-width: "+n+") and (max-width: "+s+")").matches&&!i.isLargeTabletPortrait(r,a))||this.devices.indexOf("sm")>-1&&(window.matchMedia("(min-width: "+o+") and (max-width: "+l+")").matches||i.isLargeTabletPortrait(r,a))||this.devices.indexOf("xs")>-1&&window.matchMedia("(max-width: "+c+")").matches||this.devices.indexOf("all")>-1?this.embeddedView||(this.embeddedView=this.viewContainerRef.createEmbeddedView(this.templateRef,this.context)):(this.viewContainerRef.clear(),this.embeddedView="")},e.prototype.ngOnDestroy=function(){window.removeEventListener("resize",this.onResize)},e}();ze.decorators=[{type:t.Directive,args:[{selector:"[showInDevice]"}]}],ze.ctorParameters=function(){return[{type:t.ElementRef},{type:_e,decorators:[{type:t.Inject,args:[y]}]},{type:t.ViewContainerRef},{type:t.Injector},{type:t.TemplateRef}]},ze.propDecorators={showInDevice:[{type:t.Input}]};var He=function(){function e(e,t,n){this._isEnabled=!1,this._lastScrollY=-1,this._waitRefreshTill=-1,this.pendingIscrolls=[],this._$el=$(t.nativeElement),this.app=n}return e.prototype.ngOnInit=function(){var e=this;this.cancelSubscription=this.app.subscribe("no-iscroll",(function(t){e.pendingIscrolls.push(t)}))},e.prototype.ngDoCheck=function(){this._isEnabled?this._smoothScrollInstance?this.refreshIScroll():this._smoothScrollInstance=this.applySmoothScroll():this._smoothScrollInstance&&this._smoothScrollInstance.destroy&&this._smoothScrollInstance.destroy()},e.prototype.ngOnDestroy=function(){this._smoothScrollInstance&&this._smoothScrollInstance.destroy&&this._smoothScrollInstance.destroy(),this.cancelSubscription&&this.cancelSubscription()},Object.defineProperty(e.prototype,"wmSmoothscroll",{set:function(e){this._isEnabled=!0===e||"true"===e,this._isEnabled?this._smoothScrollInstance||(this._smoothScrollInstance=this.applySmoothScroll()):this.ngOnDestroy()},enumerable:!1,configurable:!0}),e.prototype.applySmoothScroll=function(e,t){var n=this;if(!i.isMobileApp()||i.isKitkatDevice())return null;var o={scrollbars:!0,preventDefault:!1,momentum:!0,bounce:!1,mouseWheel:!0,disablePointer:!0,disableTouch:!1,disableMouse:!1},r=this._$el[0];if(!r.children.length)return null;this._$el.addClass("smoothscroll-wrapper"),r.onscroll=function(e){e.target.iscroll&&e.target.scrollTop&&(e.target.iscroll.scrollTo(e.target.iscroll.x,e.target.iscroll.y-e.target.scrollTop),e.target.scrollTop=0)},t&&"INPUT"===t.tagName&&t.focus(),e&&(o.fadeScrollbars=!0);var a=new IScroll(r,o);if(e){_.forEach(e,(function(e,t){_.forEach(e,(function(e){a.on(t,e)}))}));var s=this;a.on("scrollStart",(function(){this._scrolling=!0,i.isMobileApp()&&s.app.notify("iscroll-start",{})})),a.on("scrollEnd",(function(){this._scrolling=!1})),a.refresh()}return this.app.notify("iscroll-start",{}),a.indicatorRefresh=function(){var e,t=n._$el[0].iscroll.indicators;if(t.length)for(e=0;e<t.length;e++)t[e].refresh()},this._$el[0].iscroll=a,_.forEach(this.pendingIscrolls,(function(e,t){if(e.isSameNode(n._$el[0]))return n.app.notify("iscroll-update",{el:e}),void n.pendingIscrolls.splice(t,1)})),this.app.notify("iscroll-update",{}),{iScroll:a,destroy:function(){a.destroy(),$(a.scroller).css({"transition-timing-function":"","transition-duration":"",transform:""}),a=null,delete r.iscroll}}},e.prototype.refreshIScroll=function(){var e=this._smoothScrollInstance.iScroll;if(!(e._scrolling||this._waitRefreshTill>Date.now())){if(e.wrapper&&!_.includes(e.wrapper.children[0].classList,"smoothscroll-container")&&e.wrapper.scrollHeight>e.wrapper.clientHeight){var t=e._events,n=document.activeElement;$(e.wrapper.children).wrapAll('<div class="smoothscroll-container"></div>'),this._smoothScrollInstance.destroy(),this._smoothScrollInstance=this.applySmoothScroll(t,n)}this._lastScrollY!==this._$el[0].iscroll.maxScrollY?(Ye(this._smoothScrollInstance.iScroll),this._lastScrollY=this._$el[0].iscroll.maxScrollY):this._smoothScrollInstance.iScroll.refresh(),this._waitRefreshTill=Date.now()+500}},e}();He.decorators=[{type:t.Directive,args:[{selector:"[wmSmoothscroll]"}]}],He.ctorParameters=function(){return[{type:t.Injector},{type:t.ElementRef},{type:i.App}]},He.propDecorators={wmSmoothscroll:[{type:t.Input}]};var Ye=function(e){var t=!e&&$(".smoothscroll-container");e&&e.wrapper&&e.wrapper.contains(document.activeElement)&&"INPUT"===document.activeElement.tagName&&$(document.activeElement).offset().top+document.activeElement.clientHeight>.9*window.innerHeight&&document.activeElement.scrollIntoView({behavior:"auto",block:"end",inline:"end"}),e?(e.indicatorRefresh&&e.indicatorRefresh(),e.refresh&&e.refresh()):t.length&&t.parent().each((function(e,t){t.iscroll.indicatorRefresh(),t.iscroll.refresh()}))},Ke=Ye;window.addEventListener("resize",i.debounce(Ye,200));var Qe=function(){function e(e){this.elRef=e}return Object.defineProperty(e.prototype,"textContent",{set:function(e){var t=e;null==e&&(t=""),this.elRef.nativeElement.textContent=t},enumerable:!1,configurable:!0}),e}();Qe.decorators=[{type:t.Directive,args:[{selector:"[textContent]"}]}],Qe.ctorParameters=function(){return[{type:t.ElementRef}]},Qe.propDecorators={textContent:[{type:t.Input}]};var Xe=function(e){return _.isDate(e)||isNaN(e)||(e=parseInt(e,10)),moment(e).valueOf()||moment((new Date).toDateString()+" "+e).valueOf()},Je=function(){function e(e){this.decimalPipe=e}return e.prototype.transform=function(e,t,n,i,o,r,a,s){n=o&&!a?"1."+r.length+"-16":n;var l=s?s.number:void 0;return this.decimalPipe.transform(e,n,i||l||t)},e}();Je.decorators=[{type:t.Pipe,args:[{name:"trailingZeroDecimalPipe"}]}],Je.ctorParameters=function(){return[{type:n.DecimalPipe}]};var Ze=function(){function e(e,t){this.datePipe=e,this.i18nService=t}return e.prototype.transform=function(e,t,n,o){var r;if("null"===e||""===e)return"";if(!i.isDefined(e))return"";if(r=Xe(e)){if("timestamp"===t)return r;if("UTC"===t)return new Date(r).toISOString();var a=this.i18nService?this.i18nService.getTimezone(o):n;return a&&(e===r||i.hasOffsetStr(e))?moment(r).tz(a).format(t.replaceAll("y","Y").replaceAll("d","D").replace("a","A")):this.datePipe.transform(r,t)}return""},e}();Ze.decorators=[{type:t.Pipe,args:[{name:"toDate"}]}],Ze.ctorParameters=function(){return[{type:n.DatePipe},{type:i.AbstractI18nService}]};var et=function(){function e(e,t){this.decimalPipe=e,this.i18nService=t}return e.prototype.transform=function(e,t){if(t&&!String(t).match(/^(\d+)?\.((\d+)(-(\d+))?)?$/)&&(t="1."+t+"-"+t),!_.isNaN(+e)){var n=this.i18nService&&this.i18nService.getwidgetLocale()?this.i18nService.getwidgetLocale():void 0,i=n?n.number:null;return this.decimalPipe.transform(e,t,i)}},e}();et.decorators=[{type:t.Pipe,args:[{name:"toNumber"}]}],et.ctorParameters=function(){return[{type:n.DecimalPipe},{type:i.AbstractI18nService,decorators:[{type:t.Inject,args:[i.AbstractI18nService]}]}]};var tt=function(){function e(e,t){this.decimalPipe=e,this.i18nService=t}return e.prototype.transform=function(e,t,n){var o=(i.CURRENCY_INFO[t]||{}).symbol||t||"",r=new et(this.decimalPipe,this.i18nService).transform(e,n),a=_.startsWith(r,"-");return a&&(r=r.replace("-","")),r?a?"-"+o+r:o+r:""},e}();tt.decorators=[{type:t.Pipe,args:[{name:"toCurrency"}]}],tt.ctorParameters=function(){return[{type:n.DecimalPipe},{type:i.AbstractI18nService,decorators:[{type:t.Inject,args:[i.AbstractI18nService]}]}]};var nt=function(){function e(){}return e.prototype.transform=function(e,t){return _.isUndefined(e)||null===e||""===e?e:(t||"")+e},e}();nt.decorators=[{type:t.Pipe,args:[{name:"prefix"}]}];var it=function(){function e(){}return e.prototype.transform=function(e,t){return _.isUndefined(e)||null===e||""===e?e:e+(t||"")},e}();it.decorators=[{type:t.Pipe,args:[{name:"suffix"}]}];var ot=function(){function e(e){this.custmeUserPipe=e}return e.prototype.transform=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n.push(arguments[i]);var o=this.custmeUserPipe.getCustomPipe(t);if(!o||!_.isFunction(o.formatter))return console.warn("formatter is not defined, please check the custom pipes documentation"),e;try{return o.formatter.apply(o,v([e],g(n)))}catch(n){return console.error("Pipe name: "+t,n),e}},e}();ot.decorators=[{type:t.Pipe,args:[{name:"custom"}]}],ot.ctorParameters=function(){return[{type:i.CustomPipeManager}]};var rt=function(){function e(){}return e.prototype.transform=function(e){var t;if(i.isDefined(e))return(t=Xe(e))?moment(t).fromNow():void 0},e}();rt.decorators=[{type:t.Pipe,args:[{name:"timeFromNow"}]}];var at=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t}(et);at.decorators=[{type:t.Pipe,args:[{name:"numberToString"}]}];var st=function(){function e(){}return e.prototype.transform=function(e){return Number(e)||void 0},e}();st.decorators=[{type:t.Pipe,args:[{name:"stringToNumber"}]}];var lt=function(){function e(){}return e.prototype.transform=function(e,t,n){return e?_.isObject(t)?_.filter(e,t):_.filter(e,(function(e){return _.includes(e[t],n)})):[]},e}();lt.decorators=[{type:t.Pipe,args:[{name:"filter"}]}];var ct=function(){function e(){}return e.prototype.transform=function(e,t){for(var n=0;e>=1024;)e/=1024,n++;return e.toFixed(+t)+" "+["bytes","KB","MB","GB","TB","PB"][n]},e}();ct.decorators=[{type:t.Pipe,args:[{name:"filesize"}]}];var pt=function(){function e(){}return e.prototype.transform=function(e){return"fa "+({zip:"fa-file-zip-o",pdf:"fa-file-pdf-o",rar:"fa-file-archive-o",txt:"fa-file-text-o",ppt:"fa-file-powerpoint-o",pot:"fa-file-powerpoint-o",pps:"fa-file-powerpoint-o",pptx:"fa-file-powerpoint-o",potx:"fa-file-powerpoint-o",ppsx:"fa-file-powerpoint-o",mpg:"fa-file-movie-o",mp4:"fa-file-movie-o",mov:"fa-file-movie-o",avi:"fa-file-movie-o",mp3:"fa-file-audio-o",docx:"fa-file-word-o",js:"fa-file-code-o",md:"fa-file-code-o",html:"fa-file-code-o",css:"fa-file-code-o",xlsx:"fa-file-excel-o",png:"fa-file-image-o",jpg:"fa-file-image-o",jpeg:"fa-file-image-o",file:"fa-file-o",default:"fa-file-o"}[e]||"fa-file-o")},e}();pt.decorators=[{type:t.Pipe,args:[{name:"fileIconClass"}]}];var ut=function(){function e(){}return e.prototype.transform=function(e){return{success:"wi wi-done text-success",error:"wi wi-error text-danger"}[e.toLowerCase()]},e}();ut.decorators=[{type:t.Pipe,args:[{name:"stateClass"}]}];var dt=function(){function e(){}return e.prototype.transform=function(e){return{"audio/aac":".aac","application/x-abiword":".abw","application/vnd.android.package-archive":".apk","video/x-msvideo":".avi","application/vnd.amazon.ebook":".azw","application/octet-stream":".bin","image/bmp":".bmp","application/x-bzip":".bz","application/x-bzip2":".bz2","application/x-csh":".csh","text/css":".css","text/csv":".csv","application/msword":".doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":".docx","application/vnd.ms-fontobject":".eot","application/epub+zip":".epub","application/ecmascript":".es","image/gif":".gif","text/html":".html","image/x-icon":".ico","text/calendar":".ics","application/java-archive":".jar","image/jpeg":[".jpeg",".jpg"],"application/javascript":".js","application/json":".json","audio/midi":".mid","audio/x-midi":".midi","video/mpeg":".mpeg","application/vnd.apple.installer+xml":"mpkg","application/vnd.oasis.opendocument.presentation":".odp","application/vnd.oasis.opendocument.spreadsheet":".ods","application/vnd.oasis.opendocument.text":".odt","audio/ogg":".oga","video/ogg":".ogv","application/ogg":".ogx","font/otf":".otf","image/png":".png","application/pdf":".pdf","application/vnd.ms-powerpoint":".ppt","application/vnd.openxmlformats-officedocument.presentationml.presentation":".pptx","application/x-rar-compressed":".rar","application/rtf":".rtf","application/x-sh":".sh","image/svg+xml":".svg","application/x-shockwave-flash":".swf","application/x-tar":".tar","image/tiff":".tiff","application/typescript":".ts","font/ttf":".ttf","text/plain":".txt","application/vnd.visio":".vsd","audio/wav":".wav","audio/webm":".weba","video/webm":".webm","image/webp":".webp","font/woff":".woff","font/woff2":".woff2","application/xhtml+xml":".xhtml","application/vnd.ms-excel":".xls","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":".xlsx","application/xml":".xml","application/vnd.mozilla.xul+xml":".xul","application/zip":".zip","video/3gpp":".3gp","audio/3gpp":".3gp","video/3gpp2":".3g2","audio/3gpp2":".3g2","application/x-7z-compressed":".7z"}[e]},e}();dt.decorators=[{type:t.Pipe,args:[{name:"fileExtensionFromMime"}]}];var ht=function(){function e(e){this.domSanitizer=e}return e.prototype.transform=function(e,n){if(null==e)return"";switch(n){case"html":case t.SecurityContext.HTML:return this.domSanitizer.bypassSecurityTrustHtml(e);case"style":case t.SecurityContext.STYLE:return this.domSanitizer.bypassSecurityTrustStyle(e);case"script":case t.SecurityContext.SCRIPT:return this.domSanitizer.bypassSecurityTrustScript(e);case"url":case t.SecurityContext.URL:return this.domSanitizer.bypassSecurityTrustUrl(e);case"resource":case t.SecurityContext.RESOURCE_URL:return this.domSanitizer.bypassSecurityTrustResourceUrl(e)}},e}();ht.decorators=[{type:t.Pipe,args:[{name:"trustAs"}]}],ht.ctorParameters=function(){return[{type:a.DomSanitizer}]};var mt=[],ft=[],gt=function(){function e(){this.dialogRefsCollection=new Map,this.appConfirmDialog="_app-confirm-dialog"}return e.prototype.register=function(e,t,n){e&&(this.dialogRefsCollection.get(e)?this.dialogRefsCollection.get(e).set(n,t):this.dialogRefsCollection.set(e,new Map([[n,t]])))},e.prototype.getDialogRefsCollection=function(){return this.dialogRefsCollection},e.prototype.deRegister=function(e,t){e&&this.dialogRefsCollection.get(e)&&this.dialogRefsCollection.get(e).delete(t)},e.prototype.getDialogRef=function(e,t){var n,i=this.dialogRefsCollection.get(e);return t?(n=i.get(t))||(t.pageName||t.partialName||t.prefabName?console.error('No dialog with the name "'+e+'" found in the given scope.'):i.forEach((function(t,i){i&&"Common"===i.partialName?n=t:console.error('No dialog with the name "'+e+'" found in the App scope.')}))):1===i.size?n=i.entries().next().value[1]:console.error("There are multiple instances of this dialog name. Please provide the Page/Partial/App instance in which the dialog exists."),n},e.prototype.open=function(e,t,n){var i=this.getDialogRef(e,t);i&&i.open(n)},e.prototype.close=function(e,t,n){var i=this.getDialogRef(e,t);i&&(i.closeCallBackFn=n,i.close())},e.prototype.closeAllDialogs=function(){_.forEach(mt.reverse(),(function(e){e.close()}))},e.prototype.showAppConfirmDialog=function(e){this.open(this.getAppConfirmDialog(),void 0,e)},e.prototype.closeAppConfirmDialog=function(){this.close(this.getAppConfirmDialog())},e.prototype.getAppConfirmDialog=function(){return this.appConfirmDialog},e.prototype.setAppConfirmDialog=function(e){this.appConfirmDialog=e},e.prototype.addToOpenedDialogs=function(e){mt.push(e)},e.prototype.getLastOpenedDialog=function(){return mt[mt.length-1]},e.prototype.removeFromOpenedDialogs=function(e){(-1!==mt.indexOf(e)&&mt.splice(mt.indexOf(e),1),0===mt.length&&(i.isMobile()||i.isMobileApp()))&&$("body > app-root")[0].removeAttribute("aria-hidden")},e.prototype.getOpenedDialogs=function(){return mt},e.prototype.addToClosedDialogs=function(e){ft.push(e)},e.prototype.removeFromClosedDialogs=function(e){-1!==ft.indexOf(e)&&ft.splice(ft.indexOf(e),1)},e.prototype.getDialogRefFromClosedDialogs=function(){return ft[ft.length-1]},e}();gt.decorators=[{type:t.Injectable}],gt.ctorParameters=function(){return[]};var vt=function(){function e(e){this.domSanitizer=e}return e.prototype.transform=function(e,n){if(null==e)return"";switch(n){case"html":case t.SecurityContext.HTML:return this.domSanitizer.sanitize(t.SecurityContext.HTML,e);case"style":case t.SecurityContext.STYLE:return this.domSanitizer.sanitize(t.SecurityContext.STYLE,e);case"script":case t.SecurityContext.SCRIPT:return this.domSanitizer.sanitize(t.SecurityContext.SCRIPT,e);case"url":case t.SecurityContext.URL:return this.domSanitizer.sanitize(t.SecurityContext.URL,e);case"resource":case t.SecurityContext.RESOURCE_URL:return this.domSanitizer.sanitize(t.SecurityContext.RESOURCE_URL,e);case"none":case t.SecurityContext.NONE:return this.domSanitizer.sanitize(t.SecurityContext.NONE,e)}},e}();vt.decorators=[{type:t.Pipe,args:[{name:"sanitize"}]}],vt.ctorParameters=function(){return[{type:a.DomSanitizer}]};var yt=[Ae,Ne,Me,Le,Be,$e,Ue,We,qe,Se,ze,He,Qe],bt=[Ze,pt,dt,lt,ct,et,tt,nt,it,rt,at,ut,st,Je,ht,Ce,ot,vt],wt=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[Ze,lt,Je,ht,Ce,ot,vt,n.Location,{provide:i.AbstractDialogService,useClass:gt}]}},e}();wt.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,o.SecurityModule],declarations:v(v([],g(yt)),g(bt)),exports:v(v([],g(yt)),g(bt))}]}];var Pt,_t=function(){};e.Live_Operations=void 0,(Pt=e.Live_Operations||(e.Live_Operations={})).INSERT="insert",Pt.UPDATE="update",Pt.DELETE="delete",Pt.READ="read";var Ot="All Fields",St={EMPTY_KEY:"EMPTY_NULL_FILTER",EMPTY_VALUE:"No Value",LABEL_KEY:"key",LABEL_VALUE:"value",NULL_EMPTY:["null","empty"],NULL:"null",EMPTY:"empty"};function Et(e){return _.includes([i.FormWidgetType.AUTOCOMPLETE,i.FormWidgetType.TYPEAHEAD,i.FormWidgetType.CHIPS],e)}var Tt=function(e,t,n){var o=i.debounce((function(){_.isFunction(n)&&n(t)}),300);o();var r=t?_.isObject(t)?t:JSON.parse(t):{},a=e.registerDestroyListener?e.registerDestroyListener.bind(e):_.noop,s=i.processFilterExpBindNode(e,r).subscribe((function(e){t=JSON.stringify(e.filterExpressions),o()}));a((function(){return s.unsubscribe()}))},Rt=function(e,t){var n,o={};return t["is-related"]?(o.tableName=t["lookup-type"],n=t["lookup-field"],o.distinctField=n,o.aliasColumn=n.replace(".","$"),o.filterExpr=t.filterexpressions?_.isObject(t.filterexpressions)?t.filterexpressions:JSON.parse(t.filterexpressions):{}):(o.tableName=e.execute(i.DataSource.Operation.GET_ENTITY_NAME),n=t.field||t.key,o.distinctField=n,o.aliasColumn=n),o};function At(e,t,n){var o;return new Promise((function(r,a){!A(t[n])||t.isDataSetBound&&"filterwidget"!==n||(o=Rt(e,t),e.execute(i.DataSource.Operation.GET_DISTINCT_DATA_BY_FIELDS,{fields:o.distinctField,entityName:o.tableName,pagesize:t.limit,filterExpr:t.filterexpressions?JSON.parse(t.filterexpressions):{}}).then((function(e){r({field:t,data:e.data,aliasColumn:o.aliasColumn})}),a))}))}function Ct(e,t){if(Et(e[t.widget]))return e.datafield=t.aliasColumn||St.LABEL_KEY,e.searchkey=t.distinctField||St.LABEL_KEY,void(e.displaylabel=e.displayfield=t.aliasColumn||St.LABEL_VALUE);e.datafield=St.LABEL_KEY,e.displayfield=St.LABEL_VALUE}function It(e,t,n){var o=[i.FormWidgetType.SELECT,i.FormWidgetType.RADIOSET],r={},a=[];n.isEnableEmptyFilter&&_.includes(o,e[n.widget])&&!e["is-range"]&&!e.multiple&&(r[St.LABEL_KEY]=St.EMPTY_KEY,r[St.LABEL_VALUE]=n.EMPTY_VALUE||St.EMPTY_VALUE,a.push(r)),_.each(t,(function(e){var t=e[n.aliasColumn],i={};null!==t&&""!==t&&(i[St.LABEL_KEY]=t,i[St.LABEL_VALUE]=t,a.push(i))})),Ct(e,n),e.dataset=a}function Dt(e,t,n){if(e&&t&&!t.isDataSetBound)if(Et(t[n.widget])){var i=Rt(e,t);t.dataoptions=i,Ct(t,Object.assign(n||{},i)),t.datasource=e}else Tt(t.viewParent,t.filterexpressions,(function(i){t.filterexpressions=i,At(e,t,n.widget).then((function(e){It(e.field,e.data,{aliasColumn:e.aliasColumn,widget:n.widget,isEnableEmptyFilter:Mt(n.enableemptyfilter),EMPTY_VALUE:n.EMPTY_VALUE})}))}))}function Nt(e){return i.isDefined(e)&&""!==e&&null!==e}function xt(e,t){var n;return Nt(e)&&Nt(t)?n=[e,t]:Nt(e)?n=e:Nt(t)&&(n=t),n}function kt(e,t){var n;return Nt(e)&&Nt(t)?n=i.MatchMode.BETWEEN:Nt(e)?n=i.MatchMode.GREATER:Nt(t)&&(n=i.MatchMode.LESSER),n}function Mt(e){return e&&_.intersection(e.split(","),St.NULL_EMPTY).length>0}function Lt(e){var t,n=_.split(e,",");return 2===_.intersection(n,St.NULL_EMPTY).length?t=i.MatchMode.NULLOREMPTY:_.includes(n,St.NULL)?t=i.MatchMode.NULL:_.includes(n,St.EMPTY)&&(t=i.MatchMode.EMPTY),t}var Ft=function(e){return _.isUndefined(e)||_.isNull(e)?[]:(_.isString(e)&&(e=e.split(",").map(Function.prototype.call,String.prototype.trim)),_.isArray(e)||(e=[e]),e)};var jt,Bt=moment.localeData(),Gt=i.getClonedObject(Bt._calendar),Vt=Bt._calendarDay||{lastDay:"[Yesterday]",lastWeek:"[Last] dddd",nextDay:"[Tomorrow]",nextWeek:"dddd",sameDay:"[Today]",sameElse:"L"},$t="alphabet",Ut="Others",Wt={HOUR:"hour",DAY:"day",WEEK:"week",MONTH:"month",YEAR:"year"},qt="yyyy-MM-dd",zt="w 'Week', yyyy",Ht="MMM, yyyy",Yt="YYYY",Kt="hh:mm a",Qt=function(e,t,n){if(!t)return _.cloneDeep(e);var i=t.split(","),o=[],r=[];return i.forEach((function(e){var t=e.split(":");o.push(n?n+"."+t[0]:t[0]),r.push(t[1])})),_.orderBy(e,o,r)},Xt=function(e){return _.isString(e)&&(e=_.split(e,",").map((function(e){return e.trim()}))),e},Jt=function(e){return"wm-search"===e},Zt=function(e,t,n,o){if(e&&Jt(e.widgetType))if(e.groupby)if(_.includes(e.groupby,"(")){var r=i.$parseEvent(e.groupby);n.groupby=r(t,{row:n.dataObject||n})}else n.groupby=rn(e.groupby,e.match,o,e.dateformat,e.datePipe,e.appDefaults,n);else n.groupby=""},en=function(e,t,n){var i=[];return _.forEach(_.keys(e),(function(o,r){var a=Qt(e[o],n,"dataObject");i.push({key:o,data:_.sortBy(a,(function(e){return e._groupIndex=r+1,_.get(e,t)||_.get(e.dataObject,t)}))})})),i},tn=function(e,t,n,i,o,r,a,s){n===Wt.DAY&&(Bt._calendar=Vt),e=_.orderBy(e,(function(e){var n=_.get(a?e[a]:e,t);if(n)return _.toLower(n)}));var l=_.groupBy(e,rn.bind(void 0,t,n,a,o,r,s));return Bt._calendar=Gt,l},nn=function(e,t,n,o){return"timestamp"===t?e:i.getFormattedDate(o,e,t||n)},on=function(e,t,n,i,o){var r,a=moment(e),s=n,l=moment(),c=function(){return"["+nn(this.valueOf(),s,qt,i)+"]"};switch(t){case Wt.HOUR:s=s||o.timeFormat,a.isValid()||(a=moment((new Date).toDateString()+" "+e)).isValid()&&(Bt._calendar.sameDay=function(){return"["+nn(this.valueOf(),s,Kt,i)+"]"}),a=a.startOf("hour"),Bt._calendar.sameElse=c,r=a.calendar(l);break;case Wt.WEEK:r=nn(a.valueOf(),s,zt,i);break;case Wt.MONTH:r=nn(a.valueOf(),s,Ht,i);break;case Wt.YEAR:r=a.format(Yt);break;case Wt.DAY:s=s||o.dateFormat,a=a.startOf("day"),Bt._calendar.sameElse=c,r=a.calendar(l)}return"Invalid date"===r?Ut:r},rn=function(e,t,n,i,o,r,a){var s=_.get(n?a[n]:a,e);return _.isUndefined(s)||_.isNull(s)||""===s.toString().trim()?Ut:(t===$t&&(s=s.substr(0,1)),_.includes(_.values(Wt),t)&&(s=on(s,t,i,o,r)),s)},an=function(){},sn="default",ln="label",cn=function(e,t,n,i){_.forEach(e,(function(e){_.get(e,"isGroup")&&(e.field===n?e.columns[i]=t:cn(e.columns,t,n,i))}))},pn=function(e){return"true"===e||"false"!==e&&(/^\d+$/.test(e)?+e:e)},un={integer:["number","text","select","checkboxset","radioset","rating","slider","currency","autocomplete","chips"],big_integer:["number","text","select","checkboxset","radioset","rating","slider","currency","autocomplete","chips"],short:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],float:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],big_decimal:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],number:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],double:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],long:["number","text","select","checkboxset","radioset","rating","slider","currency","autocomplete","chips"],byte:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],string:["text","number","textarea","password","richtext","select","checkboxset","radioset","date","time","timestamp","switch","currency","autocomplete","chips","colorpicker"],character:["text","number","textarea","password","richtext","select","checkboxset","radioset","switch","currency","autocomplete","chips"],text:["text","number","textarea","password","richtext","select","checkboxset","radioset","date","time","timestamp","switch","currency","autocomplete","chips","colorpicker"],date:["date","text","number","select","checkboxset","radioset","autocomplete","chips"],time:["time","text","number","select","checkboxset","radioset","autocomplete","chips"],timestamp:["timestamp","text","number","select","checkboxset","radioset","autocomplete","chips"],datetime:["datetime","text","select","checkboxset","radioset","autocomplete","chips"],boolean:["checkbox","radioset","toggle","select"],list:["select","radioset","checkboxset","switch","autocomplete","chips"],clob:["text","textarea","richtext"],blob:["upload"],file:["upload"],custom:["text","number","textarea","password","checkbox","toggle","slider","richtext","currency","switch","select","checkboxset","radioset","date","time","timestamp","rating","datetime","autocomplete","chips","colorpicker"]},dn=function(e){if(e)return/^(\/|#\/|#)(?!\W).*/.test(e)?"#/"+(e=_.first(e.match(/[\w]+.*/g))||""):_.startsWith(e,"www.")?"//"+e:e},hn=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.nodes=[],i.nodes$=new s.Subject,i._resetNodes=_.debounce(i.resetNodes,50),i.securityService=i.inj.get(o.SecurityService),i.binditemlabel=i.nativeElement.getAttribute("itemlabel.bind"),i.binditemicon=i.nativeElement.getAttribute("itemicon.bind"),i.binditemaction=i.nativeElement.getAttribute("itemaction.bind"),i.binditembadge=i.nativeElement.getAttribute("itembadge.bind"),i.binditemchildren=i.nativeElement.getAttribute("itemchildren.bind"),i.binditemid=i.nativeElement.getAttribute("itemid.bind"),i.binditemlink=i.nativeElement.getAttribute("itemlink.bind"),i.binditemtarget=i.nativeElement.getAttribute("itemtarget.bind"),i.binduserrole=i.nativeElement.getAttribute("userrole.bind"),i.bindisactive=i.nativeElement.getAttribute("isactive.bind"),i}return d(t,e),t.prototype.getNode=function(e,t){var n=this.viewParent.pageScope||this.viewParent,o=E(t,{field:this.itemchildren,bindExpression:this.binditemchildren},n)||_.get(t,e.childrenField),r={action:E(t,{field:this.itemaction,bindExpression:this.binditemaction},n)||_.get(t,e.actionField),badge:E(t,{field:this.itembadge,bindExpression:this.binditembadge},n)||_.get(t,e.badgeField),children:Array.isArray(o)?this.getNodes(o):[],class:_.get(t,e.classField),disabled:t.disabled,icon:E(t,{field:this.itemicon,bindExpression:this.binditemicon},n)||_.get(t,e.iconField),id:E(t,{field:this.itemid,bindExpression:this.binditemid},n)||_.get(t,e.idField),label:E(t,{field:this.itemlabel,bindExpression:this.binditemlabel},n)||_.get(t,e.labelField),link:dn(E(t,{field:this.itemlink,bindExpression:this.binditemlink},n)||_.get(t,e.linkField)),target:dn(E(t,{field:this.itemtarget,bindExpression:this.binditemtarget},n)||_.get(t,e.targetField)),role:E(t,{field:this.userrole,bindExpression:this.binduserrole},n),isactive:E(t,{field:this.isactive,bindExpression:this.bindisactive},n),value:this.datafield?"All Fields"===this.datafield?t:i.findValueOf(t,this.datafield):t};return _.omitBy(r,_.isUndefined)},t.prototype.resetItemFieldMap=function(){this._itemFieldMap=null},t.prototype.getItemFieldsMap=function(){return this._itemFieldMap||(this._itemFieldMap={idField:this.itemid||"itemid",iconField:this.itemicon||"icon",labelField:this.itemlabel||"label",linkField:this.itemlink||"link",targetField:this.itemtarget||"target",badgeField:this.itembadge||"badge",childrenField:this.itemchildren||"children",classField:this.itemclass||"class",actionField:this.itemaction||"action",isactiveField:this.isactive||"isactive"}),this._itemFieldMap},t.prototype.prepareNodeDataSet=function(e){return(e=Ft(e)).map((function(e){return i.isObject(e)?e:{label:e,value:e}}))},t.prototype.getNodes=function(e){var t=this;void 0===e&&(e=this.dataset||{});var n=Qt(this.prepareNodeDataSet(e),this.orderby)||[];if(n.length){var o=this.userrole,r=this.getItemFieldsMap();n=n.reduce((function(e,n){return i.validateAccessRoles(n[o],t.securityService.loggedInUser)&&e.push(t.getNode(r,n)),e}),[])}return n},t.prototype.resetNodes=function(){this.resetItemFieldMap(),this.nodes=this.getNodes(),i.$appDigest(),this.nodes$.next()},t.prototype.onPropertyChange=function(t,n,i){switch(t){case"dataset":case"itemicon":case"itemlabel":case"itemlink":case"itemtarget":case"itemclass":case"itemchildren":case"isactive":case"orderby":this._resetNodes()}e.prototype.onPropertyChange.call(this,t,n,i)},t}(Oe),mn={pattern:"regexp",max:"maxvalue",min:"minvalue",required:"required",maxlength:"maxchars",mindate:"mindate",maxdate:"maxdate",excludedates:"excludedates",excludedays:"excludedays",invalidNumber:"invalidNumber"},fn=function(){function e(e,t,n,i,o,r){this.instance=e,this.formwidget=t,this.widgettype=n,this.widgetControl=i,this.widgetContext=o,this.defaultValidatorMessages=[],r&&(this.tableFieldType=r)}return e.prototype.getDefaultValidators=function(){var e=[];return this.instance.required&&!1!==this.instance.show&&(this.widgettype===i.FormWidgetType.CHECKBOX||this.widgettype===i.FormWidgetType.TOGGLE?e.push(c.Validators.requiredTrue):e.push(c.Validators.required)),this.instance.maxchars&&e.push(c.Validators.maxLength(this.instance.maxchars)),this.instance.minvalue&&e.push(c.Validators.min(this.instance.minvalue)),this.instance.maxvalue&&this.widgettype!==i.FormWidgetType.RATING&&e.push(c.Validators.max(this.instance.maxvalue)),this.instance.regexp&&e.push(c.Validators.pattern(this.instance.regexp)),this.formwidget&&_.isFunction(this.formwidget.validate)&&e.push(this.formwidget.validate.bind(this.formwidget)),e},e.prototype.setUpValidators=function(e){if(!this.hasValidators&&(this.instance._validators=this.getDefaultValidators(),e&&this.instance._validators.push(e),this.widgetContext.ngform)){this.widgetControl.setValidators(this.instance._validators);var t={};this.formwidget&&this.instance.value===this.formwidget.prevDatavalue&&(t.emitEvent=!1),this.widgetControl.updateValueAndValidity(t)}},e.prototype.getPromiseList=function(e){var t=this,n=[];return _.forEach(e,(function(e,i){var o=e;e instanceof Function&&e.bind&&(o=e(t.widgetControl,t.widgetContext)),o instanceof Promise&&n.push(o)})),n},e.prototype.setAsyncValidators=function(e){var t=this;this._asyncValidatorFn=function(){return function(){return Promise.all(t.getPromiseList(e)).then((function(){return t.instance.validationmessage="",null}),(function(e){if(e.hasOwnProperty("errorMessage"))t.instance.validationmessage=_.get(e,"errorMessage");else{var n=_.keys(e);t.instance.validationmessage=e[n[0]].toString()}return e})).then((function(e){var n=function(){setTimeout((function(){"PENDING"===t.widgetControl.status?n():t.instance.onStatusChange(t.widgetControl.status,t.tableFieldType)}),100)};return n(),e}))}},this.widgetControl.setAsyncValidators([this._asyncValidatorFn()]),this.widgetContext.ngform.touched&&this.widgetControl.updateValueAndValidity()},e.prototype.isDefaultValidator=function(e){return _.get(i.VALIDATOR,_.toUpper(e))},e.prototype.setDefaultValidator=function(e,t){t&&t instanceof Function?this.watchDefaultValidatorExpr(t.bind(void 0,this.widgetControl,this.widgetContext),e):(this.instance.widget[e]=t,this.instance[e]=t)},e.prototype.setValidators=function(e){var t=this,n=_.cloneDeep(e);this.hasValidators=!0,this._syncValidators=[],_.forEach(n,(function(e,i){if(e&&e instanceof Function)n[i]=e.bind(void 0,t.widgetControl,t.widgetContext),t._syncValidators.push(n[i]);else{var o=_.get(e,"type");if(t.defaultValidatorMessages[o]=_.get(e,"errorMessage"),t.isDefaultValidator(o)){var r=_.get(e,"validator");t.setDefaultValidator(o,r),n[i]=""}}})),this._syncValidators=_.filter(n,(function(e){if(e)return e})),this.applyDefaultValidators()},e.prototype.observeOn=function(e,t){var n=this;_.forEach(e,(function(e){var i=_.find(n.widgetContext[t],{key:e});i&&(i.notifyForFields||(i.notifyForFields=[]),i.notifyForFields.push(n.instance))}))},e.prototype.validate=function(){this.applyDefaultValidators(),this._asyncValidatorFn&&(this.widgetControl.setAsyncValidators([this._asyncValidatorFn()]),this.widgetControl.updateValueAndValidity()),this.widgetContext.ngform.touched&&this.widgetControl.markAsTouched()},e.prototype.watchDefaultValidatorExpr=function(e,t){var n=this,o=this.instance.widgetId+"_"+t+"_formField";i.$unwatch(o),this.instance.registerDestroyListener(i.$watch("boundFn(fn)",_.extend(this.instance,this.instance.viewParent),{fn:e},(function(e,i){n.instance.widget[t]=e,n.applyDefaultValidators()}),o))},e.prototype.applyDefaultValidators=function(){var e=this.getDefaultValidators();this.widgetControl.setValidators(_.concat(this._syncValidators||[],e)),this.widgetControl.updateValueAndValidity(),this.setCustomValidationMessage()},e.prototype.setCustomValidationMessage=function(){var e=this.widgetControl&&this.widgetControl.errors;if(e)if(e.hasOwnProperty("errorMessage"))this.instance.validationmessage=_.get(e,"errorMessage");else{var t=_.keys(e)[0],n=_.get(mn,t)||this.formwidget.validateType;if(n){var i=_.get(this.defaultValidatorMessages,n)||this.instance.validationmessage;this.instance.validationmessage=i&&i instanceof Function?i(this.widgetControl,this.widgetContext):i}else this.instance.validationmessage=""}},e}(),gn=function(e){function t(t,n,o){var r=e.call(this)||this;r.$el=t,r.app=n,r.onPullToRefresh=o,r.count=0;return r.$el.prepend('<div class="refresh-container"></div>'),r.infoContainer=r.$el.find(".refresh-container"),i.isIos()&&r.infoContainer.addClass("ios-refresh-container"),r.init(r.$el),r}return d(t,e),t.prototype.threshold=function(){return 10},t.prototype.direction=function(){return $.fn.swipey.DIRECTIONS.VERTICAL},t.prototype.subscribe=function(){var e=this;this.cancelSubscription=this.app.subscribe("toggle-variable-state",(function(t){t.active&&e.animationInProgress?(e.count++,e.wait()):e.count>0&&e.count--,!e.count&&e.animationInProgress&&e.stopAnimation()}))},t.prototype.bounds=function(e,t){var n=this.$el[0].iscroll;return t<0||n&&!isNaN(n.y)&&0!==n.y?{lower:void 0,upper:void 0}:(this.spinner||(this.spinner=i.isIos()?new yn(this.infoContainer):new vn(this.infoContainer),this.subscribe()),{lower:0,center:0,upper:i.isIos()?0:150,strict:!i.isIos()})},t.prototype.context=function(){var e=this;return this.infoContainer.show(),i.isIos()&&this.infoContainer.addClass("entry"),{spin:function(t){e.spinner.setRotation(2*t)}}},t.prototype.animation=function(){return i.isIos()?{css:{transform:"translate3d(0, ${{$D + $d}}px, 0)",spin:"${{spin($d)}}"}}:{target:this.infoContainer,css:{transform:"translate3d(0, ${{$D + $d}}px, 0)",spin:"${{spin($d)}}",opacity:"${{min(($D + $d) / 100, 1)}}"}}},t.prototype.onAnimation=function(){var e=this;this.animationInProgress=!0,this.spinner.start(),this.onPullToRefresh&&this.onPullToRefresh(),setTimeout((function(){e.runAnimation||e.stopAnimation()}))},t.prototype.stopAnimation=function(){var e=this;setTimeout((function(){e.runAnimation=!1,e.animationInProgress=!1,e.spinner.stop(),e.infoContainer.hide(),i.setCSS(e.infoContainer[0],"transform","none"),i.isIos()||i.setCSS(e.infoContainer[0],"opacity",0),e.infoContainer.removeClass("entry")}),800)},t.prototype.wait=function(){this.runAnimation=!0},t}(p.SwipeAnimation),vn=function(){function e(e,t){this.$el=e,this.options=t||{}}return e.prototype.polarToCartesian=function(e,t,n,i){var o=(i-90)*Math.PI/180;return{x:e+n*Math.cos(o),y:t+n*Math.sin(o)}},e.prototype.describeArc=function(e,t,n,i,o){var r=this.polarToCartesian(e,t,n,o),a=this.polarToCartesian(e,t,n,i),s=o-i<=180?"0":"1";return["M",r.x,r.y,"A",n,n,0,s,0,a.x,a.y,"L",a.x,a.y].join(" ")},e.prototype.init=function(){if(!this.initialized){var e=$('<svg><path id="arc1"/></svg>'),t=$('<div class="android-spinner"></div>');t.append(e),this.$el.append(t),this.cx=t.outerWidth()/2,this.cy=t.outerHeight()/2,this.r=.6*this.cx,this.path=t.find("path"),this.initialized=!0,this.container=t}},e.prototype.setRotation=function(e){this.init(),this.path.attr("d",this.describeArc(this.cx,this.cy,this.r,0,e))},e.prototype.start=function(){var e=this;this.init();var t=this,n=this.options.time||1800,i=0;this.container.addClass("spin"),this.intervalId=setInterval((function(){var n;n=(i+=10)>720?i=0:i>360?720-i:i,t.path.attr("d",e.describeArc(t.cx,t.cy,t.r,0,n))}),10*n/360)},e.prototype.stop=function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=0),this.container.removeClass("spin")},e}(),yn=function(){function e(e){this.$el=e}return e.prototype.init=function(){if(!this.svg){var e=$('<div class="ios-spinner"><svg></svg></div>'),t=e.find("svg");this.$el.append(e);for(var n=e.width(),i=0;i<12;i++)t[0].innerHTML+='<line y1="'+.15*n+'" y2="'+.3*n+'"\n transform="translate('+.5*n+", "+.5*n+") rotate("+30*i+')">\n </line>';e.append(t),this.svg=t}},e.prototype.setRotation=function(e){this.init(),this.svg.css("transform","rotateZ( "+30*Math.round(e/30)+"deg)")},e.prototype.start=function(){var e=this;this.init();var t=0;this.intervalId=setInterval((function(){t+=10,e.setRotation(t)}),20)},e.prototype.stop=function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=0)},e}(),bn=this;!function(e){e.LEFT_PANEL="page-left-panel",e.RIGHT_PANEL="page-right-panel",e.SWIPE_ELEM="page-left-panel-icon",e.CONTENT="app-content-column",e.HEADER="page-header",e.SEARCH="app-search"}(jt||(jt={}));var wn=function(e){return"[data-role='"+e+"']"},Pn=(wn("pageContainer"),function(e,t){"string"==typeof e&&(e=document.querySelector(e)),e&&(e.removeEventListener("click",t),e.addEventListener("click",t))}),_n=function(e,t){if(i.isMobile()){if(e)try{e.widget.collapse()}catch(e){}t&&i.setCSS(t,"display","none")}},On=function(e,t,n,i){void 0===i&&(i=!1),i||Pn(t,_n.bind(bn,e,n))},Sn=function(e,t){Pn(wn(jt.SWIPE_ELEM),(function(){e&&(e.widget.toggle(),e.classList.contains("visible")&&t&&i.setCSS(t,"display","none"))}))},En=function(e){Pn(e,_n)},Tn=function(e,t){"none"===$(e).css("display")?(_n(t),i.setCSS(e,"display","inline-table")):_n(t,e)},Rn=function(e,t){$(e).each((function(e,n){var i=$('<a class="app-header-action"><i class="wi wi-search"></i></a>');$(n).before(i),Pn(i,(function(){return Tn(n,t)}))}))};e.ALLFIELDS=Ot,e.AUTOCLOSE_TYPE={OUTSIDECLICK:"outsideClick",ALWAYS:"always",DISABLED:"disabled"},e.BaseComponent=_e,e.BaseContainerComponent=Ee,e.BaseFieldValidations=fn,e.ContainerDirective=Ae,e.Context=w,e.CustomPipe=ot,e.DEBOUNCE_TIMES={PAGINATION_DEBOUNCE_TIME:250},e.DISPLAY_TYPE=le,e.DataSetItem=an,e.DatasetAwareNavComponent=hn,e.DialogRef=b,e.DialogServiceImpl=gt,e.EDIT_MODE={QUICK_EDIT:"quickedit",INLINE:"inline",FORM:"form",DIALOG:"dialog"},e.EVENTS_MAP=se,e.FileExtensionFromMimePipe=dt,e.FileIconClassPipe=pt,e.FileSizePipe=ct,e.FilterPipe=lt,e.INPUTMODE={FINANCIAL:"financial",NATURAL:"natural"},e.ImagePipe=Ce,e.ItemTemplateDirective=Ne,e.LIVE_CONSTANTS=St,e.LazyLoadDirective=Le,e.MessageComponent=Be,e.NAVIGATION_TYPE={ADVANCED:"Advanced",BASIC:"Basic",CLASSIC:"Classic",INLINE:"Inline",NONE:"None",ONDEMAND:"On-Demand",PAGER:"Pager",SCROLL:"Scroll"},e.NumberToStringPipe=at,e.PROP_ANY=ie,e.PROP_BOOLEAN=ne,e.PROP_NUMBER=te,e.PROP_STRING=ee,e.PartialContainerDirective=qe,e.PartialDirective=$e,e.PartialParamDirective=We,e.PartialParamHandlerDirective=Ue,e.PrefixPipe=nt,e.PullToRefresh=gn,e.RedrawableDirective=Se,e.RepeatTemplateDirective=Me,e.SanitizePipe=vt,e.ShowInDeviceDirective=ze,e.SmoothScrollDirective=He,e.StateClassPipe=ut,e.StringToNumberPipe=st,e.StylableComponent=Oe,e.SuffixPipe=it,e.TextContentDirective=Qe,e.TimeFromNowPipe=rt,e.ToCurrencyPipe=tt,e.ToDatePipe=Ze,e.ToNumberPipe=et,e.TrailingZeroDecimalPipe=Je,e.TrustAsPipe=ht,e.WidgetRef=y,e.WmComponentsModule=wt,e.applyFilterOnField=function(e,t,n,o,r){void 0===r&&(r={});var a=t.field||t.key,s=_.filter(n,{"filter-on":a});o=t["is-range"]?xt(t.minValue,t.maxValue):i.isDefined(o)?o:t.value,!e||r.isFirst&&(_.isUndefined(o)||""===o)||_.forEach(s,(function(n){var a,s,l,c=n.field||n.key,p=t["lookup-field"]||t._primaryKey,u=n["edit-widget-type"]||n.widgettype,d={},h=n["filter-on"];A(u)&&!n.isDataSetBound&&h!==c&&(t&&t["is-related"]&&(h+="."+p),i.isDefined(o)?(l=t["is-range"]?kt(t.minValue,t.maxValue):Mt(r.enableemptyfilter)&&o===St.EMPTY_KEY?Lt(r.enableemptyfilter):i.MatchMode.EQUALS,a=_.isObject(o)&&!_.isArray(o)?o[p]:o,d[h]={value:a,matchMode:l}):d={},s=c,Et(u)&&n.dataoptions?n.dataoptions.filterFields=d:e.execute(i.DataSource.Operation.GET_DISTINCT_DATA_BY_FIELDS,{fields:s,filterFields:d,pagesize:n.limit}).then((function(e){It(n,e.data,{aliasColumn:s,widget:r.widget||"widgettype",isEnableEmptyFilter:Mt(r.enableemptyfilter),EMPTY_VALUE:r.EMPTY_VALUE})}),_t))}))},e.configureDnD=function(e,t,n,i,o){var r=Object.assign({containment:e,delay:100,opacity:.8,helper:"clone",zIndex:1050,tolerance:"pointer",start:n,update:i,sort:o},t);e.sortable(r)},e.convertDataToObject=Xt,e.createArrayFrom=Ft,e.extractDataAsArray=function(e){return _.isUndefined(e)||_.isNull(e)||""===_.trim(e)?[]:(_.isString(e)&&(e=_.split(e,",").map((function(e){return e.trim()}))),_.isArray(e)||(e=[e]),e)},e.extractDataSourceName=function(e){if(e){var t,n=e.split(".");return n.length>1&&"Variables"===n[0]&&(t=n[1]),t}},e.fetchDistinctValues=function(e,t,n){_.isEmpty(t)||t.forEach((function(t){Dt(e,t,n)}))},e.fetchRelatedFieldData=function(e,t,n){var o,r,a=n.relatedField,s=n.datafield;e&&(o=e.execute(i.DataSource.Operation.GET_RELATED_PRIMARY_KEYS,a),t.datafield=s,t._primaryKey=_.isEmpty(o)?void 0:o[0],t.compareby=o&&o.join(","),r=s===Ot?void 0:s,t.displayfield=r=t.displayfield||r||t._primaryKey,Et(t[n.widget])?(t.dataoptions={relatedField:a,filterExpr:t.filterexpressions?t.filterexpressions:{}},t.datasource=e,t.searchkey=t.searchkey||r,t.displaylabel=t.displayfield=t.displaylabel||r,t.showPendingSpinner&&(t.showPendingSpinner=!1)):Tt(t.viewParent,t.filterexpressions,(function(n){t.filterexpressions=n,e.execute(i.DataSource.Operation.GET_RELATED_TABLE_DATA,{relatedField:a,pagesize:t.limit,orderBy:t.orderby?_.replace(t.orderby,/:/g," "):"",filterFields:{},filterExpr:t.filterexpressions?t.filterexpressions:{}}).then((function(e){t.dataset=e.data,t.displayfield=t.displayfield||_.head(_.keys(_.get(e,"[0]"))),t.showPendingSpinner&&(t.showPendingSpinner=!1)}),_t)})))},e.filterDate=nn,e.getBackGroundImageUrl=I,e.getConditionalClasses=B,e.getContainerTargetClass=function(e){return".wm-app"},e.getDataTableFilterWidget=function(e){var t=un[e]&&un[e][0];return e===i.DataType.BOOLEAN&&(t=i.FormWidgetType.SELECT),_.includes([i.FormWidgetType.TEXT,i.FormWidgetType.NUMBER,i.FormWidgetType.SELECT,i.FormWidgetType.AUTOCOMPLETE,i.FormWidgetType.DATE,i.FormWidgetType.TIME,i.FormWidgetType.DATETIME],t)?t:i.FormWidgetType.TEXT},e.getDefaultValue=function(e,t,n){return n?n===i.FormWidgetType.NUMBER||n===i.FormWidgetType.SLIDER||n===i.FormWidgetType.CURRENCY?isNaN(Number(e))?null:Number(e):n===i.FormWidgetType.CHECKBOX||n===i.FormWidgetType.TOGGLE?pn(e):e:i.isNumberType(t)?isNaN(Number(e))?null:Number(e):t===i.DataType.BOOLEAN?pn(e):e},e.getDefaultViewModeWidget=function(e){return _.includes(["checkbox","toggle","rating"],e)?sn:ln},e.getDistinctFieldProperties=Rt,e.getDistinctValues=At,e.getDistinctValuesForField=Dt,e.getEditModeWidget=function(e){return e["related-entity-name"]&&e["primary-key"]?i.FormWidgetType.SELECT:un[e.type]&&un[e.type][0]||i.FormWidgetType.TEXT},e.getEmptyMatchMode=Lt,e.getEnableEmptyFilter=Mt,e.getEvaluatedData=E,e.getFieldLayoutConfig=function(e,t,n){var o="",r="";return"top"===(t=t||"top")||"floating"===t?n&&"android"===n||!i.isMobileApp()||i.isAndroid()?o=r="col-xs-12":i.isMobileApp()&&(o="col-xs-4",r="col-xs-8"):e&&_.forEach(_.split(e," "),(function(e){var t,n,i=_.split(e,"-"),a=i[0];t=parseInt(i[1],10),o+=" col-"+a+"-"+t,r+=" col-"+a+"-"+(n=(n=12-t)<=0?12:n)})),{captionCls:o,widgetCls:r}},e.getFieldTypeWidgetTypesMap=function(){return un},e.getImageUrl=C,e.getKeyboardFocusableElements=function(e){var t=e.querySelectorAll("a, button, input, textarea, select, details, iframe, embed, object, summary dialog, audio[controls], video[controls], [contenteditable]");return Array.from(t).filter((function(e){return!e.hasAttribute("disabled")&&!e.hasAttribute("hidden")&&(!e.hasAttribute("tabindex")||e.hasAttribute("tabindex")&&!e.getAttribute("tabindex").startsWith("-"))}))},e.getMatchModeMsgs=function(e){return{start:e.LABEL_STARTS_WITH,startignorecase:e.LABEL_STARTS_WITH_IGNORECASE,end:e.LABEL_ENDS_WITH,endignorecase:e.LABEL_ENDS_WITH_IGNORECASE,anywhere:e.LABEL_CONTAINS,anywhereignorecase:e.LABEL_CONTAINS_IGNORECASE,exact:e.LABEL_IS_EQUAL_TO,exactignorecase:e.LABEL_IS_EQUAL_TO_IGNORECASE,notequals:e.LABEL_IS_NOT_EQUAL_TO,notequalsignorecase:e.LABEL_IS_NOT_EQUAL_TO_IGNORECASE,lessthan:e.LABEL_LESS_THAN,lessthanequal:e.LABEL_LESS_THAN_OR_EQUALS_TO,greaterthan:e.LABEL_GREATER_THAN,greaterthanequal:e.LABEL_GREATER_THAN_OR_EQUALS_TO,null:e.LABEL_IS_NULL,isnotnull:e.LABEL_IS_NOT_NULL,empty:e.LABEL_IS_EMPTY,isnotempty:e.LABEL_IS_NOT_EMPTY,nullorempty:e.LABEL_IS_NULL_OR_EMPTY,in:e.LABEL_IN,notin:e.LABEL_NOT_IN,between:e.LABEL_BETWEEN}},e.getMatchModeTypesMap=function(e){return e&&(L.number.push("in","notin","between"),L.date.push("between"),L.string.push("in","notin"),L.character.push("in","notin")),_.forEach(M,(function(e,t){_.forEach(e,(function(e){F[e]=L[t]}))})),F.default=_.union(L.number,L.string,L.character,L.date,L.date),F},e.getObjValueByKey=S,e.getOrderByExpr=function(e){e=e||[];var t=[];return _.forEach(e,(function(e){e.direction&&t.push(e.property+" "+e.direction.toLowerCase())})),_.join(t,",")},e.getOrderedDataset=Qt,e.getRangeFieldValue=xt,e.getRangeMatchMode=kt,e.getRowOperationsColumn=function(){return{field:"rowOperations",type:"custom",displayName:"Actions",width:"120px",readonly:!0,sortable:!1,searchable:!1,resizable:!1,selectable:!1,show:!0,operations:[],opConfig:{},pcDisplay:!0,mobileDisplay:!0,tabletDisplay:!0,include:!0,isRowOperation:!0}},e.getUniqObjsByDataField=function(e,t,n,i){var o,r=t===Ot;return o=r?_.uniqWith(e,_.isEqual):_.uniqBy(e,"key"),!n||i?o:_.filter(o,(function(e){return(r||_.trim(e.key))&&_.trim(e.label)}))},e.getWatchIdentifier=k,e.getWidgetPropsByType=J,e.groupData=function(e,t,n,o,r,a,s,l,c){var p={};if(_.includes(n,"(")){var u=i.$parseEvent(n);p=_.groupBy(t,(function(t){return u(e.viewParent,{row:t.dataObject||t})}))}else p=tn(t,n,o,r,a,s,l,c);return en(p,n,r)},e.handleHeaderClick=function(e){var t=$(e.target).closest(".item-group"),n=t.find("li.list-group-header .app-icon");n.hasClass("wi-chevron-down")?n.removeClass("wi-chevron-down").addClass("wi-chevron-up"):n.removeClass("wi-chevron-up").addClass("wi-chevron-down"),t.find(".group-list-item").toggle()},e.hasLinkToCurrentPage=R,e.interpolateBindExpressions=Tt,e.isActiveNavItem=T,e.isBooleanAttr=pe,e.isDataSetWidget=A,e.isDimensionProp=de,e.isStyle=W,e.parseValueByType=function(e,t,n,o){return n?n===i.FormWidgetType.NUMBER||n===i.FormWidgetType.SLIDER||n===i.FormWidgetType.CURRENCY?isNaN(Number(e))?null:o?e:Number(e):n===i.FormWidgetType.CHECKBOX||n===i.FormWidgetType.TOGGLE?pn(e):e:i.isNumberType(t)?isNaN(Number(e))?null:Number(e):t===i.DataType.BOOLEAN?pn(e):e},e.performDataOperation=function(t,n,o){return new Promise((function(r,a){if(t.execute(i.DataSource.Operation.SUPPORTS_CRUD)){var s=void 0;switch(o.operationType){case e.Live_Operations.UPDATE:s=i.DataSource.Operation.UPDATE_RECORD;break;case e.Live_Operations.INSERT:s=i.DataSource.Operation.INSERT_RECORD;break;case e.Live_Operations.DELETE:s=i.DataSource.Operation.DELETE_RECORD}t.execute(s,n).then((function(e){return function(e,t,n){e.error?n(e):t(e)}(e,r,a)}),a)}else if(t.execute(i.DataSource.Operation.IS_API_AWARE))if("wm.CrudVariable"===t.category){var l="insert"===o.operationType?"create":"delete"===o.operationType?"delete":"update";t.execute(i.DataSource.Operation.INVOKE,{skipNotification:!0,operation:l,inputFields:n}).then(r,a)}else t.execute(i.DataSource.Operation.SET_INPUT,n),t.execute(i.DataSource.Operation.INVOKE,{skipNotification:!0}).then(r,a);else r(n)}))},e.prepareFieldDefs=function(e,t){var n,i={objects:[],terminals:[]};if(e||(e=[]),t||(t={}),t.setBindingField=!0,t.columnCount=0,n=V(e),G(n,i,"",t),!t||t&&!t.filter)return i.terminals;switch(t.filter){case"all":return i;case"objects":return i.objects;case"terminals":return i.terminals}return i},e.propNameCSSKeyMap=U,e.provideAs=D,e.provideAsDialogRef=function(e){return D(e,b)},e.provideAsWidgetRef=N,e.refreshDataSource=function(e,t){return new Promise((function(n,o){e?e.execute(i.DataSource.Operation.LIST_RECORDS,{filterFields:t.filterFields||{},orderBy:t.orderBy,page:t.page||1,logicalOp:t.condition||""}).then(n,o):o()}))},e.register=Z,e.registerFormWidget=function(e,t){var n=Q+e,i=X.get(n);i&&t.forEach((function(e,t){return i.set(t,e)}))},e.setFocusTrap=function(e,t,n){return r.createFocusTrap(e,{onActivate:function(){return e.classList.add("is-active")},onDeactivate:function(){return e.classList.remove("is-active")},allowOutsideClick:t,setReturnFocus:n})},e.setHeaderConfig=cn,e.setHeaderConfigForTable=function(e,t,n,i){n?cn(e,t,n,i):e[i]=t},e.setItemByCompare=function(e,t,n){_.forEach(e,(function(e){if(i.isEqualWithFields(e.value,t,n))return e.selected=!0,!1}))},e.styler=Y,e.toggleAllHeaders=function(e){var t=$(e.nativeElement).find(".item-group");t.find(".group-list-item").toggle();var n=t.find("li.list-group-header .app-icon");n&&_.forEach(n,(function(e){(e=$(e)).hasClass("wi-chevron-down")?e.removeClass("wi-chevron-down").addClass("wi-chevron-up"):e.removeClass("wi-chevron-up").addClass("wi-chevron-down")}))},e.transformData=function(e,t){var n,i,o,r,a,s,l;return e=e||[],_.isArray(e)?_.isString(e[0])&&(i=[],_.forEach(e,(function(e){(n={})[t.split(".").join("-")]=e,i.push(n)})),e=i):(_.isString(e)&&(o=t.substring(t.indexOf(".")+1,t.length).split("."),r=[],a=o.length,l=s={},o.forEach((function(t,n){r.forEach((function(e){l=s[e]})),l[t]=n===a-1?e:{},r.push(t)})),e=s),e=[e]),e},e.transformDataWithKeys=function(e){var t=[];if(_.isObject(e[0])||_.isObject(e)&&!(e instanceof Array)){var n=Object.keys(e[0]||e);_.forEach(n,(function(e,n){t.push({key:e,label:e,value:e,index:n+1})}))}return t},e.transformFormData=function(e,t,n,o,r,a){var s=[];if(t){if(t=Xt(t),_.isUndefined(r)&&(r=1),_.isString(t))(t=t.split(",").map((function(e){return e.trim()}))).forEach((function(t,n){var o={key:t,value:t,label:i.isDefined(t)&&null!==t?t.toString():"",index:r+n};Zt(a,e,o,"value"),s.push(o)}));else if(_.isArray(t)&&!_.isObject(t[0]))t.forEach((function(t,n){var o={key:t,value:t,label:i.isDefined(t)&&null!==t?t.toString():"",index:r+n};Zt(a,e,o,"value"),s.push(o)}));else if(t instanceof Array||!_.isObject(t))n||(n=Ot),t.forEach((function(t,l){var c=n===Ot?r+l:S(t,n);if(!_.isUndefined(c)&&!_.isNull(c)){var p=E(t,{field:o.displayField,expression:o.displayExpr,bindExpression:o.bindDisplayExpr},e),u={key:c,label:i.isDefined(p)&&null!==p?p.toString():"",value:n===Ot?t:c,dataObject:t,index:r+l};(o.displayImgSrc||o.bindDisplayImgSrc)&&(u.imgSrc=E(t,{expression:o.displayImgSrc,bindExpression:o.bindDisplayImgSrc},e)),Zt(a,e,u,"dataObject"),s.push(u)}}));else{_.forEach(t,(function(n,o){var l={key:_.trim(o),value:o,label:i.isDefined(n)&&null!==n?n.toString():"",index:r,dataObject:t};Zt(a,e,l,"value"),s.push(l)}))}return s}},e.unsupportedStatePersistenceTypes=["On-Demand","Scroll"],e.updateDeviceView=function(e,t){void 0===t&&(t=!1);var n=e.querySelector(wn(jt.LEFT_PANEL)),i=e.querySelector(wn(jt.RIGHT_PANEL)),o=e.querySelector(wn(jt.HEADER)),r=o&&o.querySelector("."+jt.SEARCH),a=e.querySelector("."+jt.CONTENT);On(n,a,r,t),n?Sn(n,r):$(o).find(wn(jt.SWIPE_ELEM)).remove(),i&&En(i),r&&Rn(r,n)},e["\u02750"]=Ke,e["\u0275a"]=oe,e["\u0275b"]=Ie,e["\u0275c"]=xe,e["\u0275d"]=Fe,e["\u0275e"]=Ge,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@wm/transpiler"),require("@wm/core"),require("@angular/compiler")):"function"==typeof define&&define.amd?define("@wm/buildTask",["exports","@wm/transpiler","@wm/core","@angular/compiler"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.buildTask={}),e.wm.transpiler,e.wm.core,e.ng.compiler)}(this,(function(e,t,n,i){"use strict";var o=new n.IDGenerator("wm_carousel_ref_"),r=function(e){return e.attrs.find((function(e){return"type"===e.name&&"dynamic"===e.value}))},a=r;t.register("wm-carousel",(function(){return{pre:function(e,n){var i=o.nextUid();return n.set("carousel_ref",i),'<div class="app-carousel carousel"><carousel wmCarousel #'+i+'="wmCarousel" '+t.getAttrMarkup(e)+' interval="0" [ngClass]="'+i+'.navigationClass">'},post:function(){return"</carousel></div>"},template:function(e){if(r(e)){var i=e.attrs.find((function(e){return"dataset"===e.name})),o=e.attrs.find((function(e){return"name"===e.name}));if(!i)return;var a=t.getBoundToExpr(i.value);if(!a)return;n.updateTemplateAttrs(e,a,o.value)}},provide:function(e,t){var n=new Map;return n.set("carousel_ref",t.get("carousel_ref")),n}}}));var s=Object.freeze({__proto__:null,default:function(){},"\u02750":a}),l=1;t.register("wm-carousel-content",(function(){return{pre:function(e){return"<slide wmCarouselTemplate "+t.getAttrMarkup(e)+">"},post:function(){return"</slide>"}}})),t.register("wm-carousel-template",(function(){return{requires:["wm-carousel"],pre:function(e,n,i){var o=i.get("carousel_ref");return'<div *ngIf="!'+o+'.fieldDefs">{{'+o+".nodatamessage}}</div>\n <"+"slide wmCarouselTemplate "+t.getAttrMarkup(e)+' *ngFor="let item of '+o+'.fieldDefs; let i = index;">\n <ng-container [ngTemplateOutlet]="carouselTempRef'+l+'" [ngTemplateOutletContext]="{item:item, index:i}"></ng-container>\n </'+"slide>\n <ng-template #carouselTempRef"+l+++' let-item="item" let-index="index">'},post:function(){return"</ng-template>"}}}));var c=Object.freeze({__proto__:null,default:function(){}});t.register("wm-login",(function(){return{pre:function(e){return"<div wmLogin "+t.getAttrMarkup(e)+' eventsource.bind="Actions.loginAction">'},post:function(){return"</div>"},provide:function(){var e=new Map;return e.set("isLogin",!0),e}}}));var p=Object.freeze({__proto__:null,default:function(){}});t.register("wm-marquee",(function(){return{pre:function(e){return'<marquee onmouseover="this.stop();" onmouseout="this.start();" wmMarquee role="marquee" aria-live="off" '+t.getAttrMarkup(e)+">"},post:function(){return"</marquee>"}}}));var u=Object.freeze({__proto__:null,default:function(){}}),d=new n.IDGenerator("wm_anchor");t.register("wm-anchor",(function(){return{pre:function(e){var n=d.nextUid();return"<a wmAnchor #"+n+'="wmAnchor" role="link" data-identifier="anchor" [attr.aria-label]="'+n+".hint || "+n+'.caption" '+t.getAttrMarkup(e)+">"},post:function(){return"</a>"}}}));var h=Object.freeze({__proto__:null,default:function(){}});t.register("wm-audio",(function(){return{pre:function(e){return"<div wmAudio "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var m=Object.freeze({__proto__:null,default:function(){}}),f=new n.IDGenerator("wm_html");t.register("wm-html",(function(){return{pre:function(e){var n=f.nextUid();return"<div wmHtml #"+n+'="wmHtml" [attr.aria-label]="'+n+".hint || 'HTML content'\" "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var g=Object.freeze({__proto__:null,default:function(){}});t.register("wm-icon",(function(){return{pre:function(e){return'<span wmIcon aria-hidden="true" '+t.getAttrMarkup(e)+">"},post:function(){return"</span>"}}}));var v=Object.freeze({__proto__:null,default:function(){}});t.register("wm-iframe",(function(){return{pre:function(e){return"<div wmIframe "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var y=Object.freeze({__proto__:null,default:function(){}}),b=new n.IDGenerator("wm_label");t.register("wm-label",(function(){return{pre:function(e){var n=b.nextUid();return"<label wmLabel #"+n+'="wmLabel" [attr.aria-label]="'+n+'.hint" '+t.getAttrMarkup(e)+">"},post:function(){return"</label>"}}}));var w=Object.freeze({__proto__:null,default:function(){}}),P=new n.IDGenerator("wm_picture");t.register("wm-picture",(function(){return{pre:function(e){var n=P.nextUid();return"<img wmPicture #"+n+'="wmPicture" alt="image" wmImageCache="'+(e.get("offline")||"true")+'" [attr.aria-label]="'+n+".hint || 'Image'\" "+t.getAttrMarkup(e)+">"}}}));var O=Object.freeze({__proto__:null,default:function(){}}),S=new n.IDGenerator("wm_spinner");t.register("wm-spinner",(function(){return{pre:function(e){var n=S.nextUid();return"<div wmSpinner #"+n+'="wmSpinner" role="alert" [attr.aria-label]="'+n+'.hint || \'Loading...\'" aria-live="assertive" aria-busy="true" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var E=Object.freeze({__proto__:null,default:function(){}}),T=function(e,t){return e.attrs.find((function(e){return e.name===t}))},R=T,A=function(e,t){var n=T(e,t);if(n)return n.value},C=A,I=function(e){return new RegExp("bind:("+e+"|"+e+"\\[\\$i])\\.","g")},D=I;t.register("wm-progress-bar",(function(){return{template:function(e){var n=A(e,"dataset"),i=t.getBoundToExpr(n);if(i){var o=A(e,"type"),r=A(e,"datavalue"),a=I(i);o&&o.includes(i)&&(o=o.replace(a,""),T(e,"type").value=o),r&&r.includes(i)&&(r=r.replace(a,""),T(e,"datavalue").value=r)}},pre:function(e){return"<div wmProgressBar "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var N=Object.freeze({__proto__:null,default:function(){},"\u02750":R,"\u02751":C,"\u02752":D});t.register("wm-progress-circle",(function(){return{pre:function(e){return"<div wmProgressCircle "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var x=Object.freeze({__proto__:null,default:function(){}}),k=new n.IDGenerator("wm_richtexteditor");t.register("wm-richtexteditor",(function(){return{pre:function(e){var n=k.nextUid();return"<div wmRichTextEditor #"+n+'="wmRichTextEditor" role="textbox" [attr.aria-label]="'+n+".hint || 'Richtext editor'\" "+t.getFormMarkupAttr(e)+">"},post:function(){return"</div>"}}}));var M=Object.freeze({__proto__:null,default:function(){}});t.register("wm-search",(function(){return{pre:function(e){return"<div wmSearch "+t.getFormMarkupAttr(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</div>"}}}));var L=Object.freeze({__proto__:null,default:function(){}});t.register("wm-tree",(function(){return{pre:function(e){return'<ul wmTree class="ztree" '+t.getAttrMarkup(e)+">"},post:function(){return"</ul>"}}}));var F=Object.freeze({__proto__:null});t.register("wm-card",(function(){return{pre:function(e){return"<div wmCard "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var j=Object.freeze({__proto__:null,default:function(){}});t.register("wm-card-content",(function(){return{pre:function(e){return"<div wmCardContent partialContainer "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var B=Object.freeze({__proto__:null,default:function(){}});t.register("wm-card-actions",(function(){return{pre:function(e){return"<div wmCardActions "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var G=Object.freeze({__proto__:null,default:function(){}});t.register("wm-card-footer",(function(){return{pre:function(e){return"<div wmCardFooter "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var V=Object.freeze({__proto__:null,default:function(){}});t.register("wm-chart",(function(){return{pre:function(e){return'<div wmChart redrawable aria-label="'+e.get("type")+' Chart" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var $=Object.freeze({__proto__:null,default:function(){}}),U=new n.IDGenerator("wm_accordion_ref_"),W=function(e){return e.attrs.find((function(e){return"type"===e.name&&"dynamic"===e.value}))},q=W;t.register("wm-accordion",(function(){return{pre:function(e,n){var i=U.nextUid();return n.set("accordion_ref",i),"<div wmAccordion #"+i+'="wmAccordion" role="tablist" aria-multiselectable="true" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"},template:function(e,i){if(W(e)){var o=e.attrs.find((function(e){return"dataset"===e.name})),r=e.attrs.find((function(e){return"name"===e.name}));if(!o)return;var a=t.getBoundToExpr(o.value);if(!a)return;n.updateTemplateAttrs(e,a,r.value)}},provide:function(e,t){var n=new Map;return n.set("accordion_ref",t.get("accordion_ref")),n}}}));var z=Object.freeze({__proto__:null,default:function(){},"\u02750":q}),H=new n.IDGenerator("wm_accordionpane");t.register("wm-accordionpane",(function(){return{pre:function(e){var n=H.nextUid();return"<div #"+n+'="wmAccordionPane" [attr.aria-expanded]="'+n+'.isActive" wmAccordionPane partialContainer wm-navigable-element="true" role="tab" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var Y=Object.freeze({__proto__:null,default:function(){}});t.register("wm-container",(function(){return{pre:function(e){return'<div wmContainer partialContainer wmSmoothscroll="'+(e.get("smoothscroll")||"false")+'" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var K=Object.freeze({__proto__:null,default:function(){}});t.register("wm-gridcolumn",(function(){return{pre:function(e){return"<div wmLayoutGridColumn "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var Q=Object.freeze({__proto__:null,default:function(){}});t.register("wm-gridrow",(function(){return{pre:function(e){return"<div wmLayoutGridRow "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var X=Object.freeze({__proto__:null,default:function(){}});t.register("wm-layoutgrid",(function(){return{pre:function(e){return"<div wmLayoutGrid "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var J=Object.freeze({__proto__:null,default:function(){}}),Z=new n.IDGenerator("wm_panel");t.register("wm-panel",(function(){return{pre:function(e){return"<div wmPanel #"+Z.nextUid()+'="wmPanel" partialContainer wm-navigable-element="true" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}})),t.register("wm-panel-footer",(function(){return{pre:function(e){return"<div wmPanelFooter "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var ee=Object.freeze({__proto__:null,default:function(){}});t.register("wm-segmented-control",(function(){return{pre:function(e){return"<div wmSegmentedControl "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var te=Object.freeze({__proto__:null,default:function(){}});t.register("wm-segment-content",(function(){return{pre:function(e){return"<li wmSegmentContent partialContainer wmSmoothscroll="+(e.get("smoothscroll")||"false")+' wm-navigable-element="true" '+t.getAttrMarkup(e)+">"},post:function(){return"</li>"}}}));var ne=Object.freeze({__proto__:null,default:function(){}}),ie=1;t.register("wm-repeat-template",(function(){return{requires:["wm-accordion","wm-tabs"],pre:function(e,n,i,o){var r=i&&i.get("accordion_ref")||o&&o.get("tabs_ref");if(r)return'<div *ngIf="'+r+".fieldDefs && !"+r+'.fieldDefs.length">{{'+r+".nodatamessage}}</div>\n <div wmRepeatTemplate "+t.getAttrMarkup(e)+' *ngFor="let item of '+r+'.fieldDefs; let i = index;">\n <ng-container [ngTemplateOutlet]="widgetRef'+ie+'" [ngTemplateOutletContext]="{item:item, index:i}"></ng-container>\n </div>\n <ng-template #widgetRef'+ie+++' let-item="item" let-index="index">'},post:function(){return"</ng-template>"}}}));var oe=Object.freeze({__proto__:null,default:function(){}}),re=new n.IDGenerator("wm_tabs_ref_"),ae=function(e){return e.attrs.find((function(e){return"type"===e.name&&"dynamic"===e.value}))},se=ae;t.register("wm-tabs",(function(){return{pre:function(e,n){var i=re.nextUid();return n.set("tabs_ref",i),"<div wmTabs #"+i+'="wmTabs" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"},template:function(e,i){if(ae(e)){var o=e.attrs.find((function(e){return"dataset"===e.name})),r=e.attrs.find((function(e){return"name"===e.name}));if(!o)return;var a=t.getBoundToExpr(o.value);if(!a)return;n.updateTemplateAttrs(e,a,r.value)}},provide:function(e,t){var n=new Map;return n.set("tabs_ref",t.get("tabs_ref")),n}}}));var le=Object.freeze({__proto__:null,default:function(){},"\u02750":se});t.register("wm-tabpane",(function(){return{pre:function(e){return"<div wmTabPane partialContainer "+t.getAttrMarkup(e)+' wm-navigable-element="true" role="tabpanel">'},post:function(){return"</div>"}}}));var ce=Object.freeze({__proto__:null,default:function(){}});t.register("wm-tile",(function(){return{pre:function(e){return'<div wmTile aria-describedby="Tile" wm-navigable-element="true" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var pe=Object.freeze({__proto__:null,default:function(){}});t.register("wm-wizard",(function(){return{pre:function(e){return'<div wmWizard role="tablist" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var ue=Object.freeze({__proto__:null,default:function(){}}),de=new n.IDGenerator("wizard_step_id_");t.register("wm-wizardstep",(function(){return{pre:function(e){var n=de.nextUid();return"<form wmWizardStep #"+n+'="wmWizardStep" '+t.getAttrMarkup(e)+'>\n <ng-template [ngIf]="'+n+'.isInitialized">'},post:function(){return"</ng-template></form>"}}}));var he=Object.freeze({__proto__:null,default:function(){}}),me=new n.IDGenerator("wm_barcodescanner");t.register("wm-barcodescanner",(function(){return{pre:function(e){var n=me.nextUid();return"<button wmBarcodescanner #"+n+'="wmBarcodescanner" [attr.aria-label]="'+n+".hint || 'Barcode scanner'\" "+t.getAttrMarkup(e)+">"},post:function(){return"</button>"}}}));var fe=Object.freeze({__proto__:null,default:function(){}}),ge=new n.IDGenerator("wm_camera");t.register("wm-camera",(function(){return{pre:function(e){var n=ge.nextUid();return"<button type='button' wmCamera #"+n+'="wmCamera" [attr.aria-label]="'+n+".hint || 'Camera'\" "+t.getAttrMarkup(e)+">"},post:function(){return"</button>"}}}));var ve=Object.freeze({__proto__:null,default:function(){}});t.register("wm-alertdialog",(function(){return{pre:function(e){return'<div wmAlertDialog role="alertdialog" wm-navigable-element="true" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var ye=Object.freeze({__proto__:null,default:function(){}});t.register("wm-confirmdialog",(function(){return{pre:function(e){return'<div wmConfirmDialog wm-navigable-element="true" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var be=Object.freeze({__proto__:null,default:function(){}});t.register("wm-dialogactions",(function(){return{pre:function(e){return'<ng-template #dialogFooter><div wmDialogFooter data-identfier="actions" '+t.getAttrMarkup(e)+">"},post:function(){return"</div></ng-template>"}}}));var we=Object.freeze({__proto__:null,default:function(){}});t.register("wm-dialog",(function(){return{pre:function(e){return"<div wmDialog "+t.getAttrMarkup(e)+' aria-modal="true" role="dialog" wm-navigable-element="true"><ng-template #dialogBody>'},post:function(){return"</ng-template></div>"}}})),t.register("wm-view",(function(){return{pre:function(e){return""},post:function(){return""}}}));var Pe=Object.freeze({__proto__:null,default:function(){}});t.register("wm-iframedialog",(function(){return{pre:function(e){return'<div wmIframeDialog wm-navigable-element="true" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var _e=Object.freeze({__proto__:null,default:function(){}});t.register("wm-logindialog",(function(){return{pre:function(e){return"<div wmDialog wmLoginDialog "+t.getAttrMarkup(e)+' eventsource.bind="Actions.loginAction" wm-navigable-element="true"><ng-template #dialogBody>'},post:function(){return"</ng-template></div>"}}}));var Oe=Object.freeze({__proto__:null,default:function(){}});t.register("wm-pagedialog",(function(){return{pre:function(e,n){var i=e.get("content");e.delete("content");var o=e.get("content.bind");e.delete("content.bind");var r=e.get("load.event");e.delete("load.event");var a="",s="";r&&(a='load.event="'+r+'"'),o?s='content.bind="'+o+'"':i&&(s='content="'+i+'"');var l="";return s&&(n.set("hasPartialContent",!0),l+="<ng-template><div wmContainer #partial partialContainer "+s+' width="100%" height="100%" '+a+">"),"<div wmPartialDialog "+t.getAttrMarkup(e)+">"+l},post:function(e,t){var n="";return t.get("hasPartialContent")&&(n="</div></ng-template>"),n+"</div>"}}}));var Se=Object.freeze({__proto__:null,default:function(){}}),Ee="quickedit",Te="form",Re="dialog",Ae={integer:["number","text","select","checkboxset","radioset","rating","slider","currency","autocomplete","chips"],big_integer:["number","text","select","checkboxset","radioset","rating","slider","currency","autocomplete","chips"],short:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],float:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],big_decimal:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],number:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],double:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],long:["number","text","select","checkboxset","radioset","rating","slider","currency","autocomplete","chips"],byte:["number","text","select","checkboxset","radioset","slider","currency","autocomplete","chips"],string:["text","number","textarea","password","richtext","select","checkboxset","radioset","date","time","timestamp","switch","currency","autocomplete","chips","colorpicker"],character:["text","number","textarea","password","richtext","select","checkboxset","radioset","switch","currency","autocomplete","chips"],text:["text","number","textarea","password","richtext","select","checkboxset","radioset","date","time","timestamp","switch","currency","autocomplete","chips","colorpicker"],date:["date","text","number","select","checkboxset","radioset","autocomplete","chips"],time:["time","text","number","select","checkboxset","radioset","autocomplete","chips"],timestamp:["timestamp","text","number","select","checkboxset","radioset","autocomplete","chips"],datetime:["datetime","text","select","checkboxset","radioset","autocomplete","chips"],boolean:["checkbox","radioset","toggle","select"],list:["select","radioset","checkboxset","switch","autocomplete","chips"],clob:["text","textarea","richtext"],blob:["upload"],file:["upload"],custom:["text","number","textarea","password","checkbox","toggle","slider","richtext","currency","switch","select","checkboxset","radioset","date","time","timestamp","rating","datetime","autocomplete","chips","colorpicker"]},Ce=new Set([n.FormWidgetType.SELECT,n.FormWidgetType.CHECKBOXSET,n.FormWidgetType.RADIOSET,n.FormWidgetType.SWITCH,n.FormWidgetType.AUTOCOMPLETE,n.FormWidgetType.CHIPS,n.FormWidgetType.TYPEAHEAD,n.FormWidgetType.RATING]),Ie=function(e){var t=Ae[e]&&Ae[e][0];return e===n.DataType.BOOLEAN&&(t=n.FormWidgetType.SELECT),[n.FormWidgetType.TEXT,n.FormWidgetType.NUMBER,n.FormWidgetType.SELECT,n.FormWidgetType.AUTOCOMPLETE,n.FormWidgetType.DATE,n.FormWidgetType.TIME,n.FormWidgetType.DATETIME].includes(t)?t:n.FormWidgetType.TEXT},De=new n.IDGenerator("formfield_"),Ne=function(e){var n=new Map;return e.has("focus.event")||e.set("focus.event",""),e.has("blur.event")||e.set("blur.event",""),e.forEach((function(t,i){i.endsWith(".event")&&("focus.event"===i?t="_onFocusField($event);"+t:"blur.event"===i&&(t="_onBlurField($event);"+t),n.set(i,t),e.delete(i))})),t.getFormMarkupAttr(n)},xe=Ne,ke=new Map([[n.FormWidgetType.SELECT,["Select Min value","Select Max value","Select value"]],[n.FormWidgetType.DATETIME,["Select Min date time","Select Max date time","Select date time"]],[n.FormWidgetType.TIME,["Select Min time","Select Max time","Select time"]],[n.FormWidgetType.DATE,["Select Min date","Select Max date","Select date"]],[n.FormWidgetType.TEXTAREA,["","","Enter value"]],[n.FormWidgetType.RICHTEXT,["","","Enter value"]],[n.FormWidgetType.COLORPICKER,["Select Color","Select Color","Select Color"]],[n.FormWidgetType.CHIPS,["","","Type here..."]],[n.FormWidgetType.PASSWORD,["Enter Min value","Enter Max value","Enter value"]],[n.FormWidgetType.NUMBER,["Enter Min value","Enter Max value","Enter value"]],[n.FormWidgetType.TEXT,["Enter Min value","Enter Max value","Enter value"]],[n.FormWidgetType.CURRENCY,["Enter Min value","Enter Max value","Enter value"]],[n.FormWidgetType.AUTOCOMPLETE,["","","Search"]]]),Me=function(e,t,n){var i=1===n?"maxplaceholder":"placeholder",o=e.get(i);o||""===o||(o=ke.get(t)&&ke.get(t)[n])&&e.set(i,o)},Le=Me,Fe=function(e,t){var i=e.get("name"),o=(e.get("key")||i||"").trim(),r=t.isMaxWidget?'formControlName="'+o+'_max"':t.isInList?'[formControlName]="'+t.counter+'._fieldName"':'formControlName="'+o+'"',a=t.isMaxWidget?"#formWidgetMax":"#formWidget",s=i?t.isMaxWidget?'name="'+i+'_formWidgetMax"':'name="'+i+'_formWidget"':"",l='[ngClass]="'+e.get("ngclass")+'"',c='[class.hidden]="!'+t.pCounter+".isUpdateMode && "+t.counter+".viewmodewidget !== 'default'\" "+r+" "+t.eventsTmpl+" "+l+" "+a+" "+s;return n.getFormWidgetTemplate(t.widgetType,c,e,{counter:t.counter,pCounter:t.pCounter})},je=Fe,Be=function(e,t,i,o,r,a){if(!("true"===e.get("is-range")))return Fe(e,{widgetType:t,eventsTmpl:i,counter:o,pCounter:r,isInList:a});var s=n.isMobileApp()?"col-xs-6":"col-sm-6";return'<div class="'+s+'">'+Fe(e,{widgetType:t,eventsTmpl:i,counter:o,pCounter:r})+'</div>\n <div class="'+s+'">'+Fe(e,{widgetType:t,eventsTmpl:i,counter:o,pCounter:r,isMaxWidget:!0})+"</div>"},Ge=Be,Ve=function(e,t,i){if("true"===e.get("is-related"))return i+".getDisplayExpr()";if(t===n.FormWidgetType.PASSWORD)return"'********'";var o,r=i+".value";return t===n.FormWidgetType.DATETIME||t===n.FormWidgetType.TIMESTAMP?r+=" | toDate:"+i+".formWidget.datepattern || 'yyyy-MM-dd hh:mm:ss a'":t===n.FormWidgetType.TIME?r+=" | toDate:"+i+".formWidget.timepattern || 'hh:mm a'":t===n.FormWidgetType.DATE?r+=" | toDate:"+i+".formWidget.datepattern || 'yyyy-MMM-dd'":t===n.FormWidgetType.RATING||t===n.FormWidgetType.UPLOAD?"":(o=t,Ce.has(o)&&"All Fields"===e.get("datafield")?i+".getDisplayExpr()":i+".getCaption()")},$e=Ve,Ue=function(e){return{requires:["wm-form","wm-liveform","wm-livefilter","wm-list"],pre:function(i,o,r,a,s,l){var c=De.nextUid(),p=r||a||s,u=p&&p.get("form_reference")||"form",d=i.get("widget")||n.FormWidgetType.TEXT,h=e?"form-field":"filter-field",m="wmform-field-error-"+n.generateGUId(),f=e?'<p *ngIf="'+c+"._control?.invalid && "+c+"._control?.touched && "+u+'.isUpdateMode"\n class="help-block text-danger" aria-hidden="false" role="alert"\n aria-live="assertive" [attr.aria-label]="'+c+'.validationmessage" id="'+m+'"><span aria-hidden="true" [textContent]="'+c+'.validationmessage"></span></p>':"",g=d===n.FormWidgetType.UPLOAD?"":Ne(i),v=n.isMobileApp()?"col-xs-12":"col-sm-12",y=u===(l&&l.get("parent_form_reference"));return i.set("__validationId",m),i.set("__widgetType",d),i.delete("widget"),o.set("counter",c),"true"===i.get("is-range")?(Me(i,d,0),Me(i,d,1)):Me(i,d,2),'<div data-role="'+h+'" [formGroup]="'+u+'.ngform" wmFormField captionPosition #'+c+'="wmFormField" widgettype="'+d+'" '+t.getFormMarkupAttr(i)+'>\n <div class="live-field form-group app-composite-widget clearfix caption-{{'+u+'.captionposition}}" widget="'+d+'">\n <label [hidden]="!'+c+'.displayname" class="app-label control-label formfield-label {{'+u+'._captionClass}}"\n [ngStyle]="{width: '+u+".captionsize}\" [ngClass]=\"{'text-danger': "+c+"._control?.invalid && "+c+"._control?.touched && "+u+".isUpdateMode,\n required: "+u+".isUpdateMode && "+c+'.required}" [textContent]="'+c+'.displayname"> </label>\n <div [ngClass]="'+c+".displayname ? "+u+"._widgetClass : '"+v+'\'">\n <label class="form-control-static app-label"\n [hidden]="'+u+".isUpdateMode || "+c+".viewmodewidget === 'default' || "+c+".widgettype === 'upload'\" [innerHTML]=\""+Ve(i,d,c)+'"></label>\n '+Be(i,d,g,c,u,y)+'\n <span aria-hidden="true" *ngIf="'+c+'.showPendingSpinner" class="form-field-spinner fa fa-circle-o-notch fa-spin form-control-feedback"></span>\n <p *ngIf="!('+c+"._control?.invalid && "+c+"._control?.touched) && "+u+'.isUpdateMode"\n class="help-block" aria-hidden="true" role="alert" aria-live="polite" [textContent]="'+c+'.hint"></p>\n '+f+"\n </div>\n </div>"},post:function(){return"</div>"},provide:function(e,t){var n=new Map;return n.set("form_reference",t.get("counter")),n},imports:function(e){var t=n.getRequiredFormWidget(e.get("__widgetType")||e.get("type"));return e.delete("__widgetType"),[t,"wm-form"]}}},We=Ue;t.register("wm-form-field",Ue.bind(this,!0)),t.register("wm-filter-field",Ue.bind(this,!1));var qe=Object.freeze({__proto__:null,default:function(){},"\u02750":xe,"\u02751":Le,"\u02752":je,"\u02753":Ge,"\u02754":$e,"\u02755":We}),ze=function(e){return{pre:function(n){return'<div wmFormAction name="'+(n.get("name")||n.get("key"))+'" '+t.getAttrMarkup(n)+" "+e+">"},post:function(){return"</div>"}}},He=ze;t.register("wm-form-action",ze.bind(this,"")),t.register("wm-filter-action",ze.bind(this,' update-mode="true" '));var Ye,Ke=Object.freeze({__proto__:null,default:function(){},"\u02750":He}),Qe=new n.IDGenerator("form_"),Xe=new Set(["wm-text","wm-textarea","wm-checkbox","wm-slider","wm-richtexteditor","wm-currency","wm-switch","wm-select","wm-checkboxset","wm-radioset","wm-date","wm-time","wm-timestamp","wm-upload","wm-rating","wm-datetime","wm-search","wm-chips","wm-colorpicker","wm-table"]),Je=function(e){void 0===e&&(e=[]),e.forEach((function(e){if("wm-form-field"===e.name&&Ye++,Xe.has(e.name)){var t=e.attrs.find((function(e){return"key"===e.name||"name"===e.name}));if(!(t=t&&t.value)){var n=e.attrs.find((function(e){return"datavalue"===e.name}));if(n&&n.value){(n=n.value.match(/\((.*)\)/))&&n.length>1&&(t=n[1].replace(/["']/g,""))}}e.attrs.push(new i.Attribute("formControlName",t,1,1,1,void 0,void 0)),e.attrs.push(new i.Attribute("wmFormWidget","",1,1,1,void 0,void 0))}Je(e.children)}))},Ze=Je,et=function(e){if(e.get("formdata.bind")){var n=t.getDataSource(e.get("formdata.bind"));n&&e.set("formdatasource.bind",n)}},tt=et,nt=function(e){return void 0===e&&(e=""),{requires:["wm-livetable","wm-login"],template:function(e){Ye=0,Je(e.children)},pre:function(n,i,o,r){var a,s,l=r&&r.get("isLogin")?"app-login":"",c=Qe.nextUid(),p=n.get("dependson")?'dependson="'+n.get("dependson")+'"':"",u="page"===n.get("formlayout")?"app-device-liveform panel liveform-inline":"";n.delete("dependson");var d='<form wmForm data-role="'+l+'" '+e+" #"+c+' ngNativeValidate [formGroup]="'+c+'.ngform" [noValidate]="'+c+".validationtype !== 'html'\"\n class=\""+u+'" [class]="'+c+'.captionAlignClass" [autocomplete]="'+c+".autocomplete ? 'on' : 'off'\" captionposition="+n.get("captionposition");if(n.set("numberOfFields",""+Ye),i.set("counter",c),et(n),"dialog"===n.get("formlayout")){s=o?o.get("liveform_dialog_id"):"liveform_dialog_id_"+c,n.set("dialogId",s);var h=new Map;return["title","title.bind","iconclass","iconclass.bind","width"].forEach((function(e){n.get(e)&&h.set(e,n.get(e))})),n.set("width","100%"),a=t.getAttrMarkup(n),'<div data-identifier="liveform" init-widget class="app-liveform liveform-dialog" '+p+' dialogid="'+s+'">\n <div wmDialog class="app-liveform-dialog" name="'+s+'" role="form" '+t.getAttrMarkup(h)+' modal="true">\n <ng-template #dialogBody>\n '+d+" "+a+">"}var m="",f="";if("page"===n.get("formlayout")){var g="device_liveform_header_"+c,v=new Map;v.set("title",n.get("title")),v.set("backbtnclick.event",n.get("backbtnclick.event")),f='<ng-template #buttonRef let-btn="btn">\n <button wmButton name="{{btn.key}}" class="navbar-btn btn-primary btn-transparent" iconclass.bind="btn.iconclass" show.bind="btn.show"\n (click)="'+c+'.invokeActionEvent($event, btn.action)" type.bind="btn.type" hint.bind="btn.title" shortcutkey.bind="btn.shortcutkey" disabled.bind="btn.disabled"\n tabindex.bind="btn.tabindex" [class.hidden]="btn.updateMode ? !'+c+".isUpdateMode : "+c+'.isUpdateMode"></button>\n </ng-template>',m='<header wmMobileNavbar name="'+g+'" '+t.getAttrMarkup(v)+'>\n <ng-container *ngFor="let btn of '+c+'.buttonArray" [ngTemplateOutlet]="buttonRef" [ngTemplateOutletContext]="{btn:btn}">\n </ng-container>\n </header>\n <div class="form-elements panel-body" >'}return d+" "+(a=t.getAttrMarkup(n))+" "+p+">\n "+f+" "+m},post:function(e){return"dialog"===e.get("formlayout")?"</form></ng-template></div></div>":"page"===e.get("formlayout")?"</div></form>":"</form>"},provide:function(e,t){var n=new Map;return n.set("form_reference",t.get("counter")),n}}},it=nt;t.register("wm-form",nt),t.register("wm-liveform",(function(){return nt("wmLiveForm")})),t.register("wm-livefilter",(function(){return nt("wmLiveFilter")}));var ot=Object.freeze({__proto__:null,default:function(){},"\u02750":Ze,"\u02751":tt,"\u02752":it});t.register("wm-calendar",(function(){return{pre:function(e){return'<div wmCalendar redrawable style="width:100%" aria-label="'+(e.get("view")?e.get("view")+" view":"month view")+'" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var rt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-chips",(function(){return{pre:function(e){return'<ul wmChips role="listbox" '+t.getAttrMarkup(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</ul>"}}}));var at=Object.freeze({__proto__:null,default:function(){}});t.register("wm-colorpicker",(function(){return{pre:function(e){return"<div wmColorPicker "+t.getAttrMarkup(e)+' role="input" '+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</div>"}}}));var st=Object.freeze({__proto__:null,default:function(){}});t.register("wm-currency",(function(){return{pre:function(e){return"<div wmCurrency "+t.getAttrMarkup(e)+' role="input" '+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</div>"}}}));var lt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-buttongroup",(function(){return{pre:function(e){return'<div wmButtonGroup role="group" aria-labelledby="button group" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var ct=Object.freeze({__proto__:null,default:function(){}}),pt=new n.IDGenerator("wm_button");t.register("wm-button",(function(){return{pre:function(e){var n=pt.nextUid();return"<button wmButton #"+n+'="wmButton" [attr.aria-label]="'+n+".hint || "+n+'.caption" '+t.getAttrMarkup(e)+">"},post:function(){return"</button>"}}}));var ut=Object.freeze({__proto__:null,default:function(){}});t.register("wm-checkbox",(function(){return{pre:function(e){return"<div wmCheckbox "+t.getFormMarkupAttr(e)+" "+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</div>"}}}));var dt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-checkboxset",(function(){return{pre:function(e){return'<ul role="group" wmCheckboxset '+t.getFormMarkupAttr(e)+" "+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</ul>"}}}));var ht=Object.freeze({__proto__:null,default:function(){}});t.register("wm-composite",(function(){return{pre:function(e){return"<div wmComposite captionPosition "+t.setChildAttrs(e)+" "+t.getAttrMarkup(e)+">"},post:function(){return"</div"+t.clearChildAttrs()+">"}}}));var mt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-number",(function(){return{pre:function(e){return"<div wmNumber "+t.getFormMarkupAttr(e)+" "+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</div>"}}}));var ft=Object.freeze({__proto__:null,default:function(){}});t.register("wm-radioset",(function(){return{pre:function(e){return'<ul role="radiogroup" wmRadioset '+t.getFormMarkupAttr(e)+" "+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</ul>"}}}));var gt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-select",(function(){return{pre:function(e){return"<wm-select "+t.getFormMarkupAttr(e)+" "+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</wm-select>"}}}));var vt=Object.freeze({__proto__:null,default:function(){}}),yt=new n.IDGenerator("wm_switch");t.register("wm-switch",(function(){return{pre:function(e){var i=yt.nextUid();return"<div wmSwitch #"+i+'="wmSwitch" [attr.aria-label]="'+i+".hint || 'Switch button'\" "+t.getFormMarkupAttr(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</div>"}}}));var bt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-text",(function(){return{pre:function(e){return"<wm-input "+t.getFormMarkupAttr(e)+" "+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</wm-input>"}}}));var wt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-textarea",(function(){return{pre:function(e){return"<wm-textarea "+t.getFormMarkupAttr(e)+" "+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</wm-textarea>"}}}));var Pt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-datetime",(function(){return{pre:function(e){return"<div wmDateTime "+t.getFormMarkupAttr(e)+" "+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</div>"}}}));var _t=Object.freeze({__proto__:null,default:function(){}});t.register("wm-date",(function(){return{pre:function(e){return"<div wmDate "+t.getFormMarkupAttr(e)+" "+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</div>"}}}));var Ot=Object.freeze({__proto__:null,default:function(){}});t.register("wm-time",(function(){return{pre:function(e){return"<div wmTime "+t.getFormMarkupAttr(e)+" "+t.getChildAttrs(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</div>"}}}));var St=Object.freeze({__proto__:null,default:function(){}});t.register("wm-fileupload",(function(){return{pre:function(e){if(e.get("select.event")){var n=t.getDataSource(e.get("select.event"));e.set("datasource.bind",n)}return"<div wmFileUpload "+t.getAttrMarkup(e)+' role="input">'},post:function(){return"</div>"}}}));var Et=Object.freeze({__proto__:null,default:function(){}});t.register("wm-rating",(function(){return{pre:function(e){return"<div wmRating "+t.getFormMarkupAttr(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</div>"}}}));var Tt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-slider",(function(){return{pre:function(e){return"<div wmSlider "+t.getAttrMarkup(e)+" "+n.getNgModelAttr(e)+">"},post:function(){return"</div>"}}}));var Rt=Object.freeze({__proto__:null,default:function(){}});function At(e,t,n,o){var r=e.attrs.find((function(e){return e.name===t}));r&&n.attrs.push(new i.Attribute(o,r.value,r.sourceSpan,r.keySpan,r.valueSpan,void 0,void 0))}t.register("wm-media-list",(function(){return{template:function(e){var t,n=e.attrs.find((function(e){return"dataset"===e.name})),o=function(e){void 0===e&&(e=[]),e.forEach((function(e){e.name&&"wm-list"!==e.name&&(e.attrs.forEach((function(e){e.value.startsWith("bind:"+t+".data[$i]")?e.value=e.value.replace(t+".data[$i]","item"):e.value.startsWith("bind:"+t)&&(e.value=e.value.replace(t,"item"))})),o(e.children))}))};n&&n.value.startsWith("bind:")&&(t=n.value.replace("bind:","")),t&&o(e.children);var r=e.children.find((function(e){return e instanceof i.Element&&"wm-media-template"===e.name}));null!=r&&(At(r,"width",e,"thumbnailwidth"),At(r,"height",e,"thumbnailheight"))},pre:function(e){return"<div wmMediaList "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var Ct=Object.freeze({__proto__:null,default:function(){}});t.register("wm-media-template",(function(){return{pre:function(){return'<ng-template #mediaListTemplate let-item="item" let-index="index">'},post:function(){return"</ng-template>"}}}));var It=Object.freeze({__proto__:null,default:function(){}});t.register("wm-list",(function(){return{requires:["wm-form","wm-liveform"],template:function(e){var i=e.attrs.find((function(e){return"dataset"===e.name})),o=e.attrs.find((function(e){return"name"===e.name}));if(i){var r=t.getBoundToExpr(i.value);r&&n.updateTemplateAttrs(e,r,o.value,"itemRef.")}},pre:function(e,n,i,o){var r=i||o;return n.set("form_reference",r&&r.get("form_reference")),"<div wmList wmLiveActions "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"},provide:function(e,t){var n=new Map;return n.set("parent_form_reference",t.get("form_reference")),n}}})),t.register("wm-listtemplate",(function(){return{pre:function(){return'<ng-template #listTemplate let-item="item" let-$index="$index" let-itemRef="itemRef" let-$first="$first" let-$last="$last" let-currentItemWidgets="currentItemWidgets" >'},post:function(){return"</ng-template>"}}})),t.register("wm-list-action-template",(function(){return{template:function(e){e.attrs.find((function(e){return"position"===e.name})).value;e.children.filter((function(e){return e instanceof i.Element&&"wm-button"===e.name})).forEach((function(t){var n,o,r,a;n="position",o=t,r="swipe-position",(a=e.attrs.find((function(e){return e.name===n})))&&o.attrs.push(new i.Attribute(r,a.value,a.sourceSpan,a.keySpan,a.valueSpan,void 0,void 0))}))},pre:function(e,n){return"left"===e.get("position")?'<ng-template #listLeftActionTemplate>\n <li class="app-list-item-action-panel app-list-item-left-action-panel actionMenu" '+t.getAttrMarkup(e)+">":"right"===e.get("position")?'<ng-template #listRightActionTemplate>\n <li class="app-list-item-action-panel app-list-item-right-action-panel actionMenu" '+t.getAttrMarkup(e)+">":void 0},post:function(){return"</li></ng-template>"}}}));var Dt=Object.freeze({__proto__:null,default:function(){}}),Nt=new n.IDGenerator("liveform_dialog_id_");t.register("wm-livetable",(function(){return{pre:function(e,n){var i=Nt.nextUid();return n.set("counter",i),"<div wmLiveTable "+t.getAttrMarkup(e)+' dialogid="'+i+'">'},post:function(){return"</div>"},provide:function(e,t){var n=new Map;return n.set("liveform_dialog_id",t.get("counter")),n}}}));var xt=Object.freeze({__proto__:null,default:function(){}}),kt=new n.IDGenerator("wm_message");t.register("wm-message",(function(){return{pre:function(e){return'<p wmMessage tabindex="0" #'+kt.nextUid()+'="wmMessage" '+t.getAttrMarkup(e)+">"},post:function(){return"</p>"}}}));var Mt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-breadcrumb",(function(){return{pre:function(e){return"<ol wmBreadcrumb "+t.getAttrMarkup(e)+">"},post:function(){return"</ol>"}}}));var Lt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-menu",(function(){return{pre:function(e){return"<div wmMenu dropdown "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var Ft=Object.freeze({__proto__:null,default:function(){}});t.register("wm-nav-item",(function(){return{pre:function(e){return'<li wmNavItem role="listitem" '+t.getAttrMarkup(e)+">"},post:function(){return"</li>"}}}));var jt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-nav",(function(){return{pre:function(e){return'<ul wmNav data-element-type="wmNav" data-role="page-header" role="list" '+t.getAttrMarkup(e)+">"},post:function(){return"</ul>"}}}));var Bt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-navbar",(function(){return{pre:function(e){return'<nav wmNavbar data-element-type="wmNavbar" role="navigation" '+t.getAttrMarkup(e)+">"},post:function(){return"</nav>"}}}));var Gt=Object.freeze({__proto__:null,default:function(){}});t.register("wm-popover",(function(){return{requires:["wm-table"],pre:function(e,n,i){var o;if("inline"!==e.get("contentsource")){var r=e.get("content"),a=e.get("content.bind"),s="";r?s='content="'+r+'"':a&&(s='content.bind="'+a+'"'),o="<div wmContainer #partial partialContainer "+s+">",n.set("hasPopoverContent",!0)}var l="<wm-popover wmPopover "+t.getAttrMarkup(e)+">";return l+="<ng-template "+(i?'let-row="row"':"")+'><div tabindex="0" class="popover-start sr-only" aria-label="">popover content start</div>',o&&(l+=""+(o||"")),l},post:function(e,t){var n="";return t.get("hasPopoverContent")&&(n+="</div>"),n+'<div tabindex="0" class="popover-end sr-only" aria-label="">popover content ended</div></ng-template></'+"wm-popover>"}}}));var Vt=Object.freeze({__proto__:null,default:function(){}}),$t=function(e,t){return e&&e.children.find((function(e){return e instanceof i.Element&&e.name===t}))},Ut=$t,Wt=function(e){return new i.Element(e,[],[],Qt,Qt,Qt)},qt=Wt,zt=function(e,t,n){var o=new i.Attribute(t,n,Qt,Qt,Qt,void 0,void 0);e.attrs.push(o)},Ht=zt,Yt=function(e,t){var n;if(t)return _.forEach(t.children,(function(t){return t instanceof i.Element&&(t.name===e?n=t:t.children&&(n=Yt(e,t))),!n})),n},Kt=Yt,Qt={},Xt=new n.IDGenerator("wm_page");t.register("wm-page",(function(){return{template:function(e){var t=$t($t(e,"wm-content"),"wm-page-content");if(t||(t=Yt("wm-page-content",Yt("wm-content",e))),t){var o=Wt("ng-container");if(zt(o,"*ngIf","compilePageContent"),o.children=o.children.concat(t.children),o.children.push(new i.Text("{{onPageContentReady()}}",null,void 0,void 0)),t.children=[o],n.isMobileApp()){var r=Wt("div");zt(r,"wmPageContentLoader",""),zt(r,"*ngIf","!showPageContent"),t.children.push(r)}}},pre:function(e){var n=Xt.nextUid();return"<div wmPage #"+n+'="wmPage" data-role="pageContainer" [attr.aria-label]="'+n+'.hint" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var Jt=Object.freeze({__proto__:null,default:function(){},"\u02750":Ut,"\u02751":qt,"\u02752":Ht,"\u02753":Kt}),Zt=new n.IDGenerator("wm_layout");t.register("wm-layout",(function(){return{pre:function(e){var n=Zt.nextUid();return"<div wmLayout #"+n+'="wmLayout" data-role="pageContainer" [attr.aria-label]="'+n+".hint || 'Main page content'\" "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var en=Object.freeze({__proto__:null,default:function(){}}),tn="router-outlet";t.register("wm-router-outlet",(function(){return{pre:function(e){return'<div wmRouterOutlet name="wmRouterOutlet" '+t.getAttrMarkup(e)+"><"+tn+' (activate)="onActivate($event)">'},post:function(){return"</router-outlet></div>"}}}));var nn=Object.freeze({__proto__:null,default:function(){}});t.register("wm-pagination",(function(){return{pre:function(e){return'<nav wmPagination data-identifier="pagination" aria-label="Page navigation" '+t.getAttrMarkup(e)+">"},post:function(){return"</nav>"}}}));var on=Object.freeze({__proto__:null,default:function(){}});t.register("wm-content",(function(){return{pre:function(e){return'<main wmContent data-role="page-content" role="main" '+t.getAttrMarkup(e)+">"},post:function(){return"</main>"}}}));var rn=Object.freeze({__proto__:null,default:function(){}}),an=new n.IDGenerator("wm_footer");t.register("wm-footer",(function(){return{pre:function(e){var n=an.nextUid();return"<footer wmFooter #"+n+'="wmFooter" partialContainer data-role="page-footer" role="contentinfo" [attr.aria-label]="'+n+".hint || 'Page footer'\" "+t.getAttrMarkup(e)+">"},post:function(){return"</footer>"}}}));var sn=Object.freeze({__proto__:null,default:function(){}}),ln=new n.IDGenerator("wm_header");t.register("wm-header",(function(){return{pre:function(e){var n=ln.nextUid();return"<header wmHeader #"+n+'="wmHeader" partialContainer data-role="page-header" role="banner" [attr.aria-label]="'+n+".hint || 'Page header'\" "+t.getAttrMarkup(e)+">"},post:function(){return"</header>"}}}));var cn=Object.freeze({__proto__:null,default:function(){}}),pn=new n.IDGenerator("wm_left_panel");t.register("wm-left-panel",(function(){return{pre:function(e){var n=pn.nextUid();return"<aside wmLeftPanel #"+n+'="wmLeftPanel" partialContainer data-role="page-left-panel" [attr.aria-label]="'+n+".hint || 'Left navigation panel'\" wmSmoothscroll=\""+(e.get("smoothscroll")||"false")+'" '+t.getAttrMarkup(e)+">"},post:function(){return"</aside>"}}}));var un=Object.freeze({__proto__:null,default:function(){}});t.register("wm-mobile-navbar",(function(){return{pre:function(e){return"<header wmMobileNavbar "+t.getAttrMarkup(e)+">"},post:function(){return"</header>"}}}));var dn=Object.freeze({__proto__:null,default:function(){}}),hn=new n.IDGenerator("wm_right_panel");t.register("wm-right-panel",(function(){return{pre:function(e){var n=hn.nextUid();return"<aside wmRightPanel #"+n+'="wmRightPanel" partialContainer data-role="page-right-panel" role="complementary" [attr.aria-label]="'+n+".hint || 'Right navigation panel'\" "+t.getAttrMarkup(e)+">"},post:function(){return"</aside>"}}}));var mn=Object.freeze({__proto__:null,default:function(){}});Object.create;function fn(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;var gn=function(e){return new i.Element(e,[],[],wn,wn,wn)},vn=gn,yn=function(e,t,n){var o=new i.Attribute(t,n,wn,wn,wn,void 0,void 0);e.attrs.push(o)},bn=yn,wn={};t.register("wm-page-content",(function(){return{template:function(e){var t,n;try{for(var o=fn(e.attrs),r=o.next();!r.done;r=o.next()){var a=r.value;if("spa"===a.name&&"true"===a.value){var s=gn("ng-container");yn(s,"*ngIf","compilePageContent"),s.children=s.children.concat(e.children),s.children.push(new i.Text("{{onPageContentReady()}}",null,void 0,void 0)),e.children=[s];break}}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},pre:function(e){return"<div wmPageContent "+(e.get("spa")?"wmSpaPage":"")+' wmSmoothscroll="'+(e.get("smoothscroll")||"false")+'" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var Pn=Object.freeze({__proto__:null,default:function(){},"\u02750":vn,"\u02751":bn});t.register("wm-mobile-tabbar",(function(){return{pre:function(e){return"<div wmMobileTabbar "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var _n=Object.freeze({__proto__:null,default:function(){}}),On=new n.IDGenerator("wm_top_nav");t.register("wm-top-nav",(function(){return{pre:function(e){var n=On.nextUid();return"<section wmTopNav #"+n+'="wmTopNav" partialContainer data-role="page-topnav" role="navigation" [attr.aria-label]="'+n+".hint || 'Second level navigation'\" "+t.getAttrMarkup(e)+">"},post:function(){return"</section>"}}}));var Sn=Object.freeze({__proto__:null,default:function(){}}),En={},Tn=function(e){return new i.Element(e,[],[],En,En,En)},Rn=Tn,An=function(e,t,n){var o=new i.Attribute(t,n,En,En,En,void 0,void 0);e.attrs.push(o)},Cn=An;t.register("wm-partial",(function(){return{template:function(e){var t=Tn("ng-container");An(t,"*ngIf","compileContent"),t.children=t.children.concat(e.children),e.children.length=0,e.children.push(t)},pre:function(e){return'<section wmPartial data-role="partial" '+t.getAttrMarkup(e)+">"},post:function(){return"</section>"}}}));var In=Object.freeze({__proto__:null,default:function(){},"\u02750":Rn,"\u02751":Cn});t.register("wm-param",(function(){return{pre:function(e){return"<div wmParam hidden "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var Dn=Object.freeze({__proto__:null,default:function(){}});t.register("wm-prefab",(function(){return{pre:function(e){return'<section wmPrefab redrawable data-role="perfab" '+t.getAttrMarkup(e)+">"},post:function(){return"</section>"}}}));var Nn=Object.freeze({__proto__:null,default:function(){}}),xn={},kn=function(e){return new i.Element(e,[],[],xn,xn,xn)},Mn=kn,Ln=function(e,t,n){var o=new i.Attribute(t,n,xn,xn,xn,void 0,void 0);e.attrs.push(o)},Fn=Ln;t.register("wm-prefab-container",(function(){return{template:function(e){var t=kn("ng-container");Ln(t,"*ngIf","compileContent"),t.children=t.children.concat(e.children),e.children.length=0,e.children.push(t)},pre:function(e){return"<div wmPrefabContainer "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var jn=Object.freeze({__proto__:null,default:function(){},"\u02750":Mn,"\u02751":Fn});t.register("wm-table-action",(function(){return{pre:function(e){return'<div name="'+(e.get("name")||e.get("key"))+'" wmTableAction '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var Bn=Object.freeze({__proto__:null,default:function(){}});t.register("wm-table-column-group",(function(){return{pre:function(e){return"<div wmTableColumnGroup "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var Gn=Object.freeze({__proto__:null,default:function(){}}),Vn=new n.IDGenerator("data_table_form_"),$n=new Set(["wm-text","wm-textarea","wm-checkbox","wm-slider","wm-currency","wm-switch","wm-select","wm-checkboxset","wm-radioset","wm-date","wm-time","wm-timestamp","wm-rating","wm-datetime","wm-search","wm-chips","wm-colorpicker"]),Un=function(e){void 0===e&&(e=[]);e.forEach((function(e){if($n.has(e.name)){if("wm-checkbox"===e.name&&e.attrs.filter((function(e){return"formControlName"===e.name})).length)return;e.attrs.push(new i.Attribute("[ngModelOptions]","{standalone: true}",1,1,1,void 0,void 0))}Un(e.children)}))},Wn=Un,qn=function(e,i){var o,r,a=e.get("filterwidget")||Ie(e.get("type")||n.DataType.STRING),s=e.get("binding"),l=e.get("type")||"string",c=e.get("filterdataset.bind");if("autocomplete"===e.get("filterwidget")){if(c)o='dataset.bind="'+c+'" datasource.bind="'+t.getDataSource(c)+'"';r="submit.event=\"changeFn('"+s+"')\""}var p='#filterWidget formControlName="'+s+'_filter" '+o+" "+r+" change.event=\"changeFn('"+s+"')\"\n disabled.bind=\"isDisabled('"+s+"')\"";return'<ng-template #filterTmpl let-changeFn="changeFn" let-isDisabled="isDisabled">\n <div class="input-group '+a+'" data-col-identifier="'+s+'">\n '+(""+n.getFormWidgetTemplate(a,p,e,{inputType:"filterinputtype"}))+'\n <span class="input-group-addon filter-clear-icon" *ngIf="'+i+".showClearIcon('"+s+'\')">\n <button class="btn-transparent btn app-button" aria-label="Clear button" type="button" (click)="'+i+".clearRowFilter('"+s+'\')">\n <i class="app-icon wi wi-clear" aria-hidden="true"></i>\n </button>\n </span>\n <span class="input-group-addon" dropdown container="body" (onShown)="'+i+".adjustContainer('"+s+'\');">\n <button class="btn-transparent btn app-button" type="button" dropdownToggle><i class="app-icon wi wi-filter-list"></i></button>\n <ul class="matchmode-dropdown dropdown-menu" *dropdownMenu>\n <li *ngFor="let matchMode of '+i+".matchModeTypesMap['"+l+'\']"\n [ngClass]="{active: matchMode === ('+i+".rowFilter['"+s+"'].matchMode || "+i+".matchModeTypesMap['"+l+'\'][0])}">\n <a href="javascript:void(0);" (click)="'+i+".onFilterConditionSelect('"+s+'\', matchMode)" [innerText]="'+i+'.matchModeMsgs[matchMode]"></a>\n </li>\n </ul>\n </span>\n </div></ng-template>'},zn=qn,Hn=function(e){var t="";return e.forEach((function(e,n){n.endsWith(".event")&&(t+=n+'="'+e+'" ')})),t},Yn=Hn,Kn=function(e){var n=new Map;return["disabled","disabled.bind"].forEach((function(t){e.get(t)&&(n.set(t,e.get(t)),e.delete(t))})),t.getAttrMarkup(n)},Qn=Kn,Xn=function(e,t,i,o){var r,a={},s=e.get("binding"),l=e.get("edit-widget-type")||((r={type:e.get("type"),"related-entity-name":e.get("related-entity-name"),"primary-key":e.get("primary-key")})["related-entity-name"]&&r["primary-key"]?n.FormWidgetType.SELECT:Ae[r.type]&&Ae[r.type][0]||n.FormWidgetType.TEXT),c="",p="",u="";l===n.FormWidgetType.UPLOAD?(a.uploadProps={formName:Vn.nextUid(),name:s},a.counter=o):(c=t?"#inlineWidgetNew":"#inlineWidget",p=t?'formControlName="'+s+'_new"':'formControlName="'+s+'"',u="wmFormWidget"),a.inputType="editinputtype";var d=t?"#inlineWidgetTmplNew":"#inlineWidgetTmpl",h=c+" "+u+' key="'+s+'" data-field-name="'+s+'" '+p+" "+(l===n.FormWidgetType.UPLOAD?"":Hn(e))+" "+Kn(e),m=t?"getPendingSpinnerStatusNew":"getPendingSpinnerStatus";return"<ng-template "+d+' let-row="row" let-getControl="getControl" let-getValidationMessage="getValidationMessage" let-'+m+'="'+m+'">\n <div data-col-identifier="'+s+'" >\n '+n.getFormWidgetTemplate(l,h,e,a)+"\n "+Zn(i)+'\n <div class="overlay" *ngIf="'+m+'()"><span aria-hidden="true" class="form-field-spinner fa fa-circle-o-notch fa-spin form-control-feedback"></span></div>\n <span class="sr-only" *ngIf="getValidationMessage()">{{getValidationMessage()}}</span>\n </div>\n </ng-template>'},Jn=Xn,Zn=function(e){var t="";switch(e){case"bottom":t='<span class="help-block text-danger" *ngIf="getValidationMessage() && getControl() && getControl().invalid && getControl().touched">{{getValidationMessage()}}</span>';break;case"hover":default:t='<span placement="top" container="body" tooltip="{{getValidationMessage()}}" class="text-danger wi wi-error"\n *ngIf="getValidationMessage() && getControl() && getControl().invalid && getControl().touched">\n </span>'}return t},ei=Zn,ti=function(e){var t="row.getProperty('"+e.get("binding")+"')",i=e.get("custompipeformat")||e.get("formatpattern"),o="";switch(!n.isDateTimeType(e.get("type"))||i&&"None"!==i||(e.set("formatpattern","toDate"),e.delete("datepattern"),i="toDate"),i){case"toDate":o="{{"+t+" | toDate: colDef.datepattern}}";break;case"toCurrency":e.get("currencypattern")&&(o="{{"+t+" | toCurrency: '"+e.get("currencypattern"),e.get("fractionsize")?o+="': "+e.get("fractionsize")+"}}":o+="'}}");break;case"numberToString":e.get("fractionsize")&&(o="{{"+t+" | numberToString: '"+e.get("fractionsize")+"'}}");break;case"stringToNumber":o="{{"+t+" | stringToNumber}}";break;case"timeFromNow":o="{{"+t+" | timeFromNow}}";break;case"prefix":e.get("prefix")&&(o="{{"+t+" | prefix: '"+e.get("prefix")+"'}}");break;case"suffix":e.get("suffix")&&(o="{{"+t+" | suffix: '"+e.get("suffix")+"'}}");break;default:n.checkIsCustomPipeExpression(i)&&(o="{{"+t+" | "+i+" : row}}")}return o},ni=ti;t.register("wm-table-column",(function(){return{requires:["wm-table"],template:function(e,t){if(e.children.length){if(1===e.children.length&&e.children[0]instanceof i.Text&&0===e.children[0].value.trim().length)return;t.set("customExpression",!0),Un(e.children)}},pre:function(e,i,o){var r="",a="",s="",l="";if(o){var c=o.get("table_reference");r="multicolumn"===o.get("filtermode")&&"false"!==e.get("searchable")?qn(e,c):"";var p=o.get("editmode"),u=p!==Re&&p!==Te&&"true"!==e.get("readonly");a=u?Xn(e,!1,o.get("errorstyle"),c):"",s=u&&p===Ee&&"false"!==o.get("shownewrow")?Xn(e,!0,e.get("errorstyle")):"",l=' [formGroup]="'+c+'.ngform" '}var d=e.get("formatpattern"),h='<ng-template #customExprTmpl let-row="row" let-colDef="colDef" let-editRow="editRow" let-deleteRow="deleteRow" let-addNewRow="addNewRow">',m="",f="";return i.get("customExpression")?(e.set("customExpression","true"),m=h+'<div data-col-identifier="'+e.get("binding")+'">'):(d&&"None"!==d||n.isDateTimeType(e.get("type")))&&(f=ti(e))&&(i.set("customExpression",!0),e.set("customExpression","true"),m=h+'<div data-col-identifier="'+e.get("binding")+'" title="'+f+'">'+f),"<div wmTableColumn "+t.getAttrMarkup(e)+" "+l+">\n "+r+"\n "+a+"\n "+s+"\n "+m},post:function(e,t){var n="";return t.get("customExpression")&&(n="</div></ng-template>"),n+"</div>"},imports:function(e){var t=e.get("edit-widget-type"),i=e.get("filterwidget")||Ie(e.get("type")||n.DataType.STRING);return[n.getRequiredFormWidget(t),n.getRequiredFormWidget(i),"wm-table"]}}}));var ii=Object.freeze({__proto__:null,default:function(){},"\u02750":Wn,"\u02751":zn,"\u02752":Yn,"\u02753":Qn,"\u02754":Jn,"\u02755":ei,"\u02756":ni}),oi=function(e){var t="anchor"===e.get("widget-type")?"a":"button",i="anchor"===e.get("widget-type")?"wmAnchor":"wmButton",o=e.get("display-name")||e.get("title")||"Collapse/Expand";return'<ng-template #rowExpansionActionTmpl let-row="row">\n <'+t+" "+i+"\n "+n.getRowActionAttrs(e)+'\n class="'+e.get("class")+' row-expansion-button"\n iconclass="'+e.get("collapseicon")+'"\n type="button" aria-label="'+o+'"></'+t+">\n </ng-template>"},ri=oi;t.register("wm-table-row",(function(){return{pre:function(e){return"<div wmTableRow "+t.getAttrMarkup(e)+">\n "+oi(e)+'\n <ng-template #rowExpansionTmpl let-row="row" let-rowDef="rowDef" let-containerLoad="containerLoad">\n <div wmContainer partialContainer content.bind="rowDef.content" load.event="containerLoad(widget)"\n [ngStyle]="{\'height\': rowDef.height, \'overflow-y\': \'auto\'}">\n <div *ngFor="let param of rowDef.partialParams | keyvalue" wmParam hidden\n [name]="param.key" [value]="param.value"></div>'},post:function(){return"</div></ng-template></div>"}}}));var ai=Object.freeze({__proto__:null,default:function(){},"\u02750":ri}),si=function(){return'<button type="button" aria-label="Save edit icon" class="save row-action-button btn app-button btn-transparent save-edit-row-button hidden" title="Save">\n <i class="wi wi-done" aria-hidden="true"></i>\n </button>\n <button type="button" aria-label="Cancel edit icon" class="cancel row-action-button btn app-button btn-transparent cancel-edit-row-button hidden" title="Cancel">\n <i class="wi wi-cancel" aria-hidden="true"></i>\n </button>'},li=si,ci=function(e){var t=e.get("action"),i=t?' click.event.delayed="'+t+'" ':"",o=t&&t.includes("editRow(")?'<button type="button" aria-label="Save edit icon" class="save row-action-button btn app-button btn-transparent save-edit-row-button hidden" title="Save">\n <i class="wi wi-done" aria-hidden="true"></i>\n </button>\n <button type="button" aria-label="Cancel edit icon" class="cancel row-action-button btn app-button btn-transparent cancel-edit-row-button hidden" title="Cancel">\n <i class="wi wi-cancel" aria-hidden="true"></i>\n </button>':"",r=t?t.includes("editRow(")?"edit edit-row-button":t.includes("deleteRow(")?"delete delete-row-button":"":"",a=e.get("tabindex")?'tabindex="'+e.get("tabindex")+'"':"",s="anchor"===e.get("widget-type")?"a":"button";return'<ng-template #rowActionTmpl let-row="row">\n <'+s+" "+("anchor"===e.get("widget-type")?"wmAnchor":"wmButton")+' data-action-key="'+e.get("key")+'"\n '+n.getRowActionAttrs(e)+'\n class="row-action row-action-button '+e.get("class")+" "+r+'"\n iconclass="'+e.get("iconclass")+'"\n '+i+"\n "+a+'\n type="button"></'+s+">\n "+o+"\n </ng-template>"},pi=ci;t.register("wm-table-row-action",(function(){return{pre:function(e){return"<div wmTableRowAction "+t.getAttrMarkup(e)+">\n "+ci(e)},post:function(){return"</div>"}}}));var ui=Object.freeze({__proto__:null,default:function(){},"\u02750":li,"\u02751":pi}),di=new n.IDGenerator("table_"),hi=0;function mi(e,t){var n=0;e.forEach((function(e){var o=e.name,r=void 0!==t?t:n;"wm-table-column"!==o&&"wm-table-column-group"!==o||(e.attrs.push(new i.Attribute("index",""+hi,1,1,1,void 0,void 0)),e.attrs.push(new i.Attribute("headerIndex",""+r,1,1,1,void 0,void 0)),"wm-table-column-group"===o&&mi(e.children,n),hi++,n++)}))}t.register("wm-table",(function(){return{template:function(e,i){if(e.children.length){var o=e.children.some((function(e){return"wm-table-column"===e.name||"wm-table-column-group"===e.name}));mi(e.children),i.set("isdynamictable",o?"false":"true");var r=e.children.some((function(e){return"wm-table-row"===e.name}));i.set("isrowexpansionenabled",r?"true":"false")}else i.set("isdynamictable","true");var a=e.attrs.find((function(e){return"dataset"===e.name})),s=e.attrs.find((function(e){return"name"===e.name}));if(a){var l=t.getBoundToExpr(a.value);l&&n.updateTemplateAttrs(e,l,s.value,"","row")}},pre:function(e,n){var i=di.nextUid();return n.set("counter",i),e.set("isdynamictable",n.get("isdynamictable")),e.set("isrowexpansionenabled",n.get("isrowexpansionenabled")),e.set("table_reference",i),'<div wmTable="'+i+'" wmTableFilterSort wmTableCUD #'+i+' data-identifier="table" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"},provide:function(e,t){var n=new Map;return n.set("table_reference",t.get("counter")),n.set("filtermode",e.get("filtermode")),n.set("errorstyle",e.get("errorstyle")),n.set("editmode",e.get("editmode")),n.set("shownewrow",e.get("shownewrow")),n}}}));var fi=Object.freeze({__proto__:null,default:function(){}});t.register("wm-video",(function(){return{pre:function(e){return"<div wmVideo "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var gi=Object.freeze({__proto__:null,default:function(){}}),vi="parentLinearLayout.spacing";t.register("wm-linearlayout",(function(){return{requires:["wm-linearlayout"],pre:function(e,n,i){var o=e.get("spacing");return e.set("spacing",o&&"0"!==o||!i?o:i.get(vi)),"<div wmLinearLayout "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"},provide:function(e,t){var n=new Map;return n.set(vi,e.get("spacing")),n}}}));var yi=Object.freeze({__proto__:null,default:function(){}});t.register("wm-linearlayoutitem",(function(){return{pre:function(e){return"<div wmLinearLayoutItem "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var bi=Object.freeze({__proto__:null,default:function(){}});e.accordionBuild=z,e.accordionPaneBuild=Y,e.alertDlgBuild=ye,e.anchorBuild=h,e.audioBuild=m,e.barcodeScannerBuild=fe,e.breadcrumbBuild=Lt,e.buttonBuild=ut,e.buttonGroupBuild=ct,e.calendarBuild=rt,e.cameraBuild=ve,e.cardActionsBuild=G,e.cardBuild=j,e.cardContentBuild=B,e.cardFooterBuild=V,e.carouselBuild=s,e.carouselTemplateBuild=c,e.chartBuild=$,e.checkboxBuild=dt,e.checkboxSetBuild=ht,e.chipsBuild=at,e.colorPickerBuild=st,e.compositeBuild=mt,e.confirmDlgBuild=be,e.containerBuild=K,e.contentBuild=rn,e.currencyBuild=lt,e.dateBuild=Ot,e.dateTimeBuild=_t,e.dlgBuild=Pe,e.dlgFooterBuild=we,e.fileUploadBuild=Et,e.footerBuild=sn,e.formActionBuild=Ke,e.formBuild=ot,e.formFieldBuild=qe,e.headerBuild=cn,e.htmlBuild=g,e.iconBuild=v,e.iframeBuild=y,e.iframeDlgBuild=_e,e.initComponentsBuildTask=function(){},e.labelBuild=w,e.layoutBuild=en,e.leftPanelBuild=un,e.lgBuild=J,e.lgcolBuild=Q,e.lgrowBuild=X,e.linearLayoutBuild=yi,e.linearLayoutItemBuild=bi,e.listBuild=Dt,e.liveTableBuild=xt,e.loginBuild=p,e.loginDlgBuild=Oe,e.marqueeBuild=u,e.mediaListBuild=Ct,e.mediaListItemBuild=It,e.menuBuild=Ft,e.messageBuild=Mt,e.mobileNavbarBuild=dn,e.navBuild=Bt,e.navItemBuild=jt,e.navbarBuild=Gt,e.numberBuild=ft,e.pageBuild=Jt,e.pageContentBuild=Pn,e.paginationBuild=on,e.panelBuild=ee,e.partialBuild=In,e.partialDlgBuild=Se,e.partialParamBuild=Dn,e.pictureBuild=O,e.popoverBuild=Vt,e.prefabBuild=Nn,e.prefabContainerBuild=jn,e.progressBarBuild=N,e.progressCircleBuild=x,e.radiosetBuild=gt,e.ratingBuild=Tt,e.repeatTemplateBuild=oe,e.rightPanelBuild=mn,e.routerOutletBuild=nn,e.rteBuild=M,e.searchBuild=L,e.segContentBuild=ne,e.segControlBuild=te,e.selectBuild=vt,e.sliderBuild=Rt,e.spinnerBuild=E,e.switchBuild=bt,e.tabBarBuild=_n,e.tabPaneBuild=ce,e.tableActionBuild=Bn,e.tableBuild=fi,e.tableColumnBuild=ii,e.tableColumnGroupBuild=Gn,e.tableRowActionBuild=ui,e.tableRowBuild=ai,e.tabsBuild=le,e.textAreaBuild=Pt,e.textBuild=wt,e.tileBuild=pe,e.timeBuild=St,e.topNavBuild=Sn,e.treeBuild=F,e.videoBuild=gi,e.wizardBuild=ue,e.wizardStepBuild=he,Object.keys(t).forEach((function(n){"default"===n||e.hasOwnProperty(n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})})),Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/forms"),require("angular-imask"),require("@wm/components/base"),require("@wm/core"),require("rxjs")):"function"==typeof define&&define.amd?define("@wm/components/input",["exports","@angular/core","@angular/common","@angular/forms","angular-imask","@wm/components/base","@wm/core","rxjs"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.components=e.wm.components||{},e.wm.components.input={}),e.ng.core,e.ng.common,e.ng.forms,e["angular-imask"],e.wm.components.base,e.wm.core,e.rxjs)}(this,(function(e,t,n,i,o,r,a,s){"use strict";
44
44
  /*! *****************************************************************************
45
45
  Copyright (c) Microsoft Corporation.
46
46
 
@@ -124,7 +124,7 @@
124
124
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
125
125
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
126
126
  PERFORMANCE OF THIS SOFTWARE.
127
- ***************************************************************************** */var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};Object.create;function a(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function l(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var c=function(){i.register("wm-tree",new Map([["class",i.PROP_STRING],["dataset",Object.assign({value:"node1, node2, node3"},i.PROP_ANY)],["datavalue",i.PROP_STRING],["levels",Object.assign({value:0},i.PROP_NUMBER)],["name",i.PROP_STRING],["nodeaction",i.PROP_STRING],["nodechildren",i.PROP_STRING],["nodeclick",Object.assign({value:"none"},i.PROP_STRING)],["nodeicon",i.PROP_STRING],["nodeid",i.PROP_STRING],["nodelabel",i.PROP_STRING],["orderby",i.PROP_STRING],["show",Object.assign({value:!0},i.PROP_BOOLEAN)],["tabindex",Object.assign({value:0},i.PROP_NUMBER)],["treeicons",i.PROP_STRING]]))},p={widgetType:"wm-tree",hostClass:"app-tree"},u="plus-minus",d=function(e){function t(t){var n=e.call(this,t,p)||this;return n.setting={data:{simpleData:{enable:!1},key:{children:"children",name:"label"}},view:{dblClickExpand:!1,fontCss:{"font-awesome":!0},switchIcon:{}},check:{},callback:{}},i.styler(n.nativeElement,n,i.APPLY_STYLES_TYPE.CONTAINER),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.onPropertyChange=function(t,n,i){switch(t){case"dataset":this.nodes=this.getNodes(n),this.level>0&&this.expandTree(this.level,this.nodes,0),this.renderTree();break;case"levels":n>0&&(this.level=n);break;case"treeicons":this.treeicon=n;break;case"nodelabel":this.setting.data.key.name=this.labelKey,this.renderTree();break;case"nodechildren":this.setting.data.key.children=this.childrenKey,this.renderTree();break;case"nodeicon":this.nodeicon=this.iconKey,this.renderTree();break;case"orderby":this.renderTree();break;case"class":this.treeClass=n;break;default:e.prototype.onPropertyChange.call(this,t,n,i)}},t.prototype.expandTree=function(e,t,n){var i=this;t.map((function(t){var o=i.getChildren(t);o&&!("open"in t)&&n<e?(t.open=!0,i.expandTree(e,o,n+1)):n=0}))},t.prototype.setTreeTemplate=function(e){"Classic"===e?this.setting.check.enable=!1:"Checkbox"===e?(this.setting.check.enable=!0,this.setting.check.chkStyle="checkbox"):"Radio"===e&&(this.setting.check.enable=!0,this.setting.check.chkStyle="radio",this.setting.check.radioType="all")},t.prototype.getNodesFromString=function(e){return e.split(",").map((function(e){return{name:e&&e.trim()}}))},t.prototype.getNodes=function(e){var t;return _.isArray(e)?t=i.getOrderedDataset(e,this.orderby):_.isObject(e)?t=[e]:_.isString(e)&&!_.isEmpty(e)&&(e=e.trim())&&(t=this.getNodesFromString(e)),t},t.prototype.setNodeclasses=function(e,t){return t.icon?{add:[""+t.icon]}:""},t.prototype.setNodeData=function(e,t,n,i,o){var r=this;0===t?e.map((function(e){var a=r.getChildren(e);if(a&&r.setNodeData(a,t,n,i,o),e.icon&&"icon"==r.nodelabel)e[o]=e.icon;else{if(!e.name||"name"!=r.nodelabel)return;e[o]=e.name}})):e.map((function(e){var a=r.getChildren(e);return a&&n>1&&(t===n&&(i=e),r.setNodeData(a,t,n-1,i,o)),1===n&&("name"===o?r.nodelabel.includes("label")||r.nodelabel.includes("name"):r.nodeicon.includes("label")||r.nodeicon.includes("name"))?void(i[o]=e.name||e.label):1===n&&void 0!==e.icon&&("name"===o?r.nodelabel.includes("icon"):r.nodeicon.includes("icon"))?void(i[o]=e.icon):void 0}))},t.prototype.changeTreeIcons=function(e){var t=$('ul[name="'+this.name+'"] li span.button.switch');$(t).map((function(t,n){$(n).addClass(e),$(n).on("click",(function(t){setTimeout((function(){$(n).addClass(e)}),0)}))}))},t.prototype.getPath=function(e,t){return t=null===e.getParentNode()?"/"+e[this.labelKey]+t:this.getPath(e.getParentNode(),t)+"/"+e[this.labelKey]},t.prototype.onClick=function(e,t,n,i){if("expand"===this.nodeclick){var o=this.treeObj.getSelectedNodes();o.length>0&&this.expandNode(o[0],!o[0].open,!0)}var r={$event:e,$item:n,$path:this.getPath(n,"")};this.setSelectedItem(n),this.invokeEventCallback("select",r)},t.prototype.onExpand=function(e,t,n){var i=this,o={$event:e,$item:n,$path:this.getPath(n,"")};this.invokeEventCallback("expand",o);var r=this.getChildren(n);null==r||r.map((function(e){if(e.isParent){var t=$("#"+e.tId+"_switch");$(t).addClass(i.treeicon||u),$(t).on("click",(function(e){setTimeout((function(){$(t).addClass(i.treeicon||u)}),0)}))}}))},t.prototype.onCollapse=function(e,t,n){var i={$event:e,$item:n,$path:this.getPath(n,"")};this.invokeEventCallback("collapse",i)},t.prototype.getChildren=function(e){return e[this.childrenKey]},Object.defineProperty(t.prototype,"childrenKey",{get:function(){return this.countDepth(this.nodechildren)?this.nodechildren.split(".").pop():this.nodechildren||"children"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelKey",{get:function(){return this.countDepth(this.nodelabel)?this.nodelabel.split(".").pop():this.nodelabel||"label"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconKey",{get:function(){return this.countDepth(this.nodeicon)?this.nodeicon.split(".").pop():this.nodeicon||"icon"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"treeObj",{get:function(){return $.fn.zTree.getZTreeObj(""+this.name)},enumerable:!1,configurable:!0}),t.prototype.modifyObjects=function(e){var t=this;e.forEach((function(e){e.icon=e[t.nodeicon];var n=t.getChildren(e);(null==n?void 0:n.length)&&t.modifyObjects(n)}))},t.prototype.setNodeChildren=function(e,t,n,i){var o=this;if(t<=0)return e;for(var r=0;r<e.length;r++){var a=e[r];t===n&&(i=e[r]);var s=this.getChildren(a);if(null==s?void 0:s.length){if(1===n)return void(i[this.childrenKey]=s.map((function(e){var t;return(t={})[o.labelKey]=e[o.labelKey],t[o.childrenKey]=o.getChildren(e),t.icon=e[o.iconKey],t})));this.setNodeChildren(s,t,n-1,i)}}return e},t.prototype.countDepth=function(e){var t,n,i=e.match(/\[.*?\]/g),o=1;if(null===i)return o;try{for(var r=a(i),s=r.next();!s.done;s=r.next()){s.value;o++}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return o},t.prototype.renderTree=function(){if(this.nodes){if(this.nativeElement.setAttribute("id",this.name),this.nodeicon&&"icon"!==this.nodeicon&&this.modifyObjects(this.nodes),this.setTreeTemplate(this.treeClass),this.nodelabel){var e=0;this.nodelabel.includes("children")&&(e=this.countDepth(this.nodelabel)),this.setNodeData(this.nodes,e,e,null,"name")}if(this.nodeicon){e=0;this.nodeicon.includes("children")&&(e=this.countDepth(this.nodeicon)),this.setNodeData(this.nodes,e,e,null,"icon")}if(this.nodechildren)(e=this.countDepth(this.nodechildren))>1&&(this.nodes=this.setNodeChildren(this.nodes,e,e,null))}this.setting.view.nodeClasses=this.setNodeclasses,this.setting.callback.onClick=this.onClick.bind(this),this.setting.callback.onExpand=this.onExpand.bind(this),this.setting.callback.onCollapse=this.onCollapse.bind(this);var t=$.fn.zTree.init($('ul[name="'+this.name+'"]'),this.setting,this.nodes);$.fn.zTreeKeyboardNavigation(t,$('ul[name="'+this.name+'"]'),null,this.treeicon||u)},t.prototype.setSelectedItem=function(e){this.selecteditem=o.getClonedObject(e)||{},this.selecteditem.path=this.getPath(e,""),$("li[treenode].selected").removeClass("selected"),$("#"+e.tId+":has(.curSelectedNode)").addClass("selected")},t.prototype.expandNode=function(e,t,n){this.treeObj.expandNode(e,t,!1,!1,n);var i=$("#"+e.tId+"_switch");$(i).addClass(this.treeicon||u)},t.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){if(e.changeTreeIcons(e.treeicon||u),e.datavalue){var t=e.treeObj.getNodes(),n=void 0;"FirstNode"===e.datavalue&&t.length&&(n=t[0]),"LastNode"===e.datavalue&&t.length&&(n=t[t.length-1]),e.treeObj.selectNode(n,!1),e.setSelectedItem(n),e.expandNode(n,!0,!1)}}),200)},t}(i.StylableComponent);d.initializeProps=c(),d.decorators=[{type:t.Component,args:[{selector:"ul[wmTree]",template:'<ul #wmTree class="ztree" id="ztree"></ul> ',providers:[i.provideAsWidgetRef(d)],encapsulation:t.ViewEncapsulation.None}]}],d.ctorParameters=function(){return[{type:t.Injector}]};var h=[d],m=function(){};m.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.WmComponentsModule],declarations:l([],s(h)),exports:l([],s(h)),entryComponents:[]}]}],e.TreeComponent=d,e.TreeModule=m,e["\u0275a"]=c,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/forms"),require("ngx-bootstrap/datepicker"),require("@wm/core"),require("@wm/components/base")):"function"==typeof define&&define.amd?define("@wm/components/input/calendar",["exports","@angular/core","@angular/common","@angular/forms","ngx-bootstrap/datepicker","@wm/core","@wm/components/base"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.components=e.wm.components||{},e.wm.components.input=e.wm.components.input||{},e.wm.components.input.calendar={}),e.ng.core,e.ng.common,e.ng.forms,e["ngx-bootstrap"].datepicker,e.wm.core,e.wm.components.base)}(this,(function(e,t,n,i,o,r,a){"use strict";
127
+ ***************************************************************************** */var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};Object.create;function a(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function l(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var c=function(){i.register("wm-tree",new Map([["class",i.PROP_STRING],["dataset",Object.assign({value:"node1, node2, node3"},i.PROP_ANY)],["datavalue",i.PROP_STRING],["levels",Object.assign({value:0},i.PROP_NUMBER)],["name",i.PROP_STRING],["nodeaction",i.PROP_STRING],["nodechildren",i.PROP_STRING],["nodeclick",Object.assign({value:"none"},i.PROP_STRING)],["nodeicon",i.PROP_STRING],["nodeid",i.PROP_STRING],["nodelabel",i.PROP_STRING],["orderby",i.PROP_STRING],["show",Object.assign({value:!0},i.PROP_BOOLEAN)],["tabindex",Object.assign({value:0},i.PROP_NUMBER)],["treeicons",i.PROP_STRING]]))},p={widgetType:"wm-tree",hostClass:"app-tree"},u="plus-minus",d=function(e){function t(t){var n=e.call(this,t,p)||this;return n.setting={data:{simpleData:{enable:!1},key:{children:"children",name:"label"}},view:{dblClickExpand:!1,fontCss:{"font-awesome":!0},switchIcon:{}},check:{},callback:{}},i.styler(n.nativeElement,n,i.APPLY_STYLES_TYPE.CONTAINER),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.onPropertyChange=function(t,n,i){switch(t){case"dataset":this.nodes=this.getNodes(n),this.level>0&&this.expandTree(this.level,this.nodes,0),this.renderTree();break;case"levels":n>0&&(this.level=n),this.renderTree();break;case"treeicons":this.treeicon=n,this.renderTree();break;case"nodelabel":this.setting.data.key.name=this.labelKey,this.renderTree();break;case"nodechildren":this.setting.data.key.children=this.childrenKey,this.renderTree();break;case"nodeicon":this.nodeicon=this.iconKey,this.renderTree();break;case"orderby":this.renderTree();break;case"class":this.treeClass=n,this.renderTree();break;default:e.prototype.onPropertyChange.call(this,t,n,i)}},t.prototype.expandTree=function(e,t,n){var i=this;t.map((function(t){var o=i.getChildren(t);o&&!("open"in t)&&n<e?(t.open=!0,i.expandTree(e,o,n+1)):n=0}))},t.prototype.setTreeTemplate=function(e){"Classic"===e?this.setting.check.enable=!1:"Checkbox"===e?(this.setting.check.enable=!0,this.setting.check.chkStyle="checkbox"):"Radio"===e&&(this.setting.check.enable=!0,this.setting.check.chkStyle="radio",this.setting.check.radioType="all")},t.prototype.getNodesFromString=function(e){return e.split(",").map((function(e){return{label:e&&e.trim()}}))},t.prototype.getNodes=function(e){var t;return _.isArray(e)?t=i.getOrderedDataset(e,this.orderby):_.isObject(e)?t=[e]:_.isString(e)&&!_.isEmpty(e)&&(e=e.trim())&&(t=this.getNodesFromString(e)),t},t.prototype.setNodeclasses=function(e,t){return t.icon?{add:[""+t.icon]}:""},t.prototype.setNodeData=function(e,t,n,i,o){var r=this;0===t?e.map((function(e){var a=r.getChildren(e);if(a&&r.setNodeData(a,t,n,i,o),e.icon&&"icon"==r.nodelabel)e[o]=e.icon;else{if(!e.name||"name"!=r.nodelabel)return;e[o]=e.name}})):e.map((function(e){var a=r.getChildren(e);return a&&n>1&&(t===n&&(i=e),r.setNodeData(a,t,n-1,i,o)),1===n&&("name"===o?r.nodelabel.includes("label")||r.nodelabel.includes("name"):r.nodeicon.includes("label")||r.nodeicon.includes("name"))?void(i[o]=e.name||e.label):1===n&&void 0!==e.icon&&("name"===o?r.nodelabel.includes("icon"):r.nodeicon.includes("icon"))?void(i[o]=e.icon):void 0}))},t.prototype.changeTreeIcons=function(e){var t=$('ul[name="'+this.name+'"] li span.button.switch');$(t).map((function(t,n){$(n).addClass(e),$(n).on("click",(function(t){setTimeout((function(){$(n).addClass(e)}),0)}))}))},t.prototype.getPath=function(e,t){return t=null===e.getParentNode()?"/"+e[this.labelKey]+t:this.getPath(e.getParentNode(),t)+"/"+e[this.labelKey]},t.prototype.onClick=function(e,t,n,i){if("expand"===this.nodeclick){var o=this.treeObj.getSelectedNodes();o.length>0&&this.expandNode(o[0],!o[0].open,!0)}var r={$event:e,$item:n,$path:this.getPath(n,"")};this.setSelectedItem(n),this.invokeEventCallback("select",r)},t.prototype.onExpand=function(e,t,n){var i=this,o={$event:e,$item:n,$path:this.getPath(n,"")};this.invokeEventCallback("expand",o);var r=this.getChildren(n);null==r||r.map((function(e){if(e.isParent){var t=$("#"+e.tId+"_switch");$(t).addClass(i.treeicon||u),$(t).on("click",(function(e){setTimeout((function(){$(t).addClass(i.treeicon||u)}),0)}))}}))},t.prototype.onCollapse=function(e,t,n){var i={$event:e,$item:n,$path:this.getPath(n,"")};this.invokeEventCallback("collapse",i)},t.prototype.getChildren=function(e){return e[this.childrenKey]},Object.defineProperty(t.prototype,"childrenKey",{get:function(){return this.nodechildren?this.countDepth(this.nodechildren)?this.nodechildren.split(".").pop():this.nodechildren:"children"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelKey",{get:function(){return this.nodelabel?this.countDepth(this.nodelabel)?this.nodelabel.split(".").pop():this.nodelabel:"label"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconKey",{get:function(){return this.nodeicon?this.countDepth(this.nodeicon)?this.nodeicon.split(".").pop():this.nodeicon:"icon"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"treeObj",{get:function(){return $.fn.zTree.getZTreeObj(""+this.name)},enumerable:!1,configurable:!0}),t.prototype.modifyObjects=function(e){var t=this;e.forEach((function(e){e.icon=e[t.nodeicon];var n=t.getChildren(e);(null==n?void 0:n.length)&&t.modifyObjects(n)}))},t.prototype.setNodeChildren=function(e,t,n,i){var o=this;if(t<=0)return e;for(var r=0;r<e.length;r++){var a=e[r];t===n&&(i=e[r]);var s=this.getChildren(a);if(null==s?void 0:s.length){if(1===n)return void(i[this.childrenKey]=s.map((function(e){var t;return(t={})[o.labelKey]=e[o.labelKey],t[o.childrenKey]=o.getChildren(e),t.icon=e[o.iconKey],t})));this.setNodeChildren(s,t,n-1,i)}}return e},t.prototype.countDepth=function(e){var t,n,i=e.match(/\[.*?\]/g),o=1;if(null===i)return o;try{for(var r=a(i),s=r.next();!s.done;s=r.next()){s.value;o++}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return o},t.prototype.renderTree=function(){if(this.nodes){if(this.nativeElement.setAttribute("id",this.name),this.nodeicon&&"icon"!==this.nodeicon&&this.modifyObjects(this.nodes),this.setTreeTemplate(this.treeClass),this.nodelabel){var e=0;this.nodelabel.includes("children")&&(e=this.countDepth(this.nodelabel)),this.setNodeData(this.nodes,e,e,null,"name")}if(this.nodeicon){e=0;this.nodeicon.includes("children")&&(e=this.countDepth(this.nodeicon)),this.setNodeData(this.nodes,e,e,null,"icon")}if(this.nodechildren)(e=this.countDepth(this.nodechildren))>1&&(this.nodes=this.setNodeChildren(this.nodes,e,e,null))}this.setting.view.nodeClasses=this.setNodeclasses,this.setting.callback.onClick=this.onClick.bind(this),this.setting.callback.onExpand=this.onExpand.bind(this),this.setting.callback.onCollapse=this.onCollapse.bind(this);var t=$.fn.zTree.init($('ul[name="'+this.name+'"]'),this.setting,this.nodes);$.fn.zTreeKeyboardNavigation(t,$('ul[name="'+this.name+'"]'),null,this.treeicon||u)},t.prototype.setSelectedItem=function(e){this.selecteditem=o.getClonedObject(e)||{},this.selecteditem.path=this.getPath(e,""),$("li[treenode].selected").removeClass("selected"),$("#"+e.tId+":has(.curSelectedNode)").addClass("selected")},t.prototype.expandNode=function(e,t,n){this.treeObj.expandNode(e,t,!1,!1,n);var i=$("#"+e.tId+"_switch");$(i).addClass(this.treeicon||u)},t.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){if(e.changeTreeIcons(e.treeicon||u),e.datavalue){var t=e.treeObj.getNodes(),n=void 0;"FirstNode"===e.datavalue&&t.length&&(n=t[0]),"LastNode"===e.datavalue&&t.length&&(n=t[t.length-1]),e.treeObj.selectNode(n,!1),e.setSelectedItem(n),e.expandNode(n,!0,!1)}}),200)},t}(i.StylableComponent);d.initializeProps=c(),d.decorators=[{type:t.Component,args:[{selector:"ul[wmTree]",template:'<ul #wmTree class="ztree" id="ztree"></ul> ',providers:[i.provideAsWidgetRef(d)],encapsulation:t.ViewEncapsulation.None}]}],d.ctorParameters=function(){return[{type:t.Injector}]};var h=[d],m=function(){};m.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.WmComponentsModule],declarations:l([],s(h)),exports:l([],s(h)),entryComponents:[]}]}],e.TreeComponent=d,e.TreeModule=m,e["\u0275a"]=c,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/forms"),require("ngx-bootstrap/datepicker"),require("@wm/core"),require("@wm/components/base")):"function"==typeof define&&define.amd?define("@wm/components/input/calendar",["exports","@angular/core","@angular/common","@angular/forms","ngx-bootstrap/datepicker","@wm/core","@wm/components/base"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.components=e.wm.components||{},e.wm.components.input=e.wm.components.input||{},e.wm.components.input.calendar={}),e.ng.core,e.ng.common,e.ng.forms,e["ngx-bootstrap"].datepicker,e.wm.core,e.wm.components.base)}(this,(function(e,t,n,i,o,r,a){"use strict";
128
128
  /*! *****************************************************************************
129
129
  Copyright (c) Microsoft Corporation.
130
130
 
@@ -250,7 +250,7 @@
250
250
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
251
251
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
252
252
  PERFORMANCE OF THIS SOFTWARE.
253
- ***************************************************************************** */var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};Object.create;function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function l(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var c=function(){i.register("wm-chart",new Map([["aggregation",Object.assign({value:"none"},i.PROP_STRING)],["aggregationcolumn",i.PROP_STRING],["areaviewtype",Object.assign({value:"stack"},i.PROP_STRING)],["barspacing",Object.assign({value:"medium"},i.PROP_STRING)],["bubblesize",i.PROP_STRING],["centerlabel",i.PROP_STRING],["class",i.PROP_STRING],["customcolors",i.PROP_ANY],["dataset",i.PROP_ANY],["datasource",i.PROP_STRING],["donutratio",Object.assign({value:"medium"},i.PROP_STRING)],["formattype",{value:"",PROP_STRING:i.PROP_STRING}],["groupby",i.PROP_STRING],["height",{value:"210px",PROP_STRING:i.PROP_STRING}],["highlightpoints",i.PROP_BOOLEAN],["iconclass",i.PROP_STRING],["interpolation",Object.assign({value:"linear"},i.PROP_STRING)],["labelthreshold",Object.assign({value:.01},i.PROP_NUMBER)],["labeltype",Object.assign({value:"percent"},i.PROP_STRING)],["legendtype",Object.assign({value:"furious"},i.PROP_STRING)],["linethickness",i.PROP_STRING],["loadingdatamsg",Object.assign({value:"Loading..."},i.PROP_STRING)],["name",i.PROP_STRING],["nodatamessage",Object.assign({value:"No Data Available."},i.PROP_STRING)],["offset",i.PROP_STRING],["offsetbottom",Object.assign({value:55},i.PROP_NUMBER)],["offsetleft",Object.assign({value:75},i.PROP_NUMBER)],["offsetright",Object.assign({value:25},i.PROP_NUMBER)],["offsettop",Object.assign({value:25},i.PROP_NUMBER)],["orderby",i.PROP_STRING],["reducexticks",Object.assign({value:!0},i.PROP_BOOLEAN)],["shape",Object.assign({value:"circle"},i.PROP_STRING)],["show",Object.assign({value:!0},i.PROP_BOOLEAN)],["showlabels",Object.assign({value:"outside"},i.PROP_STRING)],["showlabelsoutside",Object.assign({value:!0},i.PROP_BOOLEAN)],["showlegend",Object.assign({value:"top"},i.PROP_STRING)],["showvalues",Object.assign({value:!1},i.PROP_BOOLEAN)],["showxaxis",Object.assign({value:!0},i.PROP_BOOLEAN)],["showxdistance",Object.assign({value:!1},i.PROP_BOOLEAN)],["showyaxis",Object.assign({value:!0},i.PROP_BOOLEAN)],["showydistance",Object.assign({value:!1},i.PROP_BOOLEAN)],["staggerlabels",Object.assign({value:!1},i.PROP_BOOLEAN)],["subheading",i.PROP_STRING],["theme",i.PROP_STRING],["title",i.PROP_STRING],["tooltips",Object.assign({value:!0},i.PROP_BOOLEAN)],["type",i.PROP_STRING],["viewtype",Object.assign({value:"Grouped"},i.PROP_STRING)],["xaxisdatakey",i.PROP_STRING],["xaxislabel",i.PROP_STRING],["xaxislabeldistance",Object.assign({value:12},i.PROP_NUMBER)],["xdateformat",i.PROP_STRING],["xdomain",Object.assign({value:"Default"},i.PROP_STRING)],["xnumberformat",i.PROP_STRING],["xunits",i.PROP_STRING],["yaxisdatakey",i.PROP_STRING],["yaxislabel",i.PROP_STRING],["yaxislabeldistance",Object.assign({value:12},i.PROP_NUMBER)],["ydomain",Object.assign({value:"Default"},i.PROP_STRING)],["ynumberformat",i.PROP_STRING],["yunits",i.PROP_STRING]]))},p=["Column","Line","Area","Cumulative Line","Bar","Pie","Donut","Bubble"],u=["circle","square","diamond","cross","triangle-up","triangle-down"],d=["01/01/2001","01/01/2002","01/01/2003"],h={Terrestrial:{colors:["#1f77b4","#aec7e8","#ff7f0e","#ffbb78","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5","#8c564b","#c49c94","#e377c2","#f7b6d2","#7f7f7f","#c7c7c7","#bcbd22","#dbdb8d","#17becf","#9edae5"],tooltip:{backgroundColor:"#de7d28",textColor:"#FFFFFF"}},Annabelle:{colors:["#393b79","#5254a3","#6b6ecf","#9c9ede","#637939","#8ca252","#b5cf6b","#cedb9c","#8c6d31","#bd9e39","#e7ba52","#e7cb94","#843c39","#ad494a","#d6616b","#e7969c","#7b4173","#a55194","#ce6dbd","#de9ed6"],tooltip:{backgroundColor:"#2e306f",textColor:"#FFFFFF"}},Azure:{colors:["#3182bd","#6baed6","#9ecae1","#c6dbef","#e6550d","#fd8d3c","#fdae6b","#fdd0a2","#31a354","#74c476","#a1d99b","#c7e9c0","#756bb1","#9e9ac8","#bcbddc","#dadaeb","#636363","#969696","#bdbdbd","#d9d9d9"],tooltip:{backgroundColor:"#3182bd",textColor:"#FFFFFF"}},Retro:{colors:["#0ca7a1","#ffa615","#334957","#acc5c2","#988f90","#8accc9","#515151","#f27861","#36c9fd","#794668","#0f709d","#0d2738","#44be78","#4a1839","#6a393f","#557d8b","#6c331c","#1c1c1c","#861500","#09562a"],tooltip:{backgroundColor:"#80513a",textColor:"#FFFFFF"}},Mellow:{colors:["#f0dcbf","#88c877","#aeb918","#2e2c23","#ddddd2","#dfe956","#4c963b","#5d3801","#e1eec3","#cd8472","#fcfab3","#9a4635","#9295ad","#2e3f12","#565677","#557d8b","#4f4d02","#0c0c1b","#833324","#24120e"],tooltip:{backgroundColor:"#7c9e73",textColor:"#FFFFFF"}},Orient:{colors:["#a80000","#cc6c3c","#f0e400","#000084","#fccc6c","#009c6c","#cc309c","#78cc00","#fc84e4","#48e4fc","#4878d8","#186c0c","#606060","#a8a8a8","#000000","#d7d7d7","#75a06e","#190d0b","#888888","#694b84"],tooltip:{backgroundColor:"#c14242",textColor:"#FFFFFF"}},GrayScale:{colors:["#141414","#353535","#5b5b5b","#848484","#a8a8a8","#c3c3c3","#e0e0e0","#c8c8c8","#a5a5a5","#878787","#656565","#4e4e4e","#303030","#1c1c1c","#4f4f4f","#3b3b3b","#757575","#606060","#868686","#c1c1c1"],tooltip:{backgroundColor:"#575757",textColor:"#FFFFFF"}},Flyer:{colors:["#3f454c","#5a646e","#848778","#cededf","#74c4dd","#0946ed","#380bb1","#000ff0","#f54a23","#1db262","#bca3aa","#ffa500","#a86b32","#63a18c","#56795e","#934343","#b75f5f","#752d2d","#4e1111","#920606"],tooltip:{backgroundColor:"#47637c",textColor:"#FFFFFF"}},Luminosity:{colors:["#FFFFFF","#e4e4e4","#00bcd4","#f0dd2f","#00aabf","#018376","#e91e63","#39e5d4","#ff6d6d","#00ff76","#ff9800","#969696","#ff4200","#e00000","#95cbe5","#5331ff","#fff4a7","#e7a800","#0061e4","#d5e7ff"],tooltip:{backgroundColor:"#47637c",textColor:"#FFFFFF"}}},m=["xaxislabel","yaxislabel","xunits","yunits","xnumberformat","xdateformat","ynumberformat","showvalues","showlabels","viewtype","areaviewtype","staggerlabels","reducexticks","offsettop","offsetbottom","offsetright","offsetleft","barspacing","xaxislabeldistance","yaxislabeldistance","theme","labeltype","donutratio","showlabelsoutside","showxdistance","showydistance","shape","nodatamessage","captions","showxaxis","showyaxis","centerlabel","customcolors","showlegend","legendtype","xdomain","ydomain","tooltips","linethickness","highlightpoints","interpolation","labelthreshold"],f={small:.3,medium:.5,large:.8},g={small:.3,medium:.6,large:.7},v=_.invert(f),y=_.invert(g),b={Thousand:{prefix:"K",divider:1e3},Million:{prefix:"M",divider:1e6},Billion:{prefix:"B",divider:1e9}},w="#preview-chart",P=["Column","Line","Pie","Bar","Donut","Bubble"],O=["Line","Area","Cumulative Line"],S=["Cumulative Line","Area"],E="Europe",T="Asia",R="America",A="Australia",C=function(e){return"Bar"===e},I=function(e){return"Donut"===e},D=function(e){return"Bubble"===e},N=function(e){return"Area"===e},x=function(e){return function(e){return"Pie"===e}(e)||I(e)},k=function(e){return _.includes(P,e)||!_.includes(p,e)},M=function(e){return _.includes(O,e)},L=function(e,t){return"value"===t?f[e]:"key"===t?v[e]:void 0},F=function(e,t){return"value"===t?g[e]:"key"===t?y[e]:void 0},j=function(e){return function(e,t,n){var i=[],o=[],r=[],a=[],s=[],l=[],c=[],p=[],d=[],h=[];switch(e){case"jsonFormat":i=[{x:"01/01/2001",y:4e6},{x:"01/01/2002",y:1e6},{x:"01/01/2003",y:5e6}],o=[{x:"01/01/2001",y:3e6},{x:"01/01/2002",y:4e6},{x:"01/01/2003",y:7e6}],r=[{x:"01/01/2001",y:2e6},{x:"01/01/2002",y:8e6},{x:"01/01/2003",y:6e6}],h[0]={values:i,key:E},t>=2&&(h[1]={values:o,key:T}),t>=3&&(h[2]={values:r,key:R});break;case"lineChartFormat":i=[{x:1,y:4e6},{x:2,y:1e6},{x:3,y:5e6}],o=[{x:1,y:3e6},{x:2,y:4e6},{x:3,y:7e6}],r=[{x:1,y:2e6},{x:2,y:8e6},{x:3,y:6e6}],h[0]={values:i,key:E},t>=2&&(h[1]={values:o,key:T}),t>=3&&(h[2]={values:r,key:R});break;case"arrayFormat":a=[[1,4e6],[2,1e6],[3,5e6]],s=[[1,3e6],[2,4e6],[3,7e6]],l=[[1,2e6],[2,8e6],[3,6e6]],h[0]={values:a,key:E},t>=2&&(h[1]={values:s,key:T}),t>=3&&(h[2]={values:l,key:R});break;case"bubbleFormat":c=[{x:80.66,y:33739900,size:78,shape:n="random"===n?u[Math.floor(Math.random()*u.length)]:n},{x:79.84,y:81902300,size:90,shape:n},{x:78.6,y:5523100,size:45,shape:n}],p=[{x:72.73,y:79716200,size:98,shape:n},{x:80.05,y:61801600,size:20,shape:n},{x:72.49,y:73137200,size:34,shape:n}],d=[{x:68.09,y:33739900,size:45,shape:n},{x:81.55,y:7485600,size:78,shape:n},{x:68.6,y:14185e4,size:56,shape:n}],h[0]={values:c,key:E},t>=2&&(h[1]={values:p,key:T}),t>=3&&(h[2]={values:d,key:R});break;case"pieChartFormat":h=[{x:E,y:1e6},{x:T,y:2e6},{x:R,y:3e6},{x:A,y:4e6}]}return h}(function(e){var t=e.type;return function(e){return"Line"===e}(t)?"lineChartFormat":x(t)?"pieChartFormat":D(t)?"bubbleFormat":k(t)?"jsonFormat":"arrayFormat"}(e),_.split(e.yaxisdatakey,",").length,e.shape)},B=function(e,t){return!("Min"!==e[t+"domain"]||(n=e.type,!function(e){return"Column"===e}(n)&&!N(n)));var n},G=function(e){return!(!_.isFinite(e.min)||!_.isFinite(e.max))},V=function(e){var t=Math.floor(e);return Math.abs(e)-t>0?e-.1:t-1},U=function(e,t){return isNaN(parseInt(e,10))?t(e,"value"):e},W=function(e,t){return e=e||"%x",d3.time.format(e)(new Date(moment(moment(t).format()).valueOf()))},q=function(e,t){var n,i,o;return n=d3.format(e)(t),e?(i=b[e]&&b[e].divider||0,(o=b[e]&&b[e].prefix)&&0!==i&&(n=d3.format(".2f")(t/i)+o)):n=t>=1e3?d3.format(".1s")(t):t,n},z=function(e){return"false"!==e&&!1!==e&&("true"===e||!0===e||"hide"!==e)},H=function(e,t,n,i){e.tooltip.contentGenerator((function(e){var o,r=e.data.x;return o=q(t.ynumberformat,e.data.y),x(n.type)&&(i=e.data.x,r=""),'<table><tbody><tr class="value"><b>'+r+'</b></tr><tr><td class="legend-color-guide"><div style="background-color:'+e.color+';"></div></td><td class="key">'+i+'</td><td class="value">'+o+"</td></tr></tbody></table>"}))},Y=function(e,t,n,i,o){i=function(e,t){return t&&!r.isEmptyObject(t)||(t={}),_.forEach(m,(function(n){_.isUndefined(t[n])&&(t[n]=e[n])})),t}(e,i);var a,s,l,c,u,v,y,b,w,P=[],O={},S={};switch(e.type){case"Column":v=U(i.barspacing,L)||f.medium,a=nv.models.multiBarChart().x((function(e){return e.x})).y((function(e){return e.y})).reduceXTicks(i.reducexticks).rotateLabels(0).showControls(!1).stacked("Stacked"===i.viewtype).groupSpacing(v);break;case"Cumulative Line":a=nv.models.cumulativeLineChart().x((function(e){return e[0]})).y((function(e){return e[1]})).showControls(!1).useInteractiveGuideline(i.tooltips).interpolate(i.interpolation);break;case"Line":a=nv.models.lineChart().useInteractiveGuideline(i.tooltips).interpolate(i.interpolation);break;case"Area":a=nv.models.stackedAreaChart().x((function(e){return e[0]})).y((function(e){return e[1]})).clipEdge(!0).showControls(!1).style(i.areaviewtype).useInteractiveGuideline(i.tooltips).interpolate(i.interpolation);break;case"Bar":v=U(i.barspacing,L)||f.medium,a=nv.models.multiBarHorizontalChart().x((function(e){return e.x})).y((function(e){return e.y})).showControls(!1).stacked("Stacked"===i.viewtype).showValues(i.showvalues).groupSpacing(v);break;case"Pie":case"Donut":c=function(e,t,n){var i={};switch(e){case"hide":i.showlabels=!1;break;case"inside":i.showlabels=!0,i.showlabelsoutside=!1;break;case"outside":i.showlabels=!0,i.showlabelsoutside=!0}return i}(i.showlabels,i.showlabelsoutside),u=U(i.donutratio,F)||g.medium,a=nv.models.pieChart().x((function(e){return e.x})).y((function(e){return e.y})).showLabels(c.showlabels).labelType(i.labeltype).valueFormat(d3.format("%")).title(i.centerlabel).labelThreshold(i.labelthreshold||.01).labelsOutside(c.showlabelsoutside),I(e.type)&&a.donut(!0).donutRatio(u),"key-value"===i.labeltype&&a.labelType((function(e){return e.data.x+" "+e.data.y}));break;case"Bubble":a=nv.models.scatterChart().x((function(e){return e.x})).y((function(e){return e.y})).showDistX(i.showxdistance).showDistY(i.showydistance)}return t&&(O.min=t.min.x||t.min[0],O.max=t.max.x||t.max[0],G(O)&&(O.min=V(O.min),a.xDomain([O.min,O.max]))),n&&(S.min=n.min.y||n.min[1],S.max=n.max.y||n.max[1],G(S)&&(S.min=V(S.min),a.yDomain([S.min,S.max]))),a.legend.vers(i.legendtype&&i.legendtype.toLowerCase()||"furious"),_.includes(p,e.type)||(a=nv.models.multiBarChart().x((function(e){return e.x})).y((function(e){return e.y}))),x(e.type)?("percent"===i.labeltype?a.valueFormat(d3.format("%")):a.valueFormat((function(e){return q(i.ynumberformat,e)})),H(a,i,e)):(a.showXAxis(i.showxaxis).showYAxis(i.showyaxis),s=i.xaxislabel||r.prettifyLabels(e.xaxisdatakey)||"x caption",l=i.yaxislabel||r.prettifyLabels(e.yaxisdatakey)||"y caption",e.yaxisdatakey&&e.yaxisdatakey.split(",").length>1&&(w=!0),w||D(e.type)||H(a,i,e,l),s+=i.xunits?"("+i.xunits+")":"",l+=i.yunits?"("+i.yunits+")":"",a.xAxis.axisLabel(s).axisLabelDistance(i.xaxislabeldistance).staggerLabels(i.staggerlabels),i.xdateformat||o&&!D(e.type)?M(e.type)?a.xAxis.tickFormat((function(t){return b=o?d[t-1]:e.xDataKeyArr[t],W(i.xdateformat,b)})):a.xAxis.tickFormat((function(e){return W(i.xdateformat,e)})):i.xnumberformat?a.xAxis.tickFormat((function(e){return q(i.xnumberformat,e)})):M(e.type)&&a.xAxis.tickFormat((function(t){return e.xDataKeyArr[t]})),a.yAxis.axisLabel(l).axisLabelDistance(i.yaxislabeldistance).staggerLabels(i.staggerlabels).tickFormat((function(e){return q(i.ynumberformat,e)})),C(e.type)&&a.valueFormat((function(e){return q(i.ynumberformat,e)}))),_.isString(i.customcolors)&&i.customcolors&&(P=_.split(i.customcolors,",")),_.isArray(i.customcolors)&&(P=i.customcolors),y=z(i.showlegend),a.showLegend(y).margin({top:i.offsettop,right:i.offsetright,bottom:i.offsetbottom,left:i.offsetleft}).color(P.length?P:h[i.theme].colors),a.tooltip.enabled(i.tooltips),e.message=i.nodatamessage||"No data found",a.noData(e.message),M(e.type)&&e.highlightpoints&&a.dispatch.on("stateChange",(function(){setTimeout((function(){return K(e)}),100)})),!e.showlegend||"Donut"!==e.type&&"Pie"!==e.type||"right"===e.showlegend&&a.legendPosition("right"),a},K=function(e,t){var n=t?null:e.$id;M(e.type)&&(function(e,t){t=t||1.5,(e?d3.select("#wmChart"+e+" svg"):d3.select(w+" svg")).selectAll(".nv-line").style({"stroke-width":t})}(n,e.linethickness),function(e,t){var n=e?d3.select("#wmChart"+e+" svg"):d3.select(w+" svg");t?n.selectAll(".nv-point").style({"stroke-width":"6px","fill-opacity":".95","stroke-opacity":".95"}):n.selectAll(".nv-point").style({"stroke-width":"0px","fill-opacity":"0"})}(n,e.highlightpoints)),e.showlegend&&function(e,t,n){var i,o=z(e.showlegend),r=n?"#wmChart"+n:w,a=d3.select(r+" .nv-legendWrap");if(o&&a[0][0]&&"bottom"===t){var s=a[0][0].getBoundingClientRect().height,l=d3.select(r+" .nv-wrap"),c=l&&l.attr("transform")?l.attr("transform").replace(/, /g,","):"",p=/translate\(\s*([^\s,)]+)[ ,]([^\s,)]+)/.exec(c);a.attr("transform","translate(0 , "+(0===(i=$(r+" svg>.nvd3.nv-wrap")[0].getBoundingClientRect().height)&&(i=$(r+" svg")[0].getBoundingClientRect().height-(s+15)),i-s-5+")")),p&&l.attr("transform","translate("+p[1]+",5)")}}(e,e.showlegend,n)},Q={widgetType:"wm-chart",hostClass:"app-chart"},X="none",J=["aggregation","aggregationcolumn","groupby","orderby"],Z={Column:"rect.nv-bar",Bar:"g.nv-bar",Area:".nv-stackedarea .nv-point","Cumulative Line":".nv-cumulativeLine .nv-scatterWrap path.nv-point",Line:".nv-lineChart .nv-scatterWrap path.nv-point",Pie:".nv-pieChart .nv-slice path",Donut:".nv-pieChart .nv-slice path",Bubble:".nv-scatterChart .nv-point-paths path"},ee={fontunit:"font-size",fontsize:"font-size",color:"fill",fontfamily:"font-family",fontweight:"font-weight",fontstyle:"font-style",textdecoration:"text-decoration"},te={average:"AVG",count:"COUNT",maximum:"MAX",minimum:"MIN",sum:"SUM"},ne=function(e){return!0===e||"true"===e||!1!==e&&"false"!==e&&e},ie=ne,oe=function(e){var t,n=[],i=[];return _.forEach(_.split(e,","),(function(e){t=_.split(e,":"),n.push(t[0]),i.push(t[1])})),{columns:n,orders:i}},re=oe,ae=function(e){return e?e.replace(/\./g,"$"):null},se=ae,le=function(e,t){d3.select("#wmChart"+t+" svg").selectAll("text").style(e)},ce=le,pe=function(e){var t=90*(e.startAngle+e.endAngle)/Math.PI-90;return t>90?t-180:t},ue=pe,de=function(e){function t(t,n){var o=e.call(this,t,Q)||this;return o.app=n,o.iconclass="",o.nonPrimaryColumns=[],o.xDataKeyArr=[],o.chartData=[],o._processedData=[],o._subsciptions=[],o._plotChartProxy=_.debounce(o.plotChartProxy.bind(o),100),o.redraw=o._plotChartProxy.bind(o),i.styler(o.nativeElement,o,i.APPLY_STYLES_TYPE.CONTAINER,["fontsize","fontunit","color","fontfamily","fontweight","fontstyle","textdecoration"]),o.$id=o.widgetId||Math.random(),r.removeAttr(o.nativeElement,"title"),o.chartReady=!1,o.binddataset=o.nativeElement.getAttribute("dataset.bind"),o._subsciptions.push(o.app.subscribe("toggle-variable-state",o.handleLoading.bind(o))),o._subsciptions.push(o.app.subscribe("iscroll-start",(function(){o.hideTooltip()}))),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.isGroupByEnabled=function(){return!(!this.groupby||this.groupby===X)},t.prototype.isValidAxis=function(){return!this.binddataset||this.xaxisdatakey&&this.yaxisdatakey},t.prototype.isAggregationEnabled=function(){return!(!this.isGroupByEnabled()||this.aggregation===X||!this.aggregationcolumn)},t.prototype.isDataFilteringEnabled=function(){return this.isAggregationEnabled()||!this.isVisuallyGrouped&&this.orderby},t.prototype.getxAxisVal=function(e,t,n){var i=_.get(e,t);return M(this.type)&&!r.isNumberType(this.xAxisDataType)?(this.xDataKeyArr.push(i),n):i},t.prototype.getXMinMaxValues=function(e){if(e){var t={};return t.min=_.minBy(e.values,(function(e){return e.x||e[0]})),t.max=_.maxBy(e.values,(function(e){return e.x||e[0]})),t}},t.prototype.getYMinMaxValues=function(e){var t={},n=[],i=[];if(e)return _.forEach(e,(function(e){n.push(_.minBy(e.values,(function(e){return e.y||e[1]}))),i.push(_.maxBy(e.values,(function(e){return e.y||e[1]})))})),t.min=_.minBy(n,(function(e){return e.y||e[1]})),t.max=_.maxBy(i,(function(e){return e.y||e[1]})),t},t.prototype.getValidData=function(e){return 1===e.length&&void 0===e[0]?[]:e},t.prototype.valueFinder=function(e,t,n,i,o){var r,a=this.getxAxisVal(e,t,i),s=_.get(e,n),l=parseFloat(s)||s,c=parseFloat(e[this.bubblesize])||2,p={};return k(this.type)?(p.x=a,p.y=l,D(this.type)&&(p.size=c,p.shape=o||"circle")):(r=this.type,_.includes(S,r)&&(p=[a,l])),p._dataObj=e,p},t.prototype.setErrMsg=function(e){this.showNoDataMsg&&(this.showContentLoadError=!0,this.invalidConfig=!0,this.errMsg="")},t.prototype.processChartData=function(){var e=this;if(this.sampleData=j(this),this.xDataKeyArr=[],!this.binddataset)return this.xDataKeyArr=d,this.sampleData;if(!this.chartData||!this.chartData.length)return[];var t,n=[],i=[],o=[],a=this.xaxisdatakey,s=this.yaxisdatakey?this.yaxisdatakey.split(","):[],l=this.chartData;return _.isArray(l)&&(x(this.type)?(t=s[0],n=_.map(l,(function(n,i){if(!r.isEmptyObject(l[i]))return e.valueFinder(l[i],a,t)})),n=this.getValidData(n)):(D(this.type)&&(i="random"===this.shape?u:this.shape),s.forEach((function(t,s){o=_.map(l,(function(n,o){if(!r.isEmptyObject(l[o]))return e.valueFinder(l[o],a,t,o,_.isArray(i)&&i[s]||e.shape)})),o=e.getValidData(o),n.push({values:o,key:r.prettifyLabels(t)})})))),n},t.prototype.setChartData=function(e){e&&(this._processedData=e)},t.prototype.getChartData=function(){return this._processedData},t.prototype.getVisuallyGroupedData=function(e,t){var n,i,o=this,r={},a=[],s=[],l=N(this.type),c=_.first(_.split(this.yaxisdatakey,","));return this.xDataKeyArr=[],e=_.orderBy(e,_.split(this.groupby,",")),this.orderby&&(n=oe(this.orderby),e=_.orderBy(e,n.columns,n.orders)),e=_.groupBy(e,t),l&&(i=_.max(_.map(e,(function(e){return e.length})))),_.forEach(e,(function(e,t){a=N?_.fill(new Array(i),[0,0]):[],_.forEachRight(e,(function(e,t){a[t]=o.valueFinder(e,o.xaxisdatakey,c,t)})),r={key:t,values:a},s.push(r)})),s},t.prototype.getGroupingDetails=function(){var e=this;if(this.isGroupByEnabled()&&!this.isAggregationEnabled()){var t,n,i,o=!1,r=[],a=this.groupby&&this.groupby!==X?this.groupby.split(","):[],s=this.yaxisdatakey?this.yaxisdatakey.split(","):[];return a.length>1&&(a.every((function(n,r){return e.xaxisdatakey===n||-1!==$.inArray(n,s)||(o=!0,t=n,i=r,a.splice(i,1),!1)})),t&&r.push(t),a.length&&(r=_.concat(r,a))),this.xaxisdatakey!==this.aggregationcolumn&&r.push(this.xaxisdatakey),_.forEach(s,(function(t){t!==e.aggregationcolumn&&r.push(t)})),n=r.join(","),this.isVisuallyGrouped=o,{expression:n,isVisuallyGrouped:o,visualGroupingColumn:t}}return{expression:"",isVisuallyGrouped:!1,visualGroupingColumn:""}},t.prototype.getAggregatedData=function(e){var t,n,i,o=this,a=this.datasource,s=this.yaxisdatakey?this.yaxisdatakey.split(","):[],l={},c=[],p=[];a&&(this.isGroupByEnabled()&&(p=_.split(this.groupby,",")),this.orderby&&(t=_.replace(this.orderby,/:/g," "),c=_.uniq(_.concat(c,p,[this.aggregationcolumn])),i=oe(this.orderby).columns,_.forEach(_.intersection(c,i),(function(e){n=ae(e),t=_.replace(t,e,n)}))),this.isAggregationEnabled()&&(l.groupByFields=p,l.aggregations=[{field:this.aggregationcolumn,type:te[this.aggregation],alias:ae(this.aggregationcolumn)}]),a.execute("getAggregatedData",{aggregations:l,sort:t}).then((function(t){var n=[],i=ae(o.aggregationcolumn),a=ae(o.xaxisdatakey),l=[];s.forEach((function(e){return l.push(ae(e))})),_.forEach(t.body.content,(function(e){var t={};o.isAggregationEnabled()&&(t[o.aggregationcolumn]=e[i],t[o.aggregationcolumn]=_.get(e,i)||_.get(e,o.aggregationcolumn)),t[o.xaxisdatakey]=_.get(e,a)||_.get(e,o.xaxisdatakey),s.forEach((function(n,i){t[n]=e[l[i]],t[n]=_.get(e,l[i])||_.get(e,n)})),n.push(t)})),o.chartData=n,r.triggerFn(e)}),(function(){o.chartData=[],o.setErrMsg("MESSAGE_ERROR_FETCH_DATA"),r.triggerFn(e)})))},t.prototype.setLabelsMaxWidth=function(){var e,t,n,i,o,r,a,s,l,c,p,u,d=parseInt(this.fontsize,10)||12,h=C(this.type);(e=$("#wmChart"+this.$id+" svg").find("g.nv-x").find("g.tick").find("text")).each((function(){var e,n,r=$(this);if(r.text()&&"1"===r.css("opacity"))return e=r.parent().attr("transform").split(","),i=parseFloat(e[0].substr(10)),o=parseFloat(e[1]||"0"),!h&&i>0?n=i:o>0&&(n=o),t?(t=n-t,!1):(t=n,!0)})),h?(c=$("#wmChart"+this.$id+" svg>g.nv-wrap>g>g.nv-barsWrap")[0],p=$("#wmChart"+this.$id+" svg>g.nv-wrap>g>g.nv-y")[0],u=$("#wmChart"+this.$id+" svg")[0],r=c?c.getBoundingClientRect().height:0,l=p?u.getBoundingClientRect().width-p.getBoundingClientRect().width:u.getBoundingClientRect().width,n=Math.round(l/d),t<d&&(a=r/d,s=Math.ceil(this.chartData.length/a),d3.select("#wmChart"+this.$id+" svg").select("g.nv-x").selectAll("g.tick").select("text").each((function(e,t){t%s!=0&&d3.select(this).attr("opacity",0)})))):n=Math.round(t/d),n=Math.abs(n),e.each((function(){this.textContent.length>n&&(this.textContent=this.textContent.substr(0,n)+"...")}))},t.prototype.getDefaultColumns=function(){var e,t,n,i,o=[],a=this.datasource.execute(r.DataSource.Operation.GET_PROPERTIES_MAP)||[];for(n=0;n<a.length&&o.length<=2;n+=1)e=a[n].type,!a[n].isRelated&&r.isNumberType(e)?o.push(a[n].fieldName):"string"!==e||t||(t=a[n].fieldName);return t&&o.length>0&&!D(this.type)&&(i=o[0],o[0]=t,o[1]=i),o},t.prototype.attachClickEvent=function(){var e,t=this;d3.select("#wmChart"+this.$id+" svg").selectAll(Z[this.type]).style("pointer-events","all").on("click",(function(n,i){switch(t.type){case"Column":case"Bar":e=n._dataObj;break;case"Pie":case"Donut":e=n.data._dataObj;break;case"Area":case"Cumulative Line":case"Line":e=n[0]._dataObj;break;case"Bubble":e=n.data.point[4]._dataObj}t.selecteditem=e,t.invokeEventCallback("select",{$event:d3.event,selectedChartItem:n,selectedItem:t.selecteditem})}))},t.prototype.postPlotProcess=function(e){var t,n,i,o,a=this,s={},l=this.$element;K(this),x(this.type)?this.showlabelsoutside||(n=(t=d3.select("#wmChart"+this.$id+" svg")).select(".nv-pieLabels").selectAll(".nv-label"),i=t.select(".nv-pie").selectAll(".nv-slice"),o=[],i&&i.length&&(i.each((function(){d3.select(this).attr("transform",(function(e){o.push(pe(e))}))})),n.each((function(e,t){var n=d3.select(this);$(n[0][0]).find("text").attr("transform","rotate("+o[t]+")")})))):this.setLabelsMaxWidth(),_.forEach(ee,(function(e,t){s[e]="fontsize"===t||"fontunit"===t?a.fontsize+a.fontunit:a[t]})),le(s,this.$id),r.triggerFn(this._resizeFn&&this._resizeFn.clear),this._resizeFn=nv.utils.windowResize((function(){l[0].getBoundingClientRect().height&&(e.update(),K(a),x(a.type)||a.setLabelsMaxWidth())}))},t.prototype.configureChart=function(){var e,t,n,i;if(this._processedData.length>0&&(B(this,"x")&&(e=this.binddataset?this.getXMinMaxValues(this._processedData[0]):{min:{x:1},max:{x:5}}),B(this,"y")&&(t=this.binddataset?this.getYMinMaxValues(this._processedData):{min:{y:1},max:{y:5}})),!x(this.type)||this.binddataset&&this.scopedataset||(this._processedData=r.getClonedObject(this.scopedataset||this._processedData)),n=Y(this,e,t,null,!this.binddataset),_.isArray(this._processedData)){var o=$("#wmChart"+this.$id+" svg").find("g.nv-x").find("g.tick");return o&&o.length&&o.remove(),(i=this.invokeEventCallback("beforerender",{chartInstance:n}))&&(n=i),this.chart=n,d3.select("#wmChart"+this.$id+" svg").datum(this._processedData).call(this.chart),this.postPlotProcess(n),n}},t.prototype.plotChart=function(){var e=this,t=this.$element;this.chartData=this.invokeEventCallback("transform")||this.chartData,this.isVisuallyGrouped&&!x(this.type)?this._processedData=this.chartData:this._processedData=this.processChartData(),t[0].getBoundingClientRect().height&&(this.clearCanvas&&(t.find("svg").replaceWith("<svg></svg>"),this.clearCanvas=!1),this.isValidAxis()||(this._processedData=[]),nv.addGraph((function(){return e.configureChart()}),(function(){setTimeout((function(){e.attachClickEvent()}),600)})),this.isLoadInProgress=!1)},Object.defineProperty(t.prototype,"isLiveVariable",{get:function(){var e=this.datasource;return e&&"wm.LiveVariable"===e.category},enumerable:!1,configurable:!0}),t.prototype.plotChartProxy=function(){var e=this;this.showContentLoadError=!1,this.invalidConfig=!1,this.isLoadInProgress=!0;var t=this.getGroupingDetails();this.binddataset&&this.isLiveVariable&&(this.filterFields||this.isDataFilteringEnabled())?this.getAggregatedData((function(){return e.plotChart()})):(this.dataset&&this.isLiveVariable&&(this.chartData=this.dataset,this.isGroupByEnabled()&&t.isVisuallyGrouped&&(this.chartData=this.getVisuallyGroupedData(this.chartData,t.visualGroupingColumn))),this.plotChart())},t.prototype.setDefaultAxisOptions=function(){var e=this.getDefaultColumns();this.xaxisdatakey=e[0]||null,this.yaxisdatakey=e[1]||null},t.prototype.getCutomizedOptions=function(e,t){var n,i=_.split(this.groupby,","),o=_.split(this.aggregationcolumn,",");if(!this.binddataset)return t;switch(this.axisoptions||(this.axisoptions=t),e){case"xaxisdatakey":this.isGroupByEnabled()&&(n=i);break;case"yaxisdatakey":this.isAggregationEnabled()?n=o:this.isLiveVariable&&(n=this.numericColumns);break;case"groupby":this.isLiveVariable&&this.nonPrimaryColumns&&this.nonPrimaryColumns.length&&(n=this.nonPrimaryColumns);break;case"aggregationcolumn":this.isLiveVariable&&this.isAggregationEnabled()&&"count"!==this.aggregation&&(n=this.numericColumns);break;case"orderby":this.isLiveVariable&&this.isAggregationEnabled()&&(n=_.uniq(_.concat(i,o)));break;case"bubblesize":this.numericColumns&&this.numericColumns.length&&(n=this.numericColumns)}return n||t||this.axisoptions},t.prototype.setNumericandNonPrimaryColumns=function(){var e,t,n=this,i=this.datasource.execute(r.DataSource.Operation.GET_PROPERTIES_MAP);this.numericColumns=[],this.nonPrimaryColumns=[],this.dataset&&!_.isEmpty(i)&&(e=[]),e&&(_.forEach(Object.keys(e),(function(i){t=e[i].type,r.isNumberType(t)&&n.numericColumns.push(i),"true"!==e[i].isRelatedPk&&e[i].isPrimaryKey||n.nonPrimaryColumns.push(i)})),this.numericColumns=this.numericColumns.sort(),this.nonPrimaryColumns=this.nonPrimaryColumns.sort())},t.prototype.handleDataSet=function(e){this.errMsg="",e||this.binddataset||(this.isVisuallyGrouped=!1,this.axisoptions=null),this.chartData=this.isLiveVariable?e||"":e&&""===e.dataValue&&1===_.keys(e).length?"":e,!_.isArray(this.chartData)&&_.isObject(this.chartData)&&(this.chartData=[this.chartData]),e&&e.filterFields&&(this.filterFields=e.filterFields),this.chartData&&this._plotChartProxy()},t.prototype.setDonutCenterLabel=function(e){var t;(t=d3.select("#wmChart"+this.$id+" svg").select(".nv-wrap.nv-pie").select(".nv-pie")).text(""),t.append("text").attr("dy",".35em").attr("text-anchor","middle").attr("class","nv-pie-title").text(e).each((function(e){var t=d3.select(this),n=d3.select(this.parentElement),i=Number(n.node().getBoundingClientRect().width)-30,o=this.getComputedTextLength();t.attr("data-scale",i/o)})).style("font-size",(function(){var e=16*d3.select(this).attr("data-scale");return e>24?24:e+"px"}))},t.prototype.onPropertyChange=function(t,n,i){switch(e.prototype.onPropertyChange.call(this,t,n,i),t){case"dataset":this.handleDataSet(n);break;case"centerlabel":this.chart&&(this.chart.title(n),this.setDonutCenterLabel(n));break;case"type":x(this.type)?(this.offsettop=20,this.offsetright=0,this.offsetbottom=0,this.offsetleft=0):"Pie"!==i&&"Donut"!==i||(this.offsettop=25,this.offsetright=25,this.offsetbottom=55,this.offsetleft=75),i!==n&&(this.clearCanvas=!0),this._plotChartProxy();break;default:this._plotChartProxy()}_.includes(J,t)&&this._plotChartProxy()},t.prototype.handleLoading=function(e){var t=this.datasource;t&&t.execute(r.DataSource.Operation.IS_API_AWARE)&&r.isDataSourceEqual(e.variable,t)&&(this.variableInflight=e.active,this.isLoadInProgress=e.active)},t.prototype.hideTooltip=function(){d3.selectAll(".nvtooltip").style("opacity",0)},t.prototype.onStyleChange=function(t,n,i){var o={};switch(e.prototype.onStyleChange.call(this,t,n,i),t){case"fontsize":case"fontunit":case"color":case"fontfamily":case"fontweight":case"fontstyle":case"textdecoration":o[ee[t]]="fontsize"===t||"fontunit"===t?this.fontsize+this.fontunit:n,le(o,this.$id)}},t.prototype.ngAfterViewInit=function(){e.prototype.ngAfterViewInit.call(this),_.includes(["outside","inside","hide"],this.showlabels)||(this.showlabels=ne(this.showlabels),this.showlabelsoutside=ne(this.showlabelsoutside),this.showlabels=this.showlabels?this.showlabelsoutside?"outside":"inside":"hide"),this.theme||(this.theme=x(this.type)?"Azure":"Terrestrial"),this.nativeElement.setAttribute("id","wmChart"+this.$id),this.binddataset||this.nativeElement.getAttribute("scopedataset")||this._plotChartProxy()},t.prototype.ngOnDestroy=function(){this.hideTooltip(),this._subsciptions.forEach((function(e){e()})),e.prototype.ngOnDestroy.call(this)},t}(i.StylableComponent);de.initializeProps=c(),de.decorators=[{type:t.Component,args:[{selector:"div[wmChart]",template:'<div class="panel-heading" *ngIf="title">\n <h3 class="panel-title">\n <div class="pull-left"><i class="app-icon panel-icon {{iconclass}}" [class.ng-hide]="!iconclass"></i></div>\n <div class="heading" [innerHTML]="title"></div>\n <div class="description" *ngIf="subheading" [innerHTML]="subheading"></div>\n </h3>\n</div>\n<div class="app-chart-inner" [ngClass]="{\'loading\':isLoadInProgress, \'panel-body\': title}">\n <svg></svg>\n <div class="wm-content-info readonly-wrapper" *ngIf="showContentLoadError && showNoDataMsg">\n <p class="wm-message" [title]="hintMsg" [ngClass]="{\'error\': invalidConfig}" [innerText]="errMsg"></p>\n </div>\n <div wmSpinner show.bind="isLoadInProgress" caption.bind="loadingdatamsg"></div>\n</div>\n',providers:[i.provideAsWidgetRef(de)],encapsulation:t.ViewEncapsulation.None,styles:[".nvd3 .nv-axis line,.nvd3 .nv-axis path{fill:none;shape-rendering:crispEdges}.nv-brush .extent,.nvd3 .background path,.nvd3 .nv-axis line,.nvd3 .nv-axis path{shape-rendering:crispEdges}.nv-distx,.nv-disty,.nv-noninteractive,.nvd3 .nv-axis,.nvd3.nv-pie .nv-label,.nvd3.nv-sparklineplus g.nv-hoverValue{pointer-events:none}.nvd3 .nv-axis{opacity:1}.nvd3 .nv-axis.nv-disabled,.nvd3 .nv-controlsWrap .nv-legend .nv-check-box .nv-check{opacity:0}.nvd3 .nv-axis path{stroke:#000;stroke-opacity:.75}.nvd3 .nv-axis path.domain{stroke-opacity:.75}.nvd3 .nv-axis.nv-x path.domain{stroke-opacity:0}.nvd3 .nv-axis line{stroke:#e5e5e5}.nvd3 .nv-axis .zero line,.nvd3 .nv-axis line.zero{stroke-opacity:.75}.nvd3 .nv-axis .nv-axisMaxMin text{font-weight:700}.nvd3 .x .nv-axis .nv-axisMaxMin text,.nvd3 .x2 .nv-axis .nv-axisMaxMin text,.nvd3 .x3 .nv-axis .nv-axisMaxMin text{text-anchor:middle}.nvd3 .nv-bars rect{fill-opacity:.75;transition:fill-opacity .25s linear}.nvd3 .nv-bars rect.hover{fill-opacity:1}.nvd3 .nv-bars .hover rect{fill:#add8e6}.nvd3 .nv-bars text{fill:transparent}.nvd3 .nv-bars .hover text{fill:#000}.nvd3 .nv-discretebar .nv-groups rect,.nvd3 .nv-multibar .nv-groups rect,.nvd3 .nv-multibarHorizontal .nv-groups rect{stroke-opacity:0;transition:fill-opacity .25s linear}.with-transitions .nv-candlestickBar .nv-ticks .nv-tick,.with-transitions .nvd3 .nv-groups .nv-point{transition:stroke-width .25s linear,stroke-opacity .25s linear}.nvd3 .nv-candlestickBar .nv-ticks rect:hover,.nvd3 .nv-discretebar .nv-groups rect:hover,.nvd3 .nv-multibar .nv-groups rect:hover,.nvd3 .nv-multibarHorizontal .nv-groups rect:hover{fill-opacity:1}.nvd3 .nv-discretebar .nv-groups text,.nvd3 .nv-multibarHorizontal .nv-groups text{font-weight:700;fill:#000;stroke:transparent}.nvd3 .nv-boxplot circle{fill-opacity:.5}.nvd3 .nv-boxplot circle:hover,.nvd3 .nv-boxplot rect:hover{fill-opacity:1}.nvd3 line.nv-boxplot-median{stroke:#000}.nv-boxplot-tick:hover{stroke-width:2.5px}.nvd3.nv-bullet{font:10px sans-serif}.nvd3.nv-bullet .nv-measure{fill-opacity:.8}.nvd3.nv-bullet .nv-measure:hover{fill-opacity:1}.nvd3.nv-bullet .nv-marker{stroke:#000;stroke-width:2px}.nvd3.nv-bullet .nv-markerTriangle{stroke:#000;fill:#fff;stroke-width:1.5px}.nvd3.nv-bullet .nv-markerLine{stroke:#000;stroke-width:1.5px}.nvd3.nv-bullet .nv-tick line{stroke:#666;stroke-width:.5px}.nvd3.nv-bullet .nv-range.nv-s0{fill:#eee}.nvd3.nv-bullet .nv-range.nv-s1{fill:#ddd}.nvd3.nv-bullet .nv-range.nv-s2{fill:#ccc}.nvd3.nv-bullet .nv-title{font-size:14px;font-weight:700}.nvd3.nv-bullet .nv-subtitle{fill:#999}.nvd3.nv-bullet .nv-range{fill:#bababa;fill-opacity:.4}.nvd3.nv-bullet .nv-range:hover{fill-opacity:.7}.nvd3.nv-candlestickBar .nv-ticks .nv-tick{stroke-width:1px}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.hover{stroke-width:2px}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.positive rect{stroke:#2ca02c;fill:#2ca02c}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.negative rect{stroke:#d62728;fill:#d62728}.nvd3.nv-candlestickBar .nv-ticks line{stroke:#333}.nv-force-node{stroke:#fff;stroke-width:1.5px}.nv-force-link{stroke:#999;stroke-opacity:.6}.nv-force-node text{stroke-width:0}.nvd3 .nv-check-box .nv-box{fill-opacity:0;stroke-width:2}.nvd3 .nv-check-box .nv-check{fill-opacity:0;stroke-width:4}.nvd3 .nv-series.nv-disabled .nv-check-box .nv-check{fill-opacity:0;stroke-opacity:0}.nvd3.nv-linePlusBar .nv-bar rect{fill-opacity:.75}.nvd3.nv-linePlusBar .nv-bar rect:hover{fill-opacity:1}.nvd3 .nv-groups path.nv-line{fill:none}.nvd3 .nv-groups path.nv-area{stroke:none}.nvd3.nv-line .nvd3.nv-scatter .nv-groups .nv-point{fill-opacity:0;stroke-opacity:0}.nvd3.nv-scatter.nv-single-point .nv-groups .nv-point{fill-opacity:.5!important;stroke-opacity:.5!important}.nvd3 .nv-groups .nv-point.hover,.nvd3.nv-scatter .nv-groups .nv-point.hover{stroke-width:7px;fill-opacity:.95!important;stroke-opacity:.95!important}.nvd3 .nv-point-paths path{stroke:#aaa;stroke-opacity:0;fill:#eee;fill-opacity:0}.nvd3 .nv-indexLine{cursor:ew-resize}svg.nvd3-svg{-webkit-user-select:none;-moz-user-select:none;user-select:none;display:block;width:100%;height:100%}.nvtooltip.with-3d-shadow,.with-3d-shadow .nvtooltip{box-shadow:0 5px 10px #0003;border-radius:5px}.nvd3 text{font:400 12px Arial,sans-serif}.nvd3 .title{font:700 14px Arial,sans-serif}.nvd3 .nv-background{fill:#fff;fill-opacity:0}.nvd3.nv-noData{font-size:18px;font-weight:700}.nv-brush .extent{fill-opacity:.125}.nv-brush .resize path{fill:#eee;stroke:#666}.nvd3 .nv-legend .nv-series{cursor:pointer}.nvd3 .nv-legend .nv-disabled circle{fill-opacity:0}.nvd3 .nv-brush .extent{fill-opacity:0!important}.nvd3 .nv-brushBackground rect{stroke:#000;stroke-width:.4;fill:#fff;fill-opacity:.7}@media print{.nvd3 text{stroke-width:0;fill-opacity:1}}.nvd3.nv-ohlcBar .nv-ticks .nv-tick{stroke-width:1px}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.hover{stroke-width:2px}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.positive{stroke:#2ca02c}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.negative{stroke:#d62728}.nvd3 .background path{fill:none;stroke:#eee;stroke-opacity:.4}.nvd3 .foreground path{fill:none;stroke-opacity:.7}.nvd3 .nv-parallelCoordinates-brush .extent{fill:#fff;fill-opacity:.6;stroke:gray;shape-rendering:crispEdges}.nvd3 .nv-parallelCoordinates .hover{fill-opacity:1;stroke-width:3px}.nvd3 .missingValuesline line{fill:none;stroke:#000;stroke-width:1;stroke-opacity:1;stroke-dasharray:5,5}.nvd3.nv-pie .nv-pie-title{font-size:24px;fill:#13c4f996}.nvd3.nv-pie .nv-slice text{stroke:#000;stroke-width:0}.nvd3.nv-pie path{transition:fill-opacity .25s linear,stroke-width .25s linear,stroke-opacity .25s linear;stroke:#fff;stroke-width:1px;stroke-opacity:1;fill-opacity:.7}.nvd3.nv-pie .hover path{fill-opacity:1}.nvd3.nv-pie .nv-label rect{fill-opacity:0;stroke-opacity:0}.nvd3 .nv-groups .nv-point.hover{stroke-width:20px;stroke-opacity:.5}.nvd3 .nv-scatter .nv-point.hover{fill-opacity:1}.nvd3.nv-sparkline path{fill:none}.nvd3.nv-sparklineplus .nv-hoverValue line{stroke:#333;stroke-width:1.5px}.nvd3.nv-sparklineplus,.nvd3.nv-sparklineplus g{pointer-events:all}.nvd3 .nv-interactiveGuideLine,.nvtooltip{pointer-events:none}.nvd3 .nv-hoverArea{fill-opacity:0;stroke-opacity:0}.nvd3.nv-sparklineplus .nv-xValue,.nvd3.nv-sparklineplus .nv-yValue{stroke-width:0;font-size:.9em;font-weight:400}.nvd3.nv-sparklineplus .nv-yValue{stroke:#f66}.nvd3.nv-sparklineplus .nv-maxValue{stroke:#2ca02c;fill:#2ca02c}.nvd3.nv-sparklineplus .nv-minValue{stroke:#d62728;fill:#d62728}.nvd3.nv-sparklineplus .nv-currentValue{font-weight:700;font-size:1.1em}.nvtooltip h3,.nvtooltip table td.key{font-weight:400}.nvd3.nv-stackedarea path.nv-area{fill-opacity:.7;stroke-opacity:0;transition:fill-opacity .25s linear,stroke-opacity .25s linear}.nvd3.nv-stackedarea path.nv-area.hover{fill-opacity:.9}.nvd3.nv-stackedarea .nv-groups .nv-point{stroke-opacity:0;fill-opacity:0}.nvtooltip{position:absolute;color:#000;padding:1px;z-index:10000;display:block;font-family:Arial,sans-serif;font-size:13px;text-align:left;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;background:rgba(255,255,255,.8);border:1px solid rgba(0,0,0,.5);border-radius:4px}.nvtooltip h3,.nvtooltip p{margin:0;text-align:center}.nvtooltip.with-transitions,.with-transitions .nvtooltip{transition:opacity 50ms linear;transition-delay:.2s}.nvtooltip.x-nvtooltip,.nvtooltip.y-nvtooltip{padding:8px}.nvtooltip h3{padding:4px 14px;line-height:18px;background-color:#f7f7f7bf;color:#000;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.nvtooltip p{padding:5px 14px}.nvtooltip span{display:inline-block;margin:2px 0}.nvtooltip table{margin:6px;border-spacing:0}.nvtooltip table td{padding:2px 9px 2px 0;vertical-align:middle}.nvtooltip table td.key.total{font-weight:700}.nvtooltip table td.value{text-align:right;font-weight:700}.nvtooltip table td.percent{color:#a9a9a9}.nvtooltip table tr.highlight td{padding:1px 9px 1px 0;border-bottom-style:solid;border-bottom-width:1px;border-top-style:solid;border-top-width:1px}.nvtooltip table td.legend-color-guide div{vertical-align:middle;width:12px;height:12px;border:1px solid #999}.nvtooltip .footer{padding:3px;text-align:center}.nvtooltip-pending-removal{pointer-events:none;display:none}.nvd3 line.nv-guideline{stroke:#ccc}\n"]}]}],de.ctorParameters=function(){return[{type:t.Injector},{type:r.App}]},de.propDecorators={title:[{type:t.HostBinding,args:["class.panel"]}]};var he=[de],me=function(){};me.decorators=[{type:t.NgModule,args:[{imports:[o.BasicModule,n.CommonModule,i.WmComponentsModule],declarations:l([],s(he)),exports:l([],s(he)),entryComponents:[]}]}],e.ChartComponent=de,e.ChartModule=me,e["\u02750"]=ie,e["\u02751"]=re,e["\u02752"]=se,e["\u02753"]=ce,e["\u02754"]=ue,e["\u0275a"]=c,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("ngx-bootstrap/dropdown"),require("@wm/components/base"),require("@wm/components/basic"),require("@wm/components/input"),require("@angular/router"),require("@wm/core")):"function"==typeof define&&define.amd?define("@wm/components/navigation/menu",["exports","@angular/core","@angular/common","ngx-bootstrap/dropdown","@wm/components/base","@wm/components/basic","@wm/components/input","@angular/router","@wm/core"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.components=e.wm.components||{},e.wm.components.navigation=e.wm.components.navigation||{},e.wm.components.navigation.menu={}),e.ng.core,e.ng.common,e["ngx-bootstrap"].dropdown,e.wm.components.base,e.wm.components.basic,e.wm.components.input,e.ng.router,e.wm.core)}(this,(function(e,t,n,i,o,r,a,s,l){"use strict";
253
+ ***************************************************************************** */var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};Object.create;function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function l(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var c=function(){i.register("wm-chart",new Map([["aggregation",Object.assign({value:"none"},i.PROP_STRING)],["aggregationcolumn",i.PROP_STRING],["areaviewtype",Object.assign({value:"stack"},i.PROP_STRING)],["barspacing",Object.assign({value:"medium"},i.PROP_STRING)],["bubblesize",i.PROP_STRING],["centerlabel",i.PROP_STRING],["class",i.PROP_STRING],["customcolors",i.PROP_ANY],["dataset",i.PROP_ANY],["datasource",i.PROP_STRING],["donutratio",Object.assign({value:"medium"},i.PROP_STRING)],["formattype",{value:"",PROP_STRING:i.PROP_STRING}],["groupby",i.PROP_STRING],["height",{value:"210px",PROP_STRING:i.PROP_STRING}],["highlightpoints",i.PROP_BOOLEAN],["iconclass",i.PROP_STRING],["interpolation",Object.assign({value:"linear"},i.PROP_STRING)],["labelthreshold",Object.assign({value:.01},i.PROP_NUMBER)],["labeltype",Object.assign({value:"percent"},i.PROP_STRING)],["legendtype",Object.assign({value:"furious"},i.PROP_STRING)],["linethickness",i.PROP_STRING],["loadingdatamsg",Object.assign({value:"Loading..."},i.PROP_STRING)],["name",i.PROP_STRING],["nodatamessage",Object.assign({value:"No Data Available."},i.PROP_STRING)],["offset",i.PROP_STRING],["offsetbottom",Object.assign({value:55},i.PROP_NUMBER)],["offsetleft",Object.assign({value:75},i.PROP_NUMBER)],["offsetright",Object.assign({value:25},i.PROP_NUMBER)],["offsettop",Object.assign({value:25},i.PROP_NUMBER)],["orderby",i.PROP_STRING],["reducexticks",Object.assign({value:!0},i.PROP_BOOLEAN)],["shape",Object.assign({value:"circle"},i.PROP_STRING)],["show",Object.assign({value:!0},i.PROP_BOOLEAN)],["showlabels",Object.assign({value:"outside"},i.PROP_STRING)],["showlabelsoutside",Object.assign({value:!0},i.PROP_BOOLEAN)],["showlegend",Object.assign({value:"top"},i.PROP_STRING)],["showvalues",Object.assign({value:!1},i.PROP_BOOLEAN)],["showxaxis",Object.assign({value:!0},i.PROP_BOOLEAN)],["showxdistance",Object.assign({value:!1},i.PROP_BOOLEAN)],["showyaxis",Object.assign({value:!0},i.PROP_BOOLEAN)],["showydistance",Object.assign({value:!1},i.PROP_BOOLEAN)],["staggerlabels",Object.assign({value:!1},i.PROP_BOOLEAN)],["subheading",i.PROP_STRING],["theme",i.PROP_STRING],["title",i.PROP_STRING],["tooltips",Object.assign({value:!0},i.PROP_BOOLEAN)],["type",i.PROP_STRING],["viewtype",Object.assign({value:"Grouped"},i.PROP_STRING)],["xaxisdatakey",i.PROP_STRING],["xaxislabel",i.PROP_STRING],["xaxislabeldistance",Object.assign({value:12},i.PROP_NUMBER)],["xdateformat",i.PROP_STRING],["xdomain",Object.assign({value:"Default"},i.PROP_STRING)],["xnumberformat",i.PROP_STRING],["xunits",i.PROP_STRING],["yaxisdatakey",i.PROP_STRING],["yaxislabel",i.PROP_STRING],["yaxislabeldistance",Object.assign({value:12},i.PROP_NUMBER)],["ydomain",Object.assign({value:"Default"},i.PROP_STRING)],["ynumberformat",i.PROP_STRING],["yunits",i.PROP_STRING]]))},p=["Column","Line","Area","Cumulative Line","Bar","Pie","Donut","Bubble"],u=["circle","square","diamond","cross","triangle-up","triangle-down"],d=["01/01/2001","01/01/2002","01/01/2003"],h={Terrestrial:{colors:["#1f77b4","#aec7e8","#ff7f0e","#ffbb78","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5","#8c564b","#c49c94","#e377c2","#f7b6d2","#7f7f7f","#c7c7c7","#bcbd22","#dbdb8d","#17becf","#9edae5"],tooltip:{backgroundColor:"#de7d28",textColor:"#FFFFFF"}},Annabelle:{colors:["#393b79","#5254a3","#6b6ecf","#9c9ede","#637939","#8ca252","#b5cf6b","#cedb9c","#8c6d31","#bd9e39","#e7ba52","#e7cb94","#843c39","#ad494a","#d6616b","#e7969c","#7b4173","#a55194","#ce6dbd","#de9ed6"],tooltip:{backgroundColor:"#2e306f",textColor:"#FFFFFF"}},Azure:{colors:["#3182bd","#6baed6","#9ecae1","#c6dbef","#e6550d","#fd8d3c","#fdae6b","#fdd0a2","#31a354","#74c476","#a1d99b","#c7e9c0","#756bb1","#9e9ac8","#bcbddc","#dadaeb","#636363","#969696","#bdbdbd","#d9d9d9"],tooltip:{backgroundColor:"#3182bd",textColor:"#FFFFFF"}},Retro:{colors:["#0ca7a1","#ffa615","#334957","#acc5c2","#988f90","#8accc9","#515151","#f27861","#36c9fd","#794668","#0f709d","#0d2738","#44be78","#4a1839","#6a393f","#557d8b","#6c331c","#1c1c1c","#861500","#09562a"],tooltip:{backgroundColor:"#80513a",textColor:"#FFFFFF"}},Mellow:{colors:["#f0dcbf","#88c877","#aeb918","#2e2c23","#ddddd2","#dfe956","#4c963b","#5d3801","#e1eec3","#cd8472","#fcfab3","#9a4635","#9295ad","#2e3f12","#565677","#557d8b","#4f4d02","#0c0c1b","#833324","#24120e"],tooltip:{backgroundColor:"#7c9e73",textColor:"#FFFFFF"}},Orient:{colors:["#a80000","#cc6c3c","#f0e400","#000084","#fccc6c","#009c6c","#cc309c","#78cc00","#fc84e4","#48e4fc","#4878d8","#186c0c","#606060","#a8a8a8","#000000","#d7d7d7","#75a06e","#190d0b","#888888","#694b84"],tooltip:{backgroundColor:"#c14242",textColor:"#FFFFFF"}},GrayScale:{colors:["#141414","#353535","#5b5b5b","#848484","#a8a8a8","#c3c3c3","#e0e0e0","#c8c8c8","#a5a5a5","#878787","#656565","#4e4e4e","#303030","#1c1c1c","#4f4f4f","#3b3b3b","#757575","#606060","#868686","#c1c1c1"],tooltip:{backgroundColor:"#575757",textColor:"#FFFFFF"}},Flyer:{colors:["#3f454c","#5a646e","#848778","#cededf","#74c4dd","#0946ed","#380bb1","#000ff0","#f54a23","#1db262","#bca3aa","#ffa500","#a86b32","#63a18c","#56795e","#934343","#b75f5f","#752d2d","#4e1111","#920606"],tooltip:{backgroundColor:"#47637c",textColor:"#FFFFFF"}},Luminosity:{colors:["#FFFFFF","#e4e4e4","#00bcd4","#f0dd2f","#00aabf","#018376","#e91e63","#39e5d4","#ff6d6d","#00ff76","#ff9800","#969696","#ff4200","#e00000","#95cbe5","#5331ff","#fff4a7","#e7a800","#0061e4","#d5e7ff"],tooltip:{backgroundColor:"#47637c",textColor:"#FFFFFF"}}},m=["xaxislabel","yaxislabel","xunits","yunits","xnumberformat","xdateformat","ynumberformat","showvalues","showlabels","viewtype","areaviewtype","staggerlabels","reducexticks","offsettop","offsetbottom","offsetright","offsetleft","barspacing","xaxislabeldistance","yaxislabeldistance","theme","labeltype","donutratio","showlabelsoutside","showxdistance","showydistance","shape","nodatamessage","captions","showxaxis","showyaxis","centerlabel","customcolors","showlegend","legendtype","xdomain","ydomain","tooltips","linethickness","highlightpoints","interpolation","labelthreshold"],f={small:.3,medium:.5,large:.8},g={small:.3,medium:.6,large:.7},v=_.invert(f),y=_.invert(g),b={Thousand:{prefix:"K",divider:1e3},Million:{prefix:"M",divider:1e6},Billion:{prefix:"B",divider:1e9}},w="#preview-chart",P=["Column","Line","Pie","Bar","Donut","Bubble"],O=["Line","Area","Cumulative Line"],S=["Cumulative Line","Area"],E="Europe",T="Asia",R="America",A="Australia",C=function(e){return"Bar"===e},I=function(e){return"Donut"===e},D=function(e){return"Bubble"===e},N=function(e){return"Area"===e},x=function(e){return function(e){return"Pie"===e}(e)||I(e)},k=function(e){return _.includes(P,e)||!_.includes(p,e)},M=function(e){return _.includes(O,e)},L=function(e,t){return"value"===t?f[e]:"key"===t?v[e]:void 0},F=function(e,t){return"value"===t?g[e]:"key"===t?y[e]:void 0},j=function(e){return function(e,t,n){var i=[],o=[],r=[],a=[],s=[],l=[],c=[],p=[],d=[],h=[];switch(e){case"jsonFormat":i=[{x:"01/01/2001",y:4e6},{x:"01/01/2002",y:1e6},{x:"01/01/2003",y:5e6}],o=[{x:"01/01/2001",y:3e6},{x:"01/01/2002",y:4e6},{x:"01/01/2003",y:7e6}],r=[{x:"01/01/2001",y:2e6},{x:"01/01/2002",y:8e6},{x:"01/01/2003",y:6e6}],h[0]={values:i,key:E},t>=2&&(h[1]={values:o,key:T}),t>=3&&(h[2]={values:r,key:R});break;case"lineChartFormat":i=[{x:1,y:4e6},{x:2,y:1e6},{x:3,y:5e6}],o=[{x:1,y:3e6},{x:2,y:4e6},{x:3,y:7e6}],r=[{x:1,y:2e6},{x:2,y:8e6},{x:3,y:6e6}],h[0]={values:i,key:E},t>=2&&(h[1]={values:o,key:T}),t>=3&&(h[2]={values:r,key:R});break;case"arrayFormat":a=[[1,4e6],[2,1e6],[3,5e6]],s=[[1,3e6],[2,4e6],[3,7e6]],l=[[1,2e6],[2,8e6],[3,6e6]],h[0]={values:a,key:E},t>=2&&(h[1]={values:s,key:T}),t>=3&&(h[2]={values:l,key:R});break;case"bubbleFormat":c=[{x:80.66,y:33739900,size:78,shape:n="random"===n?u[Math.floor(Math.random()*u.length)]:n},{x:79.84,y:81902300,size:90,shape:n},{x:78.6,y:5523100,size:45,shape:n}],p=[{x:72.73,y:79716200,size:98,shape:n},{x:80.05,y:61801600,size:20,shape:n},{x:72.49,y:73137200,size:34,shape:n}],d=[{x:68.09,y:33739900,size:45,shape:n},{x:81.55,y:7485600,size:78,shape:n},{x:68.6,y:14185e4,size:56,shape:n}],h[0]={values:c,key:E},t>=2&&(h[1]={values:p,key:T}),t>=3&&(h[2]={values:d,key:R});break;case"pieChartFormat":h=[{x:E,y:1e6},{x:T,y:2e6},{x:R,y:3e6},{x:A,y:4e6}]}return h}(function(e){var t=e.type;return function(e){return"Line"===e}(t)?"lineChartFormat":x(t)?"pieChartFormat":D(t)?"bubbleFormat":k(t)?"jsonFormat":"arrayFormat"}(e),_.split(e.yaxisdatakey,",").length,e.shape)},B=function(e,t){return!("Min"!==e[t+"domain"]||(n=e.type,!function(e){return"Column"===e}(n)&&!N(n)));var n},G=function(e){return!(!_.isFinite(e.min)||!_.isFinite(e.max))},V=function(e){var t=Math.floor(e);return Math.abs(e)-t>0?e-.1:t-1},U=function(e,t){return isNaN(parseInt(e,10))?t(e,"value"):e},W=function(e,t){return e=e||"%x",d3.time.format(e)(new Date(moment(moment(t).format()).valueOf()))},q=function(e,t){var n,i,o;return n=d3.format(e)(t),e?(i=b[e]&&b[e].divider||0,(o=b[e]&&b[e].prefix)&&0!==i&&(n=d3.format(".2f")(t/i)+o)):n=t>=1e3?d3.format(".1s")(t):t,n},z=function(e){return"false"!==e&&!1!==e&&("true"===e||!0===e||"hide"!==e)},H=function(e,t,n,i){e.tooltip.contentGenerator((function(e){var o,r=e.data.x;return o=q(t.ynumberformat,e.data.y),x(n.type)&&(i=e.data.x,r=""),'<table><tbody><tr class="value"><b>'+r+'</b></tr><tr><td class="legend-color-guide"><div style="background-color:'+e.color+';"></div></td><td class="key">'+i+'</td><td class="value">'+o+"</td></tr></tbody></table>"}))},Y=function(e,t,n,i,o){i=function(e,t){return t&&!r.isEmptyObject(t)||(t={}),_.forEach(m,(function(n){_.isUndefined(t[n])&&(t[n]=e[n])})),t}(e,i);var a,s,l,c,u,v,y,b,w,P=[],O={},S={};switch(e.type){case"Column":v=U(i.barspacing,L)||f.medium,a=nv.models.multiBarChart().x((function(e){return e.x})).y((function(e){return e.y})).reduceXTicks(i.reducexticks).rotateLabels(0).showControls(!1).stacked("Stacked"===i.viewtype).groupSpacing(v);break;case"Cumulative Line":a=nv.models.cumulativeLineChart().x((function(e){return e[0]})).y((function(e){return e[1]})).showControls(!1).useInteractiveGuideline(i.tooltips).interpolate(i.interpolation);break;case"Line":a=nv.models.lineChart().useInteractiveGuideline(i.tooltips).interpolate(i.interpolation);break;case"Area":a=nv.models.stackedAreaChart().x((function(e){return e[0]})).y((function(e){return e[1]})).clipEdge(!0).showControls(!1).style(i.areaviewtype).useInteractiveGuideline(i.tooltips).interpolate(i.interpolation);break;case"Bar":v=U(i.barspacing,L)||f.medium,a=nv.models.multiBarHorizontalChart().x((function(e){return e.x})).y((function(e){return e.y})).showControls(!1).stacked("Stacked"===i.viewtype).showValues(i.showvalues).groupSpacing(v);break;case"Pie":case"Donut":c=function(e,t,n){var i={};switch(e){case"hide":i.showlabels=!1;break;case"inside":i.showlabels=!0,i.showlabelsoutside=!1;break;case"outside":i.showlabels=!0,i.showlabelsoutside=!0}return i}(i.showlabels,i.showlabelsoutside),u=U(i.donutratio,F)||g.medium,a=nv.models.pieChart().x((function(e){return e.x})).y((function(e){return e.y})).showLabels(c.showlabels).labelType(i.labeltype).valueFormat(d3.format("%")).title(i.centerlabel).labelThreshold(i.labelthreshold||.01).labelsOutside(c.showlabelsoutside),I(e.type)&&a.donut(!0).donutRatio(u),"key-value"===i.labeltype&&a.labelType((function(e){return e.data.x+" "+e.data.y}));break;case"Bubble":a=nv.models.scatterChart().x((function(e){return e.x})).y((function(e){return e.y})).showDistX(i.showxdistance).showDistY(i.showydistance)}return t&&(O.min=t.min.x||t.min[0],O.max=t.max.x||t.max[0],G(O)&&(O.min=V(O.min),a.xDomain([O.min,O.max]))),n&&(S.min=n.min.y||n.min[1],S.max=n.max.y||n.max[1],G(S)&&(S.min=V(S.min),a.yDomain([S.min,S.max]))),a.legend.vers(i.legendtype&&i.legendtype.toLowerCase()||"furious"),_.includes(p,e.type)||(a=nv.models.multiBarChart().x((function(e){return e.x})).y((function(e){return e.y}))),x(e.type)?("percent"===i.labeltype?a.valueFormat(d3.format("%")):a.valueFormat((function(e){return q(i.ynumberformat,e)})),H(a,i,e)):(a.showXAxis(i.showxaxis).showYAxis(i.showyaxis),s=i.xaxislabel||r.prettifyLabels(e.xaxisdatakey)||"x caption",l=i.yaxislabel||r.prettifyLabels(e.yaxisdatakey)||"y caption",e.yaxisdatakey&&e.yaxisdatakey.split(",").length>1&&(w=!0),w||D(e.type)||H(a,i,e,l),s+=i.xunits?"("+i.xunits+")":"",l+=i.yunits?"("+i.yunits+")":"",a.xAxis.axisLabel(s).axisLabelDistance(i.xaxislabeldistance).staggerLabels(i.staggerlabels),i.xdateformat||o&&!D(e.type)?M(e.type)?a.xAxis.tickFormat((function(t){return b=o?d[t-1]:e.xDataKeyArr[t],W(i.xdateformat,b)})):a.xAxis.tickFormat((function(e){return W(i.xdateformat,e)})):i.xnumberformat?a.xAxis.tickFormat((function(e){return q(i.xnumberformat,e)})):M(e.type)&&a.xAxis.tickFormat((function(t){return e.xDataKeyArr[t]})),a.yAxis.axisLabel(l).axisLabelDistance(i.yaxislabeldistance).staggerLabels(i.staggerlabels).tickFormat((function(e){return q(i.ynumberformat,e)})),C(e.type)&&a.valueFormat((function(e){return q(i.ynumberformat,e)}))),_.isString(i.customcolors)&&i.customcolors&&(P=_.split(i.customcolors,",")),_.isArray(i.customcolors)&&(P=i.customcolors),y=z(i.showlegend),a.showLegend(y).margin({top:i.offsettop,right:i.offsetright,bottom:i.offsetbottom,left:i.offsetleft}).color(P.length?P:h[i.theme].colors),a.tooltip.enabled(i.tooltips),e.message=i.nodatamessage||"No data found",a.noData(e.message),M(e.type)&&e.highlightpoints&&a.dispatch.on("stateChange",(function(){setTimeout((function(){return K(e)}),100)})),!e.showlegend||"Donut"!==e.type&&"Pie"!==e.type||"right"===e.showlegend&&a.legendPosition("right"),a},K=function(e,t){var n=t?null:e.$id;M(e.type)&&(function(e,t){t=t||1.5,(e?d3.select("#wmChart"+e+" svg"):d3.select(w+" svg")).selectAll(".nv-line").style({"stroke-width":t})}(n,e.linethickness),function(e,t){var n=e?d3.select("#wmChart"+e+" svg"):d3.select(w+" svg");t?n.selectAll(".nv-point").style({"stroke-width":"6px","fill-opacity":".95","stroke-opacity":".95"}):n.selectAll(".nv-point").style({"stroke-width":"0px","fill-opacity":"0"})}(n,e.highlightpoints)),e.showlegend&&function(e,t,n){var i,o=z(e.showlegend),r=n?"#wmChart"+n:w,a=d3.select(r+" .nv-legendWrap");if(o&&a[0][0]&&"bottom"===t){var s=a[0][0].getBoundingClientRect().height,l=d3.select(r+" .nv-wrap"),c=l&&l.attr("transform")?l.attr("transform").replace(/, /g,","):"",p=/translate\(\s*([^\s,)]+)[ ,]([^\s,)]+)/.exec(c);a.attr("transform","translate(0 , "+(0===(i=$(r+" svg>.nvd3.nv-wrap")[0].getBoundingClientRect().height)&&(i=$(r+" svg")[0].getBoundingClientRect().height-(s+15)),i-s-5+")")),p&&l.attr("transform","translate("+p[1]+",5)")}}(e,e.showlegend,n)},Q={widgetType:"wm-chart",hostClass:"app-chart"},X="none",J=["aggregation","aggregationcolumn","groupby","orderby"],Z={Column:"rect.nv-bar",Bar:"g.nv-bar",Area:".nv-stackedarea .nv-point","Cumulative Line":".nv-cumulativeLine .nv-scatterWrap path.nv-point",Line:".nv-lineChart .nv-scatterWrap path.nv-point",Pie:".nv-pieChart .nv-slice path",Donut:".nv-pieChart .nv-slice path",Bubble:".nv-scatterChart .nv-point-paths path"},ee={fontunit:"font-size",fontsize:"font-size",color:"fill",fontfamily:"font-family",fontweight:"font-weight",fontstyle:"font-style",textdecoration:"text-decoration"},te={average:"AVG",count:"COUNT",maximum:"MAX",minimum:"MIN",sum:"SUM"},ne=function(e){return!0===e||"true"===e||!1!==e&&"false"!==e&&e},ie=ne,oe=function(e){var t,n=[],i=[];return _.forEach(_.split(e,","),(function(e){t=_.split(e,":"),n.push(t[0]),i.push(t[1])})),{columns:n,orders:i}},re=oe,ae=function(e){return e?e.replace(/\./g,"$"):null},se=ae,le=function(e,t){d3.select("#wmChart"+t+" svg").selectAll("text").style(e)},ce=le,pe=function(e){var t=90*(e.startAngle+e.endAngle)/Math.PI-90;return t>90?t-180:t},ue=pe,de=function(e){function t(t,n){var o=e.call(this,t,Q)||this;return o.app=n,o.iconclass="",o.nonPrimaryColumns=[],o.xDataKeyArr=[],o.chartData=[],o._processedData=[],o._subsciptions=[],o._plotChartProxy=_.debounce(o.plotChartProxy.bind(o),100),o.redraw=o._plotChartProxy.bind(o),i.styler(o.nativeElement,o,i.APPLY_STYLES_TYPE.CONTAINER,["fontsize","fontunit","color","fontfamily","fontweight","fontstyle","textdecoration"]),o.$id=o.widgetId||Math.random(),r.removeAttr(o.nativeElement,"title"),o.chartReady=!1,o.binddataset=o.nativeElement.getAttribute("dataset.bind"),o._subsciptions.push(o.app.subscribe("toggle-variable-state",o.handleLoading.bind(o))),o._subsciptions.push(o.app.subscribe("iscroll-start",(function(){o.hideTooltip()}))),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.isGroupByEnabled=function(){return!(!this.groupby||this.groupby===X)},t.prototype.isValidAxis=function(){return!this.binddataset||this.xaxisdatakey&&this.yaxisdatakey},t.prototype.isAggregationEnabled=function(){return!(!this.isGroupByEnabled()||this.aggregation===X||!this.aggregationcolumn)},t.prototype.isDataFilteringEnabled=function(){return this.isAggregationEnabled()||!this.isVisuallyGrouped&&this.orderby},t.prototype.getxAxisVal=function(e,t,n){var i=_.get(e,t);return M(this.type)&&!r.isNumberType(this.xAxisDataType)?(this.xDataKeyArr.push(i),i):i},t.prototype.getXMinMaxValues=function(e){if(e){var t={};return t.min=_.minBy(e.values,(function(e){return e.x||e[0]})),t.max=_.maxBy(e.values,(function(e){return e.x||e[0]})),t}},t.prototype.getYMinMaxValues=function(e){var t={},n=[],i=[];if(e)return _.forEach(e,(function(e){n.push(_.minBy(e.values,(function(e){return e.y||e[1]}))),i.push(_.maxBy(e.values,(function(e){return e.y||e[1]})))})),t.min=_.minBy(n,(function(e){return e.y||e[1]})),t.max=_.maxBy(i,(function(e){return e.y||e[1]})),t},t.prototype.getValidData=function(e){return 1===e.length&&void 0===e[0]?[]:e},t.prototype.valueFinder=function(e,t,n,i,o){var r,a=this.getxAxisVal(e,t,i),s=_.get(e,n),l=parseFloat(s)||s,c=parseFloat(e[this.bubblesize])||2,p={};return k(this.type)?(p.x=a,p.y=l,D(this.type)&&(p.size=c,p.shape=o||"circle")):(r=this.type,_.includes(S,r)&&(p=[a,l])),p._dataObj=e,p},t.prototype.setErrMsg=function(e){this.showNoDataMsg&&(this.showContentLoadError=!0,this.invalidConfig=!0,this.errMsg="")},t.prototype.processChartData=function(){var e=this;if(this.sampleData=j(this),this.xDataKeyArr=[],!this.binddataset)return this.xDataKeyArr=d,this.sampleData;if(!this.chartData||!this.chartData.length)return[];var t,n=[],i=[],o=[],a=this.xaxisdatakey,s=this.yaxisdatakey?this.yaxisdatakey.split(","):[],l=this.chartData;return _.isArray(l)&&(x(this.type)?(t=s[0],n=_.map(l,(function(n,i){if(!r.isEmptyObject(l[i]))return e.valueFinder(l[i],a,t)})),n=this.getValidData(n)):(D(this.type)&&(i="random"===this.shape?u:this.shape),s.forEach((function(t,s){o=_.map(l,(function(n,o){if(!r.isEmptyObject(l[o]))return e.valueFinder(l[o],a,t,o,_.isArray(i)&&i[s]||e.shape)})),o=e.getValidData(o),n.push({values:o,key:r.prettifyLabels(t)})})))),n},t.prototype.setChartData=function(e){e&&(this._processedData=e)},t.prototype.getChartData=function(){return this._processedData},t.prototype.getVisuallyGroupedData=function(e,t){var n,i,o=this,r={},a=[],s=[],l=N(this.type),c=_.first(_.split(this.yaxisdatakey,","));return this.xDataKeyArr=[],e=_.orderBy(e,_.split(this.groupby,",")),this.orderby&&(n=oe(this.orderby),e=_.orderBy(e,n.columns,n.orders)),e=_.groupBy(e,t),l&&(i=_.max(_.map(e,(function(e){return e.length})))),_.forEach(e,(function(e,t){a=N?_.fill(new Array(i),[0,0]):[],_.forEachRight(e,(function(e,t){a[t]=o.valueFinder(e,o.xaxisdatakey,c,t)})),r={key:t,values:a},s.push(r)})),s},t.prototype.getGroupingDetails=function(){var e=this;if(this.isGroupByEnabled()&&!this.isAggregationEnabled()){var t,n,i,o=!1,r=[],a=this.groupby&&this.groupby!==X?this.groupby.split(","):[],s=this.yaxisdatakey?this.yaxisdatakey.split(","):[];return a.length>1&&(a.every((function(n,r){return e.xaxisdatakey===n||-1!==$.inArray(n,s)||(o=!0,t=n,i=r,a.splice(i,1),!1)})),t&&r.push(t),a.length&&(r=_.concat(r,a))),this.xaxisdatakey!==this.aggregationcolumn&&r.push(this.xaxisdatakey),_.forEach(s,(function(t){t!==e.aggregationcolumn&&r.push(t)})),n=r.join(","),this.isVisuallyGrouped=o,{expression:n,isVisuallyGrouped:o,visualGroupingColumn:t}}return{expression:"",isVisuallyGrouped:!1,visualGroupingColumn:""}},t.prototype.getAggregatedData=function(e){var t,n,i,o=this,a=this.datasource,s=this.yaxisdatakey?this.yaxisdatakey.split(","):[],l={},c=[],p=[];a&&(this.isGroupByEnabled()&&(p=_.split(this.groupby,",")),this.orderby&&(t=_.replace(this.orderby,/:/g," "),c=_.uniq(_.concat(c,p,[this.aggregationcolumn])),i=oe(this.orderby).columns,_.forEach(_.intersection(c,i),(function(e){n=ae(e),t=_.replace(t,e,n)}))),this.isAggregationEnabled()&&(l.groupByFields=p,l.aggregations=[{field:this.aggregationcolumn,type:te[this.aggregation],alias:ae(this.aggregationcolumn)}]),a.execute("getAggregatedData",{aggregations:l,sort:t}).then((function(t){var n=[],i=ae(o.aggregationcolumn),a=ae(o.xaxisdatakey),l=[];s.forEach((function(e){return l.push(ae(e))})),_.forEach(t.body.content,(function(e){var t={};o.isAggregationEnabled()&&(t[o.aggregationcolumn]=e[i],t[o.aggregationcolumn]=_.get(e,i)||_.get(e,o.aggregationcolumn)),t[o.xaxisdatakey]=_.get(e,a)||_.get(e,o.xaxisdatakey),s.forEach((function(n,i){t[n]=e[l[i]],t[n]=_.get(e,l[i])||_.get(e,n)})),n.push(t)})),o.chartData=n,r.triggerFn(e)}),(function(){o.chartData=[],o.setErrMsg("MESSAGE_ERROR_FETCH_DATA"),r.triggerFn(e)})))},t.prototype.setLabelsMaxWidth=function(){var e,t,n,i,o,r,a,s,l,c,p,u,d=parseInt(this.fontsize,10)||12,h=C(this.type);(e=$("#wmChart"+this.$id+" svg").find("g.nv-x").find("g.tick").find("text")).each((function(){var e,n,r=$(this);if(r.text()&&"1"===r.css("opacity"))return e=r.parent().attr("transform").split(","),i=parseFloat(e[0].substr(10)),o=parseFloat(e[1]||"0"),!h&&i>0?n=i:o>0&&(n=o),t?(t=n-t,!1):(t=n,!0)})),h?(c=$("#wmChart"+this.$id+" svg>g.nv-wrap>g>g.nv-barsWrap")[0],p=$("#wmChart"+this.$id+" svg>g.nv-wrap>g>g.nv-y")[0],u=$("#wmChart"+this.$id+" svg")[0],r=c?c.getBoundingClientRect().height:0,l=p?u.getBoundingClientRect().width-p.getBoundingClientRect().width:u.getBoundingClientRect().width,n=Math.round(l/d),t<d&&(a=r/d,s=Math.ceil(this.chartData.length/a),d3.select("#wmChart"+this.$id+" svg").select("g.nv-x").selectAll("g.tick").select("text").each((function(e,t){t%s!=0&&d3.select(this).attr("opacity",0)})))):n=Math.round(t/d),n=Math.abs(n),e.each((function(){this.textContent.length>n&&(this.textContent=this.textContent.substr(0,n)+"...")}))},t.prototype.getDefaultColumns=function(){var e,t,n,i,o=[],a=this.datasource.execute(r.DataSource.Operation.GET_PROPERTIES_MAP)||[];for(n=0;n<a.length&&o.length<=2;n+=1)e=a[n].type,!a[n].isRelated&&r.isNumberType(e)?o.push(a[n].fieldName):"string"!==e||t||(t=a[n].fieldName);return t&&o.length>0&&!D(this.type)&&(i=o[0],o[0]=t,o[1]=i),o},t.prototype.attachClickEvent=function(){var e,t=this;d3.select("#wmChart"+this.$id+" svg").selectAll(Z[this.type]).style("pointer-events","all").on("click",(function(n,i){switch(t.type){case"Column":case"Bar":e=n._dataObj;break;case"Pie":case"Donut":e=n.data._dataObj;break;case"Area":case"Cumulative Line":case"Line":e=n[0]._dataObj;break;case"Bubble":e=n.data.point[4]._dataObj}t.selecteditem=e,t.invokeEventCallback("select",{$event:d3.event,selectedChartItem:n,selectedItem:t.selecteditem})}))},t.prototype.postPlotProcess=function(e){var t,n,i,o,a=this,s={},l=this.$element;K(this),x(this.type)?this.showlabelsoutside||(n=(t=d3.select("#wmChart"+this.$id+" svg")).select(".nv-pieLabels").selectAll(".nv-label"),i=t.select(".nv-pie").selectAll(".nv-slice"),o=[],i&&i.length&&(i.each((function(){d3.select(this).attr("transform",(function(e){o.push(pe(e))}))})),n.each((function(e,t){var n=d3.select(this);$(n[0][0]).find("text").attr("transform","rotate("+o[t]+")")})))):this.setLabelsMaxWidth(),_.forEach(ee,(function(e,t){s[e]="fontsize"===t||"fontunit"===t?a.fontsize+a.fontunit:a[t]})),le(s,this.$id),r.triggerFn(this._resizeFn&&this._resizeFn.clear),this._resizeFn=nv.utils.windowResize((function(){l[0].getBoundingClientRect().height&&(e.update(),K(a),x(a.type)||a.setLabelsMaxWidth())}))},t.prototype.configureChart=function(){var e,t,n,i;if(this._processedData.length>0&&(B(this,"x")&&(e=this.binddataset?this.getXMinMaxValues(this._processedData[0]):{min:{x:1},max:{x:5}}),B(this,"y")&&(t=this.binddataset?this.getYMinMaxValues(this._processedData):{min:{y:1},max:{y:5}})),!x(this.type)||this.binddataset&&this.scopedataset||(this._processedData=r.getClonedObject(this.scopedataset||this._processedData)),n=Y(this,e,t,null,!this.binddataset),_.isArray(this._processedData)){var o=$("#wmChart"+this.$id+" svg").find("g.nv-x").find("g.tick");return o&&o.length&&o.remove(),(i=this.invokeEventCallback("beforerender",{chartInstance:n}))&&(n=i),this.chart=n,d3.select("#wmChart"+this.$id+" svg").datum(this._processedData).call(this.chart),this.postPlotProcess(n),n}},t.prototype.plotChart=function(){var e=this,t=this.$element;this.chartData=this.invokeEventCallback("transform")||this.chartData,this.isVisuallyGrouped&&!x(this.type)?this._processedData=this.chartData:this._processedData=this.processChartData(),t[0].getBoundingClientRect().height&&(this.clearCanvas&&(t.find("svg").replaceWith("<svg></svg>"),this.clearCanvas=!1),this.isValidAxis()||(this._processedData=[]),nv.addGraph((function(){return e.configureChart()}),(function(){setTimeout((function(){e.attachClickEvent()}),600)})),this.isLoadInProgress=!1)},Object.defineProperty(t.prototype,"isLiveVariable",{get:function(){var e=this.datasource;return e&&"wm.LiveVariable"===e.category},enumerable:!1,configurable:!0}),t.prototype.plotChartProxy=function(){var e=this;this.showContentLoadError=!1,this.invalidConfig=!1,this.isLoadInProgress=!0;var t=this.getGroupingDetails();this.binddataset&&this.isLiveVariable&&(this.filterFields||this.isDataFilteringEnabled())?this.getAggregatedData((function(){return e.plotChart()})):(this.dataset&&this.isLiveVariable&&(this.chartData=this.dataset,this.isGroupByEnabled()&&t.isVisuallyGrouped&&(this.chartData=this.getVisuallyGroupedData(this.chartData,t.visualGroupingColumn))),this.plotChart())},t.prototype.setDefaultAxisOptions=function(){var e=this.getDefaultColumns();this.xaxisdatakey=e[0]||null,this.yaxisdatakey=e[1]||null},t.prototype.getCutomizedOptions=function(e,t){var n,i=_.split(this.groupby,","),o=_.split(this.aggregationcolumn,",");if(!this.binddataset)return t;switch(this.axisoptions||(this.axisoptions=t),e){case"xaxisdatakey":this.isGroupByEnabled()&&(n=i);break;case"yaxisdatakey":this.isAggregationEnabled()?n=o:this.isLiveVariable&&(n=this.numericColumns);break;case"groupby":this.isLiveVariable&&this.nonPrimaryColumns&&this.nonPrimaryColumns.length&&(n=this.nonPrimaryColumns);break;case"aggregationcolumn":this.isLiveVariable&&this.isAggregationEnabled()&&"count"!==this.aggregation&&(n=this.numericColumns);break;case"orderby":this.isLiveVariable&&this.isAggregationEnabled()&&(n=_.uniq(_.concat(i,o)));break;case"bubblesize":this.numericColumns&&this.numericColumns.length&&(n=this.numericColumns)}return n||t||this.axisoptions},t.prototype.setNumericandNonPrimaryColumns=function(){var e,t,n=this,i=this.datasource.execute(r.DataSource.Operation.GET_PROPERTIES_MAP);this.numericColumns=[],this.nonPrimaryColumns=[],this.dataset&&!_.isEmpty(i)&&(e=[]),e&&(_.forEach(Object.keys(e),(function(i){t=e[i].type,r.isNumberType(t)&&n.numericColumns.push(i),"true"!==e[i].isRelatedPk&&e[i].isPrimaryKey||n.nonPrimaryColumns.push(i)})),this.numericColumns=this.numericColumns.sort(),this.nonPrimaryColumns=this.nonPrimaryColumns.sort())},t.prototype.handleDataSet=function(e){this.errMsg="",e||this.binddataset||(this.isVisuallyGrouped=!1,this.axisoptions=null),this.chartData=this.isLiveVariable?e||"":e&&""===e.dataValue&&1===_.keys(e).length?"":e,!_.isArray(this.chartData)&&_.isObject(this.chartData)&&(this.chartData=[this.chartData]),e&&e.filterFields&&(this.filterFields=e.filterFields),this.chartData&&this._plotChartProxy()},t.prototype.setDonutCenterLabel=function(e){var t;(t=d3.select("#wmChart"+this.$id+" svg").select(".nv-wrap.nv-pie").select(".nv-pie")).text(""),t.append("text").attr("dy",".35em").attr("text-anchor","middle").attr("class","nv-pie-title").text(e).each((function(e){var t=d3.select(this),n=d3.select(this.parentElement),i=Number(n.node().getBoundingClientRect().width)-30,o=this.getComputedTextLength();t.attr("data-scale",i/o)})).style("font-size",(function(){var e=16*d3.select(this).attr("data-scale");return e>24?24:e+"px"}))},t.prototype.onPropertyChange=function(t,n,i){switch(e.prototype.onPropertyChange.call(this,t,n,i),t){case"dataset":this.handleDataSet(n);break;case"centerlabel":this.chart&&(this.chart.title(n),this.setDonutCenterLabel(n));break;case"type":x(this.type)?(this.offsettop=20,this.offsetright=0,this.offsetbottom=0,this.offsetleft=0):"Pie"!==i&&"Donut"!==i||(this.offsettop=25,this.offsetright=25,this.offsetbottom=55,this.offsetleft=75),i!==n&&(this.clearCanvas=!0),this._plotChartProxy();break;default:this._plotChartProxy()}_.includes(J,t)&&this._plotChartProxy()},t.prototype.handleLoading=function(e){var t=this.datasource;t&&t.execute(r.DataSource.Operation.IS_API_AWARE)&&r.isDataSourceEqual(e.variable,t)&&(this.variableInflight=e.active,this.isLoadInProgress=e.active)},t.prototype.hideTooltip=function(){d3.selectAll(".nvtooltip").style("opacity",0)},t.prototype.onStyleChange=function(t,n,i){var o={};switch(e.prototype.onStyleChange.call(this,t,n,i),t){case"fontsize":case"fontunit":case"color":case"fontfamily":case"fontweight":case"fontstyle":case"textdecoration":o[ee[t]]="fontsize"===t||"fontunit"===t?this.fontsize+this.fontunit:n,le(o,this.$id)}},t.prototype.ngAfterViewInit=function(){e.prototype.ngAfterViewInit.call(this),_.includes(["outside","inside","hide"],this.showlabels)||(this.showlabels=ne(this.showlabels),this.showlabelsoutside=ne(this.showlabelsoutside),this.showlabels=this.showlabels?this.showlabelsoutside?"outside":"inside":"hide"),this.theme||(this.theme=x(this.type)?"Azure":"Terrestrial"),this.nativeElement.setAttribute("id","wmChart"+this.$id),this.binddataset||this.nativeElement.getAttribute("scopedataset")||this._plotChartProxy()},t.prototype.ngOnDestroy=function(){this.hideTooltip(),this._subsciptions.forEach((function(e){e()})),e.prototype.ngOnDestroy.call(this)},t}(i.StylableComponent);de.initializeProps=c(),de.decorators=[{type:t.Component,args:[{selector:"div[wmChart]",template:'<div class="panel-heading" *ngIf="title">\n <h3 class="panel-title">\n <div class="pull-left"><i class="app-icon panel-icon {{iconclass}}" [class.ng-hide]="!iconclass"></i></div>\n <div class="heading" [innerHTML]="title"></div>\n <div class="description" *ngIf="subheading" [innerHTML]="subheading"></div>\n </h3>\n</div>\n<div class="app-chart-inner" [ngClass]="{\'loading\':isLoadInProgress, \'panel-body\': title}">\n <svg></svg>\n <div class="wm-content-info readonly-wrapper" *ngIf="showContentLoadError && showNoDataMsg">\n <p class="wm-message" [title]="hintMsg" [ngClass]="{\'error\': invalidConfig}" [innerText]="errMsg"></p>\n </div>\n <div wmSpinner show.bind="isLoadInProgress" caption.bind="loadingdatamsg"></div>\n</div>\n',providers:[i.provideAsWidgetRef(de)],encapsulation:t.ViewEncapsulation.None,styles:[".nvd3 .nv-axis line,.nvd3 .nv-axis path{fill:none;shape-rendering:crispEdges}.nv-brush .extent,.nvd3 .background path,.nvd3 .nv-axis line,.nvd3 .nv-axis path{shape-rendering:crispEdges}.nv-distx,.nv-disty,.nv-noninteractive,.nvd3 .nv-axis,.nvd3.nv-pie .nv-label,.nvd3.nv-sparklineplus g.nv-hoverValue{pointer-events:none}.nvd3 .nv-axis{opacity:1}.nvd3 .nv-axis.nv-disabled,.nvd3 .nv-controlsWrap .nv-legend .nv-check-box .nv-check{opacity:0}.nvd3 .nv-axis path{stroke:#000;stroke-opacity:.75}.nvd3 .nv-axis path.domain{stroke-opacity:.75}.nvd3 .nv-axis.nv-x path.domain{stroke-opacity:0}.nvd3 .nv-axis line{stroke:#e5e5e5}.nvd3 .nv-axis .zero line,.nvd3 .nv-axis line.zero{stroke-opacity:.75}.nvd3 .nv-axis .nv-axisMaxMin text{font-weight:700}.nvd3 .x .nv-axis .nv-axisMaxMin text,.nvd3 .x2 .nv-axis .nv-axisMaxMin text,.nvd3 .x3 .nv-axis .nv-axisMaxMin text{text-anchor:middle}.nvd3 .nv-bars rect{fill-opacity:.75;transition:fill-opacity .25s linear}.nvd3 .nv-bars rect.hover{fill-opacity:1}.nvd3 .nv-bars .hover rect{fill:#add8e6}.nvd3 .nv-bars text{fill:transparent}.nvd3 .nv-bars .hover text{fill:#000}.nvd3 .nv-discretebar .nv-groups rect,.nvd3 .nv-multibar .nv-groups rect,.nvd3 .nv-multibarHorizontal .nv-groups rect{stroke-opacity:0;transition:fill-opacity .25s linear}.with-transitions .nv-candlestickBar .nv-ticks .nv-tick,.with-transitions .nvd3 .nv-groups .nv-point{transition:stroke-width .25s linear,stroke-opacity .25s linear}.nvd3 .nv-candlestickBar .nv-ticks rect:hover,.nvd3 .nv-discretebar .nv-groups rect:hover,.nvd3 .nv-multibar .nv-groups rect:hover,.nvd3 .nv-multibarHorizontal .nv-groups rect:hover{fill-opacity:1}.nvd3 .nv-discretebar .nv-groups text,.nvd3 .nv-multibarHorizontal .nv-groups text{font-weight:700;fill:#000;stroke:transparent}.nvd3 .nv-boxplot circle{fill-opacity:.5}.nvd3 .nv-boxplot circle:hover,.nvd3 .nv-boxplot rect:hover{fill-opacity:1}.nvd3 line.nv-boxplot-median{stroke:#000}.nv-boxplot-tick:hover{stroke-width:2.5px}.nvd3.nv-bullet{font:10px sans-serif}.nvd3.nv-bullet .nv-measure{fill-opacity:.8}.nvd3.nv-bullet .nv-measure:hover{fill-opacity:1}.nvd3.nv-bullet .nv-marker{stroke:#000;stroke-width:2px}.nvd3.nv-bullet .nv-markerTriangle{stroke:#000;fill:#fff;stroke-width:1.5px}.nvd3.nv-bullet .nv-markerLine{stroke:#000;stroke-width:1.5px}.nvd3.nv-bullet .nv-tick line{stroke:#666;stroke-width:.5px}.nvd3.nv-bullet .nv-range.nv-s0{fill:#eee}.nvd3.nv-bullet .nv-range.nv-s1{fill:#ddd}.nvd3.nv-bullet .nv-range.nv-s2{fill:#ccc}.nvd3.nv-bullet .nv-title{font-size:14px;font-weight:700}.nvd3.nv-bullet .nv-subtitle{fill:#999}.nvd3.nv-bullet .nv-range{fill:#bababa;fill-opacity:.4}.nvd3.nv-bullet .nv-range:hover{fill-opacity:.7}.nvd3.nv-candlestickBar .nv-ticks .nv-tick{stroke-width:1px}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.hover{stroke-width:2px}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.positive rect{stroke:#2ca02c;fill:#2ca02c}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.negative rect{stroke:#d62728;fill:#d62728}.nvd3.nv-candlestickBar .nv-ticks line{stroke:#333}.nv-force-node{stroke:#fff;stroke-width:1.5px}.nv-force-link{stroke:#999;stroke-opacity:.6}.nv-force-node text{stroke-width:0}.nvd3 .nv-check-box .nv-box{fill-opacity:0;stroke-width:2}.nvd3 .nv-check-box .nv-check{fill-opacity:0;stroke-width:4}.nvd3 .nv-series.nv-disabled .nv-check-box .nv-check{fill-opacity:0;stroke-opacity:0}.nvd3.nv-linePlusBar .nv-bar rect{fill-opacity:.75}.nvd3.nv-linePlusBar .nv-bar rect:hover{fill-opacity:1}.nvd3 .nv-groups path.nv-line{fill:none}.nvd3 .nv-groups path.nv-area{stroke:none}.nvd3.nv-line .nvd3.nv-scatter .nv-groups .nv-point{fill-opacity:0;stroke-opacity:0}.nvd3.nv-scatter.nv-single-point .nv-groups .nv-point{fill-opacity:.5!important;stroke-opacity:.5!important}.nvd3 .nv-groups .nv-point.hover,.nvd3.nv-scatter .nv-groups .nv-point.hover{stroke-width:7px;fill-opacity:.95!important;stroke-opacity:.95!important}.nvd3 .nv-point-paths path{stroke:#aaa;stroke-opacity:0;fill:#eee;fill-opacity:0}.nvd3 .nv-indexLine{cursor:ew-resize}svg.nvd3-svg{-webkit-user-select:none;-moz-user-select:none;user-select:none;display:block;width:100%;height:100%}.nvtooltip.with-3d-shadow,.with-3d-shadow .nvtooltip{box-shadow:0 5px 10px #0003;border-radius:5px}.nvd3 text{font:400 12px Arial,sans-serif}.nvd3 .title{font:700 14px Arial,sans-serif}.nvd3 .nv-background{fill:#fff;fill-opacity:0}.nvd3.nv-noData{font-size:18px;font-weight:700}.nv-brush .extent{fill-opacity:.125}.nv-brush .resize path{fill:#eee;stroke:#666}.nvd3 .nv-legend .nv-series{cursor:pointer}.nvd3 .nv-legend .nv-disabled circle{fill-opacity:0}.nvd3 .nv-brush .extent{fill-opacity:0!important}.nvd3 .nv-brushBackground rect{stroke:#000;stroke-width:.4;fill:#fff;fill-opacity:.7}@media print{.nvd3 text{stroke-width:0;fill-opacity:1}}.nvd3.nv-ohlcBar .nv-ticks .nv-tick{stroke-width:1px}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.hover{stroke-width:2px}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.positive{stroke:#2ca02c}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.negative{stroke:#d62728}.nvd3 .background path{fill:none;stroke:#eee;stroke-opacity:.4}.nvd3 .foreground path{fill:none;stroke-opacity:.7}.nvd3 .nv-parallelCoordinates-brush .extent{fill:#fff;fill-opacity:.6;stroke:gray;shape-rendering:crispEdges}.nvd3 .nv-parallelCoordinates .hover{fill-opacity:1;stroke-width:3px}.nvd3 .missingValuesline line{fill:none;stroke:#000;stroke-width:1;stroke-opacity:1;stroke-dasharray:5,5}.nvd3.nv-pie .nv-pie-title{font-size:24px;fill:#13c4f996}.nvd3.nv-pie .nv-slice text{stroke:#000;stroke-width:0}.nvd3.nv-pie path{transition:fill-opacity .25s linear,stroke-width .25s linear,stroke-opacity .25s linear;stroke:#fff;stroke-width:1px;stroke-opacity:1;fill-opacity:.7}.nvd3.nv-pie .hover path{fill-opacity:1}.nvd3.nv-pie .nv-label rect{fill-opacity:0;stroke-opacity:0}.nvd3 .nv-groups .nv-point.hover{stroke-width:20px;stroke-opacity:.5}.nvd3 .nv-scatter .nv-point.hover{fill-opacity:1}.nvd3.nv-sparkline path{fill:none}.nvd3.nv-sparklineplus .nv-hoverValue line{stroke:#333;stroke-width:1.5px}.nvd3.nv-sparklineplus,.nvd3.nv-sparklineplus g{pointer-events:all}.nvd3 .nv-interactiveGuideLine,.nvtooltip{pointer-events:none}.nvd3 .nv-hoverArea{fill-opacity:0;stroke-opacity:0}.nvd3.nv-sparklineplus .nv-xValue,.nvd3.nv-sparklineplus .nv-yValue{stroke-width:0;font-size:.9em;font-weight:400}.nvd3.nv-sparklineplus .nv-yValue{stroke:#f66}.nvd3.nv-sparklineplus .nv-maxValue{stroke:#2ca02c;fill:#2ca02c}.nvd3.nv-sparklineplus .nv-minValue{stroke:#d62728;fill:#d62728}.nvd3.nv-sparklineplus .nv-currentValue{font-weight:700;font-size:1.1em}.nvtooltip h3,.nvtooltip table td.key{font-weight:400}.nvd3.nv-stackedarea path.nv-area{fill-opacity:.7;stroke-opacity:0;transition:fill-opacity .25s linear,stroke-opacity .25s linear}.nvd3.nv-stackedarea path.nv-area.hover{fill-opacity:.9}.nvd3.nv-stackedarea .nv-groups .nv-point{stroke-opacity:0;fill-opacity:0}.nvtooltip{position:absolute;color:#000;padding:1px;z-index:10000;display:block;font-family:Arial,sans-serif;font-size:13px;text-align:left;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;background:rgba(255,255,255,.8);border:1px solid rgba(0,0,0,.5);border-radius:4px}.nvtooltip h3,.nvtooltip p{margin:0;text-align:center}.nvtooltip.with-transitions,.with-transitions .nvtooltip{transition:opacity 50ms linear;transition-delay:.2s}.nvtooltip.x-nvtooltip,.nvtooltip.y-nvtooltip{padding:8px}.nvtooltip h3{padding:4px 14px;line-height:18px;background-color:#f7f7f7bf;color:#000;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.nvtooltip p{padding:5px 14px}.nvtooltip span{display:inline-block;margin:2px 0}.nvtooltip table{margin:6px;border-spacing:0}.nvtooltip table td{padding:2px 9px 2px 0;vertical-align:middle}.nvtooltip table td.key.total{font-weight:700}.nvtooltip table td.value{text-align:right;font-weight:700}.nvtooltip table td.percent{color:#a9a9a9}.nvtooltip table tr.highlight td{padding:1px 9px 1px 0;border-bottom-style:solid;border-bottom-width:1px;border-top-style:solid;border-top-width:1px}.nvtooltip table td.legend-color-guide div{vertical-align:middle;width:12px;height:12px;border:1px solid #999}.nvtooltip .footer{padding:3px;text-align:center}.nvtooltip-pending-removal{pointer-events:none;display:none}.nvd3 line.nv-guideline{stroke:#ccc}\n"]}]}],de.ctorParameters=function(){return[{type:t.Injector},{type:r.App}]},de.propDecorators={title:[{type:t.HostBinding,args:["class.panel"]}]};var he=[de],me=function(){};me.decorators=[{type:t.NgModule,args:[{imports:[o.BasicModule,n.CommonModule,i.WmComponentsModule],declarations:l([],s(he)),exports:l([],s(he)),entryComponents:[]}]}],e.ChartComponent=de,e.ChartModule=me,e["\u02750"]=ie,e["\u02751"]=re,e["\u02752"]=se,e["\u02753"]=ce,e["\u02754"]=ue,e["\u0275a"]=c,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("ngx-bootstrap/dropdown"),require("@wm/components/base"),require("@wm/components/basic"),require("@wm/components/input"),require("@angular/router"),require("@wm/core")):"function"==typeof define&&define.amd?define("@wm/components/navigation/menu",["exports","@angular/core","@angular/common","ngx-bootstrap/dropdown","@wm/components/base","@wm/components/basic","@wm/components/input","@angular/router","@wm/core"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.components=e.wm.components||{},e.wm.components.navigation=e.wm.components.navigation||{},e.wm.components.navigation.menu={}),e.ng.core,e.ng.common,e["ngx-bootstrap"].dropdown,e.wm.components.base,e.wm.components.basic,e.wm.components.input,e.ng.router,e.wm.core)}(this,(function(e,t,n,i,o,r,a,s,l){"use strict";
254
254
  /*! *****************************************************************************
255
255
  Copyright (c) Microsoft Corporation.
256
256
 
@@ -685,7 +685,7 @@ var c=function(e,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
685
685
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
686
686
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
687
687
  PERFORMANCE OF THIS SOFTWARE.
688
- ***************************************************************************** */var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function l(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function p(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var u=function(){i.register("wm-wizard",new Map([["actionsalignment",Object.assign({value:"right"},i.PROP_STRING)],["cancelable",Object.assign({value:!0},i.PROP_BOOLEAN)],["cancelbtnlabel",Object.assign({value:"Cancel"},i.PROP_STRING)],["class",Object.assign({value:"classic"},i.PROP_STRING)],["defaultstep",Object.assign({value:"none"},i.PROP_STRING)],["donebtnlabel",Object.assign({value:"Done"},i.PROP_STRING)],["name",i.PROP_STRING],["nextbtnlabel",Object.assign({value:"Next"},i.PROP_STRING)],["previousbtnlabel",Object.assign({value:"Previous"},i.PROP_STRING)],["show",Object.assign({value:!0},i.PROP_BOOLEAN)],["stepstyle",Object.assign({value:"auto"},i.PROP_STRING)]]))},d=function(){i.register("wm-wizardstep",new Map([["class",i.PROP_STRING],["enableskip",Object.assign({value:!1},i.PROP_BOOLEAN)],["iconclass",Object.assign({value:"wi wi-person"},i.PROP_STRING)],["doneiconclass",Object.assign({value:"wi wi-done"},i.PROP_STRING)],["name",i.PROP_STRING],["show",Object.assign({value:!0},i.PROP_BOOLEAN)],["title",Object.assign({value:"Step Title"},i.PROP_STRING)]]))},h={widgetType:"wm-wizardstep",hostClass:"app-wizard-step-content"},m=function(e){function t(t,n){var i=e.call(this,t,h)||this;return i.ngForm=n,i.isDone=!1,i.status=2,i.wizardComponent=i.inj.get(g),i}return s(t,e),Object.defineProperty(t.prototype,"isCurrent",{get:function(){return this.active},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValid",{get:function(){return(this.ngForm.valid||this.ngForm.disabled)&&this.areEmbeddedFormsValid()},enumerable:!1,configurable:!0}),t.prototype.areEmbeddedFormsValid=function(){var e,t,n=this.getAllEmbeddedForms();try{for(var i=l(n),o=i.next();!o.done;o=i.next()){var r=o.value;if(r.widget&&!r.widget.ngform.valid)return!1}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return!0},t.prototype.getAllEmbeddedForms=function(){return this.$element.find("form")},Object.defineProperty(t.prototype,"enableNext",{get:function(){return!this.disablenext},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableDone",{get:function(){return!this.disabledone},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enablePrev",{get:function(){return!this.disableprevious},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return 1===this.status},set:function(e){var t=this.active;this.status=1,e&&!t&&this.redrawChildren()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"done",{get:function(){return 3===this.status},set:function(e){e&&(this.status=3)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return 2===this.status},set:function(e){e&&(this.status=2)},enumerable:!1,configurable:!0}),t.prototype.invokeNextCB=function(e){return this.invokeEventCallback("next",{currentStep:this,stepIndex:e})},t.prototype.invokePrevCB=function(e){return this.invokeEventCallback("prev",{currentStep:this,stepIndex:e})},t.prototype.invokeSkipCB=function(e){return this.invokeEventCallback("skip",{currentStep:this,stepIndex:e})},t.prototype.redrawChildren=function(){var e=this;setTimeout((function(){e.reDrawableComponents&&e.reDrawableComponents.forEach((function(e){return e.redraw()}));var t=e.wizardComponent.getCurrentStepIndex();e.invokeEventCallback("load",{stepIndex:t})}),100)},t}(i.BaseComponent);m.initializeProps=d(),m.decorators=[{type:t.Directive,args:[{selector:"form[wmWizardStep]",providers:[i.provideAsWidgetRef(m)],exportAs:"wmWizardStep"}]}],m.ctorParameters=function(){return[{type:t.Injector},{type:r.NgForm,decorators:[{type:t.Self}]}]},m.propDecorators={reDrawableComponents:[{type:t.ContentChildren,args:[i.RedrawableDirective,{descendants:!0}]}],isCurrent:[{type:t.HostBinding,args:["class.current"]}]};var f={widgetType:"wm-wizard",hostClass:"app-wizard panel clearfix"},g=function(e){function t(t){var n=this,r=o.noop;return n=e.call(this,t,f,new Promise((function(e){return r=e})))||this,i.styler(n.nativeElement,n,i.APPLY_STYLES_TYPE.SHELL),n.promiseResolverFn=r,n.message={caption:"",type:""},n}return s(t,e),Object.defineProperty(t.prototype,"hasPrevStep",{get:function(){return!this.isFirstStep(this.currentStep)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNextStep",{get:function(){return!this.isLastStep(this.currentStep)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showDoneBtn",{get:function(){if(this.currentStep)return!this.hasNextStep&&this.currentStep.enableDone},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enablePrev",{get:function(){if(this.currentStep)return this.currentStep.enablePrev},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableNext",{get:function(){if(this.currentStep)return this.currentStep.enableNext&&this.currentStep.isValid},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableDone",{get:function(){if(this.currentStep)return this.currentStep.enableDone&&this.currentStep.isValid},enumerable:!1,configurable:!0}),t.prototype.getNextValidStepFormIndex=function(e){for(var t=e;t<this.steps.length;t++){var n=this.getStepRefByIndex(t);if(n.show)return n}},t.prototype.getPreviousValidStepFormIndex=function(e){for(var t=e;t>=0;t--){var n=this.getStepRefByIndex(t);if(n.show)return n}},t.prototype.getCurrentStepIndex=function(){return this.getStepIndexByRef(this.currentStep)},t.prototype.getStepRefByIndex=function(e){return this.steps.toArray()[e]},t.prototype.getStepIndexByRef=function(e){return this.steps.toArray().indexOf(e)},t.prototype.getStepRefByName=function(e){return this.steps.find((function(t){return t.name===e}))},t.prototype.setDefaultStep=function(e){if(e&&e.show){this.currentStep=e,e.active=!0,e.isInitialized=!0;for(var t=this.getStepIndexByRef(e)-1;t>=0;){var n=this.getStepRefByIndex(t);n.done=!0,n.isInitialized=!0,t--}}else(e=this.getNextValidStepFormIndex(0))&&this.setDefaultStep(e)},t.prototype.onWizardHeaderClick=function(e,t){var n=this;t.done&&(this.steps.forEach((function(e,i){i<n.getStepIndexByRef(t)?(e.done=!0,e.isDone=!0):(e.disabled=!0,e.isDone=!1)})),this.currentStep=t,this.currentStep.active=!0)},t.prototype.next=function(e){void 0===e&&(e="next");var t,n=this.currentStep,i=this.getCurrentStepIndex();if("skip"===e){if(!1===n.invokeSkipCB(i))return}else if("next"===e&&!1===n.invokeNextCB(i))return;(t=this.getNextValidStepFormIndex(i+1)).isInitialized=!0,t&&(n.isDone=!0,n.done=!0,t.active=!0,this.currentStep=t)},t.prototype.prev=function(){var e,t=this.currentStep,n=this.getCurrentStepIndex();!1!==t.invokePrevCB(n)&&(e=this.getPreviousValidStepFormIndex(n-1))&&(t.isDone=!1,t.disabled=!0,e.active=!0,this.currentStep=e)},t.prototype.skip=function(){this.next("skip")},t.prototype.done=function(){this.currentStep.isDone=!0,this.invokeEventCallback("done",{steps:this.steps.toArray()})},t.prototype.cancel=function(){this.invokeEventCallback("cancel",{steps:this.steps.toArray()})},t.prototype.isFirstStep=function(e){return this.steps.first===e},t.prototype.isLastStep=function(e){return this.steps.last===e},t.prototype.onPropertyChange=function(t,n,i){"stepstyle"===t?this.stepClass="justified"===n?"nav-justified":"":"defaultstep"===t?this.setDefaultStep(this.getStepRefByName(n)):e.prototype.onPropertyChange.call(this,t,n,i)},t.prototype.ngAfterContentInit=function(){e.prototype.ngAfterContentInit.call(this),this.promiseResolverFn()},t.prototype.ngAfterViewInit=function(){e.prototype.ngAfterViewInit.call(this),i.styler(this.nativeElement.querySelector(".panel-body"),this,i.APPLY_STYLES_TYPE.INNER_SHELL)},t}(i.StylableComponent);g.initializeProps=u(),g.decorators=[{type:t.Component,args:[{selector:"div[wmWizard]",template:'<div class="app-wizard-heading" role="tab">\n <ul class="app-wizard-steps nav nav-pills {{stepClass}}">\n <li class="app-wizard-step" *ngFor="let step of steps; let i = index" [hidden]="!step.show"\n [ngClass]="{active: step.done, current: step.active, disabled: step.disabled}"\n (click)="onWizardHeaderClick($event, step)">\n <a href="javascript:void(0)" [attr.aria-label]="step.title" [attr.title]="step.title">\n <span class="arrow" *ngIf="class && class.includes(\'classic\')"></span>\n <span class="wizard-step-number">\n <span class="count" *ngIf="class && class.includes(\'number\') && !step.isDone">{{i+1}}</span>\n <i class="dottedstepper" *ngIf="class && (class.includes(\'dottedstepper\') || class.includes(\'text-inline\') && !class.includes(\'iconstepper\')) && !step.isDone"></i>\n <i class="app-icon wi wi-done" *ngIf="class && (class.includes(\'dottedstepper\') || class.includes(\'number\')) && step.isDone"></i>\n <i class="app-icon {{step.iconclass}}" *ngIf="(class && class.includes(\'iconstepper\')) && ((step.iconclass && !step.isDone) || (step.iconclass && step.isDone && step.doneiconclass ===\'\'))"></i>\n <i class="app-icon {{step.doneiconclass}}" *ngIf="step.doneiconclass && step.isDone && (class && class.includes(\'iconstepper\'))"></i>\n </span>\n <span class="title-wrapper">\n <span *ngIf="class && class.includes(\'text-inline\')">{{\'0\' + (i+1)}}</span>\n <span class="step-title" [textContent]="step.title"></span>\n </span>\n </a>\n </li>\n </ul>\n</div>\n<div class="app-wizard-body panel-body" role="tabpanel">\n <p wmMessage *ngIf="message.caption" caption.bind="message.caption" type.bind="message.type"></p>\n <ng-content ngProjectAs="form[wmWizardStep]"></ng-content>\n</div>\n<div class="app-wizard-actions panel-footer {{actionsalignment}}">\n <a class="app-wizard-skip" name="skipStep_{{name}}" *ngIf="currentStep?.enableskip" title="Skip step" (click)="skip()">Skip &raquo;</a>\n <div class="app-wizard-actions-right">\n <button type="button" name="cancelBtn_{{name}}" class="btn app-button btn-default" *ngIf="cancelable"\n (click)="cancel()" [title]="cancelbtnlabel" [textContent]="cancelbtnlabel"></button>\n <button type="button" name="previousBtn_{{name}}" class="btn app-button btn-default"\n *ngIf="hasPrevStep" (click)="prev()" [disabled]="!enablePrev">\n <i class="app-icon wi wi-chevron-left"></i>\n <span class="btn-caption" [textContent]="previousbtnlabel"></span>\n </button>\n <button type="button" name="nextBtn_{{name}}" class="btn app-button btn-primary"\n *ngIf="hasNextStep" (click)="next()" [disabled]="!enableNext">\n <span class="btn-caption" [textContent]="nextbtnlabel"></span>\n <i class="app-icon wi wi-chevron-right"></i>\n </button>\n <button type="button" name="doneBtn_{{name}}" class="btn app-button btn-success"\n *ngIf="showDoneBtn" (click)="done()"\n [disabled]="!enableDone">\n <i class="app-icon wm-sl-l sl-check"></i>\n <span class="btn-caption" [textContent]="donebtnlabel"></span>\n </button>\n </div>\n</div>\n',providers:[i.provideAsWidgetRef(g)]}]}],g.ctorParameters=function(){return[{type:t.Injector}]},g.propDecorators={steps:[{type:t.ContentChildren,args:[m]}]};var v=[m,g],y=function(){};y.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.WmComponentsModule],declarations:p([],c(v)),exports:p([],c(v)),entryComponents:[]}]}],e.WizardComponent=g,e.WizardModule=y,e.WizardStepDirective=m,e["\u0275a"]=d,e["\u0275b"]=u,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("ngx-bootstrap/carousel"),require("@wm/components/base"),require("@swipey")):"function"==typeof define&&define.amd?define("@wm/components/advanced/carousel",["exports","@angular/core","@angular/common","ngx-bootstrap/carousel","@wm/components/base","@swipey"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.components=e.wm.components||{},e.wm.components.advanced=e.wm.components.advanced||{},e.wm.components.advanced.carousel={}),e.ng.core,e.ng.common,e["ngx-bootstrap"].carousel,e.wm.components.base,e.swipey)}(this,(function(e,t,n,i,o,r){"use strict";
688
+ ***************************************************************************** */var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function l(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function p(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var u=function(){i.register("wm-wizard",new Map([["actionsalignment",Object.assign({value:"right"},i.PROP_STRING)],["cancelable",Object.assign({value:!0},i.PROP_BOOLEAN)],["cancelbtnlabel",Object.assign({value:"Cancel"},i.PROP_STRING)],["class",Object.assign({value:"classic"},i.PROP_STRING)],["defaultstep",Object.assign({value:"none"},i.PROP_STRING)],["donebtnlabel",Object.assign({value:"Done"},i.PROP_STRING)],["name",i.PROP_STRING],["nextbtnlabel",Object.assign({value:"Next"},i.PROP_STRING)],["previousbtnlabel",Object.assign({value:"Previous"},i.PROP_STRING)],["show",Object.assign({value:!0},i.PROP_BOOLEAN)],["stepstyle",Object.assign({value:"auto"},i.PROP_STRING)]]))},d=function(){i.register("wm-wizardstep",new Map([["class",i.PROP_STRING],["enableskip",Object.assign({value:!1},i.PROP_BOOLEAN)],["iconclass",Object.assign({value:"wi wi-person"},i.PROP_STRING)],["doneiconclass",Object.assign({value:"wi wi-done"},i.PROP_STRING)],["name",i.PROP_STRING],["show",Object.assign({value:!0},i.PROP_BOOLEAN)],["title",Object.assign({value:"Step Title"},i.PROP_STRING)],["subtitle",i.PROP_STRING]]))},h={widgetType:"wm-wizardstep",hostClass:"app-wizard-step-content"},m=function(e){function t(t,n){var i=e.call(this,t,h)||this;return i.ngForm=n,i.isDone=!1,i.status=2,i.wizardComponent=i.inj.get(g),i}return s(t,e),Object.defineProperty(t.prototype,"isCurrent",{get:function(){return this.active},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValid",{get:function(){return(this.ngForm.valid||this.ngForm.disabled)&&this.areEmbeddedFormsValid()},enumerable:!1,configurable:!0}),t.prototype.areEmbeddedFormsValid=function(){var e,t,n=this.getAllEmbeddedForms();try{for(var i=l(n),o=i.next();!o.done;o=i.next()){var r=o.value;if(r.widget&&!r.widget.ngform.valid)return!1}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return!0},t.prototype.getAllEmbeddedForms=function(){return this.$element.find("form")},Object.defineProperty(t.prototype,"enableNext",{get:function(){return!this.disablenext},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableDone",{get:function(){return!this.disabledone},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enablePrev",{get:function(){return!this.disableprevious},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return 1===this.status},set:function(e){var t=this.active;this.status=1,e&&!t&&this.redrawChildren()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"done",{get:function(){return 3===this.status},set:function(e){e&&(this.status=3)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return 2===this.status},set:function(e){e&&(this.status=2)},enumerable:!1,configurable:!0}),t.prototype.invokeNextCB=function(e){return this.invokeEventCallback("next",{currentStep:this,stepIndex:e})},t.prototype.invokePrevCB=function(e){return this.invokeEventCallback("prev",{currentStep:this,stepIndex:e})},t.prototype.invokeSkipCB=function(e){return this.invokeEventCallback("skip",{currentStep:this,stepIndex:e})},t.prototype.redrawChildren=function(){var e=this;setTimeout((function(){e.reDrawableComponents&&e.reDrawableComponents.forEach((function(e){return e.redraw()}));var t=e.wizardComponent.getCurrentStepIndex();e.invokeEventCallback("load",{stepIndex:t})}),100)},t}(i.BaseComponent);m.initializeProps=d(),m.decorators=[{type:t.Directive,args:[{selector:"form[wmWizardStep]",providers:[i.provideAsWidgetRef(m)],exportAs:"wmWizardStep"}]}],m.ctorParameters=function(){return[{type:t.Injector},{type:r.NgForm,decorators:[{type:t.Self}]}]},m.propDecorators={reDrawableComponents:[{type:t.ContentChildren,args:[i.RedrawableDirective,{descendants:!0}]}],isCurrent:[{type:t.HostBinding,args:["class.current"]}]};var f={widgetType:"wm-wizard",hostClass:"app-wizard panel clearfix"},g=function(e){function t(t){var n=this,r=o.noop;return n=e.call(this,t,f,new Promise((function(e){return r=e})))||this,i.styler(n.nativeElement,n,i.APPLY_STYLES_TYPE.SHELL),n.promiseResolverFn=r,n.message={caption:"",type:""},n}return s(t,e),Object.defineProperty(t.prototype,"hasPrevStep",{get:function(){return!this.isFirstStep(this.currentStep)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNextStep",{get:function(){return!this.isLastStep(this.currentStep)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showDoneBtn",{get:function(){if(this.currentStep)return!this.hasNextStep&&this.currentStep.enableDone},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enablePrev",{get:function(){if(this.currentStep)return this.currentStep.enablePrev},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableNext",{get:function(){if(this.currentStep)return this.currentStep.enableNext&&this.currentStep.isValid},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableDone",{get:function(){if(this.currentStep)return this.currentStep.enableDone&&this.currentStep.isValid},enumerable:!1,configurable:!0}),t.prototype.getNextValidStepFormIndex=function(e){for(var t=e;t<this.steps.length;t++){var n=this.getStepRefByIndex(t);if(n.show)return n}},t.prototype.getPreviousValidStepFormIndex=function(e){for(var t=e;t>=0;t--){var n=this.getStepRefByIndex(t);if(n.show)return n}},t.prototype.getCurrentStepIndex=function(){return this.getStepIndexByRef(this.currentStep)},t.prototype.getStepRefByIndex=function(e){return this.steps.toArray()[e]},t.prototype.getStepIndexByRef=function(e){return this.steps.toArray().indexOf(e)},t.prototype.getStepRefByName=function(e){return this.steps.find((function(t){return t.name===e}))},t.prototype.setDefaultStep=function(e){if(e&&e.show){this.currentStep=e,e.active=!0,e.isInitialized=!0;for(var t=this.getStepIndexByRef(e)-1;t>=0;){var n=this.getStepRefByIndex(t);n.done=!0,n.isInitialized=!0,t--}}else(e=this.getNextValidStepFormIndex(0))&&this.setDefaultStep(e);this.addMoreText()},t.prototype.onWizardHeaderClick=function(e,t){var n=this;t.done&&(this.steps.forEach((function(e,i){i<n.getStepIndexByRef(t)?(e.done=!0,e.isDone=!0):(e.disabled=!0,e.isDone=!1)})),this.currentStep=t,this.currentStep.active=!0,this.addMoreText())},t.prototype.next=function(e){void 0===e&&(e="next");var t,n=this.currentStep,i=this.getCurrentStepIndex();if("skip"===e){if(!1===n.invokeSkipCB(i))return}else if("next"===e&&!1===n.invokeNextCB(i))return;(t=this.getNextValidStepFormIndex(i+1)).isInitialized=!0,t&&(n.isDone=!0,n.done=!0,t.active=!0,this.currentStep=t),this.addMoreText()},t.prototype.prev=function(){var e,t=this.currentStep,n=this.getCurrentStepIndex();!1!==t.invokePrevCB(n)&&((e=this.getPreviousValidStepFormIndex(n-1))&&(t.isDone=!1,t.disabled=!0,e.active=!0,this.currentStep=e),this.addMoreText())},t.prototype.skip=function(){this.next("skip")},t.prototype.done=function(){this.currentStep.isDone=!0,this.invokeEventCallback("done",{steps:this.steps.toArray()})},t.prototype.cancel=function(){this.invokeEventCallback("cancel",{steps:this.steps.toArray()})},t.prototype.addMoreText=function(){setTimeout((function(){if($(window).width()<768){$(".app-wizard-step.current .subtitle-wrapper .step-title").css({height:"auto",display:"block"});var e=$(".app-wizard-step.current .subtitle-wrapper .step-title").height();$(".read_more").css("display","none"),$(".current .subtitle-wrapper").removeClass("readmore_subtitle"),e>44&&($(".app-wizard-step.current .subtitle-wrapper .step-title").css({height:"44px",display:"-webkit-box"}),$(".current .read_more").css("display","block"),$(".active .read_more").css("display","none"),$(".disable .read_more").css("display","none"),$(".app-wizard-step>a").css("height","100px"))}}))},t.prototype.readMoreSubtitle=function(){$(".current .subtitle-wrapper").addClass("readmore_subtitle"),$(".current .read_more").css("display","none"),$(document).on("mouseup",(function(e){var t=$(".subtitle-wrapper");t.is(e.target)||0!==t.has(e.target).length||($(".current .subtitle-wrapper").removeClass("readmore_subtitle"),$(".current .read_more").css("display","block"),$(document).off("mouseup"))}))},t.prototype.isFirstStep=function(e){return this.steps.first===e},t.prototype.isLastStep=function(e){return this.steps.last===e},t.prototype.onPropertyChange=function(t,n,i){"stepstyle"===t?this.stepClass="justified"===n?"nav-justified":"":"defaultstep"===t?this.setDefaultStep(this.getStepRefByName(n)):e.prototype.onPropertyChange.call(this,t,n,i)},t.prototype.ngAfterContentInit=function(){e.prototype.ngAfterContentInit.call(this),this.promiseResolverFn()},t.prototype.ngAfterViewInit=function(){e.prototype.ngAfterViewInit.call(this),i.styler(this.nativeElement.querySelector(".panel-body"),this,i.APPLY_STYLES_TYPE.INNER_SHELL),setTimeout((function(){$(window).width()<768&&$(".app-wizard").removeClass("vertical")}))},t}(i.StylableComponent);g.initializeProps=u(),g.decorators=[{type:t.Component,args:[{selector:"div[wmWizard]",template:'<div class="app-wizard-heading" role="tab">\n <ul class="app-wizard-steps nav nav-pills {{stepClass}}">\n <li class="app-wizard-step" *ngFor="let step of steps; let i = index" [hidden]="!step.show"\n [ngClass]="{active: step.done, current: step.active, disabled: step.disabled}"\n (click)="onWizardHeaderClick($event, step)">\n <a href="javascript:void(0)" [attr.aria-label]="step.title" [attr.title]="step.title" [ngClass]="{\'title-center-align\':class && class.includes(\'classic\') && !step.subtitle}">\n <span class="arrow" *ngIf="class && class.includes(\'classic\')"></span>\n <span class="wizard-step-number">\n <span class="count" *ngIf="class && class.includes(\'number\') && !step.isDone">{{i+1}}</span>\n <i class="dottedstepper" *ngIf="class && (class.includes(\'dottedstepper\') || class.includes(\'text-inline\') && !class.includes(\'iconstepper\')) && !step.isDone"></i>\n <i class="app-icon wi wi-done" *ngIf="class && (class.includes(\'dottedstepper\') || class.includes(\'number\')) && step.isDone"></i>\n <i class="app-icon {{step.iconclass}}" *ngIf="(class && class.includes(\'iconstepper\')) && ((step.iconclass && !step.isDone) || (step.iconclass && step.isDone && step.doneiconclass ===\'\'))"></i>\n <i class="app-icon {{step.doneiconclass}}" *ngIf="step.doneiconclass && step.isDone && (class && class.includes(\'iconstepper\'))"></i>\n </span>\n <span class="title-wrapper">\n <span *ngIf="class && class.includes(\'text-inline\')">{{\'0\' + (i+1)}}</span>\n <span class="step-title" [textContent]="step.title"></span>\n </span>\n <span class="subtitle-wrapper" [attr.title]="step.subtitle" *ngIf="step.subtitle">\n <span class="step-title" [textContent]="step.subtitle"></span>\n <a class="read_more" (click)="readMoreSubtitle()" style="display:none">more</a>\n </span>\n </a> \n </li>\n </ul>\n</div>\n<div class="app-wizard-body panel-body" role="tabpanel">\n <p wmMessage *ngIf="message.caption" caption.bind="message.caption" type.bind="message.type"></p>\n <ng-content ngProjectAs="form[wmWizardStep]"></ng-content>\n</div>\n<div class="app-wizard-actions panel-footer {{actionsalignment}}">\n <a class="app-wizard-skip" name="skipStep_{{name}}" *ngIf="currentStep?.enableskip" title="Skip step" (click)="skip()">Skip &raquo;</a>\n <div class="app-wizard-actions-right">\n <button type="button" name="cancelBtn_{{name}}" class="btn app-button btn-default" *ngIf="cancelable"\n (click)="cancel()" [title]="cancelbtnlabel" [textContent]="cancelbtnlabel"></button>\n <button type="button" name="previousBtn_{{name}}" class="btn app-button btn-default"\n *ngIf="hasPrevStep" (click)="prev()" [disabled]="!enablePrev">\n <i class="app-icon wi wi-chevron-left"></i>\n <span class="btn-caption" [textContent]="previousbtnlabel"></span>\n </button>\n <button type="button" name="nextBtn_{{name}}" class="btn app-button btn-primary"\n *ngIf="hasNextStep" (click)="next()" [disabled]="!enableNext">\n <span class="btn-caption" [textContent]="nextbtnlabel"></span>\n <i class="app-icon wi wi-chevron-right"></i>\n </button>\n <button type="button" name="doneBtn_{{name}}" class="btn app-button btn-success"\n *ngIf="showDoneBtn" (click)="done()"\n [disabled]="!enableDone">\n <i class="app-icon wm-sl-l sl-check"></i>\n <span class="btn-caption" [textContent]="donebtnlabel"></span>\n </button>\n </div>\n</div>\n',providers:[i.provideAsWidgetRef(g)]}]}],g.ctorParameters=function(){return[{type:t.Injector}]},g.propDecorators={steps:[{type:t.ContentChildren,args:[m]}]};var v=[m,g],y=function(){};y.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.WmComponentsModule],declarations:p([],c(v)),exports:p([],c(v)),entryComponents:[]}]}],e.WizardComponent=g,e.WizardModule=y,e.WizardStepDirective=m,e["\u0275a"]=d,e["\u0275b"]=u,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("ngx-bootstrap/carousel"),require("@wm/components/base"),require("@swipey")):"function"==typeof define&&define.amd?define("@wm/components/advanced/carousel",["exports","@angular/core","@angular/common","ngx-bootstrap/carousel","@wm/components/base","@swipey"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.components=e.wm.components||{},e.wm.components.advanced=e.wm.components.advanced||{},e.wm.components.advanced.carousel={}),e.ng.core,e.ng.common,e["ngx-bootstrap"].carousel,e.wm.components.base,e.swipey)}(this,(function(e,t,n,i,o,r){"use strict";
689
689
  /*! *****************************************************************************
690
690
  Copyright (c) Microsoft Corporation.
691
691
 
@@ -870,4 +870,4 @@ var p=function(e,t){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
870
870
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
871
871
  PERFORMANCE OF THIS SOFTWARE.
872
872
  ***************************************************************************** */
873
- var Y=function(e,t){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function K(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Q(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))}function X(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}Object.create;function J(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Z(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function ee(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var te=function(){function e(){this.fragments=0,this.fragmentsLoaded$=new l.Subject}return e.prototype.init=function(){var e=this;this.viewInit$.subscribe(o.noop,o.noop,(function(){e.isViewInitialized=!0,e.isReady()}))},e.prototype.registerFragment=function(){this.fragments++},e.prototype.resolveFragment=function(){this.fragments--,this.isReady()},e.prototype.isReady=function(){this.isViewInitialized&&!this.fragments&&(this.registerFragment=o.noop,this.resolveFragment=o.noop,this.fragmentsLoaded$.complete())},e}();te.decorators=[{type:t.Directive}],te.ctorParameters=function(){return[]};var ne={},ie=function(e){function t(){var t=e.apply(this,ee([],Z(arguments)))||this;return t.compileContent=!1,t.destroy$=new l.Subject,t.viewInit$=new l.Subject,t}return K(t,e),t.prototype.getContainerWidgetInjector=function(){return this.containerWidget.inj||this.containerWidget.injector},t.prototype.init=function(){var t=this;this.App=this.injector.get(o.App),this.containerWidget=this.injector.get(c.WidgetRef),this.i18nService=this.injector.get(o.AbstractI18nService),this.scriptLoaderService=this.injector.get(o.ScriptLoaderService),this.Viewport=this.injector.get(o.Viewport),this.getContainerWidgetInjector().view.component.registerFragment&&this.getContainerWidgetInjector().view.component.registerFragment(),this.registerExpressions(),this.initUserScript(),this.registerWidgets(),this.initVariables(),this.activePageName=this.App.activePageName,this.registerPageParams(),this.defineI18nProps(),this.viewInit$.subscribe(o.noop,o.noop,(function(){t.pageParams=t.containerWidget.partialParams})),this.spa?this.pageDirective=this.injector.get(s.SpaPageDirective,null):this.pageDirective=this.injector.get(s.PageDirective,null),this.pageDirective&&(this.registerDestroyListener(this.pageDirective.subscribe("attach",(function(e){return t.ngOnAttach(e.refreshData)}))),this.registerDestroyListener(this.pageDirective.subscribe("detach",(function(){return t.ngOnDetach()})))),e.prototype.init.call(this)},t.prototype.registerWidgets=function(){"Common"===this.partialName?this.Widgets=ne:this.Widgets=Object.create(ne),this.containerWidget.Widgets=this.Widgets},t.prototype.registerDestroyListener=function(e){this.destroy$.subscribe(o.noop,o.noop,(function(){return e()}))},t.prototype.initUserScript=function(){try{this.getContainerWidgetInjector().view.component.prefabName&&(this.getContainerWidgetInjector().view.component.Prefab?this.Prefab=this.getContainerWidgetInjector().view.component.Prefab:this.Prefab=this.getContainerWidgetInjector().view.component),this.evalUserScript(this,this.App,this.injector.get(o.UtilsService))}catch(e){console.error("Error in evaluating partial ("+this.partialName+") script\n",e)}},t.prototype.initVariables=function(){var e=this,t=this.injector.get(a.VariablesService).register(this.partialName,this.getVariables(),this);this.Variables=Object.create(this.App.Variables),this.Actions=Object.create(this.App.Actions),this.containerWidget.Variables=this.Variables,this.containerWidget.Actions=this.Actions,Object.entries(t.Variables).forEach((function(t){var n=Z(t,2),i=n[0],o=n[1];return e.Variables[i]=o})),Object.entries(t.Actions).forEach((function(t){var n=Z(t,2),i=n[0],o=n[1];return e.Actions[i]=o})),this.viewInit$.subscribe(o.noop,o.noop,(function(){o.$invokeWatchers(!0,!0),t.callback(t.Variables).catch(o.noop),t.callback(t.Actions)}))},t.prototype.registerExpressions=function(){var e=this.getExpressions();_.each(e,(function(e,t){o.registerFnByExpr(t,e[0],e[1])}))},t.prototype.registerPageParams=function(){this.pageParams=this.containerWidget.partialParams},t.prototype.defineI18nProps=function(){this.appLocale=this.i18nService.getAppLocale()},t.prototype.invokeOnReady=function(){var e;this.containerWidget.userComponentParams&&(e=this.containerWidget.userComponentParams),this.onReady(e),this.getContainerWidgetInjector().view.component.resolveFragment&&this.getContainerWidgetInjector().view.component.resolveFragment()},t.prototype.loadScripts=function(){var e=this;return new Promise((function(t){var n,i=e.partialDirective.$element.attr("scripts-to-load");i?(n=e.scriptLoaderService).load.apply(n,ee([],Z(i.split(",")))).then(t):t()}))},t.prototype.mute=function(){var e=function(e){e&&e.mute&&e.mute()};_.each(this.Widgets,e),_.each(this.Variables,e),_.each(this.Actions,e)},t.prototype.unmute=function(){var e=function(e){e&&e.unmute&&e.unmute()};_.each(this.Widgets,e),_.each(this.Variables,e),_.each(this.Actions,e)},t.prototype.ngAfterViewInit=function(){var e=this;this.loadScripts().then((function(){e.compileContent=!0,setTimeout((function(){e.viewInit$.complete(),e.fragmentsLoaded$.subscribe(o.noop,o.noop,(function(){return e.invokeOnReady()}))}),100)}))},t.prototype.ngOnDestroy=function(){this.destroy$.complete()},t.prototype.ngOnAttach=function(e){if(this.unmute(),e){var t=function(e){e&&e.startUpdate&&e.invoke&&e.invoke()};_.each(this.Variables,t),_.each(this.Actions,t)}_.each(this.Widgets,(function(e){return e&&e.ngOnAttach&&e.ngOnAttach()}))},t.prototype.ngOnDetach=function(){this.mute(),_.each(this.Widgets,(function(e){return e&&e.ngOnDetach&&e.ngOnDetach()}))},t.prototype.onReady=function(e){},t}(te);ie.decorators=[{type:t.Directive}],ie.propDecorators={partialDirective:[{type:t.ViewChild,args:[c.PartialDirective]}]};var oe="_cache_page",re="REUSE_ROUTE_STRATEGY.MAX_CACHE_SIZE",ae="REUSE_ROUTE_STRATEGY.MAX_CACHE_AGE",se=function(){function e(e,t){var n=this;this.maxCacheSize=e,this.maxCacheAge=t,this.paramsToIgnore=["wm_state",oe],this.getSize=function(e){return e?Object.keys(e).length:0},this.cache=new o.LRUCache(e,t,(function(e,t){n.currentRouteKey===e?n.cache.set(e,t):t.componentRef.destroy()}))}return e.prototype.getKey=function(e){var t=this,n=_.chain(e.queryParams).keys().filter((function(e){return!_.includes(t.paramsToIgnore,e)})).orderBy().map((function(t){return t+"="+e.queryParams[t]})).value().join("&"),i=e.params.pageName;return e.data.pageName&&""===e.routeConfig.path&&(i=e.data.pageName),i&&i+(n?"?"+n:"")},e.prototype.isSameQueryParams=function(e,t){try{var n=e.queryParams,i=t.queryParams,o=n?this.getSize(n):0,r=i?this.getSize(i):0;return 0===o&&0===r||o===r&&JSON.stringify(n)===JSON.stringify(i)}catch(e){return!1}},e.prototype.isCacheEnabled=function(e,t){var n=e.queryParams._cache_page;return _.isNil(n)?t:"true"===n||!0===n},e.prototype.shouldDetach=function(e){var t=this.getKey(e);return!!this.isCacheEnabled(e,!!e.data._cache_page)||(this.cache.delete(t),!1)},e.prototype.shouldAttach=function(e){var t=this.getKey(e);this.currentRouteKey=t;var n=this.cache.get(t);return!(!n||!this.isCacheEnabled(e,!!n._cache_page))||(this.cache.delete(t),!1)},e.prototype.store=function(e,t){if(t){var n=this.getKey(e);t._cache_page=!!e.data._cache_page,this.cache.set(n,t)}},e.prototype.retrieve=function(e){var t=this.getKey(e);return this.cache.get(t)},e.prototype.reset=function(e){var t,n,i=this;if(!e)return this.cache.clear();this.cache.delete(e);var o=e+="?",r=[];try{for(var a=J(this.cache.keys()),s=a.next();!s.done;s=a.next()){var l=s.value;l.startsWith(o)&&r.push(l)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}r.forEach((function(e){return i.cache.delete(e)}))},e}(),le=function(e){function t(t,n){return e.call(this,t,n)||this}return K(t,e),t.prototype.isSameRoute=function(e,t){if(e.routeConfig&&"prefab-preview"===e.routeConfig.path)return!1;var n=e.params,i=t.params,o=this.getSize(n),r=this.getSize(i);return 0===o&&0===r||o===r&&(n.pageName===i.pageName&&this.isSameQueryParams(e,t))},t.prototype.shouldReuseRoute=function(e,t){return this.isSameRoute(e,t)},t}(se);le.ctorParameters=function(){return[{type:Number,decorators:[{type:t.Inject,args:[re]}]},{type:Number,decorators:[{type:t.Inject,args:[ae]}]}]};var ce=function(e){function t(t,n){return e.call(this,t,n)||this}return K(t,e),t.prototype.isSameRoute=function(e,t){return!e.routeConfig&&!t.routeConfig||e.routeConfig===t.routeConfig&&(e.routeConfig!==t.routeConfig||(!(!e.data.layoutName||!t.data.layoutName)||this.isSameQueryParams(e,t)))},t.prototype.shouldReuseRoute=function(e,t){return this.isSameRoute(e,t)},t}(se);ce.ctorParameters=function(){return[{type:Number,decorators:[{type:t.Inject,args:[re]}]},{type:Number,decorators:[{type:t.Inject,args:[ae]}]}]};var pe=function(e){function t(){var t=e.apply(this,ee([],Z(arguments)))||this;return t.startupVariablesLoaded=!1,t.pageTransitionCompleted=!1,t.destroy$=new l.Subject,t.viewInit$=new l.Subject,t.formatsByLocale={timezone:""},t}return K(t,e),t.prototype.init=function(){o.muteWatchers(),this.App=this.injector.get(o.App),this.route=this.injector.get(n.ActivatedRoute),this.appManager=this.injector.get(j),this.navigationService=this.injector.get(o.AbstractNavigationService),this.scriptLoaderService=this.injector.get(o.ScriptLoaderService),this.i18nService=this.injector.get(o.AbstractI18nService),this.router=this.injector.get(n.Router),this.Viewport=this.injector.get(o.Viewport),this.registerExpressions(),this.initUserScript(),this.registerWidgets(),this.initVariables(),this.App.lastActivePageName=this.App.activePageName,this.App.activePageName=this.pageName,this.App.activePage=this,this.activePageName=this.pageName,this.registerPageParams(),this.defineI18nProps(),e.prototype.init.call(this)},t.prototype.registerWidgets=function(){this.Widgets=Object.create(ne),this.App.Widgets=Object.create(this.Widgets)},t.prototype.initUserScript=function(){try{this.evalUserScript(this,this.App,this.injector.get(o.UtilsService))}catch(e){console.error("Error in evaluating page ("+this.pageName+") script\n",e)}},t.prototype.registerPageParams=function(){var e=this,t=this.route.queryParams.subscribe((function(t){return e.pageParams=e.App.pageParams=_.extend({},t)}));this.registerDestroyListener((function(){return t.unsubscribe()}))},t.prototype.registerDestroyListener=function(e){this.destroy$.subscribe(o.noop,o.noop,(function(){return e()}))},t.prototype.defineI18nProps=function(){this.appLocale=this.i18nService.getAppLocale()},t.prototype.initVariables=function(){var e=this,t=this.injector.get(a.VariablesService).register(this.pageName,this.getVariables(),this);this.Variables=Object.create(this.App.Variables),this.Actions=Object.create(this.App.Actions),Object.entries(t.Variables).forEach((function(t){var n=Z(t,2),i=n[0],o=n[1];return e.Variables[i]=o})),Object.entries(t.Actions).forEach((function(t){var n=Z(t,2),i=n[0],o=n[1];return e.Actions[i]=o}));var n=this.viewInit$.subscribe(o.noop,o.noop,(function(){e.appManager.isAppVariablesFired()||(t.callback(e.App.Variables).catch(o.noop).then((function(){e.appManager.notify("app-variables-data-loaded",{pageName:e.pageName})})),t.callback(e.App.Actions),e.appManager.appVariablesReady(),e.appManager.isAppVariablesFired(!0)),t.callback(t.Variables).catch(o.noop).then((function(){e.appManager.notify("page-variables-data-loaded",{pageName:e.pageName}),e.startupVariablesLoaded=!0,setTimeout((function(){e.showPageContent=!0}),100)})),t.callback(t.Actions),n.unsubscribe()}))},t.prototype.setTimezone=function(e){this.i18nService.setTimezone(e,this)},t.prototype.registerExpressions=function(){var e=this.getExpressions();_.each(e,(function(e,t){o.registerFnByExpr(t,e[0],e[1])}))},t.prototype.runPageTransition=function(e){var n=this;e=e||this.navigationService.getPageTransition();var i=t.lastPageSnapShot;return new Promise((function(t){if(e&&!e.startsWith("none")&&i){var o=i.parent(),r=function(n){!t||n&&n.pseudoElement||(o.off("animationend",r),o.removeClass(e),o.children().first().remove(),t(),t=null)};e="page-transition page-transition-"+e,i.addClass("page-exit"),n.$page.addClass("page-entry"),o.addClass(e),o.on("animationend",r),setTimeout(r,1e3)}else t()})).then((function(){n.$page&&n.$page.removeClass("page-entry"),i&&(i.remove(),t.lastPageSnapShot=null),n.pageTransitionCompleted=!0}))},t.prototype.invokeOnReady=function(){this.onReady(),this.appManager.notify("pageReady",{name:this.pageName,instance:this}),(this.App.onPageReady||o.noop)(this.pageName,this)},t.prototype.loadScripts=function(){var e=this;return new Promise((function(t){var n,i=e.pageDirective&&e.pageDirective.$element.attr("scripts-to-load");i?(n=e.scriptLoaderService).load.apply(n,ee([],Z(i.split(",")))).then(t):t()}))},t.prototype.restoreLastPageSnapshot=function(){o.isMobileApp()&&t.lastPageSnapShot&&this.$page&&this.$page.parent().prepend(t.lastPageSnapShot)},t.prototype.savePageSnapShot=function(){t.lastPageSnapShot&&t.lastPageSnapShot.remove(),o.isMobileApp()&&this.$page&&(t.lastPageSnapShot=this.$page.clone(),this.$page.parents("app-root").prepend(t.lastPageSnapShot))},t.prototype.saveScrollPosition=function(){var e=function(t,n,i,o){void 0===i&&(i=!0),void 0===o&&(o=t),i&&t.children().each((function(t,i){return e($(i),n)}));var r=o.scrollLeft(),a=o.scrollTop();(r>0||a>0)&&t.attr(n,r+","+a)};e(this.$page,"data-scroll-position"),this.$page.attr("data-window-scroll-position",window.scrollX+","+window.scrollY)},t.prototype.restoreScrollPosition=function(){var e=function(t,n,i,o){void 0===i&&(i=!0),void 0===o&&(o=t);var r=(t.attr(n)||"").split(",");r.length>1&&(o.scrollLeft(r[0]),o.scrollTop(r[1])),t.removeAttr(n),i&&t.children().each((function(t,i){return e($(i),n)}))};e(this.$page,"data-scroll-position"),e(this.$page,"data-window-scroll-position",!1,$(window))},t.prototype.canDeactivate=function(){var e;return!1!==(e=this.onBeforePageLeave())&&(e=(this.App.onBeforePageLeave||o.noop)(this.App.activePageName,this.App.activePage)),void 0===e||e},t.prototype.ngAfterViewInit=function(){var e=this;this.route.snapshot.data._cache_page=this.canReuse(),this.pageDirective&&(this.$page=this.pageDirective.$element.parent(),o.isIos()&&this.$page.addClass("ios-page"),o.isAndroid()&&this.$page.addClass("android-page")),this.restoreLastPageSnapshot(),this.loadScripts().then((function(){e.runPageTransition().then((function(){e.compilePageContent=!0,setTimeout((function(){e.onPageContentReady=function(){e.fragmentsLoaded$.subscribe(o.noop,o.noop,(function(){e.invokeOnReady()})),o.unMuteWatchers(),e.viewInit$.complete(),e.onPageContentReady=o.noop}}),0)}))}))},t.prototype.ngOnDestroy=function(){this.savePageSnapShot(),this.destroy$.complete()},t.prototype.onReady=function(){},t.prototype.onBeforePageReady=function(){},t.prototype.onBeforePageLeave=function(){},t.prototype.onPageContentReady=function(){},t.prototype.canReuse=function(){return!(!this.pageDirective||!this.pageDirective.cache)},t.prototype.mute=function(){var e=function(e){e&&e.mute&&e.mute()};_.each(this.Widgets,e),_.each(this.Variables,e),_.each(this.Actions,e)},t.prototype.unmute=function(e){void 0===e&&(e=this);var t=function(e){e&&e.unmute&&e.unmute()};_.each(this.Widgets,t),_.each(this.Variables,t),_.each(this.Actions,t)},t.prototype.ngOnAttach=function(){var e=this;if(this.route.snapshot.data._cache_page=this.canReuse(),this.registerPageParams(),this.App.lastActivePageName=this.App.activePageName,this.App.activePageName=this.pageName,this.App.activePage=this,this.activePageName=this.pageName,this.restoreLastPageSnapshot(),this.unmute(),this.App.Widgets=Object.create(this.Widgets),this.pageDirective&&this.pageDirective.refreshdataonattach){var t=function(e){e&&e.startUpdate&&e.invoke&&e.invoke()};_.each(this.Variables,t),_.each(this.Actions,t)}this.runPageTransition().then((function(){setTimeout((function(){return e.restoreScrollPosition()}),100),_.each(e.Widgets,(function(e){return e&&e.ngOnAttach&&e.ngOnAttach()})),e.appManager.notify("pageAttach",{name:e.pageName,instance:e})}))},t.prototype.ngOnDetach=function(){this.saveScrollPosition(),this.savePageSnapShot(),this.mute(),_.each(this.Widgets,(function(e){return e&&e.ngOnDetach&&e.ngOnDetach()})),this.appManager.notify("pageDetach",{name:this.pageName,instance:this})},t.prototype.ngAfterContentInit=function(){this.onBeforePageReady()},t.clear=function(){t.lastPageSnapShot&&(t.lastPageSnapShot.remove(),t.lastPageSnapShot=null)},t}(te);pe.lastPageSnapShot=null,pe.decorators=[{type:t.Directive}],pe.propDecorators={pageDirective:[{type:t.ViewChild,args:[s.PageDirective]}],canDeactivate:[{type:t.HostListener,args:["window:beforeunload"]}]};var ue=function(e){function t(){var t=e.apply(this,ee([],Z(arguments)))||this;return t.compileContent=!1,t.destroy$=new l.Subject,t.viewInit$=new l.Subject,t}return K(t,e),t.prototype.getContainerWidgetInjector=function(){return this.containerWidget.inj||this.containerWidget.injector},t.prototype.init=function(){var t=this;this.App=this.injector.get(o.App),this.containerWidget=this.injector.get(c.WidgetRef),this.prefabMngr=this.injector.get(H),this.i18nService=this.injector.get(o.AbstractI18nService),this.scriptLoaderService=this.injector.get(o.ScriptLoaderService),this.Viewport=this.injector.get(o.Viewport),this.getContainerWidgetInjector().view.component.registerFragment&&this.getContainerWidgetInjector().view.component.registerFragment(),this.spa?this.pageDirective=this.injector.get(s.SpaPageDirective,null):this.pageDirective=this.injector.get(s.PageDirective,null),this.pageDirective&&(this.registerDestroyListener(this.pageDirective.subscribe("attach",(function(e){return t.ngOnAttach(e.refreshData)}))),this.registerDestroyListener(this.pageDirective.subscribe("detach",(function(){return t.ngOnDetach()})))),this.registerExpressions(),this.initUserScript(),this.registerWidgets(),this.initVariables(),this.registerProps(),this.defineI18nProps(),e.prototype.init.call(this)},t.prototype.registerWidgets=function(){this.Widgets={},this.Widgets={},this.containerWidget.Widgets=this.Widgets},t.prototype.initUserScript=function(){try{this.evalUserScript(this,this.App,this.injector.get(o.UtilsService))}catch(e){console.error("Error in evaluating prefab ("+this.prefabName+") script\n",e)}},t.prototype.registerChangeListeners=function(){this.containerWidget.registerPropertyChangeListener(this.onPropertyChange),this.containerWidget.registerStyleChangeListener(this.onPropertyChange)},t.prototype.registerDestroyListener=function(e){this.destroy$.subscribe(o.noop,o.noop,(function(){return e()}))},t.prototype.defineI18nProps=function(){this.appLocale=this.i18nService.getPrefabLocaleBundle(this.prefabName)},t.prototype.registerProps=function(){var e=this;this.prefabMngr.getConfig(this.prefabName).then((function(t){t&&(e.displayName=t.displayName,Object.entries(t.properties||{}).forEach((function(t){var n,i=Z(t,2),r=i[0],a=i[1],s=_.trim(a.value);_.startsWith(s,"bind:")&&(n=s.replace("bind:","")),Object.defineProperty(e,r,{get:function(){return e.containerWidget[r]},set:function(t){return e.containerWidget.widget[r]=t}}),n&&e.registerDestroyListener(o.$watch(n,e,{},(function(t){return e.containerWidget.widget[r]=t})))})),Object.entries(t.events||{}).forEach((function(t){var n=Z(t,2),i=n[0];n[1];e[i]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=i.substr(2).toLowerCase();e.containerWidget.invokeEventCallback(o,{$event:t[0],$data:t[1]})}})),Object.entries(t.methods||{}).forEach((function(t){var n=Z(t,2),i=n[0];n[1];e.containerWidget[i]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{if(e[i])return e[i].apply(e,t)}catch(t){console.warn("error in executing prefab-"+e.prefabName+" method-"+i)}}}))),e.containerWidget.setProps(t),o.isIE()&&(e.containerWidget.widget=e.containerWidget.createProxy())}))},t.prototype.initVariables=function(){var e=this,t=this.injector.get(a.VariablesService).register(this.prefabName,this.getVariables(),this);this.Variables={},this.Actions={},this.containerWidget.Variables=this.Variables,this.containerWidget.Actions=this.Actions,Object.entries(t.Variables).forEach((function(t){var n=Z(t,2),i=n[0],o=n[1];return e.Variables[i]=o})),Object.entries(t.Actions).forEach((function(t){var n=Z(t,2),i=n[0],o=n[1];return e.Actions[i]=o})),this.viewInit$.subscribe(o.noop,o.noop,(function(){t.callback(t.Variables).catch(o.noop),t.callback(t.Actions)}))},t.prototype.registerExpressions=function(){var e=this.getExpressions();_.each(e,(function(e,t){o.registerFnByExpr(t,e[0],e[1])}))},t.prototype.invokeOnReady=function(){o.$invokeWatchers(!0,!0),this.onReady(),this.getContainerWidgetInjector().view.component.resolveFragment&&this.getContainerWidgetInjector().view.component.resolveFragment(),this.containerWidget.invokeEventCallback("load")},t.prototype.loadScripts=function(){var e=this;return new Promise((function(t){var n,i=e.prefabContainerDirective.$element.attr("scripts-to-load");i?(n=e.scriptLoaderService).load.apply(n,ee([],Z(i.split(",")))).then(t):t()}))},t.prototype.mute=function(){var e=function(e){e&&e.mute&&e.mute()};_.each(this.Widgets,e),_.each(this.Variables,e),_.each(this.Actions,e)},t.prototype.unmute=function(){var e=function(e){e&&e.unmute&&e.unmute()};_.each(this.Widgets,e),_.each(this.Variables,e),_.each(this.Actions,e)},t.prototype.ngOnAttach=function(e){if(this.unmute(),e){var t=function(e){e&&e.startUpdate&&e.invoke&&e.invoke()};_.each(this.Variables,t),_.each(this.Actions,t)}_.each(this.Widgets,(function(e){return e&&e.ngOnAttach&&e.ngOnAttach()}))},t.prototype.ngOnDetach=function(){this.mute(),_.each(this.Widgets,(function(e){return e&&e.ngOnDetach&&e.ngOnDetach()}))},t.prototype.ngAfterViewInit=function(){var e=this;this.loadScripts().then((function(){e.compileContent=!0,e.registerChangeListeners(),setTimeout((function(){e.viewInit$.complete(),e.fragmentsLoaded$.subscribe(o.noop,o.noop,(function(){return e.invokeOnReady()}))}),100)}))},t.prototype.ngOnDestroy=function(){this.destroy$.complete()},t.prototype.onPropertyChange=function(){},t.prototype.onReady=function(){},t}(te);ue.decorators=[{type:t.Directive}],ue.propDecorators={prefabContainerDirective:[{type:t.ViewChild,args:[p.PrefabContainerDirective]}]};var de=function(){function e(){}return e.prototype.registerExpressions=function(){var e=this.getExpressions();_.each(e,(function(e,t){o.registerFnByExpr(t,e[0],e[1])}))},e.prototype.overrideRouterOutlet=function(){var e=this,t=this.routerOutlet.attach,n=this.routerOutlet.detach;this.routerOutlet.attach=function(n){t.call(e.routerOutlet,n),n.instance.ngOnAttach()},this.routerOutlet.detach=function(){return n.call(e.routerOutlet)}},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.overrideRouterOutlet()}),10)},e.prototype.init=function(){this.App=this.injector.get(o.App),this.App.activeLayoutName=this.layoutName,this.App.layoutPages=this.layoutPages,this.registerExpressions()},e.prototype.ngOnDestroy=function(){},e.prototype.canReuse=function(){},e.prototype.ngOnAttach=function(){},e.prototype.ngOnDetach=function(){},e.prototype.onActivate=function(e){_.extend(this,e)},e}();de.decorators=[{type:t.Directive}],de.propDecorators={routerOutlet:[{type:t.ViewChild,args:[n.RouterOutlet]}],pageDirective:[{type:t.ViewChild,args:[s.PageDirective]}]};var he,me=function(e){function t(){var t=e.apply(this,ee([],Z(arguments)))||this;return t.startupVariablesLoaded=!1,t.pageTransitionCompleted=!1,t.destroy$=new l.Subject,t.viewInit$=new l.Subject,t.formatsByLocale={timezone:""},t}return K(t,e),t.prototype.init=function(){o.muteWatchers(),this.App=this.injector.get(o.App),this.route=this.injector.get(n.ActivatedRoute),this.appManager=this.injector.get(j),this.navigationService=this.injector.get(o.AbstractNavigationService),this.scriptLoaderService=this.injector.get(o.ScriptLoaderService),this.i18nService=this.injector.get(o.AbstractI18nService),this.router=this.injector.get(n.Router),this.Viewport=this.injector.get(o.Viewport),this.layoutDirective=this.injector.get(s.LayoutDirective),this.registerExpressions(),this.initUserScript(),this.registerWidgets(),this.initVariables(),this.App.lastActivePageName=this.App.activePageName,this.App.activePageName=this.pageName,this.App.activePage=this,this.activePageName=this.pageName,this.registerPageParams(),this.defineI18nProps(),e.prototype.init.call(this)},t.prototype.registerWidgets=function(){this.Widgets=Object.create(ne),this.App.Widgets=Object.create(this.Widgets)},t.prototype.initUserScript=function(){try{this.evalUserScript(this,this.App,this.injector.get(o.UtilsService))}catch(e){console.error("Error in evaluating page ("+this.pageName+") script\n",e)}},t.prototype.registerPageParams=function(){var e=this,t=this.route.queryParams.subscribe((function(t){return e.pageParams=e.App.pageParams=_.extend({},t)}));this.registerDestroyListener((function(){return t.unsubscribe()}))},t.prototype.registerDestroyListener=function(e){this.destroy$.subscribe(o.noop,o.noop,(function(){return e()}))},t.prototype.defineI18nProps=function(){this.appLocale=this.i18nService.getAppLocale()},t.prototype.initVariables=function(){var e=this,t=this.injector.get(a.VariablesService).register(this.pageName,this.getVariables(),this);this.Variables=Object.create(this.App.Variables),this.Actions=Object.create(this.App.Actions),Object.entries(t.Variables).forEach((function(t){var n=Z(t,2),i=n[0],o=n[1];return e.Variables[i]=o})),Object.entries(t.Actions).forEach((function(t){var n=Z(t,2),i=n[0],o=n[1];return e.Actions[i]=o}));var n=this.viewInit$.subscribe(o.noop,o.noop,(function(){e.appManager.isAppVariablesFired()||(t.callback(e.App.Variables).catch(o.noop).then((function(){e.appManager.notify("app-variables-data-loaded",{pageName:e.pageName})})),t.callback(e.App.Actions),e.appManager.appVariablesReady(),e.appManager.isAppVariablesFired(!0)),t.callback(t.Variables).catch(o.noop).then((function(){e.appManager.notify("page-variables-data-loaded",{pageName:e.pageName}),e.startupVariablesLoaded=!0,setTimeout((function(){e.showPageContent=!0}),100)})),t.callback(t.Actions),n.unsubscribe()}))},t.prototype.setTimezone=function(e){this.i18nService.setTimezone(e,this)},t.prototype.registerExpressions=function(){var e=this.getExpressions();_.each(e,(function(e,t){o.registerFnByExpr(t,e[0],e[1])}))},t.prototype.runPageTransition=function(e){var n=this;e=e||this.navigationService.getPageTransition();var i=t.lastPageSnapShot;return new Promise((function(t){if(e&&!e.startsWith("none")&&i){var o=i.parent(),r=function(n){!t||n&&n.pseudoElement||(o.off("animationend",r),o.removeClass(e),o.children().first().remove(),t(),t=null)};e="page-transition page-transition-"+e,i.addClass("page-exit"),n.$page.addClass("page-entry"),o.addClass(e),o.on("animationend",r),setTimeout(r,1e3)}else t()})).then((function(){n.$page&&n.$page.removeClass("page-entry"),i&&(i.remove(),t.lastPageSnapShot=null),n.pageTransitionCompleted=!0}))},t.prototype.invokeOnReady=function(){this.onReady(),this.appManager.notify("highlightActiveLink",{pageName:this.pageName}),this.appManager.notify("pageReady",{name:this.pageName,instance:this}),(this.App.onPageReady||o.noop)(this.pageName,this)},t.prototype.loadScripts=function(){var e=this;return new Promise((function(t){var n,i=e.spaPageDirective&&e.spaPageDirective.$element.attr("scripts-to-load");i?(n=e.scriptLoaderService).load.apply(n,ee([],Z(i.split(",")))).then(t):t()}))},t.prototype.restoreLastPageSnapshot=function(){o.isMobileApp()&&t.lastPageSnapShot&&this.$page&&this.$page.parent().prepend(t.lastPageSnapShot)},t.prototype.savePageSnapShot=function(){t.lastPageSnapShot&&t.lastPageSnapShot.remove(),o.isMobileApp()&&this.$page&&(t.lastPageSnapShot=this.$page.clone(),this.$page.parents("app-root").prepend(t.lastPageSnapShot))},t.prototype.saveScrollPosition=function(){var e=function(t,n,i,o){void 0===i&&(i=!0),void 0===o&&(o=t),i&&t.children().each((function(t,i){return e($(i),n)}));var r=o.scrollLeft(),a=o.scrollTop();(r>0||a>0)&&t.attr(n,r+","+a)};e(this.$page,"data-scroll-position"),this.$page.attr("data-window-scroll-position",window.scrollX+","+window.scrollY)},t.prototype.restoreScrollPosition=function(){var e=function(t,n,i,o){void 0===i&&(i=!0),void 0===o&&(o=t);var r=(t.attr(n)||"").split(",");r.length>1&&(o.scrollLeft(r[0]),o.scrollTop(r[1])),t.removeAttr(n),i&&t.children().each((function(t,i){return e($(i),n)}))};e(this.$page,"data-scroll-position"),e(this.$page,"data-window-scroll-position",!1,$(window))},t.prototype.canDeactivate=function(){var e;return!1!==(e=this.onBeforePageLeave())&&(e=(this.App.onBeforePageLeave||o.noop)(this.App.activePageName,this.App.activePage)),void 0===e||e},t.prototype.ngAfterViewInit=function(){var e=this;this.route.snapshot.data._cache_page=this.canReuse(),this.layoutDirective&&(this.$page=this.layoutDirective.$element.parent(),o.isIos()&&this.$page.addClass("ios-page"),o.isAndroid()&&this.$page.addClass("android-page")),this.restoreLastPageSnapshot(),this.loadScripts().then((function(){e.runPageTransition().then((function(){e.compilePageContent=!0,setTimeout((function(){e.onPageContentReady=function(){e.fragmentsLoaded$.subscribe(o.noop,o.noop,(function(){e.invokeOnReady()})),o.unMuteWatchers(),e.viewInit$.complete(),e.onPageContentReady=o.noop}}),0)}))}))},t.prototype.ngOnDestroy=function(){this.savePageSnapShot(),this.destroy$.complete()},t.prototype.onReady=function(){},t.prototype.onBeforePageReady=function(){},t.prototype.onBeforePageLeave=function(){},t.prototype.onPageContentReady=function(){},t.prototype.canReuse=function(){return!(!this.spaPageDirective||!this.spaPageDirective.cache)},t.prototype.mute=function(){var e=function(e){e&&e.mute&&e.mute()};_.each(this.Widgets,e),_.each(this.Variables,e),_.each(this.Actions,e)},t.prototype.unmute=function(e){void 0===e&&(e=this);var t=function(e){e&&e.unmute&&e.unmute()};_.each(this.Widgets,t),_.each(this.Variables,t),_.each(this.Actions,t)},t.prototype.ngOnAttach=function(){var e=this;if(this.route.snapshot.data._cache_page=this.canReuse(),this.registerPageParams(),this.App.lastActivePageName=this.App.activePageName,this.App.activePageName=this.pageName,this.App.activePage=this,this.activePageName=this.pageName,this.restoreLastPageSnapshot(),this.unmute(),this.App.Widgets=Object.create(this.Widgets),this.spaPageDirective&&this.spaPageDirective.refreshdataonattach){var t=function(e){e&&e.startUpdate&&e.invoke&&e.invoke()};_.each(this.Variables,t),_.each(this.Actions,t)}this.runPageTransition().then((function(){setTimeout((function(){return e.restoreScrollPosition()}),100),_.each(e.Widgets,(function(e){return e&&e.ngOnAttach&&e.ngOnAttach()})),e.appManager.notify("pageAttach",{name:e.pageName,instance:e})})),this.appManager.notify("highlightActiveLink",{pageName:this.pageName})},t.prototype.ngOnDetach=function(){this.saveScrollPosition(),this.savePageSnapShot(),this.mute(),_.each(this.Widgets,(function(e){return e&&e.ngOnDetach&&e.ngOnDetach()})),this.appManager.notify("pageDetach",{name:this.pageName,instance:this})},t.prototype.ngAfterContentInit=function(){this.onBeforePageReady()},t.clear=function(){t.lastPageSnapShot&&(t.lastPageSnapShot.remove(),t.lastPageSnapShot=null)},t}(te);me.lastPageSnapShot=null,me.decorators=[{type:t.Directive}],me.propDecorators={spaPageDirective:[{type:t.ViewChild,args:[s.SpaPageDirective]}],canDeactivate:[{type:t.HostListener,args:["window:beforeunload"]}]},function(e){e.EVERYONE="Everyone",e.ANONYMOUS="Anonymous",e.AUTHENTICATED="Authenticated"}(he||(he={}));var fe=function(){function e(e,t,n,i){this.templateRef=e,this.viewContainerRef=t,this.securityService=n,this.inj=i,this.processed=!1;var o=this.securityService.get();this.securityEnabled=_.get(o,"securityEnabled"),this.isUserAuthenticated=_.get(o,"authenticated"),this.userRoles=_.get(o,"userInfo.userRoles")}return e.prototype.getWidgetRolesArrayFromStr=function(e){var t=/&#44;/g;return""===(e=e||"")?[]:_.split(e,",").map((function(e){return _.trim(e).replace(t,",")}))},e.prototype.matchRoles=function(e,t){return e.some((function(e){return _.includes(t,e)}))},e.prototype.hasAccessToWidget=function(e,t){return!!_.includes(e,he.EVERYONE)||(!(!_.includes(e,he.ANONYMOUS)||this.isUserAuthenticated)||(!(!_.includes(e,he.AUTHENTICATED)||!this.isUserAuthenticated)||this.isUserAuthenticated&&this.matchRoles(e,t)))},Object.defineProperty(e.prototype,"accessroles",{set:function(e){if(!this.processed){this.processed=!0;var t=this.getWidgetRolesArrayFromStr(e);!this.securityEnabled||this.hasAccessToWidget(t,this.userRoles)?this.viewContainerRef.createEmbeddedView(this.templateRef,this.inj.view.context):this.viewContainerRef.clear()}},enumerable:!1,configurable:!0}),e}();fe.decorators=[{type:t.Directive,args:[{selector:"[accessroles]"}]}],fe.ctorParameters=function(){return[{type:t.TemplateRef},{type:t.ViewContainerRef},{type:r.SecurityService},{type:t.Injector}]},fe.propDecorators={accessroles:[{type:t.Input}]};var ge=function(){};ge.decorators=[{type:t.Component,args:[{selector:"app-spinner",template:'\n <div class="app-spinner" [ngClass]="classname" *ngIf="show">\n <div class="spinner-message">\n <i class="spinner-image animated infinite fa fa-circle-o-notch fa-spin"></i>\n <div class="spinner-messages">\n <p *ngFor="let value of spinnermessages" [textContent]="value"></p>\n </div>\n </div>\n </div>\n '}]}],ge.ctorParameters=function(){return[]},ge.propDecorators={show:[{type:t.Input}],spinnermessages:[{type:t.Input}],classname:[{type:t.Input}],arialabel:[{type:t.Input}]};var ve=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.toastrService=t,i.toastPackage=n,i.watchers=[],i.params={},i.pagename=i.message||"",i.generateParams(),i}return K(t,e),t.prototype.generateParams=function(){var e=this;_.forEach(this.options.partialParams,(function(t){_.isString(t.value)&&0===t.value.indexOf("bind:")?e.watchers.push(o.$watch(t.value.substr(5),e.options.context,{},(function(n){e.params[t.name]=n,o.$appDigest()}))):e.params[t.name]=t.value}))},t.prototype.generateDynamicComponent=function(){return Q(this,void 0,void 0,(function(){var e;return X(this,(function(t){return e=$(".parent-custom-toast"),this.customToastRef.clear(),e[0].appendChild(this.customToastRef.createEmbeddedView(this.customToastTmpl).rootNodes[0]),[2]}))}))},t.prototype.ngAfterViewInit=function(){this.generateDynamicComponent()},t.prototype.ngOnDestroy=function(){_.forEach(this.watchers,(function(e){return e()})),e.prototype.ngOnDestroy.call(this)},t}(h.Toast);ve.decorators=[{type:t.Component,args:[{selector:"[custom-toaster-component]",template:'\n <div class="parent-custom-toast"></div>\n <ng-container #customToast></ng-container>\n <ng-template #customToastTmpl>\n <div wmContainer partialContainer content.bind="pagename">\n <div *ngFor="let param of params | keyvalue" wmParam hidden\n [name]="param.key" [value]="param.value"></div>\n </div>\n </ng-template>',preserveWhitespaces:!1}]}],ve.ctorParameters=function(){return[{type:h.ToastrService},{type:h.ToastPackage}]},ve.propDecorators={customToastRef:[{type:t.ViewChild,args:["customToast",{static:!0,read:t.ViewContainerRef}]}],customToastTmpl:[{type:t.ViewChild,args:["customToastTmpl"]}]};var ye=function(){function e(e,t,n,i,o){this.route=e,this.securityService=t,this.router=n,this.app=i,this.appManger=o}return e.prototype.ngOnInit=function(){var e=this;this.app.isPrefabType?this.router.navigate(["prefab-preview"]):this.app.isApplicationType?this.securityService.getPageByLoggedInUser().then((function(t){e.router.navigate([t])})):(this.router.navigate([o.getWmProjectProperties().homePage]),this.appManger.postAppTypeInfo())},e}();ye.decorators=[{type:t.Component,args:[{selector:"app-empty-page",template:"<div></div>"}]}],ye.ctorParameters=function(){return[{type:n.ActivatedRoute},{type:r.SecurityService},{type:n.Router},{type:o.App},{type:j}]};var be=function(t,n,i,o,r,a,s){var l=this;this.componentInstance=t,this.vcRef=n,this.elRef=i,this.prefabMngr=o,this.resolver=r,this.injector=a,this.componentRefProvider=s;var c=this.componentInstance.prefabName;this.prefabMngr.loadDependencies(c).then((function(){return Q(l,void 0,void 0,(function(){var t,n;return X(this,(function(i){switch(i.label){case 0:return[4,this.componentRefProvider.getComponentFactoryRef(c,e.ComponentType.PREFAB)];case 1:return(t=i.sent())&&(n=this.vcRef.createComponent(t,0,a),this.elRef.nativeElement.appendChild(n.location.nativeElement)),[2]}}))}))}))};be.decorators=[{type:t.Directive,args:[{selector:"[wmPrefab][prefabname]"}]}],be.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Self},{type:t.Inject,args:[c.WidgetRef]}]},{type:t.ViewContainerRef},{type:t.ElementRef},{type:H},{type:t.ComponentFactoryResolver},{type:t.Injector},{type:x}]};var we={DialogService:o.AbstractDialogService,i18nService:o.AbstractI18nService,statePersistence:o.StatePersistence,SpinnerService:o.AbstractSpinnerService,StatePersistenceService:o.StatePersistence,Viewport:o.Viewport,ToasterService:o.AbstractToasterService,Utils:o.UtilsService,CONSTANTS:o.ConstantService,FIELD_TYPE:o.FieldTypeService,FIELD_WIDGET:o.FieldWidgetService,DynamicComponentService:o.DynamicComponentRefProvider},Pe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},_e=function(){var e=this.httpService,t=function(t,n){var i=Array.from(arguments).slice(1);return Promise.resolve(e[t].apply(e,i))},n=function(){return t.apply(void 0,ee(["send"],Z(Array.from(arguments))))};return["get","post","head","put","delete","jsonp","patch"].forEach((function(e){return n[e]=t.bind(void 0,e)})),n},Oe=function(){function e(e,t,n,i,r,a){this.inj=e,this.i18nService=t,this.statePersistence=n,this.httpService=i,this.securityService=r,this.routeReuseStrategy=a,this.Variables={},this.Actions={},this.onAppVariablesReady=Pe,this.onBeforeAppReady=Pe,this.onSessionTimeout=Pe,this.onPageReady=Pe,this.onBeforePageLeave=Pe,this.onBeforeServiceCall=Pe,this.onServiceSuccess=Pe,this.onServiceError=Pe,this.dynamicComponentContainerRef={},this.changeLocale=this.i18nService.setSelectedLocale.bind(this.i18nService),this.getSelectedLocale=this.i18nService.getSelectedLocale.bind(this.i18nService),this.setTimezone=this.i18nService.setTimezone.bind(this.i18nService),this.setwidgetLocale=this.i18nService.setwidgetLocale.bind(this.i18nService),this._eventNotifier=new o.EventNotifier,this.landingPageName=o.getWmProjectProperties().homePage;var s=o.getWmProjectProperties();this.projectName=s.name,this.isPrefabType="PREFAB"===s.type,this.isApplicationType="APPLICATION"===s.type,this.isTemplateBundleType="TEMPLATEBUNDLE"===s.type,this.targetPlatform=s.platformType,this.httpService.registerOnSessionTimeout(this.on401.bind(this)),this.appLocale=this.i18nService.getAppLocale(),this.httpService.setLocale(this.appLocale)}return e.prototype.reload=function(){window.location.reload()},e.prototype.clearPageCache=function(e){this.routeReuseStrategy instanceof se&&this.routeReuseStrategy.reset(e)},e.prototype.notify=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this._eventNotifier.notify.apply(this._eventNotifier,arguments)},e.prototype.getDependency=function(e){if(o.isString(e)){if("HttpService"===e)return _e.call(this);var t=we[e]&&this.inj.get(we[e]);return!t&&this.inj._providers&&_.forEach(this.inj._providers,(function(n){if(_.isObject(n)&&n.__proto__.constructor.SERVICE_NAME===e)return t=n,!1})),t}return this.inj.get(e)},e.prototype.on401=function(){var e=_.get(this.securityService.get(),"userInfo");_.isEmpty(e)||this.onSessionTimeout()},e.prototype.subscribe=function(e,t){return this._eventNotifier.subscribe(e,t)},e.prototype.notifyApp=function(e,t,n){var i=_.get(this,"Actions.appNotification"),r=-1!==["PROCESS_REJECTED_IN_QUEUE"].indexOf(e);if(i){if(r)return void console.warn("App Error",e);t=t||"success",e=i.getMessage()||e,i.invoke({message:e,title:o.isDefined(n)?n:t.toUpperCase(),class:t,duration:"ERROR"===t.toUpperCase()?0:void 0})}else console.warn('The default Action "appNotification" doesn\'t exist in the app. App notified following error:\n',e)},e.prototype.registerExpressions=function(e){_.each(e,(function(e,t){o.registerFnByExpr(t,e[0],e[1])}))},e}();Oe.decorators=[{type:t.Injectable}],Oe.ctorParameters=function(){return[{type:t.Injector},{type:o.AbstractI18nService},{type:o.StatePersistence},{type:o.AbstractHttpService},{type:r.SecurityService},{type:n.RouteReuseStrategy}]};var Se=function(e){function t(t){var n=e.call(this)||this;return n.toaster=t,n}return K(t,e),t.prototype._showToaster=function(e,t,n,i){if(_.isNumber(i)&&(i={timeOut:i}),(i=i||{}).timeOut=o.isDefined(i.timeOut)?i.timeOut:0,i.enableHtml=o.isDefined(i.enableHtml),i.positionClass=i.positionClass||"toast-bottom-right",i.toastClass="toast",t||n){!i.bodyOutputType&&_.isObject(n)&&(n=JSON.stringify(n));var r=this.toaster[e];if(r)return r.call(this.toaster,n,t,i)}},t.prototype.success=function(e,t){return this._showToaster("success",e,t,{timeOut:5e3})},t.prototype.error=function(e,t){return this._showToaster("error",e,t,{timeOut:0})},t.prototype.info=function(e,t){return this._showToaster("info",e,t,{timeOut:0})},t.prototype.warn=function(e,t){return this._showToaster("warning",e,t,{timeOut:0})},t.prototype.show=function(e,t,n,i){return this._showToaster(e,t,n,i)},t.prototype.hide=function(e){e?this.toaster.clear(e.toastId):this.toaster.clear()},t.prototype.showCustom=function(e,t){if(e)return(t=t||{}).toastComponent=ve,t.toastClass="custom-toaster",t.timeOut=o.isDefined(t.timeOut)?t.timeOut:0,t.enableHtml=o.isDefined(t.enableHtml),t.positionClass=t.positionClass||"toast-bottom-right",t.toastClass="toast",this.toaster.show(e,"",t)},t.prototype.setToasterConfig=function(e){_.isObject(e)?_.merge(this.toaster.toastrConfig,e):console.warn("Please pass a valid options object, For Example : {maxOpened: 1, autoDismiss: true}")},t}(o.AbstractToasterService);Se.decorators=[{type:t.Injectable}],Se.ctorParameters=function(){return[{type:h.ToastrService}]};var Ee=["ar","ar-001","ar-ae","ar-bh","ar-dz","ar-eg","ar-iq","ar-jo","ar-kw","ar-lb","ar-ly","ar-ma","ar-om","ar-qa","ar-sa","ar-sd","ar-sy","ar-tn","ar-ye","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","pnb","ps","sd","ug","ur","yi"],Te=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r.$http=t,r.bsLocaleService=n,r.appDefaults=i,r.inj=o,r.defaultSupportedLocale="en",r._isAngularLocaleLoaded=!1,r.formatsByLocale={timezone:"",number:""},r.appLocale={},r.prefabLocale=new Map,r}return K(t,e),Object.defineProperty(t.prototype,"app",{get:function(){return this.inj.get(o.App)},enumerable:!1,configurable:!0}),t.prototype.updateLocaleDirection=function(){var e="ltr";Ee.includes(this.selectedLocale)&&(e="rtl"),o.setCSS(document.body,"direction",e)},t.prototype.init=function(){this.messages={},Object.setPrototypeOf(this.appLocale,this.messages)},t.prototype.getSelectedLocale=function(){return this.selectedLocale},t.prototype.getDefaultSupportedLocale=function(){return this.defaultSupportedLocale},t.prototype.getAppLocale=function(){return this.appLocale},t.prototype.getPrefabLocaleBundle=function(e){return this.prefabLocale.has(e)||this.prefabLocale.set(e,Object.create(this.appLocale)),this.prefabLocale.get(e)},t.prototype.extendPrefabMessages=function(e){var t=this;e.prefabMessages&&Object.keys(e.prefabMessages).forEach((function(n){var i=t.prefabLocale.get(n);i||(i=Object.create(t.appLocale),t.prefabLocale.set(n,i)),Object.assign(i,e.prefabMessages[n])}))},t.prototype.extendMessages=function(e){Object.assign(this.messages,e)},t.prototype.loadResource=function(e){return this.$http.get(e).toPromise().catch((function(){console.warn("error loading locale resource from "+e),Promise.resolve({})}))},t.prototype.loadAppLocaleBundle=function(){var e=this;this.loadResource("resources/i18n/"+this.selectedLocale+".json").then((function(t){e.extendMessages(t.messages),e.extendPrefabMessages(t),e.appDefaults.setFormats(t.formats)}))},t.prototype.loadMomentLocaleBundle=function(e){var t=this,n=o._WM_APP_PROJECT.cdnUrl||o._WM_APP_PROJECT.ngDest;if(this.selectedLocale!==this.defaultSupportedLocale){var i=n+"locales/moment/"+e+".js";o.loadScripts([i],!0).then((function(){moment.locale(t.selectedLocale);var n=moment.localeData(e);n=n&&n._config,w.defineLocale(t.selectedLocale,n),t.bsLocaleService.use(t.getSelectedLocale()||t.defaultSupportedLocale)}))}else moment.locale(this.defaultSupportedLocale)},t.prototype.loadAngularLocaleBundle=function(e){var t=this;return new Promise((function(n){var i=o._WM_APP_PROJECT.cdnUrl||o._WM_APP_PROJECT.ngDest;if(t.selectedLocale!==t.defaultSupportedLocale){var r=i+"locales/angular/global/"+e+".js";o.loadScripts([r],!0).then((function(){t._isAngularLocaleLoaded=!0,n()}),n)}else n()}))},t.prototype.loadCalendarLocaleBundle=function(e,t){void 0===t&&(t=!1);var n,i=o._WM_APP_PROJECT.cdnUrl||o._WM_APP_PROJECT.ngDest;return e?(n=i+"locales/fullcalendar/"+e+".js",t||!o.isMobile()&&!o.isMobileApp()&&this.selectedLocale!==this.defaultSupportedLocale?o.loadScripts([n],!0):void 0):Promise.resolve()},t.prototype.loadMomentTimeZoneBundle=function(e,t){var n=this;return new Promise((function(i){var r=(o._WM_APP_PROJECT.cdnUrl||o._WM_APP_PROJECT.ngDest)+"locales/moment-timezone/moment-timezone-with-data.js";o.loadScripts([r],!0).then((function(){var o=e,r=(e=o.timezone).indexOf("+");r>-1&&(r>0&&(e=e.substr(r)),o.timezone=_.find(moment.tz.names(),(function(t){return e===moment.tz(t).format("Z")})));var a=t&&t.formatsByLocale?t.formatsByLocale:n.formatsByLocale;Object.assign(a,o),i()}),i)}))},t.prototype.loadLocaleBundles=function(e){return e.moment&&this.loadMomentLocaleBundle(e.moment),e.fullCalendar&&window.FullCalendar&&this.loadCalendarLocaleBundle(e.fullCalendar),e.angular&&this.loadAppLocaleBundle(),this.loadAngularLocaleBundle(e.angular)},t.prototype.setTimezone=function(e,t){this.loadMomentTimeZoneBundle(e,t)},t.prototype.getTimezone=function(e){var t=_.get(this.app,"activePage.formatsByLocale.timezone"),n=_.get(e,"formatsByLocale.timezone");return n||(t||this.formatsByLocale.timezone)},t.prototype.getFormatsByLocale=function(){return this.formatsByLocale},t.prototype.setSelectedLocale=function(e){var t=this;_.isObject(e)&&(e=e.datavalue);var n=o.getWmProjectProperties().supportedLanguages[e],i=Object.keys(o.getWmProjectProperties().supportedLanguages);return _.includes(i,e)&&e&&e!==this.selectedLocale?(o.setSessionStorageItem("selectedLocale",e),this.selectedLocale=e,this.init(),this.loadLocaleBundles(n).then((function(){return t.updateLocaleDirection()}))):Promise.resolve()},t.prototype.deduceAppLocale=function(){var e=this.getAcceptedLanguages(),t=o.getWmProjectProperties().defaultLanguage;e.push(t);var n=o.getWmProjectProperties().preferBrowserLang;n=!n||("true"===n||!0===n);var i,r=Object.keys(o.getWmProjectProperties().supportedLanguages)||[this.defaultSupportedLocale],s=n?void 0:t;if(a.CONSTANTS.hasCordova){var l=[];_.forEach(e,(function(e){var t=_.find(r,(function(t){return e===t}))||_.find(r,(function(t){return e.startsWith(t)}));t&&l.push(t)})),i=l[0]}var c=o.getSessionStorageItem("selectedLocale")||s||i||_.intersection(e,r)[0]||this.defaultSupportedLocale;return r=r||[c],c||r[0]},t.prototype.loadDefaultLocale=function(){var e=this.deduceAppLocale();return this.setSelectedLocale(e)},t.prototype.getLocalizedMessage=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return o.replace(this.appLocale[e],t)},t.prototype.getAcceptedLanguages=function(){var e;return e=a.CONSTANTS.hasCordova?navigator.languages||[navigator.language]:(e=decodeURIComponent(o.getWmProjectProperties().preferredLanguage||"")).split(",").map((function(e){return e.split(";")[0]})),_.map(e,_.toLower)},t.prototype.initCalendarLocale=function(){return"en"!==this.selectedLocale?this.loadCalendarLocaleBundle(this.selectedLocale,!0):Promise.resolve()},t.prototype.isAngularLocaleLoaded=function(){return this._isAngularLocaleLoaded},t.prototype.setwidgetLocale=function(e){this.formatsByLocale.number=e.number},t.prototype.getwidgetLocale=function(){return this.formatsByLocale},t}(o.AbstractI18nService);Te.decorators=[{type:t.Injectable}],Te.ctorParameters=function(){return[{type:u.HttpClient},{type:P.BsLocaleService},{type:o.AppDefaults},{type:t.Injector}]};var Re=function(e){function t(){var t=e.call(this)||this;return t.spinnerId=0,t.messageSource=new l.Subject,t.messagesByContext={},t}return K(t,e),t.prototype.getMessageSource=function(){return this.messageSource},t.prototype.showContextSpinner=function(e,t,n){var i=$('[name="'+e+'"]');if(this.messagesByContext[e]=this.messagesByContext[e]||{},0!==Object.keys(this.messagesByContext[e]).length)this.messagesByContext[e][n]=t,this.messagesByContext[e].finalMessage=this.messagesByContext[e].finalMessage+" "+this.messagesByContext[e][n],i.find(".spinner-messages-container").html(this.messagesByContext[e].finalMessage);else{var o=$('<div class="app-spinner">\n <div class="spinner-message" aria-label="loading gif">\n <i class="spinner-image animated infinite fa fa-circle-o-notch fa-spin"></i>\n <div class="spinner-messages">\n <p class="spinner-messages-container"></p>\n </div>\n </div>\n </div>');this.messagesByContext[e][n]=t,this.messagesByContext[e].finalMessage=this.messagesByContext[e][n],o.find(".spinner-messages-container").html(this.messagesByContext[e].finalMessage),i.prepend(o)}return n},t.prototype.showAppSpinner=function(e,t){this.messagesByContext.page=this.messagesByContext.page||{},this.messagesByContext.page[t]=e,this.messageSource.next({show:!0,message:e,messages:_.values(this.messagesByContext.page)})},t.prototype.hideContextSpinner=function(e,t){delete this.messagesByContext[e][t],1===Object.keys(this.messagesByContext[e]).length&&(this.messagesByContext[e]={}),$('[name="'+e+'"]').find(".app-spinner").remove()},t.prototype.show=function(e,t,n,i,o){return t=t||++this.spinnerId,i&&"page"!==i?this.showContextSpinner(i,e,t):(this.showAppSpinner(e,t),t)},t.prototype.hide=function(e){var t=_.findKey(this.messagesByContext,(function(t){return _.includes(_.keys(t),e)}))||"page";if("page"===t)if(e){delete this.messagesByContext[t][e];var n=_.values(this.messagesByContext[t]);this.messageSource.next({show:!!n.length,messages:_.values(this.messagesByContext[t])})}else this.messagesByContext[t]={};else this.hideContextSpinner(t,e)},t}(o.AbstractSpinnerService);Re.decorators=[{type:t.Injectable}],Re.ctorParameters=function(){return[]};var Ae="body >app-root",Ce=function(){function e(e,t,i){var o=this;this.app=e,this.router=t,this.zone=i,this.history=new De,this.isPageAddedToHistory=!1,this.router.events.subscribe((function(e){if(e instanceof n.NavigationStart){var t=e.url,i={},r=void 0;o.isPageAddedToHistory||(o.isPageAddedToHistory=!1,t.indexOf("?")>0?(t.substr(t.indexOf("?")+1).split("&").forEach((function(e){var t=e.split("=");i[t[0]]=t[1]})),r=t.substr(0,t.indexOf("?"))):r=t,"/"===r[0]&&(r=r.substr(1)),r&&(delete i.name,o.history.push(new Ie(r,i,o.transition))))}}))}return e.prototype.getPageTransition=function(){return _.isEmpty(this.transition)||_.isEqual("none",this.transition)?null:this.transition},e.prototype.goToPage=function(e,t){var n=this;this.transition=t.transition||"",this.history.getCurrentPage()&&(this.isPageAddedToHistory=!0),this.history.push(new Ie(e,t.urlParams,this.transition)),this.zone.run((function(){return n.router.navigate(["/"+e],{queryParams:t.urlParams})}))},e.prototype.goToPrevious=function(){this.history.getPagesCount()&&(this.transition=this.history.getCurrentPage().transition,_.isEmpty(this.transition)||(this.transition+="-exit"),this.history.pop(),this.isPageAddedToHistory=!0,window.history.back())},e.prototype.goToView=function(e,t,n){var i=this,o=(t=t||{}).pageName,r=t.transition||"",s=t.$event,l=this.app.activePage,c=n&&n._context&&n._context.prefabName;if(this.app.isPrefabType)this.goToElementView($(Ae).find('[name="'+e+'"]'),e,o,n);else if(o===l.activePageName||c)c&&this.isPrefabWithNameExists(c)?this.goToElementView($('[prefabName="'+c+'"]').find('[name="'+e+'"]'),e,o,n):o&&o!==l.activePageName?this.app.notifyApp(a.CONSTANTS.WIDGET_DOESNT_EXIST,"error"):this.goToElementView($(Ae).find('[name="'+e+'"]'),e,o,n);else if(this.isPartialWithNameExists(o))this.goToElementView($('[partialcontainer][content="'+o+'"]').find('[name="'+e+'"]'),e,o,n);else{this.goToPage(o,{viewName:e,$event:s,transition:r,urlParams:t.urlParams});var p=this.app.subscribe("pageReady",(function(t){i.goToElementView($(Ae).find('[name="'+e+'"]'),e,o,n),p()}))}},e.prototype.goToElementView=function(e,t,n,i){var o,r,a=this,s=this.app.activePage;if(e.length)switch(this.app.isPrefabType||n!==s.activePageName||(e=this.getViewElementInActivePage(e)),(o=e[0].widget).widgetType){case"wm-accordionpane":this.showAncestors(e,i),o.expand();break;case"wm-tabpane":this.showAncestors(e,i),o.select();break;case"wm-segment-content":this.showAncestors(e,i),o.navigate();break;case"wm-panel":o.expanded=!0}else r=this.showAncestorDialog(t),setTimeout((function(){r&&a.goToElementView($('[name="'+t+'"]'),t,n,i)}))},e.prototype.getViewElementInActivePage=function(e){var t;return e.length>1&&(t=_.filter(e,(function(e){if(_.isEmpty($(e).closest('[data-role = "partial"]'))&&_.isEmpty($(e).closest("[wmprefabcontainer]")))return e})))&&(e=$(t)),e},e.prototype.isPartialWithNameExists=function(e){return $('[partialcontainer][content="'+e+'"]').length},e.prototype.isPrefabWithNameExists=function(e){return $('[prefabName="'+e+'"]').length},e.prototype.showAncestors=function(e,t){e.parents('[wm-navigable-element="true"]').toArray().reverse().forEach((function(e){var t=e.widget;switch(t.widgetType){case"wm-accordionpane":t.expand();break;case"wm-tabpane":t.select();break;case"wm-segment-content":t.navigate();break;case"wm-panel":t.expanded=!0}}))},e.prototype.showAncestorDialog=function(e){var t;return $("app-root [dialogtype]").each((function(){var n=$(this);if($(n.html()).find('[name="'+e+'"]').length)return t=n.attr("name"),!1})),t},e}();Ce.decorators=[{type:t.Injectable}],Ce.ctorParameters=function(){return[{type:o.App},{type:n.Router},{type:t.NgZone}]};var Ie=function(){function e(e,t,n){this.name=e,this.urlParams=t,this.transition=n,this.transition=_.isEmpty(this.transition)?null:this.transition}return e.prototype.isEqual=function(e){return e&&e.name===this.name&&_.isEqual(e.urlParams,this.urlParams)},e}(),De=function(){function e(){this.stack=[]}return e.prototype.getCurrentPage=function(){return this.currentPage},e.prototype.getPagesCount=function(){return this.stack.length},e.prototype.isLastVisitedPage=function(e){return this.getLastPage().isEqual(e)},e.prototype.push=function(e){this.currentPage&&this.stack.push(this.currentPage),this.currentPage=e},e.prototype.pop=function(){return this.currentPage=this.stack.pop(),this.currentPage},e.prototype.getLastPage=function(){return this.stack.length>0?this.stack[this.stack.length-1]:void 0},e}(),Ne=function(){function e(){}return e.prototype.setFormats=function(e){var t=e.date,n=e.time,i=t&&n?t+" "+n:void 0,o=e.currency;this.dateFormat=t,this.timeFormat=n,this.dateTimeFormat=i,this.currencyCode=o},e}();Ne.decorators=[{type:t.Injectable}],Ne.ctorParameters=function(){return[]};var xe=!1,ke=function(){function e(e,t){this.securityService=e,this.appManager=t}return e.prototype.loadSecurityConfig=function(){return xe?Promise.resolve(!0):this.appManager.loadSecurityConfig().then((function(){return xe=!0}))},e.prototype.isAuthenticated=function(){var e=this;return this.loadSecurityConfig().then((function(){return new Promise((function(t,n){e.securityService.isAuthenticated(t,n)}))}))},e.prototype.canActivate=function(e){var t=this;return this.isAuthenticated().then((function(n){return n?Promise.resolve(!0):(t.appManager.handle401(e.routeConfig.path,{queryParams:e.queryParams}),Promise.resolve(!1))}))},e}();ke.decorators=[{type:t.Injectable}],ke.ctorParameters=function(){return[{type:r.SecurityService},{type:j}]};var Me=function(){function e(e,t,n,i,o){this.securityService=e,this.authGuard=t,this.toasterService=n,this.app=i,this.appManager=o}return e.prototype.canActivate=function(e){var t=this,n=e.data.allowedRoles;return this.authGuard.isAuthenticated().then((function(i){if(i){var o=t.securityService.get().userInfo.userRoles;return _.intersection(n,o).length>0?Promise.resolve(!0):(t.appManager.notifyApp(t.app.appLocale.LABEL_ACCESS_DENIED||"Access Denied","error"),Promise.resolve(!1))}return t.appManager.handle401(e.routeConfig.path,{queryParams:e.queryParams}),Promise.resolve(!1)}))},e}();Me.decorators=[{type:t.Injectable}],Me.ctorParameters=function(){return[{type:r.SecurityService},{type:ke},{type:o.AbstractToasterService},{type:o.App},{type:j}]};var Le=function(){function e(e,t){this.app=e,this.appManager=t}return e.prototype.canActivate=function(e){return this.appManager.notifyApp(this.app.appLocale.MESSAGE_PAGE_NOT_FOUND||"The page you are trying to reach is not available","error"),Promise.resolve(!1)},e}();Le.decorators=[{type:t.Injectable}],Le.ctorParameters=function(){return[{type:o.App},{type:j}]};var Fe=!1,je=function(){function e(e,t,n,i){this.inj=e,this.app=t,this.utilService=n,this.appJsProvider=i,this.appManager=this.inj.get(j)}return e.prototype.resolve=function(){return Q(this,void 0,void 0,(function(){var e;return X(this,(function(t){switch(t.label){case 0:if(Fe)return[2,!0];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.appJsProvider.getAppScriptFn()];case 2:return t.sent()(this.app,this.utilService,this.inj),[3,4];case 3:return e=t.sent(),console.warn("Error in executing app.js",e),[3,4];case 4:return Fe=!0,[2,!0]}}))}))},e}();je.decorators=[{type:t.Injectable}],je.ctorParameters=function(){return[{type:t.Injector},{type:o.App},{type:o.UtilsService},{type:M}]};var Be=!1,Ge=function(){function e(e,t,n){this.appManager=e,this.appJsProvider=t,this.customPipeManager=n}return e.prototype.resolve=function(){return!(!this.appManager.isPrefabType()&&!this.appManager.isTemplateBundleType())||(Be||(this.appJsProvider.loadFormatterConfigScript(this.loadedFormatterScript.bind(this)),Be=!0),Be)},e.prototype.loadedFormatterScript=function(e){try{var t=e;for(var n in t||console.warn("Please return valid formatter object"),t)this.customPipeManager.setCustomPipe(n,t[n])}catch(e){console.warn("Error in reading formatters.js",e)}},e}();Ge.decorators=[{type:t.Injectable}],Ge.ctorParameters=function(){return[{type:j},{type:F},{type:o.CustomPipeManager}]};var Ve=function(){function e(e){this.i18nService=e}return e.prototype.resolve=function(){return this.i18nService.loadDefaultLocale()},e}();Ve.decorators=[{type:t.Injectable}],Ve.ctorParameters=function(){return[{type:o.AbstractI18nService}]};var $e=function(){function e(e,n,r,a){var s,l=this;this.compiler=e,this.injector=n,this.domSanitizer=r,this.i18service=a,this._locale=o.getSessionStorageItem("selectedLocale")||"en",this.formatsByLocale=null===(s=this.i18service)||void 0===s?void 0:s.getwidgetLocale(),this.preparePipeMeta=function(e,t,n,i){return void 0===i&&(i=[]),{type:{reference:e,diDeps:i},name:t,pure:n}},this._pipeData=[this.preparePipeMeta(i.AsyncPipe,"async",!1,[t.ChangeDetectorRef]),this.preparePipeMeta(i.SlicePipe,"slice",!1),this.preparePipeMeta(i.PercentPipe,"percent",!0,[this._locale]),this.preparePipeMeta(i.I18nPluralPipe,"i18nPlural",!0,[i.NgLocalization]),this.preparePipeMeta(i.I18nSelectPipe,"i18nSelect",!0),this.preparePipeMeta(i.KeyValuePipe,"keyvalue",!1,[t.KeyValueDiffers]),this.preparePipeMeta(c.FileIconClassPipe,"fileIconClass",!0),this.preparePipeMeta(c.FileExtensionFromMimePipe,"fileExtensionFromMime",!0),this.preparePipeMeta(c.StateClassPipe,"stateClass",!0),this.preparePipeMeta(c.FileSizePipe,"filesize",!0),this.preparePipeMeta(c.FilterPipe,"filter",!0),this.preparePipeMeta(i.UpperCasePipe,"uppercase",!0),this.preparePipeMeta(i.LowerCasePipe,"lowercase",!0),this.preparePipeMeta(i.JsonPipe,"json",!1),this.preparePipeMeta(i.DecimalPipe,"number",!0,[this._locale]),this.preparePipeMeta(i.TitleCasePipe,"titlecase",!0),this.preparePipeMeta(i.CurrencyPipe,"currency",!0,[this._locale]),this.preparePipeMeta(i.DatePipe,"date",!0,[this._locale]),this.preparePipeMeta(c.ToDatePipe,"toDate",!0,[new i.DatePipe(this._locale)]),this.preparePipeMeta(c.ToNumberPipe,"toNumber",!0,[new i.DecimalPipe(this._locale),this.i18service]),this.preparePipeMeta(c.ToCurrencyPipe,"toCurrency",!0,[new i.DecimalPipe(this._locale),this.i18service]),this.preparePipeMeta(c.PrefixPipe,"prefix",!0),this.preparePipeMeta(c.SuffixPipe,"suffix",!0),this.preparePipeMeta(c.TimeFromNowPipe,"timeFromNow",!0),this.preparePipeMeta(c.NumberToStringPipe,"numberToString",!0,[new i.DecimalPipe(this._locale)]),this.preparePipeMeta(c.StringToNumberPipe,"stringToNumber",!0),this.preparePipeMeta(c.CustomPipe,"custom",!0,[this.injector.get(o.CustomPipeManager)]),this.preparePipeMeta(c.TrustAsPipe,"trustAs",!0,[this.domSanitizer]),this.preparePipeMeta(c.SanitizePipe,"sanitize",!0,[this.domSanitizer])],this._pipeMeta=new Map,this._pipeData.forEach((function(e){l._pipeMeta.set(e.name,e)}))}return e.prototype.unknownPipe=function(e){throw Error("The pipe '"+e+"' could not be found")},e.prototype.meta=function(e){var t=this._pipeMeta.get(e);return t||this.unknownPipe(e),t},e.prototype.getPipeNameVsIsPureMap=function(){var e=new Map;return this._pipeMeta.forEach((function(t,n){e.set(n,t.pure)})),e},e.prototype.resolveDep=function(e){return this.injector.get(e.token.identifier.reference)},e.prototype.getInstance=function(e){var t,n,i=this.meta(e).type,o=i.reference,r=i.diDeps;if(o||this.unknownPipe(e),r.length){var a=[];try{for(var s=J(r),l=s.next();!l.done;l=s.next()){var c=l.value;a.push(c)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return new(o.bind.apply(o,ee([void 0],Z(a))))}return new o},e}();$e.\u0275prov=C.\u0275\u0275defineInjectable({factory:function(){return new $e(C.\u0275\u0275inject(C.Compiler),C.\u0275\u0275inject(C.INJECTOR),C.\u0275\u0275inject(D.DomSanitizer),C.\u0275\u0275inject(I.AbstractI18nService))},token:$e,providedIn:"root"}),$e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],$e.ctorParameters=function(){return[{type:t.Compiler},{type:t.Injector},{type:d.DomSanitizer},{type:o.AbstractI18nService}]};var Ue=function(){function e(e,t,i,r,a,s,l,c,p,u){var d,h=this;this.elRef=i,this.oAuthService=r,this.dialogService=a,this.spinnerService=s,this.router=c,this.app=p,this.appManager=u,this.startApp=!1,this.isApplicationType=!1,this.spinner={show:!1,messages:[],arialabel:""},this.isOAuthDialogOpen=!1,o.setPipeProvider(e),o.setNgZone(l),o.setAppRef(t),this.isApplicationType="APPLICATION"===o.getWmProjectProperties().type,this.appManager.beforeAppReady(),r.getOAuthProvidersAsObservable().subscribe((function(e){h.providersConfig=e,e.length?h.showOAuthDialog():h.closeOAuthDialog()})),this.spinnerService.getMessageSource().asObservable().subscribe((function(e){setTimeout((function(){h.spinner.show=e.show,h.spinner.messages=e.messages,h.spinner.arialabel=e.messages.toString()}))})),O.setTheme("bs3");var m=o.noop;this.router.events.subscribe((function(e){if(e instanceof n.NavigationStart){var t=e.url.split("?")[0];(t=t.substring(1))||(h.app.activeLayoutName="",h.app.layoutPages=[]),d=h.app.activeLayoutName&&h.app.layoutPages&&h.app.layoutPages.length&&h.app.layoutPages.includes(t)?h.spinnerService.show("","wmRouterOutlet","","wmRouterOutlet"):h.spinnerService.show("","globalSpinner");var i=document.querySelector("app-page-outlet");i&&o.addClass(i,"page-load-in-progress");var r=Date.now();m=function(){h.spinnerService.hide(d);var e=document.querySelector("app-page-outlet");e&&o.removeClass(e,"page-load-in-progress"),m=o.noop,h.app.activePageLoadTime=Date.now()-r}}else(e instanceof n.NavigationEnd||e instanceof n.NavigationCancel||e instanceof n.NavigationError)&&setTimeout((function(){m()}),1e3)})),this.appManager.subscribe("pageReady",(function(){m()})),this.appManager.subscribe("pageAttach",(function(){m()}))}return e.prototype.showOAuthDialog=function(){this.isOAuthDialogOpen||(this.isOAuthDialogOpen=!0,this.dialogService.open("oAuthLoginDialog",this))},e.prototype.closeOAuthDialog=function(){this.isOAuthDialogOpen&&(this.isOAuthDialogOpen=!1,this.dialogService.close("oAuthLoginDialog",this))},e.prototype.start=function(){var e=this;setTimeout((function(){e.startApp=!0})),setTimeout((function(){e.app.dynamicComponentContainerRef=e.dynamicComponentContainerRef,e.overrideRouterOutlet()}),10)},e.prototype.overrideRouterOutlet=function(){var e=this,t=this.routerOutlet.attach,n=this.routerOutlet.detach;this.routerOutlet.attach=function(n){t.call(e.routerOutlet,n),n.instance.ngOnAttach()},this.routerOutlet.detach=function(){return e.app.activePage.ngOnDetach(),n.call(e.routerOutlet)}},e.prototype.ngAfterViewInit=function(){var e=this;o.hasCordova()&&!window.wmDeviceReady?document.addEventListener("wmDeviceReady",(function(){return e.start()})):this.start()},e.prototype.ngDoCheck=function(){o.$invokeWatchers()},e}();Ue.decorators=[{type:t.Component,args:[{selector:"app-root",template:'<ng-container *ngIf="startApp">\n <router-outlet></router-outlet>\n <div wmContainer partialContainer content="Common" hidden class="ng-hide" *ngIf="isApplicationType"></div>\n <app-spinner name="globalspinner" classname="global-spinner" role="alert" aria-live="assertive" [attr.aria-label]="spinner.arialabel || \'Loading\'" [show]="spinner.show" [spinnermessages]="spinner.messages"></app-spinner>\n <div wmDialog name="oAuthLoginDialog" title="Application is requesting you to sign in with"\n close.event="closeOAuthDialog()">\n <ng-template #dialogBody>\n <ul class="list-items">\n <li class="list-item" *ngFor="let provider of providersConfig">\n <button class="btn" (click)="provider.invoke()">{{provider.name}}</button>\n </li>\n </ul>\n </ng-template>\n </div>\n <div wmConfirmDialog name="_app-confirm-dialog" title.bind="title" message.bind="message" oktext.bind="oktext"\n canceltext.bind="canceltext" closable="false" iconclass.bind="iconclass"\n escape.event="onEscape()" ok.event="onOk()" cancel.event="onCancel()" close.event="onClose()" opened.event="onOpen()"></div>\n <div *ngIf="!isApplicationType" wmConfirmDialog name="PrefabConfirmDialog" title.bind="title" message.bind="text" oktext.bind="okButtonText"\n canceltext.bind="cancelButtonText" closable="false" iconclass.bind="iconclass"\n escape.event="onEscape()" ok.event="onOk()" cancel.event="onCancel()" close.event="onClose()" opened.event="onOpen()"></div>\n <div *ngIf="!isApplicationType" wmAlertDialog name="PrefabAlertDialog" title.bind="title" message.bind="text" oktext.bind="okButtonText"\n canceltext.bind="cancelButtonText" closable="false" iconclass.bind="iconclass"\n escape.event="onEscape()" ok.event="onOk()" cancel.event="onCancel()" close.event="onClose()" opened.event="onOpen()"></div>\n <div wmAppExt></div>\n <i id="wm-mobile-display"></i>\n</ng-container>\n\x3c!--Dummy container to create the component dynamically--\x3e\n<ng-container #dynamicComponent></ng-container>\n',encapsulation:t.ViewEncapsulation.None}]}],Ue.ctorParameters=function(){return[{type:$e},{type:t.ApplicationRef},{type:t.ElementRef},{type:b.OAuthService},{type:o.AbstractDialogService},{type:o.AbstractSpinnerService},{type:t.NgZone},{type:n.Router},{type:o.App},{type:j}]},Ue.propDecorators={routerOutlet:[{type:t.ViewChild,args:[n.RouterOutlet]}],dynamicComponentContainerRef:[{type:t.ViewChild,args:["dynamicComponent",{read:t.ViewContainerRef}]}]};var We=function(){function e(){this.wmHttpRequest=new y.WmHttpRequest,this.wmHttpResponse=new y.WmHttpResponse}return e.prototype.createSubject=function(){return new l.Subject},e.prototype.intercept=function(e,t){var n,i,o=this;if(a.appManager&&a.appManager.appOnBeforeServiceCall){var r=this.wmHttpRequest.angularToWmRequest(e);(n=a.appManager.appOnBeforeServiceCall(r))&&(n=this.wmHttpRequest.wmToAngularRequest(n),e=n)}return t.handle(e).pipe(S.tap((function(e){if(e&&4===e.type&&a.appManager&&a.appManager.appOnServiceSuccess){var t=o.wmHttpResponse.angularToWmResponse(e);(i=a.appManager.appOnServiceSuccess(t.body,t))&&(i=o.wmHttpResponse.wmToAngularResponse(i),_.extend(e,i))}}),(function(t){if(t._401Subscriber=o.createSubject(),a.httpService.isPlatformSessionTimeout(t)&&a.httpService.handleSessionTimeout(e,t._401Subscriber),a.appManager&&a.appManager.appOnServiceError){var n=o.wmHttpResponse.angularToWmResponse(t);(i=a.appManager.appOnServiceError(n.message,n))&&(i=o.wmHttpResponse.wmToAngularResponse(i),_.extend(t,i))}})))},e}();We.decorators=[{type:t.Injectable}],We.ctorParameters=function(){return[]};var qe="PREFAB",ze=function(){function e(e){var t=this;this.prefabManager=e,window.addEventListener("message",(function(e){if((e.data&&e.data.context)===qe){var n=e.data.action,i=e.data.payload;"init"===n?t.init():"set-property"===n?t.setProperty(i):"get-outbound-properties"===n?t.getOutboundProps():"invoke-script"===n&&t.invokeScript(i)}}))}return e.prototype.postMessage=function(e,t){var n={context:qe,action:e,payload:t};window.top.postMessage(n,"*")},e.prototype.setupEventListeners=function(){var e=this;this.prefabInstance.invokeEventCallback=function(t,n){void 0===n&&(n={}),e.postMessage("event-log",{name:t,data:n})}},e.prototype.init=function(){var e=this;this.previewMode=!0,this.prefabInstance.readyState.subscribe((function(){}),(function(){}),(function(){e.prefabManager.getConfig("__self__").then((function(t){e.config=t,e.postMessage("config",t),e.setupEventListeners()}))}))},e.prototype.setProperty=function(e){this.prefabInstance.widget[e.name]=e.value},e.prototype.isOutBoundProp=function(e){return"out-bound"===e.bindable||"in-out-bound"===e.bindable},e.prototype.getOutboundProps=function(){var e,t,n={};try{for(var i=J(Object.entries(this.config.properties||{})),o=i.next();!o.done;o=i.next()){var r=Z(o.value,2),a=r[0],s=r[1];this.isOutBoundProp(s)&&(n[a]=this.prefabInstance.widget[a])}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}this.postMessage("outbound-properties",n)},e.prototype.invokeScript=function(e){var t="\n return "+e.script+";",n=new Function("Prefab",t)(this.prefabInstance);this.postMessage("method-output",{methodName:e.methodName,output:n})},e.prototype.ngAfterViewInit=function(){this.setupEventListeners(),this.postMessage("init")},e}();ze.decorators=[{type:t.Component,args:[{selector:"wm-prefab-preview",template:'\n <div class="prefab-preview row">\n <section wmPrefab name="prefab-preview" prefabname="__self__"></section>\n </div>\n '}]}],ze.ctorParameters=function(){return[{type:H}]},ze.propDecorators={prefabInstance:[{type:t.ViewChild,args:[p.PrefabDirective,{static:!0}]}]},T.initComponentsBuildTask();var He=new Map,Ye=function(e){var n=function(){};return n.decorators=[{type:t.NgModule,args:[{declarations:[e],imports:[wt],schemas:[t.CUSTOM_ELEMENTS_SCHEMA,t.NO_ERRORS_SCHEMA]}]}],n},Ke=function(e,n,i){void 0===i&&(i="");var o={template:n,styles:[i],encapsulation:t.ViewEncapsulation.None},r=function(){};return r.decorators=[{type:t.Component,args:[Object.assign(Object.assign({},o),{selector:e})]}],r},Qe=function(){function e(e,t,n){this.app=e,this.appManager=t,this.compiler=n,this.counter=1}return e.prototype.getComponentFactoryRef=function(e,t,n){return void 0===n&&(n={}),Q(this,void 0,void 0,(function(){var i,o,r;return X(this,(function(a){return i=He.get(e),t=n.transpile?E.transpile(t).markup:t,i&&!n.noCache||(o=Ke(e,t,n.styles),r=Ye(o),i=this.compiler.compileModuleAndAllComponentsSync(r).componentFactories.filter((function(e){return e.componentType===o}))[0],He.set(e,i)),[2,i]}))}))},e.prototype.addComponent=function(e,t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),Q(this,void 0,void 0,(function(){var r,a;return X(this,(function(s){switch(s.label){case 0:return i.transpile=!o.isDefined(i.transpile)||i.transpile,i.noCache=!o.isDefined(i.noCache)||i.noCache,i.selector=o.isDefined(i.selector)?i.selector:"wm-dynamic-component-"+this.counter++,[4,this.getComponentFactoryRef(i.selector,t,i)];case 1:return r=s.sent(),a=this.app.dynamicComponentContainerRef.createComponent(r,0,_.get(i,"inj")),o.extendProto(a.instance,n),e.appendChild(a.location.nativeElement),[2]}}))}))},e}();Qe.decorators=[{type:t.Injectable}],Qe.ctorParameters=function(){return[{type:o.App},{type:j},{type:t.Compiler}]};var Xe=function(){function e(){}return e.prototype.canDeactivate=function(e,t,n){return function(){var e;return!1!==(e=this.app.activePage&&this.app.activePage.onBeforePageLeave())&&(e=(this.app.onBeforePageLeave||o.noop)(this.app.activePageName,this.app.activePage)),void 0===e||e}.apply(e)},e}();Xe.decorators=[{type:t.Injectable}];var Je=function(){function e(){}return e.prototype.canDeactivate=function(e,t,n){return!e.canDeactivate||e.canDeactivate()},e}();Je.decorators=[{type:t.Injectable}];var Ze=function(){function e(){this._stylesSet=new Set}return e.prototype.addStyles=function(e){var t=this,n=new Set;e.forEach((function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))})),this.onStylesAdded(n)},e.prototype.onStylesAdded=function(e){},e.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},e}();Ze.decorators=[{type:t.Injectable}];var et=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._hostNodes=new Map,n._hostNodes.set(t.head,[]),n}return K(t,e),t.prototype._addStylesToHost=function(e,t,n){var i,o=this,r=(null===(i=document.querySelector('meta[name="CSP-NONCE"]'))||void 0===i?void 0:i.getAttribute("content"))||"wm-csp-nonce";e.forEach((function(e){var i=o._doc.createElement("style");i.textContent=e,i.setAttribute("nonce",r),n.push(t.appendChild(i))}))},t.prototype.addHost=function(e){var t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)},t.prototype.removeHost=function(e){var t=this._hostNodes.get(e);t&&t.forEach(tt),this._hostNodes.delete(e)},t.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach((function(n,i){t._addStylesToHost(e,i,n)}))},t.prototype.ngOnDestroy=function(){this._hostNodes.forEach((function(e){return e.forEach(tt)}))},t}(Ze);function tt(e){i["\u0275getDOM"]().remove(e)}et.decorators=[{type:t.Injectable}],et.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[i.DOCUMENT]}]}]};var nt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},it=/%COMP%/g,ot="_nghost-%COMP%",rt="_ngcontent-%COMP%";function at(e,t,n){for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?at(e,o,n):(o=o.replace(it,e),n.push(o))}return n}function st(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var lt=function(){function e(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new ct(e)}return e.prototype.createRenderer=function(e,n){if(!e||!n)return this.defaultRenderer;switch(n.encapsulation){case t.ViewEncapsulation.Emulated:var i=this.rendererByCompId.get(n.id);return i||(i=new dt(this.eventManager,this.sharedStylesHost,n,this.appId),this.rendererByCompId.set(n.id,i)),i.applyToHost(e),i;case 1:case t.ViewEncapsulation.ShadowDom:return new ht(this.eventManager,this.sharedStylesHost,e,n);default:if(!this.rendererByCompId.has(n.id)){var o=at(n.id,n.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(n.id,this.defaultRenderer)}return this.defaultRenderer}},e.prototype.begin=function(){},e.prototype.end=function(){},e}();lt.decorators=[{type:t.Injectable}],lt.ctorParameters=function(){return[{type:d.EventManager},{type:d["\u0275DomSharedStylesHost"]},{type:String,decorators:[{type:t.Inject,args:[t.APP_ID]}]}]};var ct=function(){function e(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}return e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){return t?document.createElementNS(nt[t]||t,e):document.createElement(e)},e.prototype.createComment=function(e){return document.createComment(e)},e.prototype.createText=function(e){return document.createTextNode(e)},e.prototype.appendChild=function(e,t){(pt(e)?e.content:e).appendChild(t)},e.prototype.insertBefore=function(e,t,n){e&&(pt(e)?e.content:e).insertBefore(t,n)},e.prototype.removeChild=function(e,t){e&&e.removeChild(t)},e.prototype.selectRootElement=function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'+e+'" did not match any elements');return t||(n.textContent=""),n},e.prototype.parentNode=function(e){return e.parentNode},e.prototype.nextSibling=function(e){return e.nextSibling},e.prototype.resetStyles=function(e){[].slice.call(e).forEach((function(t){e.style.removeProperty(t)}))},e.prototype.applyStyles=function(e,t){if(t)return t.split(";").forEach((function(t){var n,i,o=t.split(":");2===o.length&&(n=o[0].trim(),i=o[1].trim(),e.style[n]=i)})),t},e.prototype.setAttribute=function(e,t,n,i){if(i){t=i+":"+t;var o=nt[i];o?e.setAttributeNS(o,t,n):e.setAttribute(t,n)}else"style"===t?(this.resetStyles(e),this.applyStyles(e,n)):e.setAttribute(t,n)},e.prototype.removeAttribute=function(e,t,n){if(n){var i=nt[n];i?e.removeAttributeNS(i,t):e.removeAttribute(n+":"+t)}else e.removeAttribute(t)},e.prototype.addClass=function(e,t){e.classList.add(t)},e.prototype.removeClass=function(e,t){e.classList.remove(t)},e.prototype.setStyle=function(e,n,i,o){o&(t.RendererStyleFlags2.DashCase|t.RendererStyleFlags2.Important)?e.style.setProperty(n,i,o&t.RendererStyleFlags2.Important?"important":""):e.style[n]=i},e.prototype.removeStyle=function(e,n,i){i&t.RendererStyleFlags2.DashCase?e.style.removeProperty(n):e.style[n]=""},e.prototype.setProperty=function(e,t,n){e[t]=n},e.prototype.setValue=function(e,t){e.nodeValue=t},e.prototype.listen=function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,st(n)):this.eventManager.addEventListener(e,t,st(n))},e}();"@".charCodeAt(0);function pt(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}var ut,dt=function(e){function t(t,n,i,o){var r=e.call(this,t)||this;r.component=i;var a,s=at(o+"-"+i.id,i.styles,[]);return n.addStyles(s),r.contentAttr=(a=o+"-"+i.id,rt.replace(it,a)),r.hostAttr=function(e){return ot.replace(it,e)}(o+"-"+i.id),r}return K(t,e),t.prototype.applyToHost=function(t){e.prototype.setAttribute.call(this,t,this.hostAttr,"")},t.prototype.createElement=function(t,n){var i=e.prototype.createElement.call(this,t,n);return e.prototype.setAttribute.call(this,i,this.contentAttr,""),i},t}(ct),ht=function(e){function t(t,n,i,o){var r=e.call(this,t)||this;r.sharedStylesHost=n,r.hostEl=i,r.shadowRoot=i.attachShadow({mode:"open"}),r.sharedStylesHost.addHost(r.shadowRoot);for(var a=at(o.id,o.styles,[]),s=0;s<a.length;s++){var l=document.createElement("style");l.textContent=a[s],r.shadowRoot.appendChild(l)}return r}return K(t,e),t.prototype.nodeOrShadowRoot=function(e){return e===this.hostEl?this.shadowRoot:e},t.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},t.prototype.appendChild=function(t,n){return e.prototype.appendChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.insertBefore=function(t,n,i){return e.prototype.insertBefore.call(this,this.nodeOrShadowRoot(t),n,i)},t.prototype.removeChild=function(t,n){return e.prototype.removeChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.parentNode=function(t){return this.nodeOrShadowRoot(e.prototype.parentNode.call(this,this.nodeOrShadowRoot(t)))},t}(ct),mt=function(){o._WM_APP_PROJECT.id=o.hasCordova()?_WM_APP_PROPERTIES.displayName:location.href.split("/")[3],o._WM_APP_PROJECT.cdnUrl=document.querySelector('[name="cdnUrl"]')&&document.querySelector('[name="cdnUrl"]').getAttribute("content"),o._WM_APP_PROJECT.ngDest="ng-bundle/"};function ft(e,t){return{provide:e,useValue:t}}function gt(e,t){var n=this;return function(){return Q(n,void 0,void 0,(function(){return X(this,(function(n){switch(n.label){case 0:return mt(),[4,t.resolve()];case 1:return n.sent(),[2,e.loadDefaultLocale()]}}))}))}}function vt(e){return mt(),e.deduceAppLocale()}!function(e){e.IOS="ios",e.ANDROID="android"}(ut||(ut={}));var yt=[fe,ge,ve,be,Ue,ze,ye],bt=[f.ConfirmDialogModule,g.DesignDialogModule,m.DialogModule];$.fn.swipeAnimation.expressionEvaluator=o.$parseExpr;var wt=function(){function e(t,n,i){e.addCustomEventPolyfill(),this.getDeviceDetails().then((function(e){n.selectedViewPort={os:e.os,category:e.selectedDeviceCategory},i.update(e),n.notify("on-viewport-details",e.os)}))}return e.addCustomEventPolyfill=function(){if("function"==typeof window.CustomEvent)return!1;var e=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n};e.prototype=window.Event.prototype,window.CustomEvent=e},e.forRoot=function(){return{ngModule:e,providers:[{provide:o.App,useClass:Oe},{provide:o.AbstractToasterService,useClass:Se},{provide:o.AbstractI18nService,useClass:Te},{provide:o.AbstractSpinnerService,useClass:Re},{provide:o.AbstractNavigationService,useClass:Ce},{provide:o.AppDefaults,useClass:Ne},{provide:o.DynamicComponentRefProvider,useClass:Qe},{provide:t.APP_INITIALIZER,useFactory:gt,deps:[o.AbstractI18nService,je],multi:!0},{provide:t.LOCALE_ID,useFactory:vt,deps:[o.AbstractI18nService]},{provide:u.HTTP_INTERCEPTORS,useClass:We,multi:!0},i.DecimalPipe,i.DatePipe,j,H,ke,Me,Le,Xe,je,Ge,Ve,ft(re,10),ft(ae,1800)]}},e.prototype.getDeviceDetails=function(){return new Promise((function(e,t){window.top!==window?(window.top.postMessage({key:"on-load"},"*"),window.onmessage=function(t){var n=t.data;o.isObject(n)&&"switch-device"===n.key&&e(n.device)}):o.isIphone()||o.isIpod()||o.isIpad()?e({os:ut.IOS}):e({os:ut.ANDROID})}))},e}();wt.decorators=[{type:t.NgModule,args:[{declarations:yt,imports:[i.CommonModule,n.RouterModule,u.HttpClientModule,h.ToastrModule,c.WmComponentsModule,p.PrefabModule,v.MobileRuntimeModule,o.CoreModule,r.SecurityModule,b.OAuthModule,a.VariablesModule,y.HttpServiceModule,bt],exports:[yt,i.CommonModule,c.WmComponentsModule,v.MobileRuntimeModule,o.CoreModule,r.SecurityModule,b.OAuthModule,a.VariablesModule,y.HttpServiceModule,bt],providers:[{provide:d["\u0275DomSharedStylesHost"],useClass:et},{provide:d["\u0275DomRendererFactory2"],useClass:lt}],entryComponents:[ve]}]}],wt.ctorParameters=function(){return[{type:v.MobileRuntimeModule},{type:o.App},{type:o.Viewport}]};var Pt=[c.WmComponentsModule.forRoot(),v.MobileRuntimeModule.forRoot(),o.CoreModule.forRoot(),r.SecurityModule.forRoot(),b.OAuthModule.forRoot(),a.VariablesModule.forRoot(),y.HttpServiceModule.forRoot(),wt.forRoot()],_t=!1,Ot=function(){function e(e,t){this.appManager=e,this.appVariablesProvider=t}return e.prototype.resolve=function(){var e=this;return!!_t||Promise.all([this.appManager.loadSecurityConfig(),this.appManager.loadMetadata(),this.appVariablesProvider.getAppVariables()]).then((function(t){return e.appManager.loadAppVariables(t[2])})).then((function(){return _t=!0}))},e}();Ot.\u0275prov=C.\u0275\u0275defineInjectable({factory:function(){return new Ot(C.\u0275\u0275inject(j),C.\u0275\u0275inject(L))},token:Ot,providedIn:"root"}),Ot.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],Ot.ctorParameters=function(){return[{type:j},{type:L}]};var St=!1,Et=function(){function e(e){this.appManager=e}return e.prototype.resolve=function(){return St||this.appManager.loadMetadata().then((function(){return St=!0}))},e}();Et.\u0275prov=C.\u0275\u0275defineInjectable({factory:function(){return new Et(C.\u0275\u0275inject(j))},token:Et,providedIn:"root"}),Et.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],Et.ctorParameters=function(){return[{type:j}]};var Tt=function(){function e(e){this.appManager=e,o.isMobileApp()||(this.loaded=this.appManager.isPrefabType()||this.appManager.isTemplateBundleType()||!o.getWmProjectProperties().securityEnabled)}return e.prototype.resolve=function(){var e=this;return this.loaded||this.appManager.loadSecurityConfig().then((function(){e.loaded=!0}))},e}();Tt.\u0275prov=C.\u0275\u0275defineInjectable({factory:function(){return new Tt(C.\u0275\u0275inject(j))},token:Tt,providedIn:"root"}),Tt.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],Tt.ctorParameters=function(){return[{type:j}]},e.AccessrolesDirective=fe,e.AppComponent=Ue,e.AppDefaultsService=Ne,e.AppExtensionJSResolve=Ge,e.AppExtensionProvider=F,e.AppJSProvider=M,e.AppJSResolve=je,e.AppManagerService=j,e.AppRef=Oe,e.AppSpinnerComponent=ge,e.AppVariablesProvider=L,e.AppVariablesResolve=Ot,e.AuthGuard=ke,e.BaseLayoutComponent=de,e.BasePageComponent=pe,e.BasePartialComponent=ie,e.BasePrefabComponent=ue,e.BaseSpaPageComponent=me,e.CACHE_PAGE=oe,e.CanDeactivateNgPageGuard=Je,e.CanDeactivatePageGuard=Xe,e.ComponentRefProvider=x,e.CustomToasterComponent=ve,e.DynamicComponentRefProviderService=Qe,e.EmptyPageComponent=ye,e.FragmentMonitor=te,e.HttpCallInterceptor=We,e.I18nResolve=Ve,e.I18nServiceImpl=Te,e.InitializeApp=gt,e.MAX_CACHE_AGE=ae,e.MAX_CACHE_SIZE=re,e.MetadataResolve=Et,e.NavigationServiceImpl=Ce,e.PageNotFoundGaurd=Le,e.PipeProvider=$e,e.PrefabConfigProvider=k,e.PrefabDirective=be,e.PrefabManagerService=H,e.PrefabPreviewComponent=ze,e.REQUIRED_MODULES_FOR_DYNAMIC_COMPONENTS=bt,e.RoleGuard=Me,e.RuntimeBaseModule=wt,e.SecurityConfigResolve=Tt,e.SpinnerServiceImpl=Re,e.ToasterServiceImpl=Se,e.WM_MODULES_FOR_ROOT=Pt,e.WmDefaultRouteReuseStrategy=se,e.WmNgRouteReuseStrategy=ce,e.WmRouteReuseStrategy=le,e.commonPartialWidgets=ne,e.getPrefabBaseUrl=G,e.getPrefabConfigUrl=function(e){return G(e)+"/config.json"},e.getPrefabMinJsonUrl=function(e){return G(e)+"/pages/Main/page.min.json"},e.getPrefabPartialJsonUrl=function(e,t){return G(e)+"/pages/"+t+"/page.min.json"},e.isPrefabInPreview=B,e.setAngularLocale=vt,e["\u02750"]=z,e["\u0275a"]=ft,e["\u0275b"]=Ze,e["\u0275c"]=et,e["\u0275d"]=lt,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/platform-browser-dynamic"),require("@angular/platform-browser"),require("@angular/common"),require("@angular/router"),require("@angular/common/http"),require("@angular/forms"),require("ngx-bootstrap/typeahead"),require("ngx-bootstrap/timepicker"),require("ngx-bootstrap/progressbar"),require("ngx-bootstrap/pagination"),require("ngx-bootstrap/modal"),require("ngx-bootstrap/tooltip"),require("ngx-bootstrap/datepicker"),require("ngx-bootstrap/dropdown"),require("ngx-bootstrap/popover"),require("ng-circle-progress"),require("ngx-toastr"),require("ngx-bootstrap/carousel"),require("@wm/core"),require("@wm/components/basic"),require("@wm/components/basic/progress"),require("@wm/components/basic/rich-text-editor"),require("@wm/components/basic/search"),require("@wm/components/basic/tree"),require("@wm/components/input"),require("@wm/components/input/calendar"),require("@wm/components/input/chips"),require("@wm/components/input/color-picker"),require("@wm/components/input/currency"),require("@wm/components/input/epoch"),require("@wm/components/input/file-upload"),require("@wm/components/input/rating"),require("@wm/components/input/slider"),require("@wm/mobile/runtime/dynamic"),require("@wm/components/data/card"),require("@wm/components/data/form"),require("@wm/components/data/list"),require("@wm/components/data/live-table"),require("@wm/components/data/pagination"),require("@wm/components/data/table"),require("@wm/components/chart"),require("@wm/components/containers/accordion"),require("@wm/components/containers/linear-layout"),require("@wm/components/containers/layout-grid"),require("@wm/components/containers/panel"),require("@wm/components/containers/tabs"),require("@wm/components/containers/tile"),require("@wm/components/containers/wizard"),require("@wm/components/dialogs/alert-dialog"),require("@wm/components/dialogs/iframe-dialog"),require("@wm/components/dialogs/login-dialog"),require("@wm/components/dialogs/partial-dialog"),require("@wm/components/navigation/breadcrumb"),require("@wm/components/navigation/menu"),require("@wm/components/navigation/navbar"),require("@wm/components/navigation/popover"),require("@wm/components/advanced/carousel"),require("@wm/components/advanced/login"),require("@wm/components/advanced/marquee"),require("@wm/components/page"),require("@wm/components/page/footer"),require("@wm/components/page/header"),require("@wm/components/page/left-panel"),require("@wm/components/page/right-panel"),require("@wm/components/page/top-nav"),require("@wm/components/prefab"),require("@wm/runtime/base"),require("@wm/variables"),require("@wm/security"),require("@wm/transpiler"),require("@angular/platform-browser/animations")):"function"==typeof define&&define.amd?define("@wm/runtime/dynamic",["exports","@angular/core","@angular/platform-browser-dynamic","@angular/platform-browser","@angular/common","@angular/router","@angular/common/http","@angular/forms","ngx-bootstrap/typeahead","ngx-bootstrap/timepicker","ngx-bootstrap/progressbar","ngx-bootstrap/pagination","ngx-bootstrap/modal","ngx-bootstrap/tooltip","ngx-bootstrap/datepicker","ngx-bootstrap/dropdown","ngx-bootstrap/popover","ng-circle-progress","ngx-toastr","ngx-bootstrap/carousel","@wm/core","@wm/components/basic","@wm/components/basic/progress","@wm/components/basic/rich-text-editor","@wm/components/basic/search","@wm/components/basic/tree","@wm/components/input","@wm/components/input/calendar","@wm/components/input/chips","@wm/components/input/color-picker","@wm/components/input/currency","@wm/components/input/epoch","@wm/components/input/file-upload","@wm/components/input/rating","@wm/components/input/slider","@wm/mobile/runtime/dynamic","@wm/components/data/card","@wm/components/data/form","@wm/components/data/list","@wm/components/data/live-table","@wm/components/data/pagination","@wm/components/data/table","@wm/components/chart","@wm/components/containers/accordion","@wm/components/containers/linear-layout","@wm/components/containers/layout-grid","@wm/components/containers/panel","@wm/components/containers/tabs","@wm/components/containers/tile","@wm/components/containers/wizard","@wm/components/dialogs/alert-dialog","@wm/components/dialogs/iframe-dialog","@wm/components/dialogs/login-dialog","@wm/components/dialogs/partial-dialog","@wm/components/navigation/breadcrumb","@wm/components/navigation/menu","@wm/components/navigation/navbar","@wm/components/navigation/popover","@wm/components/advanced/carousel","@wm/components/advanced/login","@wm/components/advanced/marquee","@wm/components/page","@wm/components/page/footer","@wm/components/page/header","@wm/components/page/left-panel","@wm/components/page/right-panel","@wm/components/page/top-nav","@wm/components/prefab","@wm/runtime/base","@wm/variables","@wm/security","@wm/transpiler","@angular/platform-browser/animations"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.runtime=e.wm.runtime||{},e.wm.runtime.dynamic={}),e.ng.core,e.ng.platformBrowserDynamic,e.ng.platformBrowser,e.ng.common,e.ng.router,e.ng.common.http,e.ng.forms,e["ngx-bootstrap"].typeahead,e["ngx-bootstrap"].timepicker,e["ngx-bootstrap"].progressbar,e["ngx-bootstrap"].pagination,e["ngx-bootstrap"].modal,e["ngx-bootstrap"].tooltip,e["ngx-bootstrap"].datepicker,e["ngx-bootstrap"].dropdown,e["ngx-bootstrap"].popover,e.ngCircleProgress,e.ngxToastr,e["ngx-bootstrap"].carousel,e.wm.core,e.wm.components.basic,e.wm.components.basic.progress,e.wm.components.basic.richtexteditor,e.wm.components.basic.search,e.wm.components.basic.tree,e.wm.components.input,e.wm.components.input.calendar,e.wm.components.input.chips,e.wm.components.input.colorpicker,e.wm.components.input.currency,e.wm.components.input.epoch,e.wm.components.input.fileupload,e.wm.components.input.rating,e.wm.components.input.slider,e.wm.mobile.runtime.dynamic,e.wm.components.data.card,e.wm.components.data.form,e.wm.components.data.list,e.wm.components.data.livetable,e.wm.components.data.pagination,e.wm.components.data.table,e.wm.components.chart,e.wm.components.containers.accordion,e.wm.components.containers.linearlayout,e.wm.components.containers.layoutgrid,e.wm.components.containers.panel,e.wm.components.containers.tabs,e.wm.components.containers.tile,e.wm.components.containers.wizard,e.wm.components.dialogs.alertdialog,e.wm.components.dialogs.iframedialog,e.wm.components.dialogs.logindialog,e.wm.components.dialogs.partialdialog,e.wm.components.navigation.breadcrumb,e.wm.components.navigation.menu,e.wm.components.navigation.navbar,e.wm.components.navigation.popover,e.wm.components.advanced.carousel,e.wm.components.advanced.login,e.wm.components.advanced.marquee,e.wm.components.page,e.wm.components.page.footer,e.wm.components.page.header,e.wm.components.page.leftpanel,e.wm.components.page.rightpanel,e.wm.components.page.topnav,e.wm.components.prefab,e.wm.runtime.base,e.wm.variables,e.wm.security,e.wm.transpiler,e.ng.platformBrowser.animations)}(this,(function(e,t,n,i,o,r,a,s,l,c,p,u,d,h,m,f,g,v,y,b,w,P,O,S,E,T,R,A,C,I,D,N,x,k,M,L,F,j,B,G,V,U,W,q,z,H,Y,K,Q,X,J,Z,ee,te,ne,ie,oe,re,ae,se,le,ce,pe,ue,de,he,me,fe,ge,ve,ye,be,we){"use strict";function Pe(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var _e=Pe(t),Oe=Pe(a),Se=function(e,t){return(Se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function Ee(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Se(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Te(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))}function Re(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}Object.create;function Ae(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function Ce(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var Ie=function(){function e(e,t,n,i,o,r,a,s,l,c,p,u,d){this.injector=e,this.route=t,this.vcRef=n,this.appRef=i,this.metadataService=o,this.securityService=r,this.appManager=a,this.app=s,this.ngZone=l,this.elRef=c,this.spinnerService=p,this.componentRefProvider=u,this.router=d}return e.prototype.getTargetNode=function(){return this.elRef.nativeElement},e.prototype.resetViewContainer=function(){this.vcRef.clear(),this.getTargetNode().innerHTML=""},e.prototype.renderPage=function(e){var t=this,n=this.getTargetNode();this.appManager.loadAppVariables().then((function(){return Te(t,void 0,void 0,(function(){var t,i;return Re(this,(function(o){switch(o.label){case 0:return[4,this.componentRefProvider.getComponentFactoryRef(e,ge.ComponentType.PAGE)];case 1:return(t=o.sent())?(i=this.vcRef.createComponent(t,0,this.injector),this.instance=i.instance,n.appendChild(i.location.nativeElement)):ge.BasePageComponent.clear(),this.vcRef.length>1&&this.vcRef.remove(1),[2]}}))}))}))},e.prototype.renderPrefabPreviewPage=function(){this.router.navigate(["prefab-preview"])},e.prototype.loadPage=function(e){var t=this;this.ngZone.run((function(){e&&t.renderPage(e)}))},e.prototype.ngOnInit=function(){var e=this;this.app.isPrefabType?this.renderPrefabPreviewPage():($(this.getTargetNode()).find(">div").first().remove(),this.subscription=this.route.params.subscribe((function(t){var n=t.pageName;e.loadPage(n)})))},e.prototype.ngOnDestroy=function(){this.vcRef.clear(),this.subscription&&this.subscription.unsubscribe()},e.prototype.ngOnAttach=function(){this.getTargetNode().appendChild(this.instance.$page[0]),this.instance.ngOnAttach()},e.prototype.ngOnDetach=function(){this.instance.ngOnDetach()},e}();Ie.decorators=[{type:t.Component,args:[{selector:"app-page-outlet",template:"<div></div>"}]}],Ie.ctorParameters=function(){return[{type:t.Injector},{type:r.ActivatedRoute},{type:t.ViewContainerRef},{type:t.ApplicationRef},{type:ve.MetadataService},{type:ye.SecurityService},{type:ge.AppManagerService},{type:w.App},{type:t.NgZone},{type:t.ElementRef},{type:w.AbstractSpinnerService},{type:ge.ComponentRefProvider},{type:r.Router}]};var De={securityConfig:ge.SecurityConfigResolve,metadata:ge.MetadataResolve,appMetaConfig:ge.AppExtensionJSResolve},Ne=[{path:"",pathMatch:"full",resolve:De,component:ge.EmptyPageComponent},{path:"prefab-preview",pathMatch:"full",resolve:De,component:ge.PrefabPreviewComponent},{path:":pageName",pathMatch:"full",resolve:De,component:Ie,canDeactivate:[ge.CanDeactivatePageGuard]}],xe=function(e){function t(t){var n=e.call(this)||this;return n.$http=t,n}return Ee(t,e),t.prototype.getAppScriptFn=function(){return this.$http.get("./app.js",{responseType:"text"}).toPromise().then((function(e){return new Function("App","Utils","Injector",e)}))},t}(ge.AppJSProvider);xe.\u0275prov=_e.\u0275\u0275defineInjectable({factory:function(){return new xe(_e.\u0275\u0275inject(Oe.HttpClient))},token:xe,providedIn:"root"}),xe.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],xe.ctorParameters=function(){return[{type:a.HttpClient}]};var ke=new Map,Me=function(){function e(e){this.$http=e}return e.prototype.get=function(e,t){var n=ke.get(e);return n?Promise.resolve(n):this.$http.get(e).then((function(n){return t&&ke.set(e,n),n}))},e.prototype.clearCache=function(){ke.clear()},e}();Me.decorators=[{type:t.Injectable}],Me.ctorParameters=function(){return[{type:w.AbstractHttpService}]};var Le=function(e){function t(t){var n=e.call(this)||this;return n.resourceManager=t,n}return Ee(t,e),t.prototype.getAppVariables=function(){return Te(this,void 0,void 0,(function(){return Re(this,(function(e){return[2,this.resourceManager.get("./app.variables.json")]}))}))},t}(ge.AppVariablesProvider);Le.\u0275prov=_e.\u0275\u0275defineInjectable({factory:function(){return new Le(_e.\u0275\u0275inject(Me))},token:Le,providedIn:"root"}),Le.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],Le.ctorParameters=function(){return[{type:Me}]};var Fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ee(t,e),t.prototype.loadFormatterConfigScript=function(e){try{w.appendScriptToHead(e)}catch(e){console.warn("Error while loading the formatters.js file")}},t}(ge.AppExtensionProvider);Fe.\u0275prov=_e.\u0275\u0275defineInjectable({factory:function(){return new Fe},token:Fe,providedIn:"root"}),Fe.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}];var je=new Map;window.resourceCache=je;var Be=new Map;Be.set(ge.ComponentType.PAGE,new Map),Be.set(ge.ComponentType.PARTIAL,new Map),Be.set(ge.ComponentType.PREFAB,new Map);var Ge=function(e){return decodeURIComponent(e.replace(/\+/g," "))},Ve=Ge,$e=function(e,t,n){return t===ge.ComponentType.PAGE||t===ge.ComponentType.PARTIAL?n&&n.prefab?ge.getPrefabPartialJsonUrl(n.prefab,e):"./pages/"+e+"/page.min.json":t===ge.ComponentType.PREFAB?ge.getPrefabMinJsonUrl(e):void 0},Ue=$e,We=new Map,qe=function(e,t,n,i,o,r){var a=We.get(t);("Partial"!==n||_.isUndefined(i.Prefab))&&a||(a=new Function(n,"App","Utils",e),We.set(t,a)),a(i,o,r)},ze=qe,He=function(){function e(){}return e.prototype.init=function(){},e}(),Ye=function(e){var n=function(){};return n.decorators=[{type:t.NgModule,args:[{declarations:[e],imports:[ge.RuntimeBaseModule],schemas:[t.CUSTOM_ELEMENTS_SCHEMA,t.NO_ERRORS_SCHEMA]}]}],n},Ke=Ye,Qe=function(e,n,i,o,r,a){var s={template:i,styles:[o],encapsulation:t.ViewEncapsulation.None},l=He,c="",p="";switch(n){case ge.ComponentType.PAGE:l=ge.BasePageComponent,c="app-page-"+e,p="Page";break;case ge.ComponentType.PARTIAL:l=ge.BasePartialComponent,c="app-partial-"+e,p="Partial";break;case ge.ComponentType.PREFAB:l=ge.BasePrefabComponent,c="app-prefab-"+e,p="Prefab"}var u=function(t){function i(i){var o=t.call(this)||this;switch(o.injector=i,n){case ge.ComponentType.PAGE:o.pageName=e;break;case ge.ComponentType.PARTIAL:o.partialName=e;break;case ge.ComponentType.PREFAB:o.prefabName=e}return t.prototype.init.call(o),o}return Ee(i,t),i.prototype.evalUserScript=function(e,t,n){qe(r,c,p,e,t,n)},i.prototype.getVariables=function(){return JSON.parse(a)},i.prototype.getExpressions=function(){return{}},i}(l);return u.decorators=[{type:t.Component,args:[Object.assign(Object.assign({},s),{selector:c,providers:[{provide:w.UserDefinedExecutionContext,useExisting:u}]})]}],u.ctorParameters=function(){return[{type:t.Injector}]},u},Xe=Qe,Je=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r.resouceMngr=t,r.app=n,r.appManager=i,r.compiler=o,r}return Ee(t,e),t.prototype.loadResourcesOfFragment=function(e,t,n){var i=this,o=$e(e,t,n),r=je.get(o);return r?Promise.resolve(r):this.resouceMngr.get(o,!0).then((function(n){var i=n.markup,r=n.script,a=n.styles,s=n.variables,l={markup:be.transpile(Ge(i)).markup,script:Ge(r),styles:be.scopeComponentStyles(e,t,Ge(a)),variables:w.getValidJSON(Ge(s))};return je.set(o,l),l}),(function(e){var t=e.details.status,n={404:i.app.appLocale.MESSAGE_PAGE_NOT_FOUND||"The page you are trying to reach is not available",403:i.app.appLocale.LABEL_ACCESS_DENIED||"Access Denied"};return Promise.reject(n[t])}))},t.prototype.getComponentFactoryRef=function(e,t,n){return Te(this,void 0,void 0,(function(){var i,o,r,a=this;return Re(this,(function(s){return(i=Be.get(t))&&(r=n&&n.prefab?n.prefab+e:e,o=i.get(r))?[2,o]:[2,this.loadResourcesOfFragment(e,t,n).then((function(i){var r=i.markup,s=i.script,l=i.styles,c=i.variables,p=Qe(e,t,r,l,s,JSON.stringify(c)),u=Ye(p);o=a.compiler.compileModuleAndAllComponentsSync(u).componentFactories.filter((function(e){return e.componentType===p}))[0];var d=n&&n.prefab?n.prefab+e:e;return Be.get(t).set(d,o),o}),(function(e){if(e){var t="Error while loading page";console.log(t,e),a.appManager.notifyApp(_.isString(e)?e:t+", check browser console for error details","error")}}))]}))}))},t.prototype.clearComponentFactoryRefCache=function(){this.resouceMngr.clearCache(),je.clear(),Be.forEach((function(e){e.clear()}))},t}(ge.ComponentRefProvider);Je.decorators=[{type:t.Injectable}],Je.ctorParameters=function(){return[{type:Me},{type:w.App},{type:ge.AppManagerService},{type:t.Compiler}]};var Ze=new Map,et=function(e){function t(t){var n=e.call(this)||this;return n.resourceMngr=t,n}return Ee(t,e),t.prototype.getConfig=function(e){var t=Ze.get(e);return t?Promise.resolve(t):this.resourceMngr.get(ge.getPrefabConfigUrl(e)).then((function(t){return Ze.set(e,t),t}))},t}(ge.PrefabConfigProvider);et.decorators=[{type:t.Injectable}],et.ctorParameters=function(){return[{type:Me}]};var tt=r.RouterModule.forRoot(Ne,{useHash:!0,scrollPositionRestoration:"top"}),nt=y.ToastNoAnimationModule.forRoot({maxOpened:1,autoDismiss:!0}),it=a.HttpClientXsrfModule.withOptions({cookieName:"wm_xsrf_token",headerName:w.getWmProjectProperties().xsrf_header_name}),ot=d.ModalModule.forRoot(),rt=m.BsDatepickerModule.forRoot(),at=m.DatepickerModule.forRoot(),st=c.TimepickerModule.forRoot(),lt=f.BsDropdownModule.forRoot(),ct=u.PaginationModule.forRoot(),pt=l.TypeaheadModule.forRoot(),ut=p.ProgressbarModule.forRoot(),dt=b.CarouselModule.forRoot(),ht=g.PopoverModule.forRoot(),mt=v.NgCircleProgressModule.forRoot({}),ft=h.TooltipModule.forRoot(),gt=[m.BsDatepickerModule,m.DatepickerModule,c.TimepickerModule,f.BsDropdownModule,u.PaginationModule,l.TypeaheadModule,p.ProgressbarModule,b.CarouselModule,g.PopoverModule,v.NgCircleProgressModule,h.TooltipModule,P.BasicModule,O.ProgressModule,S.RichTextEditorModule,E.SearchModule,T.TreeModule,A.CalendarModule,C.ChipsModule,I.ColorPickerModule,D.CurrencyModule,N.EpochModule,x.FileUploadModule,R.InputModule,k.RatingModule,M.SliderModule,F.CardModule,j.FormModule,B.ListModule,G.LiveTableModule,V.PaginationModule,U.TableModule,W.ChartModule,q.AccordionModule,z.LinearLayoutModule,H.LayoutGridModule,Y.PanelModule,K.TabsModule,Q.TileModule,X.WizardModule,J.AlertDialogModule,Z.IframeDialogModule,ee.LoginDialogModule,te.PartialDialogModule,ne.BreadcrumbModule,ie.MenuModule,oe.NavbarModule,re.PopoverModule,ae.CarouselModule,se.LoginModule,le.MarqueeModule,ce.PageModule,pe.FooterModule,ue.HeaderModule,de.LeftPanelModule,he.RightPanelModule,me.TopNavModule,fe.PrefabModule];ge.REQUIRED_MODULES_FOR_DYNAMIC_COMPONENTS.push.apply(ge.REQUIRED_MODULES_FOR_DYNAMIC_COMPONENTS,Ce([],Ae(gt))),ge.REQUIRED_MODULES_FOR_DYNAMIC_COMPONENTS.push.apply(ge.REQUIRED_MODULES_FOR_DYNAMIC_COMPONENTS,Ce([],Ae(L.MOBILE_COMPONENT_MODULES_FOR_ROOT))),ge.REQUIRED_MODULES_FOR_DYNAMIC_COMPONENTS.push(s.FormsModule,s.ReactiveFormsModule);var vt=function(e,t,n){this.app=e,this.inj=t,this.componentRefProvider=n,window.cordova&&this.app.subscribe("userLoggedOut",this.componentRefProvider.clearComponentFactoryRefCache.bind(this.componentRefProvider))};vt.decorators=[{type:t.NgModule,args:[{declarations:[Ie],imports:[i.BrowserModule,we.BrowserAnimationsModule,o.CommonModule,r.RouterModule,a.HttpClientModule,ot,rt,at,st,lt,ct,pt,ft,ut,dt,ht,mt,tt,nt,it,L.MobileRuntimeDynamicModule,ge.WM_MODULES_FOR_ROOT],providers:[Me,{provide:ge.AppJSProvider,useClass:xe},{provide:ge.AppVariablesProvider,useClass:Le},{provide:ge.AppExtensionProvider,useClass:Fe},{provide:ge.ComponentRefProvider,useClass:Je},{provide:w.PartialRefProvider,useClass:Je},{provide:ge.PrefabConfigProvider,useClass:et},{provide:r.RouteReuseStrategy,useClass:ge.WmRouteReuseStrategy}],bootstrap:[ge.AppComponent]}]}],vt.ctorParameters=function(){return[{type:w.App},{type:t.Injector},{type:ge.ComponentRefProvider}]};var yt="debugMode";"true"!==sessionStorage.getItem(yt)&&t.enableProdMode(),console.time("bootstrap"),document.addEventListener("DOMContentLoaded",(function(){new Promise((function(e){window.cordova?document.addEventListener("deviceready",e):e()})).then((function(){return n.platformBrowserDynamic().bootstrapModule(vt)})).then((function(e){var n=e.injector.get(t.ApplicationRef);window.addEventListener("unload",(function(){n.components.map((function(e){return e&&e.destroy()}))})),console.timeEnd("bootstrap")}),(function(e){return console.log(e)}))})),window.debugMode=function(e){_.isEmpty(e)&&(e=!0);var t=e?"true":"false";sessionStorage.getItem(yt)!==t&&(sessionStorage.setItem(yt,t),window.location.reload())};e.AppExtensionProviderService=Fe,e.AppJSProviderService=xe,e.AppModule=vt,e.AppResourceManagerService=Me,e.AppVariablesProviderService=Le,e.ComponentRefProviderService=Je,e.PageWrapperComponent=Ie,e.PrefabConfigProviderService=et,e.bsDatePickerModule=rt,e.bsDropdownModule=lt,e.carouselModule=dt,e.datepickerModule=at,e.httpClientXsrfModule=it,e.modalModule=ot,e.ngCircleProgressModule=mt,e.paginationModule=ct,e.popoverModule=ht,e.progressbarModule=ut,e.routerModule=tt,e.timepickerModule=st,e.toastrModule=nt,e.tooltipModule=ft,e.typeaheadModule=pt,e["\u02750"]=Ve,e["\u02751"]=Ue,e["\u02752"]=ze,e["\u02753"]=Ke,e["\u02754"]=Xe,e["\u0275a"]=Ne,Object.defineProperty(e,"__esModule",{value:!0})}));
873
+ var Y=function(e,t){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function K(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Q(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))}function X(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}Object.create;function J(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Z(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function ee(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var te=function(){function e(){this.fragments=0,this.fragmentsLoaded$=new l.Subject}return e.prototype.init=function(){var e=this;this.viewInit$.subscribe(o.noop,o.noop,(function(){e.isViewInitialized=!0,e.isReady()}))},e.prototype.registerFragment=function(){this.fragments++},e.prototype.resolveFragment=function(){this.fragments--,this.isReady()},e.prototype.isReady=function(){this.isViewInitialized&&!this.fragments&&(this.registerFragment=o.noop,this.resolveFragment=o.noop,this.fragmentsLoaded$.complete())},e}();te.decorators=[{type:t.Directive}],te.ctorParameters=function(){return[]};var ne={},ie=function(e){function t(){var t=e.apply(this,ee([],Z(arguments)))||this;return t.compileContent=!1,t.destroy$=new l.Subject,t.viewInit$=new l.Subject,t}return K(t,e),t.prototype.getContainerWidgetInjector=function(){return this.containerWidget.inj||this.containerWidget.injector},t.prototype.init=function(){var t=this;this.App=this.injector.get(o.App),this.containerWidget=this.injector.get(c.WidgetRef),this.i18nService=this.injector.get(o.AbstractI18nService),this.scriptLoaderService=this.injector.get(o.ScriptLoaderService),this.Viewport=this.injector.get(o.Viewport),this.getContainerWidgetInjector().view.component.registerFragment&&this.getContainerWidgetInjector().view.component.registerFragment(),this.registerExpressions(),this.initUserScript(),this.registerWidgets(),this.initVariables(),this.activePageName=this.App.activePageName,this.registerPageParams(),this.defineI18nProps(),this.viewInit$.subscribe(o.noop,o.noop,(function(){t.pageParams=t.containerWidget.partialParams})),this.spa?this.pageDirective=this.injector.get(s.SpaPageDirective,null):this.pageDirective=this.injector.get(s.PageDirective,null),this.pageDirective&&(this.registerDestroyListener(this.pageDirective.subscribe("attach",(function(e){return t.ngOnAttach(e.refreshData)}))),this.registerDestroyListener(this.pageDirective.subscribe("detach",(function(){return t.ngOnDetach()})))),e.prototype.init.call(this)},t.prototype.registerWidgets=function(){"Common"===this.partialName?this.Widgets=ne:this.Widgets=Object.create(ne),this.containerWidget.Widgets=this.Widgets},t.prototype.registerDestroyListener=function(e){this.destroy$.subscribe(o.noop,o.noop,(function(){return e()}))},t.prototype.initUserScript=function(){try{this.getContainerWidgetInjector().view.component.prefabName&&(this.getContainerWidgetInjector().view.component.Prefab?this.Prefab=this.getContainerWidgetInjector().view.component.Prefab:this.Prefab=this.getContainerWidgetInjector().view.component),this.evalUserScript(this,this.App,this.injector.get(o.UtilsService))}catch(e){console.error("Error in evaluating partial ("+this.partialName+") script\n",e)}},t.prototype.initVariables=function(){var e=this,t=this.injector.get(a.VariablesService).register(this.partialName,this.getVariables(),this);this.Variables=Object.create(this.App.Variables),this.Actions=Object.create(this.App.Actions),this.containerWidget.Variables=this.Variables,this.containerWidget.Actions=this.Actions,Object.entries(t.Variables).forEach((function(t){var n=Z(t,2),i=n[0],o=n[1];return e.Variables[i]=o})),Object.entries(t.Actions).forEach((function(t){var n=Z(t,2),i=n[0],o=n[1];return e.Actions[i]=o})),this.viewInit$.subscribe(o.noop,o.noop,(function(){o.$invokeWatchers(!0,!0),t.callback(t.Variables).catch(o.noop),t.callback(t.Actions)}))},t.prototype.registerExpressions=function(){var e=this.getExpressions();_.each(e,(function(e,t){o.registerFnByExpr(t,e[0],e[1])}))},t.prototype.registerPageParams=function(){this.pageParams=this.containerWidget.partialParams},t.prototype.defineI18nProps=function(){this.appLocale=this.i18nService.getAppLocale()},t.prototype.invokeOnReady=function(){var e;this.containerWidget.userComponentParams&&(e=this.containerWidget.userComponentParams),this.onReady(e),this.getContainerWidgetInjector().view.component.resolveFragment&&this.getContainerWidgetInjector().view.component.resolveFragment()},t.prototype.loadScripts=function(){var e=this;return new Promise((function(t){var n,i=e.partialDirective.$element.attr("scripts-to-load");i?(n=e.scriptLoaderService).load.apply(n,ee([],Z(i.split(",")))).then(t):t()}))},t.prototype.mute=function(){var e=function(e){e&&e.mute&&e.mute()};_.each(this.Widgets,e),_.each(this.Variables,e),_.each(this.Actions,e)},t.prototype.unmute=function(){var e=function(e){e&&e.unmute&&e.unmute()};_.each(this.Widgets,e),_.each(this.Variables,e),_.each(this.Actions,e)},t.prototype.ngAfterViewInit=function(){var e=this;this.loadScripts().then((function(){e.compileContent=!0,setTimeout((function(){e.viewInit$.complete(),e.fragmentsLoaded$.subscribe(o.noop,o.noop,(function(){return e.invokeOnReady()}))}),100)}))},t.prototype.ngOnDestroy=function(){this.destroy$.complete()},t.prototype.ngOnAttach=function(e){if(this.unmute(),e){var t=function(e){e&&e.startUpdate&&e.invoke&&e.invoke()};_.each(this.Variables,t),_.each(this.Actions,t)}_.each(this.Widgets,(function(e){return e&&e.ngOnAttach&&e.ngOnAttach()}))},t.prototype.ngOnDetach=function(){this.mute(),_.each(this.Widgets,(function(e){return e&&e.ngOnDetach&&e.ngOnDetach()}))},t.prototype.onReady=function(e){},t}(te);ie.decorators=[{type:t.Directive}],ie.propDecorators={partialDirective:[{type:t.ViewChild,args:[c.PartialDirective]}]};var oe="_cache_page",re="REUSE_ROUTE_STRATEGY.MAX_CACHE_SIZE",ae="REUSE_ROUTE_STRATEGY.MAX_CACHE_AGE",se=function(){function e(e,t){var n=this;this.maxCacheSize=e,this.maxCacheAge=t,this.paramsToIgnore=["wm_state",oe],this.getSize=function(e){return e?Object.keys(e).length:0},this.cache=new o.LRUCache(e,t,(function(e,t){n.currentRouteKey===e?n.cache.set(e,t):t.componentRef.destroy()}))}return e.prototype.getKey=function(e){var t=this,n=_.chain(e.queryParams).keys().filter((function(e){return!_.includes(t.paramsToIgnore,e)})).orderBy().map((function(t){return t+"="+e.queryParams[t]})).value().join("&"),i=e.params.pageName;return e.data.pageName&&""===e.routeConfig.path&&(i=e.data.pageName),i&&i+(n?"?"+n:"")},e.prototype.isSameQueryParams=function(e,t){try{var n=e.queryParams,i=t.queryParams,o=n?this.getSize(n):0,r=i?this.getSize(i):0;return 0===o&&0===r||o===r&&JSON.stringify(n)===JSON.stringify(i)}catch(e){return!1}},e.prototype.isCacheEnabled=function(e,t){var n=e.queryParams._cache_page;return _.isNil(n)?t:"true"===n||!0===n},e.prototype.shouldDetach=function(e){var t=this.getKey(e);return!!this.isCacheEnabled(e,!!e.data._cache_page)||(this.cache.delete(t),!1)},e.prototype.shouldAttach=function(e){var t=this.getKey(e);this.currentRouteKey=t;var n=this.cache.get(t);return!(!n||!this.isCacheEnabled(e,!!n._cache_page))||(this.cache.delete(t),!1)},e.prototype.store=function(e,t){if(t){var n=this.getKey(e);t._cache_page=!!e.data._cache_page,this.cache.set(n,t)}},e.prototype.retrieve=function(e){var t=this.getKey(e);return this.cache.get(t)},e.prototype.reset=function(e){var t,n,i=this;if(!e)return this.cache.clear();this.cache.delete(e);var o=e+="?",r=[];try{for(var a=J(this.cache.keys()),s=a.next();!s.done;s=a.next()){var l=s.value;l.startsWith(o)&&r.push(l)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}r.forEach((function(e){return i.cache.delete(e)}))},e}(),le=function(e){function t(t,n){return e.call(this,t,n)||this}return K(t,e),t.prototype.isSameRoute=function(e,t){if(e.routeConfig&&"prefab-preview"===e.routeConfig.path)return!1;var n=e.params,i=t.params,o=this.getSize(n),r=this.getSize(i);return 0===o&&0===r||o===r&&(n.pageName===i.pageName&&this.isSameQueryParams(e,t))},t.prototype.shouldReuseRoute=function(e,t){return this.isSameRoute(e,t)},t}(se);le.ctorParameters=function(){return[{type:Number,decorators:[{type:t.Inject,args:[re]}]},{type:Number,decorators:[{type:t.Inject,args:[ae]}]}]};var ce=function(e){function t(t,n){return e.call(this,t,n)||this}return K(t,e),t.prototype.isSameRoute=function(e,t){return!e.routeConfig&&!t.routeConfig||e.routeConfig===t.routeConfig&&(e.routeConfig!==t.routeConfig||(!(!e.data.layoutName||!t.data.layoutName)||this.isSameQueryParams(e,t)))},t.prototype.shouldReuseRoute=function(e,t){return this.isSameRoute(e,t)},t}(se);ce.ctorParameters=function(){return[{type:Number,decorators:[{type:t.Inject,args:[re]}]},{type:Number,decorators:[{type:t.Inject,args:[ae]}]}]};var pe=function(e){function t(){var t=e.apply(this,ee([],Z(arguments)))||this;return t.startupVariablesLoaded=!1,t.pageTransitionCompleted=!1,t.destroy$=new l.Subject,t.viewInit$=new l.Subject,t.formatsByLocale={timezone:""},t}return K(t,e),t.prototype.init=function(){o.muteWatchers(),this.App=this.injector.get(o.App),this.route=this.injector.get(n.ActivatedRoute),this.appManager=this.injector.get(j),this.navigationService=this.injector.get(o.AbstractNavigationService),this.scriptLoaderService=this.injector.get(o.ScriptLoaderService),this.i18nService=this.injector.get(o.AbstractI18nService),this.router=this.injector.get(n.Router),this.Viewport=this.injector.get(o.Viewport),this.registerExpressions(),this.initUserScript(),this.registerWidgets(),this.initVariables(),this.App.lastActivePageName=this.App.activePageName,this.App.activePageName=this.pageName,this.App.activePage=this,this.activePageName=this.pageName,this.registerPageParams(),this.defineI18nProps(),e.prototype.init.call(this)},t.prototype.registerWidgets=function(){this.Widgets=Object.create(ne),this.App.Widgets=Object.create(this.Widgets)},t.prototype.initUserScript=function(){try{this.evalUserScript(this,this.App,this.injector.get(o.UtilsService))}catch(e){console.error("Error in evaluating page ("+this.pageName+") script\n",e)}},t.prototype.registerPageParams=function(){var e=this,t=this.route.queryParams.subscribe((function(t){return e.pageParams=e.App.pageParams=_.extend({},t)}));this.registerDestroyListener((function(){return t.unsubscribe()}))},t.prototype.registerDestroyListener=function(e){this.destroy$.subscribe(o.noop,o.noop,(function(){return e()}))},t.prototype.defineI18nProps=function(){this.appLocale=this.i18nService.getAppLocale()},t.prototype.initVariables=function(){var e=this,t=this.injector.get(a.VariablesService).register(this.pageName,this.getVariables(),this);this.Variables=Object.create(this.App.Variables),this.Actions=Object.create(this.App.Actions),Object.entries(t.Variables).forEach((function(t){var n=Z(t,2),i=n[0],o=n[1];return e.Variables[i]=o})),Object.entries(t.Actions).forEach((function(t){var n=Z(t,2),i=n[0],o=n[1];return e.Actions[i]=o}));var n=this.viewInit$.subscribe(o.noop,o.noop,(function(){e.appManager.isAppVariablesFired()||(t.callback(e.App.Variables).catch(o.noop).then((function(){e.appManager.notify("app-variables-data-loaded",{pageName:e.pageName})})),t.callback(e.App.Actions),e.appManager.appVariablesReady(),e.appManager.isAppVariablesFired(!0)),t.callback(t.Variables).catch(o.noop).then((function(){e.appManager.notify("page-variables-data-loaded",{pageName:e.pageName}),e.startupVariablesLoaded=!0,setTimeout((function(){e.showPageContent=!0}),100)})),t.callback(t.Actions),n.unsubscribe()}))},t.prototype.setTimezone=function(e){this.i18nService.setTimezone(e,this)},t.prototype.registerExpressions=function(){var e=this.getExpressions();_.each(e,(function(e,t){o.registerFnByExpr(t,e[0],e[1])}))},t.prototype.runPageTransition=function(e){var n=this;e=e||this.navigationService.getPageTransition();var i=t.lastPageSnapShot;return new Promise((function(t){if(e&&!e.startsWith("none")&&i){var o=i.parent(),r=function(n){!t||n&&n.pseudoElement||(o.off("animationend",r),o.removeClass(e),o.children().first().remove(),t(),t=null)};e="page-transition page-transition-"+e,i.addClass("page-exit"),n.$page.addClass("page-entry"),o.addClass(e),o.on("animationend",r),setTimeout(r,1e3)}else t()})).then((function(){n.$page&&n.$page.removeClass("page-entry"),i&&(i.remove(),t.lastPageSnapShot=null),n.pageTransitionCompleted=!0}))},t.prototype.invokeOnReady=function(){this.onReady(),this.appManager.notify("pageReady",{name:this.pageName,instance:this}),(this.App.onPageReady||o.noop)(this.pageName,this)},t.prototype.loadScripts=function(){var e=this;return new Promise((function(t){var n,i=e.pageDirective&&e.pageDirective.$element.attr("scripts-to-load");i?(n=e.scriptLoaderService).load.apply(n,ee([],Z(i.split(",")))).then(t):t()}))},t.prototype.restoreLastPageSnapshot=function(){o.isMobileApp()&&t.lastPageSnapShot&&this.$page&&this.$page.parent().prepend(t.lastPageSnapShot)},t.prototype.savePageSnapShot=function(){t.lastPageSnapShot&&t.lastPageSnapShot.remove(),o.isMobileApp()&&this.$page&&(t.lastPageSnapShot=this.$page.clone(),this.$page.parents("app-root").prepend(t.lastPageSnapShot))},t.prototype.saveScrollPosition=function(){var e=function(t,n,i,o){void 0===i&&(i=!0),void 0===o&&(o=t),i&&t.children().each((function(t,i){return e($(i),n)}));var r=o.scrollLeft(),a=o.scrollTop();(r>0||a>0)&&t.attr(n,r+","+a)};e(this.$page,"data-scroll-position"),this.$page.attr("data-window-scroll-position",window.scrollX+","+window.scrollY)},t.prototype.restoreScrollPosition=function(){var e=function(t,n,i,o){void 0===i&&(i=!0),void 0===o&&(o=t);var r=(t.attr(n)||"").split(",");r.length>1&&(o.scrollLeft(r[0]),o.scrollTop(r[1])),t.removeAttr(n),i&&t.children().each((function(t,i){return e($(i),n)}))};e(this.$page,"data-scroll-position"),e(this.$page,"data-window-scroll-position",!1,$(window))},t.prototype.canDeactivate=function(){var e;return!1!==(e=this.onBeforePageLeave())&&(e=(this.App.onBeforePageLeave||o.noop)(this.App.activePageName,this.App.activePage)),void 0===e||e},t.prototype.ngAfterViewInit=function(){var e=this;this.route.snapshot.data._cache_page=this.canReuse(),this.pageDirective&&(this.$page=this.pageDirective.$element.parent(),o.isIos()&&this.$page.addClass("ios-page"),o.isAndroid()&&this.$page.addClass("android-page")),this.restoreLastPageSnapshot(),this.loadScripts().then((function(){e.runPageTransition().then((function(){e.compilePageContent=!0,setTimeout((function(){e.onPageContentReady=function(){e.fragmentsLoaded$.subscribe(o.noop,o.noop,(function(){e.invokeOnReady()})),o.unMuteWatchers(),e.viewInit$.complete(),e.onPageContentReady=o.noop}}),0)}))}))},t.prototype.ngOnDestroy=function(){this.savePageSnapShot(),this.destroy$.complete()},t.prototype.onReady=function(){},t.prototype.onBeforePageReady=function(){},t.prototype.onBeforePageLeave=function(){},t.prototype.onPageContentReady=function(){},t.prototype.canReuse=function(){return!(!this.pageDirective||!this.pageDirective.cache)},t.prototype.mute=function(){var e=function(e){e&&e.mute&&e.mute()};_.each(this.Widgets,e),_.each(this.Variables,e),_.each(this.Actions,e)},t.prototype.unmute=function(e){void 0===e&&(e=this);var t=function(e){e&&e.unmute&&e.unmute()};_.each(this.Widgets,t),_.each(this.Variables,t),_.each(this.Actions,t)},t.prototype.ngOnAttach=function(){var e=this;if(this.route.snapshot.data._cache_page=this.canReuse(),this.registerPageParams(),this.App.lastActivePageName=this.App.activePageName,this.App.activePageName=this.pageName,this.App.activePage=this,this.activePageName=this.pageName,this.restoreLastPageSnapshot(),this.unmute(),this.App.Widgets=Object.create(this.Widgets),this.pageDirective&&this.pageDirective.refreshdataonattach){var t=function(e){e&&e.startUpdate&&e.invoke&&e.invoke()};_.each(this.Variables,t),_.each(this.Actions,t)}this.runPageTransition().then((function(){setTimeout((function(){return e.restoreScrollPosition()}),100),_.each(e.Widgets,(function(e){return e&&e.ngOnAttach&&e.ngOnAttach()})),e.appManager.notify("pageAttach",{name:e.pageName,instance:e})}))},t.prototype.ngOnDetach=function(){this.saveScrollPosition(),this.savePageSnapShot(),this.mute(),_.each(this.Widgets,(function(e){return e&&e.ngOnDetach&&e.ngOnDetach()})),this.appManager.notify("pageDetach",{name:this.pageName,instance:this})},t.prototype.ngAfterContentInit=function(){this.onBeforePageReady()},t.clear=function(){t.lastPageSnapShot&&(t.lastPageSnapShot.remove(),t.lastPageSnapShot=null)},t}(te);pe.lastPageSnapShot=null,pe.decorators=[{type:t.Directive}],pe.propDecorators={pageDirective:[{type:t.ViewChild,args:[s.PageDirective]}],canDeactivate:[{type:t.HostListener,args:["window:beforeunload"]}]};var ue=function(e){function t(){var t=e.apply(this,ee([],Z(arguments)))||this;return t.compileContent=!1,t.destroy$=new l.Subject,t.viewInit$=new l.Subject,t}return K(t,e),t.prototype.getContainerWidgetInjector=function(){return this.containerWidget.inj||this.containerWidget.injector},t.prototype.init=function(){var t=this;this.App=this.injector.get(o.App),this.containerWidget=this.injector.get(c.WidgetRef),this.prefabMngr=this.injector.get(H),this.i18nService=this.injector.get(o.AbstractI18nService),this.scriptLoaderService=this.injector.get(o.ScriptLoaderService),this.Viewport=this.injector.get(o.Viewport),this.getContainerWidgetInjector().view.component.registerFragment&&this.getContainerWidgetInjector().view.component.registerFragment(),this.spa?this.pageDirective=this.injector.get(s.SpaPageDirective,null):this.pageDirective=this.injector.get(s.PageDirective,null),this.pageDirective&&(this.registerDestroyListener(this.pageDirective.subscribe("attach",(function(e){return t.ngOnAttach(e.refreshData)}))),this.registerDestroyListener(this.pageDirective.subscribe("detach",(function(){return t.ngOnDetach()})))),this.registerExpressions(),this.initUserScript(),this.registerWidgets(),this.initVariables(),this.registerProps(),this.defineI18nProps(),e.prototype.init.call(this)},t.prototype.registerWidgets=function(){this.Widgets={},this.Widgets={},this.containerWidget.Widgets=this.Widgets},t.prototype.initUserScript=function(){try{this.evalUserScript(this,this.App,this.injector.get(o.UtilsService))}catch(e){console.error("Error in evaluating prefab ("+this.prefabName+") script\n",e)}},t.prototype.registerChangeListeners=function(){this.containerWidget.registerPropertyChangeListener(this.onPropertyChange),this.containerWidget.registerStyleChangeListener(this.onPropertyChange)},t.prototype.registerDestroyListener=function(e){this.destroy$.subscribe(o.noop,o.noop,(function(){return e()}))},t.prototype.defineI18nProps=function(){this.appLocale=this.i18nService.getPrefabLocaleBundle(this.prefabName)},t.prototype.registerProps=function(){var e=this;this.prefabMngr.getConfig(this.prefabName).then((function(t){t&&(e.displayName=t.displayName,Object.entries(t.properties||{}).forEach((function(t){var n,i=Z(t,2),r=i[0],a=i[1],s=_.trim(a.value);_.startsWith(s,"bind:")&&(n=s.replace("bind:","")),Object.defineProperty(e,r,{get:function(){return e.containerWidget[r]},set:function(t){return e.containerWidget.widget[r]=t}}),n&&e.registerDestroyListener(o.$watch(n,e,{},(function(t){return e.containerWidget.widget[r]=t})))})),Object.entries(t.events||{}).forEach((function(t){var n=Z(t,2),i=n[0];n[1];e[i]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=i.substr(2).toLowerCase();e.containerWidget.invokeEventCallback(o,{$event:t[0],$data:t[1]})}})),Object.entries(t.methods||{}).forEach((function(t){var n=Z(t,2),i=n[0];n[1];e.containerWidget[i]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{if(e[i])return e[i].apply(e,t)}catch(t){console.warn("error in executing prefab-"+e.prefabName+" method-"+i)}}}))),e.containerWidget.setProps(t),o.isIE()&&(e.containerWidget.widget=e.containerWidget.createProxy())}))},t.prototype.initVariables=function(){var e=this,t=this.injector.get(a.VariablesService).register(this.prefabName,this.getVariables(),this);this.Variables={},this.Actions={},this.containerWidget.Variables=this.Variables,this.containerWidget.Actions=this.Actions,Object.entries(t.Variables).forEach((function(t){var n=Z(t,2),i=n[0],o=n[1];return e.Variables[i]=o})),Object.entries(t.Actions).forEach((function(t){var n=Z(t,2),i=n[0],o=n[1];return e.Actions[i]=o})),this.viewInit$.subscribe(o.noop,o.noop,(function(){t.callback(t.Variables).catch(o.noop),t.callback(t.Actions)}))},t.prototype.registerExpressions=function(){var e=this.getExpressions();_.each(e,(function(e,t){o.registerFnByExpr(t,e[0],e[1])}))},t.prototype.invokeOnReady=function(){o.$invokeWatchers(!0,!0),this.onReady(),this.getContainerWidgetInjector().view.component.resolveFragment&&this.getContainerWidgetInjector().view.component.resolveFragment(),this.containerWidget.invokeEventCallback("load")},t.prototype.loadScripts=function(){var e=this;return new Promise((function(t){var n,i=e.prefabContainerDirective.$element.attr("scripts-to-load");i?(n=e.scriptLoaderService).load.apply(n,ee([],Z(i.split(",")))).then(t):t()}))},t.prototype.mute=function(){var e=function(e){e&&e.mute&&e.mute()};_.each(this.Widgets,e),_.each(this.Variables,e),_.each(this.Actions,e)},t.prototype.unmute=function(){var e=function(e){e&&e.unmute&&e.unmute()};_.each(this.Widgets,e),_.each(this.Variables,e),_.each(this.Actions,e)},t.prototype.ngOnAttach=function(e){if(this.unmute(),e){var t=function(e){e&&e.startUpdate&&e.invoke&&e.invoke()};_.each(this.Variables,t),_.each(this.Actions,t)}_.each(this.Widgets,(function(e){return e&&e.ngOnAttach&&e.ngOnAttach()}))},t.prototype.ngOnDetach=function(){this.mute(),_.each(this.Widgets,(function(e){return e&&e.ngOnDetach&&e.ngOnDetach()}))},t.prototype.ngAfterViewInit=function(){var e=this;this.loadScripts().then((function(){e.compileContent=!0,e.registerChangeListeners(),setTimeout((function(){e.viewInit$.complete(),e.fragmentsLoaded$.subscribe(o.noop,o.noop,(function(){return e.invokeOnReady()}))}),100)}))},t.prototype.ngOnDestroy=function(){this.destroy$.complete()},t.prototype.onPropertyChange=function(){},t.prototype.onReady=function(){},t}(te);ue.decorators=[{type:t.Directive}],ue.propDecorators={prefabContainerDirective:[{type:t.ViewChild,args:[p.PrefabContainerDirective]}]};var de=function(){function e(){}return e.prototype.registerExpressions=function(){var e=this.getExpressions();_.each(e,(function(e,t){o.registerFnByExpr(t,e[0],e[1])}))},e.prototype.overrideRouterOutlet=function(){var e=this,t=this.routerOutlet.attach,n=this.routerOutlet.detach;this.routerOutlet.attach=function(n){t.call(e.routerOutlet,n),n.instance.ngOnAttach()},this.routerOutlet.detach=function(){return n.call(e.routerOutlet)}},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.overrideRouterOutlet()}),10)},e.prototype.init=function(){this.App=this.injector.get(o.App),this.App.activeLayoutName=this.layoutName,this.App.layoutPages=this.layoutPages,this.registerExpressions()},e.prototype.ngOnDestroy=function(){},e.prototype.canReuse=function(){},e.prototype.ngOnAttach=function(){},e.prototype.ngOnDetach=function(){},e.prototype.onActivate=function(e){_.extend(this,e)},e}();de.decorators=[{type:t.Directive}],de.propDecorators={routerOutlet:[{type:t.ViewChild,args:[n.RouterOutlet]}],pageDirective:[{type:t.ViewChild,args:[s.PageDirective]}]};var he,me=function(e){function t(){var t=e.apply(this,ee([],Z(arguments)))||this;return t.startupVariablesLoaded=!1,t.pageTransitionCompleted=!1,t.destroy$=new l.Subject,t.viewInit$=new l.Subject,t.formatsByLocale={timezone:""},t}return K(t,e),t.prototype.init=function(){o.muteWatchers(),this.App=this.injector.get(o.App),this.route=this.injector.get(n.ActivatedRoute),this.appManager=this.injector.get(j),this.navigationService=this.injector.get(o.AbstractNavigationService),this.scriptLoaderService=this.injector.get(o.ScriptLoaderService),this.i18nService=this.injector.get(o.AbstractI18nService),this.router=this.injector.get(n.Router),this.Viewport=this.injector.get(o.Viewport),this.layoutDirective=this.injector.get(s.LayoutDirective),this.registerExpressions(),this.initUserScript(),this.registerWidgets(),this.initVariables(),this.App.lastActivePageName=this.App.activePageName,this.App.activePageName=this.pageName,this.App.activePage=this,this.activePageName=this.pageName,this.registerPageParams(),this.defineI18nProps(),e.prototype.init.call(this)},t.prototype.registerWidgets=function(){this.Widgets=Object.create(ne),this.App.Widgets=Object.create(this.Widgets)},t.prototype.initUserScript=function(){try{this.evalUserScript(this,this.App,this.injector.get(o.UtilsService))}catch(e){console.error("Error in evaluating page ("+this.pageName+") script\n",e)}},t.prototype.registerPageParams=function(){var e=this,t=this.route.queryParams.subscribe((function(t){return e.pageParams=e.App.pageParams=_.extend({},t)}));this.registerDestroyListener((function(){return t.unsubscribe()}))},t.prototype.registerDestroyListener=function(e){this.destroy$.subscribe(o.noop,o.noop,(function(){return e()}))},t.prototype.defineI18nProps=function(){this.appLocale=this.i18nService.getAppLocale()},t.prototype.initVariables=function(){var e=this,t=this.injector.get(a.VariablesService).register(this.pageName,this.getVariables(),this);this.Variables=Object.create(this.App.Variables),this.Actions=Object.create(this.App.Actions),Object.entries(t.Variables).forEach((function(t){var n=Z(t,2),i=n[0],o=n[1];return e.Variables[i]=o})),Object.entries(t.Actions).forEach((function(t){var n=Z(t,2),i=n[0],o=n[1];return e.Actions[i]=o}));var n=this.viewInit$.subscribe(o.noop,o.noop,(function(){e.appManager.isAppVariablesFired()||(t.callback(e.App.Variables).catch(o.noop).then((function(){e.appManager.notify("app-variables-data-loaded",{pageName:e.pageName})})),t.callback(e.App.Actions),e.appManager.appVariablesReady(),e.appManager.isAppVariablesFired(!0)),t.callback(t.Variables).catch(o.noop).then((function(){e.appManager.notify("page-variables-data-loaded",{pageName:e.pageName}),e.startupVariablesLoaded=!0,setTimeout((function(){e.showPageContent=!0}),100)})),t.callback(t.Actions),n.unsubscribe()}))},t.prototype.setTimezone=function(e){this.i18nService.setTimezone(e,this)},t.prototype.registerExpressions=function(){var e=this.getExpressions();_.each(e,(function(e,t){o.registerFnByExpr(t,e[0],e[1])}))},t.prototype.runPageTransition=function(e){var n=this;e=e||this.navigationService.getPageTransition();var i=t.lastPageSnapShot;return new Promise((function(t){if(e&&!e.startsWith("none")&&i){var o=i.parent(),r=function(n){!t||n&&n.pseudoElement||(o.off("animationend",r),o.removeClass(e),o.children().first().remove(),t(),t=null)};e="page-transition page-transition-"+e,i.addClass("page-exit"),n.$page.addClass("page-entry"),o.addClass(e),o.on("animationend",r),setTimeout(r,1e3)}else t()})).then((function(){n.$page&&n.$page.removeClass("page-entry"),i&&(i.remove(),t.lastPageSnapShot=null),n.pageTransitionCompleted=!0}))},t.prototype.invokeOnReady=function(){this.onReady(),this.appManager.notify("highlightActiveLink",{pageName:this.pageName}),this.appManager.notify("pageReady",{name:this.pageName,instance:this}),(this.App.onPageReady||o.noop)(this.pageName,this)},t.prototype.loadScripts=function(){var e=this;return new Promise((function(t){var n,i=e.spaPageDirective&&e.spaPageDirective.$element.attr("scripts-to-load");i?(n=e.scriptLoaderService).load.apply(n,ee([],Z(i.split(",")))).then(t):t()}))},t.prototype.restoreLastPageSnapshot=function(){o.isMobileApp()&&t.lastPageSnapShot&&this.$page&&this.$page.parent().prepend(t.lastPageSnapShot)},t.prototype.savePageSnapShot=function(){t.lastPageSnapShot&&t.lastPageSnapShot.remove(),o.isMobileApp()&&this.$page&&(t.lastPageSnapShot=this.$page.clone(),this.$page.parents("app-root").prepend(t.lastPageSnapShot))},t.prototype.saveScrollPosition=function(){var e=function(t,n,i,o){void 0===i&&(i=!0),void 0===o&&(o=t),i&&t.children().each((function(t,i){return e($(i),n)}));var r=o.scrollLeft(),a=o.scrollTop();(r>0||a>0)&&t.attr(n,r+","+a)};e(this.$page,"data-scroll-position"),this.$page.attr("data-window-scroll-position",window.scrollX+","+window.scrollY)},t.prototype.restoreScrollPosition=function(){var e=function(t,n,i,o){void 0===i&&(i=!0),void 0===o&&(o=t);var r=(t.attr(n)||"").split(",");r.length>1&&(o.scrollLeft(r[0]),o.scrollTop(r[1])),t.removeAttr(n),i&&t.children().each((function(t,i){return e($(i),n)}))};e(this.$page,"data-scroll-position"),e(this.$page,"data-window-scroll-position",!1,$(window))},t.prototype.canDeactivate=function(){var e;return!1!==(e=this.onBeforePageLeave())&&(e=(this.App.onBeforePageLeave||o.noop)(this.App.activePageName,this.App.activePage)),void 0===e||e},t.prototype.ngAfterViewInit=function(){var e=this;this.route.snapshot.data._cache_page=this.canReuse(),this.layoutDirective&&(this.$page=this.layoutDirective.$element.parent(),o.isIos()&&this.$page.addClass("ios-page"),o.isAndroid()&&this.$page.addClass("android-page")),this.restoreLastPageSnapshot(),this.loadScripts().then((function(){e.runPageTransition().then((function(){e.compilePageContent=!0,setTimeout((function(){e.onPageContentReady=function(){e.fragmentsLoaded$.subscribe(o.noop,o.noop,(function(){e.invokeOnReady()})),o.unMuteWatchers(),e.viewInit$.complete(),e.onPageContentReady=o.noop}}),0)}))}))},t.prototype.ngOnDestroy=function(){this.savePageSnapShot(),this.destroy$.complete()},t.prototype.onReady=function(){},t.prototype.onBeforePageReady=function(){},t.prototype.onBeforePageLeave=function(){},t.prototype.onPageContentReady=function(){},t.prototype.canReuse=function(){return!(!this.spaPageDirective||!this.spaPageDirective.cache)},t.prototype.mute=function(){var e=function(e){e&&e.mute&&e.mute()};_.each(this.Widgets,e),_.each(this.Variables,e),_.each(this.Actions,e)},t.prototype.unmute=function(e){void 0===e&&(e=this);var t=function(e){e&&e.unmute&&e.unmute()};_.each(this.Widgets,t),_.each(this.Variables,t),_.each(this.Actions,t)},t.prototype.ngOnAttach=function(){var e=this;if(this.route.snapshot.data._cache_page=this.canReuse(),this.registerPageParams(),this.App.lastActivePageName=this.App.activePageName,this.App.activePageName=this.pageName,this.App.activePage=this,this.activePageName=this.pageName,this.restoreLastPageSnapshot(),this.unmute(),this.App.Widgets=Object.create(this.Widgets),this.spaPageDirective&&this.spaPageDirective.refreshdataonattach){var t=function(e){e&&e.startUpdate&&e.invoke&&e.invoke()};_.each(this.Variables,t),_.each(this.Actions,t)}this.runPageTransition().then((function(){setTimeout((function(){return e.restoreScrollPosition()}),100),_.each(e.Widgets,(function(e){return e&&e.ngOnAttach&&e.ngOnAttach()})),e.appManager.notify("pageAttach",{name:e.pageName,instance:e})})),this.appManager.notify("highlightActiveLink",{pageName:this.pageName})},t.prototype.ngOnDetach=function(){this.saveScrollPosition(),this.savePageSnapShot(),this.mute(),_.each(this.Widgets,(function(e){return e&&e.ngOnDetach&&e.ngOnDetach()})),this.appManager.notify("pageDetach",{name:this.pageName,instance:this})},t.prototype.ngAfterContentInit=function(){this.onBeforePageReady()},t.clear=function(){t.lastPageSnapShot&&(t.lastPageSnapShot.remove(),t.lastPageSnapShot=null)},t}(te);me.lastPageSnapShot=null,me.decorators=[{type:t.Directive}],me.propDecorators={spaPageDirective:[{type:t.ViewChild,args:[s.SpaPageDirective]}],canDeactivate:[{type:t.HostListener,args:["window:beforeunload"]}]},function(e){e.EVERYONE="Everyone",e.ANONYMOUS="Anonymous",e.AUTHENTICATED="Authenticated"}(he||(he={}));var fe=function(){function e(e,t,n,i){this.templateRef=e,this.viewContainerRef=t,this.securityService=n,this.inj=i,this.processed=!1;var o=this.securityService.get();this.securityEnabled=_.get(o,"securityEnabled"),this.isUserAuthenticated=_.get(o,"authenticated"),this.userRoles=_.get(o,"userInfo.userRoles")}return e.prototype.getWidgetRolesArrayFromStr=function(e){var t=/&#44;/g;return""===(e=e||"")?[]:_.split(e,",").map((function(e){return _.trim(e).replace(t,",")}))},e.prototype.matchRoles=function(e,t){return e.some((function(e){return _.includes(t,e)}))},e.prototype.hasAccessToWidget=function(e,t){return!!_.includes(e,he.EVERYONE)||(!(!_.includes(e,he.ANONYMOUS)||this.isUserAuthenticated)||(!(!_.includes(e,he.AUTHENTICATED)||!this.isUserAuthenticated)||this.isUserAuthenticated&&this.matchRoles(e,t)))},Object.defineProperty(e.prototype,"accessroles",{set:function(e){if(!this.processed){this.processed=!0;var t=this.getWidgetRolesArrayFromStr(e);!this.securityEnabled||this.hasAccessToWidget(t,this.userRoles)?this.viewContainerRef.createEmbeddedView(this.templateRef,this.inj.view.context):this.viewContainerRef.clear()}},enumerable:!1,configurable:!0}),e}();fe.decorators=[{type:t.Directive,args:[{selector:"[accessroles]"}]}],fe.ctorParameters=function(){return[{type:t.TemplateRef},{type:t.ViewContainerRef},{type:r.SecurityService},{type:t.Injector}]},fe.propDecorators={accessroles:[{type:t.Input}]};var ge=function(){};ge.decorators=[{type:t.Component,args:[{selector:"app-spinner",template:'\n <div class="app-spinner" [ngClass]="classname" *ngIf="show">\n <div class="spinner-message">\n <i class="spinner-image animated infinite fa fa-circle-o-notch fa-spin"></i>\n <div class="spinner-messages">\n <p *ngFor="let value of spinnermessages" [textContent]="value"></p>\n </div>\n </div>\n </div>\n '}]}],ge.ctorParameters=function(){return[]},ge.propDecorators={show:[{type:t.Input}],spinnermessages:[{type:t.Input}],classname:[{type:t.Input}],arialabel:[{type:t.Input}]};var ve=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.toastrService=t,i.toastPackage=n,i.watchers=[],i.params={},i.pagename=i.message||"",i.generateParams(),i}return K(t,e),t.prototype.generateParams=function(){var e=this;_.forEach(this.options.partialParams,(function(t){_.isString(t.value)&&0===t.value.indexOf("bind:")?e.watchers.push(o.$watch(t.value.substr(5),e.options.context,{},(function(n){e.params[t.name]=n,o.$appDigest()}))):e.params[t.name]=t.value}))},t.prototype.generateDynamicComponent=function(){return Q(this,void 0,void 0,(function(){var e;return X(this,(function(t){return e=$(".parent-custom-toast"),this.customToastRef.clear(),e[0].appendChild(this.customToastRef.createEmbeddedView(this.customToastTmpl).rootNodes[0]),[2]}))}))},t.prototype.ngAfterViewInit=function(){this.generateDynamicComponent()},t.prototype.ngOnDestroy=function(){_.forEach(this.watchers,(function(e){return e()})),e.prototype.ngOnDestroy.call(this)},t}(h.Toast);ve.decorators=[{type:t.Component,args:[{selector:"[custom-toaster-component]",template:'\n <div class="parent-custom-toast"></div>\n <ng-container #customToast></ng-container>\n <ng-template #customToastTmpl>\n <div wmContainer partialContainer content.bind="pagename">\n <div *ngFor="let param of params | keyvalue" wmParam hidden\n [name]="param.key" [value]="param.value"></div>\n </div>\n </ng-template>',preserveWhitespaces:!1}]}],ve.ctorParameters=function(){return[{type:h.ToastrService},{type:h.ToastPackage}]},ve.propDecorators={customToastRef:[{type:t.ViewChild,args:["customToast",{static:!0,read:t.ViewContainerRef}]}],customToastTmpl:[{type:t.ViewChild,args:["customToastTmpl"]}]};var ye=function(){function e(e,t,n,i,o){this.route=e,this.securityService=t,this.router=n,this.app=i,this.appManger=o}return e.prototype.ngOnInit=function(){var e=this;this.app.isPrefabType?this.router.navigate(["prefab-preview"]):this.app.isApplicationType?this.securityService.getPageByLoggedInUser().then((function(t){e.router.navigate([t])})):(this.router.navigate([o.getWmProjectProperties().homePage]),this.appManger.postAppTypeInfo())},e}();ye.decorators=[{type:t.Component,args:[{selector:"app-empty-page",template:"<div></div>"}]}],ye.ctorParameters=function(){return[{type:n.ActivatedRoute},{type:r.SecurityService},{type:n.Router},{type:o.App},{type:j}]};var be=function(t,n,i,o,r,a,s){var l=this;this.componentInstance=t,this.vcRef=n,this.elRef=i,this.prefabMngr=o,this.resolver=r,this.injector=a,this.componentRefProvider=s;var c=this.componentInstance.prefabName;this.prefabMngr.loadDependencies(c).then((function(){return Q(l,void 0,void 0,(function(){var t,n;return X(this,(function(i){switch(i.label){case 0:return[4,this.componentRefProvider.getComponentFactoryRef(c,e.ComponentType.PREFAB)];case 1:return(t=i.sent())&&(n=this.vcRef.createComponent(t,0,a),this.elRef.nativeElement.appendChild(n.location.nativeElement)),[2]}}))}))}))};be.decorators=[{type:t.Directive,args:[{selector:"[wmPrefab][prefabname]"}]}],be.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Self},{type:t.Inject,args:[c.WidgetRef]}]},{type:t.ViewContainerRef},{type:t.ElementRef},{type:H},{type:t.ComponentFactoryResolver},{type:t.Injector},{type:x}]};var we=function(){function e(e,n,r,a){var s,l=this;this.compiler=e,this.injector=n,this.domSanitizer=r,this.i18service=a,this._locale=o.getSessionStorageItem("selectedLocale")||"en",this.formatsByLocale=null===(s=this.i18service)||void 0===s?void 0:s.getwidgetLocale(),this.preparePipeMeta=function(e,t,n,i){return void 0===i&&(i=[]),{type:{reference:e,diDeps:i},name:t,pure:n}},this._pipeData=[this.preparePipeMeta(i.AsyncPipe,"async",!1,[t.ChangeDetectorRef]),this.preparePipeMeta(i.SlicePipe,"slice",!1),this.preparePipeMeta(i.PercentPipe,"percent",!0,[this._locale]),this.preparePipeMeta(i.I18nPluralPipe,"i18nPlural",!0,[i.NgLocalization]),this.preparePipeMeta(i.I18nSelectPipe,"i18nSelect",!0),this.preparePipeMeta(i.KeyValuePipe,"keyvalue",!1,[t.KeyValueDiffers]),this.preparePipeMeta(c.FileIconClassPipe,"fileIconClass",!0),this.preparePipeMeta(c.FileExtensionFromMimePipe,"fileExtensionFromMime",!0),this.preparePipeMeta(c.StateClassPipe,"stateClass",!0),this.preparePipeMeta(c.FileSizePipe,"filesize",!0),this.preparePipeMeta(c.FilterPipe,"filter",!0),this.preparePipeMeta(i.UpperCasePipe,"uppercase",!0),this.preparePipeMeta(i.LowerCasePipe,"lowercase",!0),this.preparePipeMeta(i.JsonPipe,"json",!1),this.preparePipeMeta(i.DecimalPipe,"number",!0,[this._locale]),this.preparePipeMeta(i.TitleCasePipe,"titlecase",!0),this.preparePipeMeta(i.CurrencyPipe,"currency",!0,[this._locale]),this.preparePipeMeta(i.DatePipe,"date",!0,[this._locale]),this.preparePipeMeta(c.ToDatePipe,"toDate",!0,[new i.DatePipe(this._locale)]),this.preparePipeMeta(c.ToNumberPipe,"toNumber",!0,[new i.DecimalPipe(this._locale),this.i18service]),this.preparePipeMeta(c.ToCurrencyPipe,"toCurrency",!0,[new i.DecimalPipe(this._locale),this.i18service]),this.preparePipeMeta(c.PrefixPipe,"prefix",!0),this.preparePipeMeta(c.SuffixPipe,"suffix",!0),this.preparePipeMeta(c.TimeFromNowPipe,"timeFromNow",!0),this.preparePipeMeta(c.NumberToStringPipe,"numberToString",!0,[new i.DecimalPipe(this._locale)]),this.preparePipeMeta(c.StringToNumberPipe,"stringToNumber",!0),this.preparePipeMeta(c.CustomPipe,"custom",!0,[this.injector.get(o.CustomPipeManager)]),this.preparePipeMeta(c.TrustAsPipe,"trustAs",!0,[this.domSanitizer]),this.preparePipeMeta(c.SanitizePipe,"sanitize",!0,[this.domSanitizer])],this._pipeMeta=new Map,this._pipeData.forEach((function(e){l._pipeMeta.set(e.name,e)}))}return e.prototype.unknownPipe=function(e){throw Error("The pipe '"+e+"' could not be found")},e.prototype.meta=function(e){var t=this._pipeMeta.get(e);return t||this.unknownPipe(e),t},e.prototype.getPipeNameVsIsPureMap=function(){var e=new Map;return this._pipeMeta.forEach((function(t,n){e.set(n,t.pure)})),e},e.prototype.resolveDep=function(e){return this.injector.get(e.token.identifier.reference)},e.prototype.getInstance=function(e){var t,n,i=this.meta(e).type,o=i.reference,r=i.diDeps;if(o||this.unknownPipe(e),r.length){var a=[];try{for(var s=J(r),l=s.next();!l.done;l=s.next()){var c=l.value;a.push(c)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return new(o.bind.apply(o,ee([void 0],Z(a))))}return new o},e}();we.\u0275prov=C.\u0275\u0275defineInjectable({factory:function(){return new we(C.\u0275\u0275inject(C.Compiler),C.\u0275\u0275inject(C.INJECTOR),C.\u0275\u0275inject(D.DomSanitizer),C.\u0275\u0275inject(I.AbstractI18nService))},token:we,providedIn:"root"}),we.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],we.ctorParameters=function(){return[{type:t.Compiler},{type:t.Injector},{type:d.DomSanitizer},{type:o.AbstractI18nService}]};var Pe=function(){function e(e,t){this.pipeProvider=e,this.$app=t,this.supportedPipes=["toDate","toCurrency","prefix","suffix","numberToString","stringToNumber","timeFromNow","trustAs","sanitize"],this.$app.isApplicationType&&this.supportedPipes.push("custom")}return e.prototype.getPipe=function(e){if(this.supportedPipes.includes(e))return this.pipeProvider.getInstance(e);throw Error("The pipe '"+e+"' could not be found")},e}();Pe.\u0275prov=C.\u0275\u0275defineInjectable({factory:function(){return new Pe(C.\u0275\u0275inject(we),C.\u0275\u0275inject(I.App))},token:Pe,providedIn:"root"}),Pe.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],Pe.ctorParameters=function(){return[{type:we},{type:o.App}]};var _e={DialogService:o.AbstractDialogService,i18nService:o.AbstractI18nService,PipeService:Pe,statePersistence:o.StatePersistence,SpinnerService:o.AbstractSpinnerService,StatePersistenceService:o.StatePersistence,Viewport:o.Viewport,ToasterService:o.AbstractToasterService,Utils:o.UtilsService,CONSTANTS:o.ConstantService,FIELD_TYPE:o.FieldTypeService,FIELD_WIDGET:o.FieldWidgetService,DynamicComponentService:o.DynamicComponentRefProvider},Oe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},Se=function(){var e=this.httpService,t=function(t,n){var i=Array.from(arguments).slice(1);return Promise.resolve(e[t].apply(e,i))},n=function(){return t.apply(void 0,ee(["send"],Z(Array.from(arguments))))};return["get","post","head","put","delete","jsonp","patch"].forEach((function(e){return n[e]=t.bind(void 0,e)})),n},Ee=function(){function e(e,t,n,i,r,a){this.inj=e,this.i18nService=t,this.statePersistence=n,this.httpService=i,this.securityService=r,this.routeReuseStrategy=a,this.Variables={},this.Actions={},this.onAppVariablesReady=Oe,this.onBeforeAppReady=Oe,this.onSessionTimeout=Oe,this.onPageReady=Oe,this.onBeforePageLeave=Oe,this.onBeforeServiceCall=Oe,this.onServiceSuccess=Oe,this.onServiceError=Oe,this.dynamicComponentContainerRef={},this.changeLocale=this.i18nService.setSelectedLocale.bind(this.i18nService),this.getSelectedLocale=this.i18nService.getSelectedLocale.bind(this.i18nService),this.setTimezone=this.i18nService.setTimezone.bind(this.i18nService),this.setwidgetLocale=this.i18nService.setwidgetLocale.bind(this.i18nService),this._eventNotifier=new o.EventNotifier,this.landingPageName=o.getWmProjectProperties().homePage;var s=o.getWmProjectProperties();this.projectName=s.name,this.isPrefabType="PREFAB"===s.type,this.isApplicationType="APPLICATION"===s.type,this.isTemplateBundleType="TEMPLATEBUNDLE"===s.type,this.targetPlatform=s.platformType,this.httpService.registerOnSessionTimeout(this.on401.bind(this)),this.appLocale=this.i18nService.getAppLocale(),this.httpService.setLocale(this.appLocale)}return e.prototype.reload=function(){window.location.reload()},e.prototype.clearPageCache=function(e){this.routeReuseStrategy instanceof se&&this.routeReuseStrategy.reset(e)},e.prototype.notify=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this._eventNotifier.notify.apply(this._eventNotifier,arguments)},e.prototype.getDependency=function(e){if(o.isString(e)){if("HttpService"===e)return Se.call(this);var t=_e[e]&&this.inj.get(_e[e]);return!t&&this.inj._providers&&_.forEach(this.inj._providers,(function(n){if(_.isObject(n)&&n.__proto__.constructor.SERVICE_NAME===e)return t=n,!1})),t}return this.inj.get(e)},e.prototype.on401=function(){var e=_.get(this.securityService.get(),"userInfo");_.isEmpty(e)||this.onSessionTimeout()},e.prototype.subscribe=function(e,t){return this._eventNotifier.subscribe(e,t)},e.prototype.notifyApp=function(e,t,n){var i=_.get(this,"Actions.appNotification"),r=-1!==["PROCESS_REJECTED_IN_QUEUE"].indexOf(e);if(i){if(r)return void console.warn("App Error",e);t=t||"success",e=i.getMessage()||e,i.invoke({message:e,title:o.isDefined(n)?n:t.toUpperCase(),class:t,duration:"ERROR"===t.toUpperCase()?0:void 0})}else console.warn('The default Action "appNotification" doesn\'t exist in the app. App notified following error:\n',e)},e.prototype.registerExpressions=function(e){_.each(e,(function(e,t){o.registerFnByExpr(t,e[0],e[1])}))},e}();Ee.decorators=[{type:t.Injectable}],Ee.ctorParameters=function(){return[{type:t.Injector},{type:o.AbstractI18nService},{type:o.StatePersistence},{type:o.AbstractHttpService},{type:r.SecurityService},{type:n.RouteReuseStrategy}]};var Te=function(e){function t(t){var n=e.call(this)||this;return n.toaster=t,n}return K(t,e),t.prototype._showToaster=function(e,t,n,i){if(_.isNumber(i)&&(i={timeOut:i}),(i=i||{}).timeOut=o.isDefined(i.timeOut)?i.timeOut:0,i.enableHtml=o.isDefined(i.enableHtml),i.positionClass=i.positionClass||"toast-bottom-right",i.toastClass="toast",t||n){!i.bodyOutputType&&_.isObject(n)&&(n=JSON.stringify(n));var r=this.toaster[e];if(r)return r.call(this.toaster,n,t,i)}},t.prototype.success=function(e,t){return this._showToaster("success",e,t,{timeOut:5e3})},t.prototype.error=function(e,t){return this._showToaster("error",e,t,{timeOut:0})},t.prototype.info=function(e,t){return this._showToaster("info",e,t,{timeOut:0})},t.prototype.warn=function(e,t){return this._showToaster("warning",e,t,{timeOut:0})},t.prototype.show=function(e,t,n,i){return this._showToaster(e,t,n,i)},t.prototype.hide=function(e){e?this.toaster.clear(e.toastId):this.toaster.clear()},t.prototype.showCustom=function(e,t){if(e)return(t=t||{}).toastComponent=ve,t.toastClass="custom-toaster",t.timeOut=o.isDefined(t.timeOut)?t.timeOut:0,t.enableHtml=o.isDefined(t.enableHtml),t.positionClass=t.positionClass||"toast-bottom-right",t.toastClass="toast",this.toaster.show(e,"",t)},t.prototype.setToasterConfig=function(e){_.isObject(e)?_.merge(this.toaster.toastrConfig,e):console.warn("Please pass a valid options object, For Example : {maxOpened: 1, autoDismiss: true}")},t}(o.AbstractToasterService);Te.decorators=[{type:t.Injectable}],Te.ctorParameters=function(){return[{type:h.ToastrService}]};var Re=["ar","ar-001","ar-ae","ar-bh","ar-dz","ar-eg","ar-iq","ar-jo","ar-kw","ar-lb","ar-ly","ar-ma","ar-om","ar-qa","ar-sa","ar-sd","ar-sy","ar-tn","ar-ye","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","pnb","ps","sd","ug","ur","yi"],Ae=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r.$http=t,r.bsLocaleService=n,r.appDefaults=i,r.inj=o,r.defaultSupportedLocale="en",r._isAngularLocaleLoaded=!1,r.formatsByLocale={timezone:"",number:""},r.appLocale={},r.prefabLocale=new Map,r}return K(t,e),Object.defineProperty(t.prototype,"app",{get:function(){return this.inj.get(o.App)},enumerable:!1,configurable:!0}),t.prototype.updateLocaleDirection=function(){var e="ltr";Re.includes(this.selectedLocale)&&(e="rtl"),o.setCSS(document.body,"direction",e)},t.prototype.init=function(){this.messages={},Object.setPrototypeOf(this.appLocale,this.messages)},t.prototype.getSelectedLocale=function(){return this.selectedLocale},t.prototype.getDefaultSupportedLocale=function(){return this.defaultSupportedLocale},t.prototype.getAppLocale=function(){return this.appLocale},t.prototype.getPrefabLocaleBundle=function(e){return this.prefabLocale.has(e)||this.prefabLocale.set(e,Object.create(this.appLocale)),this.prefabLocale.get(e)},t.prototype.extendPrefabMessages=function(e){var t=this;e.prefabMessages&&Object.keys(e.prefabMessages).forEach((function(n){var i=t.prefabLocale.get(n);i||(i=Object.create(t.appLocale),t.prefabLocale.set(n,i)),Object.assign(i,e.prefabMessages[n])}))},t.prototype.extendMessages=function(e){Object.assign(this.messages,e)},t.prototype.loadResource=function(e){return this.$http.get(e).toPromise().catch((function(){console.warn("error loading locale resource from "+e),Promise.resolve({})}))},t.prototype.loadAppLocaleBundle=function(){var e=this;this.loadResource("resources/i18n/"+this.selectedLocale+".json").then((function(t){e.extendMessages(t.messages),e.extendPrefabMessages(t),e.appDefaults.setFormats(t.formats)}))},t.prototype.loadMomentLocaleBundle=function(e){var t=this,n=o._WM_APP_PROJECT.cdnUrl||o._WM_APP_PROJECT.ngDest;if(this.selectedLocale!==this.defaultSupportedLocale){var i=n+"locales/moment/"+e+".js";o.loadScripts([i],!0).then((function(){moment.locale(t.selectedLocale);var n=moment.localeData(e);n=n&&n._config,w.defineLocale(t.selectedLocale,n),t.bsLocaleService.use(t.getSelectedLocale()||t.defaultSupportedLocale)}))}else moment.locale(this.defaultSupportedLocale)},t.prototype.loadAngularLocaleBundle=function(e){var t=this;return new Promise((function(n){var i=o._WM_APP_PROJECT.cdnUrl||o._WM_APP_PROJECT.ngDest;if(t.selectedLocale!==t.defaultSupportedLocale){var r=i+"locales/angular/global/"+e+".js";o.loadScripts([r],!0).then((function(){t._isAngularLocaleLoaded=!0,n()}),n)}else n()}))},t.prototype.loadCalendarLocaleBundle=function(e,t){void 0===t&&(t=!1);var n,i=o._WM_APP_PROJECT.cdnUrl||o._WM_APP_PROJECT.ngDest;return e?(n=i+"locales/fullcalendar/"+e+".js",t||!o.isMobile()&&!o.isMobileApp()&&this.selectedLocale!==this.defaultSupportedLocale?o.loadScripts([n],!0):void 0):Promise.resolve()},t.prototype.loadMomentTimeZoneBundle=function(e,t){var n=this;return new Promise((function(i){var r=(o._WM_APP_PROJECT.cdnUrl||o._WM_APP_PROJECT.ngDest)+"locales/moment-timezone/moment-timezone-with-data.js";o.loadScripts([r],!0).then((function(){var o=e,r=(e=o.timezone).indexOf("+");r>-1&&(r>0&&(e=e.substr(r)),o.timezone=_.find(moment.tz.names(),(function(t){return e===moment.tz(t).format("Z")})));var a=t&&t.formatsByLocale?t.formatsByLocale:n.formatsByLocale;Object.assign(a,o),i()}),i)}))},t.prototype.loadLocaleBundles=function(e){return e.moment&&this.loadMomentLocaleBundle(e.moment),e.fullCalendar&&window.FullCalendar&&this.loadCalendarLocaleBundle(e.fullCalendar),e.angular&&this.loadAppLocaleBundle(),this.loadAngularLocaleBundle(e.angular)},t.prototype.setTimezone=function(e,t){this.loadMomentTimeZoneBundle(e,t)},t.prototype.getTimezone=function(e){var t=_.get(this.app,"activePage.formatsByLocale.timezone"),n=_.get(e,"formatsByLocale.timezone");return n||(t||this.formatsByLocale.timezone)},t.prototype.getFormatsByLocale=function(){return this.formatsByLocale},t.prototype.setSelectedLocale=function(e){var t=this;_.isObject(e)&&(e=e.datavalue);var n=o.getWmProjectProperties().supportedLanguages[e],i=Object.keys(o.getWmProjectProperties().supportedLanguages);return _.includes(i,e)&&e&&e!==this.selectedLocale?(o.setSessionStorageItem("selectedLocale",e),this.selectedLocale=e,this.init(),this.loadLocaleBundles(n).then((function(){return t.updateLocaleDirection()}))):Promise.resolve()},t.prototype.deduceAppLocale=function(){var e=this.getAcceptedLanguages(),t=o.getWmProjectProperties().defaultLanguage;e.push(t);var n=o.getWmProjectProperties().preferBrowserLang;n=!n||("true"===n||!0===n);var i,r=Object.keys(o.getWmProjectProperties().supportedLanguages)||[this.defaultSupportedLocale],s=n?void 0:t;if(a.CONSTANTS.hasCordova){var l=[];_.forEach(e,(function(e){var t=_.find(r,(function(t){return e===t}))||_.find(r,(function(t){return e.startsWith(t)}));t&&l.push(t)})),i=l[0]}var c=o.getSessionStorageItem("selectedLocale")||s||i||_.intersection(e,r)[0]||this.defaultSupportedLocale;return r=r||[c],c||r[0]},t.prototype.loadDefaultLocale=function(){var e=this.deduceAppLocale();return this.setSelectedLocale(e)},t.prototype.getLocalizedMessage=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return o.replace(this.appLocale[e],t)},t.prototype.getAcceptedLanguages=function(){var e;return e=a.CONSTANTS.hasCordova?navigator.languages||[navigator.language]:(e=decodeURIComponent(o.getWmProjectProperties().preferredLanguage||"")).split(",").map((function(e){return e.split(";")[0]})),_.map(e,_.toLower)},t.prototype.initCalendarLocale=function(){return"en"!==this.selectedLocale?this.loadCalendarLocaleBundle(this.selectedLocale,!0):Promise.resolve()},t.prototype.isAngularLocaleLoaded=function(){return this._isAngularLocaleLoaded},t.prototype.setwidgetLocale=function(e){this.formatsByLocale.number=e.number},t.prototype.getwidgetLocale=function(){return this.formatsByLocale},t}(o.AbstractI18nService);Ae.decorators=[{type:t.Injectable}],Ae.ctorParameters=function(){return[{type:u.HttpClient},{type:P.BsLocaleService},{type:o.AppDefaults},{type:t.Injector}]};var Ce=function(e){function t(){var t=e.call(this)||this;return t.spinnerId=0,t.messageSource=new l.Subject,t.messagesByContext={},t}return K(t,e),t.prototype.getMessageSource=function(){return this.messageSource},t.prototype.showContextSpinner=function(e,t,n){var i=$('[name="'+e+'"]');if(this.messagesByContext[e]=this.messagesByContext[e]||{},0!==Object.keys(this.messagesByContext[e]).length)this.messagesByContext[e][n]=t,this.messagesByContext[e].finalMessage=this.messagesByContext[e].finalMessage+" "+this.messagesByContext[e][n],i.find(".spinner-messages-container").html(this.messagesByContext[e].finalMessage);else{var o=$('<div class="app-spinner">\n <div class="spinner-message" aria-label="loading gif">\n <i class="spinner-image animated infinite fa fa-circle-o-notch fa-spin"></i>\n <div class="spinner-messages">\n <p class="spinner-messages-container"></p>\n </div>\n </div>\n </div>');this.messagesByContext[e][n]=t,this.messagesByContext[e].finalMessage=this.messagesByContext[e][n],o.find(".spinner-messages-container").html(this.messagesByContext[e].finalMessage),i.prepend(o)}return n},t.prototype.showAppSpinner=function(e,t){this.messagesByContext.page=this.messagesByContext.page||{},this.messagesByContext.page[t]=e,this.messageSource.next({show:!0,message:e,messages:_.values(this.messagesByContext.page)})},t.prototype.hideContextSpinner=function(e,t){delete this.messagesByContext[e][t],1===Object.keys(this.messagesByContext[e]).length&&(this.messagesByContext[e]={}),$('[name="'+e+'"]').find(".app-spinner").remove()},t.prototype.show=function(e,t,n,i,o){return t=t||++this.spinnerId,i&&"page"!==i?this.showContextSpinner(i,e,t):(this.showAppSpinner(e,t),t)},t.prototype.hide=function(e){var t=_.findKey(this.messagesByContext,(function(t){return _.includes(_.keys(t),e)}))||"page";if("page"===t)if(e){delete this.messagesByContext[t][e];var n=_.values(this.messagesByContext[t]);this.messageSource.next({show:!!n.length,messages:_.values(this.messagesByContext[t])})}else this.messagesByContext[t]={};else this.hideContextSpinner(t,e)},t}(o.AbstractSpinnerService);Ce.decorators=[{type:t.Injectable}],Ce.ctorParameters=function(){return[]};var Ie="body >app-root",De=function(){function e(e,t,i){var o=this;this.app=e,this.router=t,this.zone=i,this.history=new xe,this.isPageAddedToHistory=!1,this.router.events.subscribe((function(e){if(e instanceof n.NavigationStart){var t=e.url,i={},r=void 0;o.isPageAddedToHistory||(o.isPageAddedToHistory=!1,t.indexOf("?")>0?(t.substr(t.indexOf("?")+1).split("&").forEach((function(e){var t=e.split("=");i[t[0]]=t[1]})),r=t.substr(0,t.indexOf("?"))):r=t,"/"===r[0]&&(r=r.substr(1)),r&&(delete i.name,o.history.push(new Ne(r,i,o.transition))))}}))}return e.prototype.getPageTransition=function(){return _.isEmpty(this.transition)||_.isEqual("none",this.transition)?null:this.transition},e.prototype.goToPage=function(e,t){var n=this;this.transition=t.transition||"",this.history.getCurrentPage()&&(this.isPageAddedToHistory=!0),this.history.push(new Ne(e,t.urlParams,this.transition)),this.zone.run((function(){return n.router.navigate(["/"+e],{queryParams:t.urlParams})}))},e.prototype.goToPrevious=function(){this.history.getPagesCount()&&(this.transition=this.history.getCurrentPage().transition,_.isEmpty(this.transition)||(this.transition+="-exit"),this.history.pop(),this.isPageAddedToHistory=!0,window.history.back())},e.prototype.goToView=function(e,t,n){var i=this,o=(t=t||{}).pageName,r=t.transition||"",s=t.$event,l=this.app.activePage,c=n&&n._context&&n._context.prefabName;if(this.app.isPrefabType)this.goToElementView($(Ie).find('[name="'+e+'"]'),e,o,n);else if(o===l.activePageName||c)c&&this.isPrefabWithNameExists(c)?this.goToElementView($('[prefabName="'+c+'"]').find('[name="'+e+'"]'),e,o,n):o&&o!==l.activePageName?this.app.notifyApp(a.CONSTANTS.WIDGET_DOESNT_EXIST,"error"):this.goToElementView($(Ie).find('[name="'+e+'"]'),e,o,n);else if(this.isPartialWithNameExists(o))this.goToElementView($('[partialcontainer][content="'+o+'"]').find('[name="'+e+'"]'),e,o,n);else{this.goToPage(o,{viewName:e,$event:s,transition:r,urlParams:t.urlParams});var p=this.app.subscribe("pageReady",(function(t){i.goToElementView($(Ie).find('[name="'+e+'"]'),e,o,n),p()}))}},e.prototype.goToElementView=function(e,t,n,i){var o,r,a=this,s=this.app.activePage;if(e.length)switch(this.app.isPrefabType||n!==s.activePageName||(e=this.getViewElementInActivePage(e)),(o=e[0].widget).widgetType){case"wm-accordionpane":this.showAncestors(e,i),o.expand();break;case"wm-tabpane":this.showAncestors(e,i),o.select();break;case"wm-segment-content":this.showAncestors(e,i),o.navigate();break;case"wm-panel":o.expanded=!0}else r=this.showAncestorDialog(t),setTimeout((function(){r&&a.goToElementView($('[name="'+t+'"]'),t,n,i)}))},e.prototype.getViewElementInActivePage=function(e){var t;return e.length>1&&(t=_.filter(e,(function(e){if(_.isEmpty($(e).closest('[data-role = "partial"]'))&&_.isEmpty($(e).closest("[wmprefabcontainer]")))return e})))&&(e=$(t)),e},e.prototype.isPartialWithNameExists=function(e){return $('[partialcontainer][content="'+e+'"]').length},e.prototype.isPrefabWithNameExists=function(e){return $('[prefabName="'+e+'"]').length},e.prototype.showAncestors=function(e,t){e.parents('[wm-navigable-element="true"]').toArray().reverse().forEach((function(e){var t=e.widget;switch(t.widgetType){case"wm-accordionpane":t.expand();break;case"wm-tabpane":t.select();break;case"wm-segment-content":t.navigate();break;case"wm-panel":t.expanded=!0}}))},e.prototype.showAncestorDialog=function(e){var t;return $("app-root [dialogtype]").each((function(){var n=$(this);if($(n.html()).find('[name="'+e+'"]').length)return t=n.attr("name"),!1})),t},e}();De.decorators=[{type:t.Injectable}],De.ctorParameters=function(){return[{type:o.App},{type:n.Router},{type:t.NgZone}]};var Ne=function(){function e(e,t,n){this.name=e,this.urlParams=t,this.transition=n,this.transition=_.isEmpty(this.transition)?null:this.transition}return e.prototype.isEqual=function(e){return e&&e.name===this.name&&_.isEqual(e.urlParams,this.urlParams)},e}(),xe=function(){function e(){this.stack=[]}return e.prototype.getCurrentPage=function(){return this.currentPage},e.prototype.getPagesCount=function(){return this.stack.length},e.prototype.isLastVisitedPage=function(e){return this.getLastPage().isEqual(e)},e.prototype.push=function(e){this.currentPage&&this.stack.push(this.currentPage),this.currentPage=e},e.prototype.pop=function(){return this.currentPage=this.stack.pop(),this.currentPage},e.prototype.getLastPage=function(){return this.stack.length>0?this.stack[this.stack.length-1]:void 0},e}(),ke=function(){function e(){}return e.prototype.setFormats=function(e){var t=e.date,n=e.time,i=t&&n?t+" "+n:void 0,o=e.currency;this.dateFormat=t,this.timeFormat=n,this.dateTimeFormat=i,this.currencyCode=o},e}();ke.decorators=[{type:t.Injectable}],ke.ctorParameters=function(){return[]};var Me=!1,Le=function(){function e(e,t){this.securityService=e,this.appManager=t}return e.prototype.loadSecurityConfig=function(){return Me?Promise.resolve(!0):this.appManager.loadSecurityConfig().then((function(){return Me=!0}))},e.prototype.isAuthenticated=function(){var e=this;return this.loadSecurityConfig().then((function(){return new Promise((function(t,n){e.securityService.isAuthenticated(t,n)}))}))},e.prototype.canActivate=function(e){var t=this;return this.isAuthenticated().then((function(n){return n?Promise.resolve(!0):(t.appManager.handle401(e.routeConfig.path,{queryParams:e.queryParams}),Promise.resolve(!1))}))},e}();Le.decorators=[{type:t.Injectable}],Le.ctorParameters=function(){return[{type:r.SecurityService},{type:j}]};var Fe=function(){function e(e,t,n,i,o){this.securityService=e,this.authGuard=t,this.toasterService=n,this.app=i,this.appManager=o}return e.prototype.canActivate=function(e){var t=this,n=e.data.allowedRoles;return this.authGuard.isAuthenticated().then((function(i){if(i){var o=t.securityService.get().userInfo.userRoles;return _.intersection(n,o).length>0?Promise.resolve(!0):(t.appManager.notifyApp(t.app.appLocale.LABEL_ACCESS_DENIED||"Access Denied","error"),Promise.resolve(!1))}return t.appManager.handle401(e.routeConfig.path,{queryParams:e.queryParams}),Promise.resolve(!1)}))},e}();Fe.decorators=[{type:t.Injectable}],Fe.ctorParameters=function(){return[{type:r.SecurityService},{type:Le},{type:o.AbstractToasterService},{type:o.App},{type:j}]};var je=function(){function e(e,t){this.app=e,this.appManager=t}return e.prototype.canActivate=function(e){return this.appManager.notifyApp(this.app.appLocale.MESSAGE_PAGE_NOT_FOUND||"The page you are trying to reach is not available","error"),Promise.resolve(!1)},e}();je.decorators=[{type:t.Injectable}],je.ctorParameters=function(){return[{type:o.App},{type:j}]};var Be=!1,Ge=function(){function e(e,t,n,i){this.inj=e,this.app=t,this.utilService=n,this.appJsProvider=i,this.appManager=this.inj.get(j)}return e.prototype.resolve=function(){return Q(this,void 0,void 0,(function(){var e;return X(this,(function(t){switch(t.label){case 0:if(Be)return[2,!0];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.appJsProvider.getAppScriptFn()];case 2:return t.sent()(this.app,this.utilService,this.inj),[3,4];case 3:return e=t.sent(),console.warn("Error in executing app.js",e),[3,4];case 4:return Be=!0,[2,!0]}}))}))},e}();Ge.decorators=[{type:t.Injectable}],Ge.ctorParameters=function(){return[{type:t.Injector},{type:o.App},{type:o.UtilsService},{type:M}]};var Ve=!1,$e=function(){function e(e,t,n){this.appManager=e,this.appJsProvider=t,this.customPipeManager=n}return e.prototype.resolve=function(){return!(!this.appManager.isPrefabType()&&!this.appManager.isTemplateBundleType())||(Ve||(this.appJsProvider.loadFormatterConfigScript(this.loadedFormatterScript.bind(this)),Ve=!0),Ve)},e.prototype.loadedFormatterScript=function(e){try{var t=e;for(var n in t||console.warn("Please return valid formatter object"),t)this.customPipeManager.setCustomPipe(n,t[n])}catch(e){console.warn("Error in reading formatters.js",e)}},e}();$e.decorators=[{type:t.Injectable}],$e.ctorParameters=function(){return[{type:j},{type:F},{type:o.CustomPipeManager}]};var Ue=function(){function e(e){this.i18nService=e}return e.prototype.resolve=function(){return this.i18nService.loadDefaultLocale()},e}();Ue.decorators=[{type:t.Injectable}],Ue.ctorParameters=function(){return[{type:o.AbstractI18nService}]};var We=function(){function e(e,t,i,r,a,s,l,c,p,u){var d,h=this;this.elRef=i,this.oAuthService=r,this.dialogService=a,this.spinnerService=s,this.router=c,this.app=p,this.appManager=u,this.startApp=!1,this.isApplicationType=!1,this.spinner={show:!1,messages:[],arialabel:""},this.isOAuthDialogOpen=!1,o.setPipeProvider(e),o.setNgZone(l),o.setAppRef(t),this.isApplicationType="APPLICATION"===o.getWmProjectProperties().type,this.appManager.beforeAppReady(),r.getOAuthProvidersAsObservable().subscribe((function(e){h.providersConfig=e,e.length?h.showOAuthDialog():h.closeOAuthDialog()})),this.spinnerService.getMessageSource().asObservable().subscribe((function(e){setTimeout((function(){h.spinner.show=e.show,h.spinner.messages=e.messages,h.spinner.arialabel=e.messages.toString()}))})),O.setTheme("bs3");var m=o.noop;this.router.events.subscribe((function(e){if(e instanceof n.NavigationStart){var t=e.url.split("?")[0];(t=t.substring(1))||(h.app.activeLayoutName="",h.app.layoutPages=[]),d=h.app.activeLayoutName&&h.app.layoutPages&&h.app.layoutPages.length&&h.app.layoutPages.includes(t)?h.spinnerService.show("","wmRouterOutlet","","wmRouterOutlet"):h.spinnerService.show("","globalSpinner");var i=document.querySelector("app-page-outlet");i&&o.addClass(i,"page-load-in-progress");var r=Date.now();m=function(){h.spinnerService.hide(d);var e=document.querySelector("app-page-outlet");e&&o.removeClass(e,"page-load-in-progress"),m=o.noop,h.app.activePageLoadTime=Date.now()-r}}else(e instanceof n.NavigationEnd||e instanceof n.NavigationCancel||e instanceof n.NavigationError)&&setTimeout((function(){m()}),1e3)})),this.appManager.subscribe("pageReady",(function(){m()})),this.appManager.subscribe("pageAttach",(function(){m()}))}return e.prototype.showOAuthDialog=function(){this.isOAuthDialogOpen||(this.isOAuthDialogOpen=!0,this.dialogService.open("oAuthLoginDialog",this))},e.prototype.closeOAuthDialog=function(){this.isOAuthDialogOpen&&(this.isOAuthDialogOpen=!1,this.dialogService.close("oAuthLoginDialog",this))},e.prototype.start=function(){var e=this;setTimeout((function(){e.startApp=!0})),setTimeout((function(){e.app.dynamicComponentContainerRef=e.dynamicComponentContainerRef,e.overrideRouterOutlet()}),10)},e.prototype.overrideRouterOutlet=function(){var e=this,t=this.routerOutlet.attach,n=this.routerOutlet.detach;this.routerOutlet.attach=function(n){t.call(e.routerOutlet,n),n.instance.ngOnAttach()},this.routerOutlet.detach=function(){return e.app.activePage.ngOnDetach(),n.call(e.routerOutlet)}},e.prototype.ngAfterViewInit=function(){var e=this;o.hasCordova()&&!window.wmDeviceReady?document.addEventListener("wmDeviceReady",(function(){return e.start()})):this.start()},e.prototype.ngDoCheck=function(){o.$invokeWatchers()},e}();We.decorators=[{type:t.Component,args:[{selector:"app-root",template:'<ng-container *ngIf="startApp">\n <router-outlet></router-outlet>\n <div wmContainer partialContainer content="Common" hidden class="ng-hide" *ngIf="isApplicationType"></div>\n <app-spinner name="globalspinner" classname="global-spinner" role="alert" aria-live="assertive" [attr.aria-label]="spinner.arialabel || \'Loading\'" [show]="spinner.show" [spinnermessages]="spinner.messages"></app-spinner>\n <div wmDialog name="oAuthLoginDialog" title="Application is requesting you to sign in with"\n close.event="closeOAuthDialog()">\n <ng-template #dialogBody>\n <ul class="list-items">\n <li class="list-item" *ngFor="let provider of providersConfig">\n <button class="btn" (click)="provider.invoke()">{{provider.name}}</button>\n </li>\n </ul>\n </ng-template>\n </div>\n <div wmConfirmDialog name="_app-confirm-dialog" title.bind="title" message.bind="message" oktext.bind="oktext"\n canceltext.bind="canceltext" closable="false" iconclass.bind="iconclass"\n escape.event="onEscape()" ok.event="onOk()" cancel.event="onCancel()" close.event="onClose()" opened.event="onOpen()"></div>\n <div *ngIf="!isApplicationType" wmConfirmDialog name="PrefabConfirmDialog" title.bind="title" message.bind="text" oktext.bind="okButtonText"\n canceltext.bind="cancelButtonText" closable="false" iconclass.bind="iconclass"\n escape.event="onEscape()" ok.event="onOk()" cancel.event="onCancel()" close.event="onClose()" opened.event="onOpen()"></div>\n <div *ngIf="!isApplicationType" wmAlertDialog name="PrefabAlertDialog" title.bind="title" message.bind="text" oktext.bind="okButtonText"\n canceltext.bind="cancelButtonText" closable="false" iconclass.bind="iconclass"\n escape.event="onEscape()" ok.event="onOk()" cancel.event="onCancel()" close.event="onClose()" opened.event="onOpen()"></div>\n <div wmAppExt></div>\n <i id="wm-mobile-display"></i>\n</ng-container>\n\x3c!--Dummy container to create the component dynamically--\x3e\n<ng-container #dynamicComponent></ng-container>\n',encapsulation:t.ViewEncapsulation.None}]}],We.ctorParameters=function(){return[{type:we},{type:t.ApplicationRef},{type:t.ElementRef},{type:b.OAuthService},{type:o.AbstractDialogService},{type:o.AbstractSpinnerService},{type:t.NgZone},{type:n.Router},{type:o.App},{type:j}]},We.propDecorators={routerOutlet:[{type:t.ViewChild,args:[n.RouterOutlet]}],dynamicComponentContainerRef:[{type:t.ViewChild,args:["dynamicComponent",{read:t.ViewContainerRef}]}]};var qe=function(){function e(){this.wmHttpRequest=new y.WmHttpRequest,this.wmHttpResponse=new y.WmHttpResponse}return e.prototype.createSubject=function(){return new l.Subject},e.prototype.intercept=function(e,t){var n,i,o=this;if(a.appManager&&a.appManager.appOnBeforeServiceCall){var r=this.wmHttpRequest.angularToWmRequest(e);(n=a.appManager.appOnBeforeServiceCall(r))&&(n=this.wmHttpRequest.wmToAngularRequest(n),e=n)}return t.handle(e).pipe(S.tap((function(e){if(e&&4===e.type&&a.appManager&&a.appManager.appOnServiceSuccess){var t=o.wmHttpResponse.angularToWmResponse(e);(i=a.appManager.appOnServiceSuccess(t.body,t))&&(i=o.wmHttpResponse.wmToAngularResponse(i),_.extend(e,i))}}),(function(t){if(t._401Subscriber=o.createSubject(),a.httpService.isPlatformSessionTimeout(t)&&a.httpService.handleSessionTimeout(e,t._401Subscriber),a.appManager&&a.appManager.appOnServiceError){var n=o.wmHttpResponse.angularToWmResponse(t);(i=a.appManager.appOnServiceError(n.message,n))&&(i=o.wmHttpResponse.wmToAngularResponse(i),_.extend(t,i))}})))},e}();qe.decorators=[{type:t.Injectable}],qe.ctorParameters=function(){return[]};var ze="PREFAB",He=function(){function e(e){var t=this;this.prefabManager=e,window.addEventListener("message",(function(e){if((e.data&&e.data.context)===ze){var n=e.data.action,i=e.data.payload;"init"===n?t.init():"set-property"===n?t.setProperty(i):"get-outbound-properties"===n?t.getOutboundProps():"invoke-script"===n&&t.invokeScript(i)}}))}return e.prototype.postMessage=function(e,t){var n={context:ze,action:e,payload:t};window.top.postMessage(n,"*")},e.prototype.setupEventListeners=function(){var e=this;this.prefabInstance.invokeEventCallback=function(t,n){void 0===n&&(n={}),e.postMessage("event-log",{name:t,data:n})}},e.prototype.init=function(){var e=this;this.previewMode=!0,this.prefabInstance.readyState.subscribe((function(){}),(function(){}),(function(){e.prefabManager.getConfig("__self__").then((function(t){e.config=t,e.postMessage("config",t),e.setupEventListeners()}))}))},e.prototype.setProperty=function(e){this.prefabInstance.widget[e.name]=e.value},e.prototype.isOutBoundProp=function(e){return"out-bound"===e.bindable||"in-out-bound"===e.bindable},e.prototype.getOutboundProps=function(){var e,t,n={};try{for(var i=J(Object.entries(this.config.properties||{})),o=i.next();!o.done;o=i.next()){var r=Z(o.value,2),a=r[0],s=r[1];this.isOutBoundProp(s)&&(n[a]=this.prefabInstance.widget[a])}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}this.postMessage("outbound-properties",n)},e.prototype.invokeScript=function(e){var t="\n return "+e.script+";",n=new Function("Prefab",t)(this.prefabInstance);this.postMessage("method-output",{methodName:e.methodName,output:n})},e.prototype.ngAfterViewInit=function(){this.setupEventListeners(),this.postMessage("init")},e}();He.decorators=[{type:t.Component,args:[{selector:"wm-prefab-preview",template:'\n <div class="prefab-preview row">\n <section wmPrefab name="prefab-preview" prefabname="__self__"></section>\n </div>\n '}]}],He.ctorParameters=function(){return[{type:H}]},He.propDecorators={prefabInstance:[{type:t.ViewChild,args:[p.PrefabDirective,{static:!0}]}]},T.initComponentsBuildTask();var Ye=new Map,Ke=function(e){var n=function(){};return n.decorators=[{type:t.NgModule,args:[{declarations:[e],imports:[Pt],schemas:[t.CUSTOM_ELEMENTS_SCHEMA,t.NO_ERRORS_SCHEMA]}]}],n},Qe=function(e,n,i){void 0===i&&(i="");var o={template:n,styles:[i],encapsulation:t.ViewEncapsulation.None},r=function(){};return r.decorators=[{type:t.Component,args:[Object.assign(Object.assign({},o),{selector:e})]}],r},Xe=function(){function e(e,t,n){this.app=e,this.appManager=t,this.compiler=n,this.counter=1}return e.prototype.getComponentFactoryRef=function(e,t,n){return void 0===n&&(n={}),Q(this,void 0,void 0,(function(){var i,o,r;return X(this,(function(a){return i=Ye.get(e),t=n.transpile?E.transpile(t).markup:t,i&&!n.noCache||(o=Qe(e,t,n.styles),r=Ke(o),i=this.compiler.compileModuleAndAllComponentsSync(r).componentFactories.filter((function(e){return e.componentType===o}))[0],Ye.set(e,i)),[2,i]}))}))},e.prototype.addComponent=function(e,t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),Q(this,void 0,void 0,(function(){var r,a;return X(this,(function(s){switch(s.label){case 0:return i.transpile=!o.isDefined(i.transpile)||i.transpile,i.noCache=!o.isDefined(i.noCache)||i.noCache,i.selector=o.isDefined(i.selector)?i.selector:"wm-dynamic-component-"+this.counter++,[4,this.getComponentFactoryRef(i.selector,t,i)];case 1:return r=s.sent(),a=this.app.dynamicComponentContainerRef.createComponent(r,0,_.get(i,"inj")),o.extendProto(a.instance,n),e.appendChild(a.location.nativeElement),[2]}}))}))},e}();Xe.decorators=[{type:t.Injectable}],Xe.ctorParameters=function(){return[{type:o.App},{type:j},{type:t.Compiler}]};var Je=function(){function e(){}return e.prototype.canDeactivate=function(e,t,n){return function(){var e;return!1!==(e=this.app.activePage&&this.app.activePage.onBeforePageLeave())&&(e=(this.app.onBeforePageLeave||o.noop)(this.app.activePageName,this.app.activePage)),void 0===e||e}.apply(e)},e}();Je.decorators=[{type:t.Injectable}];var Ze=function(){function e(){}return e.prototype.canDeactivate=function(e,t,n){return!e.canDeactivate||e.canDeactivate()},e}();Ze.decorators=[{type:t.Injectable}];var et=function(){function e(){this._stylesSet=new Set}return e.prototype.addStyles=function(e){var t=this,n=new Set;e.forEach((function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))})),this.onStylesAdded(n)},e.prototype.onStylesAdded=function(e){},e.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},e}();et.decorators=[{type:t.Injectable}];var tt=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._hostNodes=new Map,n._hostNodes.set(t.head,[]),n}return K(t,e),t.prototype._addStylesToHost=function(e,t,n){var i,o=this,r=(null===(i=document.querySelector('meta[name="CSP-NONCE"]'))||void 0===i?void 0:i.getAttribute("content"))||"wm-csp-nonce";e.forEach((function(e){var i=o._doc.createElement("style");i.textContent=e,i.setAttribute("nonce",r),n.push(t.appendChild(i))}))},t.prototype.addHost=function(e){var t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)},t.prototype.removeHost=function(e){var t=this._hostNodes.get(e);t&&t.forEach(nt),this._hostNodes.delete(e)},t.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach((function(n,i){t._addStylesToHost(e,i,n)}))},t.prototype.ngOnDestroy=function(){this._hostNodes.forEach((function(e){return e.forEach(nt)}))},t}(et);function nt(e){i["\u0275getDOM"]().remove(e)}tt.decorators=[{type:t.Injectable}],tt.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[i.DOCUMENT]}]}]};var it={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ot=/%COMP%/g,rt="_nghost-%COMP%",at="_ngcontent-%COMP%";function st(e,t,n){for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?st(e,o,n):(o=o.replace(ot,e),n.push(o))}return n}function lt(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var ct=function(){function e(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new pt(e)}return e.prototype.createRenderer=function(e,n){if(!e||!n)return this.defaultRenderer;switch(n.encapsulation){case t.ViewEncapsulation.Emulated:var i=this.rendererByCompId.get(n.id);return i||(i=new ht(this.eventManager,this.sharedStylesHost,n,this.appId),this.rendererByCompId.set(n.id,i)),i.applyToHost(e),i;case 1:case t.ViewEncapsulation.ShadowDom:return new mt(this.eventManager,this.sharedStylesHost,e,n);default:if(!this.rendererByCompId.has(n.id)){var o=st(n.id,n.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(n.id,this.defaultRenderer)}return this.defaultRenderer}},e.prototype.begin=function(){},e.prototype.end=function(){},e}();ct.decorators=[{type:t.Injectable}],ct.ctorParameters=function(){return[{type:d.EventManager},{type:d["\u0275DomSharedStylesHost"]},{type:String,decorators:[{type:t.Inject,args:[t.APP_ID]}]}]};var pt=function(){function e(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}return e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){return t?document.createElementNS(it[t]||t,e):document.createElement(e)},e.prototype.createComment=function(e){return document.createComment(e)},e.prototype.createText=function(e){return document.createTextNode(e)},e.prototype.appendChild=function(e,t){(ut(e)?e.content:e).appendChild(t)},e.prototype.insertBefore=function(e,t,n){e&&(ut(e)?e.content:e).insertBefore(t,n)},e.prototype.removeChild=function(e,t){e&&e.removeChild(t)},e.prototype.selectRootElement=function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'+e+'" did not match any elements');return t||(n.textContent=""),n},e.prototype.parentNode=function(e){return e.parentNode},e.prototype.nextSibling=function(e){return e.nextSibling},e.prototype.resetStyles=function(e){[].slice.call(e).forEach((function(t){e.style.removeProperty(t)}))},e.prototype.applyStyles=function(e,t){if(t)return t.split(";").forEach((function(t){var n,i,o=t.split(":");2===o.length&&(n=o[0].trim(),i=o[1].trim(),e.style[n]=i)})),t},e.prototype.setAttribute=function(e,t,n,i){if(i){t=i+":"+t;var o=it[i];o?e.setAttributeNS(o,t,n):e.setAttribute(t,n)}else"style"===t?(this.resetStyles(e),this.applyStyles(e,n)):e.setAttribute(t,n)},e.prototype.removeAttribute=function(e,t,n){if(n){var i=it[n];i?e.removeAttributeNS(i,t):e.removeAttribute(n+":"+t)}else e.removeAttribute(t)},e.prototype.addClass=function(e,t){e.classList.add(t)},e.prototype.removeClass=function(e,t){e.classList.remove(t)},e.prototype.setStyle=function(e,n,i,o){o&(t.RendererStyleFlags2.DashCase|t.RendererStyleFlags2.Important)?e.style.setProperty(n,i,o&t.RendererStyleFlags2.Important?"important":""):e.style[n]=i},e.prototype.removeStyle=function(e,n,i){i&t.RendererStyleFlags2.DashCase?e.style.removeProperty(n):e.style[n]=""},e.prototype.setProperty=function(e,t,n){e[t]=n},e.prototype.setValue=function(e,t){e.nodeValue=t},e.prototype.listen=function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,lt(n)):this.eventManager.addEventListener(e,t,lt(n))},e}();"@".charCodeAt(0);function ut(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}var dt,ht=function(e){function t(t,n,i,o){var r=e.call(this,t)||this;r.component=i;var a,s=st(o+"-"+i.id,i.styles,[]);return n.addStyles(s),r.contentAttr=(a=o+"-"+i.id,at.replace(ot,a)),r.hostAttr=function(e){return rt.replace(ot,e)}(o+"-"+i.id),r}return K(t,e),t.prototype.applyToHost=function(t){e.prototype.setAttribute.call(this,t,this.hostAttr,"")},t.prototype.createElement=function(t,n){var i=e.prototype.createElement.call(this,t,n);return e.prototype.setAttribute.call(this,i,this.contentAttr,""),i},t}(pt),mt=function(e){function t(t,n,i,o){var r=e.call(this,t)||this;r.sharedStylesHost=n,r.hostEl=i,r.shadowRoot=i.attachShadow({mode:"open"}),r.sharedStylesHost.addHost(r.shadowRoot);for(var a=st(o.id,o.styles,[]),s=0;s<a.length;s++){var l=document.createElement("style");l.textContent=a[s],r.shadowRoot.appendChild(l)}return r}return K(t,e),t.prototype.nodeOrShadowRoot=function(e){return e===this.hostEl?this.shadowRoot:e},t.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},t.prototype.appendChild=function(t,n){return e.prototype.appendChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.insertBefore=function(t,n,i){return e.prototype.insertBefore.call(this,this.nodeOrShadowRoot(t),n,i)},t.prototype.removeChild=function(t,n){return e.prototype.removeChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.parentNode=function(t){return this.nodeOrShadowRoot(e.prototype.parentNode.call(this,this.nodeOrShadowRoot(t)))},t}(pt),ft=function(){o._WM_APP_PROJECT.id=o.hasCordova()?_WM_APP_PROPERTIES.displayName:location.href.split("/")[3],o._WM_APP_PROJECT.cdnUrl=document.querySelector('[name="cdnUrl"]')&&document.querySelector('[name="cdnUrl"]').getAttribute("content"),o._WM_APP_PROJECT.ngDest="ng-bundle/"};function gt(e,t){return{provide:e,useValue:t}}function vt(e,t){var n=this;return function(){return Q(n,void 0,void 0,(function(){return X(this,(function(n){switch(n.label){case 0:return ft(),[4,t.resolve()];case 1:return n.sent(),[2,e.loadDefaultLocale()]}}))}))}}function yt(e){return ft(),e.deduceAppLocale()}!function(e){e.IOS="ios",e.ANDROID="android"}(dt||(dt={}));var bt=[fe,ge,ve,be,We,He,ye],wt=[f.ConfirmDialogModule,g.DesignDialogModule,m.DialogModule];$.fn.swipeAnimation.expressionEvaluator=o.$parseExpr;var Pt=function(){function e(t,n,i){e.addCustomEventPolyfill(),this.getDeviceDetails().then((function(e){n.selectedViewPort={os:e.os,category:e.selectedDeviceCategory},i.update(e),n.notify("on-viewport-details",e.os)}))}return e.addCustomEventPolyfill=function(){if("function"==typeof window.CustomEvent)return!1;var e=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n};e.prototype=window.Event.prototype,window.CustomEvent=e},e.forRoot=function(){return{ngModule:e,providers:[{provide:o.App,useClass:Ee},{provide:o.AbstractToasterService,useClass:Te},{provide:o.AbstractI18nService,useClass:Ae},{provide:o.AbstractSpinnerService,useClass:Ce},{provide:o.AbstractNavigationService,useClass:De},{provide:o.AppDefaults,useClass:ke},{provide:o.DynamicComponentRefProvider,useClass:Xe},{provide:t.APP_INITIALIZER,useFactory:vt,deps:[o.AbstractI18nService,Ge],multi:!0},{provide:t.LOCALE_ID,useFactory:yt,deps:[o.AbstractI18nService]},{provide:u.HTTP_INTERCEPTORS,useClass:qe,multi:!0},Pe,i.DecimalPipe,i.DatePipe,j,H,Le,Fe,je,Je,Ge,$e,Ue,gt(re,10),gt(ae,1800)]}},e.prototype.getDeviceDetails=function(){return new Promise((function(e,t){window.top!==window?(window.top.postMessage({key:"on-load"},"*"),window.onmessage=function(t){var n=t.data;o.isObject(n)&&"switch-device"===n.key&&e(n.device)}):o.isIphone()||o.isIpod()||o.isIpad()?e({os:dt.IOS}):e({os:dt.ANDROID})}))},e}();Pt.decorators=[{type:t.NgModule,args:[{declarations:bt,imports:[i.CommonModule,n.RouterModule,u.HttpClientModule,h.ToastrModule,c.WmComponentsModule,p.PrefabModule,v.MobileRuntimeModule,o.CoreModule,r.SecurityModule,b.OAuthModule,a.VariablesModule,y.HttpServiceModule,wt],exports:[bt,i.CommonModule,c.WmComponentsModule,v.MobileRuntimeModule,o.CoreModule,r.SecurityModule,b.OAuthModule,a.VariablesModule,y.HttpServiceModule,wt],providers:[{provide:d["\u0275DomSharedStylesHost"],useClass:tt},{provide:d["\u0275DomRendererFactory2"],useClass:ct}],entryComponents:[ve]}]}],Pt.ctorParameters=function(){return[{type:v.MobileRuntimeModule},{type:o.App},{type:o.Viewport}]};var _t=[c.WmComponentsModule.forRoot(),v.MobileRuntimeModule.forRoot(),o.CoreModule.forRoot(),r.SecurityModule.forRoot(),b.OAuthModule.forRoot(),a.VariablesModule.forRoot(),y.HttpServiceModule.forRoot(),Pt.forRoot()],Ot=!1,St=function(){function e(e,t){this.appManager=e,this.appVariablesProvider=t}return e.prototype.resolve=function(){var e=this;return!!Ot||Promise.all([this.appManager.loadSecurityConfig(),this.appManager.loadMetadata(),this.appVariablesProvider.getAppVariables()]).then((function(t){return e.appManager.loadAppVariables(t[2])})).then((function(){return Ot=!0}))},e}();St.\u0275prov=C.\u0275\u0275defineInjectable({factory:function(){return new St(C.\u0275\u0275inject(j),C.\u0275\u0275inject(L))},token:St,providedIn:"root"}),St.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],St.ctorParameters=function(){return[{type:j},{type:L}]};var Et=!1,Tt=function(){function e(e){this.appManager=e}return e.prototype.resolve=function(){return Et||this.appManager.loadMetadata().then((function(){return Et=!0}))},e}();Tt.\u0275prov=C.\u0275\u0275defineInjectable({factory:function(){return new Tt(C.\u0275\u0275inject(j))},token:Tt,providedIn:"root"}),Tt.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],Tt.ctorParameters=function(){return[{type:j}]};var Rt=function(){function e(e){this.appManager=e,o.isMobileApp()||(this.loaded=this.appManager.isPrefabType()||this.appManager.isTemplateBundleType()||!o.getWmProjectProperties().securityEnabled)}return e.prototype.resolve=function(){var e=this;return this.loaded||this.appManager.loadSecurityConfig().then((function(){e.loaded=!0}))},e}();Rt.\u0275prov=C.\u0275\u0275defineInjectable({factory:function(){return new Rt(C.\u0275\u0275inject(j))},token:Rt,providedIn:"root"}),Rt.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],Rt.ctorParameters=function(){return[{type:j}]},e.AccessrolesDirective=fe,e.AppComponent=We,e.AppDefaultsService=ke,e.AppExtensionJSResolve=$e,e.AppExtensionProvider=F,e.AppJSProvider=M,e.AppJSResolve=Ge,e.AppManagerService=j,e.AppRef=Ee,e.AppSpinnerComponent=ge,e.AppVariablesProvider=L,e.AppVariablesResolve=St,e.AuthGuard=Le,e.BaseLayoutComponent=de,e.BasePageComponent=pe,e.BasePartialComponent=ie,e.BasePrefabComponent=ue,e.BaseSpaPageComponent=me,e.CACHE_PAGE=oe,e.CanDeactivateNgPageGuard=Ze,e.CanDeactivatePageGuard=Je,e.ComponentRefProvider=x,e.CustomToasterComponent=ve,e.DynamicComponentRefProviderService=Xe,e.EmptyPageComponent=ye,e.FragmentMonitor=te,e.HttpCallInterceptor=qe,e.I18nResolve=Ue,e.I18nServiceImpl=Ae,e.InitializeApp=vt,e.MAX_CACHE_AGE=ae,e.MAX_CACHE_SIZE=re,e.MetadataResolve=Tt,e.NavigationServiceImpl=De,e.PageNotFoundGaurd=je,e.PipeProvider=we,e.PipeService=Pe,e.PrefabConfigProvider=k,e.PrefabDirective=be,e.PrefabManagerService=H,e.PrefabPreviewComponent=He,e.REQUIRED_MODULES_FOR_DYNAMIC_COMPONENTS=wt,e.RoleGuard=Fe,e.RuntimeBaseModule=Pt,e.SecurityConfigResolve=Rt,e.SpinnerServiceImpl=Ce,e.ToasterServiceImpl=Te,e.WM_MODULES_FOR_ROOT=_t,e.WmDefaultRouteReuseStrategy=se,e.WmNgRouteReuseStrategy=ce,e.WmRouteReuseStrategy=le,e.commonPartialWidgets=ne,e.getPrefabBaseUrl=G,e.getPrefabConfigUrl=function(e){return G(e)+"/config.json"},e.getPrefabMinJsonUrl=function(e){return G(e)+"/pages/Main/page.min.json"},e.getPrefabPartialJsonUrl=function(e,t){return G(e)+"/pages/"+t+"/page.min.json"},e.isPrefabInPreview=B,e.setAngularLocale=yt,e["\u02750"]=z,e["\u0275a"]=gt,e["\u0275b"]=et,e["\u0275c"]=tt,e["\u0275d"]=ct,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/platform-browser-dynamic"),require("@angular/platform-browser"),require("@angular/common"),require("@angular/router"),require("@angular/common/http"),require("@angular/forms"),require("ngx-bootstrap/typeahead"),require("ngx-bootstrap/timepicker"),require("ngx-bootstrap/progressbar"),require("ngx-bootstrap/pagination"),require("ngx-bootstrap/modal"),require("ngx-bootstrap/tooltip"),require("ngx-bootstrap/datepicker"),require("ngx-bootstrap/dropdown"),require("ngx-bootstrap/popover"),require("ng-circle-progress"),require("ngx-toastr"),require("ngx-bootstrap/carousel"),require("@wm/core"),require("@wm/components/basic"),require("@wm/components/basic/progress"),require("@wm/components/basic/rich-text-editor"),require("@wm/components/basic/search"),require("@wm/components/basic/tree"),require("@wm/components/input"),require("@wm/components/input/calendar"),require("@wm/components/input/chips"),require("@wm/components/input/color-picker"),require("@wm/components/input/currency"),require("@wm/components/input/epoch"),require("@wm/components/input/file-upload"),require("@wm/components/input/rating"),require("@wm/components/input/slider"),require("@wm/mobile/runtime/dynamic"),require("@wm/components/data/card"),require("@wm/components/data/form"),require("@wm/components/data/list"),require("@wm/components/data/live-table"),require("@wm/components/data/pagination"),require("@wm/components/data/table"),require("@wm/components/chart"),require("@wm/components/containers/accordion"),require("@wm/components/containers/linear-layout"),require("@wm/components/containers/layout-grid"),require("@wm/components/containers/panel"),require("@wm/components/containers/tabs"),require("@wm/components/containers/tile"),require("@wm/components/containers/wizard"),require("@wm/components/dialogs/alert-dialog"),require("@wm/components/dialogs/iframe-dialog"),require("@wm/components/dialogs/login-dialog"),require("@wm/components/dialogs/partial-dialog"),require("@wm/components/navigation/breadcrumb"),require("@wm/components/navigation/menu"),require("@wm/components/navigation/navbar"),require("@wm/components/navigation/popover"),require("@wm/components/advanced/carousel"),require("@wm/components/advanced/login"),require("@wm/components/advanced/marquee"),require("@wm/components/page"),require("@wm/components/page/footer"),require("@wm/components/page/header"),require("@wm/components/page/left-panel"),require("@wm/components/page/right-panel"),require("@wm/components/page/top-nav"),require("@wm/components/prefab"),require("@wm/runtime/base"),require("@wm/variables"),require("@wm/security"),require("@wm/transpiler"),require("@angular/platform-browser/animations")):"function"==typeof define&&define.amd?define("@wm/runtime/dynamic",["exports","@angular/core","@angular/platform-browser-dynamic","@angular/platform-browser","@angular/common","@angular/router","@angular/common/http","@angular/forms","ngx-bootstrap/typeahead","ngx-bootstrap/timepicker","ngx-bootstrap/progressbar","ngx-bootstrap/pagination","ngx-bootstrap/modal","ngx-bootstrap/tooltip","ngx-bootstrap/datepicker","ngx-bootstrap/dropdown","ngx-bootstrap/popover","ng-circle-progress","ngx-toastr","ngx-bootstrap/carousel","@wm/core","@wm/components/basic","@wm/components/basic/progress","@wm/components/basic/rich-text-editor","@wm/components/basic/search","@wm/components/basic/tree","@wm/components/input","@wm/components/input/calendar","@wm/components/input/chips","@wm/components/input/color-picker","@wm/components/input/currency","@wm/components/input/epoch","@wm/components/input/file-upload","@wm/components/input/rating","@wm/components/input/slider","@wm/mobile/runtime/dynamic","@wm/components/data/card","@wm/components/data/form","@wm/components/data/list","@wm/components/data/live-table","@wm/components/data/pagination","@wm/components/data/table","@wm/components/chart","@wm/components/containers/accordion","@wm/components/containers/linear-layout","@wm/components/containers/layout-grid","@wm/components/containers/panel","@wm/components/containers/tabs","@wm/components/containers/tile","@wm/components/containers/wizard","@wm/components/dialogs/alert-dialog","@wm/components/dialogs/iframe-dialog","@wm/components/dialogs/login-dialog","@wm/components/dialogs/partial-dialog","@wm/components/navigation/breadcrumb","@wm/components/navigation/menu","@wm/components/navigation/navbar","@wm/components/navigation/popover","@wm/components/advanced/carousel","@wm/components/advanced/login","@wm/components/advanced/marquee","@wm/components/page","@wm/components/page/footer","@wm/components/page/header","@wm/components/page/left-panel","@wm/components/page/right-panel","@wm/components/page/top-nav","@wm/components/prefab","@wm/runtime/base","@wm/variables","@wm/security","@wm/transpiler","@angular/platform-browser/animations"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.runtime=e.wm.runtime||{},e.wm.runtime.dynamic={}),e.ng.core,e.ng.platformBrowserDynamic,e.ng.platformBrowser,e.ng.common,e.ng.router,e.ng.common.http,e.ng.forms,e["ngx-bootstrap"].typeahead,e["ngx-bootstrap"].timepicker,e["ngx-bootstrap"].progressbar,e["ngx-bootstrap"].pagination,e["ngx-bootstrap"].modal,e["ngx-bootstrap"].tooltip,e["ngx-bootstrap"].datepicker,e["ngx-bootstrap"].dropdown,e["ngx-bootstrap"].popover,e.ngCircleProgress,e.ngxToastr,e["ngx-bootstrap"].carousel,e.wm.core,e.wm.components.basic,e.wm.components.basic.progress,e.wm.components.basic.richtexteditor,e.wm.components.basic.search,e.wm.components.basic.tree,e.wm.components.input,e.wm.components.input.calendar,e.wm.components.input.chips,e.wm.components.input.colorpicker,e.wm.components.input.currency,e.wm.components.input.epoch,e.wm.components.input.fileupload,e.wm.components.input.rating,e.wm.components.input.slider,e.wm.mobile.runtime.dynamic,e.wm.components.data.card,e.wm.components.data.form,e.wm.components.data.list,e.wm.components.data.livetable,e.wm.components.data.pagination,e.wm.components.data.table,e.wm.components.chart,e.wm.components.containers.accordion,e.wm.components.containers.linearlayout,e.wm.components.containers.layoutgrid,e.wm.components.containers.panel,e.wm.components.containers.tabs,e.wm.components.containers.tile,e.wm.components.containers.wizard,e.wm.components.dialogs.alertdialog,e.wm.components.dialogs.iframedialog,e.wm.components.dialogs.logindialog,e.wm.components.dialogs.partialdialog,e.wm.components.navigation.breadcrumb,e.wm.components.navigation.menu,e.wm.components.navigation.navbar,e.wm.components.navigation.popover,e.wm.components.advanced.carousel,e.wm.components.advanced.login,e.wm.components.advanced.marquee,e.wm.components.page,e.wm.components.page.footer,e.wm.components.page.header,e.wm.components.page.leftpanel,e.wm.components.page.rightpanel,e.wm.components.page.topnav,e.wm.components.prefab,e.wm.runtime.base,e.wm.variables,e.wm.security,e.wm.transpiler,e.ng.platformBrowser.animations)}(this,(function(e,t,n,i,o,r,a,s,l,c,p,u,d,h,m,f,g,v,y,b,w,P,O,S,E,T,R,A,C,I,D,N,x,k,M,L,F,j,B,G,V,U,W,q,z,H,Y,K,Q,X,J,Z,ee,te,ne,ie,oe,re,ae,se,le,ce,pe,ue,de,he,me,fe,ge,ve,ye,be,we){"use strict";function Pe(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var _e=Pe(t),Oe=Pe(a),Se=function(e,t){return(Se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function Ee(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Se(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Te(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))}function Re(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}Object.create;function Ae(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function Ce(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var Ie=function(){function e(e,t,n,i,o,r,a,s,l,c,p,u,d){this.injector=e,this.route=t,this.vcRef=n,this.appRef=i,this.metadataService=o,this.securityService=r,this.appManager=a,this.app=s,this.ngZone=l,this.elRef=c,this.spinnerService=p,this.componentRefProvider=u,this.router=d}return e.prototype.getTargetNode=function(){return this.elRef.nativeElement},e.prototype.resetViewContainer=function(){this.vcRef.clear(),this.getTargetNode().innerHTML=""},e.prototype.renderPage=function(e){var t=this,n=this.getTargetNode();this.appManager.loadAppVariables().then((function(){return Te(t,void 0,void 0,(function(){var t,i;return Re(this,(function(o){switch(o.label){case 0:return[4,this.componentRefProvider.getComponentFactoryRef(e,ge.ComponentType.PAGE)];case 1:return(t=o.sent())?(i=this.vcRef.createComponent(t,0,this.injector),this.instance=i.instance,n.appendChild(i.location.nativeElement)):ge.BasePageComponent.clear(),this.vcRef.length>1&&this.vcRef.remove(1),[2]}}))}))}))},e.prototype.renderPrefabPreviewPage=function(){this.router.navigate(["prefab-preview"])},e.prototype.loadPage=function(e){var t=this;this.ngZone.run((function(){e&&t.renderPage(e)}))},e.prototype.ngOnInit=function(){var e=this;this.app.isPrefabType?this.renderPrefabPreviewPage():($(this.getTargetNode()).find(">div").first().remove(),this.subscription=this.route.params.subscribe((function(t){var n=t.pageName;e.loadPage(n)})))},e.prototype.ngOnDestroy=function(){this.vcRef.clear(),this.subscription&&this.subscription.unsubscribe()},e.prototype.ngOnAttach=function(){this.getTargetNode().appendChild(this.instance.$page[0]),this.instance.ngOnAttach()},e.prototype.ngOnDetach=function(){this.instance.ngOnDetach()},e}();Ie.decorators=[{type:t.Component,args:[{selector:"app-page-outlet",template:"<div></div>"}]}],Ie.ctorParameters=function(){return[{type:t.Injector},{type:r.ActivatedRoute},{type:t.ViewContainerRef},{type:t.ApplicationRef},{type:ve.MetadataService},{type:ye.SecurityService},{type:ge.AppManagerService},{type:w.App},{type:t.NgZone},{type:t.ElementRef},{type:w.AbstractSpinnerService},{type:ge.ComponentRefProvider},{type:r.Router}]};var De={securityConfig:ge.SecurityConfigResolve,metadata:ge.MetadataResolve,appMetaConfig:ge.AppExtensionJSResolve},Ne=[{path:"",pathMatch:"full",resolve:De,component:ge.EmptyPageComponent},{path:"prefab-preview",pathMatch:"full",resolve:De,component:ge.PrefabPreviewComponent},{path:":pageName",pathMatch:"full",resolve:De,component:Ie,canDeactivate:[ge.CanDeactivatePageGuard]}],xe=function(e){function t(t){var n=e.call(this)||this;return n.$http=t,n}return Ee(t,e),t.prototype.getAppScriptFn=function(){return this.$http.get("./app.js",{responseType:"text"}).toPromise().then((function(e){return new Function("App","Utils","Injector",e)}))},t}(ge.AppJSProvider);xe.\u0275prov=_e.\u0275\u0275defineInjectable({factory:function(){return new xe(_e.\u0275\u0275inject(Oe.HttpClient))},token:xe,providedIn:"root"}),xe.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],xe.ctorParameters=function(){return[{type:a.HttpClient}]};var ke=new Map,Me=function(){function e(e){this.$http=e}return e.prototype.get=function(e,t){var n=ke.get(e);return n?Promise.resolve(n):this.$http.get(e).then((function(n){return t&&ke.set(e,n),n}))},e.prototype.clearCache=function(){ke.clear()},e}();Me.decorators=[{type:t.Injectable}],Me.ctorParameters=function(){return[{type:w.AbstractHttpService}]};var Le=function(e){function t(t){var n=e.call(this)||this;return n.resourceManager=t,n}return Ee(t,e),t.prototype.getAppVariables=function(){return Te(this,void 0,void 0,(function(){return Re(this,(function(e){return[2,this.resourceManager.get("./app.variables.json")]}))}))},t}(ge.AppVariablesProvider);Le.\u0275prov=_e.\u0275\u0275defineInjectable({factory:function(){return new Le(_e.\u0275\u0275inject(Me))},token:Le,providedIn:"root"}),Le.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],Le.ctorParameters=function(){return[{type:Me}]};var Fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ee(t,e),t.prototype.loadFormatterConfigScript=function(e){try{w.appendScriptToHead(e)}catch(e){console.warn("Error while loading the formatters.js file")}},t}(ge.AppExtensionProvider);Fe.\u0275prov=_e.\u0275\u0275defineInjectable({factory:function(){return new Fe},token:Fe,providedIn:"root"}),Fe.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}];var je=new Map;window.resourceCache=je;var Be=new Map;Be.set(ge.ComponentType.PAGE,new Map),Be.set(ge.ComponentType.PARTIAL,new Map),Be.set(ge.ComponentType.PREFAB,new Map);var Ge=function(e){return decodeURIComponent(e.replace(/\+/g," "))},Ve=Ge,$e=function(e,t,n){return t===ge.ComponentType.PAGE||t===ge.ComponentType.PARTIAL?n&&n.prefab?ge.getPrefabPartialJsonUrl(n.prefab,e):"./pages/"+e+"/page.min.json":t===ge.ComponentType.PREFAB?ge.getPrefabMinJsonUrl(e):void 0},Ue=$e,We=new Map,qe=function(e,t,n,i,o,r){var a=We.get(t);("Partial"!==n||_.isUndefined(i.Prefab))&&a||(a=new Function(n,"App","Utils",e),We.set(t,a)),a(i,o,r)},ze=qe,He=function(){function e(){}return e.prototype.init=function(){},e}(),Ye=function(e){var n=function(){};return n.decorators=[{type:t.NgModule,args:[{declarations:[e],imports:[ge.RuntimeBaseModule],schemas:[t.CUSTOM_ELEMENTS_SCHEMA,t.NO_ERRORS_SCHEMA]}]}],n},Ke=Ye,Qe=function(e,n,i,o,r,a){var s={template:i,styles:[o],encapsulation:t.ViewEncapsulation.None},l=He,c="",p="";switch(n){case ge.ComponentType.PAGE:l=ge.BasePageComponent,c="app-page-"+e,p="Page";break;case ge.ComponentType.PARTIAL:l=ge.BasePartialComponent,c="app-partial-"+e,p="Partial";break;case ge.ComponentType.PREFAB:l=ge.BasePrefabComponent,c="app-prefab-"+e,p="Prefab"}var u=function(t){function i(i){var o=t.call(this)||this;switch(o.injector=i,n){case ge.ComponentType.PAGE:o.pageName=e;break;case ge.ComponentType.PARTIAL:o.partialName=e;break;case ge.ComponentType.PREFAB:o.prefabName=e}return t.prototype.init.call(o),o}return Ee(i,t),i.prototype.evalUserScript=function(e,t,n){qe(r,c,p,e,t,n)},i.prototype.getVariables=function(){return JSON.parse(a)},i.prototype.getExpressions=function(){return{}},i}(l);return u.decorators=[{type:t.Component,args:[Object.assign(Object.assign({},s),{selector:c,providers:[{provide:w.UserDefinedExecutionContext,useExisting:u}]})]}],u.ctorParameters=function(){return[{type:t.Injector}]},u},Xe=Qe,Je=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r.resouceMngr=t,r.app=n,r.appManager=i,r.compiler=o,r}return Ee(t,e),t.prototype.loadResourcesOfFragment=function(e,t,n){var i=this,o=$e(e,t,n),r=je.get(o);return r?Promise.resolve(r):this.resouceMngr.get(o,!0).then((function(n){var i=n.markup,r=n.script,a=n.styles,s=n.variables,l={markup:be.transpile(Ge(i)).markup,script:Ge(r),styles:be.scopeComponentStyles(e,t,Ge(a)),variables:w.getValidJSON(Ge(s))};return je.set(o,l),l}),(function(e){var t=e.details.status,n={404:i.app.appLocale.MESSAGE_PAGE_NOT_FOUND||"The page you are trying to reach is not available",403:i.app.appLocale.LABEL_ACCESS_DENIED||"Access Denied"};return Promise.reject(n[t])}))},t.prototype.getComponentFactoryRef=function(e,t,n){return Te(this,void 0,void 0,(function(){var i,o,r,a=this;return Re(this,(function(s){return(i=Be.get(t))&&(r=n&&n.prefab?n.prefab+e:e,o=i.get(r))?[2,o]:[2,this.loadResourcesOfFragment(e,t,n).then((function(i){var r=i.markup,s=i.script,l=i.styles,c=i.variables,p=Qe(e,t,r,l,s,JSON.stringify(c)),u=Ye(p);o=a.compiler.compileModuleAndAllComponentsSync(u).componentFactories.filter((function(e){return e.componentType===p}))[0];var d=n&&n.prefab?n.prefab+e:e;return Be.get(t).set(d,o),o}),(function(e){if(e){var t="Error while loading page";console.log(t,e),a.appManager.notifyApp(_.isString(e)?e:t+", check browser console for error details","error")}}))]}))}))},t.prototype.clearComponentFactoryRefCache=function(){this.resouceMngr.clearCache(),je.clear(),Be.forEach((function(e){e.clear()}))},t}(ge.ComponentRefProvider);Je.decorators=[{type:t.Injectable}],Je.ctorParameters=function(){return[{type:Me},{type:w.App},{type:ge.AppManagerService},{type:t.Compiler}]};var Ze=new Map,et=function(e){function t(t){var n=e.call(this)||this;return n.resourceMngr=t,n}return Ee(t,e),t.prototype.getConfig=function(e){var t=Ze.get(e);return t?Promise.resolve(t):this.resourceMngr.get(ge.getPrefabConfigUrl(e)).then((function(t){return Ze.set(e,t),t}))},t}(ge.PrefabConfigProvider);et.decorators=[{type:t.Injectable}],et.ctorParameters=function(){return[{type:Me}]};var tt=r.RouterModule.forRoot(Ne,{useHash:!0,scrollPositionRestoration:"top"}),nt=y.ToastNoAnimationModule.forRoot({maxOpened:1,autoDismiss:!0}),it=a.HttpClientXsrfModule.withOptions({cookieName:"wm_xsrf_token",headerName:w.getWmProjectProperties().xsrf_header_name}),ot=d.ModalModule.forRoot(),rt=m.BsDatepickerModule.forRoot(),at=m.DatepickerModule.forRoot(),st=c.TimepickerModule.forRoot(),lt=f.BsDropdownModule.forRoot(),ct=u.PaginationModule.forRoot(),pt=l.TypeaheadModule.forRoot(),ut=p.ProgressbarModule.forRoot(),dt=b.CarouselModule.forRoot(),ht=g.PopoverModule.forRoot(),mt=v.NgCircleProgressModule.forRoot({}),ft=h.TooltipModule.forRoot(),gt=[m.BsDatepickerModule,m.DatepickerModule,c.TimepickerModule,f.BsDropdownModule,u.PaginationModule,l.TypeaheadModule,p.ProgressbarModule,b.CarouselModule,g.PopoverModule,v.NgCircleProgressModule,h.TooltipModule,P.BasicModule,O.ProgressModule,S.RichTextEditorModule,E.SearchModule,T.TreeModule,A.CalendarModule,C.ChipsModule,I.ColorPickerModule,D.CurrencyModule,N.EpochModule,x.FileUploadModule,R.InputModule,k.RatingModule,M.SliderModule,F.CardModule,j.FormModule,B.ListModule,G.LiveTableModule,V.PaginationModule,U.TableModule,W.ChartModule,q.AccordionModule,z.LinearLayoutModule,H.LayoutGridModule,Y.PanelModule,K.TabsModule,Q.TileModule,X.WizardModule,J.AlertDialogModule,Z.IframeDialogModule,ee.LoginDialogModule,te.PartialDialogModule,ne.BreadcrumbModule,ie.MenuModule,oe.NavbarModule,re.PopoverModule,ae.CarouselModule,se.LoginModule,le.MarqueeModule,ce.PageModule,pe.FooterModule,ue.HeaderModule,de.LeftPanelModule,he.RightPanelModule,me.TopNavModule,fe.PrefabModule];ge.REQUIRED_MODULES_FOR_DYNAMIC_COMPONENTS.push.apply(ge.REQUIRED_MODULES_FOR_DYNAMIC_COMPONENTS,Ce([],Ae(gt))),ge.REQUIRED_MODULES_FOR_DYNAMIC_COMPONENTS.push.apply(ge.REQUIRED_MODULES_FOR_DYNAMIC_COMPONENTS,Ce([],Ae(L.MOBILE_COMPONENT_MODULES_FOR_ROOT))),ge.REQUIRED_MODULES_FOR_DYNAMIC_COMPONENTS.push(s.FormsModule,s.ReactiveFormsModule);var vt=function(e,t,n){this.app=e,this.inj=t,this.componentRefProvider=n,window.cordova&&this.app.subscribe("userLoggedOut",this.componentRefProvider.clearComponentFactoryRefCache.bind(this.componentRefProvider))};vt.decorators=[{type:t.NgModule,args:[{declarations:[Ie],imports:[i.BrowserModule,we.BrowserAnimationsModule,o.CommonModule,r.RouterModule,a.HttpClientModule,ot,rt,at,st,lt,ct,pt,ft,ut,dt,ht,mt,tt,nt,it,L.MobileRuntimeDynamicModule,ge.WM_MODULES_FOR_ROOT],providers:[Me,{provide:ge.AppJSProvider,useClass:xe},{provide:ge.AppVariablesProvider,useClass:Le},{provide:ge.AppExtensionProvider,useClass:Fe},{provide:ge.ComponentRefProvider,useClass:Je},{provide:w.PartialRefProvider,useClass:Je},{provide:ge.PrefabConfigProvider,useClass:et},{provide:r.RouteReuseStrategy,useClass:ge.WmRouteReuseStrategy}],bootstrap:[ge.AppComponent]}]}],vt.ctorParameters=function(){return[{type:w.App},{type:t.Injector},{type:ge.ComponentRefProvider}]};var yt="debugMode";"true"!==sessionStorage.getItem(yt)&&t.enableProdMode(),console.time("bootstrap"),document.addEventListener("DOMContentLoaded",(function(){new Promise((function(e){window.cordova?document.addEventListener("deviceready",e):e()})).then((function(){return n.platformBrowserDynamic().bootstrapModule(vt)})).then((function(e){var n=e.injector.get(t.ApplicationRef);window.addEventListener("unload",(function(){n.components.map((function(e){return e&&e.destroy()}))})),console.timeEnd("bootstrap")}),(function(e){return console.log(e)}))})),window.debugMode=function(e){_.isEmpty(e)&&(e=!0);var t=e?"true":"false";sessionStorage.getItem(yt)!==t&&(sessionStorage.setItem(yt,t),window.location.reload())};e.AppExtensionProviderService=Fe,e.AppJSProviderService=xe,e.AppModule=vt,e.AppResourceManagerService=Me,e.AppVariablesProviderService=Le,e.ComponentRefProviderService=Je,e.PageWrapperComponent=Ie,e.PrefabConfigProviderService=et,e.bsDatePickerModule=rt,e.bsDropdownModule=lt,e.carouselModule=dt,e.datepickerModule=at,e.httpClientXsrfModule=it,e.modalModule=ot,e.ngCircleProgressModule=mt,e.paginationModule=ct,e.popoverModule=ht,e.progressbarModule=ut,e.routerModule=tt,e.timepickerModule=st,e.toastrModule=nt,e.tooltipModule=ft,e.typeaheadModule=pt,e["\u02750"]=Ve,e["\u02751"]=Ue,e["\u02752"]=ze,e["\u02753"]=Ke,e["\u02754"]=Xe,e["\u0275a"]=Ne,Object.defineProperty(e,"__esModule",{value:!0})}));