@wavemaker/app-runtime-wm-build 11.3.2-next.27801 → 11.4.0-next.1417011

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.
@@ -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 d=function(e,t){return(d=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 u(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}d(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,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(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(r,s)}l((i=i.apply(e,t||[])).next())}))}function m(e,t){var n,i,o,a,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=2&a[0]?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,i=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(!(o=r.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){r=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){r.label=a[1];break}if(6===a[0]&&r.label<o[1]){r.label=o[1],o=a;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(a);break}o[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(e){a=[6,e],i=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,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,a=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)r.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return r}function v(e,t,n){if(n||2===arguments.length)for(var i,o=0,a=t.length;o<a;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,a,r,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(r=1,c=!1,s=!1,o=i+2;o<e.length;o++)if(" "!==(a=e[o])&&(c||(s='"'===e[o]||"'"===e[o],c=!0),"["===a?r++:"]"===a&&r--,!r)){l=e.substring(i+2,o),p+=s?"__1["+l+"]":l;break}i=o}else p+=t;return p},E=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},R=function(e,t,n){var o,a=t.field,r=t.expression,s=t.bindExpression;return s?(o=s.replace("bind:",""),i.checkIsCustomPipeExpression(o)&&(o+=": __1"),o=O(o)):o=r||a,s||r?i.$parseExpr(o)(n,Object.assign({},e,{__1:e})):_.get(e,a)},A=function(e){return P.has(e)},T=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},S=function(e){return""===e||"none"===e?e:"url("+T(e)+")"};function C(e,n,i){return{provide:n,useExisting:t.forwardRef((function(){return e})),multi:i}}function I(e){return C(e,y)}var D,x=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.join("_")},N={number:["number","integer","big_integer","short","float","big_decimal","double","long","byte"],string:["string","text"],character:["character"],date:["date","time","timestamp","datetime"]},M={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"]},k={boolean:["exact","null","isnotnull"],clob:[],blob:[]},L=function(e){var t=[];return _.isArray(e)?(e.forEach((function(e){t=t.concat(L(e))})),t):_.isObject(e)?(_.forEach(e,(function(e,n){e&&(t=t.concat(n.split(" ")))})),t):void 0},F=function(e,t){var n,i,o=e.toAdd||e,a=e.toRemove||t;return _.isObject(e)?(n=_.isArray(o)?o:L(o||[]),i=a?_.isArray(a)?a:L(a):[]):(n=o?[o]:[],i=a?[a]:[]),{toAdd:n,toRemove:i}},j=function(e,t,n,o){var a,r,s,l,c,p;o||(o={}),_.forEach(e,(function(e,d){_.includes(d,".")&&(l=_.split(d,"."),r=l[0],s=l[1],p=!0),o.noModifyTitle?a=d:_.isString(d)?(a=i.prettifyLabel(d),a=i.deHyphenate(a),a=n?i.initCaps(n)+" "+a:a):a=d,d=n?n+"."+d:d,c=p?(c=_.split(a," ")).length>1?c[c.length-2]+" "+c[c.length-1]:c[0]:a;var u=o.setBindingField?{displayName:c,field:d,relatedTable:r,relatedField:s||a}:{displayName:c,relatedTable:r,relatedField:s||a};if(!_.isObject(e)||_.isArray(e)&&!e[0]){if(o.upperBound&&o.columnCount===o.upperBound)return;t.terminals.push(u),o.columnCount+=1}else o.columnCount!==o.upperBound&&t.objects.push(u),_.isArray(e)&&e[0]?j(e[0],t,d+"[0]",o):j(e,t,d,o)}))},B=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,(D=e.APPLY_STYLES_TYPE||(e.APPLY_STYLES_TYPE={}))[D.CONTAINER=0]="CONTAINER",D[D.SCROLLABLE_CONTAINER=1]="SCROLLABLE_CONTAINER",D[D.INNER_SHELL=2]="INNER_SHELL",D[D.SHELL=3]="SHELL";var G={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"},V=function(e){return!!G[e]},W={height:!0,overflow:!0,padding:!0,paddingbottom:!0,paddingleft:!0,paddingright:!0,paddingtop:!0},U={textalign:!0},q={textalign:!0,width:!0};function z(t,n,o,a){var r=Object.create(null);a&&a.forEach((function(e){return r[e]=!0})),n.registerStyleChangeListener((function(a,s){if(!(r[a]||o===e.APPLY_STYLES_TYPE.SHELL&&W[a])){if(o===e.APPLY_STYLES_TYPE.INNER_SHELL){if(!W[a])return;"height"===a&&i.setCSS(t,"overflow",s?"auto":"")}if(o!==e.APPLY_STYLES_TYPE.CONTAINER||!U[a]){if(o===e.APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER){if(q[a])return;"height"===a&&i.setCSS(t,"overflow",s?"auto":"")}"fontsize"===a||"fontunit"===a?i.setCSS(t,"fontSize",""===n.fontsize?"":n.fontsize+(n.fontunit||"px")):"backgroundimage"===a?i.setCSS(t,"backgroundImage",n.picturesource||S(s)):G[a]&&i.setCSS(t,G[a],s)}}}))}var H,Y="wm-form-field-",K=function(){var e=new Map;for(var t in i.FormWidgetType)e.set(Y+i.FormWidgetType[t],new Map);return e}(),Q=function(e){return K.get(e)},Z=function(e,t){K.set(e,t),window.WM_LOADED_COMPONENTS=v(v([],g(window.WM_LOADED_COMPONENTS||[])),[e])};e.PROP_TYPE=void 0,(H=e.PROP_TYPE||(e.PROP_TYPE={}))[H.BOOLEAN=1]="BOOLEAN",H[H.NUMBER=2]="NUMBER",H[H.STRING=3]="STRING";var J={type:e.PROP_TYPE.STRING},X={type:e.PROP_TYPE.NUMBER},ee={type:e.PROP_TYPE.BOOLEAN},te={arrayType:!0},ne=function(){Z("wm-container",new Map([["animation",J],["class",J],["conditionalclass",te],["conditionalstyle",te],["content",J],["name",J],["show",Object.assign({value:!0},ee)]]))},ie=new Map,oe=new i.IDGenerator("widget-id"),ae=new Map([["tap","click"]]),re={BLOCK:"block",INLINE_BLOCK:"inline-block",INLINE:"inline"},se=new Set(["readonly","autofocus","disabled","startchecked","multiple","selected","required","controls","autoplay","loop","muted","show"]),le=function(e){return se.has(e)},ce=new Set(["width","height","iconheight","iconwidth","popoverwidth","popoverheight","imagewidth","imageheight"]),pe=function(e){return ce.has(e)},de=function(t,n,o){return o===e.PROP_TYPE.BOOLEAN?i.toBoolean(n,le(t)&&t):o===e.PROP_TYPE.NUMBER?+n:n},ue=function(e,t,n){var o=e.widgetId,a=e[t];i.isChangeFromWatch()||i.$unwatch(x(o,t)),i.resetChangeFromWatch();var r=Q(e.getWidgetSubType()).get(t);if(r){var s=r.type;s&&(n=de(t,n,s))}if(n!==a||i.isObject(n)||i.isObject(a)){if(pe(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:r&&n!=r.value&&(n="./"+n)}e[t]=n,V(t)?e.notifyStyleChange(t,n,a):("conditionalclass"===t&&(n=F(n,a)),r&&e.notifyPropertyChange(t,n,a)),i.$appDigest()}},he={set:function(e,t,n){return ue(e,t,n),!0},get:function(e,t){var n=e[t];return _.isFunction(n)?n.bind(e):n}},me=window.requestAnimationFrame,fe=[],ge=function(e){fe.length||me((function(){fe.forEach((function(e){return e()})),fe.length=0})),fe.push(e)},ve=function(){function e(){}return e.create=function(e,t,n){if(window.Proxy)return new Proxy(e,he);var i=Object.create(e);return ge((function(){for(var t in e)_.isFunction(e[t])&&"constructor"!==t&&"super"!==t&&!_.startsWith(t,"ng")&&(e[t]=e[t].bind(e))})),Object.keys(G).forEach((function(t){Object.defineProperty(i,t,{get:function(){return e[t]},set:function(n){return ue(e,t,n)}})})),n&&n.forEach((function(t,n){Object.defineProperty(i,n,{get:function(){return e[n]},set:function(t){return ue(e,n,t)}})})),i},e}(),ye=function(e,t,n){t&&t.length&&i.removeClass(n,_.join(t," ")),e&&e.length&&i.addClass(n,_.join(e," "))},be=function(e,t,n){t&&_.isObject(t)&&Object.keys(t||{}).forEach((function(e){i.setCSS(n,e,"")}));e&&_.isObject(e)&&i.setCSSFromObj(n,e)},we=function(){function e(e,n,o){var a=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||re.BLOCK,this.context=e.view.context,this.widget=this.createProxy(),this.eventManager=e.get(r.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(){a.initWidget(),a.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 ve.create(this,this.widgetSubType,Q(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 oe.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)ye(t.toAdd,t.toRemove,this.nativeElement);else if("autoplay"===e){var a="wm-audio"===this.widgetType?"audio":"video";this.nativeElement.querySelector(a).load()}else"conditionalstyle"===e?be(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,a,r;this.registerDestroyListener((t=this.widget,n=this.viewParent,o=this.widgetId,a=e,r=!1,ie.set(o,t),a&&i.isDefined(n.Widgets)&&(r=!0,n.Widgets[a]=t),function(){ie.delete(o),r&&(n.Widgets[a]=void 0)}))},e.prototype.getMappedEventName=function(e){return ae.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,a=i.$parseEvent(t),r=this.context;r.widget=this.widget;var s=a.bind(void 0,this.viewParent,r),l=function(){var t;i.$invokeWatchers(!0);try{if(r.$event=r.$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:r}),this[_.camelCase("on-"+e)]=l,this.toBeSetupEventsQueue.push((function(){o.handleEvent(o.nativeElement,o.getMappedEventName(e),l,r,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}),x(this.widgetId,e),"datasource"===e,this.widgetProps.get(e),(function(){return n.isMuted})))},e.prototype.removePropertyBinding=function(e){i.$unwatch(x(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],a=n[1],r=n[2],s=n.length;"bind"===a?("show"===o&&(this.nativeElement.hidden=!0),this.processBindAttr(o,t)):"event"===a?this.processEventAttr(o,t,r):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 a=g(o.value,3),r=a[1],s=a[2];this.$attrs.set(r,s),this.processAttr(r,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=Q(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)||V(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}();we.decorators=[{type:t.Injectable}],we.ctorParameters=function(){return[{type:t.Injector},{type:void 0},{type:Promise}]};var Pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t}(we);Pe.decorators=[{type:t.Injectable}];var _e=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()}};_e.decorators=[{type:t.Directive,args:[{selector:"[redrawable]"}]}],_e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Self},{type:t.Inject,args:[y]}]}]};var Oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(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}(Pe);Oe.decorators=[{type:t.Directive}],Oe.propDecorators={reDrawableComponents:[{type:t.ContentChildren,args:[_e,{descendants:!0}]}]};var Ee="app-container",Re={widgetType:"wm-container",hostClass:Ee},Ae=function(t){function n(n){var o=t.call(this,n,Re)||this;return i.addClass(o.nativeElement,Ee),z(o.nativeElement,o,e.APPLY_STYLES_TYPE.CONTAINER),o}return u(n,t),n}(Oe);Ae.initializeProps=ne(),Ae.decorators=[{type:t.Directive,args:[{selector:"[wmContainer]",providers:[I(Ae)]}]}],Ae.ctorParameters=function(){return[{type:t.Injector}]};var Te=function(){function e(){}return e.prototype.transform=function(e,t,n){return i.transformFileURI(T(e,t,n))},e}();Te.decorators=[{type:t.Pipe,args:[{name:"image"}]}];var Se=function(){Z("wm-item-template",new Map([["content",J]]))},Ce={widgetType:"wm-item-template"},Ie=function(e){function t(t,n,i){var o=e.call(this,t,Ce)||this;return o.app=i,o.nativeElement=n.nativeElement,o.context=t.view.context,o}return u(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}(Pe);Ie.initializeProps=Se(),Ie.decorators=[{type:t.Directive,args:[{selector:"[wmItemTemplate]",exportAs:"itemTemplateRef",providers:[I(Ie)]}]}],Ie.ctorParameters=function(){return[{type:t.Injector},{type:t.ElementRef},{type:i.App}]},Ie.propDecorators={userComponentParams:[{type:t.Input}],wmItemTemplate:[{type:t.Input}]};var De=function(){Z("wm-repeat-template",new Map([["show",ee]]))},xe={widgetType:"wm-repeat-template",hostClass:"app-repeat-item"},Ne=function(e){function t(t){var n=e.call(this,t,xe)||this;return z(n.nativeElement,n),n}return u(t,e),t}(Pe);Ne.initializeProps=De(),Ne.decorators=[{type:t.Directive,args:[{selector:"[wmRepeatTemplate]"}]}],Ne.ctorParameters=function(){return[{type:t.Injector}]};var Me=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}();Me.decorators=[{type:t.Directive,args:[{selector:"[lazyLoad]"}]}],Me.ctorParameters=function(){return[{type:t.Injector},{type:t.TemplateRef},{type:t.ViewContainerRef}]},Me.propDecorators={lazyLoad:[{type:t.Input}]};var ke=function(){Z("wm-message",new Map([["animation",J],["caption",Object.assign({value:"Message"},J)],["class",J],["hideclose",Object.assign({value:!1},ee)],["name",J],["show",Object.assign({value:!0},ee)],["type",Object.assign({value:"success"},J)]]))},Le={widgetType:"wm-message",hostClass:"alert app-message"},Fe=function(e){function t(t){var n=e.call(this,t,Le)||this;return n.messageClass="",n.messageIconClass="",n.type="",z(n.nativeElement,n),n}return u(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}(Pe);Fe.initializeProps=ke(),Fe.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:[I(Fe)],exportAs:"wmMessage"}]}],Fe.ctorParameters=function(){return[{type:t.Injector}]};var je=function(){Z("wm-partial",new Map([["name",J]]))},Be={widgetType:"wm-partial",hostClass:"app-partial clearfix"},Ge=function(e){function t(t,n){var i=e.call(this,t,Be)||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 u(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}(Pe);Ge.initializeProps=je(),Ge.decorators=[{type:t.Directive,args:[{selector:"[wmPartial]",providers:[I(Ge)]}]}],Ge.ctorParameters=function(){return[{type:t.Injector},{type:i.Viewport}]};var $e=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 a=this;this.widgetRef.partialParams[e]=t,!t&&n?this.widgetRef.registerDestroyListener(i.$watch(n,this.widgetRef.getViewParent(),_.get(this.widgetRef,"context"),(function(t){a.widgetRef.partialParams[e]=t,a.widgetRef.params$.next()}))):this.widgetRef.params$.next()},e}();$e.decorators=[{type:t.Directive,args:[{selector:"[partialContainer]"}]}],$e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Self},{type:t.Inject,args:[y]}]}]};var Ve=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}();Ve.decorators=[{type:t.Directive,args:[{selector:"[wmParam]"}]}],Ve.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Attribute,args:["value.bind"]}]},{type:void 0,decorators:[{type:t.Attribute,args:["type"]}]},{type:$e}]},Ve.propDecorators={name:[{type:t.Input}],value:[{type:t.Input}]};var We=function(){function e(e,t,n,o,a,r,s,c){var p=this;this.componentInstance=e,this.vcRef=t,this.elRef=n,this.inj=o,this.app=a,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 d=e.params$.pipe(l.filter((function(){return p.contentInitialized})),l.debounceTime(200)).subscribe((function(){return p.renderPartial(e.content)}));e.registerDestroyListener((function(){return d.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,a,r=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())&&((a=this.vcRef.createComponent(o,0,this.inj))&&a._component&&n&&(a._component.prefabName=n),this.$target||(this.$target=this.elRef.nativeElement.querySelector("[partial-container-target]")||this.elRef.nativeElement),this.$target.innerHTML="",this.$target.appendChild(a.location.nativeElement),this.contentInitialized=!0,setTimeout((function(){return r.onLoadSuccess()}),200)),[2]}}))}))},e.prototype.onLoadSuccess=function(){this.componentInstance.invokeEventCallback("load"),this.app.notify("partialLoaded")},e}();We.decorators=[{type:t.Directive,args:[{selector:"[partialContainer]"}]}],We.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 Ue=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}();Ue.decorators=[{type:t.Directive,args:[{selector:"[showInDevice]"}]}],Ue.ctorParameters=function(){return[{type:t.ElementRef},{type:we,decorators:[{type:t.Inject,args:[y]}]},{type:t.ViewContainerRef},{type:t.Injector},{type:t.TemplateRef}]},Ue.propDecorators={showInDevice:[{type:t.Input}]};var qe=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},a=this._$el[0];if(!a.children.length)return null;this._$el.addClass("smoothscroll-wrapper"),a.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 r=new IScroll(a,o);if(e){_.forEach(e,(function(e,t){_.forEach(e,(function(e){r.on(t,e)}))}));var s=this;r.on("scrollStart",(function(){this._scrolling=!0,i.isMobileApp()&&s.app.notify("iscroll-start",{})})),r.on("scrollEnd",(function(){this._scrolling=!1})),r.refresh()}return this.app.notify("iscroll-start",{}),r.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=r,_.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:r,destroy:function(){r.destroy(),$(r.scroller).css({"transition-timing-function":"","transition-duration":"",transform:""}),r=null,delete a.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?(ze(this._smoothScrollInstance.iScroll),this._lastScrollY=this._$el[0].iscroll.maxScrollY):this._smoothScrollInstance.iScroll.refresh(),this._waitRefreshTill=Date.now()+500}},e}();qe.decorators=[{type:t.Directive,args:[{selector:"[wmSmoothscroll]"}]}],qe.ctorParameters=function(){return[{type:t.Injector},{type:t.ElementRef},{type:i.App}]},qe.propDecorators={wmSmoothscroll:[{type:t.Input}]};var ze=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()}))},He=ze;window.addEventListener("resize",i.debounce(ze,200));var Ye=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}();Ye.decorators=[{type:t.Directive,args:[{selector:"[textContent]"}]}],Ye.ctorParameters=function(){return[{type:t.ElementRef}]},Ye.propDecorators={textContent:[{type:t.Input}]};var Ke=function(e){return _.isDate(e)||isNaN(e)||(e=parseInt(e,10)),moment(e).valueOf()||moment((new Date).toDateString()+" "+e).valueOf()},Qe=function(){function e(e){this.decimalPipe=e}return e.prototype.transform=function(e,t,n,i,o,a,r,s){n=o&&!r?"1."+a.length+"-16":n;var l=s?s.number:void 0;return this.decimalPipe.transform(e,n,i||l||t)},e}();Qe.decorators=[{type:t.Pipe,args:[{name:"trailingZeroDecimalPipe"}]}],Qe.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 a;if("null"===e||""===e)return"";if(!i.isDefined(e))return"";if(a=Ke(e)){if("timestamp"===t)return a;if("UTC"===t)return new Date(a).toISOString();var r=this.i18nService?this.i18nService.getTimezone(o):n;return r&&(e===a||i.hasOffsetStr(e))?moment(a).tz(r).format(t.replaceAll("y","Y").replaceAll("d","D").replace("a","A")):this.datePipe.transform(a,t)}return""},e}();Ze.decorators=[{type:t.Pipe,args:[{name:"toDate"}]}],Ze.ctorParameters=function(){return[{type:n.DatePipe},{type:i.AbstractI18nService}]};var Je=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}();Je.decorators=[{type:t.Pipe,args:[{name:"toNumber"}]}],Je.ctorParameters=function(){return[{type:n.DecimalPipe},{type:i.AbstractI18nService,decorators:[{type:t.Inject,args:[i.AbstractI18nService]}]}]};var Xe=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||"",a=new Je(this.decimalPipe,this.i18nService).transform(e,n),r=_.startsWith(a,"-");return r&&(a=a.replace("-","")),a?r?"-"+o+a:o+a:""},e}();Xe.decorators=[{type:t.Pipe,args:[{name:"toCurrency"}]}],Xe.ctorParameters=function(){return[{type:n.DecimalPipe},{type:i.AbstractI18nService,decorators:[{type:t.Inject,args:[i.AbstractI18nService]}]}]};var et=function(){function e(){}return e.prototype.transform=function(e,t){return _.isUndefined(e)||null===e||""===e?e:(t||"")+e},e}();et.decorators=[{type:t.Pipe,args:[{name:"prefix"}]}];var tt=function(){function e(){}return e.prototype.transform=function(e,t){return _.isUndefined(e)||null===e||""===e?e:e+(t||"")},e}();tt.decorators=[{type:t.Pipe,args:[{name:"suffix"}]}];var nt=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}();nt.decorators=[{type:t.Pipe,args:[{name:"custom"}]}],nt.ctorParameters=function(){return[{type:i.CustomPipeManager}]};var it=function(){function e(){}return e.prototype.transform=function(e){var t;if(i.isDefined(e))return(t=Ke(e))?moment(t).fromNow():void 0},e}();it.decorators=[{type:t.Pipe,args:[{name:"timeFromNow"}]}];var ot=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t}(Je);ot.decorators=[{type:t.Pipe,args:[{name:"numberToString"}]}];var at=function(){function e(){}return e.prototype.transform=function(e){return Number(e)||void 0},e}();at.decorators=[{type:t.Pipe,args:[{name:"stringToNumber"}]}];var rt=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}();rt.decorators=[{type:t.Pipe,args:[{name:"filter"}]}];var st=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}();st.decorators=[{type:t.Pipe,args:[{name:"filesize"}]}];var lt=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}();lt.decorators=[{type:t.Pipe,args:[{name:"fileIconClass"}]}];var ct=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}();ct.decorators=[{type:t.Pipe,args:[{name:"stateClass"}]}];var pt=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}();pt.decorators=[{type:t.Pipe,args:[{name:"fileExtensionFromMime"}]}];var dt=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}();dt.decorators=[{type:t.Pipe,args:[{name:"trustAs"}]}],dt.ctorParameters=function(){return[{type:r.DomSanitizer}]};var ut=[],ht=[],mt=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(ut.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){ut.push(e)},e.prototype.getLastOpenedDialog=function(){return ut[ut.length-1]},e.prototype.removeFromOpenedDialogs=function(e){-1!==ut.indexOf(e)&&ut.splice(ut.indexOf(e),1)},e.prototype.getOpenedDialogs=function(){return ut},e.prototype.addToClosedDialogs=function(e){ht.push(e)},e.prototype.removeFromClosedDialogs=function(e){-1!==ht.indexOf(e)&&ht.splice(ht.indexOf(e),1)},e.prototype.getDialogRefFromClosedDialogs=function(){return ht[ht.length-1]},e}();mt.decorators=[{type:t.Injectable}],mt.ctorParameters=function(){return[]};var ft=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}();ft.decorators=[{type:t.Pipe,args:[{name:"sanitize"}]}],ft.ctorParameters=function(){return[{type:r.DomSanitizer}]};var gt=[Ae,Ie,Ne,Me,Fe,Ge,$e,Ve,We,_e,Ue,qe,Ye],vt=[Ze,lt,pt,rt,st,Je,Xe,et,tt,it,ot,ct,at,Qe,dt,Te,nt,ft],yt=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[Ze,rt,Qe,dt,Te,nt,ft,n.Location,{provide:i.AbstractDialogService,useClass:mt}]}},e}();yt.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,o.SecurityModule],declarations:v(v([],g(gt)),g(vt)),exports:v(v([],g(gt)),g(vt))}]}];var bt,wt=function(){};e.Live_Operations=void 0,(bt=e.Live_Operations||(e.Live_Operations={})).INSERT="insert",bt.UPDATE="update",bt.DELETE="delete",bt.READ="read";var Pt="All Fields",_t={EMPTY_KEY:"EMPTY_NULL_FILTER",EMPTY_VALUE:"No Value",LABEL_KEY:"key",LABEL_VALUE:"value",NULL_EMPTY:["null","empty"],NULL:"null",EMPTY:"empty"};function Ot(e){return _.includes([i.FormWidgetType.AUTOCOMPLETE,i.FormWidgetType.TYPEAHEAD,i.FormWidgetType.CHIPS],e)}var Et=function(e,t,n){var o=i.debounce((function(){_.isFunction(n)&&n(t)}),300);o();var a=t?_.isObject(t)?t:JSON.parse(t):{},r=e.registerDestroyListener?e.registerDestroyListener.bind(e):_.noop,s=i.processFilterExpBindNode(e,a).subscribe((function(e){t=JSON.stringify(e.filterExpressions),o()}));r((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(a,r){!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){a({field:t,data:e.data,aliasColumn:o.aliasColumn})}),r))}))}function Tt(e,t){if(Ot(e[t.widget]))return e.datafield=t.aliasColumn||_t.LABEL_KEY,e.searchkey=t.distinctField||_t.LABEL_KEY,void(e.displaylabel=e.displayfield=t.aliasColumn||_t.LABEL_VALUE);e.datafield=_t.LABEL_KEY,e.displayfield=_t.LABEL_VALUE}function St(e,t,n){var o=[i.FormWidgetType.SELECT,i.FormWidgetType.RADIOSET],a={},r=[];n.isEnableEmptyFilter&&_.includes(o,e[n.widget])&&!e["is-range"]&&!e.multiple&&(a[_t.LABEL_KEY]=_t.EMPTY_KEY,a[_t.LABEL_VALUE]=n.EMPTY_VALUE||_t.EMPTY_VALUE,r.push(a)),_.each(t,(function(e){var t=e[n.aliasColumn],i={};null!==t&&""!==t&&(i[_t.LABEL_KEY]=t,i[_t.LABEL_VALUE]=t,r.push(i))})),Tt(e,n),e.dataset=r}function Ct(e,t,n){if(e&&t&&!t.isDataSetBound)if(Ot(t[n.widget])){var i=Rt(e,t);t.dataoptions=i,Tt(t,Object.assign(n||{},i)),t.datasource=e}else Et(t.viewParent,t.filterexpressions,(function(i){t.filterexpressions=i,At(e,t,n.widget).then((function(e){St(e.field,e.data,{aliasColumn:e.aliasColumn,widget:n.widget,isEnableEmptyFilter:Nt(n.enableemptyfilter),EMPTY_VALUE:n.EMPTY_VALUE})}))}))}function It(e){return i.isDefined(e)&&""!==e&&null!==e}function Dt(e,t){var n;return It(e)&&It(t)?n=[e,t]:It(e)?n=e:It(t)&&(n=t),n}function xt(e,t){var n;return It(e)&&It(t)?n=i.MatchMode.BETWEEN:It(e)?n=i.MatchMode.GREATER:It(t)&&(n=i.MatchMode.LESSER),n}function Nt(e){return e&&_.intersection(e.split(","),_t.NULL_EMPTY).length>0}function Mt(e){var t,n=_.split(e,",");return 2===_.intersection(n,_t.NULL_EMPTY).length?t=i.MatchMode.NULLOREMPTY:_.includes(n,_t.NULL)?t=i.MatchMode.NULL:_.includes(n,_t.EMPTY)&&(t=i.MatchMode.EMPTY),t}var kt=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 Lt,Ft=moment.localeData(),jt=i.getClonedObject(Ft._calendar),Bt=Ft._calendarDay||{lastDay:"[Yesterday]",lastWeek:"[Last] dddd",nextDay:"[Tomorrow]",nextWeek:"dddd",sameDay:"[Today]",sameElse:"L"},Gt="alphabet",$t="Others",Vt={HOUR:"hour",DAY:"day",WEEK:"week",MONTH:"month",YEAR:"year"},Wt="yyyy-MM-dd",Ut="w 'Week', yyyy",qt="MMM, yyyy",zt="YYYY",Ht="hh:mm a",Yt=function(e,t,n){if(!t)return _.cloneDeep(e);var i=t.split(","),o=[],a=[];return i.forEach((function(e){var t=e.split(":");o.push(n?n+"."+t[0]:t[0]),a.push(t[1])})),_.orderBy(e,o,a)},Kt=function(e){return _.isString(e)&&(e=_.split(e,",").map((function(e){return e.trim()}))),e},Qt=function(e){return"wm-search"===e},Zt=function(e,t,n,o){if(e&&Qt(e.widgetType))if(e.groupby)if(_.includes(e.groupby,"(")){var a=i.$parseEvent(e.groupby);n.groupby=a(t,{row:n.dataObject||n})}else n.groupby=nn(e.groupby,e.match,o,e.dateformat,e.datePipe,e.appDefaults,n);else n.groupby=""},Jt=function(e,t,n){var i=[];return _.forEach(_.keys(e),(function(o,a){var r=Yt(e[o],n,"dataObject");i.push({key:o,data:_.sortBy(r,(function(e){return e._groupIndex=a+1,_.get(e,t)||_.get(e.dataObject,t)}))})})),i},Xt=function(e,t,n,i,o,a,r,s){n===Vt.DAY&&(Ft._calendar=Bt),e=_.orderBy(e,(function(e){var n=_.get(r?e[r]:e,t);if(n)return _.toLower(n)}));var l=_.groupBy(e,nn.bind(void 0,t,n,r,o,a,s));return Ft._calendar=jt,l},en=function(e,t,n,o){return"timestamp"===t?e:i.getFormattedDate(o,e,t||n)},tn=function(e,t,n,i,o){var a,r=moment(e),s=n,l=moment(),c=function(){return"["+en(this.valueOf(),s,Wt,i)+"]"};switch(t){case Vt.HOUR:s=s||o.timeFormat,r.isValid()||(r=moment((new Date).toDateString()+" "+e)).isValid()&&(Ft._calendar.sameDay=function(){return"["+en(this.valueOf(),s,Ht,i)+"]"}),r=r.startOf("hour"),Ft._calendar.sameElse=c,a=r.calendar(l);break;case Vt.WEEK:a=en(r.valueOf(),s,Ut,i);break;case Vt.MONTH:a=en(r.valueOf(),s,qt,i);break;case Vt.YEAR:a=r.format(zt);break;case Vt.DAY:s=s||o.dateFormat,r=r.startOf("day"),Ft._calendar.sameElse=c,a=r.calendar(l)}return"Invalid date"===a?$t:a},nn=function(e,t,n,i,o,a,r){var s=_.get(n?r[n]:r,e);return _.isUndefined(s)||_.isNull(s)||""===s.toString().trim()?$t:(t===Gt&&(s=s.substr(0,1)),_.includes(_.values(Vt),t)&&(s=tn(s,t,i,o,a)),s)},on=function(){},an="default",rn="label",sn=function(e,t,n,i){_.forEach(e,(function(e){_.get(e,"isGroup")&&(e.field===n?e.columns[i]=t:sn(e.columns,t,n,i))}))},ln=function(e){return"true"===e||"false"!==e&&(/^\d+$/.test(e)?+e:e)},cn={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"]},pn=function(e){if(e)return/^(\/|#\/|#)(?!\W).*/.test(e)?"#/"+(e=_.first(e.match(/[\w]+.*/g))||""):_.startsWith(e,"www.")?"//"+e:e},dn=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 u(t,e),t.prototype.getNode=function(e,t){var n=this.viewParent.pageScope||this.viewParent,o=R(t,{field:this.itemchildren,bindExpression:this.binditemchildren},n)||_.get(t,e.childrenField),a={action:R(t,{field:this.itemaction,bindExpression:this.binditemaction},n)||_.get(t,e.actionField),badge:R(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:R(t,{field:this.itemicon,bindExpression:this.binditemicon},n)||_.get(t,e.iconField),id:R(t,{field:this.itemid,bindExpression:this.binditemid},n)||_.get(t,e.idField),label:R(t,{field:this.itemlabel,bindExpression:this.binditemlabel},n)||_.get(t,e.labelField),link:pn(R(t,{field:this.itemlink,bindExpression:this.binditemlink},n)||_.get(t,e.linkField)),target:pn(R(t,{field:this.itemtarget,bindExpression:this.binditemtarget},n)||_.get(t,e.targetField)),role:R(t,{field:this.userrole,bindExpression:this.binduserrole},n),isactive:R(t,{field:this.isactive,bindExpression:this.bindisactive},n),value:this.datafield?"All Fields"===this.datafield?t:i.findValueOf(t,this.datafield):t};return _.omitBy(a,_.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=kt(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=Yt(this.prepareNodeDataSet(e),this.orderby)||[];if(n.length){var o=this.userrole,a=this.getItemFieldsMap();n=n.reduce((function(e,n){return i.validateAccessRoles(n[o],t.securityService.loggedInUser)&&e.push(t.getNode(a,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}(Pe),un={pattern:"regexp",max:"maxvalue",min:"minvalue",required:"required",maxlength:"maxchars",mindate:"mindate",maxdate:"maxdate",excludedates:"excludedates",excludedays:"excludedays"},hn=function(){function e(e,t,n,i,o,a){this.instance=e,this.formwidget=t,this.widgettype=n,this.widgetControl=i,this.widgetContext=o,this.defaultValidatorMessages=[],a&&(this.tableFieldType=a)}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 a=_.get(e,"validator");t.setDefaultValidator(o,a),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(un,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}(),mn=function(e){function t(t,n,o){var a=e.call(this)||this;a.$el=t,a.app=n,a.onPullToRefresh=o,a.count=0;return a.$el.prepend('<div class="refresh-container"></div>'),a.infoContainer=a.$el.find(".refresh-container"),i.isIos()&&a.infoContainer.addClass("ios-refresh-container"),a.init(a.$el),a}return u(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 gn(this.infoContainer):new fn(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),fn=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 a=this.polarToCartesian(e,t,n,o),r=this.polarToCartesian(e,t,n,i),s=o-i<=180?"0":"1";return["M",a.x,a.y,"A",n,n,0,s,0,r.x,r.y,"L",r.x,r.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}(),gn=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}(),vn=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"}(Lt||(Lt={}));var yn=function(e){return"[data-role='"+e+"']"},bn=(yn("pageContainer"),function(e,t){"string"==typeof e&&(e=document.querySelector(e)),e&&(e.removeEventListener("click",t),e.addEventListener("click",t))}),wn=function(e,t){if(i.isMobile()){if(e)try{e.widget.collapse()}catch(e){}t&&i.setCSS(t,"display","none")}},Pn=function(e,t,n,i){void 0===i&&(i=!1),i||bn(t,wn.bind(vn,e,n))},_n=function(e,t){bn(yn(Lt.SWIPE_ELEM),(function(){e&&(e.widget.toggle(),e.classList.contains("visible")&&t&&i.setCSS(t,"display","none"))}))},On=function(e){bn(e,wn)},En=function(e,t){"none"===$(e).css("display")?(wn(t),i.setCSS(e,"display","inline-table")):wn(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),bn(i,(function(){return En(n,t)}))}))};e.ALLFIELDS=Pt,e.AUTOCLOSE_TYPE={OUTSIDECLICK:"outsideClick",ALWAYS:"always",DISABLED:"disabled"},e.BaseComponent=we,e.BaseContainerComponent=Oe,e.BaseFieldValidations=hn,e.ContainerDirective=Ae,e.Context=w,e.CustomPipe=nt,e.DEBOUNCE_TIMES={PAGINATION_DEBOUNCE_TIME:250},e.DISPLAY_TYPE=re,e.DataSetItem=on,e.DatasetAwareNavComponent=dn,e.DialogRef=b,e.DialogServiceImpl=mt,e.EDIT_MODE={QUICK_EDIT:"quickedit",INLINE:"inline",FORM:"form",DIALOG:"dialog"},e.EVENTS_MAP=ae,e.FileExtensionFromMimePipe=pt,e.FileIconClassPipe=lt,e.FileSizePipe=st,e.FilterPipe=rt,e.INPUTMODE={FINANCIAL:"financial",NATURAL:"natural"},e.ImagePipe=Te,e.ItemTemplateDirective=Ie,e.LIVE_CONSTANTS=_t,e.LazyLoadDirective=Me,e.MessageComponent=Fe,e.NAVIGATION_TYPE={ADVANCED:"Advanced",BASIC:"Basic",CLASSIC:"Classic",INLINE:"Inline",NONE:"None",ONDEMAND:"On-Demand",PAGER:"Pager",SCROLL:"Scroll"},e.NumberToStringPipe=ot,e.PROP_ANY=te,e.PROP_BOOLEAN=ee,e.PROP_NUMBER=X,e.PROP_STRING=J,e.PartialContainerDirective=We,e.PartialDirective=Ge,e.PartialParamDirective=Ve,e.PartialParamHandlerDirective=$e,e.PrefixPipe=et,e.PullToRefresh=mn,e.RedrawableDirective=_e,e.RepeatTemplateDirective=Ne,e.SanitizePipe=ft,e.ShowInDeviceDirective=Ue,e.SmoothScrollDirective=qe,e.StateClassPipe=ct,e.StringToNumberPipe=at,e.StylableComponent=Pe,e.SuffixPipe=tt,e.TextContentDirective=Ye,e.TimeFromNowPipe=it,e.ToCurrencyPipe=Xe,e.ToDatePipe=Ze,e.ToNumberPipe=Je,e.TrailingZeroDecimalPipe=Qe,e.TrustAsPipe=dt,e.WidgetRef=y,e.WmComponentsModule=yt,e.applyFilterOnField=function(e,t,n,o,a){void 0===a&&(a={});var r=t.field||t.key,s=_.filter(n,{"filter-on":r});o=t["is-range"]?Dt(t.minValue,t.maxValue):i.isDefined(o)?o:t.value,!e||a.isFirst&&(_.isUndefined(o)||""===o)||_.forEach(s,(function(n){var r,s,l,c=n.field||n.key,p=t["lookup-field"]||t._primaryKey,d=n["edit-widget-type"]||n.widgettype,u={},h=n["filter-on"];A(d)&&!n.isDataSetBound&&h!==c&&(t&&t["is-related"]&&(h+="."+p),i.isDefined(o)?(l=t["is-range"]?xt(t.minValue,t.maxValue):Nt(a.enableemptyfilter)&&o===_t.EMPTY_KEY?Mt(a.enableemptyfilter):i.MatchMode.EQUALS,r=_.isObject(o)&&!_.isArray(o)?o[p]:o,u[h]={value:r,matchMode:l}):u={},s=c,Ot(d)&&n.dataoptions?n.dataoptions.filterFields=u:e.execute(i.DataSource.Operation.GET_DISTINCT_DATA_BY_FIELDS,{fields:s,filterFields:u,pagesize:n.limit}).then((function(e){St(n,e.data,{aliasColumn:s,widget:a.widget||"widgettype",isEnableEmptyFilter:Nt(a.enableemptyfilter),EMPTY_VALUE:a.EMPTY_VALUE})}),wt))}))},e.configureDnD=function(e,t,n,i,o){var a=Object.assign({containment:e,delay:100,opacity:.8,helper:"clone",zIndex:1050,tolerance:"pointer",start:n,update:i,sort:o},t);e.sortable(a)},e.convertDataToObject=Kt,e.createArrayFrom=kt,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){Ct(e,t,n)}))},e.fetchRelatedFieldData=function(e,t,n){var o,a,r=n.relatedField,s=n.datafield;e&&(o=e.execute(i.DataSource.Operation.GET_RELATED_PRIMARY_KEYS,r),t.datafield=s,t._primaryKey=_.isEmpty(o)?void 0:o[0],t.compareby=o&&o.join(","),a=s===Pt?void 0:s,t.displayfield=a=t.displayfield||a||t._primaryKey,Ot(t[n.widget])?(t.dataoptions={relatedField:r,filterExpr:t.filterexpressions?t.filterexpressions:{}},t.datasource=e,t.searchkey=t.searchkey||a,t.displaylabel=t.displayfield=t.displaylabel||a,t.showPendingSpinner&&(t.showPendingSpinner=!1)):Et(t.viewParent,t.filterexpressions,(function(n){t.filterexpressions=n,e.execute(i.DataSource.Operation.GET_RELATED_TABLE_DATA,{relatedField:r,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)}),wt)})))},e.filterDate=en,e.getBackGroundImageUrl=S,e.getConditionalClasses=F,e.getContainerTargetClass=function(e){return".wm-app"},e.getDataTableFilterWidget=function(e){var t=cn[e]&&cn[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?ln(e):e:i.isNumberType(t)?isNaN(Number(e))?null:Number(e):t===i.DataType.BOOLEAN?ln(e):e},e.getDefaultViewModeWidget=function(e){return _.includes(["checkbox","toggle","rating"],e)?an:rn},e.getDistinctFieldProperties=Rt,e.getDistinctValues=At,e.getDistinctValuesForField=Ct,e.getEditModeWidget=function(e){return e["related-entity-name"]&&e["primary-key"]?i.FormWidgetType.SELECT:cn[e.type]&&cn[e.type][0]||i.FormWidgetType.TEXT},e.getEmptyMatchMode=Mt,e.getEnableEmptyFilter=Nt,e.getEvaluatedData=R,e.getFieldLayoutConfig=function(e,t,n){var o="",a="";return"top"===(t=t||"top")||"floating"===t?n&&"android"===n||!i.isMobileApp()||i.isAndroid()?o=a="col-xs-12":i.isMobileApp()&&(o="col-xs-4",a="col-xs-8"):e&&_.forEach(_.split(e," "),(function(e){var t,n,i=_.split(e,"-"),r=i[0];t=parseInt(i[1],10),o+=" col-"+r+"-"+t,a+=" col-"+r+"-"+(n=(n=12-t)<=0?12:n)})),{captionCls:o,widgetCls:a}},e.getFieldTypeWidgetTypesMap=function(){return cn},e.getImageUrl=T,e.getKeyboardFocusableElements=function(e){return[e.querySelectorAll('a, button, input, textarea, select, details, iframe, embed, object, summary dialog, audio[controls], video[controls], [contenteditable], [tabindex]:not([tabindex="-1"])')].filter((function(e){return!e[0].hasAttribute("disabled")&&!e[0].hasAttribute("hidden")}))[0]},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&&(M.number.push("in","notin","between"),M.date.push("between"),M.string.push("in","notin"),M.character.push("in","notin")),_.forEach(N,(function(e,t){_.forEach(e,(function(e){k[e]=M[t]}))})),k.default=_.union(M.number,M.string,M.character,M.date,M.date),k},e.getObjValueByKey=E,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=Yt,e.getRangeFieldValue=Dt,e.getRangeMatchMode=xt,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,a=t===Pt;return o=a?_.uniqWith(e,_.isEqual):_.uniqBy(e,"key"),!n||i?o:_.filter(o,(function(e){return(a||_.trim(e.key))&&_.trim(e.label)}))},e.getWatchIdentifier=x,e.getWidgetPropsByType=Q,e.groupData=function(e,t,n,o,a,r,s,l,c){var p={};if(_.includes(n,"(")){var d=i.$parseEvent(n);p=_.groupBy(t,(function(t){return d(e.viewParent,{row:t.dataObject||t})}))}else p=Xt(t,n,o,a,r,s,l,c);return Jt(p,n,a)},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.interpolateBindExpressions=Et,e.isActiveNavItem=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))},e.isBooleanAttr=le,e.isDataSetWidget=A,e.isDimensionProp=pe,e.isStyle=V,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?ln(e):e:i.isNumberType(t)?isNaN(Number(e))?null:Number(e):t===i.DataType.BOOLEAN?ln(e):e},e.performDataOperation=function(t,n,o){return new Promise((function(a,r){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,a,r)}),r)}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(a,r)}else t.execute(i.DataSource.Operation.SET_INPUT,n),t.execute(i.DataSource.Operation.INVOKE,{skipNotification:!0}).then(a,r);else a(n)}))},e.prepareFieldDefs=function(e,t){var n,i={objects:[],terminals:[]};if(e||(e=[]),t||(t={}),t.setBindingField=!0,t.columnCount=0,n=B(e),j(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=G,e.provideAs=C,e.provideAsDialogRef=function(e){return C(e,b)},e.provideAsWidgetRef=I,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=Y+e,i=K.get(n);i&&t.forEach((function(e,t){return i.set(t,e)}))},e.setFocusTrap=function(e,t,n){return a.createFocusTrap(e,{onActivate:function(){return e.classList.add("is-active")},onDeactivate:function(){return e.classList.remove("is-active")},allowOutsideClick:t,setReturnFocus:n})},e.setHeaderConfig=sn,e.setHeaderConfigForTable=function(e,t,n,i){n?sn(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=z,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,a,r,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("."),a=[],r=o.length,l=s={},o.forEach((function(t,n){a.forEach((function(e){l=s[e]})),l[t]=n===r-1?e:{},a.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,a,r){var s=[];if(t){if(t=Kt(t),_.isUndefined(a)&&(a=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:a+n};Zt(r,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:a+n};Zt(r,e,o,"value"),s.push(o)}));else if(t instanceof Array||!_.isObject(t))n||(n=Pt),t.forEach((function(t,l){var c=n===Pt?a+l:E(t,n);if(!_.isUndefined(c)&&!_.isNull(c)){var p=R(t,{field:o.displayField,expression:o.displayExpr,bindExpression:o.bindDisplayExpr},e),d={key:c,label:i.isDefined(p)&&null!==p?p.toString():"",value:n===Pt?t:c,dataObject:t,index:a+l};(o.displayImgSrc||o.bindDisplayImgSrc)&&(d.imgSrc=R(t,{expression:o.displayImgSrc,bindExpression:o.bindDisplayImgSrc},e)),Zt(r,e,d,"dataObject"),s.push(d)}}));else{_.forEach(t,(function(n,o){var l={key:_.trim(o),value:o,label:i.isDefined(n)&&null!==n?n.toString():"",index:a,dataObject:t};Zt(r,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(yn(Lt.LEFT_PANEL)),i=e.querySelector(yn(Lt.RIGHT_PANEL)),o=e.querySelector(yn(Lt.HEADER)),a=o&&o.querySelector("."+Lt.SEARCH),r=e.querySelector("."+Lt.CONTENT);Pn(n,r,a,t),n?_n(n,a):$(o).find(yn(Lt.SWIPE_ELEM)).remove(),i&&On(i),a&&Rn(a,n)},e["\u02750"]=He,e["\u0275a"]=ne,e["\u0275b"]=Se,e["\u0275c"]=De,e["\u0275d"]=ke,e["\u0275e"]=je,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_"),a=function(e){return e.attrs.find((function(e){return"type"===e.name&&"dynamic"===e.value}))},r=a;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(a(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 r=t.getBoundToExpr(i.value);if(!r)return;n.updateTemplateAttrs(e,r,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":r}),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 d=Object.freeze({__proto__:null,default:function(){}}),u=new n.IDGenerator("wm_anchor");t.register("wm-anchor",(function(){return{pre:function(e){var n=u.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(){}}),E=new n.IDGenerator("wm_spinner");t.register("wm-spinner",(function(){return{pre:function(e){var n=E.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 R=Object.freeze({__proto__:null,default:function(){}}),A=function(e,t){return e.attrs.find((function(e){return e.name===t}))},T=A,S=function(e,t){var n=A(e,t);if(n)return n.value},C=S,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=S(e,"dataset"),i=t.getBoundToExpr(n);if(i){var o=S(e,"type"),a=S(e,"datavalue"),r=I(i);o&&o.includes(i)&&(o=o.replace(r,""),A(e,"type").value=o),a&&a.includes(i)&&(a=a.replace(r,""),A(e,"datavalue").value=a)}},pre:function(e){return"<div wmProgressBar "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var x=Object.freeze({__proto__:null,default:function(){},"\u02750":T,"\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 N=Object.freeze({__proto__:null,default:function(){}}),M=new n.IDGenerator("wm_richtexteditor");t.register("wm-richtexteditor",(function(){return{pre:function(e){var n=M.nextUid();return"<div wmRichTextEditor #"+n+'="wmRichTextEditor" role="textbox" [attr.aria-label]="'+n+".hint || 'Richtext editor'\" "+t.getFormMarkupAttr(e)+">"},post:function(){return"</div>"}}}));var k=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"<div wmTree "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var F=Object.freeze({__proto__:null,default:function(){}});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 $=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 V=Object.freeze({__proto__:null,default:function(){}}),W=new n.IDGenerator("wm_accordion_ref_"),U=function(e){return e.attrs.find((function(e){return"type"===e.name&&"dynamic"===e.value}))},q=U;t.register("wm-accordion",(function(){return{pre:function(e,n){var i=W.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(U(e)){var o=e.attrs.find((function(e){return"dataset"===e.name})),a=e.attrs.find((function(e){return"name"===e.name}));if(!o)return;var r=t.getBoundToExpr(o.value);if(!r)return;n.updateTemplateAttrs(e,r,a.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 Z=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(){}}),X=new n.IDGenerator("wm_panel");t.register("wm-panel",(function(){return{pre:function(e){return"<div wmPanel #"+X.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 a=i&&i.get("accordion_ref")||o&&o.get("tabs_ref");if(a)return'<div *ngIf="'+a+".fieldDefs && !"+a+'.fieldDefs.length">{{'+a+".nodatamessage}}</div>\n <div wmRepeatTemplate "+t.getAttrMarkup(e)+' *ngFor="let item of '+a+'.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(){}}),ae=new n.IDGenerator("wm_tabs_ref_"),re=function(e){return e.attrs.find((function(e){return"type"===e.name&&"dynamic"===e.value}))},se=re;t.register("wm-tabs",(function(){return{pre:function(e,n){var i=ae.nextUid();return n.set("tabs_ref",i),"<div wmTabs #"+i+'="wmTabs" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"},template:function(e,i){if(re(e)){var o=e.attrs.find((function(e){return"dataset"===e.name})),a=e.attrs.find((function(e){return"name"===e.name}));if(!o)return;var r=t.getBoundToExpr(o.value);if(!r)return;n.updateTemplateAttrs(e,r,a.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 de=Object.freeze({__proto__:null,default:function(){}}),ue=new n.IDGenerator("wizard_step_id_");t.register("wm-wizardstep",(function(){return{pre:function(e){var n=ue.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 a=e.get("load.event");e.delete("load.event");var r="",s="";a&&(r='load.event="'+a+'"'),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%" '+r+">"),"<div wmPartialDialog "+t.getAttrMarkup(e)+">"+l},post:function(e,t){var n="";return t.get("hasPartialContent")&&(n="</div></ng-template>"),n+"</div>"}}}));var Ee=Object.freeze({__proto__:null,default:function(){}}),Re="quickedit",Ae="form",Te="dialog",Se={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=Se[e]&&Se[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_"),xe=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)},Ne=xe,Me=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"]]]),ke=function(e,t,n){var i=1===n?"maxplaceholder":"placeholder",o=e.get(i);o||""===o||(o=Me.get(t)&&Me.get(t)[n])&&e.set(i,o)},Le=ke,Fe=function(e,t){var i=e.get("name"),o=(e.get("key")||i||"").trim(),a=t.isMaxWidget?'formControlName="'+o+'_max"':t.isInList?'[formControlName]="'+t.counter+'._fieldName"':'formControlName="'+o+'"',r=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'\" "+a+" "+t.eventsTmpl+" "+l+" "+r+" "+s;return n.getFormWidgetTemplate(t.widgetType,c,e,{counter:t.counter,pCounter:t.pCounter})},je=Fe,Be=function(e,t,i,o,a,r){if(!("true"===e.get("is-range")))return Fe(e,{widgetType:t,eventsTmpl:i,counter:o,pCounter:a,isInList:r});var s=n.isMobileApp()?"col-xs-6":"col-sm-6";return'<div class="'+s+'">'+Fe(e,{widgetType:t,eventsTmpl:i,counter:o,pCounter:a})+'</div>\n <div class="'+s+'">'+Fe(e,{widgetType:t,eventsTmpl:i,counter:o,pCounter:a,isMaxWidget:!0})+"</div>"},Ge=Be,$e=function(e,t,i){if("true"===e.get("is-related"))return i+".getDisplayExpr()";if(t===n.FormWidgetType.PASSWORD)return"'********'";var o,a=i+".value";return t===n.FormWidgetType.DATETIME||t===n.FormWidgetType.TIMESTAMP?a+=" | toDate:"+i+".formWidget.datepattern || 'yyyy-MM-dd hh:mm:ss a'":t===n.FormWidgetType.TIME?a+=" | toDate:"+i+".formWidget.timepattern || 'hh:mm a'":t===n.FormWidgetType.DATE?a+=" | 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()")},Ve=$e,We=function(e){return{requires:["wm-form","wm-liveform","wm-livefilter","wm-list"],pre:function(i,o,a,r,s,l){var c=De.nextUid(),p=a||r||s,d=p&&p.get("form_reference")||"form",u=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 && "+d+'.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=u===n.FormWidgetType.UPLOAD?"":xe(i),v=n.isMobileApp()?"col-xs-12":"col-sm-12",y=d===(l&&l.get("parent_form_reference"));return i.set("__errormsg",m),i.set("__widgetType",u),i.delete("widget"),o.set("counter",c),"true"===i.get("is-range")?(ke(i,u,0),ke(i,u,1)):ke(i,u,2),'<div data-role="'+h+'" [formGroup]="'+d+'.ngform" wmFormField captionPosition #'+c+'="wmFormField" widgettype="'+u+'" '+t.getFormMarkupAttr(i)+'>\n <div class="live-field form-group app-composite-widget clearfix caption-{{'+d+'.captionposition}}" widget="'+u+'">\n <label [hidden]="!'+c+'.displayname" class="app-label control-label formfield-label {{'+d+'._captionClass}}"\n [ngStyle]="{width: '+d+".captionsize}\" [ngClass]=\"{'text-danger': "+c+"._control?.invalid && "+c+"._control?.touched && "+d+".isUpdateMode,\n required: "+d+".isUpdateMode && "+c+'.required}" [textContent]="'+c+'.displayname"> </label>\n <div [ngClass]="'+c+".displayname ? "+d+"._widgetClass : '"+v+'\'">\n <label class="form-control-static app-label"\n [hidden]="'+d+".isUpdateMode || "+c+".viewmodewidget === 'default' || "+c+".widgettype === 'upload'\" [innerHTML]=\""+$e(i,u,c)+'"></label>\n '+Be(i,u,g,c,d,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) && "+d+'.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"]}}},Ue=We;t.register("wm-form-field",We.bind(this,!0)),t.register("wm-filter-field",We.bind(this,!1));var qe=Object.freeze({__proto__:null,default:function(){},"\u02750":Ne,"\u02751":Le,"\u02752":je,"\u02753":Ge,"\u02754":Ve,"\u02755":Ue}),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_"),Ze=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++,Ze.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)}))},Xe=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,a){var r,s,l=a&&a.get("isLogin")?"app-login":"",c=Qe.nextUid(),p=n.get("dependson")?'dependson="'+n.get("dependson")+'"':"",d="page"===n.get("formlayout")?"app-device-liveform panel liveform-inline":"";n.delete("dependson");var u='<form wmForm data-role="'+l+'" '+e+" #"+c+' ngNativeValidate [formGroup]="'+c+'.ngform" [noValidate]="'+c+".validationtype !== 'html'\"\n class=\""+d+'" [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%"),r=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 '+u+" "+r+">"}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 u+" "+(r=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":Xe,"\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 at=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 rt=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 dt=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 ut=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 Et=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 Rt=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 At=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 Tt=Object.freeze({__proto__:null,default:function(){}});function St(e,t,n,o){var a=e.attrs.find((function(e){return e.name===t}));a&&n.attrs.push(new i.Attribute(o,a.value,a.sourceSpan,a.keySpan,a.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 a=e.children.find((function(e){return e instanceof i.Element&&"wm-media-template"===e.name}));null!=a&&(St(a,"width",e,"thumbnailwidth"),St(a,"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 a=t.getBoundToExpr(i.value);a&&n.updateTemplateAttrs(e,a,o.value,"itemRef.")}},pre:function(e,n,i,o){var a=i||o;return n.set("form_reference",a&&a.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,a,r;n="position",o=t,a="swipe-position",(r=e.attrs.find((function(e){return e.name===n})))&&o.attrs.push(new i.Attribute(a,r.value,r.sourceSpan,r.keySpan,r.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(){}}),xt=new n.IDGenerator("liveform_dialog_id_");t.register("wm-livetable",(function(){return{pre:function(e,n){var i=xt.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 Nt=Object.freeze({__proto__:null,default:function(){}}),Mt=new n.IDGenerator("wm_message");t.register("wm-message",(function(){return{pre:function(e){return'<p wmMessage tabindex="0" #'+Mt.nextUid()+'="wmMessage" '+t.getAttrMarkup(e)+">"},post:function(){return"</p>"}}}));var kt=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 a=e.get("content"),r=e.get("content.bind"),s="";a?s='content="'+a+'"':r&&(s='content.bind="'+r+'"'),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"':"")+'><button class="popover-start"></button>',o&&(l+=""+(o||"")),l},post:function(e,t){var n="";return t.get("hasPopoverContent")&&(n+="</div>"),n+'<button class="popover-end"></button></ng-template></'+"wm-popover>"}}}));var $t=Object.freeze({__proto__:null,default:function(){}}),Vt=function(e,t){return e&&e.children.find((function(e){return e instanceof i.Element&&e.name===t}))},Wt=Vt,Ut=function(e){return new i.Element(e,[],[],Qt,Qt,Qt)},qt=Ut,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={},Zt=new n.IDGenerator("wm_page");t.register("wm-page",(function(){return{template:function(e){var t=Vt(Vt(e,"wm-content"),"wm-page-content");if(t||(t=Yt("wm-page-content",Yt("wm-content",e))),t){var o=Ut("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 a=Ut("div");zt(a,"wmPageContentLoader",""),zt(a,"*ngIf","!showPageContent"),t.children.push(a)}}},pre:function(e){var n=Zt.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":Wt,"\u02751":qt,"\u02752":Ht,"\u02753":Kt}),Xt=new n.IDGenerator("wm_layout");t.register("wm-layout",(function(){return{pre:function(e){var n=Xt.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 an=Object.freeze({__proto__:null,default:function(){}}),rn=new n.IDGenerator("wm_footer");t.register("wm-footer",(function(){return{pre:function(e){var n=rn.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 dn=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 un=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),a=o.next();!a.done;a=o.next()){var r=a.value;if("spa"===r.name&&"true"===r.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{a&&!a.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 En=Object.freeze({__proto__:null,default:function(){}}),Rn={},An=function(e){return new i.Element(e,[],[],Rn,Rn,Rn)},Tn=An,Sn=function(e,t,n){var o=new i.Attribute(t,n,Rn,Rn,Rn,void 0,void 0);e.attrs.push(o)},Cn=Sn;t.register("wm-partial",(function(){return{template:function(e){var t=An("ng-container");Sn(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":Tn,"\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 xn=Object.freeze({__proto__:null,default:function(){}}),Nn={},Mn=function(e){return new i.Element(e,[],[],Nn,Nn,Nn)},kn=Mn,Ln=function(e,t,n){var o=new i.Attribute(t,n,Nn,Nn,Nn,void 0,void 0);e.attrs.push(o)},Fn=Ln;t.register("wm-prefab-container",(function(){return{template:function(e){var t=Mn("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":kn,"\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(){}}),$n=new n.IDGenerator("data_table_form_"),Vn=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"]),Wn=function(e){void 0===e&&(e=[]);e.forEach((function(e){if(Vn.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))}Wn(e.children)}))},Un=Wn,qn=function(e,i){var o,a,r=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)+'"';a="submit.event=\"changeFn('"+s+"')\""}var p='#filterWidget formControlName="'+s+'_filter" '+o+" "+a+" change.event=\"changeFn('"+s+"')\"\n disabled.bind=\"isDisabled('"+s+"')\"";return'<ng-template #filterTmpl let-changeFn="changeFn" let-isDisabled="isDisabled">\n <div class="input-group '+r+'" data-col-identifier="'+s+'">\n '+(""+n.getFormWidgetTemplate(r,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,Zn=function(e,t,i,o){var a,r={},s=e.get("binding"),l=e.get("edit-widget-type")||((a={type:e.get("type"),"related-entity-name":e.get("related-entity-name"),"primary-key":e.get("primary-key")})["related-entity-name"]&&a["primary-key"]?n.FormWidgetType.SELECT:Se[a.type]&&Se[a.type][0]||n.FormWidgetType.TEXT),c="",p="",d="";l===n.FormWidgetType.UPLOAD?(r.uploadProps={formName:$n.nextUid(),name:s},r.counter=o):(c=t?"#inlineWidgetNew":"#inlineWidget",p=t?'formControlName="'+s+'_new"':'formControlName="'+s+'"',d="wmFormWidget"),r.inputType="editinputtype";var u=t?"#inlineWidgetTmplNew":"#inlineWidgetTmpl",h=c+" "+d+' key="'+s+'" data-field-name="'+s+'" '+p+" "+(l===n.FormWidgetType.UPLOAD?"":Hn(e))+" "+Kn(e),m=t?"getPendingSpinnerStatusNew":"getPendingSpinnerStatus";return"<ng-template "+u+' let-row="row" let-getControl="getControl" let-getValidationMessage="getValidationMessage" let-'+m+'="'+m+'">\n <div data-col-identifier="'+s+'" >\n '+n.getFormWidgetTemplate(l,h,e,r)+"\n "+Xn(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=Zn,Xn=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=Xn,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),Wn(e.children)}},pre:function(e,i,o){var a="",r="",s="",l="";if(o){var c=o.get("table_reference");a="multicolumn"===o.get("filtermode")&&"false"!==e.get("searchable")?qn(e,c):"";var p=o.get("editmode"),d=p!==Te&&p!==Ae&&"true"!==e.get("readonly");r=d?Zn(e,!1,o.get("errorstyle"),c):"",s=d&&p===Re&&"false"!==o.get("shownewrow")?Zn(e,!0,e.get("errorstyle")):"",l=' [formGroup]="'+c+'.ngform" '}var u=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")+'">'):(u&&"None"!==u||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 "+a+"\n "+r+"\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":Un,"\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>"},ai=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 ri=Object.freeze({__proto__:null,default:function(){},"\u02750":ai}),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>':"",a=t?t.includes("editRow(")?"edit edit-row-button":t.includes("deleteRow(")?"delete delete-row-button":"":"",r=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")+" "+a+'"\n iconclass="'+e.get("iconclass")+'"\n '+i+"\n "+r+'\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 di=Object.freeze({__proto__:null,default:function(){},"\u02750":li,"\u02751":pi}),ui=new n.IDGenerator("table_"),hi=0;function mi(e,t){var n=0;e.forEach((function(e){var o=e.name,a=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",""+a,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 a=e.children.some((function(e){return"wm-table-row"===e.name}));i.set("isrowexpansionenabled",a?"true":"false")}else i.set("isdynamictable","true");var r=e.attrs.find((function(e){return"dataset"===e.name})),s=e.attrs.find((function(e){return"name"===e.name}));if(r){var l=t.getBoundToExpr(r.value);l&&n.updateTemplateAttrs(e,l,s.value,"","row")}},pre:function(e,n){var i=ui.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=dt,e.buttonGroupBuild=ct,e.calendarBuild=at,e.cameraBuild=ve,e.cardActionsBuild=G,e.cardBuild=j,e.cardContentBuild=B,e.cardFooterBuild=$,e.carouselBuild=s,e.carouselTemplateBuild=c,e.chartBuild=V,e.checkboxBuild=ut,e.checkboxSetBuild=ht,e.chipsBuild=rt,e.colorPickerBuild=st,e.compositeBuild=mt,e.confirmDlgBuild=be,e.containerBuild=K,e.contentBuild=an,e.currencyBuild=lt,e.dateBuild=Ot,e.dateTimeBuild=_t,e.dlgBuild=Pe,e.dlgFooterBuild=we,e.fileUploadBuild=Rt,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=dn,e.lgBuild=J,e.lgcolBuild=Q,e.lgrowBuild=Z,e.linearLayoutBuild=yi,e.linearLayoutItemBuild=bi,e.listBuild=Dt,e.liveTableBuild=Nt,e.loginBuild=p,e.loginDlgBuild=Oe,e.marqueeBuild=d,e.mediaListBuild=Ct,e.mediaListItemBuild=It,e.menuBuild=Ft,e.messageBuild=kt,e.mobileNavbarBuild=un,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=Ee,e.partialParamBuild=Dn,e.pictureBuild=O,e.popoverBuild=$t,e.prefabBuild=xn,e.prefabContainerBuild=jn,e.progressBarBuild=x,e.progressCircleBuild=N,e.radiosetBuild=gt,e.ratingBuild=At,e.repeatTemplateBuild=oe,e.rightPanelBuild=mn,e.routerOutletBuild=nn,e.rteBuild=k,e.searchBuild=L,e.segContentBuild=ne,e.segControlBuild=te,e.selectBuild=vt,e.sliderBuild=Tt,e.spinnerBuild=R,e.switchBuild=bt,e.tabBarBuild=_n,e.tabPaneBuild=ce,e.tableActionBuild=Bn,e.tableBuild=fi,e.tableColumnBuild=ii,e.tableColumnGroupBuild=Gn,e.tableRowActionBuild=di,e.tableRowBuild=ri,e.tabsBuild=le,e.textAreaBuild=Pt,e.textBuild=wt,e.tileBuild=pe,e.timeBuild=Et,e.topNavBuild=En,e.treeBuild=F,e.videoBuild=gi,e.wizardBuild=de,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,a,r,s){"use strict";
43
+ ***************************************************************************** */var d=function(e,t){return(d=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 u(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}d(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,a){function r(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(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(r,s)}l((i=i.apply(e,t||[])).next())}))}function m(e,t){var n,i,o,a,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=2&a[0]?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,i=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(!(o=r.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){r=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){r.label=a[1];break}if(6===a[0]&&r.label<o[1]){r.label=o[1],o=a;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(a);break}o[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(e){a=[6,e],i=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,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,a=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)r.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return r}function v(e,t,n){if(n||2===arguments.length)for(var i,o=0,a=t.length;o<a;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,a,r,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(r=1,c=!1,s=!1,o=i+2;o<e.length;o++)if(" "!==(a=e[o])&&(c||(s='"'===e[o]||"'"===e[o],c=!0),"["===a?r++:"]"===a&&r--,!r)){l=e.substring(i+2,o),p+=s?"__1["+l+"]":l;break}i=o}else p+=t;return p},E=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},R=function(e,t,n){var o,a=t.field,r=t.expression,s=t.bindExpression;return s?(o=s.replace("bind:",""),i.checkIsCustomPipeExpression(o)&&(o+=": __1"),o=O(o)):o=r||a,s||r?i.$parseExpr(o)(n,Object.assign({},e,{__1:e})):_.get(e,a)},A=function(e){return P.has(e)},T=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},S=function(e){return""===e||"none"===e?e:"url("+T(e)+")"};function C(e,n,i){return{provide:n,useExisting:t.forwardRef((function(){return e})),multi:i}}function I(e){return C(e,y)}var D,x=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.join("_")},N={number:["number","integer","big_integer","short","float","big_decimal","double","long","byte"],string:["string","text"],character:["character"],date:["date","time","timestamp","datetime"]},M={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"]},k={boolean:["exact","null","isnotnull"],clob:[],blob:[]},L=function(e){var t=[];return _.isArray(e)?(e.forEach((function(e){t=t.concat(L(e))})),t):_.isObject(e)?(_.forEach(e,(function(e,n){e&&(t=t.concat(n.split(" ")))})),t):void 0},F=function(e,t){var n,i,o=e.toAdd||e,a=e.toRemove||t;return _.isObject(e)?(n=_.isArray(o)?o:L(o||[]),i=a?_.isArray(a)?a:L(a):[]):(n=o?[o]:[],i=a?[a]:[]),{toAdd:n,toRemove:i}},j=function(e,t,n,o){var a,r,s,l,c,p;o||(o={}),_.forEach(e,(function(e,d){_.includes(d,".")&&(l=_.split(d,"."),r=l[0],s=l[1],p=!0),o.noModifyTitle?a=d:_.isString(d)?(a=i.prettifyLabel(d),a=i.deHyphenate(a),a=n?i.initCaps(n)+" "+a:a):a=d,d=n?n+"."+d:d,c=p?(c=_.split(a," ")).length>1?c[c.length-2]+" "+c[c.length-1]:c[0]:a;var u=o.setBindingField?{displayName:c,field:d,relatedTable:r,relatedField:s||a}:{displayName:c,relatedTable:r,relatedField:s||a};if(!_.isObject(e)||_.isArray(e)&&!e[0]){if(o.upperBound&&o.columnCount===o.upperBound)return;t.terminals.push(u),o.columnCount+=1}else o.columnCount!==o.upperBound&&t.objects.push(u),_.isArray(e)&&e[0]?j(e[0],t,d+"[0]",o):j(e,t,d,o)}))},B=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,(D=e.APPLY_STYLES_TYPE||(e.APPLY_STYLES_TYPE={}))[D.CONTAINER=0]="CONTAINER",D[D.SCROLLABLE_CONTAINER=1]="SCROLLABLE_CONTAINER",D[D.INNER_SHELL=2]="INNER_SHELL",D[D.SHELL=3]="SHELL";var G={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"},V=function(e){return!!G[e]},W={height:!0,overflow:!0,padding:!0,paddingbottom:!0,paddingleft:!0,paddingright:!0,paddingtop:!0},U={textalign:!0},q={textalign:!0,width:!0};function z(t,n,o,a){var r=Object.create(null);a&&a.forEach((function(e){return r[e]=!0})),n.registerStyleChangeListener((function(a,s){if(!(r[a]||o===e.APPLY_STYLES_TYPE.SHELL&&W[a])){if(o===e.APPLY_STYLES_TYPE.INNER_SHELL){if(!W[a])return;"height"===a&&i.setCSS(t,"overflow",s?"auto":"")}if(o!==e.APPLY_STYLES_TYPE.CONTAINER||!U[a]){if(o===e.APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER){if(q[a])return;"height"===a&&i.setCSS(t,"overflow",s?"auto":"")}"fontsize"===a||"fontunit"===a?i.setCSS(t,"fontSize",""===n.fontsize?"":n.fontsize+(n.fontunit||"px")):"backgroundimage"===a?i.setCSS(t,"backgroundImage",n.picturesource||S(s)):G[a]&&i.setCSS(t,G[a],s)}}}))}var H,Y="wm-form-field-",K=function(){var e=new Map;for(var t in i.FormWidgetType)e.set(Y+i.FormWidgetType[t],new Map);return e}(),Q=function(e){return K.get(e)},Z=function(e,t){K.set(e,t),window.WM_LOADED_COMPONENTS=v(v([],g(window.WM_LOADED_COMPONENTS||[])),[e])};e.PROP_TYPE=void 0,(H=e.PROP_TYPE||(e.PROP_TYPE={}))[H.BOOLEAN=1]="BOOLEAN",H[H.NUMBER=2]="NUMBER",H[H.STRING=3]="STRING";var J={type:e.PROP_TYPE.STRING},X={type:e.PROP_TYPE.NUMBER},ee={type:e.PROP_TYPE.BOOLEAN},te={arrayType:!0},ne=function(){Z("wm-container",new Map([["animation",J],["class",J],["conditionalclass",te],["conditionalstyle",te],["content",J],["name",J],["show",Object.assign({value:!0},ee)]]))},ie=new Map,oe=new i.IDGenerator("widget-id"),ae=new Map([["tap","click"]]),re={BLOCK:"block",INLINE_BLOCK:"inline-block",INLINE:"inline"},se=new Set(["readonly","autofocus","disabled","startchecked","multiple","selected","required","controls","autoplay","loop","muted","show"]),le=function(e){return se.has(e)},ce=new Set(["width","height","iconheight","iconwidth","popoverwidth","popoverheight","imagewidth","imageheight"]),pe=function(e){return ce.has(e)},de=function(t,n,o){return o===e.PROP_TYPE.BOOLEAN?i.toBoolean(n,le(t)&&t):o===e.PROP_TYPE.NUMBER?+n:n},ue=function(e,t,n){var o=e.widgetId,a=e[t];i.isChangeFromWatch()||i.$unwatch(x(o,t)),i.resetChangeFromWatch();var r=Q(e.getWidgetSubType()).get(t);if(r){var s=r.type;s&&(n=de(t,n,s))}if(n!==a||i.isObject(n)||i.isObject(a)){if(pe(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:r&&n!=r.value&&(n="./"+n)}e[t]=n,V(t)?e.notifyStyleChange(t,n,a):("conditionalclass"===t&&(n=F(n,a)),r&&e.notifyPropertyChange(t,n,a)),i.$appDigest()}},he={set:function(e,t,n){return ue(e,t,n),!0},get:function(e,t){var n=e[t];return _.isFunction(n)?n.bind(e):n}},me=window.requestAnimationFrame,fe=[],ge=function(e){fe.length||me((function(){fe.forEach((function(e){return e()})),fe.length=0})),fe.push(e)},ve=function(){function e(){}return e.create=function(e,t,n){if(window.Proxy)return new Proxy(e,he);var i=Object.create(e);return ge((function(){for(var t in e)_.isFunction(e[t])&&"constructor"!==t&&"super"!==t&&!_.startsWith(t,"ng")&&(e[t]=e[t].bind(e))})),Object.keys(G).forEach((function(t){Object.defineProperty(i,t,{get:function(){return e[t]},set:function(n){return ue(e,t,n)}})})),n&&n.forEach((function(t,n){Object.defineProperty(i,n,{get:function(){return e[n]},set:function(t){return ue(e,n,t)}})})),i},e}(),ye=function(e,t,n){t&&t.length&&i.removeClass(n,_.join(t," ")),e&&e.length&&i.addClass(n,_.join(e," "))},be=function(e,t,n){t&&_.isObject(t)&&Object.keys(t||{}).forEach((function(e){i.setCSS(n,e,"")}));e&&_.isObject(e)&&i.setCSSFromObj(n,e)},we=function(){function e(e,n,o){var a=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||re.BLOCK,this.context=e.view.context,this.widget=this.createProxy(),this.eventManager=e.get(r.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(){a.initWidget(),a.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 ve.create(this,this.widgetSubType,Q(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 oe.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)ye(t.toAdd,t.toRemove,this.nativeElement);else if("autoplay"===e){var a="wm-audio"===this.widgetType?"audio":"video";this.nativeElement.querySelector(a).load()}else"conditionalstyle"===e?be(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,a,r;this.registerDestroyListener((t=this.widget,n=this.viewParent,o=this.widgetId,a=e,r=!1,ie.set(o,t),a&&i.isDefined(n.Widgets)&&(r=!0,n.Widgets[a]=t),function(){ie.delete(o),r&&(n.Widgets[a]=void 0)}))},e.prototype.getMappedEventName=function(e){return ae.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,a=i.$parseEvent(t),r=this.context;r.widget=this.widget;var s=a.bind(void 0,this.viewParent,r),l=function(){var t;i.$invokeWatchers(!0);try{if(r.$event=r.$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:r}),this[_.camelCase("on-"+e)]=l,this.toBeSetupEventsQueue.push((function(){o.handleEvent(o.nativeElement,o.getMappedEventName(e),l,r,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}),x(this.widgetId,e),"datasource"===e,this.widgetProps.get(e),(function(){return n.isMuted})))},e.prototype.removePropertyBinding=function(e){i.$unwatch(x(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],a=n[1],r=n[2],s=n.length;"bind"===a?("show"===o&&(this.nativeElement.hidden=!0),this.processBindAttr(o,t)):"event"===a?this.processEventAttr(o,t,r):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 a=g(o.value,3),r=a[1],s=a[2];this.$attrs.set(r,s),this.processAttr(r,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=Q(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)||V(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}();we.decorators=[{type:t.Injectable}],we.ctorParameters=function(){return[{type:t.Injector},{type:void 0},{type:Promise}]};var Pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t}(we);Pe.decorators=[{type:t.Injectable}];var _e=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()}};_e.decorators=[{type:t.Directive,args:[{selector:"[redrawable]"}]}],_e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Self},{type:t.Inject,args:[y]}]}]};var Oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(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}(Pe);Oe.decorators=[{type:t.Directive}],Oe.propDecorators={reDrawableComponents:[{type:t.ContentChildren,args:[_e,{descendants:!0}]}]};var Ee="app-container",Re={widgetType:"wm-container",hostClass:Ee},Ae=function(t){function n(n){var o=t.call(this,n,Re)||this;return i.addClass(o.nativeElement,Ee),z(o.nativeElement,o,e.APPLY_STYLES_TYPE.CONTAINER),o}return u(n,t),n}(Oe);Ae.initializeProps=ne(),Ae.decorators=[{type:t.Directive,args:[{selector:"[wmContainer]",providers:[I(Ae)]}]}],Ae.ctorParameters=function(){return[{type:t.Injector}]};var Te=function(){function e(){}return e.prototype.transform=function(e,t,n){return i.transformFileURI(T(e,t,n))},e}();Te.decorators=[{type:t.Pipe,args:[{name:"image"}]}];var Se=function(){Z("wm-item-template",new Map([["content",J]]))},Ce={widgetType:"wm-item-template"},Ie=function(e){function t(t,n,i){var o=e.call(this,t,Ce)||this;return o.app=i,o.nativeElement=n.nativeElement,o.context=t.view.context,o}return u(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}(Pe);Ie.initializeProps=Se(),Ie.decorators=[{type:t.Directive,args:[{selector:"[wmItemTemplate]",exportAs:"itemTemplateRef",providers:[I(Ie)]}]}],Ie.ctorParameters=function(){return[{type:t.Injector},{type:t.ElementRef},{type:i.App}]},Ie.propDecorators={userComponentParams:[{type:t.Input}],wmItemTemplate:[{type:t.Input}]};var De=function(){Z("wm-repeat-template",new Map([["show",ee]]))},xe={widgetType:"wm-repeat-template",hostClass:"app-repeat-item"},Ne=function(e){function t(t){var n=e.call(this,t,xe)||this;return z(n.nativeElement,n),n}return u(t,e),t}(Pe);Ne.initializeProps=De(),Ne.decorators=[{type:t.Directive,args:[{selector:"[wmRepeatTemplate]"}]}],Ne.ctorParameters=function(){return[{type:t.Injector}]};var Me=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}();Me.decorators=[{type:t.Directive,args:[{selector:"[lazyLoad]"}]}],Me.ctorParameters=function(){return[{type:t.Injector},{type:t.TemplateRef},{type:t.ViewContainerRef}]},Me.propDecorators={lazyLoad:[{type:t.Input}]};var ke=function(){Z("wm-message",new Map([["animation",J],["caption",Object.assign({value:"Message"},J)],["class",J],["hideclose",Object.assign({value:!1},ee)],["name",J],["show",Object.assign({value:!0},ee)],["type",Object.assign({value:"success"},J)]]))},Le={widgetType:"wm-message",hostClass:"alert app-message"},Fe=function(e){function t(t){var n=e.call(this,t,Le)||this;return n.messageClass="",n.messageIconClass="",n.type="",z(n.nativeElement,n),n}return u(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}(Pe);Fe.initializeProps=ke(),Fe.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:[I(Fe)],exportAs:"wmMessage"}]}],Fe.ctorParameters=function(){return[{type:t.Injector}]};var je=function(){Z("wm-partial",new Map([["name",J]]))},Be={widgetType:"wm-partial",hostClass:"app-partial clearfix"},Ge=function(e){function t(t,n){var i=e.call(this,t,Be)||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 u(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}(Pe);Ge.initializeProps=je(),Ge.decorators=[{type:t.Directive,args:[{selector:"[wmPartial]",providers:[I(Ge)]}]}],Ge.ctorParameters=function(){return[{type:t.Injector},{type:i.Viewport}]};var $e=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 a=this;this.widgetRef.partialParams[e]=t,!t&&n?this.widgetRef.registerDestroyListener(i.$watch(n,this.widgetRef.getViewParent(),_.get(this.widgetRef,"context"),(function(t){a.widgetRef.partialParams[e]=t,a.widgetRef.params$.next()}))):this.widgetRef.params$.next()},e}();$e.decorators=[{type:t.Directive,args:[{selector:"[partialContainer]"}]}],$e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Self},{type:t.Inject,args:[y]}]}]};var Ve=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}();Ve.decorators=[{type:t.Directive,args:[{selector:"[wmParam]"}]}],Ve.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Attribute,args:["value.bind"]}]},{type:void 0,decorators:[{type:t.Attribute,args:["type"]}]},{type:$e}]},Ve.propDecorators={name:[{type:t.Input}],value:[{type:t.Input}]};var We=function(){function e(e,t,n,o,a,r,s,c){var p=this;this.componentInstance=e,this.vcRef=t,this.elRef=n,this.inj=o,this.app=a,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 d=e.params$.pipe(l.filter((function(){return p.contentInitialized})),l.debounceTime(200)).subscribe((function(){return p.renderPartial(e.content)}));e.registerDestroyListener((function(){return d.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,a,r=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())&&((a=this.vcRef.createComponent(o,0,this.inj))&&a._component&&n&&(a._component.prefabName=n),this.$target||(this.$target=this.elRef.nativeElement.querySelector("[partial-container-target]")||this.elRef.nativeElement),this.$target.innerHTML="",this.$target.appendChild(a.location.nativeElement),this.contentInitialized=!0,setTimeout((function(){return r.onLoadSuccess()}),200)),[2]}}))}))},e.prototype.onLoadSuccess=function(){this.componentInstance.invokeEventCallback("load"),this.app.notify("partialLoaded")},e}();We.decorators=[{type:t.Directive,args:[{selector:"[partialContainer]"}]}],We.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 Ue=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}();Ue.decorators=[{type:t.Directive,args:[{selector:"[showInDevice]"}]}],Ue.ctorParameters=function(){return[{type:t.ElementRef},{type:we,decorators:[{type:t.Inject,args:[y]}]},{type:t.ViewContainerRef},{type:t.Injector},{type:t.TemplateRef}]},Ue.propDecorators={showInDevice:[{type:t.Input}]};var qe=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},a=this._$el[0];if(!a.children.length)return null;this._$el.addClass("smoothscroll-wrapper"),a.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 r=new IScroll(a,o);if(e){_.forEach(e,(function(e,t){_.forEach(e,(function(e){r.on(t,e)}))}));var s=this;r.on("scrollStart",(function(){this._scrolling=!0,i.isMobileApp()&&s.app.notify("iscroll-start",{})})),r.on("scrollEnd",(function(){this._scrolling=!1})),r.refresh()}return this.app.notify("iscroll-start",{}),r.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=r,_.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:r,destroy:function(){r.destroy(),$(r.scroller).css({"transition-timing-function":"","transition-duration":"",transform:""}),r=null,delete a.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?(ze(this._smoothScrollInstance.iScroll),this._lastScrollY=this._$el[0].iscroll.maxScrollY):this._smoothScrollInstance.iScroll.refresh(),this._waitRefreshTill=Date.now()+500}},e}();qe.decorators=[{type:t.Directive,args:[{selector:"[wmSmoothscroll]"}]}],qe.ctorParameters=function(){return[{type:t.Injector},{type:t.ElementRef},{type:i.App}]},qe.propDecorators={wmSmoothscroll:[{type:t.Input}]};var ze=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()}))},He=ze;window.addEventListener("resize",i.debounce(ze,200));var Ye=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}();Ye.decorators=[{type:t.Directive,args:[{selector:"[textContent]"}]}],Ye.ctorParameters=function(){return[{type:t.ElementRef}]},Ye.propDecorators={textContent:[{type:t.Input}]};var Ke=function(e){return _.isDate(e)||isNaN(e)||(e=parseInt(e,10)),moment(e).valueOf()||moment((new Date).toDateString()+" "+e).valueOf()},Qe=function(){function e(e){this.decimalPipe=e}return e.prototype.transform=function(e,t,n,i,o,a,r,s){n=o&&!r?"1."+a.length+"-16":n;var l=s?s.number:void 0;return this.decimalPipe.transform(e,n,i||l||t)},e}();Qe.decorators=[{type:t.Pipe,args:[{name:"trailingZeroDecimalPipe"}]}],Qe.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 a;if("null"===e||""===e)return"";if(!i.isDefined(e))return"";if(a=Ke(e)){if("timestamp"===t)return a;if("UTC"===t)return new Date(a).toISOString();var r=this.i18nService?this.i18nService.getTimezone(o):n;return r&&(e===a||i.hasOffsetStr(e))?moment(a).tz(r).format(t.replaceAll("y","Y").replaceAll("d","D").replace("a","A")):this.datePipe.transform(a,t)}return""},e}();Ze.decorators=[{type:t.Pipe,args:[{name:"toDate"}]}],Ze.ctorParameters=function(){return[{type:n.DatePipe},{type:i.AbstractI18nService}]};var Je=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}();Je.decorators=[{type:t.Pipe,args:[{name:"toNumber"}]}],Je.ctorParameters=function(){return[{type:n.DecimalPipe},{type:i.AbstractI18nService,decorators:[{type:t.Inject,args:[i.AbstractI18nService]}]}]};var Xe=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||"",a=new Je(this.decimalPipe,this.i18nService).transform(e,n),r=_.startsWith(a,"-");return r&&(a=a.replace("-","")),a?r?"-"+o+a:o+a:""},e}();Xe.decorators=[{type:t.Pipe,args:[{name:"toCurrency"}]}],Xe.ctorParameters=function(){return[{type:n.DecimalPipe},{type:i.AbstractI18nService,decorators:[{type:t.Inject,args:[i.AbstractI18nService]}]}]};var et=function(){function e(){}return e.prototype.transform=function(e,t){return _.isUndefined(e)||null===e||""===e?e:(t||"")+e},e}();et.decorators=[{type:t.Pipe,args:[{name:"prefix"}]}];var tt=function(){function e(){}return e.prototype.transform=function(e,t){return _.isUndefined(e)||null===e||""===e?e:e+(t||"")},e}();tt.decorators=[{type:t.Pipe,args:[{name:"suffix"}]}];var nt=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}();nt.decorators=[{type:t.Pipe,args:[{name:"custom"}]}],nt.ctorParameters=function(){return[{type:i.CustomPipeManager}]};var it=function(){function e(){}return e.prototype.transform=function(e){var t;if(i.isDefined(e))return(t=Ke(e))?moment(t).fromNow():void 0},e}();it.decorators=[{type:t.Pipe,args:[{name:"timeFromNow"}]}];var ot=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t}(Je);ot.decorators=[{type:t.Pipe,args:[{name:"numberToString"}]}];var at=function(){function e(){}return e.prototype.transform=function(e){return Number(e)||void 0},e}();at.decorators=[{type:t.Pipe,args:[{name:"stringToNumber"}]}];var rt=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}();rt.decorators=[{type:t.Pipe,args:[{name:"filter"}]}];var st=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}();st.decorators=[{type:t.Pipe,args:[{name:"filesize"}]}];var lt=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}();lt.decorators=[{type:t.Pipe,args:[{name:"fileIconClass"}]}];var ct=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}();ct.decorators=[{type:t.Pipe,args:[{name:"stateClass"}]}];var pt=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}();pt.decorators=[{type:t.Pipe,args:[{name:"fileExtensionFromMime"}]}];var dt=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}();dt.decorators=[{type:t.Pipe,args:[{name:"trustAs"}]}],dt.ctorParameters=function(){return[{type:r.DomSanitizer}]};var ut=[],ht=[],mt=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(ut.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){ut.push(e)},e.prototype.getLastOpenedDialog=function(){return ut[ut.length-1]},e.prototype.removeFromOpenedDialogs=function(e){-1!==ut.indexOf(e)&&ut.splice(ut.indexOf(e),1)},e.prototype.getOpenedDialogs=function(){return ut},e.prototype.addToClosedDialogs=function(e){ht.push(e)},e.prototype.removeFromClosedDialogs=function(e){-1!==ht.indexOf(e)&&ht.splice(ht.indexOf(e),1)},e.prototype.getDialogRefFromClosedDialogs=function(){return ht[ht.length-1]},e}();mt.decorators=[{type:t.Injectable}],mt.ctorParameters=function(){return[]};var ft=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}();ft.decorators=[{type:t.Pipe,args:[{name:"sanitize"}]}],ft.ctorParameters=function(){return[{type:r.DomSanitizer}]};var gt=[Ae,Ie,Ne,Me,Fe,Ge,$e,Ve,We,_e,Ue,qe,Ye],vt=[Ze,lt,pt,rt,st,Je,Xe,et,tt,it,ot,ct,at,Qe,dt,Te,nt,ft],yt=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[Ze,rt,Qe,dt,Te,nt,ft,n.Location,{provide:i.AbstractDialogService,useClass:mt}]}},e}();yt.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,o.SecurityModule],declarations:v(v([],g(gt)),g(vt)),exports:v(v([],g(gt)),g(vt))}]}];var bt,wt=function(){};e.Live_Operations=void 0,(bt=e.Live_Operations||(e.Live_Operations={})).INSERT="insert",bt.UPDATE="update",bt.DELETE="delete",bt.READ="read";var Pt="All Fields",_t={EMPTY_KEY:"EMPTY_NULL_FILTER",EMPTY_VALUE:"No Value",LABEL_KEY:"key",LABEL_VALUE:"value",NULL_EMPTY:["null","empty"],NULL:"null",EMPTY:"empty"};function Ot(e){return _.includes([i.FormWidgetType.AUTOCOMPLETE,i.FormWidgetType.TYPEAHEAD,i.FormWidgetType.CHIPS],e)}var Et=function(e,t,n){var o=i.debounce((function(){_.isFunction(n)&&n(t)}),300);o();var a=t?_.isObject(t)?t:JSON.parse(t):{},r=e.registerDestroyListener?e.registerDestroyListener.bind(e):_.noop,s=i.processFilterExpBindNode(e,a).subscribe((function(e){t=JSON.stringify(e.filterExpressions),o()}));r((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(a,r){!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){a({field:t,data:e.data,aliasColumn:o.aliasColumn})}),r))}))}function Tt(e,t){if(Ot(e[t.widget]))return e.datafield=t.aliasColumn||_t.LABEL_KEY,e.searchkey=t.distinctField||_t.LABEL_KEY,void(e.displaylabel=e.displayfield=t.aliasColumn||_t.LABEL_VALUE);e.datafield=_t.LABEL_KEY,e.displayfield=_t.LABEL_VALUE}function St(e,t,n){var o=[i.FormWidgetType.SELECT,i.FormWidgetType.RADIOSET],a={},r=[];n.isEnableEmptyFilter&&_.includes(o,e[n.widget])&&!e["is-range"]&&!e.multiple&&(a[_t.LABEL_KEY]=_t.EMPTY_KEY,a[_t.LABEL_VALUE]=n.EMPTY_VALUE||_t.EMPTY_VALUE,r.push(a)),_.each(t,(function(e){var t=e[n.aliasColumn],i={};null!==t&&""!==t&&(i[_t.LABEL_KEY]=t,i[_t.LABEL_VALUE]=t,r.push(i))})),Tt(e,n),e.dataset=r}function Ct(e,t,n){if(e&&t&&!t.isDataSetBound)if(Ot(t[n.widget])){var i=Rt(e,t);t.dataoptions=i,Tt(t,Object.assign(n||{},i)),t.datasource=e}else Et(t.viewParent,t.filterexpressions,(function(i){t.filterexpressions=i,At(e,t,n.widget).then((function(e){St(e.field,e.data,{aliasColumn:e.aliasColumn,widget:n.widget,isEnableEmptyFilter:Nt(n.enableemptyfilter),EMPTY_VALUE:n.EMPTY_VALUE})}))}))}function It(e){return i.isDefined(e)&&""!==e&&null!==e}function Dt(e,t){var n;return It(e)&&It(t)?n=[e,t]:It(e)?n=e:It(t)&&(n=t),n}function xt(e,t){var n;return It(e)&&It(t)?n=i.MatchMode.BETWEEN:It(e)?n=i.MatchMode.GREATER:It(t)&&(n=i.MatchMode.LESSER),n}function Nt(e){return e&&_.intersection(e.split(","),_t.NULL_EMPTY).length>0}function Mt(e){var t,n=_.split(e,",");return 2===_.intersection(n,_t.NULL_EMPTY).length?t=i.MatchMode.NULLOREMPTY:_.includes(n,_t.NULL)?t=i.MatchMode.NULL:_.includes(n,_t.EMPTY)&&(t=i.MatchMode.EMPTY),t}var kt=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 Lt,Ft=moment.localeData(),jt=i.getClonedObject(Ft._calendar),Bt=Ft._calendarDay||{lastDay:"[Yesterday]",lastWeek:"[Last] dddd",nextDay:"[Tomorrow]",nextWeek:"dddd",sameDay:"[Today]",sameElse:"L"},Gt="alphabet",$t="Others",Vt={HOUR:"hour",DAY:"day",WEEK:"week",MONTH:"month",YEAR:"year"},Wt="yyyy-MM-dd",Ut="w 'Week', yyyy",qt="MMM, yyyy",zt="YYYY",Ht="hh:mm a",Yt=function(e,t,n){if(!t)return _.cloneDeep(e);var i=t.split(","),o=[],a=[];return i.forEach((function(e){var t=e.split(":");o.push(n?n+"."+t[0]:t[0]),a.push(t[1])})),_.orderBy(e,o,a)},Kt=function(e){return _.isString(e)&&(e=_.split(e,",").map((function(e){return e.trim()}))),e},Qt=function(e){return"wm-search"===e},Zt=function(e,t,n,o){if(e&&Qt(e.widgetType))if(e.groupby)if(_.includes(e.groupby,"(")){var a=i.$parseEvent(e.groupby);n.groupby=a(t,{row:n.dataObject||n})}else n.groupby=nn(e.groupby,e.match,o,e.dateformat,e.datePipe,e.appDefaults,n);else n.groupby=""},Jt=function(e,t,n){var i=[];return _.forEach(_.keys(e),(function(o,a){var r=Yt(e[o],n,"dataObject");i.push({key:o,data:_.sortBy(r,(function(e){return e._groupIndex=a+1,_.get(e,t)||_.get(e.dataObject,t)}))})})),i},Xt=function(e,t,n,i,o,a,r,s){n===Vt.DAY&&(Ft._calendar=Bt),e=_.orderBy(e,(function(e){var n=_.get(r?e[r]:e,t);if(n)return _.toLower(n)}));var l=_.groupBy(e,nn.bind(void 0,t,n,r,o,a,s));return Ft._calendar=jt,l},en=function(e,t,n,o){return"timestamp"===t?e:i.getFormattedDate(o,e,t||n)},tn=function(e,t,n,i,o){var a,r=moment(e),s=n,l=moment(),c=function(){return"["+en(this.valueOf(),s,Wt,i)+"]"};switch(t){case Vt.HOUR:s=s||o.timeFormat,r.isValid()||(r=moment((new Date).toDateString()+" "+e)).isValid()&&(Ft._calendar.sameDay=function(){return"["+en(this.valueOf(),s,Ht,i)+"]"}),r=r.startOf("hour"),Ft._calendar.sameElse=c,a=r.calendar(l);break;case Vt.WEEK:a=en(r.valueOf(),s,Ut,i);break;case Vt.MONTH:a=en(r.valueOf(),s,qt,i);break;case Vt.YEAR:a=r.format(zt);break;case Vt.DAY:s=s||o.dateFormat,r=r.startOf("day"),Ft._calendar.sameElse=c,a=r.calendar(l)}return"Invalid date"===a?$t:a},nn=function(e,t,n,i,o,a,r){var s=_.get(n?r[n]:r,e);return _.isUndefined(s)||_.isNull(s)||""===s.toString().trim()?$t:(t===Gt&&(s=s.substr(0,1)),_.includes(_.values(Vt),t)&&(s=tn(s,t,i,o,a)),s)},on=function(){},an="default",rn="label",sn=function(e,t,n,i){_.forEach(e,(function(e){_.get(e,"isGroup")&&(e.field===n?e.columns[i]=t:sn(e.columns,t,n,i))}))},ln=function(e){return"true"===e||"false"!==e&&(/^\d+$/.test(e)?+e:e)},cn={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"]},pn=function(e){if(e)return/^(\/|#\/|#)(?!\W).*/.test(e)?"#/"+(e=_.first(e.match(/[\w]+.*/g))||""):_.startsWith(e,"www.")?"//"+e:e},dn=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 u(t,e),t.prototype.getNode=function(e,t){var n=this.viewParent.pageScope||this.viewParent,o=R(t,{field:this.itemchildren,bindExpression:this.binditemchildren},n)||_.get(t,e.childrenField),a={action:R(t,{field:this.itemaction,bindExpression:this.binditemaction},n)||_.get(t,e.actionField),badge:R(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:R(t,{field:this.itemicon,bindExpression:this.binditemicon},n)||_.get(t,e.iconField),id:R(t,{field:this.itemid,bindExpression:this.binditemid},n)||_.get(t,e.idField),label:R(t,{field:this.itemlabel,bindExpression:this.binditemlabel},n)||_.get(t,e.labelField),link:pn(R(t,{field:this.itemlink,bindExpression:this.binditemlink},n)||_.get(t,e.linkField)),target:pn(R(t,{field:this.itemtarget,bindExpression:this.binditemtarget},n)||_.get(t,e.targetField)),role:R(t,{field:this.userrole,bindExpression:this.binduserrole},n),isactive:R(t,{field:this.isactive,bindExpression:this.bindisactive},n),value:this.datafield?"All Fields"===this.datafield?t:i.findValueOf(t,this.datafield):t};return _.omitBy(a,_.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=kt(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=Yt(this.prepareNodeDataSet(e),this.orderby)||[];if(n.length){var o=this.userrole,a=this.getItemFieldsMap();n=n.reduce((function(e,n){return i.validateAccessRoles(n[o],t.securityService.loggedInUser)&&e.push(t.getNode(a,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}(Pe),un={pattern:"regexp",max:"maxvalue",min:"minvalue",required:"required",maxlength:"maxchars",mindate:"mindate",maxdate:"maxdate",excludedates:"excludedates",excludedays:"excludedays"},hn=function(){function e(e,t,n,i,o,a){this.instance=e,this.formwidget=t,this.widgettype=n,this.widgetControl=i,this.widgetContext=o,this.defaultValidatorMessages=[],a&&(this.tableFieldType=a)}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 a=_.get(e,"validator");t.setDefaultValidator(o,a),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(un,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}(),mn=function(e){function t(t,n,o){var a=e.call(this)||this;a.$el=t,a.app=n,a.onPullToRefresh=o,a.count=0;return a.$el.prepend('<div class="refresh-container"></div>'),a.infoContainer=a.$el.find(".refresh-container"),i.isIos()&&a.infoContainer.addClass("ios-refresh-container"),a.init(a.$el),a}return u(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 gn(this.infoContainer):new fn(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),fn=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 a=this.polarToCartesian(e,t,n,o),r=this.polarToCartesian(e,t,n,i),s=o-i<=180?"0":"1";return["M",a.x,a.y,"A",n,n,0,s,0,r.x,r.y,"L",r.x,r.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}(),gn=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}(),vn=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"}(Lt||(Lt={}));var yn=function(e){return"[data-role='"+e+"']"},bn=(yn("pageContainer"),function(e,t){"string"==typeof e&&(e=document.querySelector(e)),e&&(e.removeEventListener("click",t),e.addEventListener("click",t))}),wn=function(e,t){if(i.isMobile()){if(e)try{e.widget.collapse()}catch(e){}t&&i.setCSS(t,"display","none")}},Pn=function(e,t,n,i){void 0===i&&(i=!1),i||bn(t,wn.bind(vn,e,n))},_n=function(e,t){bn(yn(Lt.SWIPE_ELEM),(function(){e&&(e.widget.toggle(),e.classList.contains("visible")&&t&&i.setCSS(t,"display","none"))}))},On=function(e){bn(e,wn)},En=function(e,t){"none"===$(e).css("display")?(wn(t),i.setCSS(e,"display","inline-table")):wn(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),bn(i,(function(){return En(n,t)}))}))};e.ALLFIELDS=Pt,e.AUTOCLOSE_TYPE={OUTSIDECLICK:"outsideClick",ALWAYS:"always",DISABLED:"disabled"},e.BaseComponent=we,e.BaseContainerComponent=Oe,e.BaseFieldValidations=hn,e.ContainerDirective=Ae,e.Context=w,e.CustomPipe=nt,e.DEBOUNCE_TIMES={PAGINATION_DEBOUNCE_TIME:250},e.DISPLAY_TYPE=re,e.DataSetItem=on,e.DatasetAwareNavComponent=dn,e.DialogRef=b,e.DialogServiceImpl=mt,e.EDIT_MODE={QUICK_EDIT:"quickedit",INLINE:"inline",FORM:"form",DIALOG:"dialog"},e.EVENTS_MAP=ae,e.FileExtensionFromMimePipe=pt,e.FileIconClassPipe=lt,e.FileSizePipe=st,e.FilterPipe=rt,e.INPUTMODE={FINANCIAL:"financial",NATURAL:"natural"},e.ImagePipe=Te,e.ItemTemplateDirective=Ie,e.LIVE_CONSTANTS=_t,e.LazyLoadDirective=Me,e.MessageComponent=Fe,e.NAVIGATION_TYPE={ADVANCED:"Advanced",BASIC:"Basic",CLASSIC:"Classic",INLINE:"Inline",NONE:"None",ONDEMAND:"On-Demand",PAGER:"Pager",SCROLL:"Scroll"},e.NumberToStringPipe=ot,e.PROP_ANY=te,e.PROP_BOOLEAN=ee,e.PROP_NUMBER=X,e.PROP_STRING=J,e.PartialContainerDirective=We,e.PartialDirective=Ge,e.PartialParamDirective=Ve,e.PartialParamHandlerDirective=$e,e.PrefixPipe=et,e.PullToRefresh=mn,e.RedrawableDirective=_e,e.RepeatTemplateDirective=Ne,e.SanitizePipe=ft,e.ShowInDeviceDirective=Ue,e.SmoothScrollDirective=qe,e.StateClassPipe=ct,e.StringToNumberPipe=at,e.StylableComponent=Pe,e.SuffixPipe=tt,e.TextContentDirective=Ye,e.TimeFromNowPipe=it,e.ToCurrencyPipe=Xe,e.ToDatePipe=Ze,e.ToNumberPipe=Je,e.TrailingZeroDecimalPipe=Qe,e.TrustAsPipe=dt,e.WidgetRef=y,e.WmComponentsModule=yt,e.applyFilterOnField=function(e,t,n,o,a){void 0===a&&(a={});var r=t.field||t.key,s=_.filter(n,{"filter-on":r});o=t["is-range"]?Dt(t.minValue,t.maxValue):i.isDefined(o)?o:t.value,!e||a.isFirst&&(_.isUndefined(o)||""===o)||_.forEach(s,(function(n){var r,s,l,c=n.field||n.key,p=t["lookup-field"]||t._primaryKey,d=n["edit-widget-type"]||n.widgettype,u={},h=n["filter-on"];A(d)&&!n.isDataSetBound&&h!==c&&(t&&t["is-related"]&&(h+="."+p),i.isDefined(o)?(l=t["is-range"]?xt(t.minValue,t.maxValue):Nt(a.enableemptyfilter)&&o===_t.EMPTY_KEY?Mt(a.enableemptyfilter):i.MatchMode.EQUALS,r=_.isObject(o)&&!_.isArray(o)?o[p]:o,u[h]={value:r,matchMode:l}):u={},s=c,Ot(d)&&n.dataoptions?n.dataoptions.filterFields=u:e.execute(i.DataSource.Operation.GET_DISTINCT_DATA_BY_FIELDS,{fields:s,filterFields:u,pagesize:n.limit}).then((function(e){St(n,e.data,{aliasColumn:s,widget:a.widget||"widgettype",isEnableEmptyFilter:Nt(a.enableemptyfilter),EMPTY_VALUE:a.EMPTY_VALUE})}),wt))}))},e.configureDnD=function(e,t,n,i,o){var a=Object.assign({containment:e,delay:100,opacity:.8,helper:"clone",zIndex:1050,tolerance:"pointer",start:n,update:i,sort:o},t);e.sortable(a)},e.convertDataToObject=Kt,e.createArrayFrom=kt,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){Ct(e,t,n)}))},e.fetchRelatedFieldData=function(e,t,n){var o,a,r=n.relatedField,s=n.datafield;e&&(o=e.execute(i.DataSource.Operation.GET_RELATED_PRIMARY_KEYS,r),t.datafield=s,t._primaryKey=_.isEmpty(o)?void 0:o[0],t.compareby=o&&o.join(","),a=s===Pt?void 0:s,t.displayfield=a=t.displayfield||a||t._primaryKey,Ot(t[n.widget])?(t.dataoptions={relatedField:r,filterExpr:t.filterexpressions?t.filterexpressions:{}},t.datasource=e,t.searchkey=t.searchkey||a,t.displaylabel=t.displayfield=t.displaylabel||a,t.showPendingSpinner&&(t.showPendingSpinner=!1)):Et(t.viewParent,t.filterexpressions,(function(n){t.filterexpressions=n,e.execute(i.DataSource.Operation.GET_RELATED_TABLE_DATA,{relatedField:r,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)}),wt)})))},e.filterDate=en,e.getBackGroundImageUrl=S,e.getConditionalClasses=F,e.getContainerTargetClass=function(e){return".wm-app"},e.getDataTableFilterWidget=function(e){var t=cn[e]&&cn[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?ln(e):e:i.isNumberType(t)?isNaN(Number(e))?null:Number(e):t===i.DataType.BOOLEAN?ln(e):e},e.getDefaultViewModeWidget=function(e){return _.includes(["checkbox","toggle","rating"],e)?an:rn},e.getDistinctFieldProperties=Rt,e.getDistinctValues=At,e.getDistinctValuesForField=Ct,e.getEditModeWidget=function(e){return e["related-entity-name"]&&e["primary-key"]?i.FormWidgetType.SELECT:cn[e.type]&&cn[e.type][0]||i.FormWidgetType.TEXT},e.getEmptyMatchMode=Mt,e.getEnableEmptyFilter=Nt,e.getEvaluatedData=R,e.getFieldLayoutConfig=function(e,t,n){var o="",a="";return"top"===(t=t||"top")||"floating"===t?n&&"android"===n||!i.isMobileApp()||i.isAndroid()?o=a="col-xs-12":i.isMobileApp()&&(o="col-xs-4",a="col-xs-8"):e&&_.forEach(_.split(e," "),(function(e){var t,n,i=_.split(e,"-"),r=i[0];t=parseInt(i[1],10),o+=" col-"+r+"-"+t,a+=" col-"+r+"-"+(n=(n=12-t)<=0?12:n)})),{captionCls:o,widgetCls:a}},e.getFieldTypeWidgetTypesMap=function(){return cn},e.getImageUrl=T,e.getKeyboardFocusableElements=function(e){return[e.querySelectorAll('a, button, input, textarea, select, details, iframe, embed, object, summary dialog, audio[controls], video[controls], [contenteditable], [tabindex]:not([tabindex="-1"])')].filter((function(e){return!e[0].hasAttribute("disabled")&&!e[0].hasAttribute("hidden")}))[0]},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&&(M.number.push("in","notin","between"),M.date.push("between"),M.string.push("in","notin"),M.character.push("in","notin")),_.forEach(N,(function(e,t){_.forEach(e,(function(e){k[e]=M[t]}))})),k.default=_.union(M.number,M.string,M.character,M.date,M.date),k},e.getObjValueByKey=E,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=Yt,e.getRangeFieldValue=Dt,e.getRangeMatchMode=xt,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,a=t===Pt;return o=a?_.uniqWith(e,_.isEqual):_.uniqBy(e,"key"),!n||i?o:_.filter(o,(function(e){return(a||_.trim(e.key))&&_.trim(e.label)}))},e.getWatchIdentifier=x,e.getWidgetPropsByType=Q,e.groupData=function(e,t,n,o,a,r,s,l,c){var p={};if(_.includes(n,"(")){var d=i.$parseEvent(n);p=_.groupBy(t,(function(t){return d(e.viewParent,{row:t.dataObject||t})}))}else p=Xt(t,n,o,a,r,s,l,c);return Jt(p,n,a)},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.interpolateBindExpressions=Et,e.isActiveNavItem=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))},e.isBooleanAttr=le,e.isDataSetWidget=A,e.isDimensionProp=pe,e.isStyle=V,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?ln(e):e:i.isNumberType(t)?isNaN(Number(e))?null:Number(e):t===i.DataType.BOOLEAN?ln(e):e},e.performDataOperation=function(t,n,o){return new Promise((function(a,r){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,a,r)}),r)}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(a,r)}else t.execute(i.DataSource.Operation.SET_INPUT,n),t.execute(i.DataSource.Operation.INVOKE,{skipNotification:!0}).then(a,r);else a(n)}))},e.prepareFieldDefs=function(e,t){var n,i={objects:[],terminals:[]};if(e||(e=[]),t||(t={}),t.setBindingField=!0,t.columnCount=0,n=B(e),j(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=G,e.provideAs=C,e.provideAsDialogRef=function(e){return C(e,b)},e.provideAsWidgetRef=I,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=Y+e,i=K.get(n);i&&t.forEach((function(e,t){return i.set(t,e)}))},e.setFocusTrap=function(e,t,n){return a.createFocusTrap(e,{onActivate:function(){return e.classList.add("is-active")},onDeactivate:function(){return e.classList.remove("is-active")},allowOutsideClick:t,setReturnFocus:n})},e.setHeaderConfig=sn,e.setHeaderConfigForTable=function(e,t,n,i){n?sn(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=z,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,a,r,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("."),a=[],r=o.length,l=s={},o.forEach((function(t,n){a.forEach((function(e){l=s[e]})),l[t]=n===r-1?e:{},a.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,a,r){var s=[];if(t){if(t=Kt(t),_.isUndefined(a)&&(a=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:a+n};Zt(r,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:a+n};Zt(r,e,o,"value"),s.push(o)}));else if(t instanceof Array||!_.isObject(t))n||(n=Pt),t.forEach((function(t,l){var c=n===Pt?a+l:E(t,n);if(!_.isUndefined(c)&&!_.isNull(c)){var p=R(t,{field:o.displayField,expression:o.displayExpr,bindExpression:o.bindDisplayExpr},e),d={key:c,label:i.isDefined(p)&&null!==p?p.toString():"",value:n===Pt?t:c,dataObject:t,index:a+l};(o.displayImgSrc||o.bindDisplayImgSrc)&&(d.imgSrc=R(t,{expression:o.displayImgSrc,bindExpression:o.bindDisplayImgSrc},e)),Zt(r,e,d,"dataObject"),s.push(d)}}));else{_.forEach(t,(function(n,o){var l={key:_.trim(o),value:o,label:i.isDefined(n)&&null!==n?n.toString():"",index:a,dataObject:t};Zt(r,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(yn(Lt.LEFT_PANEL)),i=e.querySelector(yn(Lt.RIGHT_PANEL)),o=e.querySelector(yn(Lt.HEADER)),a=o&&o.querySelector("."+Lt.SEARCH),r=e.querySelector("."+Lt.CONTENT);Pn(n,r,a,t),n?_n(n,a):$(o).find(yn(Lt.SWIPE_ELEM)).remove(),i&&On(i),a&&Rn(a,n)},e["\u02750"]=He,e["\u0275a"]=ne,e["\u0275b"]=Se,e["\u0275c"]=De,e["\u0275d"]=ke,e["\u0275e"]=je,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_"),a=function(e){return e.attrs.find((function(e){return"type"===e.name&&"dynamic"===e.value}))},r=a;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(a(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 r=t.getBoundToExpr(i.value);if(!r)return;n.updateTemplateAttrs(e,r,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":r}),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 d=Object.freeze({__proto__:null,default:function(){}}),u=new n.IDGenerator("wm_anchor");t.register("wm-anchor",(function(){return{pre:function(e){var n=u.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(){}}),E=new n.IDGenerator("wm_spinner");t.register("wm-spinner",(function(){return{pre:function(e){var n=E.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 R=Object.freeze({__proto__:null,default:function(){}}),A=function(e,t){return e.attrs.find((function(e){return e.name===t}))},T=A,S=function(e,t){var n=A(e,t);if(n)return n.value},C=S,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=S(e,"dataset"),i=t.getBoundToExpr(n);if(i){var o=S(e,"type"),a=S(e,"datavalue"),r=I(i);o&&o.includes(i)&&(o=o.replace(r,""),A(e,"type").value=o),a&&a.includes(i)&&(a=a.replace(r,""),A(e,"datavalue").value=a)}},pre:function(e){return"<div wmProgressBar "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var x=Object.freeze({__proto__:null,default:function(){},"\u02750":T,"\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 N=Object.freeze({__proto__:null,default:function(){}}),M=new n.IDGenerator("wm_richtexteditor");t.register("wm-richtexteditor",(function(){return{pre:function(e){var n=M.nextUid();return"<div wmRichTextEditor #"+n+'="wmRichTextEditor" role="textbox" [attr.aria-label]="'+n+".hint || 'Richtext editor'\" "+t.getFormMarkupAttr(e)+">"},post:function(){return"</div>"}}}));var k=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"<div wmTree "+t.getAttrMarkup(e)+">"},post:function(){return"</div>"}}}));var F=Object.freeze({__proto__:null,default:function(){}});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 $=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 V=Object.freeze({__proto__:null,default:function(){}}),W=new n.IDGenerator("wm_accordion_ref_"),U=function(e){return e.attrs.find((function(e){return"type"===e.name&&"dynamic"===e.value}))},q=U;t.register("wm-accordion",(function(){return{pre:function(e,n){var i=W.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(U(e)){var o=e.attrs.find((function(e){return"dataset"===e.name})),a=e.attrs.find((function(e){return"name"===e.name}));if(!o)return;var r=t.getBoundToExpr(o.value);if(!r)return;n.updateTemplateAttrs(e,r,a.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 Z=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(){}}),X=new n.IDGenerator("wm_panel");t.register("wm-panel",(function(){return{pre:function(e){return"<div wmPanel #"+X.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 a=i&&i.get("accordion_ref")||o&&o.get("tabs_ref");if(a)return'<div *ngIf="'+a+".fieldDefs && !"+a+'.fieldDefs.length">{{'+a+".nodatamessage}}</div>\n <div wmRepeatTemplate "+t.getAttrMarkup(e)+' *ngFor="let item of '+a+'.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(){}}),ae=new n.IDGenerator("wm_tabs_ref_"),re=function(e){return e.attrs.find((function(e){return"type"===e.name&&"dynamic"===e.value}))},se=re;t.register("wm-tabs",(function(){return{pre:function(e,n){var i=ae.nextUid();return n.set("tabs_ref",i),"<div wmTabs #"+i+'="wmTabs" '+t.getAttrMarkup(e)+">"},post:function(){return"</div>"},template:function(e,i){if(re(e)){var o=e.attrs.find((function(e){return"dataset"===e.name})),a=e.attrs.find((function(e){return"name"===e.name}));if(!o)return;var r=t.getBoundToExpr(o.value);if(!r)return;n.updateTemplateAttrs(e,r,a.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 de=Object.freeze({__proto__:null,default:function(){}}),ue=new n.IDGenerator("wizard_step_id_");t.register("wm-wizardstep",(function(){return{pre:function(e){var n=ue.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 a=e.get("load.event");e.delete("load.event");var r="",s="";a&&(r='load.event="'+a+'"'),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%" '+r+">"),"<div wmPartialDialog "+t.getAttrMarkup(e)+">"+l},post:function(e,t){var n="";return t.get("hasPartialContent")&&(n="</div></ng-template>"),n+"</div>"}}}));var Ee=Object.freeze({__proto__:null,default:function(){}}),Re="quickedit",Ae="form",Te="dialog",Se={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=Se[e]&&Se[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_"),xe=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)},Ne=xe,Me=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"]]]),ke=function(e,t,n){var i=1===n?"maxplaceholder":"placeholder",o=e.get(i);o||""===o||(o=Me.get(t)&&Me.get(t)[n])&&e.set(i,o)},Le=ke,Fe=function(e,t){var i=e.get("name"),o=(e.get("key")||i||"").trim(),a=t.isMaxWidget?'formControlName="'+o+'_max"':t.isInList?'[formControlName]="'+t.counter+'._fieldName"':'formControlName="'+o+'"',r=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'\" "+a+" "+t.eventsTmpl+" "+l+" "+r+" "+s;return n.getFormWidgetTemplate(t.widgetType,c,e,{counter:t.counter,pCounter:t.pCounter})},je=Fe,Be=function(e,t,i,o,a,r){if(!("true"===e.get("is-range")))return Fe(e,{widgetType:t,eventsTmpl:i,counter:o,pCounter:a,isInList:r});var s=n.isMobileApp()?"col-xs-6":"col-sm-6";return'<div class="'+s+'">'+Fe(e,{widgetType:t,eventsTmpl:i,counter:o,pCounter:a})+'</div>\n <div class="'+s+'">'+Fe(e,{widgetType:t,eventsTmpl:i,counter:o,pCounter:a,isMaxWidget:!0})+"</div>"},Ge=Be,$e=function(e,t,i){if("true"===e.get("is-related"))return i+".getDisplayExpr()";if(t===n.FormWidgetType.PASSWORD)return"'********'";var o,a=i+".value";return t===n.FormWidgetType.DATETIME||t===n.FormWidgetType.TIMESTAMP?a+=" | toDate:"+i+".formWidget.datepattern || 'yyyy-MM-dd hh:mm:ss a'":t===n.FormWidgetType.TIME?a+=" | toDate:"+i+".formWidget.timepattern || 'hh:mm a'":t===n.FormWidgetType.DATE?a+=" | 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()")},Ve=$e,We=function(e){return{requires:["wm-form","wm-liveform","wm-livefilter","wm-list"],pre:function(i,o,a,r,s,l){var c=De.nextUid(),p=a||r||s,d=p&&p.get("form_reference")||"form",u=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 && "+d+'.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=u===n.FormWidgetType.UPLOAD?"":xe(i),v=n.isMobileApp()?"col-xs-12":"col-sm-12",y=d===(l&&l.get("parent_form_reference"));return i.set("__errormsg",m),i.set("__widgetType",u),i.delete("widget"),o.set("counter",c),"true"===i.get("is-range")?(ke(i,u,0),ke(i,u,1)):ke(i,u,2),'<div data-role="'+h+'" [formGroup]="'+d+'.ngform" wmFormField captionPosition #'+c+'="wmFormField" widgettype="'+u+'" '+t.getFormMarkupAttr(i)+'>\n <div class="live-field form-group app-composite-widget clearfix caption-{{'+d+'.captionposition}}" widget="'+u+'">\n <label [hidden]="!'+c+'.displayname" class="app-label control-label formfield-label {{'+d+'._captionClass}}"\n [ngStyle]="{width: '+d+".captionsize}\" [ngClass]=\"{'text-danger': "+c+"._control?.invalid && "+c+"._control?.touched && "+d+".isUpdateMode,\n required: "+d+".isUpdateMode && "+c+'.required}" [textContent]="'+c+'.displayname"> </label>\n <div [ngClass]="'+c+".displayname ? "+d+"._widgetClass : '"+v+'\'">\n <label class="form-control-static app-label" *ngIf="!('+d+".isUpdateMode || "+c+".viewmodewidget === 'default' || "+c+".widgettype === 'upload')\"\n [hidden]=\""+d+".isUpdateMode || "+c+".viewmodewidget === 'default' || "+c+".widgettype === 'upload'\" [innerHTML]=\""+$e(i,u,c)+'"></label>\n '+Be(i,u,g,c,d,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) && "+d+'.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"]}}},Ue=We;t.register("wm-form-field",We.bind(this,!0)),t.register("wm-filter-field",We.bind(this,!1));var qe=Object.freeze({__proto__:null,default:function(){},"\u02750":Ne,"\u02751":Le,"\u02752":je,"\u02753":Ge,"\u02754":Ve,"\u02755":Ue}),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_"),Ze=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++,Ze.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)}))},Xe=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,a){var r,s,l=a&&a.get("isLogin")?"app-login":"",c=Qe.nextUid(),p=n.get("dependson")?'dependson="'+n.get("dependson")+'"':"",d="page"===n.get("formlayout")?"app-device-liveform panel liveform-inline":"";n.delete("dependson");var u='<form wmForm data-role="'+l+'" '+e+" #"+c+' ngNativeValidate [formGroup]="'+c+'.ngform" [noValidate]="'+c+".validationtype !== 'html'\"\n class=\""+d+'" [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%"),r=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 '+u+" "+r+">"}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 u+" "+(r=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":Xe,"\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 at=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 rt=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 dt=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 ut=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 Et=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 Rt=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 At=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 Tt=Object.freeze({__proto__:null,default:function(){}});function St(e,t,n,o){var a=e.attrs.find((function(e){return e.name===t}));a&&n.attrs.push(new i.Attribute(o,a.value,a.sourceSpan,a.keySpan,a.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 a=e.children.find((function(e){return e instanceof i.Element&&"wm-media-template"===e.name}));null!=a&&(St(a,"width",e,"thumbnailwidth"),St(a,"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 a=t.getBoundToExpr(i.value);a&&n.updateTemplateAttrs(e,a,o.value,"itemRef.")}},pre:function(e,n,i,o){var a=i||o;return n.set("form_reference",a&&a.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,a,r;n="position",o=t,a="swipe-position",(r=e.attrs.find((function(e){return e.name===n})))&&o.attrs.push(new i.Attribute(a,r.value,r.sourceSpan,r.keySpan,r.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(){}}),xt=new n.IDGenerator("liveform_dialog_id_");t.register("wm-livetable",(function(){return{pre:function(e,n){var i=xt.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 Nt=Object.freeze({__proto__:null,default:function(){}}),Mt=new n.IDGenerator("wm_message");t.register("wm-message",(function(){return{pre:function(e){return'<p wmMessage tabindex="0" #'+Mt.nextUid()+'="wmMessage" '+t.getAttrMarkup(e)+">"},post:function(){return"</p>"}}}));var kt=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 a=e.get("content"),r=e.get("content.bind"),s="";a?s='content="'+a+'"':r&&(s='content.bind="'+r+'"'),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"':"")+'><button class="popover-start"></button>',o&&(l+=""+(o||"")),l},post:function(e,t){var n="";return t.get("hasPopoverContent")&&(n+="</div>"),n+'<button class="popover-end"></button></ng-template></'+"wm-popover>"}}}));var $t=Object.freeze({__proto__:null,default:function(){}}),Vt=function(e,t){return e&&e.children.find((function(e){return e instanceof i.Element&&e.name===t}))},Wt=Vt,Ut=function(e){return new i.Element(e,[],[],Qt,Qt,Qt)},qt=Ut,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={},Zt=new n.IDGenerator("wm_page");t.register("wm-page",(function(){return{template:function(e){var t=Vt(Vt(e,"wm-content"),"wm-page-content");if(t||(t=Yt("wm-page-content",Yt("wm-content",e))),t){var o=Ut("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 a=Ut("div");zt(a,"wmPageContentLoader",""),zt(a,"*ngIf","!showPageContent"),t.children.push(a)}}},pre:function(e){var n=Zt.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":Wt,"\u02751":qt,"\u02752":Ht,"\u02753":Kt}),Xt=new n.IDGenerator("wm_layout");t.register("wm-layout",(function(){return{pre:function(e){var n=Xt.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 an=Object.freeze({__proto__:null,default:function(){}}),rn=new n.IDGenerator("wm_footer");t.register("wm-footer",(function(){return{pre:function(e){var n=rn.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 dn=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 un=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),a=o.next();!a.done;a=o.next()){var r=a.value;if("spa"===r.name&&"true"===r.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{a&&!a.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 En=Object.freeze({__proto__:null,default:function(){}}),Rn={},An=function(e){return new i.Element(e,[],[],Rn,Rn,Rn)},Tn=An,Sn=function(e,t,n){var o=new i.Attribute(t,n,Rn,Rn,Rn,void 0,void 0);e.attrs.push(o)},Cn=Sn;t.register("wm-partial",(function(){return{template:function(e){var t=An("ng-container");Sn(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":Tn,"\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 xn=Object.freeze({__proto__:null,default:function(){}}),Nn={},Mn=function(e){return new i.Element(e,[],[],Nn,Nn,Nn)},kn=Mn,Ln=function(e,t,n){var o=new i.Attribute(t,n,Nn,Nn,Nn,void 0,void 0);e.attrs.push(o)},Fn=Ln;t.register("wm-prefab-container",(function(){return{template:function(e){var t=Mn("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":kn,"\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(){}}),$n=new n.IDGenerator("data_table_form_"),Vn=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"]),Wn=function(e){void 0===e&&(e=[]);e.forEach((function(e){if(Vn.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))}Wn(e.children)}))},Un=Wn,qn=function(e,i){var o,a,r=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)+'"';a="submit.event=\"changeFn('"+s+"')\""}var p='#filterWidget formControlName="'+s+'_filter" '+o+" "+a+" change.event=\"changeFn('"+s+"')\"\n disabled.bind=\"isDisabled('"+s+"')\"";return'<ng-template #filterTmpl let-changeFn="changeFn" let-isDisabled="isDisabled">\n <div class="input-group '+r+'" data-col-identifier="'+s+'">\n '+(""+n.getFormWidgetTemplate(r,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,Zn=function(e,t,i,o){var a,r={},s=e.get("binding"),l=e.get("edit-widget-type")||((a={type:e.get("type"),"related-entity-name":e.get("related-entity-name"),"primary-key":e.get("primary-key")})["related-entity-name"]&&a["primary-key"]?n.FormWidgetType.SELECT:Se[a.type]&&Se[a.type][0]||n.FormWidgetType.TEXT),c="",p="",d="";l===n.FormWidgetType.UPLOAD?(r.uploadProps={formName:$n.nextUid(),name:s},r.counter=o):(c=t?"#inlineWidgetNew":"#inlineWidget",p=t?'formControlName="'+s+'_new"':'formControlName="'+s+'"',d="wmFormWidget"),r.inputType="editinputtype";var u=t?"#inlineWidgetTmplNew":"#inlineWidgetTmpl",h=c+" "+d+' key="'+s+'" data-field-name="'+s+'" '+p+" "+(l===n.FormWidgetType.UPLOAD?"":Hn(e))+" "+Kn(e),m=t?"getPendingSpinnerStatusNew":"getPendingSpinnerStatus";return"<ng-template "+u+' let-row="row" let-getControl="getControl" let-getValidationMessage="getValidationMessage" let-'+m+'="'+m+'">\n <div data-col-identifier="'+s+'" >\n '+n.getFormWidgetTemplate(l,h,e,r)+"\n "+Xn(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=Zn,Xn=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=Xn,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),Wn(e.children)}},pre:function(e,i,o){var a="",r="",s="",l="";if(o){var c=o.get("table_reference");a="multicolumn"===o.get("filtermode")&&"false"!==e.get("searchable")?qn(e,c):"";var p=o.get("editmode"),d=p!==Te&&p!==Ae&&"true"!==e.get("readonly");r=d?Zn(e,!1,o.get("errorstyle"),c):"",s=d&&p===Re&&"false"!==o.get("shownewrow")?Zn(e,!0,e.get("errorstyle")):"",l=' [formGroup]="'+c+'.ngform" '}var u=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")+'">'):(u&&"None"!==u||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 "+a+"\n "+r+"\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":Un,"\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>"},ai=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 ri=Object.freeze({__proto__:null,default:function(){},"\u02750":ai}),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>':"",a=t?t.includes("editRow(")?"edit edit-row-button":t.includes("deleteRow(")?"delete delete-row-button":"":"",r=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")+" "+a+'"\n iconclass="'+e.get("iconclass")+'"\n '+i+"\n "+r+'\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 di=Object.freeze({__proto__:null,default:function(){},"\u02750":li,"\u02751":pi}),ui=new n.IDGenerator("table_"),hi=0;function mi(e,t){var n=0;e.forEach((function(e){var o=e.name,a=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",""+a,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 a=e.children.some((function(e){return"wm-table-row"===e.name}));i.set("isrowexpansionenabled",a?"true":"false")}else i.set("isdynamictable","true");var r=e.attrs.find((function(e){return"dataset"===e.name})),s=e.attrs.find((function(e){return"name"===e.name}));if(r){var l=t.getBoundToExpr(r.value);l&&n.updateTemplateAttrs(e,l,s.value,"","row")}},pre:function(e,n){var i=ui.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=dt,e.buttonGroupBuild=ct,e.calendarBuild=at,e.cameraBuild=ve,e.cardActionsBuild=G,e.cardBuild=j,e.cardContentBuild=B,e.cardFooterBuild=$,e.carouselBuild=s,e.carouselTemplateBuild=c,e.chartBuild=V,e.checkboxBuild=ut,e.checkboxSetBuild=ht,e.chipsBuild=rt,e.colorPickerBuild=st,e.compositeBuild=mt,e.confirmDlgBuild=be,e.containerBuild=K,e.contentBuild=an,e.currencyBuild=lt,e.dateBuild=Ot,e.dateTimeBuild=_t,e.dlgBuild=Pe,e.dlgFooterBuild=we,e.fileUploadBuild=Rt,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=dn,e.lgBuild=J,e.lgcolBuild=Q,e.lgrowBuild=Z,e.linearLayoutBuild=yi,e.linearLayoutItemBuild=bi,e.listBuild=Dt,e.liveTableBuild=Nt,e.loginBuild=p,e.loginDlgBuild=Oe,e.marqueeBuild=d,e.mediaListBuild=Ct,e.mediaListItemBuild=It,e.menuBuild=Ft,e.messageBuild=kt,e.mobileNavbarBuild=un,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=Ee,e.partialParamBuild=Dn,e.pictureBuild=O,e.popoverBuild=$t,e.prefabBuild=xn,e.prefabContainerBuild=jn,e.progressBarBuild=x,e.progressCircleBuild=N,e.radiosetBuild=gt,e.ratingBuild=At,e.repeatTemplateBuild=oe,e.rightPanelBuild=mn,e.routerOutletBuild=nn,e.rteBuild=k,e.searchBuild=L,e.segContentBuild=ne,e.segControlBuild=te,e.selectBuild=vt,e.sliderBuild=Tt,e.spinnerBuild=R,e.switchBuild=bt,e.tabBarBuild=_n,e.tabPaneBuild=ce,e.tableActionBuild=Bn,e.tableBuild=fi,e.tableColumnBuild=ii,e.tableColumnGroupBuild=Gn,e.tableRowActionBuild=di,e.tableRowBuild=ri,e.tabsBuild=le,e.textAreaBuild=Pt,e.textBuild=wt,e.tileBuild=pe,e.timeBuild=Et,e.topNavBuild=En,e.treeBuild=F,e.videoBuild=gi,e.wizardBuild=de,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,a,r,s){"use strict";
44
44
  /*! *****************************************************************************
45
45
  Copyright (c) Microsoft Corporation.
46
46
 
@@ -96,7 +96,7 @@
96
96
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
97
97
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
98
98
  PERFORMANCE OF THIS SOFTWARE.
99
- ***************************************************************************** */var s=function(e,t){return(s=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 l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,a=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)r.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return r}function c(e,t,n){if(n||2===arguments.length)for(var i,o=0,a=t.length;o<a;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 p=new Map([["class",i.PROP_STRING],["datavaluesource",i.PROP_ANY],["datavalue",i.PROP_STRING],["height",i.PROP_STRING],["hint",i.PROP_STRING],["name",i.PROP_STRING],["placeholder",i.PROP_STRING],["readonly",i.PROP_BOOLEAN],["show",Object.assign({value:!0},i.PROP_BOOLEAN)],["showpreview",Object.assign({value:!1},i.PROP_BOOLEAN)],["tabindex",Object.assign({value:0},i.PROP_NUMBER)]]),d=function(){i.register("wm-richtexteditor",p),i.registerFormWidget(a.FormWidgetType.RICHTEXT,new Map(p))},u={widgetType:"wm-richtexteditor",hostClass:"app-richtexteditor clearfix"},h=function(){var e;return"function"==typeof Event?e=new Event("change"):(e=document.createEvent("Event")).initEvent("change",!0,!0),e},m=h,f=function(){if(!$.summernote.__overidden){var e=$.summernote.ui_template().button.bind($.summernote);$.summernote.ui_template.button=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=e.apply(void 0,c([],l(t))),o=i.callback;return i.callback=function(e,t){return e.addClass("btn"),o(e,t)},i},$.summernote.__overidden=!0}},g=f,v=function(e){function n(n,o,a){var r=e.call(this,n,u)||this;return r.sanitizePipe=o,r.ngZone=a,r._operationStack=[],r.isEditorLoaded=!1,r.EDITOR_DEFAULT_OPTIONS={toolbar:[["misc",["undo","redo"]],["style",["style"]],["fontname",["fontname"]],["fontsize",["fontsize"]],["height",["height"]],["style",["bold","italic","underline","clear"]],["font",["strikethrough","superscript","subscript"]],["color",["color"]],["insert",["table","picture","link","video","hr"]],["para",["ul","ol","paragraph"]],["misc",["codeview","fullscreen","help"]]],callbacks:{onInit:function(){r.isEditorLoaded=!0,r._operationStack.length&&(r._operationStack.forEach((function(e){var t=Array.from(e.keys())[0],n=e.get(t);r.performEditorOperation(t,n)})),r._operationStack=[])},onChange:function(e,n){r.proxyModel=r.sanitizePipe.transform(e,t.SecurityContext.HTML),r.invokeOnChange(e,h(),!0),r.invokeOnTouched()}},fontNames:["Arial","Arial Black","Comic Sans MS","Courier New","Merriweather"],placeholder:"write here...",minHeight:100,disableResizeEditor:!0},i.styler(r.nativeElement,r,i.APPLY_STYLES_TYPE.CONTAINER,["height"]),f(),r}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}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),Object.defineProperty(n.prototype,"htmlcontent",{get:function(){return this.performEditorOperation("code")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"datavalue",{get:function(){return this.htmlcontent},set:function(e){null!=e&&(this.$hiddenInputEle.val(e),this.performEditorOperation("reset"),this.performEditorOperation("code",e))},enumerable:!1,configurable:!0}),n.prototype.ngOnInit=function(){this.$richTextEditor=$(this.nativeElement.querySelector("[richTextEditor]")),this.$hiddenInputEle=$(this.nativeElement.querySelector("input.model-holder")),e.prototype.ngOnInit.call(this),this.initEditor()},n.prototype.initEditor=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.invokeEventCallback("beforerender",{$event:{}}),e.$richTextEditor.summernote(e.EDITOR_DEFAULT_OPTIONS)}))},n.prototype.getDefaultOptions=function(){return this.EDITOR_DEFAULT_OPTIONS},n.prototype.getLib=function(){return"summernote"},n.prototype.overrideDefaults=function(e){_.extend(this.EDITOR_DEFAULT_OPTIONS,e)},n.prototype.onPropertyChange=function(t,n,i){"placeholder"===t?this.performEditorOperation("placeholder",n):"disabled"===t||"readonly"===t?this.performEditorOperation(n?"disable":"enable"):e.prototype.onPropertyChange.call(this,t,n,i)},n.prototype.onStyleChange=function(e,t,n){"height"===e&&this.performEditorOperation("height",t)},n.prototype.performEditorOperation=function(e,t){if(!this.isEditorLoaded){var n=new Map;return n.set(e,t),void this._operationStack.push(n)}if("height"===e)a.setCSS(this.nativeElement.querySelector("div.note-editable"),e,t,!0);else{if("placeholder"!==e){if(1===arguments.length&&"code"===e&&this.$richTextEditor.summernote("isEmpty")){var i=this.$richTextEditor.summernote("code");return""===i?i:void 0}return this.$richTextEditor.summernote(e,t)}a.setAttr(this.nativeElement,e,t),a.setHtml(this.nativeElement.querySelector("div.note-placeholder"),t,!0)}},n.prototype.getCurrentPosition=function(){return this.performEditorOperation("createRange")},n.prototype.undo=function(){this.performEditorOperation("undo")},n.prototype.focus=function(){this.performEditorOperation("focus")},n.prototype.ngOnDestroy=function(){this.performEditorOperation("destroy"),e.prototype.ngOnDestroy.call(this)},n}(r.BaseFormCustomComponent);v.initializeProps=d(),v.decorators=[{type:t.Component,args:[{selector:"div[wmRichTextEditor]",template:'<div richTextEditor></div>\n<div [innerHTML]="proxyModel" class="ta-preview" *ngIf="showpreview"></div>\n<input class="model-holder" [disabled]="disabled" hidden>\n',providers:[i.provideAs(v,o.NG_VALUE_ACCESSOR,!0),i.provideAsWidgetRef(v)],exportAs:"wmRichTextEditor"}]}],v.ctorParameters=function(){return[{type:t.Injector},{type:i.SanitizePipe},{type:t.NgZone}]};var y=[v],b=function(){};b.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.WmComponentsModule],declarations:c([],l(y)),exports:c([],l(y)),entryComponents:[]}]}],e.RichTextEditorComponent=v,e.RichTextEditorModule=b,e["\u02750"]=m,e["\u02751"]=g,e["\u0275a"]=d,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/typeahead"),require("@wm/components/base"),require("rxjs"),require("rxjs/operators"),require("@wm/core"),require("@wm/components/input")):"function"==typeof define&&define.amd?define("@wm/components/basic/search",["exports","@angular/core","@angular/common","@angular/forms","ngx-bootstrap/typeahead","@wm/components/base","rxjs","rxjs/operators","@wm/core","@wm/components/input"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.components=e.wm.components||{},e.wm.components.basic=e.wm.components.basic||{},e.wm.components.basic.search={}),e.ng.core,e.ng.common,e.ng.forms,e["ngx-bootstrap"].typeahead,e.wm.components.base,e.rxjs,e.rxjs.operators,e.wm.core,e.wm.components.input)}(this,(function(e,t,n,i,o,a,r,s,l,c){"use strict";
99
+ ***************************************************************************** */var s=function(e,t){return(s=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 l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,a=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)r.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return r}function c(e,t,n){if(n||2===arguments.length)for(var i,o=0,a=t.length;o<a;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 p=new Map([["class",i.PROP_STRING],["datavaluesource",i.PROP_ANY],["datavalue",i.PROP_STRING],["height",i.PROP_STRING],["hint",i.PROP_STRING],["name",i.PROP_STRING],["placeholder",i.PROP_STRING],["readonly",i.PROP_BOOLEAN],["show",Object.assign({value:!0},i.PROP_BOOLEAN)],["showpreview",Object.assign({value:!1},i.PROP_BOOLEAN)],["tabindex",Object.assign({value:0},i.PROP_NUMBER)]]),d=function(){i.register("wm-richtexteditor",p),i.registerFormWidget(a.FormWidgetType.RICHTEXT,new Map(p))},u={widgetType:"wm-richtexteditor",hostClass:"app-richtexteditor clearfix"},h=function(){var e;return"function"==typeof Event?e=new Event("change"):(e=document.createEvent("Event")).initEvent("change",!0,!0),e},m=h,f=function(){if(!$.summernote.__overidden){var e=$.summernote.ui.button.bind($.summernote);$.summernote.ui.button=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=e.apply(void 0,c([],l(t))),o=i.callback;return i.callback=function(e,t){return e.addClass("btn"),o(e,t)},i},$.summernote.__overidden=!0}},g=f,v=function(e){function n(n,o,a){var r=e.call(this,n,u)||this;return r.sanitizePipe=o,r.ngZone=a,r._operationStack=[],r.isEditorLoaded=!1,r.EDITOR_DEFAULT_OPTIONS={toolbar:[["misc",["undo","redo"]],["style",["style"]],["fontname",["fontname"]],["fontsize",["fontsize"]],["height",["height"]],["style",["bold","italic","underline","clear"]],["font",["strikethrough","superscript","subscript"]],["color",["color"]],["insert",["table","picture","link","video","hr"]],["para",["ul","ol","paragraph"]],["misc",["codeview","fullscreen","help"]]],callbacks:{onInit:function(){r.isEditorLoaded=!0,r._operationStack.length&&(r._operationStack.forEach((function(e){var t=Array.from(e.keys())[0],n=e.get(t);r.performEditorOperation(t,n)})),r._operationStack=[])},onChange:function(e,n){r.proxyModel=r.sanitizePipe.transform(e,t.SecurityContext.HTML),r.invokeOnChange(e,h(),!0),r.invokeOnTouched()}},fontNames:["Arial","Arial Black","Comic Sans MS","Courier New","Merriweather"],placeholder:"write here...",minHeight:100,disableResizeEditor:!0},i.styler(r.nativeElement,r,i.APPLY_STYLES_TYPE.CONTAINER,["height"]),f(),r}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}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),Object.defineProperty(n.prototype,"htmlcontent",{get:function(){return this.performEditorOperation("code")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"datavalue",{get:function(){return this.htmlcontent},set:function(e){null!=e&&(this.$hiddenInputEle.val(e),this.performEditorOperation("reset"),this.performEditorOperation("code",e))},enumerable:!1,configurable:!0}),n.prototype.ngOnInit=function(){this.$richTextEditor=$(this.nativeElement.querySelector("[richTextEditor]")),this.$hiddenInputEle=$(this.nativeElement.querySelector("input.model-holder")),e.prototype.ngOnInit.call(this),this.initEditor()},n.prototype.initEditor=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.invokeEventCallback("beforerender",{$event:{}}),e.$richTextEditor.summernote(e.EDITOR_DEFAULT_OPTIONS)}))},n.prototype.getDefaultOptions=function(){return this.EDITOR_DEFAULT_OPTIONS},n.prototype.getLib=function(){return"summernote"},n.prototype.overrideDefaults=function(e){_.extend(this.EDITOR_DEFAULT_OPTIONS,e)},n.prototype.onPropertyChange=function(t,n,i){"placeholder"===t?this.performEditorOperation("placeholder",n):"disabled"===t||"readonly"===t?this.performEditorOperation(n?"disable":"enable"):e.prototype.onPropertyChange.call(this,t,n,i)},n.prototype.onStyleChange=function(e,t,n){"height"===e&&this.performEditorOperation("height",t)},n.prototype.performEditorOperation=function(e,t){if(!this.isEditorLoaded){var n=new Map;return n.set(e,t),void this._operationStack.push(n)}if("height"===e)a.setCSS(this.nativeElement.querySelector("div.note-editable"),e,t,!0);else{if("placeholder"!==e){if(1===arguments.length&&"code"===e&&this.$richTextEditor.summernote("isEmpty")){var i=this.$richTextEditor.summernote("code");return""===i?i:void 0}return this.$richTextEditor.summernote(e,t)}a.setAttr(this.nativeElement,e,t),a.setHtml(this.nativeElement.querySelector("div.note-placeholder"),t,!0)}},n.prototype.getCurrentPosition=function(){return this.performEditorOperation("createRange")},n.prototype.undo=function(){this.performEditorOperation("undo")},n.prototype.focus=function(){this.performEditorOperation("focus")},n.prototype.ngOnDestroy=function(){this.performEditorOperation("destroy"),e.prototype.ngOnDestroy.call(this)},n}(r.BaseFormCustomComponent);v.initializeProps=d(),v.decorators=[{type:t.Component,args:[{selector:"div[wmRichTextEditor]",template:'<div richTextEditor></div>\n<div [innerHTML]="proxyModel" class="ta-preview" *ngIf="showpreview"></div>\n<input class="model-holder" [disabled]="disabled" hidden>\n',providers:[i.provideAs(v,o.NG_VALUE_ACCESSOR,!0),i.provideAsWidgetRef(v)],exportAs:"wmRichTextEditor"}]}],v.ctorParameters=function(){return[{type:t.Injector},{type:i.SanitizePipe},{type:t.NgZone}]};var y=[v],b=function(){};b.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.WmComponentsModule],declarations:c([],l(y)),exports:c([],l(y)),entryComponents:[]}]}],e.RichTextEditorComponent=v,e.RichTextEditorModule=b,e["\u02750"]=m,e["\u02751"]=g,e["\u0275a"]=d,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/typeahead"),require("@wm/components/base"),require("rxjs"),require("rxjs/operators"),require("@wm/core"),require("@wm/components/input")):"function"==typeof define&&define.amd?define("@wm/components/basic/search",["exports","@angular/core","@angular/common","@angular/forms","ngx-bootstrap/typeahead","@wm/components/base","rxjs","rxjs/operators","@wm/core","@wm/components/input"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.components=e.wm.components||{},e.wm.components.basic=e.wm.components.basic||{},e.wm.components.basic.search={}),e.ng.core,e.ng.common,e.ng.forms,e["ngx-bootstrap"].typeahead,e.wm.components.base,e.rxjs,e.rxjs.operators,e.wm.core,e.wm.components.input)}(this,(function(e,t,n,i,o,a,r,s,l,c){"use strict";
100
100
  /*! *****************************************************************************
101
101
  Copyright (c) Microsoft Corporation.
102
102
 
@@ -503,7 +503,7 @@ var c=function(e,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
503
503
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
504
504
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
505
505
  PERFORMANCE OF THIS SOFTWARE.
506
- ***************************************************************************** */var c=function(e,t){return(c=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 p(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}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function d(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,a=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)r.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return r}function u(e,t,n){if(n||2===arguments.length)for(var i,o=0,a=t.length;o<a;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 h=function(){i.register("wm-list",new Map([["boundarylinks",Object.assign({value:!1},i.PROP_BOOLEAN)],["class",i.PROP_STRING],["collapsible",i.PROP_BOOLEAN],["dateformat",i.PROP_STRING],["dataset",i.PROP_ANY],["datasource",i.PROP_ANY],["direction",Object.assign({value:"vertical"},i.PROP_STRING)],["directionlinks",Object.assign({value:!0},i.PROP_BOOLEAN)],["disableitem",i.PROP_BOOLEAN],["enablereorder",i.PROP_BOOLEAN],["forceellipses",Object.assign({value:!0},i.PROP_BOOLEAN)],["groupby",i.PROP_STRING],["iconclass",i.PROP_STRING],["itemclass",Object.assign({value:""},i.PROP_STRING)],["itemsperrow",i.PROP_STRING],["listclass",Object.assign({value:"list-group"},i.PROP_STRING)],["multiselect",i.PROP_BOOLEAN],["loadingdatamsg",Object.assign({value:"Loading..."},i.PROP_STRING)],["loadingicon",Object.assign({value:"fa fa-circle-o-notch"},i.PROP_STRING)],["match",i.PROP_STRING],["maxsize",Object.assign({value:5},i.PROP_NUMBER)],["name",i.PROP_STRING],["navigation",i.PROP_STRING],["navigationalign",Object.assign({value:"left"},i.PROP_STRING)],["nodatamessage",Object.assign({value:"No data found"},i.PROP_STRING)],["ondemandmessage",Object.assign({value:"Load More"},i.PROP_STRING)],["orderby",i.PROP_STRING],["paginationclass",i.PROP_STRING],["pagesize",i.PROP_NUMBER],["pulltorefresh",Object.assign({value:a.isMobileApp()},i.PROP_BOOLEAN)],["selectfirstitem",i.PROP_BOOLEAN],["selectionlimit",i.PROP_NUMBER],["show",Object.assign({value:!0},i.PROP_BOOLEAN)],["showcount",i.PROP_BOOLEAN],["showrecordcount",i.PROP_BOOLEAN],["statehandler",Object.assign({value:"none"},i.PROP_STRING)],["subheading",i.PROP_STRING],["tabindex",Object.assign({value:0},i.PROP_NUMBER)],["title",i.PROP_STRING]]))},m=function(){function e(e,t,n){this.inj=e,this.app=n,this.destroy=new s.Subject,this.destroy$=this.destroy.asObservable(),this.itemClass="",this._currentItemWidgets={},this.isActive=!1,this.disableItem=!1,this.nativeElement=t.nativeElement,this.listComponent=e.view.component,this.context=e.view.context,this.itemClassWatcher(this.listComponent),this.disableItemWatcher(this.listComponent),$(this.nativeElement).data("listItemContext",this)}return e.prototype.onFocus=function(){this.listComponent.lastSelectedItem=this},Object.defineProperty(e.prototype,"$index",{get:function(){return this.context.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"$even",{get:function(){return this.context.even},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"$odd",{get:function(){return this.context.odd},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"$first",{get:function(){return this.context.first},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"$last",{get:function(){return this.context.last},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentItemWidgets",{get:function(){var e=Array.from(this.nativeElement.querySelectorAll("[widget-id]"));return Object.assign(this._currentItemWidgets,e.reduce((function(e,t){return e[t.widget.name]=t.widget,e}),{}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wmListItem",{set:function(e){this.item=e},enumerable:!1,configurable:!0}),e.prototype.registerWatch=function(e,t){this.destroy$.subscribe(a.$watch(e,this.listComponent.viewParent,this,t))},e.prototype.itemClassWatcher=function(e){var t=this;e.binditemclass?this.registerWatch(e.binditemclass,(function(e){return t.itemClass=e||""})):this.itemClass=e.itemclass},e.prototype.disableItemWatcher=function(e){var t=this;e.binddisableitem?this.registerWatch(e.binddisableitem,(function(e){return t.disableItem=e||!1})):this.disableItem=e.disableitem||!1},e.prototype.setUpCUDHandlers=function(){var e=this,t=this.nativeElement.querySelector(".edit-list-item"),n=this.nativeElement.querySelector(".delete-list-item");t&&t.addEventListener("click",(function(t){e.listComponent.update()})),n&&n.addEventListener("click",(function(t){e.listComponent.delete()}))},e.prototype.ngOnInit=function(){var e=this;this.listComponent.mouseEnterCB&&this.nativeElement.addEventListener("mouseenter",(function(t){e.listComponent.invokeEventCallback("mouseenter",{widget:e,$event:t})})),this.listComponent.mouseLeaveCB&&this.nativeElement.addEventListener("mouseleave",(function(t){e.listComponent.invokeEventCallback("mouseleave",{widget:e,$event:t})})),$(this.nativeElement).attr("listitemindex",this.$index)},e.prototype.ngAfterViewInit=function(){this.setUpCUDHandlers()},e}();m.decorators=[{type:t.Directive,args:[{selector:"[wmListItem]",exportAs:"listItemRef"}]}],m.ctorParameters=function(){return[{type:t.Injector},{type:t.ElementRef},{type:a.App}]},m.propDecorators={isActive:[{type:t.HostBinding,args:["class.active"]}],disableItem:[{type:t.HostBinding,args:["class.disable-item"]}],onFocus:[{type:t.HostListener,args:["focus"]}],wmListItem:[{type:t.Input}]};var f=function(e){function t(t){var n=e.call(this)||this;return n.list=t,n.$el=$(n.list.getNativeElement()).find("ul.app-livelist-container").first(),n.leftChildrenCount=n.$el.find(">.app-list-item-left-action-panel > button:visible").length,n.rightChildrenCount=n.$el.find(">.app-list-item-right-action-panel > button:visible").length,n.leftChildrenCount||n.rightChildrenCount?(n.init(n.$el),n.$btnSubscription=n.list.btnComponents.changes.subscribe((function(e){return n.actionItems=e})),n):n}return p(t,e),t.prototype.createActionPanel=function(e,t){return t.css({width:e.outerWidth()+"px",height:e.outerHeight()+"px",marginBottom:-1*e.outerHeight()+"px",float:"left",padding:0}),t.insertBefore(e)},t.prototype.computeTotalChildrenWidth=function(e){return _.reduce(e.children(),(function(e,t){return e+$(t).outerWidth()}),0)},t.prototype.computeTransitionProportions=function(e){var t=this.computeTotalChildrenWidth(e),n="right"===this.position,i=0;return _.map(e.children(),(function(e){var o=(t-i)/t;return i+=$(e).outerWidth(),n?o:i/t}))},t.prototype.resetElement=function(e){e&&e.css({transform:"none",transition:"none"})},t.prototype.resetState=function(){this.resetElement(this.li),this.resetElement(this.actionPanel),this.actionPanel&&(this.actionPanel=null)},t.prototype.getChildActionElement=function(e){if(e.children().length)return"left"===this.position?e.children().first():e.children().last()},t.prototype.initActionPanel=function(e){this.actionPanel=this.createActionPanel(this.li,e),this.actionPanel.css({backgroundColor:this.getChildActionElement(this.actionPanel).css("background-color")}),this.limit=this.computeTotalChildrenWidth(this.actionPanel),this.transitionProportions=this.computeTransitionProportions(this.actionPanel)},t.prototype.bounds=function(e,t){var n=$(e.target).closest("li"),i={strictUpper:!0,strictLower:!0,lower:0,center:0,upper:0};if(!n.hasClass("app-list-item"))return i;if(this.li&&this.li[0]===n[0])"left"===this.position?i={strictUpper:!1,lower:-this.limit,center:this.limit}:"right"===this.position&&(i={center:-this.limit,upper:this.limit,strictLower:!1});else{var o=t>0?".app-list-item-left-action-panel":".app-list-item-right-action-panel",a=this.$el.find(">"+o);if(!a.length&&this.list.groupby&&(o="li > ul.list-group >"+o,a=this.$el.find(">"+o)),!a.length||!a.find("button:visible").length)return i;this.resetState(),this.li=n,this.position=a.attr("position"),this.initActionPanel(a),i=t>0?{strictUpper:!1,lower:0,center:0,upper:this.limit}:{strictLower:!1,lower:-this.limit,center:0,upper:0}}return i},t.prototype.context=function(){var e=this;return{computeActionTransition:function(t,n){var i=n>0?1:-1;return i*n>e.limit?n-i*e.limit+e.transitionProportions[t]*i*e.limit:e.transitionProportions[t]*n}}},t.prototype.animation=function(){var e=this;return[{target:function(){return e.li},css:{transform:"translate3d(${{$D + $d}}px, 0, 0)"}},{target:function(){return e.actionPanel&&e.actionPanel.children()},css:{transform:"translate3d(${{computeActionTransition($i, $D + $d)}}px, 0, 0)"}}]},t.prototype.invokeFullSwipeEvt=function(e){var t,n,i;"left"===this.position?(n=this.actionItems.filter((function(e){return"left"===e.getAttr("swipe-position")&&e.$element.is(":visible")})),i=0):i=(n=this.actionItems.filter((function(e){return"right"===e.getAttr("swipe-position")&&e.$element.is(":visible")}))).length-1,(t=n[i])&&t.hasEventCallback("tap")&&t.invokeEventCallback("tap",{$event:e}),this.resetState(),this.li=null},t.prototype.onAnimation=function(e,t){if(this.list.triggerListItemSelection(this.li,e),this.actionPanel&&"true"===this.actionPanel.attr("enablefullswipe")){var n=t>0?1:-1,i=this.getChildActionElement(this.actionPanel);if(i){var o="right"===this.position?this.rightChildrenCount-1:0;this.transitionProportions[o]*n*t*100/(this.li.outerWidth()-this.limit+i.width())>50&&this.invokeFullSwipeEvt(e)}}},t.prototype.onLower=function(){"left"===this.position&&(this.resetState(),this.li=null)},t.prototype.onUpper=function(){"right"===this.position&&(this.resetState(),this.li=null)},t.prototype.threshold=function(){return 10},t}(l.SwipeAnimation),g={widgetType:"wm-list",hostClass:"app-livelist app-panel"},v=function(e){function t(t,n,o,r,s,l,c,p,d,u,h,m,f,v){var y=this,b=a.noop,w=new Promise((function(e){return b=e}));return(y=e.call(this,t,g,w)||this).propsInitPromise=w,y.promiseResolverFn=b,i.styler(y.nativeElement,y,i.APPLY_STYLES_TYPE.SHELL),y.cdRef=n,y.ngZone=l,y.datePipe=o,y.statePersistence=f,y.paginationService=v,y._pageLoad=!0,y.binditemclass=c,y.binddisableitem=p,y.binddataset=d,y.mouseEnterCB=h,y.mouseLeaveCB=m,y.binddatasource=u,y.app=r,y.appDefaults=s,y.variableInflight=!1,y.noDataFound=!d,y.titleId="wmlist-"+a.generateGUId(),y._listenerDestroyers=[y.app.subscribe("check-state-persistence-options",(function(e){var t=_.get(y.datasource,"name");t||(t=i.extractDataSourceName(y.binddatasource)),_.get(e,"variable.name")===t&&y.handleStateParams(e)})),y.app.subscribe("toggle-variable-state",y.handleLoading.bind(y)),y.app.subscribe("setup-cud-listener",(function(e){y.nativeElement.getAttribute("name")===e&&(y._isDependent=!0)}))],y}return p(t,e),Object.defineProperty(t.prototype,"selecteditem",{get:function(){return this.multiselect?a.getClonedObject(this._items):_.isEmpty(this._items)?{}:a.getClonedObject(this._items[0])},set:function(e){var t=this;this._items.length=0,this.deselectListItems(),_.isArray(e)?e.forEach((function(e){return t.selectItem(e)})):this.selectItem(e),a.$appDigest()},enumerable:!1,configurable:!0}),t.prototype.getWidgets=function(e,t){var n,i=[];if(e)return a.isDefined(t)?(t=+t||0,(n=_.get(this.listItems.toArray(),t))?[_.get(n.currentItemWidgets,e)]:void 0):(_.forEach(this.listItems.toArray(),(function(t){(n=_.get(t.currentItemWidgets,e))&&i.push(n)})),i)},t.prototype.getItem=function(e){return this.getListItemByIndex(e)},t.prototype.getIndex=function(e){return e instanceof m?this.getListItemIndex(e):e?this.fieldDefs.findIndex((function(t){return _.isEqual(t,e)})):void 0},t.prototype.getConfiguredState=function(){var e=this.statePersistence.computeMode(this.statehandler);return e&&e.toLowerCase()},t.prototype.handleStateParams=function(e){if(this._pageLoad&&"none"!==this.getConfiguredState()){this._pageLoad=!1;var t=this.statePersistence.getWidgetState(this);_.get(t,"pagination")&&(e.options=e.options||{},e.options.page=t.pagination),_.get(t,"selectedItem")&&(this._selectedItemsExist=!0)}},t.prototype.triggerWMEvent=function(e,t){a.$invokeWatchers(!0);var n=this.multiselect?_.last(this.selecteditem):this.selecteditem;t&&(n=t),this.app.notify("wm-event",{eventName:e,widgetName:this.name,row:n})},t.prototype.create=function(){this._isDependent&&this.triggerWMEvent("insert")},t.prototype.editRow=function(e){if(this._isDependent){var t=void 0;e&&(t=this.getItemRefByIndexOrModel(e).item),this.triggerWMEvent("update",t)}},t.prototype.update=function(e){this.editRow(e)},t.prototype.deleteRow=function(e){if(this._isDependent){var t=void 0;e&&(t=this.getItemRefByIndexOrModel(e).item),this.triggerWMEvent("delete",t)}},t.prototype.delete=function(e){this.deleteRow(e)},t.prototype.handleLoading=function(e){var t=this,n=this.datasource;n&&n.execute(a.DataSource.Operation.IS_API_AWARE)&&a.isDataSourceEqual(e.variable,n)&&this.ngZone.run((function(){var n,i,o;t.handleStateParams(e),t.variableInflight=e.active;var a=null===(i=null===(n=e.data)||void 0===n?void 0:n.pagination)||void 0===i?void 0:i.totalElements;_.isUndefined(a)?t.noDataFound=_.isEmpty(null===(o=e.data)||void 0===o?void 0:o.data):t.noDataFound=0===a}))},t.prototype.resetNavigation=function(){this.showNavigation=!1,this.navControls=void 0,this.infScroll=!1,this.onDemandLoad=!1},t.prototype.enableBasicNavigation=function(){this.navControls=i.NAVIGATION_TYPE.BASIC,this.showNavigation=!0},t.prototype.enableInlineNavigation=function(){this.navControls=i.NAVIGATION_TYPE.INLINE},t.prototype.enableClassicNavigation=function(){this.navControls=i.NAVIGATION_TYPE.CLASSIC,this.showNavigation=!0},t.prototype.enablePagerNavigation=function(){this.navControls=i.NAVIGATION_TYPE.PAGER,this.showNavigation=!0},t.prototype.setNavigationTypeNone=function(){this.navControls=i.NAVIGATION_TYPE.NONE,this.showNavigation=!1},t.prototype.enableInfiniteScroll=function(){this.infScroll=!0},t.prototype.enableOnDemandLoad=function(){this.onDemandLoad=!0,this.showNavigation=!0},t.prototype.onNavigationTypeChange=function(e){switch(this.resetNavigation(),e){case i.NAVIGATION_TYPE.BASIC:this.enableBasicNavigation();break;case i.NAVIGATION_TYPE.INLINE:this.enableInlineNavigation();break;case i.NAVIGATION_TYPE.ADVANCED:case i.NAVIGATION_TYPE.CLASSIC:this.enableClassicNavigation();break;case i.NAVIGATION_TYPE.PAGER:this.enablePagerNavigation();break;case i.NAVIGATION_TYPE.NONE:this.setNavigationTypeNone();break;case i.NAVIGATION_TYPE.SCROLL:this.enableInfiniteScroll();break;case i.NAVIGATION_TYPE.ONDEMAND:this.enableOnDemandLoad()}},t.prototype.updateFieldDefs=function(e){var t;this.infScroll||this.onDemandLoad?(t=d(this.paginationService.updateFieldsOnPagination(this,e),2),this.fieldDefs=t[0],this.currentPage=t[1]):this.fieldDefs=e,this.orderby&&(this.fieldDefs=i.getOrderedDataset(this.fieldDefs,this.orderby)),this.groupby&&(this.groupedData=i.groupData(this,this.fieldDefs,this.groupby,this.match,this.orderby,this.dateformat,this.datePipe,void 0,this.appDefaults)),this.fieldDefs.length||(this.noDataFound=!0,this.selecteditem=void 0),a.$appDigest(),this.listItems.setDirty()},t.prototype.onDataChange=function(e){_.isEmpty(e)?this.updateFieldDefs([]):(this.noDataFound=!1,this.isDataChanged=!0,this.datasource&&this.datasource.execute(a.DataSource.Operation.IS_API_AWARE)&&(e=_.cloneDeep(e)),a.isObject(e)&&!_.isArray(e)&&(e=_.isEmpty(e)?[]:[e]),_.isString(e)&&(e=e.split(",")),this.datasource&&"App"===this.datasource.owner&&(this.infScroll||this.onDemandLoad)&&!this.currentPage&&this.datasource.execute(a.DataSource.Operation.GET_PAGING_OPTIONS).number>0&&(e=this.datasource.execute(a.DataSource.Operation.LIST_RECORDS,{page:1})),_.isArray(e)&&(e.length&&this.invokeEventCallback("beforedatarender",{$data:e}),this.updateFieldDefs(e)))},t.prototype.setupDataSource=function(){var e=this,t=this.dataNavigator;t.options={maxResults:this.pagesize||20},this.dataNavigatorWatched=!0,this.navigatorResultWatch&&this.navigatorResultWatch.unsubscribe(),this.navigatorResultWatch=t.resultEmitter.subscribe((function(t){e.onDataChange(t)}),!0),this.navigatorMaxResultWatch&&this.navigatorMaxResultWatch.unsubscribe(),this.navigatorMaxResultWatch=t.maxResultsEmitter.subscribe((function(t){e.pagesize=t})),t.maxResults=this.pagesize||20,this.removePropertyBinding("dataset");var n=this.getAttr("datasetboundexpr");this.dataNavigator.setBindDataSet(this.binddataset,this.viewParent,n?this.context:this.datasource,this.dataset,this.binddatasource,n,this.statehandler)},t.prototype.onDataSetChange=function(e){if("wm.Variable"===_.get(this.datasource,"category")&&"none"!==this.getConfiguredState()&&this._pageLoad){var t=this.statePersistence.getWidgetState(this);this._pageLoad=!1,_.get(t,"pagination")&&this.dataNavigator.pageChanged({page:t.pagination},!0),_.get(t,"selectedItem")&&(this._selectedItemsExist=!0)}this.dataNavigatorWatched?this.navigation&&this.navigation!==i.NAVIGATION_TYPE.NONE&&this.dataNavigator.setDataSource(this.datasource):this.navigation&&this.navigation!==i.NAVIGATION_TYPE.NONE?this.setupDataSource():this.onDataChange(e)},t.prototype.deselectListItems=function(){this.listItems.forEach((function(e){return e.isActive=!1}))},t.prototype.clearSelectedItems=function(){this.deselectListItems(),this._items.length=0,a.$appDigest()},t.prototype.getListItemByModel=function(e){var t=this;return this.listItems.find((function(n){var i=n.item;if(t.groupby&&!_.has(e,"_groupIndex")&&delete(i=_.clone(i))._groupIndex,_.isEqual(i,e))return!0}))||null},t.prototype.updateSelectedItemsWidgets=function(e){var t,n=this,o={},a=_.get(this.dataNavigator,"dn.currentPage")||1;"none"!==this.getConfiguredState()&&(t=this.statePersistence.getWidgetState(this)||{},_.get(t,"selectedItem")&&(this.multiselect&&1===this.selecteditem.length?t.selectedItem=[]:_.remove(t.selectedItem,(function(e){return e.page===a})))),this.multiselect&&(this.selectedItemWidgets.length=0),this.listItems.forEach((function(e,i){e.isActive&&(n.multiselect?n.selectedItemWidgets.push(e.currentItemWidgets):n.selectedItemWidgets=e.currentItemWidgets,o={page:a,index:i},_.get(t,"selectedItem")&&n.multiselect?_.some(t.selectedItem,o)||t.selectedItem.push(o):t.selectedItem=[o])})),"none"===this.getConfiguredState()||e||(i.unsupportedStatePersistenceTypes.indexOf(this.navigation)<0?(this.statePersistence.removeWidgetState(this,"selectedItem"),this.statePersistence.setWidgetState(this,{selectedItem:t.selectedItem})):console.warn("Retain State handling on Widget "+this.name+" is not supported for current pagination type."))},t.prototype.toggleListItemSelection=function(e,t){if(e&&!e.disableItem){var n=e.item;this.groupby&&_.has(n,"_groupIndex")&&delete(n=_.clone(n))._groupIndex,e.isActive?(this._items=_.pullAllWith(this._items,[n],_.isEqual),e.isActive=!1):(this.multiselect||this.clearSelectedItems(),this._items.push(n),this.invokeEventCallback("select",{widget:e,$data:n}),e.isActive=!0),this.updateSelectedItemsWidgets(t)}},t.prototype.onListRender=function(e){var t=this;if(this.isDataChanged&&(a.$invokeWatchers(!0),this.invokeEventCallback("render",{$data:this.fieldDefs})),this.isDataChanged&&"none"!==this.getConfiguredState()&&e.length&&this._selectedItemsExist){var n=this.statePersistence.getWidgetState(this);if(_.get(n,"selectedItem")){this._selectedItemsExist=!1;var o=_.isArray(this.selecteditem)?this.selecteditem.length:_.toNumber(!_.isEmpty(this.selecteditem)),r=_.get(this.dataNavigator,"dn.currentPage")||1;n.pagination=n.pagination||1,o!==n.selectedItem.length&&n.pagination===r&&n.selectedItem.forEach((function(e){e.page===r&&t.selectItem(e.index,!0)}))}}var s=_.isArray(this.selecteditem)?this.selecteditem:[this.selecteditem];if(this.firstSelectedItem=this.lastSelectedItem=null,!e.length||!this.selectfirstitem||this._items.length&&this.multiselect||!1===this._selectedItemsExist)this.deselectListItems(),s.forEach((function(e){var n=t.getListItemByModel(e);n&&(n.isActive=!0,t.lastSelectedItem=n,n.nativeElement.focus())}));else{var l=e.first;l.disableItem||!this.isDataChanged||(this.infScroll||this.onDemandLoad)&&this._items.length||(this.clearSelectedItems(),this.firstSelectedItem=this.lastSelectedItem=l,this.selectItem(0))}if(this.fieldDefs.length&&this.infScroll){var c=this.$element.closest("[wmsmoothscroll]");if(a.isMobileApp()&&c.length&&"true"===c.attr("wmsmoothscroll"))this.paginationService.bindIScrollEvt(this,i.DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME);else{var p=this.$element.closest(".modal-body"),d=this.$element.find("ul").height(),u=window.innerHeight-140;a.isMobile()&&p.length&&d>u&&this.$element.css("height",u+"px"),this.paginationService.bindScrollEvt(this,"> ul",i.DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME)}}this.isDataChanged=!1},t.prototype.triggerListItemSelection=function(e,t){if(e&&e[0]){var n=e.data("listItemContext");n.listComponent===this&&this.onItemClick(t,n)}},t.prototype.setupHandlers=function(){var e=this;this.listItems.changes.subscribe((function(t){e.onListRender(t),e.cdRef.detectChanges()})),this.nativeElement.querySelector("ul.app-livelist-container").addEventListener("click",(function(t){for(var n=$(t.target).closest(".app-list-item");n.get(0)&&n.closest("ul.app-livelist-container").get(0)!==t.currentTarget;)n=n.parent().closest(".app-list-item");e.triggerListItemSelection(n,t)}),!0)},t.prototype.onReorderStart=function(e,t){t.placeholder.height(t.item.height()),this.$ulEle.data("oldIndex",t.item.index())},t.prototype.onSort=function(e,t){if(this.infScroll){var n=this.$ulEle.find("[listitemindex="+(this.fieldDefs.length-1)+"]").offset();n&&n.top<t.offset.top&&(this.paginationService.bindScrollEvt(this,"> ul",i.DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME),this.debouncedFetchNextDatasetOnScroll())}},t.prototype.onUpdate=function(e,t){var n=this.fieldDefs,i=t.item.index(),o=this.$ulEle.data("oldIndex"),a=_.min([i,o]),r=_.max([i,o]),s=_.pullAt(n,o)[0];if(s){"none"!==this.getConfiguredState()&&this.statePersistence.removeWidgetState(this,"selectedItem"),this.reorderProps.minIndex=_.min([a,this.reorderProps.minIndex]),this.reorderProps.maxIndex=_.max([r,this.reorderProps.maxIndex]),n.splice(i,0,s),this.cdRef.markForCheck(),this.cdRef.detectChanges();var l={oldIndex:o,newIndex:i,item:n[i]};this.invokeEventCallback("reorder",{$event:e,$data:n,$changedItem:l}),this.$ulEle.removeData("oldIndex")}},t.prototype.configureDnD=function(){var e,t=$(document).find(".modal");e=this.getAttr("height")?"parent":t.length?t[t.length-1]:"body";var n=a.isMobileApp()?{}:{appendTo:e},o=$(this.nativeElement);this.$ulEle=o.find(".app-livelist-container"),i.configureDnD(this.$ulEle,n,this.onReorderStart.bind(this),this.onUpdate.bind(this),this.onSort.bind(this)),this.$ulEle.droppable({accept:".app-list-item"}),a.isMobileApp()&&(this.$ulEle.sortable("disable"),this.$ulEle.on("touchstart",(function(e){var t=this;t.touching||(t.touched&&clearTimeout(t.touched),setTimeout((function(){e.cancelable&&e.preventDefault()}),50),t.touched=setTimeout((function(){$(e.currentTarget).addClass("no-selection"),$(e.currentTarget).sortable("enable"),t.touching=!0,$(t).trigger(e)}),350))})).on("touchend",(function(e){this.touching=!1,$(e.currentTarget).removeClass("no-selection"),$(e.currentTarget).sortable("disable"),clearTimeout(this.touched)})).on("touchmove",(function(){clearTimeout(this.touched)})))},t.prototype.checkSelectionLimit=function(e){return!this.selectionlimit||e<this.selectionlimit},t.prototype.getListItemByIndex=function(e){return this.listItems.toArray()[e]},t.prototype.getListItemIndex=function(e){return this.listItems.toArray().indexOf(e)},t.prototype.execute=function(e,t){return![a.DataSource.Operation.IS_API_AWARE,a.DataSource.Operation.IS_PAGEABLE,a.DataSource.Operation.SUPPORTS_SERVER_FILTER].includes(e)&&this.datasource.execute(e,t)},t.prototype.handleKeyDown=function(e,t){var n=this;e.stopPropagation(),13===e.keyCode||9===e.keyCode||e.target.classList.contains("form-control")&&32===e.keyCode||e.preventDefault();var i=this.listItems,o=this.getListItemIndex(this.lastSelectedItem);if(this.multiselect){var a=this.getListItemIndex(this.firstSelectedItem),r=_.isArray(this.selecteditem)?this.selecteditem.length:_.isObject(this.selecteditem)?1:0;"selectPrev"===t?o>0&&(o<=a&&this.checkSelectionLimit(r)?(this.lastSelectedItem=this.getListItemByIndex(o-1),this.toggleListItemSelection(this.lastSelectedItem)):o>a?(this.toggleListItemSelection(this.getListItemByIndex(o)),this.lastSelectedItem=this.getListItemByIndex(o-1)):this.invokeEventCallback("selectionlimitexceed",{$event:e})):"selectNext"===t&&o<i.length-1&&(o>=a&&this.checkSelectionLimit(r)?(this.lastSelectedItem=this.getListItemByIndex(o+1),this.toggleListItemSelection(this.lastSelectedItem)):o<a?(this.toggleListItemSelection(this.getListItemByIndex(o)),this.lastSelectedItem=this.getListItemByIndex(o+1)):this.invokeEventCallback("selectionlimitexceed",{$event:e}))}if("focusPrev"===t)if(this.isListElementMovable){var s;if(o=o<=0?0:o,this.lastSelectedItem=this.getListItemByIndex(o),0===o)return void(s=this.listItems.last);this.listItems.forEach((function(e,t){if(t===o){s.nativeElement.before(e.nativeElement),n.lastSelectedItem.nativeElement.focus();var i=n.listItems.toArray(),a=i[o];i[o]=i[o-1],i[o-1]=a,n.listItems.reset(i),n.currentIndex=o,n.ariaText="selected "}s=e}))}else o=o<=0?0:o-1,this.lastSelectedItem=this.getListItemByIndex(o),this.lastSelectedItem.nativeElement.focus(),this.currentIndex=o+1,this.ariaText="selected ";else if("focusNext"===t)if(this.isListElementMovable){var l;if(o=o<i.length-1?o:i.length-1,this.lastSelectedItem=this.getListItemByIndex(o),o===this.listItems.length-1)return void(l=this.listItems.first);this.listItems.forEach((function(e,t){if(t===o+1){l.nativeElement.before(e.nativeElement),n.lastSelectedItem.nativeElement.focus();var i=n.listItems.toArray(),a=i[o+1];i[o+1]=i[o],i[o]=a,n.listItems.reset(i),n.currentIndex=t+1,n.ariaText="selected "}l=e}))}else o=o<i.length-1?o+1:i.length-1,this.lastSelectedItem=this.getListItemByIndex(o),this.lastSelectedItem.nativeElement.focus(),this.currentIndex=o+1,this.ariaText="selected ";else if("select"===t){if(-1===o||!$(e.target).closest(this.lastSelectedItem.nativeElement)){var c=$(e.target).closest("li.app-list-item"),p=c.closest("ul.app-livelist-container");o=p.find("li.app-list-item").index(c)}this.onItemClick(e,this.getListItemByIndex(o))}else if("space"===t){if(!this.enablereorder)return;this.isListElementMovable=!this.isListElementMovable,this.onItemClick(e,this.getListItemByIndex(o)),this.currentIndex=o+1;var d=this.getListItemByIndex(o).item.name;this.isListElementMovable?this.ariaText=d+" grabbed, current position ":this.ariaText=d+" dropped, final position "}},t.prototype.onPropertyChange=function(t,n,i){var o=this;if("dataset"===t){if(!n&&this.binddatasource&&!this.datasource)return;this.onDataSetChange(n)}else if("datasource"===t)this.dataset&&this.onDataSetChange(this.dataset);else if("navigation"===t){if("Advanced"===n)return void(this.navigation="Classic");a.switchClass(this.nativeElement,n,i),this.onNavigationTypeChange(n),this.dataNavigator&&(this.dataNavigator.navigationClass=this.paginationclass)}else if("itemsperrow"===t)a.setListClass(this);else{if("tabindex"===t)return;"pulltorefresh"===t&&n?(this.app.notify("pullToRefresh:enable"),this.subscribeToPullToRefresh()):"paginationclass"===t?this.dataNavigator&&setTimeout((function(){return o.dataNavigator.navigationClass=n})):"pagesize"===t?(this.dataNavigator.options={maxResults:n},this.dataNavigator.widget.maxResults=n,this.dataNavigator.maxResults=n):"enablereorder"===t?n?(this.configureDnD(),this.$ulEle.sortable("enable")):this.$ulEle&&!n&&this.$ulEle.sortable("disable"):e.prototype.onPropertyChange.call(this,t,n,i)}},t.prototype.onItemClick=function(e,t){var n,i=this;if(!t.disableItem){if(this.firstSelectedItem=this.firstSelectedItem||t,n=_.isArray(this.selecteditem)?this.selecteditem.length:_.isObject(this.selecteditem)?1:0,this.multiselect&&a.isMobile())this.checkSelectionLimit(n)||t.isActive?this.toggleListItemSelection(t):this.invokeEventCallback("selectionlimitexceed",{$event:e});else if((e.ctrlKey||e.metaKey)&&this.multiselect)this.checkSelectionLimit(n)||t.isActive?(this.firstSelectedItem=this.lastSelectedItem=t,this.toggleListItemSelection(t)):this.invokeEventCallback("selectionlimitexceed",{$event:e});else if(e.shiftKey&&this.multiselect){var o=t.context.index,r=this.firstSelectedItem.context.index;o>r&&(r=[o,o=r][0]),this.checkSelectionLimit(r-o)?(this.clearSelectedItems(),this.listItems.forEach((function(e){var t=e.context.index;t>=o&&t<=r&&i.toggleListItemSelection(e)})),this.lastSelectedItem=t):this.invokeEventCallback("selectionlimitexceed",{$event:e})}else(!t.isActive||n>1)&&(this.clearSelectedItems(),this.toggleListItemSelection(t),this.firstSelectedItem=this.lastSelectedItem=t);a.$appDigest()}},t.prototype.clear=function(){this.updateFieldDefs([])},t.prototype.getItemRefByIndexOrModel=function(e){return a.isNumber(e)?this.getListItemByIndex(e):this.getListItemByModel(e)},t.prototype.deselectItem=function(e){var t=this.getItemRefByIndexOrModel(e);t&&t.isActive&&this.toggleListItemSelection(t)},t.prototype.selectItem=function(e,t){var n=this.getItemRefByIndexOrModel(e);n&&(n.isActive||this.toggleListItemSelection(n,t),n.nativeElement.focus())},t.prototype.beforePaginationChange=function(e,t){this.invokeEventCallback("paginationchange",{$event:e,$index:t})},t.prototype.handleEvent=function(e,t,n,i){var o=this;_.includes(["click","tap","dblclick","doubletap"],t)&&this.eventManager.addEventListener(this.nativeElement,{tap:"click",doubletap:"dblclick"}[t]||t,(function(e){var n=$(e.target).closest(".app-list-item");if(n.length){var i=n.data("listItemContext");i.disableItem||o.invokeEventCallback(t,{widget:i,$event:e,item:i.item})}}))},t.prototype.subscribeToPullToRefresh=function(){var e=this;this._listenerDestroyers.push(this.app.subscribe("pulltorefresh",(function(){e.datasource&&e.datasource.listRecords&&e.datasource.listRecords()})))},t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.handleHeaderClick=a.noop,setTimeout((function(){t.debouncedFetchNextDatasetOnScroll=t.paginationService.debouncedFetchNextDatasetOnScroll(t.dataNavigator,i.DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME,t)}),0),this._items=[],this.fieldDefs=[],this.reorderProps={minIndex:null,maxIndex:null}},t.prototype.setUpCUDHandlers=function(){var e=this,t=document.getElementsByClassName("add-list-item")[0];t&&t.addEventListener("click",(function(t){e.create()}))},t.prototype.ngAfterViewInit=function(){var t=this;this.promiseResolverFn(),this.propsInitPromise.then((function(){e.prototype.ngAfterViewInit.call(t),t.setUpCUDHandlers(),t.selectedItemWidgets=t.multiselect?[]:{},t.enablereorder&&!t.groupby&&t.configureDnD(),t.groupby&&t.collapsible&&(t.handleHeaderClick=i.handleHeaderClick,t.toggleAllHeaders=i.toggleAllHeaders.bind(void 0,t)),a.setListClass(t)})),this.setupHandlers();var n=this.nativeElement.querySelector("ul.app-livelist-container");i.styler(n,this,i.APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER),a.isMobileApp()&&n.querySelector(".app-list-item-action-panel")&&(this._listAnimator=new f(this))},t.prototype.ngOnDestroy=function(){this._listAnimator&&this._listAnimator.$btnSubscription&&this._listAnimator.$btnSubscription.unsubscribe(),this._listenerDestroyers.forEach((function(e){return e&&e()})),e.prototype.ngOnDestroy.call(this)},t.prototype.ngOnDetach=function(){e.prototype.ngOnDetach.call(this),this._pageLoad=!0},t}(i.StylableComponent);v.initializeProps=h(),v.decorators=[{type:t.Component,args:[{selector:"div[wmList]",template:'<div class="panel-heading" *ngIf="title || subheading || iconclass">\n <h3 class="panel-title">\n <div class="pull-left">\n <i class="app-icon panel-icon {{iconclass}}" aria-hidden="true" [hidden]="!iconclass"></i>\n </div>\n <div class="pull-left">\n <div class="heading" [innerHTML]="title"></div>\n <div class="description" [innerHTML]="subheading"></div>\n </div>\n </h3>\n</div>\n\n<nav class="app-datanavigator" [attr.aria-disabled]="dataNavigator.isDisablePrevious" aria-label="Page navigation" *ngIf="navigation === \'Inline\' && !noDataFound">\n <ul class="pager">\n <li class="previous" [ngClass]="{\'disabled\': (dataNavigator ? dataNavigator.isDisablePrevious : true)}">\n <a href="javascript:void(0);" (click)="dataNavigator.navigatePage(\'prev\', $event)">\n <i class="wi wi-chevron-left" aria-hidden="true"></i>\n <span class="sr-only">Previous</span>\n </a>\n </li>\n </ul>\n</nav>\n<div *ngIf="navigation === \'Inline\' && !noDataFound" aria-live="polite" aria-atomic="true" class="sr-only"> {{\'Item \' + dataNavigator.dn.currentPage + \' of \' + dataNavigator.pageCount }}</div>\n\n<div>\n <div id={{titleId}} class="sr-only" >\n Press space bar to toggle drag drop mode, use arrow keys to move selected elements.\n </div>\n \n <div aria-live="assertive" *ngIf="listItems" class="sr-only" >\n {{ariaText + currentIndex + \' of \' + listItems.length}}\n </div> \n</div>\n\n<ul [attr.tabindex]="tabindex" [attr.aria-describedby] = "titleId" class="app-livelist-container clearfix {{direction === \'horizontal\' ? \'app-horizontal-list\': \'\'}} {{listclass}}" role="list"\n (keydown.enter)="handleKeyDown($event, \'select\')"\n\n (keydown.space)="handleKeyDown($event, \'space\')"\n\n (keydown.arrowup)="handleKeyDown($event, \'focusPrev\')"\n (keydown.arrowdown)="handleKeyDown($event, \'focusNext\')"\n (keydown.arrowleft)="handleKeyDown($event, \'focusPrev\')"\n (keydown.arrowright)="handleKeyDown($event, \'focusNext\')"\n\n (keydown.shift.arrowup)="handleKeyDown($event, \'selectPrev\')"\n (keydown.shift.arrowdown)="handleKeyDown($event, \'selectNext\')"\n (keydown.shift.arrowleft)="handleKeyDown($event, \'selectPrev\')"\n (keydown.shift.arrowright)="handleKeyDown($event, \'selectNext\')"\n [hidden]="noDataFound && !variableInflight"\n>\n <ng-template [ngIf]="!groupby" [ngIfElse]="groupedListTemplate">\n <li *ngFor="let item of fieldDefs; index as $index; first as $first; last as $last;" class="app-list-item {{direction === \'horizontal\' ? \'\' : itemsPerRowClass}}" [ngClass]="listItemRef.itemClass"\n [wmListItem]="item"\n #listItemRef="listItemRef"\n [attr.tabindex]="tabindex"\n role="listitem">\n <ng-container [ngTemplateOutlet]="listTemplate" [ngTemplateOutletContext]="{item: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets}"></ng-container>\n </li>\n </ng-template>\n <ng-container [ngTemplateOutlet]="listLeftActionTemplate"></ng-container>\n <ng-container [ngTemplateOutlet]="listRightActionTemplate"></ng-container>\n</ul>\n\n<div class="no-data-msg" *ngIf="noDataFound && !variableInflight" [textContent]="nodatamessage"></div>\n\n<div class="loading-data-msg" *ngIf="variableInflight && !pulltorefresh">\n <span>\n <i class="app-icon panel-icon fa-spin" aria-hidden="true" [ngClass]="loadingicon"></i>\n <span class="sr-only">Loading</span>\n <span class="loading-text" [textContent]="loadingdatamsg"></span>\n </span>\n</div>\n\n<nav class="app-datanavigator" [attr.aria-disabled]="dataNavigator.isDisableNext" *ngIf="navigation === \'Inline\' && !noDataFound">\n <ul class="pager">\n <li class="next" [ngClass]="{\'disabled\': (dataNavigator ? dataNavigator.isDisableNext : true)}">\n <a href="javascript:void(0);" (click)="dataNavigator.navigatePage(\'next\', $event)">\n <i class="wi wi-chevron-right" aria-hidden="true"></i>\n <span class="sr-only">Next</span>\n </a>\n </li>\n </ul>\n</nav>\n\n<div class="panel-footer" *ngIf="navigation !== \'None\'" [hidden]="!showNavigation || (onDemandLoad && dataNavigator.isDisableNext) || (dataNavigator.dataSize <= pagesize) || (!dataNavigator.dataSize && !dataNavigator.datasource?.pagination?.next)">\n <nav wmPagination\n navigationalign.bind="navigationalign"\n navigation.bind="navControls"\n showrecordcount.bind="showrecordcount"\n maxsize.bind="maxsize"\n boundarylinks.bind="boundarylinks"\n forceellipses.bind="forceellipses"\n directionlinks.bind="directionlinks"\n show.bind="!onDemandLoad"\n paginationchange.event="beforePaginationChange($event, $index)"\n ></nav>\n <a *ngIf="onDemandLoad" href="javascript:void(0);"\n (click)="dataNavigator.navigatePage(\'next\', $event)"\n class="app-button btn btn-block"\n [ngClass]="paginationclass"\n [textContent]="ondemandmessage"\n ></a>\n</div>\n\n\x3c!--This template will be displayed when groupby is specified--\x3e\n<ng-template #groupedListTemplate>\n <li *ngFor="let groupObj of groupedData" class="app-list-item-group clearfix">\n <ul [attr.tabindex]="tabindex" class="list-group item-group" [ngClass]="listclass">\n <li class="app-list-item-header list-item list-group-header" (click)="handleHeaderClick($event)" [ngClass]="{\'collapsible-content\': collapsible}">\n <h4>{{groupObj.key}}\n <div class="header-action">\n <i class="app-icon wi action wi-chevron-up" *ngIf="collapsible"></i>\n <span *ngIf="showcount" class="label label-default">{{groupObj.data.length}}</span>\n </div>\n </h4>\n </li>\n <ul class="list-group clearfix {{direction === \'horizontal\' ? \'app-horizontal-list\': \'\'}}">\n <li *ngFor="let item of groupObj.data; index as $index; first as $first; last as $last;" [attr.tabindex]="tabindex"\n class="app-list-item group-list-item {{itemsPerRowClass}}"\n [ngClass]="listItemRef.itemClass"\n [wmListItem]="item" #listItemRef="listItemRef">\n <ng-container [ngTemplateOutlet]="listTemplate" [ngTemplateOutletContext]="{item: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets}"></ng-container>\n </li>\n </ul>\n </ul>\n </li>\n</ng-template>\n',providers:[i.provideAsWidgetRef(v)]}]}],v.ctorParameters=function(){return[{type:t.Injector},{type:t.ChangeDetectorRef},{type:i.ToDatePipe},{type:a.App},{type:a.AppDefaults},{type:t.NgZone},{type:String,decorators:[{type:t.Attribute,args:["itemclass.bind"]}]},{type:String,decorators:[{type:t.Attribute,args:["disableitem.bind"]}]},{type:String,decorators:[{type:t.Attribute,args:["dataset.bind"]}]},{type:String,decorators:[{type:t.Attribute,args:["datasource.bind"]}]},{type:String,decorators:[{type:t.Attribute,args:["mouseenter.event"]}]},{type:String,decorators:[{type:t.Attribute,args:["mouseleave.event"]}]},{type:a.StatePersistence},{type:a.PaginationService}]},v.propDecorators={listTemplate:[{type:t.ContentChild,args:["listTemplate"]}],listLeftActionTemplate:[{type:t.ContentChild,args:["listLeftActionTemplate"]}],listRightActionTemplate:[{type:t.ContentChild,args:["listRightActionTemplate"]}],btnComponents:[{type:t.ContentChildren,args:[r.ButtonComponent]}],dataNavigator:[{type:t.ViewChild,args:[o.PaginationComponent]}],listItems:[{type:t.ViewChildren,args:[m]}]};var y=[v,m],b=function(){};b.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,o.PaginationModule,i.WmComponentsModule],declarations:u([],d(y)),exports:u([],d(y)),entryComponents:[]}]}],e.ListComponent=v,e.ListItemDirective=m,e.ListModule=b,e["\u0275a"]=h,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/tooltip"),require("ngx-bootstrap/dropdown"),require("@wm/components/base"),require("@wm/components/basic"),require("@wm/components/input"),require("@wm/components/navigation/menu"),require("@wm/components/data/list"),require("@wm/components/data/pagination"),require("@wm/core"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@wm/components/data/table",["exports","@angular/core","@angular/common","@angular/forms","ngx-bootstrap/tooltip","ngx-bootstrap/dropdown","@wm/components/base","@wm/components/basic","@wm/components/input","@wm/components/navigation/menu","@wm/components/data/list","@wm/components/data/pagination","@wm/core","rxjs","rxjs/operators"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.components=e.wm.components||{},e.wm.components.data=e.wm.components.data||{},e.wm.components.data.table={}),e.ng.core,e.ng.common,e.ng.forms,e["ngx-bootstrap"].tooltip,e["ngx-bootstrap"].dropdown,e.wm.components.base,e.wm.components.basic,e.wm.components.input,e.wm.components.navigation.menu,e.wm.components.data.list,e.wm.components.data.pagination,e.wm.core,e.rxjs,e.rxjs.operators)}(this,(function(e,t,n,i,o,a,r,s,l,c,p,d,u,h,m){"use strict";
506
+ ***************************************************************************** */var c=function(e,t){return(c=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 p(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}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;function d(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,a=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)r.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return r}function u(e,t,n){if(n||2===arguments.length)for(var i,o=0,a=t.length;o<a;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 h=function(){i.register("wm-list",new Map([["boundarylinks",Object.assign({value:!1},i.PROP_BOOLEAN)],["class",i.PROP_STRING],["collapsible",i.PROP_BOOLEAN],["dateformat",i.PROP_STRING],["dataset",i.PROP_ANY],["datasource",i.PROP_ANY],["direction",Object.assign({value:"vertical"},i.PROP_STRING)],["directionlinks",Object.assign({value:!0},i.PROP_BOOLEAN)],["disableitem",i.PROP_BOOLEAN],["enablereorder",i.PROP_BOOLEAN],["forceellipses",Object.assign({value:!0},i.PROP_BOOLEAN)],["groupby",i.PROP_STRING],["iconclass",i.PROP_STRING],["itemclass",Object.assign({value:""},i.PROP_STRING)],["itemsperrow",i.PROP_STRING],["listclass",Object.assign({value:"list-group"},i.PROP_STRING)],["multiselect",i.PROP_BOOLEAN],["loadingdatamsg",Object.assign({value:"Loading..."},i.PROP_STRING)],["loadingicon",Object.assign({value:"fa fa-circle-o-notch"},i.PROP_STRING)],["match",i.PROP_STRING],["maxsize",Object.assign({value:5},i.PROP_NUMBER)],["name",i.PROP_STRING],["navigation",i.PROP_STRING],["navigationalign",Object.assign({value:"left"},i.PROP_STRING)],["nodatamessage",Object.assign({value:"No data found"},i.PROP_STRING)],["ondemandmessage",Object.assign({value:"Load More"},i.PROP_STRING)],["orderby",i.PROP_STRING],["paginationclass",i.PROP_STRING],["pagesize",i.PROP_NUMBER],["pulltorefresh",Object.assign({value:a.isMobileApp()},i.PROP_BOOLEAN)],["selectfirstitem",i.PROP_BOOLEAN],["selectionlimit",i.PROP_NUMBER],["show",Object.assign({value:!0},i.PROP_BOOLEAN)],["showcount",i.PROP_BOOLEAN],["showrecordcount",i.PROP_BOOLEAN],["statehandler",Object.assign({value:"none"},i.PROP_STRING)],["subheading",i.PROP_STRING],["tabindex",Object.assign({value:0},i.PROP_NUMBER)],["title",i.PROP_STRING]]))},m=function(){function e(e,t,n){this.inj=e,this.app=n,this.destroy=new s.Subject,this.destroy$=this.destroy.asObservable(),this.itemClass="",this._currentItemWidgets={},this.isActive=!1,this.disableItem=!1,this.nativeElement=t.nativeElement,this.listComponent=e.view.component,this.context=e.view.context,this.itemClassWatcher(this.listComponent),this.disableItemWatcher(this.listComponent),$(this.nativeElement).data("listItemContext",this)}return e.prototype.onFocus=function(){this.listComponent.lastSelectedItem=this},Object.defineProperty(e.prototype,"$index",{get:function(){return this.context.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"$even",{get:function(){return this.context.even},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"$odd",{get:function(){return this.context.odd},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"$first",{get:function(){return this.context.first},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"$last",{get:function(){return this.context.last},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentItemWidgets",{get:function(){var e=Array.from(this.nativeElement.querySelectorAll("[widget-id]"));return Object.assign(this._currentItemWidgets,e.reduce((function(e,t){return e[t.widget.name]=t.widget,e}),{}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wmListItem",{set:function(e){this.item=e},enumerable:!1,configurable:!0}),e.prototype.registerWatch=function(e,t){this.destroy$.subscribe(a.$watch(e,this.listComponent.viewParent,this,t))},e.prototype.itemClassWatcher=function(e){var t=this;e.binditemclass?this.registerWatch(e.binditemclass,(function(e){return t.itemClass=e||""})):this.itemClass=e.itemclass},e.prototype.disableItemWatcher=function(e){var t=this;e.binddisableitem?this.registerWatch(e.binddisableitem,(function(e){return t.disableItem=e||!1})):this.disableItem=e.disableitem||!1},e.prototype.setUpCUDHandlers=function(){var e=this,t=this.nativeElement.querySelector(".edit-list-item"),n=this.nativeElement.querySelector(".delete-list-item");t&&t.addEventListener("click",(function(t){e.listComponent.update()})),n&&n.addEventListener("click",(function(t){e.listComponent.delete()}))},e.prototype.ngOnInit=function(){var e=this;this.listComponent.mouseEnterCB&&this.nativeElement.addEventListener("mouseenter",(function(t){e.listComponent.invokeEventCallback("mouseenter",{widget:e,$event:t})})),this.listComponent.mouseLeaveCB&&this.nativeElement.addEventListener("mouseleave",(function(t){e.listComponent.invokeEventCallback("mouseleave",{widget:e,$event:t})})),$(this.nativeElement).attr("listitemindex",this.$index)},e.prototype.ngAfterViewInit=function(){this.setUpCUDHandlers()},e}();m.decorators=[{type:t.Directive,args:[{selector:"[wmListItem]",exportAs:"listItemRef"}]}],m.ctorParameters=function(){return[{type:t.Injector},{type:t.ElementRef},{type:a.App}]},m.propDecorators={isActive:[{type:t.HostBinding,args:["class.active"]}],disableItem:[{type:t.HostBinding,args:["class.disable-item"]}],onFocus:[{type:t.HostListener,args:["focus"]}],wmListItem:[{type:t.Input}]};var f=function(e){function t(t){var n=e.call(this)||this;return n.list=t,n.$el=$(n.list.getNativeElement()).find("ul.app-livelist-container").first(),n.leftChildrenCount=n.$el.find(">.app-list-item-left-action-panel > button:visible").length,n.rightChildrenCount=n.$el.find(">.app-list-item-right-action-panel > button:visible").length,n.leftChildrenCount||n.rightChildrenCount?(n.init(n.$el),n.$btnSubscription=n.list.btnComponents.changes.subscribe((function(e){return n.actionItems=e})),n):n}return p(t,e),t.prototype.createActionPanel=function(e,t){return t.css({width:e.outerWidth()+"px",height:e.outerHeight()+"px",marginBottom:-1*e.outerHeight()+"px",float:"left",padding:0}),t.insertBefore(e)},t.prototype.computeTotalChildrenWidth=function(e){return _.reduce(e.children(),(function(e,t){return e+$(t).outerWidth()}),0)},t.prototype.computeTransitionProportions=function(e){var t=this.computeTotalChildrenWidth(e),n="right"===this.position,i=0;return _.map(e.children(),(function(e){var o=(t-i)/t;return i+=$(e).outerWidth(),n?o:i/t}))},t.prototype.resetElement=function(e){e&&e.css({transform:"none",transition:"none"})},t.prototype.resetState=function(){this.resetElement(this.li),this.resetElement(this.actionPanel),this.actionPanel&&(this.actionPanel=null)},t.prototype.getChildActionElement=function(e){if(e.children().length)return"left"===this.position?e.children().first():e.children().last()},t.prototype.initActionPanel=function(e){this.actionPanel=this.createActionPanel(this.li,e),this.actionPanel.css({backgroundColor:this.getChildActionElement(this.actionPanel).css("background-color")}),this.limit=this.computeTotalChildrenWidth(this.actionPanel),this.transitionProportions=this.computeTransitionProportions(this.actionPanel)},t.prototype.bounds=function(e,t){var n=$(e.target).closest("li"),i={strictUpper:!0,strictLower:!0,lower:0,center:0,upper:0};if(!n.hasClass("app-list-item"))return i;if(this.li&&this.li[0]===n[0])"left"===this.position?i={strictUpper:!1,lower:-this.limit,center:this.limit}:"right"===this.position&&(i={center:-this.limit,upper:this.limit,strictLower:!1});else{var o=t>0?".app-list-item-left-action-panel":".app-list-item-right-action-panel",a=this.$el.find(">"+o);if(!a.length&&this.list.groupby&&(o="li > ul.list-group >"+o,a=this.$el.find(">"+o)),!a.length||!a.find("button:visible").length)return i;this.resetState(),this.li=n,this.position=a.attr("position"),this.initActionPanel(a),i=t>0?{strictUpper:!1,lower:0,center:0,upper:this.limit}:{strictLower:!1,lower:-this.limit,center:0,upper:0}}return i},t.prototype.context=function(){var e=this;return{computeActionTransition:function(t,n){var i=n>0?1:-1;return i*n>e.limit?n-i*e.limit+e.transitionProportions[t]*i*e.limit:e.transitionProportions[t]*n}}},t.prototype.animation=function(){var e=this;return[{target:function(){return e.li},css:{transform:"translate3d(${{$D + $d}}px, 0, 0)"}},{target:function(){return e.actionPanel&&e.actionPanel.children()},css:{transform:"translate3d(${{computeActionTransition($i, $D + $d)}}px, 0, 0)"}}]},t.prototype.invokeFullSwipeEvt=function(e){var t,n,i;"left"===this.position?(n=this.actionItems.filter((function(e){return"left"===e.getAttr("swipe-position")&&e.$element.is(":visible")})),i=0):i=(n=this.actionItems.filter((function(e){return"right"===e.getAttr("swipe-position")&&e.$element.is(":visible")}))).length-1,(t=n[i])&&t.hasEventCallback("tap")&&t.invokeEventCallback("tap",{$event:e}),this.resetState(),this.li=null},t.prototype.onAnimation=function(e,t){if(this.list.triggerListItemSelection(this.li,e),this.actionPanel&&"true"===this.actionPanel.attr("enablefullswipe")){var n=t>0?1:-1,i=this.getChildActionElement(this.actionPanel);if(i){var o="right"===this.position?this.rightChildrenCount-1:0;this.transitionProportions[o]*n*t*100/(this.li.outerWidth()-this.limit+i.width())>50&&this.invokeFullSwipeEvt(e)}}},t.prototype.onLower=function(){"left"===this.position&&(this.resetState(),this.li=null)},t.prototype.onUpper=function(){"right"===this.position&&(this.resetState(),this.li=null)},t.prototype.threshold=function(){return 10},t}(l.SwipeAnimation),g={widgetType:"wm-list",hostClass:"app-livelist app-panel"},v=function(e){function t(t,n,o,r,s,l,c,p,d,u,h,m,f,v){var y=this,b=a.noop,w=new Promise((function(e){return b=e}));return(y=e.call(this,t,g,w)||this).propsInitPromise=w,y.promiseResolverFn=b,i.styler(y.nativeElement,y,i.APPLY_STYLES_TYPE.SHELL),y.cdRef=n,y.ngZone=l,y.datePipe=o,y.statePersistence=f,y.paginationService=v,y._pageLoad=!0,y.binditemclass=c,y.binddisableitem=p,y.binddataset=d,y.mouseEnterCB=h,y.mouseLeaveCB=m,y.binddatasource=u,y.app=r,y.appDefaults=s,y.variableInflight=!1,y.noDataFound=!d,y.titleId="wmlist-"+a.generateGUId(),y._listenerDestroyers=[y.app.subscribe("check-state-persistence-options",(function(e){var t=_.get(y.datasource,"name");t||(t=i.extractDataSourceName(y.binddatasource)),_.get(e,"variable.name")===t&&y.handleStateParams(e)})),y.app.subscribe("toggle-variable-state",y.handleLoading.bind(y)),y.app.subscribe("setup-cud-listener",(function(e){y.nativeElement.getAttribute("name")===e&&(y._isDependent=!0)}))],y}return p(t,e),Object.defineProperty(t.prototype,"selecteditem",{get:function(){return this.multiselect?a.getClonedObject(this._items):_.isEmpty(this._items)?{}:a.getClonedObject(this._items[0])},set:function(e){var t=this;this._items.length=0,this.deselectListItems(),_.isArray(e)?e.forEach((function(e){return t.selectItem(e)})):this.selectItem(e),a.$appDigest()},enumerable:!1,configurable:!0}),t.prototype.getWidgets=function(e,t){var n,i=[];if(e)return a.isDefined(t)?(t=+t||0,(n=_.get(this.listItems.toArray(),t))?[_.get(n.currentItemWidgets,e)]:void 0):(_.forEach(this.listItems.toArray(),(function(t){(n=_.get(t.currentItemWidgets,e))&&i.push(n)})),i)},t.prototype.getItem=function(e){return this.getListItemByIndex(e)},t.prototype.getIndex=function(e){return e instanceof m?this.getListItemIndex(e):e?this.fieldDefs.findIndex((function(t){return _.isEqual(t,e)})):void 0},t.prototype.getConfiguredState=function(){var e=this.statePersistence.computeMode(this.statehandler);return e&&e.toLowerCase()},t.prototype.handleStateParams=function(e){if(this._pageLoad&&"none"!==this.getConfiguredState()){this._pageLoad=!1;var t=this.statePersistence.getWidgetState(this);_.get(t,"pagination")&&(e.options=e.options||{},e.options.page=t.pagination),_.get(t,"selectedItem")&&(this._selectedItemsExist=!0)}},t.prototype.triggerWMEvent=function(e,t){a.$invokeWatchers(!0);var n=this.multiselect?_.last(this.selecteditem):this.selecteditem;t&&(n=t),this.app.notify("wm-event",{eventName:e,widgetName:this.name,row:n})},t.prototype.create=function(){this._isDependent&&this.triggerWMEvent("insert")},t.prototype.editRow=function(e){if(this._isDependent){var t=void 0;e&&(t=this.getItemRefByIndexOrModel(e).item),this.triggerWMEvent("update",t)}},t.prototype.update=function(e){this.editRow(e)},t.prototype.deleteRow=function(e){if(this._isDependent){var t=void 0;e&&(t=this.getItemRefByIndexOrModel(e).item),this.triggerWMEvent("delete",t)}},t.prototype.delete=function(e){this.deleteRow(e)},t.prototype.handleLoading=function(e){var t=this,n=this.datasource;n&&n.execute(a.DataSource.Operation.IS_API_AWARE)&&a.isDataSourceEqual(e.variable,n)&&this.ngZone.run((function(){var n;t.handleStateParams(e),t.variableInflight=e.active,t.noDataFound=!(null===(n=e.data)||void 0===n?void 0:n.pagination.totalElements)}))},t.prototype.resetNavigation=function(){this.showNavigation=!1,this.navControls=void 0,this.infScroll=!1,this.onDemandLoad=!1},t.prototype.enableBasicNavigation=function(){this.navControls=i.NAVIGATION_TYPE.BASIC,this.showNavigation=!0},t.prototype.enableInlineNavigation=function(){this.navControls=i.NAVIGATION_TYPE.INLINE},t.prototype.enableClassicNavigation=function(){this.navControls=i.NAVIGATION_TYPE.CLASSIC,this.showNavigation=!0},t.prototype.enablePagerNavigation=function(){this.navControls=i.NAVIGATION_TYPE.PAGER,this.showNavigation=!0},t.prototype.setNavigationTypeNone=function(){this.navControls=i.NAVIGATION_TYPE.NONE,this.showNavigation=!1},t.prototype.enableInfiniteScroll=function(){this.infScroll=!0},t.prototype.enableOnDemandLoad=function(){this.onDemandLoad=!0,this.showNavigation=!0},t.prototype.onNavigationTypeChange=function(e){switch(this.resetNavigation(),e){case i.NAVIGATION_TYPE.BASIC:this.enableBasicNavigation();break;case i.NAVIGATION_TYPE.INLINE:this.enableInlineNavigation();break;case i.NAVIGATION_TYPE.ADVANCED:case i.NAVIGATION_TYPE.CLASSIC:this.enableClassicNavigation();break;case i.NAVIGATION_TYPE.PAGER:this.enablePagerNavigation();break;case i.NAVIGATION_TYPE.NONE:this.setNavigationTypeNone();break;case i.NAVIGATION_TYPE.SCROLL:this.enableInfiniteScroll();break;case i.NAVIGATION_TYPE.ONDEMAND:this.enableOnDemandLoad()}},t.prototype.updateFieldDefs=function(e){var t;this.infScroll||this.onDemandLoad?(t=d(this.paginationService.updateFieldsOnPagination(this,e),2),this.fieldDefs=t[0],this.currentPage=t[1]):this.fieldDefs=e,this.orderby&&(this.fieldDefs=i.getOrderedDataset(this.fieldDefs,this.orderby)),this.groupby&&(this.groupedData=i.groupData(this,this.fieldDefs,this.groupby,this.match,this.orderby,this.dateformat,this.datePipe,void 0,this.appDefaults)),this.fieldDefs.length||(this.noDataFound=!0,this.selecteditem=void 0),a.$appDigest(),this.listItems.setDirty()},t.prototype.onDataChange=function(e){_.isEmpty(e)?this.updateFieldDefs([]):(this.noDataFound=!1,this.isDataChanged=!0,this.datasource&&this.datasource.execute(a.DataSource.Operation.IS_API_AWARE)&&(e=_.cloneDeep(e)),a.isObject(e)&&!_.isArray(e)&&(e=_.isEmpty(e)?[]:[e]),_.isString(e)&&(e=e.split(",")),this.datasource&&"App"===this.datasource.owner&&(this.infScroll||this.onDemandLoad)&&!this.currentPage&&this.datasource.execute(a.DataSource.Operation.GET_PAGING_OPTIONS).number>0&&(e=this.datasource.execute(a.DataSource.Operation.LIST_RECORDS,{page:1})),_.isArray(e)&&(e.length&&this.invokeEventCallback("beforedatarender",{$data:e}),this.updateFieldDefs(e)))},t.prototype.setupDataSource=function(){var e=this,t=this.dataNavigator;t.options={maxResults:this.pagesize||20},this.dataNavigatorWatched=!0,this.navigatorResultWatch&&this.navigatorResultWatch.unsubscribe(),this.navigatorResultWatch=t.resultEmitter.subscribe((function(t){e.onDataChange(t)}),!0),this.navigatorMaxResultWatch&&this.navigatorMaxResultWatch.unsubscribe(),this.navigatorMaxResultWatch=t.maxResultsEmitter.subscribe((function(t){e.pagesize=t})),t.maxResults=this.pagesize||20,this.removePropertyBinding("dataset");var n=this.getAttr("datasetboundexpr");this.dataNavigator.setBindDataSet(this.binddataset,this.viewParent,n?this.context:this.datasource,this.dataset,this.binddatasource,n,this.statehandler)},t.prototype.onDataSetChange=function(e){if("wm.Variable"===_.get(this.datasource,"category")&&"none"!==this.getConfiguredState()&&this._pageLoad){var t=this.statePersistence.getWidgetState(this);this._pageLoad=!1,_.get(t,"pagination")&&this.dataNavigator.pageChanged({page:t.pagination},!0),_.get(t,"selectedItem")&&(this._selectedItemsExist=!0)}this.dataNavigatorWatched?this.navigation&&this.navigation!==i.NAVIGATION_TYPE.NONE&&this.dataNavigator.setDataSource(this.datasource):this.navigation&&this.navigation!==i.NAVIGATION_TYPE.NONE?this.setupDataSource():this.onDataChange(e)},t.prototype.deselectListItems=function(){this.listItems.forEach((function(e){return e.isActive=!1}))},t.prototype.clearSelectedItems=function(){this.deselectListItems(),this._items.length=0,a.$appDigest()},t.prototype.getListItemByModel=function(e){var t=this;return this.listItems.find((function(n){var i=n.item;if(t.groupby&&!_.has(e,"_groupIndex")&&delete(i=_.clone(i))._groupIndex,_.isEqual(i,e))return!0}))||null},t.prototype.updateSelectedItemsWidgets=function(e){var t,n=this,o={},a=_.get(this.dataNavigator,"dn.currentPage")||1;"none"!==this.getConfiguredState()&&(t=this.statePersistence.getWidgetState(this)||{},_.get(t,"selectedItem")&&(this.multiselect&&1===this.selecteditem.length?t.selectedItem=[]:_.remove(t.selectedItem,(function(e){return e.page===a})))),this.multiselect&&(this.selectedItemWidgets.length=0),this.listItems.forEach((function(e,i){e.isActive&&(n.multiselect?n.selectedItemWidgets.push(e.currentItemWidgets):n.selectedItemWidgets=e.currentItemWidgets,o={page:a,index:i},_.get(t,"selectedItem")&&n.multiselect?_.some(t.selectedItem,o)||t.selectedItem.push(o):t.selectedItem=[o])})),"none"===this.getConfiguredState()||e||(i.unsupportedStatePersistenceTypes.indexOf(this.navigation)<0?(this.statePersistence.removeWidgetState(this,"selectedItem"),this.statePersistence.setWidgetState(this,{selectedItem:t.selectedItem})):console.warn("Retain State handling on Widget "+this.name+" is not supported for current pagination type."))},t.prototype.toggleListItemSelection=function(e,t){if(e&&!e.disableItem){var n=e.item;this.groupby&&_.has(n,"_groupIndex")&&delete(n=_.clone(n))._groupIndex,e.isActive?(this._items=_.pullAllWith(this._items,[n],_.isEqual),e.isActive=!1):(this.multiselect||this.clearSelectedItems(),this._items.push(n),this.invokeEventCallback("select",{widget:e,$data:n}),e.isActive=!0),this.updateSelectedItemsWidgets(t)}},t.prototype.onListRender=function(e){var t=this;if(this.isDataChanged&&(a.$invokeWatchers(!0),this.invokeEventCallback("render",{$data:this.fieldDefs})),this.isDataChanged&&"none"!==this.getConfiguredState()&&e.length&&this._selectedItemsExist){var n=this.statePersistence.getWidgetState(this);if(_.get(n,"selectedItem")){this._selectedItemsExist=!1;var o=_.isArray(this.selecteditem)?this.selecteditem.length:_.toNumber(!_.isEmpty(this.selecteditem)),r=_.get(this.dataNavigator,"dn.currentPage")||1;n.pagination=n.pagination||1,o!==n.selectedItem.length&&n.pagination===r&&n.selectedItem.forEach((function(e){e.page===r&&t.selectItem(e.index,!0)}))}}var s=_.isArray(this.selecteditem)?this.selecteditem:[this.selecteditem];if(this.firstSelectedItem=this.lastSelectedItem=null,!e.length||!this.selectfirstitem||this._items.length&&this.multiselect||!1===this._selectedItemsExist)this.deselectListItems(),s.forEach((function(e){var n=t.getListItemByModel(e);n&&(n.isActive=!0,t.lastSelectedItem=n,n.nativeElement.focus())}));else{var l=e.first;l.disableItem||!this.isDataChanged||(this.infScroll||this.onDemandLoad)&&this._items.length||(this.clearSelectedItems(),this.firstSelectedItem=this.lastSelectedItem=l,this.selectItem(0))}if(this.fieldDefs.length&&this.infScroll){var c=this.$element.closest("[wmsmoothscroll]");if(a.isMobileApp()&&c.length&&"true"===c.attr("wmsmoothscroll"))this.paginationService.bindIScrollEvt(this,i.DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME);else{var p=this.$element.closest(".modal-body"),d=this.$element.find("ul").height(),u=window.innerHeight-140;a.isMobile()&&p.length&&d>u&&this.$element.css("height",u+"px"),this.paginationService.bindScrollEvt(this,"> ul",i.DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME)}}this.isDataChanged=!1},t.prototype.triggerListItemSelection=function(e,t){if(e&&e[0]){var n=e.data("listItemContext");n.listComponent===this&&this.onItemClick(t,n)}},t.prototype.setupHandlers=function(){var e=this;this.listItems.changes.subscribe((function(t){e.onListRender(t),e.cdRef.detectChanges()})),this.nativeElement.querySelector("ul.app-livelist-container").addEventListener("click",(function(t){for(var n=$(t.target).closest(".app-list-item");n.get(0)&&n.closest("ul.app-livelist-container").get(0)!==t.currentTarget;)n=n.parent().closest(".app-list-item");e.triggerListItemSelection(n,t)}),!0)},t.prototype.onReorderStart=function(e,t){t.placeholder.height(t.item.height()),this.$ulEle.data("oldIndex",t.item.index())},t.prototype.onSort=function(e,t){if(this.infScroll){var n=this.$ulEle.find("[listitemindex="+(this.fieldDefs.length-1)+"]").offset();n&&n.top<t.offset.top&&(this.paginationService.bindScrollEvt(this,"> ul",i.DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME),this.debouncedFetchNextDatasetOnScroll())}},t.prototype.onUpdate=function(e,t){var n=this.fieldDefs,i=t.item.index(),o=this.$ulEle.data("oldIndex"),a=_.min([i,o]),r=_.max([i,o]),s=_.pullAt(n,o)[0];if(s){"none"!==this.getConfiguredState()&&this.statePersistence.removeWidgetState(this,"selectedItem"),this.reorderProps.minIndex=_.min([a,this.reorderProps.minIndex]),this.reorderProps.maxIndex=_.max([r,this.reorderProps.maxIndex]),n.splice(i,0,s),this.cdRef.markForCheck(),this.cdRef.detectChanges();var l={oldIndex:o,newIndex:i,item:n[i]};this.invokeEventCallback("reorder",{$event:e,$data:n,$changedItem:l}),this.$ulEle.removeData("oldIndex")}},t.prototype.configureDnD=function(){var e,t=$(document).find(".modal");e=this.getAttr("height")?"parent":t.length?t[t.length-1]:"body";var n=a.isMobileApp()?{}:{appendTo:e},o=$(this.nativeElement);this.$ulEle=o.find(".app-livelist-container"),i.configureDnD(this.$ulEle,n,this.onReorderStart.bind(this),this.onUpdate.bind(this),this.onSort.bind(this)),this.$ulEle.droppable({accept:".app-list-item"}),a.isMobileApp()&&(this.$ulEle.sortable("disable"),this.$ulEle.on("touchstart",(function(e){var t=this;t.touching||(t.touched&&clearTimeout(t.touched),setTimeout((function(){e.cancelable&&e.preventDefault()}),50),t.touched=setTimeout((function(){$(e.currentTarget).addClass("no-selection"),$(e.currentTarget).sortable("enable"),t.touching=!0,$(t).trigger(e)}),350))})).on("touchend",(function(e){this.touching=!1,$(e.currentTarget).removeClass("no-selection"),$(e.currentTarget).sortable("disable"),clearTimeout(this.touched)})).on("touchmove",(function(){clearTimeout(this.touched)})))},t.prototype.checkSelectionLimit=function(e){return!this.selectionlimit||e<this.selectionlimit},t.prototype.getListItemByIndex=function(e){return this.listItems.toArray()[e]},t.prototype.getListItemIndex=function(e){return this.listItems.toArray().indexOf(e)},t.prototype.execute=function(e,t){return![a.DataSource.Operation.IS_API_AWARE,a.DataSource.Operation.IS_PAGEABLE,a.DataSource.Operation.SUPPORTS_SERVER_FILTER].includes(e)&&this.datasource.execute(e,t)},t.prototype.handleKeyDown=function(e,t){var n=this;e.stopPropagation(),13===e.keyCode||9===e.keyCode||e.target.classList.contains("form-control")&&32===e.keyCode||e.preventDefault();var i=this.listItems,o=this.getListItemIndex(this.lastSelectedItem);if(this.multiselect){var a=this.getListItemIndex(this.firstSelectedItem),r=_.isArray(this.selecteditem)?this.selecteditem.length:_.isObject(this.selecteditem)?1:0;"selectPrev"===t?o>0&&(o<=a&&this.checkSelectionLimit(r)?(this.lastSelectedItem=this.getListItemByIndex(o-1),this.toggleListItemSelection(this.lastSelectedItem)):o>a?(this.toggleListItemSelection(this.getListItemByIndex(o)),this.lastSelectedItem=this.getListItemByIndex(o-1)):this.invokeEventCallback("selectionlimitexceed",{$event:e})):"selectNext"===t&&o<i.length-1&&(o>=a&&this.checkSelectionLimit(r)?(this.lastSelectedItem=this.getListItemByIndex(o+1),this.toggleListItemSelection(this.lastSelectedItem)):o<a?(this.toggleListItemSelection(this.getListItemByIndex(o)),this.lastSelectedItem=this.getListItemByIndex(o+1)):this.invokeEventCallback("selectionlimitexceed",{$event:e}))}if("focusPrev"===t)if(this.isListElementMovable){var s;if(o=o<=0?0:o,this.lastSelectedItem=this.getListItemByIndex(o),0===o)return void(s=this.listItems.last);this.listItems.forEach((function(e,t){if(t===o){s.nativeElement.before(e.nativeElement),n.lastSelectedItem.nativeElement.focus();var i=n.listItems.toArray(),a=i[o];i[o]=i[o-1],i[o-1]=a,n.listItems.reset(i),n.currentIndex=o,n.ariaText="selected "}s=e}))}else o=o<=0?0:o-1,this.lastSelectedItem=this.getListItemByIndex(o),this.lastSelectedItem.nativeElement.focus(),this.currentIndex=o+1,this.ariaText="selected ";else if("focusNext"===t)if(this.isListElementMovable){var l;if(o=o<i.length-1?o:i.length-1,this.lastSelectedItem=this.getListItemByIndex(o),o===this.listItems.length-1)return void(l=this.listItems.first);this.listItems.forEach((function(e,t){if(t===o+1){l.nativeElement.before(e.nativeElement),n.lastSelectedItem.nativeElement.focus();var i=n.listItems.toArray(),a=i[o+1];i[o+1]=i[o],i[o]=a,n.listItems.reset(i),n.currentIndex=t+1,n.ariaText="selected "}l=e}))}else o=o<i.length-1?o+1:i.length-1,this.lastSelectedItem=this.getListItemByIndex(o),this.lastSelectedItem.nativeElement.focus(),this.currentIndex=o+1,this.ariaText="selected ";else if("select"===t){if(-1===o||!$(e.target).closest(this.lastSelectedItem.nativeElement)){var c=$(e.target).closest("li.app-list-item"),p=c.closest("ul.app-livelist-container");o=p.find("li.app-list-item").index(c)}this.onItemClick(e,this.getListItemByIndex(o))}else if("space"===t){if(!this.enablereorder)return;this.isListElementMovable=!this.isListElementMovable,this.onItemClick(e,this.getListItemByIndex(o)),this.currentIndex=o+1;var d=this.getListItemByIndex(o).item.name;this.isListElementMovable?this.ariaText=d+" grabbed, current position ":this.ariaText=d+" dropped, final position "}},t.prototype.onPropertyChange=function(t,n,i){var o=this;if("dataset"===t){if(!n&&this.binddatasource&&!this.datasource)return;this.onDataSetChange(n)}else if("datasource"===t)this.dataset&&this.onDataSetChange(this.dataset);else if("navigation"===t){if("Advanced"===n)return void(this.navigation="Classic");a.switchClass(this.nativeElement,n,i),this.onNavigationTypeChange(n),this.dataNavigator&&(this.dataNavigator.navigationClass=this.paginationclass)}else if("itemsperrow"===t)a.setListClass(this);else{if("tabindex"===t)return;"pulltorefresh"===t&&n?(this.app.notify("pullToRefresh:enable"),this.subscribeToPullToRefresh()):"paginationclass"===t?this.dataNavigator&&setTimeout((function(){return o.dataNavigator.navigationClass=n})):"pagesize"===t?(this.dataNavigator.options={maxResults:n},this.dataNavigator.widget.maxResults=n,this.dataNavigator.maxResults=n):"enablereorder"===t?n?(this.configureDnD(),this.$ulEle.sortable("enable")):this.$ulEle&&!n&&this.$ulEle.sortable("disable"):e.prototype.onPropertyChange.call(this,t,n,i)}},t.prototype.onItemClick=function(e,t){var n,i=this;if(!t.disableItem){if(this.firstSelectedItem=this.firstSelectedItem||t,n=_.isArray(this.selecteditem)?this.selecteditem.length:_.isObject(this.selecteditem)?1:0,this.multiselect&&a.isMobile())this.checkSelectionLimit(n)||t.isActive?this.toggleListItemSelection(t):this.invokeEventCallback("selectionlimitexceed",{$event:e});else if((e.ctrlKey||e.metaKey)&&this.multiselect)this.checkSelectionLimit(n)||t.isActive?(this.firstSelectedItem=this.lastSelectedItem=t,this.toggleListItemSelection(t)):this.invokeEventCallback("selectionlimitexceed",{$event:e});else if(e.shiftKey&&this.multiselect){var o=t.context.index,r=this.firstSelectedItem.context.index;o>r&&(r=[o,o=r][0]),this.checkSelectionLimit(r-o)?(this.clearSelectedItems(),this.listItems.forEach((function(e){var t=e.context.index;t>=o&&t<=r&&i.toggleListItemSelection(e)})),this.lastSelectedItem=t):this.invokeEventCallback("selectionlimitexceed",{$event:e})}else(!t.isActive||n>1)&&(this.clearSelectedItems(),this.toggleListItemSelection(t),this.firstSelectedItem=this.lastSelectedItem=t);a.$appDigest()}},t.prototype.clear=function(){this.updateFieldDefs([])},t.prototype.getItemRefByIndexOrModel=function(e){return a.isNumber(e)?this.getListItemByIndex(e):this.getListItemByModel(e)},t.prototype.deselectItem=function(e){var t=this.getItemRefByIndexOrModel(e);t&&t.isActive&&this.toggleListItemSelection(t)},t.prototype.selectItem=function(e,t){var n=this.getItemRefByIndexOrModel(e);n&&(n.isActive||this.toggleListItemSelection(n,t),n.nativeElement.focus())},t.prototype.beforePaginationChange=function(e,t){this.invokeEventCallback("paginationchange",{$event:e,$index:t})},t.prototype.handleEvent=function(e,t,n,i){var o=this;_.includes(["click","tap","dblclick","doubletap"],t)&&this.eventManager.addEventListener(this.nativeElement,{tap:"click",doubletap:"dblclick"}[t]||t,(function(e){var n=$(e.target).closest(".app-list-item");if(n.length){var i=n.data("listItemContext");i.disableItem||o.invokeEventCallback(t,{widget:i,$event:e,item:i.item})}}))},t.prototype.subscribeToPullToRefresh=function(){var e=this;this._listenerDestroyers.push(this.app.subscribe("pulltorefresh",(function(){e.datasource&&e.datasource.listRecords&&e.datasource.listRecords()})))},t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.handleHeaderClick=a.noop,setTimeout((function(){t.debouncedFetchNextDatasetOnScroll=t.paginationService.debouncedFetchNextDatasetOnScroll(t.dataNavigator,i.DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME,t)}),0),this._items=[],this.fieldDefs=[],this.reorderProps={minIndex:null,maxIndex:null}},t.prototype.setUpCUDHandlers=function(){var e=this,t=document.getElementsByClassName("add-list-item")[0];t&&t.addEventListener("click",(function(t){e.create()}))},t.prototype.ngAfterViewInit=function(){var t=this;this.promiseResolverFn(),this.propsInitPromise.then((function(){e.prototype.ngAfterViewInit.call(t),t.setUpCUDHandlers(),t.selectedItemWidgets=t.multiselect?[]:{},t.enablereorder&&!t.groupby&&t.configureDnD(),t.groupby&&t.collapsible&&(t.handleHeaderClick=i.handleHeaderClick,t.toggleAllHeaders=i.toggleAllHeaders.bind(void 0,t)),a.setListClass(t)})),this.setupHandlers();var n=this.nativeElement.querySelector("ul.app-livelist-container");i.styler(n,this,i.APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER),a.isMobileApp()&&n.querySelector(".app-list-item-action-panel")&&(this._listAnimator=new f(this))},t.prototype.ngOnDestroy=function(){this._listAnimator&&this._listAnimator.$btnSubscription&&this._listAnimator.$btnSubscription.unsubscribe(),this._listenerDestroyers.forEach((function(e){return e&&e()})),e.prototype.ngOnDestroy.call(this)},t.prototype.ngOnDetach=function(){e.prototype.ngOnDetach.call(this),this._pageLoad=!0},t}(i.StylableComponent);v.initializeProps=h(),v.decorators=[{type:t.Component,args:[{selector:"div[wmList]",template:'<div class="panel-heading" *ngIf="title || subheading || iconclass">\n <h3 class="panel-title">\n <div class="pull-left">\n <i class="app-icon panel-icon {{iconclass}}" aria-hidden="true" [hidden]="!iconclass"></i>\n </div>\n <div class="pull-left">\n <div class="heading" [innerHTML]="title"></div>\n <div class="description" [innerHTML]="subheading"></div>\n </div>\n </h3>\n</div>\n\n<nav class="app-datanavigator" [attr.aria-disabled]="dataNavigator.isDisablePrevious" aria-label="Page navigation" *ngIf="navigation === \'Inline\' && !noDataFound">\n <ul class="pager">\n <li class="previous" [ngClass]="{\'disabled\': (dataNavigator ? dataNavigator.isDisablePrevious : true)}">\n <a href="javascript:void(0);" (click)="dataNavigator.navigatePage(\'prev\', $event)">\n <i class="wi wi-chevron-left" aria-hidden="true"></i>\n <span class="sr-only">Previous</span>\n </a>\n </li>\n </ul>\n</nav>\n<div *ngIf="navigation === \'Inline\' && !noDataFound" aria-live="polite" aria-atomic="true" class="sr-only"> {{\'Item \' + dataNavigator.dn.currentPage + \' of \' + dataNavigator.pageCount }}</div>\n\n<div>\n <div id={{titleId}} class="sr-only" >\n Press space bar to toggle drag drop mode, use arrow keys to move selected elements.\n </div>\n \n <div aria-live="assertive" *ngIf="listItems" class="sr-only" >\n {{ariaText + currentIndex + \' of \' + listItems.length}}\n </div> \n</div>\n\n<ul [attr.tabindex]="tabindex" [attr.aria-describedby] = "titleId" class="app-livelist-container clearfix {{direction === \'horizontal\' ? \'app-horizontal-list\': \'\'}} {{listclass}}" role="list"\n (keydown.enter)="handleKeyDown($event, \'select\')"\n\n (keydown.space)="handleKeyDown($event, \'space\')"\n\n (keydown.arrowup)="handleKeyDown($event, \'focusPrev\')"\n (keydown.arrowdown)="handleKeyDown($event, \'focusNext\')"\n (keydown.arrowleft)="handleKeyDown($event, \'focusPrev\')"\n (keydown.arrowright)="handleKeyDown($event, \'focusNext\')"\n\n (keydown.shift.arrowup)="handleKeyDown($event, \'selectPrev\')"\n (keydown.shift.arrowdown)="handleKeyDown($event, \'selectNext\')"\n (keydown.shift.arrowleft)="handleKeyDown($event, \'selectPrev\')"\n (keydown.shift.arrowright)="handleKeyDown($event, \'selectNext\')"\n [hidden]="noDataFound && !variableInflight"\n>\n <ng-template [ngIf]="!groupby" [ngIfElse]="groupedListTemplate">\n <li *ngFor="let item of fieldDefs; index as $index; first as $first; last as $last;" class="app-list-item {{direction === \'horizontal\' ? \'\' : itemsPerRowClass}}" [ngClass]="listItemRef.itemClass"\n [wmListItem]="item"\n #listItemRef="listItemRef"\n [attr.tabindex]="tabindex"\n role="listitem">\n <ng-container [ngTemplateOutlet]="listTemplate" [ngTemplateOutletContext]="{item: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets}"></ng-container>\n </li>\n </ng-template>\n <ng-container [ngTemplateOutlet]="listLeftActionTemplate"></ng-container>\n <ng-container [ngTemplateOutlet]="listRightActionTemplate"></ng-container>\n</ul>\n\n<div class="no-data-msg" *ngIf="noDataFound && !variableInflight" [textContent]="nodatamessage"></div>\n\n<div class="loading-data-msg" *ngIf="variableInflight && !pulltorefresh">\n <span>\n <i class="app-icon panel-icon fa-spin" aria-hidden="true" [ngClass]="loadingicon"></i>\n <span class="sr-only">Loading</span>\n <span class="loading-text" [textContent]="loadingdatamsg"></span>\n </span>\n</div>\n\n<nav class="app-datanavigator" [attr.aria-disabled]="dataNavigator.isDisableNext" *ngIf="navigation === \'Inline\' && !noDataFound">\n <ul class="pager">\n <li class="next" [ngClass]="{\'disabled\': (dataNavigator ? dataNavigator.isDisableNext : true)}">\n <a href="javascript:void(0);" (click)="dataNavigator.navigatePage(\'next\', $event)">\n <i class="wi wi-chevron-right" aria-hidden="true"></i>\n <span class="sr-only">Next</span>\n </a>\n </li>\n </ul>\n</nav>\n\n<div class="panel-footer" *ngIf="navigation !== \'None\'" [hidden]="!showNavigation || (onDemandLoad && dataNavigator.isDisableNext) || (dataNavigator.dataSize <= pagesize) || (!dataNavigator.dataSize && !dataNavigator.datasource?.pagination?.next)">\n <nav wmPagination\n navigationalign.bind="navigationalign"\n navigation.bind="navControls"\n showrecordcount.bind="showrecordcount"\n maxsize.bind="maxsize"\n boundarylinks.bind="boundarylinks"\n forceellipses.bind="forceellipses"\n directionlinks.bind="directionlinks"\n show.bind="!onDemandLoad"\n paginationchange.event="beforePaginationChange($event, $index)"\n ></nav>\n <a *ngIf="onDemandLoad" href="javascript:void(0);"\n (click)="dataNavigator.navigatePage(\'next\', $event)"\n class="app-button btn btn-block"\n [ngClass]="paginationclass"\n [textContent]="ondemandmessage"\n ></a>\n</div>\n\n\x3c!--This template will be displayed when groupby is specified--\x3e\n<ng-template #groupedListTemplate>\n <li *ngFor="let groupObj of groupedData" class="app-list-item-group clearfix">\n <ul [attr.tabindex]="tabindex" class="list-group item-group" [ngClass]="listclass">\n <li class="app-list-item-header list-item list-group-header" (click)="handleHeaderClick($event)" [ngClass]="{\'collapsible-content\': collapsible}">\n <h4>{{groupObj.key}}\n <div class="header-action">\n <i class="app-icon wi action wi-chevron-up" *ngIf="collapsible"></i>\n <span *ngIf="showcount" class="label label-default">{{groupObj.data.length}}</span>\n </div>\n </h4>\n </li>\n <ul class="list-group clearfix {{direction === \'horizontal\' ? \'app-horizontal-list\': \'\'}}">\n <li *ngFor="let item of groupObj.data; index as $index; first as $first; last as $last;" [attr.tabindex]="tabindex"\n class="app-list-item group-list-item {{itemsPerRowClass}}"\n [ngClass]="listItemRef.itemClass"\n [wmListItem]="item" #listItemRef="listItemRef">\n <ng-container [ngTemplateOutlet]="listTemplate" [ngTemplateOutletContext]="{item: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets}"></ng-container>\n </li>\n </ul>\n </ul>\n </li>\n</ng-template>\n',providers:[i.provideAsWidgetRef(v)]}]}],v.ctorParameters=function(){return[{type:t.Injector},{type:t.ChangeDetectorRef},{type:i.ToDatePipe},{type:a.App},{type:a.AppDefaults},{type:t.NgZone},{type:String,decorators:[{type:t.Attribute,args:["itemclass.bind"]}]},{type:String,decorators:[{type:t.Attribute,args:["disableitem.bind"]}]},{type:String,decorators:[{type:t.Attribute,args:["dataset.bind"]}]},{type:String,decorators:[{type:t.Attribute,args:["datasource.bind"]}]},{type:String,decorators:[{type:t.Attribute,args:["mouseenter.event"]}]},{type:String,decorators:[{type:t.Attribute,args:["mouseleave.event"]}]},{type:a.StatePersistence},{type:a.PaginationService}]},v.propDecorators={listTemplate:[{type:t.ContentChild,args:["listTemplate"]}],listLeftActionTemplate:[{type:t.ContentChild,args:["listLeftActionTemplate"]}],listRightActionTemplate:[{type:t.ContentChild,args:["listRightActionTemplate"]}],btnComponents:[{type:t.ContentChildren,args:[r.ButtonComponent]}],dataNavigator:[{type:t.ViewChild,args:[o.PaginationComponent]}],listItems:[{type:t.ViewChildren,args:[m]}]};var y=[v,m],b=function(){};b.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,o.PaginationModule,i.WmComponentsModule],declarations:u([],d(y)),exports:u([],d(y)),entryComponents:[]}]}],e.ListComponent=v,e.ListItemDirective=m,e.ListModule=b,e["\u0275a"]=h,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/tooltip"),require("ngx-bootstrap/dropdown"),require("@wm/components/base"),require("@wm/components/basic"),require("@wm/components/input"),require("@wm/components/navigation/menu"),require("@wm/components/data/list"),require("@wm/components/data/pagination"),require("@wm/core"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@wm/components/data/table",["exports","@angular/core","@angular/common","@angular/forms","ngx-bootstrap/tooltip","ngx-bootstrap/dropdown","@wm/components/base","@wm/components/basic","@wm/components/input","@wm/components/navigation/menu","@wm/components/data/list","@wm/components/data/pagination","@wm/core","rxjs","rxjs/operators"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.components=e.wm.components||{},e.wm.components.data=e.wm.components.data||{},e.wm.components.data.table={}),e.ng.core,e.ng.common,e.ng.forms,e["ngx-bootstrap"].tooltip,e["ngx-bootstrap"].dropdown,e.wm.components.base,e.wm.components.basic,e.wm.components.input,e.wm.components.navigation.menu,e.wm.components.data.list,e.wm.components.data.pagination,e.wm.core,e.rxjs,e.rxjs.operators)}(this,(function(e,t,n,i,o,a,r,s,l,c,p,d,u,h,m){"use strict";
507
507
  /*! *****************************************************************************
508
508
  Copyright (c) Microsoft Corporation.
509
509