(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{"+12O":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataSource=void 0;var i=_(n("5qrJ")),r=n("1LL4"),o=_(n("KAnu")),a=n("zl3R"),s=n("ti0F"),c=n("IRs2"),u=_(n("IlOo")),l=_(n("JZex")),d=n("DLVy"),h=n("YyLj"),f=_(n("XpgS")),p=_(n("e8y9")),g=n("tJvG"),m=_(n("3u3F")),v=n("8Cge");function _(e){return e&&e.__esModule?e:{default:e}}t.DataSource=i.default.inherit({ctor:function(e){var t,n=this;e=(0,v.normalizeDataSourceOptions)(e),this._eventsStrategy=new d.EventsStrategy(this);var i=0!==e.pushAggregationTimeout?(0,c.throttleChanges)(this._onPush,function(){return void 0===e.pushAggregationTimeout?5*n._changedTime:e.pushAggregationTimeout}):this._onPush;this._changedTime=0,this._onPushHandler=function(e){n._aggregationTimeoutId=i.call(n,e)},this._store=e.store,this._store.on("push",this._onPushHandler),this._storeLoadOptions=this._extractLoadOptions(e),this._mapFunc=e.map,this._postProcessFunc=e.postProcess,this._pageIndex=void 0!==e.pageIndex?e.pageIndex:0,this._pageSize=void 0!==e.pageSize?e.pageSize:20,this._loadingCount=0,this._loadQueue=this._createLoadQueue(),this._searchValue="searchValue"in e?e.searchValue:null,this._searchOperation=e.searchOperation||"contains",this._searchExpr=e.searchExpr,this._paginate=e.paginate,this._reshapeOnPush=null!==(t=e.reshapeOnPush)&&void 0!==t&&t,(0,a.each)(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],function(t,i){i in e&&n.on(i.substr(2,1).toLowerCase()+i.substr(3),e[i])}),this._operationManager=new m.default,this._init()},_init:function(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,(0,s.isDefined)(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose:function(){var e;this._store.off("push",this._onPushHandler),this._eventsStrategy.dispose(),clearTimeout(this._aggregationTimeoutId),delete this._store,null===(e=this._delayedLoadTask)||void 0===e||e.abort(),this._operationManager.cancelAll(),this._disposed=!0},_extractLoadOptions:function(e){var t={},n=["sort","filter","select","group","requireTotalCount"],i=this._store._customLoadOptions();return i&&(n=n.concat(i)),(0,a.each)(n,function(){t[this]=e[this]}),t},loadOptions:function(){return this._storeLoadOptions},items:function(){return this._items},pageIndex:function(e){if(!(0,s.isNumeric)(e))return this._pageIndex;this._pageIndex=e,this._isLastPage=!this._paginate},paginate:function(e){if(!(0,s.isBoolean)(e))return this._paginate;this._paginate!==e&&(this._paginate=e,this.pageIndex(0))},pageSize:function(e){if(!(0,s.isNumeric)(e))return this._pageSize;this._pageSize=e},isLastPage:function(){return this._isLastPage},generateStoreLoadOptionAccessor:function(e){var t=this;return function(n){var i=(0,v.normalizeStoreLoadOptionAccessorArguments)(n);if(void 0===i)return t._storeLoadOptions[e];t._storeLoadOptions[e]=i}},sort:function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(e=[].slice.call(arguments)),this._searchExpr=e,this.pageIndex(0)},store:function(){return this._store},key:function(){var e;return null===(e=this._store)||void 0===e?void 0:e.key()},totalCount:function(){return this._totalCount},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._loadingCount>0},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_createLoadQueue:function(){return p.default.create()},_changeLoadingCount:function(e){var t=this.isLoading();this._loadingCount+=e;var n=this.isLoading();t^n&&this._eventsStrategy.fireEvent("loadingChanged",[n])},_scheduleLoadCallbacks:function(e){var t=this;this.beginLoading(),e.always(function(){t.endLoading()})},_scheduleFailCallbacks:function(e){var t=this;e.fail(function(){for(var e=arguments.length,n=new Array(e),i=0;i .dx-list-group > .dx-list-group-body > .dx-list-item":"> .dx-list-item";this._sortable=e._createComponent(e._scrollView.content(),u.default,(0,o.extend)({component:e,contentTemplate:null,allowReordering:!1,filter:t,container:e.$element(),dragDirection:e.option("itemDragging.group")?"both":"vertical",handle:".".concat(d),dragTemplate:this._dragTemplate,onDragStart:this._dragStartHandler.bind(this),onDragChange:this._dragChangeHandler.bind(this),onReorder:this._reorderHandler.bind(this)},e.option("itemDragging")))},_dragTemplate:function(e){return(0,i.default)(e.itemElement).clone().width((0,i.default)(e.itemElement).width()).addClass("dx-list-item-ghost-reordering").addClass("dx-state-hover")},_dragStartHandler:function(e){this._lockedDrag&&(e.cancel=!0)},_dragChangeHandler:function(e){!this._groupedEnabled||this._sameParent(e.fromIndex,e.toIndex)||(e.cancel=!0)},_sameParent:function(e,t){var n=this._list.getItemElementByFlatIndex(e);return this._list.getItemElementByFlatIndex(t).parent().get(0)===n.parent().get(0)},_reorderHandler:function(e){var t=this._list.getItemElementByFlatIndex(e.toIndex);this._list.reorderItem((0,i.default)(e.itemElement),t)},afterBag:function(e){var t=this,n=(0,i.default)("
").addClass(d);r.default.on(n,"dxpointerdown",function(e){t._lockedDrag=!(0,a.isMouseEvent)(e)}),r.default.on(n,"dxhold",{timeout:30},function(e){e.cancel=!0,t._lockedDrag=!1}),e.$container.addClass("dx-list-reorder-handle-container").append(n)}}))},"+4pY":function(e,t,n){"use strict";n.d(t,"a",function(){return p});var i=n("rePB"),r=n("uFwe"),o=n("KQm4"),a=n("aiEM"),s=function(e,t,n){e.style.setProperty(t,n)},c=function(e,t){e.style.removeProperty(t)},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(function(e){var t=e.offset,n=[];for(var i in e)e.hasOwnProperty(i)&&"offset"!==i&&n.push("".concat(i,": ").concat(e[i],";"));return"".concat(100*t,"% { ").concat(n.join(" ")," }")}).join(" ")},l=[],d=function(e){var t=l.indexOf(e);return t<0&&(t=l.push(e)-1),"ion-animation-".concat(t)},h=function(e,t,n){var i=function(e){var t=e.getRootNode();return t.head||t}(n),r=i.querySelector("#"+e);if(r)return r;var o=(n.ownerDocument||document).createElement("style");return o.id=e,o.textContent="@keyframes ".concat(e," { ").concat(t," } @keyframes ").concat(e,"-alt { ").concat(t," }"),i.appendChild(o),o},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(void 0!==t){var n=Array.isArray(t)?t:[t];return[].concat(Object(o.a)(e),Object(o.a)(n))}return e},p=function(){var e,t,n,l,p,g,m,v,_,y,b,w,C,O=[],S=[],k=[],x=!1,T={},E=[],I=[],D={},M=0,A=!1,P=!1,L=!0,R=!1,j=!0,N=[],F=[],B=[],V=[],$=[],H=[],U=[],z=[],W=[],Y=[],G="function"==typeof AnimationEffect||"function"==typeof window.AnimationEffect,q="function"==typeof Element&&"function"==typeof Element.prototype.animate&&G,K=function(e,t){return(t&&t.oneTimeCallback?F:N).push({c:e,o:t}),C},X=function(){if(q)Y.forEach(function(e){e.cancel()}),Y.length=0;else{var e=B.slice();Object(a.k)(function(){e.forEach(function(e){c(e,"animation-name"),c(e,"animation-duration"),c(e,"animation-timing-function"),c(e,"animation-iteration-count"),c(e,"animation-delay"),c(e,"animation-play-state"),c(e,"animation-fill-mode"),c(e,"animation-direction")})})}},J=function(){$.forEach(function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}),$.length=0},Q=function(){return void 0!==p?p:m?m.getFill():"both"},Z=function(){return void 0!==_?_:void 0!==g?g:m?m.getDirection():"normal"},ee=function(){return A?"linear":void 0!==n?n:m?m.getEasing():"linear"},te=function(){return P?0:void 0!==y?y:void 0!==t?t:m?m.getDuration():0},ne=function(){return void 0!==l?l:m?m.getIterations():1},ie=function(){return void 0!==b?b:void 0!==e?e:m?m.getDelay():0},re=function(){var e,t,n;H.forEach(function(e){e()}),U.forEach(function(e){e()}),e=S,t=k,n=T,B.forEach(function(i){var r=i.classList;for(var o in e.forEach(function(e){return r.add(e)}),t.forEach(function(e){return r.remove(e)}),n)n.hasOwnProperty(o)&&s(i,o,n[o])})},oe=function(){0!==M&&0==--M&&(function(){var e,t,n;ge(),z.forEach(function(e){e()}),W.forEach(function(e){e()}),e=E,t=I,n=D,B.forEach(function(i){var r=i.classList;for(var o in e.forEach(function(e){return r.add(e)}),t.forEach(function(e){return r.remove(e)}),n)n.hasOwnProperty(o)&&s(i,o,n[o])});var i=L?1:0;N.forEach(function(e){return e.c(i,C)}),F.forEach(function(e){return e.c(i,C)}),F.length=0,j=!0,R=!0}(),m&&m.animationFinish())},ae=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];J(),B.forEach(function(t){if(O.length>0){var n=u(O);w=d(n);var i=h(w,n,t);$.push(i),s(t,"animation-duration","".concat(te(),"ms")),s(t,"animation-timing-function",ee()),s(t,"animation-delay","".concat(ie(),"ms")),s(t,"animation-fill-mode",Q()),s(t,"animation-direction",Z());var r=ne()===1/0?"infinite":ne().toString();s(t,"animation-iteration-count",r),s(t,"animation-play-state","paused"),e&&s(t,"animation-name","".concat(i.id,"-alt")),Object(a.k)(function(){s(t,"animation-name",i.id||null)})}})},se=function(){B.forEach(function(e){var t=e.animate(O,{delay:ie(),duration:te(),easing:ee(),iterations:ne(),fill:Q(),direction:Z()});t.pause(),Y.push(t)}),Y.length>0&&(Y[0].onfinish=function(){oe()})},ce=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];re(),O.length>0&&(q?se():ae(e)),x=!0},ue=function(e){if(e=Math.min(Math.max(e,0),.999),q)Y.forEach(function(t){t.currentTime=t.effect.getComputedTiming().delay+te()*e,t.pause()});else{var t=ie()||0,n="-".concat(t+te()*e,"ms");B.forEach(function(e){O.length>0&&(s(e,"animation-delay",n),s(e,"animation-play-state","paused"))})}},le=function(){Y.forEach(function(e){e.effect.updateTiming({delay:ie(),duration:te(),easing:ee(),iterations:ne(),fill:Q(),direction:Z()})})},de=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];B.forEach(function(t){Object(a.k)(function(){s(t,"animation-name",w||null),s(t,"animation-duration","".concat(te(),"ms")),s(t,"animation-timing-function",ee()),s(t,"animation-delay","".concat(ie(),"ms")),s(t,"animation-fill-mode",Q()||null),s(t,"animation-direction",Z()||null);var n=ne()===1/0?"infinite":ne().toString();s(t,"animation-iteration-count",n),e&&s(t,"animation-name","".concat(w,"-alt")),Object(a.k)(function(){s(t,"animation-name",w||null)})})})},he=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&V.forEach(function(t){t.update(e)}),q?le():de(t),C},fe=function(){x&&(q?Y.forEach(function(e){e.pause()}):B.forEach(function(e){s(e,"animation-play-state","paused")}))},pe=function(){v=void 0,oe()},ge=function(){v&&clearTimeout(v)},me=function(e){return new Promise(function(t){e&&e.sync&&(P=!0,K(function(){return P=!1},{oneTimeCallback:!0})),x||ce(),R&&(q?ue(0):de(),R=!1),j&&(M=V.length+1,j=!1),K(function(){return t()},{oneTimeCallback:!0}),V.forEach(function(e){e.play()}),q?(Y.forEach(function(e){e.play()}),0!==O.length&&0!==B.length||oe()):function(){if(ge(),B.forEach(function(e){O.length>0&&Object(a.k)(function(){s(e,"animation-play-state","running")})}),0===O.length||0===B.length)oe();else{var e=ie()||0,t=te()||0,n=ne()||1;v=setTimeout(pe,e+t*n+100),r=function(){ge(),Object(a.k)(function(){B.forEach(function(e){c(e,"animation-duration"),c(e,"animation-delay"),c(e,"animation-play-state")}),Object(a.k)(oe)})},u={passive:!0},l=function(){o&&o()},d=function(e){i===e.target&&(l(),r())},(i=B[0])&&(i.addEventListener("webkitAnimationEnd",d,u),i.addEventListener("animationend",d,u),o=function(){i.removeEventListener("webkitAnimationEnd",d,u),i.removeEventListener("animationend",d,u)})}var i,r,o,u,l,d}()})},ve=function(e,t){var n=O[0];return void 0!==n&&0===n.offset?n[e]=t:O=[Object(i.a)({offset:0},e,t)].concat(Object(o.a)(O)),C};return C={parentAnimation:m,elements:B,childAnimations:V,animationFinish:oe,from:ve,to:function(e,t){var n=O[O.length-1];return void 0!==n&&1===n.offset?n[e]=t:O=[].concat(Object(o.a)(O),[Object(i.a)({offset:1},e,t)]),C},fromTo:function(e,t,n){return ve(e,t).to(e,n)},parent:function(e){return m=e,C},play:me,playAsync:function(){return me()},playSync:function(){return me({sync:!0}),C},pause:function(){return V.forEach(function(e){e.pause()}),fe(),C},stop:function(){V.forEach(function(e){e.stop()}),x&&(X(),x=!1)},destroy:function(){return V.forEach(function(e){e.destroy()}),X(),J(),B.length=0,V.length=0,O.length=0,N.length=0,F.length=0,x=!1,j=!0,C},keyframes:function(e){return O=e,C},addAnimation:function(e){if(null!=e)if(Array.isArray(e)){var t,n=Object(r.a)(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.parent(C),V.push(i)}}catch(o){n.e(o)}finally{n.f()}}else e.parent(C),V.push(e);return C},addElement:function(e){if(null!=e)if(1===e.nodeType)B.push(e);else if(e.length>=0)for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:[],n=Object(r.a)(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;D[i]=""}}catch(o){n.e(o)}finally{n.f()}return C},afterStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return D=e,C},afterRemoveClass:function(e){return I=f(I,e),C},afterAddClass:function(e){return E=f(E,e),C},beforeAddRead:function(e){return H.push(e),C},beforeAddWrite:function(e){return U.push(e),C},beforeClearStyles:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=Object(r.a)(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;T[i]=""}}catch(o){n.e(o)}finally{n.f()}return C},beforeStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return T=e,C},beforeRemoveClass:function(e){return k=f(k,e),C},beforeAddClass:function(e){return S=f(S,e),C},onFinish:K,progressStart:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return V.forEach(function(t){t.progressStart(e)}),fe(),A=e,x?(he(),ue(0)):ce(),C},progressStep:function(e){return V.forEach(function(t){t.progressStep(e)}),ue(e),C},progressEnd:function(e,t,n){return A=!1,V.forEach(function(i){i.progressEnd(e,t,n)}),void 0!==n&&(y=n),R=!1,(L=1===e)?q||(b=t*te()*-1,he(!1,!1)):(_="reverse"===Z()?"normal":"reverse",q?(he(),ue(1-t)):(b=(1-t)*te()*-1,he(!1,!1))),K(function(){L=!0,y=void 0,_=void 0,b=void 0},{oneTimeCallback:!0}),m||me(),C}}}},"+5iT":function(e,t,n){"use strict";n.d(t,"a",function(){return L});var i,r=n("c7TG"),o=n("ptfe"),a=n("4B79"),s=n("aiMf"),c=n("mjQz"),u=n("Xzt5"),l=n("JvtB"),d=n("LvDl"),h=n("fXoL"),f=(i=function(e,t){return(i=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(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},g=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0||t.unscanned>0)}),this.selectedFromBag&&("tBag"===this.selectedFromBag.bagType||this.selectedFromBag.specialHandling)&&(this.bagList=this.bagList.filter(function(e){return e.type._id===t.selectedFromBag.type._id})),console.log(this.bagList)},t.prototype.dismiss=function(){this.modalController.dismiss()},t.prototype.handleScan=function(e){return p(this,void 0,void 0,function(){var t,n,i;return g(this,function(r){switch(r.label){case 0:return e?(this.errorMsg=null,e.substring(0,2)!==c.a.CB&&e.substring(0,2)!==c.a.TB?[3,9]:this.selectedFromBag?e.substring(0,2)===c.a.TB?(this.handleError("Cannot drop to TBag"),this.barcode=null,[2]):this.selectedFromBag.barcode===e?(this.handleError("Bag "+e+" is selected bag"),this.barcode=null,[2]):(this.selectedToBag=this.findBag(e,!1),this.selectedToBag?[3,4]:[4,this.tasksService.getBagByBarcode(e)]):[3,5]):[2];case 1:return(t=r.sent())?(this.handleError(t.status===c.e.closed?"Bag "+e+" is closed":t.type._id!==this.selectedFromBag.type._id?"Scanned cbag temperature and type does not match Tbag temperature and type":"Bag "+e+" already exist"),this.barcode=null,[2]):[3,2];case 2:return[4,this.createBag(e)];case 3:n=r.sent(),this.allBags.push(n),this.bagList.push(n),this.selectedToBag=this.findBag(e,!0),r.label=4;case 4:return this.loadBagList(!1),this.setDefaultValuesForTransfer(),this.barcode=null,[3,8];case 5:return this.selectedFromBag=this.findBag(e,!0),this.selectedFromBag?(this.loadBagList(!0),i=this,[4,this.tasksService.getSpecimens(e)]):[3,7];case 6:i.availableSpecimenList=r.sent(),r.label=7;case 7:this.barcode=null,r.label=8;case 8:return[3,10];case 9:this.handleError("Invalid barcode: "+e),this.barcode=null,r.label=10;case 10:return[2]}})})},t.prototype.setDefaultValuesForTransfer=function(){this.selectedSpecimens=this.availableSpecimenList,this.selectedFromBag.unscanned&&(this.transferUnscanned=!0)},t.prototype.findBag=function(e,t){var n=this.bagList.map(function(e){return e.barcode}).indexOf(e.toUpperCase());if(n>=0){var i=this.allBags.map(function(e){return e.barcode}).indexOf(e.toUpperCase());return this.allBags.splice(i,1),this.bagList.splice(n,1)[0]}if(t){var r=this.allBags.find(function(t){return t.barcode===e});r?(r.itemsCount||r.unscanned||this.handleError("Bag "+e+" is empty"),r.status===c.e.closed&&this.handleError("Bag "+e+" is closed")):this.handleError("Bag "+e+" does not exist")}return null},t.prototype.handleError=function(e){this.errorMsg=e},t.prototype.createBag=function(e){return p(this,void 0,void 0,function(){var t;return g(this,function(n){switch(n.label){case 0:return(t=new a.a).barcode=e,t.bagType=e.substring(0,2)===c.a.CB?"cBag":"tBag",t.temperature=this.selectedFromBag.temperature,t.type=this.selectedFromBag.type,t.specialHandling=this.selectedFromBag.specialHandling,t.routeId=this.taskManagerService.task._id,t.stops={},[4,this.tasksService.addCbagToRoute(t.barcode,t)];case 1:return n.sent(),[2,t]}})})},t.prototype.dropdownChange=function(e){this.handleScan(e.value.barcode)},t.prototype.transfer=function(){return p(this,void 0,void 0,function(){var e,t,n,i=this;return g(this,function(r){switch(r.label){case 0:return console.log("transferUnscanned",this.transferUnscanned),e=this.selectedSpecimens.map(function(e){return e.id}),t=this.selectedFromBag.barcode,n=this.selectedToBag.barcode,[4,this.alertController.create({message:"Transfer confirmation",buttons:[{text:"Cancel",role:"cancel"},{text:"Confirm ",handler:function(){return p(i,void 0,void 0,function(){return g(this,function(i){switch(i.label){case 0:return this.loader=!0,[4,this.tasksService.moveSpecimens(t,n,e,this.transferUnscanned?this.selectedFromBag.unscanned:null)];case 1:return i.sent(),this.loader=!1,this.showToast("Transfer completed from "+t+" to Cbag-"+n),this.selectedFromBag=null,this.selectedToBag=null,this.selectedSpecimens=[],this.modalController.dismiss(),[2]}})})}}]})];case 1:return[4,r.sent().present()];case 2:return r.sent(),[2]}})})},t.prototype.showToast=function(e){return p(this,void 0,void 0,function(){return g(this,function(t){switch(t.label){case 0:return[4,this.toastCtrl.create({message:e,duration:3e3})];case 1:return t.sent().present(),[2]}})})},t.prototype.removeBag=function(e){"fromBag"===e?(this.allBags.push(this.selectedFromBag),this.selectedFromBag=null,this.loadBagList(!1),this.selectedSpecimens=[],this.placeholder="Scan TBag/CBag Barcode to transfer specimens"):(this.allBags.push(this.selectedToBag),this.selectedToBag=null,this.loadBagList(!0),this.selectedSpecimens=[],this.placeholder="Scan CBag Barcode to receive specimens"),this.fromSlidingList&&this.fromSlidingList.closeSlidingItems(),this.toSlidingList&&this.toSlidingList.closeSlidingItems(),this.bagSelectValue=null},t.prototype.toggleItems=function(){this.portComponent.toggleItems(this.portComponent.itemsToConfirm.length!==this.availableSpecimenList.length)},t.prototype.confirm=function(){this.portComponent.confirm(),this.portComponent.close(),this.selectedSpecimens=d.uniqBy(this.selectedSpecimens,"barcode")},t.\u0275fac=function(e){return new(e||t)(h.ac(r.Gb),h.ac(r.Rb),h.ac(o.a),h.ac(r.a),h.ac(s.a),h.ac(l.a))},t.\u0275cmp=h.Ub({type:t,selectors:[["app-transfer-tbag-to-cbag"]],viewQuery:function(e,t){var n;1&e&&(h.Xc(m,!0),h.Xc(v,!0),h.Xc(_,!0)),2&e&&(h.Ec(n=h.oc())&&(t.portComponent=n.first),h.Ec(n=h.oc())&&(t.fromSlidingList=n.first),h.Ec(n=h.oc())&&(t.toSlidingList=n.first))},features:[h.Lb],decls:25,vars:9,consts:[["title","Transfer Specimen(s) to Cbag","hideCloseButton","true",3,"onDismiss"],[4,"ngIf"],["id","error",4,"ngIf"],["slidingList",""],["fromSlidingList",""],[3,"disabled",4,"ngIf"],["toSlidingList",""],["class","message",4,"ngIf"],["text-center",""],[1,"btnDanger",3,"click"],[3,"disabled","click"],["size","1",1,"ion-col-container"],["name","barcode",1,"icon-medium"],["size","11"],["uppercase","",1,"search-input",3,"placeholder","ngModel","ngModelChange","ionChange"],["id","error"],["itemValueField","barcode","itemTextField","barcode","placeholder","Select Bags",3,"ngModel","isMultiple","items","canSearch","canClear","headerColor","shouldFocusSearchbar","searchFailText","ngModelChange","onChange"],["ionicSelectableHeaderTemplate",""],["ionicSelectableItemTemplate",""],["color","primary"],["slot","start"],[3,"click"],["name","arrow-back"],[3,"bag","selectable"],[3,"disabled"],[3,"bag","selectedFromBag"],["side","end"],[1,"delete",3,"click"],["name","trash"],[3,"bag","selectedToBag"],["itemTextField","''","placeholder","Select Specimen",3,"isMultiple","items","ngModel","canSearch","canClear","headerColor","shouldFocusSearchbar","searchFailText","ngModelChange"],["portComponent",""],["ionicSelectableFooterTemplate",""],[3,"size",4,"ngIf"],[3,"size"],["expand","full",3,"click"],["color","dark","slot","end",3,"ngModel","ngModelChange"],[1,"w-100",3,"specimen"],[1,"message"]],template:function(e,t){1&e&&(h.gc(0,"base-modal",0),h.nc("onDismiss",function(){return t.dismiss()}),h.gc(1,"base-modal-content"),h.bc(2,"route-card"),h.gc(3,"ion-content"),h.gc(4,"ion-grid"),h.Pc(5,y,5,2,"ion-row",1),h.Pc(6,b,2,1,"div",2),h.gc(7,"ion-list",null,3),h.Pc(9,O,6,8,"ion-item",1),h.fc(),h.gc(10,"ion-list",null,4),h.Pc(12,S,6,3,"ion-item-sliding",5),h.fc(),h.gc(13,"ion-list",null,6),h.Pc(15,k,6,2,"ion-item-sliding",1),h.Pc(16,M,8,9,"ion-item",1),h.fc(),h.fc(),h.Pc(17,A,2,0,"ion-label",7),h.fc(),h.gc(18,"ion-footer",8),h.gc(19,"ion-toolbar"),h.gc(20,"ion-button",9),h.nc("click",function(){return t.dismiss()}),h.Rc(21," Cancel "),h.fc(),h.gc(22,"ion-button",10),h.nc("click",function(){return t.transfer()}),h.Rc(23," Transfer "),h.fc(),h.fc(),h.fc(),h.fc(),h.fc(),h.Pc(24,P,1,0,"cmx-loader",1)),2&e&&(h.Ob(5),h.wc("ngIf",t.bagList.length&&(!t.selectedFromBag||!t.selectedToBag)||t.selectedFromBag&&!t.selectedToBag),h.Ob(1),h.wc("ngIf",t.errorMsg),h.Ob(3),h.wc("ngIf",t.showSelectableList&&(t.bagList.length&&(!t.selectedFromBag||!t.selectedToBag)||t.selectedFromBag&&!t.selectedToBag)),h.Ob(3),h.wc("ngIf",t.selectedFromBag),h.Ob(3),h.wc("ngIf",t.selectedToBag),h.Ob(1),h.wc("ngIf",t.selectedFromBag&&t.selectedToBag&&t.availableSpecimenList),h.Ob(1),h.wc("ngIf",!(t.bagList.length||t.selectedFromBag&&t.selectedToBag)),h.Ob(5),h.wc("disabled",!(t.selectedFromBag&&t.selectedToBag&&(t.selectedSpecimens&&t.selectedSpecimens.length||t.transferUnscanned))),h.Ob(2),h.wc("ngIf",t.loader))},styles:[".icon-big[_ngcontent-%COMP%]{width:35px;height:35px}.icon-medium[_ngcontent-%COMP%]{font-size:20px}.title[_ngcontent-%COMP%]{padding:2px;background:#d3d3d3;border-radius:4px}.delete[_ngcontent-%COMP%]{background-color:red;color:#fff;font-size:1.1em}.ion-col-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.search-input[_ngcontent-%COMP%]{width:100%;padding:5px;border:1px solid #eee;border-radius:5px}.no-padding[_ngcontent-%COMP%]{padding:0}.full-width[_ngcontent-%COMP%]{width:100%}#error[_ngcontent-%COMP%]{color:red;padding-left:36px;padding-top:5px;font-size:12px}"]}),t}(u.a)},"+6qP":function(e,t,n){"use strict";var i=g(n("LdFP")),r=g(n("tUd6")),o=g(n("RwLY")),a=g(n("FKN7")),s=n("tJvG"),c=n("8VXM"),u=n("zl3R"),l=g(n("xMpX")),d=n("CWM8"),h=n("cGv3"),f=n("zASt"),p=g(n("D8Ap"));function g(e){return e&&e.__esModule?e:{default:e}}var m,v,_,y,b,w,C=(0,h.getWindow)(),O=l.default.add,S=d.value,k=d.changeCallback,x="link[rel=dx-theme]",T="any",E=15e3,I="dx.",D=!1;function M(){if(!(0,h.hasWindow)())return null;var e,t=(0,a.default)("
",m).addClass("dx-theme-marker").appendTo(m.documentElement);try{return(e=t.css("fontFamily"))?(e=e.replace(/["']/g,"")).substr(0,I.length)!==I?null:e.substr(I.length):null}finally{t.remove()}}function A(e){var t,n,i=!0;function r(){b=null,clearInterval(n),i=!0,f.themeReadyCallback.fire(),f.themeReadyCallback.empty(),D||(f.themeInitializedCallback.fire(),f.themeInitializedCallback.empty())}if(b=e,P()||!E)r();else{if(!i)return void(b&&(b=e));t=Date.now(),i=!1,n=setInterval(function(){var e=P(),n=!e&&Date.now()-t>E;n&&p.default.log("W0004",b),(e||n)&&r()},10)}}function P(){if(!b)return!0;var e=b===T;if(D&&e)return!0;var t=M();return!(!t||!e)||t===b}function L(e){var t=e?e.split("."):[],n=null;if(_){if(e in _)return e;(0,u.each)(_,function(e,i){var r=e.split(".");if(!(t[0]&&r[0]!==t[0]||t[1]&&t[1]!==r[1]||t[2]&&t[2]!==r[2]))return n&&!i.isActive||(n=e),!i.isActive&&void 0})}return n}function R(e){var t;(function(e){try{e!==m&&(_=null)}catch(t){_=null}m=e})((e=e||{}).context||r.default.getDocument()),m&&((t=(0,a.default)(x,m)).length&&(_={},v=(0,a.default)((0,c.parseHTML)(""),m),t.each(function(){var e=(0,a.default)(this,m),t=e.attr("data-theme"),n=e.attr("href"),i="true"===e.attr("data-active");_[t]={url:n,isActive:i}}),t.last().after(v),t.remove()),y=void 0,j(e))}function j(e){if(!arguments.length)return y=y||M();F(S()),"string"==typeof(e=e||{})&&(e={theme:e});var t,n=e._autoInit,i=e.loadCallback;if((y=L(e.theme||y))&&(t=_[y]),i&&f.themeReadyCallback.add(i),t)v.attr("href",_[y].url),(f.themeReadyCallback.has()||e._forceTimeout)&&A(y);else{if(!n)throw p.default.Error("E0021",y);A(T),f.themeReadyCallback.fire(),f.themeReadyCallback.empty()}H(),N((0,d.originalViewPort)(),y)}function N(e,t){w=function(e){var t=[],n=(e=e||j())&&e.split(".");return n&&(t.push("dx-theme-"+n[0],"dx-theme-"+n[0]+"-typography"),n.length>1&&t.push("dx-color-scheme-"+n[1]+(V(e)?"-"+n[2]:""))),t}(t).join(" "),(0,a.default)(e).addClass(w),function(){var t=(0,h.hasWindow)()&&C.devicePixelRatio;if(t&&!(t<2)){var n=(0,a.default)("
");n.css("border",".5px solid transparent"),(0,a.default)("body").append(n),1===n.outerHeight()&&((0,a.default)(e).addClass("dx-hairlines"),w+=" dx-hairlines"),n.remove()}}()}function F(e){(0,a.default)(e).removeClass(w)}function B(e,t){return t||(t=y||M()),new RegExp(e).test(t)}function V(e){return B("material",e)}function $(e){return B("ios7",e)}function H(){$()&&p.default.log("W0010","The 'ios7' theme","19.1","Use the 'generic' theme instead.")}function U(e,t){var n=r.default.getDocument(),i=n.createElement("span");i.style.position="absolute",i.style.top="-9999px",i.style.left="-9999px",i.style.visibility="hidden",i.style.fontFamily="Arial",i.style.fontSize="250px",i.style.fontWeight=t,i.innerHTML=e,n.body.appendChild(i);var o=i.offsetWidth;i.style.fontFamily="Roboto, RobotoFallback, Arial";var a=i.offsetWidth;return i.parentNode.removeChild(i),o!==a}f.themeInitializedCallback.add(function(){return D=!0});var z=new s.Deferred;function W(){if(R({_autoInit:!0,_forceTimeout:!0}),(0,a.default)(x,m).length)throw p.default.Error("E0022");z.resolve()}(0,h.hasWindow)()?W():O(W),k.add(function(e,t){z.done(function(){F(t),N(e)})}),i.default.changed.add(function(){R({_autoInit:!0})}),t.init=R,t.waitForThemeLoad=A,t.current=j,t.attachCssClasses=N,t.detachCssClasses=F,t.isMaterial=V,t.isIos7=$,t.isGeneric=function(e){return B("generic",e)},t.isDark=function(e){return B("dark",e)},t.checkThemeDeprecation=H,t.isWebFontLoaded=U,t.waitWebFont=function(e,t){return new o.default(function(n){var i=function(){clearInterval(r),clearTimeout(o),n()},r=setInterval(function(){U(e,t)&&i()},15),o=setTimeout(i,2e3)})},t.ready=function(e){f.themeReadyCallback.add(e)},t.resetTheme=function(){v&&v.attr("href","about:blank"),y=null,b=null,D=!1,f.themeInitializedCallback.add(function(){return D=!0})},t.setDefaultTimeout=function(e){E=e},t.initialized=function(e){D?e():f.themeInitializedCallback.add(e)},e.exports.default=e.exports},"+Jrw":function(e,t,n){"use strict";n.d(t,"a",function(){return T});var i,r=n("fXoL"),o=n("iqUP"),a=n("Cfvw"),s=n("05l1"),c=n("x+ZX"),u=n("lJxs"),l=n("Zhhz"),d=n("9ans"),h=n("y3WU"),f=n("EcEN"),p=n("3Lvj"),g=n("S/Aq"),m=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},v=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]-1&&(e._shipments[n]=t.data),"removed"===t.type&&(n=e._shipments.findIndex(function(e){return e.barcode===t.data.barcode}))>-1&&e._shipments.splice(n,1)}),e.setCacheMonitoringInfo(n.length,0),console.log("cacheCollection shipments",n.length))})},t.prototype.cacheRSRDropShipmentsCollection=function(){var e=this;if(this.unsubscribeRSRDropShipments&&(this.unsubscribeRSRDropShipments(),this._shipments=[]),this.userTasksHubStops&&this.userTasksHubStops.length){var t=y.uniq(this.userTasksHubStops.map(function(e){return e.properties.addressId.code}));this.unsubscribeRSRDropShipments=this.firestore.collection("shipments").ref.where("originLab.code","in",t).where("status","==",l.e.InProcess).onSnapshot(function(t){var n=[];t.docChanges().forEach(function(e){"added"!==e.type&&"modified"!==e.type&&"removed"!==e.type||n.push({type:e.type,data:e.doc.data()})}),e._shipments||(e._shipments=[]),n.length&&(n.forEach(function(t){var n;"added"===t.type&&e._shipments.push(t.data),"modified"===t.type&&(n=e._shipments.findIndex(function(e){return e.barcode===t.data.barcode}))>-1&&(e._shipments[n]=t.data),"removed"===t.type&&(n=e._shipments.findIndex(function(e){return e.barcode===t.data.barcode}))>-1&&e._shipments.splice(n,1)}),e.setCacheMonitoringInfo(n.length,0),console.log("cacheCollection RSR drop shipments",n.length,e._shipments.length))})}},t.prototype.cacheItemsSubCollection=function(){var e=this,t=this.authService.currentUser.homebase?[this.authService.currentUser.homebase,"exception"]:x(this.authService.currentUser.businessUnits,["exception"]);this.firestore.collectionGroup("items",function(n){var i=n.where("visibleInArea","array-contains-any",t);return i=i.where("tsoCacheable","==",!0),!e.authService.currentUser.accessRoles.permissions.includes(d.b.RSR_Shipments)||e.authService.currentUser.accessRoles.permissions.includes(d.b.TSO)||e.authService.currentUser.accessRoles.permissions.includes(d.b.TSO_Administrator)||e.authService.currentUser.accessRoles.permissions.includes(d.b.TSO_BU_Administrators)||(i=i.where("createdBy._id","==",e.authService.currentUser._id)),i}).stateChanges().forEach(function(t){return S(e,void 0,void 0,function(){var e,n=this;return k(this,function(i){return e=[],this._items||(this._items=[]),t.forEach(function(t){"added"!==t.type&&"modified"!==t.type&&"removed"!==t.type||e.push({type:t.type,data:t.payload.doc.data()})}),e.length&&(e.forEach(function(e){var t;"added"===e.type&&n._items.push(e.data),"modified"===e.type&&(t=n._items.findIndex(function(t){return t.barcode===e.data.barcode&&t.shipmentBarcode===e.data.shipmentBarcode}))>-1&&(n._items[t]=e.data),"removed"===e.type&&(t=n._items.findIndex(function(t){return t.barcode===e.data.barcode&&t.shipmentBarcode===e.data.shipmentBarcode}))>-1&&n._items.splice(t,1)}),this.setCacheMonitoringInfo(0,e.length),console.log("cacheCollection items",e.length)),[2]})})})},t.prototype.getRootDocument=function(e,t){return S(this,void 0,void 0,function(){var n,i,r,o;return k(this,function(a){switch(a.label){case 0:if((n=e.split("/")).length%2!=0)throw new Error("Invalid document path: "+e);return i=n.pop(),r=n.pop(),o=null,"shipments"===r&&(o=this._shipments),"items"===r&&(o=this._items),"tso/questAirSchedule/schedules"!==r?[3,2]:[4,this._questAirSchedules];case 1:o=a.sent(),a.label=2;case 2:return"tso/labs/data2"!==r?[3,4]:[4,this._labs];case 3:o=a.sent(),a.label=4;case 4:return"tso/shippingMethods/data"!==r?[3,6]:[4,this._shippingMethods];case 5:o=a.sent(),a.label=6;case 6:return"tso/sizes/data"!==r?[3,8]:[4,this._shippingSizes];case 7:o=a.sent(),a.label=8;case 8:return"tso/airports/quest"!==r?[3,10]:[4,this._questAirports];case 9:o=a.sent(),a.label=10;case 10:return"tso/airports/commercial"!==r?[3,12]:[4,this._commercialAirports];case 11:o=a.sent(),a.label=12;case 12:return"tso/airlines/data"!==r?[3,14]:[4,this._offlineCarriers];case 13:o=a.sent(),a.label=14;case 14:return[2,o.find(function(e){return e[t]===i})]}})})},t.prototype.prepareRootDocumentToModify=function(e){var t=e.split("/");if(t.length%2!=0)throw new Error("Invalid collection path");var n=t.pop();return this.firestore.collection(t.join("/")).doc(n)},t.prototype.updateRootDocument=function(e,t,n){return void 0===n&&(n=!0),S(this,void 0,void 0,function(){return k(this,function(i){switch(i.label){case 0:return[4,this.updateDocument(e,t,this.prepareRootDocumentToModify.bind(this),n)];case 1:return[2,i.sent()]}})})},t.prototype.createRootDocument=function(e,t,n){return void 0===n&&(n=!0),S(this,void 0,void 0,function(){return k(this,function(i){switch(i.label){case 0:return[4,this.addDocument(e,t,this.prepareRootDocumentToModify.bind(this),n)];case 1:return[2,i.sent()]}})})},t.prototype.addOrUpdateRootDocument=function(e,t,n){return void 0===n&&(n=!0),S(this,void 0,void 0,function(){return k(this,function(i){switch(i.label){case 0:return[4,this.addOrUpdateDocument({collectionPath:e,fieldToCompare:"barcode"},t,this.getRootDocument.bind(this),this.prepareRootDocumentToModify.bind(this),n)];case 1:return[2,i.sent()]}})})},t.prototype.createRSRShipment=function(e,t,n){return S(this,void 0,void 0,function(){return k(this,function(i){switch(i.label){case 0:return e.route={routeId:t,userId:this.userId()},[4,this.createShipment(e,t,n,!0)];case 1:return[2,i.sent()]}})})},t.prototype.createTSOShipment=function(e,t,n){return void 0===n&&(n=!1),S(this,void 0,void 0,function(){return k(this,function(i){switch(i.label){case 0:return[4,this.createShipment(e,e.originLab.bussinesUnitId,t,n)];case 1:return[2,i.sent()]}})})},t.prototype.createTSOConsolidationShipment=function(e,t){return S(this,void 0,void 0,function(){return k(this,function(n){switch(n.label){case 0:return[4,this.createShipment(e,e.originLab.bussinesUnitId,t)];case 1:return[2,n.sent()]}})})},t.prototype.createRSRConsolidationShipment=function(e,t,n){return S(this,void 0,void 0,function(){return k(this,function(i){switch(i.label){case 0:return e.route={routeId:t,userId:this.userId()},[4,this.createShipment(e,t,n,!0)];case 1:return[2,i.sent()]}})})},t.prototype.createRSRUnknownShipment=function(e,t,n){return S(this,void 0,void 0,function(){return k(this,function(i){switch(i.label){case 0:return[4,this.createUnknownShipment(e,n,t,!1)];case 1:return[2,i.sent()]}})})},t.prototype.createTSOUnknownShipment=function(e,t,n){return S(this,void 0,void 0,function(){var i;return k(this,function(r){switch(r.label){case 0:return i=this.getUserBusinessUnit(),[4,this.createUnknownShipment(e,i,t,n)];case 1:return[2,r.sent()]}})})},t.prototype.createUnknownShipment=function(e,t,n,i){return S(this,void 0,void 0,function(){var r,a,s,c,u,d,h;return k(this,function(f){switch(f.label){case 0:return[4,this.getShipmentByBarcode(e,null,null)];case 1:if(r=f.sent())throw new Error("Shipment: "+r.barcode+" already exists");return a=this.getUserInfo(),[4,this.getShippingSizes()];case 2:return s=f.sent()[0],c=this.getUserBusinessUnit(),u=this.createUnknownLab(c),(d=new l.c).barcode=e.toUpperCase(),d.originLab=u,d.destinationLab=u,d.createdAt=(new Date).getTime(),d.createdAtDisplay=(new Date).toISOString(),d.status=l.e.Created,d.createdBy=a,d.deleted=null,d.comment.date=(new Date).toISOString(),d.comment.externalId=a.externalId,d.comment.userId=a._id,d.comment.userName=a.firstName+" "+a.lastName,d.size=s,d.temperature=this.temperatures[0].value,d.buildLocation=n,d.currentArea=t,d.currentLocation=d.buildLocation,d.isException=!0,d.visibleInArea=["exception"],this.createTransaction(d.barcode,l.f.ShipmentCreated,d.status,null,null,null,null,null,null,null,null,d.currentLocation,null,null,d.originLab,d.destinationLab,d),delete(h=this.deepCopy(d)).originLab.locations,delete h.destinationLab.locations,h.items=[],h.totalPieces=h.totalPieces||0,h.totalWeight=h.totalWeight||0,h.itemsCount=h.itemsCount||0,h.syncRequired=i,(h=this.deepCopy(h)).timestamp=o.firestore.FieldValue.serverTimestamp(),h.localTimestamp=(new Date).toISOString(),[4,this.addOrUpdateRootDocument("shipments/"+h.barcode,h,!1)];case 3:return f.sent(),i?[4,this.waitForSync(d.barcode)]:[3,5];case 4:f.sent(),f.label=5;case 5:return[2,d]}})})},t.prototype.createShipment=function(e,t,n,i){return void 0===i&&(i=!1),S(this,void 0,void 0,function(){var r,a,s,c,u,d,h,f,p,g,m,v=this;return k(this,function(_){switch(_.label){case 0:return r=!1,e.createdAt?[3,2]:[4,this.getShipmentByBarcode(e.barcode,null,null)];case 1:if(f=_.sent())throw new Error("Shipment: "+f.barcode+" already exists");a=this.getUserInfo(),e.createdAt=(new Date).getTime(),e.createdAtDisplay=(new Date).toISOString(),e.status=l.e.Created,e.createdBy=a,e.deleted=null,e.comment.date=(new Date).toISOString(),e.comment.externalId=a.externalId,e.comment.userId=a._id,e.comment.userName=a.firstName+" "+a.lastName,e.currentArea=t,e.currentLocation=e.buildLocation,e.isException=!1,r=!0,this.createTransaction(e.barcode,e.type===l.h.shipment?l.f.ShipmentCreated:l.f.ConsolidationCreated,e.status,null,null,null,null,null,null,null,null,e.currentLocation,null,null,e.originLab,e.destinationLab,e),_.label=2;case 2:return e.transport&&e.shipmentMethod&&(e.status===l.e.Created&&(e.status=l.e.InProcess,this.createTransaction(e.barcode,l.f.AddedShippingMethod,e.status,null,null,null,null,null,null,null,null,e.currentLocation||e.buildLocation,null,null,e.originLab,e.destinationLab,e),e.transport&&(e.transport.flightNo||e.transport.viaFlight&&e.transport.viaFlight.length)&&this.createTransaction(e.barcode,l.f.AddedFlight,e.status,null,null,null,null,null,null,null,null,e.currentLocation||e.buildLocation,null,null,e.originLab,e.destinationLab,e),e.transport&&e.transport.trackingNumber&&this.createTransaction(e.barcode,l.f.AddedTrackingNumber,e.status,null,null,null,null,null,null,null,null,e.currentLocation||e.buildLocation,null,null,e.originLab,e.destinationLab,e)),"questAirline"!==e.shipmentMethod.kind&&(e.transport.viaFlight=[]),"commercialAirline"===e.shipmentMethod.kind?e.shipmentMethod.icon=this.getAirlineIcon(e.transport.carrier):e.transport.comercialViaStop=null),r?[3,4]:[4,this.getShipmentByBarcode(e.barcode,null,null)];case 3:(s=_.sent())&&(s.originLab&&e.originLab&&s.originLab.addressId!==e.originLab.addressId&&this.createTransaction(e.barcode,l.f.OrignLabUpdated,e.status,null,null,null,null,null,null,null,null,e.currentLocation,null,null,e.originLab,s.destinationLab,e),s.destinationLab&&e.destinationLab&&s.destinationLab.addressId!==e.destinationLab.addressId&&this.createTransaction(e.barcode,l.f.DestinationLabUpdated,e.status,null,null,null,null,null,null,null,null,e.currentLocation,null,null,e.originLab,e.destinationLab,e),s.shipmentMethod&&e.shipmentMethod&&s.shipmentMethod.kind!==e.shipmentMethod.kind?(this.createTransaction(e.barcode,l.f.ShippingMethodUpdated,e.status,null,null,null,null,null,null,null,null,e.currentLocation,null,null,e.originLab,e.destinationLab,e),e.transport&&(e.transport.flightNo||e.transport.viaFlight&&e.transport.viaFlight.length)&&this.createTransaction(e.barcode,l.f.AddedFlight,e.status,null,null,null,null,null,null,null,null,e.currentLocation,null,null,e.originLab,e.destinationLab,e),e.transport&&e.transport.trackingNumber&&this.createTransaction(e.barcode,l.f.AddedTrackingNumber,e.status,null,null,null,null,null,null,null,null,e.currentLocation,null,null,e.originLab,e.destinationLab,e)):((s.transport&&e.transport&&(s.transport.flightNo&&e.transport.flightNo&&s.transport.flightNo!==e.transport.flightNo||s.transport.viaFlight&&s.transport.viaFlight.length&&e.transport.viaFlight&&e.transport.viaFlight.length&&!Object(w.b)(s.transport.viaFlight,e.transport.viaFlight))||s.transport.viaFlight&&s.transport.viaFlight.length&&(!e.transport.viaFlight||!e.transport.viaFlight.length)||(!s.transport.viaFlight||!s.transport.viaFlight.length)&&e.transport.viaFlight&&e.transport.viaFlight.length)&&this.createTransaction(e.barcode,l.f.FlightUpdated,e.status,null,null,null,null,null,null,null,null,e.currentLocation,null,null,e.originLab,e.destinationLab,e),s.transport&&s.transport.trackingNumber&&e.transport&&e.transport.trackingNumber&&s.transport.trackingNumber!==e.transport.trackingNumber&&this.createTransaction(e.barcode,l.f.TrackingNumberUpdated,e.status,null,null,null,null,null,null,null,null,e.currentLocation,null,null,e.originLab,e.destinationLab,e))),_.label=4;case 4:return e.barcode=e.barcode.toUpperCase(),e.visibleInArea=[e.originLab.bussinesUnitId,e.destinationLab.bussinesUnitId],delete(c=this.deepCopy(e)).originLab.locations,delete c.destinationLab.locations,c.items=[],c.totalPieces=c.totalPieces||0,c.totalWeight=c.totalWeight||0,c.itemsCount=c.itemsCount||0,c.syncRequired=n,c.localTimestamp=(new Date).toISOString(),c=this.deepCopy(c),r?c.timestamp=o.firestore.FieldValue.serverTimestamp():delete c.timestamp,c.type===l.h.consolidation&&r?[3,12]:c.shipmentMethod&&(c.shipmentMethod.kind===this.getShippingMethodTypes.commercialAirline||c.shipmentMethod.kind===this.getShippingMethodTypes.overnight)&&c.transport&&c.transport.trackingNumber?[4,this.findShipmentsByTrackingNumberAndShippingMethod(u=c.transport.trackingNumber,d=c.shipmentMethod._id)]:[3,12];case 5:return h=_.sent(),[4,this.getShipmentByBarcode(c.barcode,null,null,!1)];case 6:return f=_.sent(),i?f?[4,this.findShipmentsByTrackingNumberAndShippingMethod(u=f.transport&&f.transport.trackingNumber?f.transport.trackingNumber:u,d=f.shipmentMethod&&f.shipmentMethod._id?f.shipmentMethod._id:d)]:[3,8]:[3,9];case 7:p=_.sent(),h=h.concat(p),_.label=8;case 8:return[3,11];case 9:return c.type!==l.h.consolidation?[3,11]:[4,this.getShipmentsByConsolidation(c.barcode)];case 10:g=_.sent(),h=h.concat(g),_.label=11;case 11:(h=y.uniqBy(h,"barcode"))&&h.length&&(h.length>1||h[0].barcode!==c.barcode)&&(m=this.firestore.firestore.batch(),h.forEach(function(e){if(e.barcode!==c.barcode){var t,n=v.prepareRootDocumentToModify("shipments/"+e.barcode);v.batchUpdate(m,n.ref,{transport:c.transport,localTimestamp:(new Date).toISOString()}),(e.transport&&c.transport&&(e.transport.flightNo&&c.transport.flightNo&&e.transport.flightNo!==c.transport.flightNo||e.transport.viaFlight&&e.transport.viaFlight.length&&c.transport.viaFlight&&c.transport.viaFlight.length&&!Object(w.b)(e.transport.viaFlight,c.transport.viaFlight))||e.transport.viaFlight&&e.transport.viaFlight.length&&(!c.transport.viaFlight||!c.transport.viaFlight.length)||(!e.transport.viaFlight||!e.transport.viaFlight.length)&&c.transport.viaFlight&&c.transport.viaFlight.length)&&((t=v.deepCopy(e)).transport=c.transport,v.createTransaction(e.barcode,l.f.FlightUpdated,e.status,null,null,null,null,null,null,null,null,e.currentLocation,null,null,e.originLab,e.destinationLab,t)),e.transport&&e.transport.trackingNumber&&c.transport&&c.transport.trackingNumber&&e.transport.trackingNumber!==c.transport.trackingNumber&&((t=v.deepCopy(e)).transport=c.transport,v.createTransaction(e.barcode,l.f.TrackingNumberUpdated,e.status,null,null,null,null,null,null,null,null,e.currentLocation,null,null,e.originLab,e.destinationLab,t))}}),m.commit()),_.label=12;case 12:return c.type===l.h.consolidation&&c.children&&c.children.length?[4,this.addShipmentsToConsolidation(c.children,c,!1)]:[3,14];case 13:_.sent(),_.label=14;case 14:return[4,this.addOrUpdateRootDocument("shipments/"+c.barcode,c,!1)];case 15:return _.sent(),n?[4,this.waitForSync(e.barcode)]:[3,17];case 16:_.sent(),_.label=17;case 17:return[2,e]}})})},t.prototype.updateItemsVisibleArea=function(e){return S(this,void 0,void 0,function(){var t,n,i=this;return k(this,function(r){return t=this.getItems(e.barcode),n=this.firestore.firestore.batch(),t.forEach(function(t){var r=i.prepareRootDocumentToModify("shipments/"+e.barcode+"/items/"+t.toUpperCase());i.batchUpdate(n,r.ref,{visibleInArea:e.visibleInArea})}),n.commit(),[2]})})},t.prototype.getAirlineIcon=function(e){if(!e)return"./assets/icon/commercial-air.svg";var t="commercial-air";switch(e.fs){case"AA":t="american_airlines";break;case"DL":t="delta_airlines";break;case"UA":t="united_airlines";break;case"WN":t="southwest_airlines"}return"./assets/icon/"+t+".svg"},t.prototype.deleteShipment=function(e){return S(this,void 0,void 0,function(){var t,n,i=this;return k(this,function(r){switch(r.label){case 0:return t=this.firestore.firestore.batch(),n=null,e.forEach(function(e){var r,o=i.prepareRootDocumentToModify("shipments/"+e.toUpperCase());i.batchUpdate(t,o.ref,((r={}).deleted={isDeleted:!0,deletedBy:i.getUserInfo(),date:(new Date).toISOString()},r.localTimestamp=(new Date).toISOString(),r)),null===n&&(n=o)}),t.commit(),[4,new Promise(function(e,t){var r=n.ref.onSnapshot(function(t){return S(i,void 0,void 0,function(){return k(this,function(t){return r(),e(!0),[2]})})},function(){return t()})})];case 1:return r.sent(),[4,Promise.resolve(!0)];case 2:return[2,r.sent()]}})})},t.prototype.getShipmentByBarcode=function(e,t,n,i){return void 0===i&&(i=!1),S(this,void 0,void 0,function(){var r,o;return k(this,function(a){switch(a.label){case 0:return e=e.toUpperCase(),r=[{property:"barcode",operator:"==",value:e}],t&&r.push({property:"currentArea",operator:"==",value:t}),n&&r.push({property:"currentLocation",operator:"==",value:n}),[4,this.getCachedShipments(r,null,null,null,i)];case 1:return o=a.sent(),[2,Promise.resolve(o[0])]}})})},t.prototype.getShipments=function(e,t,n){return void 0===n&&(n=10),S(this,void 0,void 0,function(){return k(this,function(i){switch(i.label){case 0:return[4,this.getCachedShipments(e?[{property:"barcode",operator:"==",value:e}]:[],{orderBy:"createdAt",direction:"desc",pageSize:n,page:t||0},null,{orderBy:"createdAt",direction:"desc"})];case 1:return[2,i.sent()]}})})},t.prototype.findShipmentByTrackingNumber=function(e){return S(this,void 0,void 0,function(){var t;return k(this,function(n){switch(n.label){case 0:return[4,this.getCachedShipments([{property:"transport.trackingNumber",operator:"==",value:e}],null,null,null)];case 1:return t=n.sent(),[2,Promise.resolve(t[0])]}})})},t.prototype.findShipmentsByTrackingNumberAndShippingMethod=function(e,t){return S(this,void 0,void 0,function(){var n;return k(this,function(i){switch(i.label){case 0:return[4,this.getCachedShipments([{property:"transport.trackingNumber",operator:"==",value:e},{property:"shipmentMethod._id",operator:"==",value:t}],null,null,null)];case 1:return n=i.sent(),[2,Promise.resolve(n)]}})})},t.prototype.getTSOShipments=function(e,t,n,i){return S(this,void 0,void 0,function(){var r;return k(this,function(o){switch(o.label){case 0:return r=[{property:"currentArea",operator:"in",value:this.authService.currentUser.businessUnits}],e&&r.push({property:"barcode",operator:i||"like",value:e}),[4,this.getCachedShipments(r,{orderBy:"createdAt",pageSize:n||10,direction:"desc",page:t||0},null,{orderBy:"createdAt",direction:"desc"})];case 1:return[2,o.sent()]}})})},t.prototype.getTSOMyShipments=function(e,t,n,i){return S(this,void 0,void 0,function(){var r;return k(this,function(o){switch(o.label){case 0:return r=[{property:"currentArea",operator:"in",value:this.authService.currentUser.businessUnits},{property:"parent",operator:"notExistOrEmpty",value:""},{property:"status",operator:"in",value:[l.e.Created,l.e.InProcess]}],this.authService.currentUser.homebase&&r.push({property:"originLab.code",operator:"==",value:this.authService.currentUser.homebase}),i&&r.push({property:"type",operator:"==",value:l.h.consolidation}),e&&r.push({property:"barcode",operator:"like",value:e}),[4,this.getCachedShipments(r,{orderBy:"localTimestamp",pageSize:n||10,direction:"desc",page:t||0},null,{orderBy:"localTimestamp",direction:"desc"})];case 1:return[2,o.sent()]}})})},t.prototype.getTSOShipmentsByLab=function(e,t,n,i,r){return S(this,void 0,void 0,function(){var o;return k(this,function(a){switch(a.label){case 0:return o=[{property:"currentArea",operator:"in",value:this.authService.currentUser.businessUnits},{property:"parent",operator:"notExistOrEmpty",value:""},{property:"originLab.addressId",operator:"==",value:e}],r&&o.push({property:"type",operator:"==",value:l.h.consolidation}),t&&o.push({property:"barcode",operator:"like",value:t}),[4,this.getCachedShipments(o,{orderBy:"createdAt",pageSize:i||10,direction:"desc",page:n||0},null,{orderBy:"createdAt",direction:"desc"})];case 1:return[2,a.sent()]}})})},t.prototype.getTSOShipmentsCountGroupedByLab=function(e){return S(this,void 0,void 0,function(){var t,n,i;return k(this,function(r){switch(r.label){case 0:return t=[{property:"currentArea",operator:"in",value:this.authService.currentUser.businessUnits},{property:"parent",operator:"notExistOrEmpty",value:""}],e&&t.push({property:"barcode",operator:"like",value:e}),[4,this.getCachedShipments(t,{orderBy:"createdAt",pageSize:1e4,direction:"desc",page:0},null,{orderBy:"createdAt",direction:"desc"})];case 1:return n=r.sent(),i=y.uniqBy(n.map(function(e){return e.originLab}),"addressId"),[2,Array.from(new Set(i.map(function(e){return O(O({},e),{shipmentsCount:n.filter(function(t){return t.originLab.addressId===e.addressId}).length})})))]}})})},t.prototype.getTSOConsolidationsCountGroupedByLab=function(e){return S(this,void 0,void 0,function(){var t,n,i;return k(this,function(r){switch(r.label){case 0:return t=[{property:"currentArea",operator:"in",value:this.authService.currentUser.businessUnits},{property:"type",operator:"==",value:l.h.consolidation}],e&&t.push({property:"barcode",operator:"like",value:e}),[4,this.getCachedShipments(t,{orderBy:"createdAt",pageSize:1e4,direction:"desc",page:0},null,{orderBy:"createdAt",direction:"desc"})];case 1:return n=r.sent(),i=y.uniqBy(n.map(function(e){return e.originLab}),"addressId"),[2,Array.from(new Set(i.map(function(e){return O(O({},e),{shipmentsCount:n.filter(function(t){return t.originLab.addressId===e.addressId}).length})})))]}})})},t.prototype.getTSOShipmentsByStatus=function(e,t,n,i,r){return S(this,void 0,void 0,function(){var o;return k(this,function(a){switch(a.label){case 0:return o=[{property:"currentArea",operator:"in",value:this.authService.currentUser.businessUnits},{property:"parent",operator:"notExistOrEmpty",value:""},{property:"status",operator:"==",value:e}],this.authService.currentUser.homebase&&o.push({property:"originLab.code",operator:"==",value:this.authService.currentUser.homebase}),r&&o.push({property:"type",operator:"==",value:l.h.consolidation}),t&&o.push({property:"barcode",operator:"like",value:t}),[4,this.getCachedShipments(o,{orderBy:"localTimestamp",pageSize:i||10,direction:"desc",page:n||0},null,{orderBy:"localTimestamp",direction:"desc"})];case 1:return[2,a.sent()]}})})},t.prototype.getTSOAllShipmentsCountGroupedByStatus=function(e){return S(this,void 0,void 0,function(){var t,n,i;return k(this,function(r){switch(r.label){case 0:return t=[{property:"currentArea",operator:"in",value:this.authService.currentUser.businessUnits},{property:"parent",operator:"notExistOrEmpty",value:""},{property:"status",operator:"in",value:[l.e.Created,l.e.InProcess,l.e.InTransitHub]}],this.authService.currentUser.homebase&&t.push({property:"originLab.code",operator:"==",value:this.authService.currentUser.homebase}),e&&t.push({property:"barcode",operator:"like",value:e}),[4,this.getCachedShipments(t,{orderBy:"localTimestamp",pageSize:1e4,direction:"desc",page:0},null,{orderBy:"localTimestamp",direction:"desc"})];case 1:return n=r.sent(),i=y.orderBy(y.uniq(n.map(function(e){return e.status}))),[2,Array.from(new Set(i.map(function(e){return{status:e,shipmentsCount:n.filter(function(t){return t.status===e}).length}})))]}})})},t.prototype.getTSOConsolidationsCountGroupedByStatus=function(e){return S(this,void 0,void 0,function(){var t,n,i;return k(this,function(r){switch(r.label){case 0:return t=[{property:"currentArea",operator:"in",value:this.authService.currentUser.businessUnits},{property:"type",operator:"==",value:l.h.consolidation},{property:"status",operator:"in",value:[l.e.Created,l.e.InProcess,l.e.InTransitHub]}],this.authService.currentUser.homebase&&t.push({property:"originLab.code",operator:"==",value:this.authService.currentUser.homebase}),e&&t.push({property:"barcode",operator:"like",value:e}),[4,this.getCachedShipments(t,{orderBy:"localTimestamp",pageSize:1e4,direction:"desc",page:0},null,{orderBy:"localTimestamp",direction:"desc"})];case 1:return n=r.sent(),i=y.orderBy(y.uniq(n.map(function(e){return e.status}))),[2,Array.from(new Set(i.map(function(e){return{status:e,shipmentsCount:n.filter(function(t){return t.status===e}).length}})))]}})})},t.prototype.getTSOBuShipments=function(e,t){return S(this,void 0,void 0,function(){var n;return k(this,function(i){switch(i.label){case 0:return n=[{property:"currentArea",operator:"in",value:this.authService.currentUser.businessUnits},{property:"createdBy._id",operator:"!=",value:this.userId()}],e&&n.push({property:"barcode",operator:"like",value:e}),[4,this.getCachedShipments(n,{orderBy:"createdAt",pageSize:10,direction:"desc",page:t||0},null,{orderBy:"createdAt",direction:"desc"})];case 1:return[2,i.sent()]}})})},t.prototype.get3rdPartyShipments=function(e,t){return S(this,void 0,void 0,function(){return k(this,function(n){switch(n.label){case 0:return[4,this.getCachedShipments(e?[{property:"barcode",operator:"==",value:e}]:[],{orderBy:"createdAt",pageSize:10,direction:"desc",page:t||0},!0,null)];case 1:return[2,n.sent()]}})})},t.prototype.getTSOAvailableShipment=function(e){return S(this,void 0,void 0,function(){var t;return k(this,function(n){switch(n.label){case 0:return[4,this.getCachedShipments([{property:"barcode",operator:"==",value:e},{property:"currentArea",operator:"in",value:this.authService.currentUser.businessUnits},{property:"status",operator:"!=",value:l.e.Created}],null,null,{orderBy:"createdAt",direction:"desc"})];case 1:return(t=n.sent()).length?[2,Promise.resolve(t[0])]:[2,Promise.resolve(null)]}})})},t.prototype.getTSOAvailableShipments=function(){return S(this,void 0,void 0,function(){var e;return k(this,function(t){switch(t.label){case 0:return e=[{property:"currentArea",operator:"in",value:this.authService.currentUser.businessUnits},{property:"status",operator:"!=",value:l.e.Created},{property:"status",operator:"!=",value:l.e.Delivered},{property:"status",operator:"!=",value:l.e.DeliveredBy3rdParty},{property:"status",operator:"!=",value:l.e.DeliveredBySystem}],this.authService.currentUser.homebase&&e.push({property:"originLab.code",operator:"==",value:this.authService.currentUser.homebase}),[4,this.getCachedShipments(e,null,null,{orderBy:"createdAt",direction:"desc"})];case 1:return[2,t.sent()]}})})},t.prototype.getTSOLocationAvailableShipmentsCountGroupedByCurrentLocation=function(e){return S(this,void 0,void 0,function(){var t,n,i;return k(this,function(r){switch(r.label){case 0:return[4,this.getArea(e)];case 1:return t=r.sent(),[4,this.getCachedShipments([{property:"currentArea",operator:"==",value:t},{property:"status",operator:"!=",value:l.e.Created},{property:"status",operator:"!=",value:l.e.Delivered},{property:"status",operator:"!=",value:l.e.DeliveredBy3rdParty},{property:"status",operator:"!=",value:l.e.DeliveredBySystem}],{orderBy:"createdAt",pageSize:1e4,direction:"desc",page:0},null,{orderBy:"createdAt",direction:"desc"})];case 2:return n=r.sent(),i=y.uniq(n.map(function(e){return e.currentLocation})),[2,Array.from(new Set(i.map(function(e){return{location:e,shipmentsCount:n.filter(function(t){return t.currentLocation===e}).length}})))]}})})},t.prototype.getTSOLocationAvailableShipmentsByCurrentLocation=function(e,t,n){return S(this,void 0,void 0,function(){var i;return k(this,function(r){switch(r.label){case 0:return[4,this.getArea(e)];case 1:return i=r.sent(),[4,this.getCachedShipments([{property:"currentArea",operator:"==",value:i},{property:"currentLocation",operator:"==",value:e},{property:"status",operator:"!=",value:l.e.Created},{property:"status",operator:"!=",value:l.e.Delivered},{property:"status",operator:"!=",value:l.e.DeliveredBy3rdParty},{property:"status",operator:"!=",value:l.e.DeliveredBySystem}],{orderBy:"createdAt",pageSize:n||10,direction:"desc",page:t||0},null,{orderBy:"createdAt",direction:"desc"})];case 2:return[2,r.sent()]}})})},t.prototype.getTSOLocationAvailableShipment=function(e,t){return S(this,void 0,void 0,function(){var n;return k(this,function(i){switch(i.label){case 0:return[4,this.getArea(e)];case 1:return n=i.sent(),[4,this.getCachedShipments([{property:"currentArea",operator:"==",value:n},{property:"status",operator:"!=",value:l.e.Created},{property:"status",operator:"!=",value:l.e.Delivered},{property:"status",operator:"!=",value:l.e.DeliveredBy3rdParty},{property:"status",operator:"!=",value:l.e.DeliveredBySystem}],t,null,{orderBy:"createdAt",direction:"desc"})];case 2:return[2,i.sent()]}})})},t.prototype.getTSOLocationAvailableShipmentByBarcode=function(e,t){return S(this,void 0,void 0,function(){var n,i;return k(this,function(r){switch(r.label){case 0:return[4,this.getArea(e)];case 1:return n=r.sent(),[4,this.getCachedShipments([{property:"barcode",operator:"==",value:t},{property:"currentArea",operator:"==",value:n},{property:"status",operator:"!=",value:l.e.Created},{property:"status",operator:"!=",value:l.e.Delivered},{property:"status",operator:"!=",value:l.e.DeliveredBy3rdParty},{property:"status",operator:"!=",value:l.e.DeliveredBySystem}],null,null,{orderBy:"createdAt",direction:"desc"})];case 2:return[2,(i=r.sent())&&i.length?i[0]:null]}})})},t.prototype.getCachedShipments=function(e,t,n,i,r){return void 0===e&&(e=[]),void 0===r&&(r=!1),S(this,void 0,void 0,function(){var o=this;return k(this,function(a){return[2,new Promise(function(a,s){return S(o,void 0,void 0,function(){return k(this,function(o){return(function o(){return S(this,void 0,void 0,function(){var s,c=this;return k(this,function(u){return s=(s=this._shipments)&&s.filter(function(e){return!e.deleted&&(n&&e.status!==l.e.Created||!n&&!e.transferredTo3rdParty||!n&&r&&e.transferredTo3rdParty)}),e=(e=e||[]).concat([{property:"status",operator:"!=",value:l.e.Delivered},{property:"status",operator:"!=",value:l.e.DeliveredBy3rdParty},{property:"status",operator:"!=",value:l.e.DeliveredBySystem}]),s?(s=this.filterList(!1,s,e,t,i),[2,a(s)]):(console.log("no shipments yet"),setTimeout(function(){o.call(c)},500),[2])})})}).call(this),[2]})})})]})})},t.prototype.addItems=function(e,t,n){return S(this,void 0,void 0,function(){var i,r,a,s,c=this;return k(this,function(u){switch(u.label){case 0:return e=e.toUpperCase(),[4,this.getShipmentByBarcode(e,null,null)];case 1:if(!(i=u.sent()).isException&&i.status!==l.e.Created&&i.status!==l.e.InProcess)throw new Error("Shipment: "+i.barcode+" can not be modified");if(i.isException)throw new Error("Shipment: "+i.barcode+" is unknown. Cannot scan an item");return r=this.prepareRootDocumentToModify("shipments/"+e),a=this.firestore.firestore.batch(),t.forEach(function(t){var n=c.prepareRootDocumentToModify("shipments/"+e+"/items/"+t.toUpperCase()),r={barcode:t.toUpperCase(),shipmentBarcode:e,createdAt:(new Date).toISOString(),createdBy:c.getUserInfo(),visibleInArea:c.authService.currentUser.homebase?[c.authService.currentUser.homebase]:[i.originLab.bussinesUnitId],deleted:null,tsoCacheable:!0};c.batchSet(a,n.ref,r)}),s={itemsCount:o.firestore.FieldValue.increment(t.length),localTimestamp:(new Date).toISOString()},i.status===l.e.Created&&(s.status=l.e.InProcess),this.batchUpdate(a,r.ref,s),a.commit(),[4,new Promise(function(e,t){var n=r.ref.onSnapshot(function(t){return S(c,void 0,void 0,function(){return k(this,function(t){return n(),e(!0),[2]})})},function(){return t()})})];case 2:return u.sent(),i.status===l.e.Created&&s.status===l.e.InProcess&&this.createTransaction(i.barcode,l.f.AddedShippingItems,l.e.InProcess,null,null,null,null,null,null,null,null,i.currentLocation,null,null,i.originLab,i.destinationLab,i,null,n),t.forEach(function(e){c.createTransaction(i.barcode,l.f.ShippingItemAdded,l.e.InProcess,null,null,null,null,null,e,null,null,i.currentLocation,null,null,i.originLab,i.destinationLab,i,null,n)}),[4,Promise.resolve(!0)];case 3:return[2,u.sent()]}})})},t.prototype.getItems=function(e){return e=e.toUpperCase(),this._items.filter(function(t){return t.shipmentBarcode===e&&!t.deleted}).sort(function(e,t){var n=new Date(e.createdAt);return new Date(t.createdAt).getTime()-n.getTime()}).map(function(e){return e.barcode})},t.prototype.deleteItem=function(e,t){return S(this,void 0,void 0,function(){var n,i,r,a,s,c,u=this;return k(this,function(d){switch(d.label){case 0:return e=e.toUpperCase(),n=this.prepareRootDocumentToModify("shipments/"+e),i=this.prepareRootDocumentToModify("shipments/"+e+"/items/"+t.toUpperCase()),r=this.firestore.firestore.batch(),this.batchUpdate(r,i.ref,((s={}).deleted={isDeleted:!0,deletedBy:this.getUserInfo(),date:(new Date).toISOString()},s)),this.batchUpdate(r,n.ref,((c={}).itemsCount=o.firestore.FieldValue.increment(-1),c.localTimestamp=(new Date).toISOString(),c)),r.commit(),[4,new Promise(function(e,t){var i=n.ref.onSnapshot(function(t){return S(u,void 0,void 0,function(){return k(this,function(t){return i(),e(!0),[2]})})},function(){return t()})})];case 1:return d.sent(),[4,this.getShipmentByBarcode(e,null,null)];case 2:return a=d.sent(),this.createTransaction(e,l.f.ShippingItemDeleted,l.e.InProcess,null,null,null,null,null,null,null,t,a.currentLocation,null,null,a.originLab,a.destinationLab,a),[4,Promise.resolve(!0)];case 3:return[2,d.sent()]}})})},t.prototype.getQuestOriginAirports=function(e,t){return S(this,void 0,void 0,function(){var n,i,r;return k(this,function(o){switch(o.label){case 0:return[4,this.getQuestAirSchedules(e,t)];case 1:return(n=o.sent()).length?[3,3]:[4,Promise.resolve([])];case 2:return[2,o.sent()];case 3:return i=y.flatMap(n,function(e){var t=e.stops.filter(function(e){return!!e.eTD});return y.map(t,function(e){return e.airportCode})}),i=Array.from(new Set(i)),[4,this.getQuestAirports()];case 4:return r=(r=o.sent()).filter(function(e){return i.findIndex(function(t){return t===e.fs})>-1}),[4,Promise.resolve(r)];case 5:return[2,o.sent()]}})})},t.prototype.getQuestAirSchedules=function(e,t){return S(this,void 0,void 0,function(){var n,i;return k(this,function(r){switch(r.label){case 0:return[4,this._questAirSchedules];case 1:return n=r.sent(),e&&(i=this.getWeekDay(e),n=n.filter(function(e){return e.weekDays&i})),t&&(n=n.filter(function(e){return e.routeNumber.toString()===t.toString()})),[4,Promise.resolve(n)];case 2:return[2,r.sent()]}})})},t.prototype.calculateRoutes=function(e,t,n){return S(this,void 0,void 0,function(){var i,r,o,a,s=this;return k(this,function(c){switch(c.label){case 0:return[4,this._questAirSchedules];case 1:return i=c.sent(),r=this.getWeekDay(e),o=[],i.forEach(function(n){if(n.weekDays&r){n.stops=y.orderBy(n.stops,"stopSequence");var i=n.stops.findIndex(function(e){return!!e.eTD&&e.airportCode===t});if(i>-1&&n.stops[i].eTD&&n.stops[i].eTD.seconds){var a=b(e),s=b(new Date).startOf("day");if(a.isSame(s,"d")){var c=new Date,u=b(c.toString().substr(16,5),"hh:mm"),l=new Date(0);l.setUTCSeconds(n.stops[i].eTD.seconds),b(l.toString().substr(16,5),"hh:mm").isBefore(u)&&(i=-1)}}if(i>-1){var d=y.cloneDeep(n);d.stops[i].legStart=!0,o.push(d)}}}),a=[],o.forEach(function(e){e.parent=null;var t=s.buildViaTree(e,i,n,null);a.push(t)}),[2,a=a.filter(function(e){return!!e})]}})})},t.prototype.buildViaTree=function(e,t,n,i){var r=this,o=e.stops.find(function(e){return e.legStart}),a=e.stops.findIndex(function(e){return e.airportCode===n&&e.stopSequence>o.stopSequence});if(a>-1)return e.stops[a].legEnd=e.routeNumber,e.parent=i,e;if(!e.connections||!e.connections.length)return null;var s=e.connections.filter(function(e){return e.sourceStop.stopSequence>o.stopSequence}).map(function(i){var o=t.find(function(e){return e.routeNumber==i.destinationRouteNumber}),a=o.stops.findIndex(function(e){return e.airportCode===i.destinationStop.airportCode&&e.stopSequence===i.destinationStop.stopSequence});o.stops[a].legStart=!0;var s=e.stops.findIndex(function(e){return e.airportCode===i.sourceStop.airportCode&&e.stopSequence===i.sourceStop.stopSequence});return e.stops[s].legEnd=o.routeNumber,r.buildViaTree(o,t,n,e.routeNumber)});return e.viaFlights=s.filter(function(e){return!!e}),e.viaFlights.length?e:null},t.prototype.relocateShipments=function(e,t,n,i){return void 0===i&&(i=!0),S(this,void 0,void 0,function(){var r,o,a,s=this;return k(this,function(c){switch(c.label){case 0:return r=this.firestore.firestore.batch(),o=null,[4,this.getArea(t)];case 1:return a=c.sent(),e.forEach(function(e){var c;s.createTransaction(e.barcode,l.f.ShipmentRelocated,e.status,e.currentLocation,t,null,n,null,null,null,null,e.currentLocation,null,null,e.originLab,e.destinationLab,e);var u=e.barcode.toUpperCase(),d=s.prepareRootDocumentToModify("shipments/"+u);s.batchUpdate(r,d.ref,((c={}).syncRequired=i,c.currentArea=a,c.currentLocation=t,c.localTimestamp=(new Date).toISOString(),c)),null===o&&(o=d)}),r.commit(),i?[4,this.waitForSync(e[0].barcode)]:[3,3];case 2:return c.sent(),[3,5];case 3:return[4,new Promise(function(e,t){var n=o.ref.onSnapshot(function(t){return S(s,void 0,void 0,function(){return k(this,function(t){return n(),e(!0),[2]})})},function(){return t()})})];case 4:c.sent(),c.label=5;case 5:return[4,Promise.resolve(e)];case 6:return[2,c.sent()]}})})},t.prototype.createTransaction=function(e,t,n,i,r,o,a,s,c,u,l,d,h,f,p,g,m,v,_){return S(this,void 0,void 0,function(){var y,b;return k(this,function(w){switch(w.label){case 0:return y=this.getItems(e),b={event:t,status:n,date:(new Date).toISOString(),user:this.getUserInfo(),transferredFrom:i,transferredFromOriginal:u,transferredTO:r,trackingNumber:o,comment:a,equipment:s,itemBarcode:c,deletedItemBarcode:l,currentLocation:r||d,isException:h||!1,exceptionType:f,droppedLabName:v,items:y,originLab:p?function(e){return{code:e.code,addressId:e.addressId,name:e.name}}(p):null,destinationLab:g?function(e){return{code:e.code,addressId:e.addressId,name:e.name}}(g):null,parent:m.parent,children:m.children,transport:m.transport,shipmentMethod:m.shipmentMethod,route:_},[4,this.createRootDocument("shipments/"+e.toUpperCase()+"/transactions/"+this.firestore.createId(),b)];case 1:return w.sent(),[2]}})})},t.prototype.setItemStatus=function(e,t,n){var i=this;if((t===l.e.Created||t===l.e.InProcess)&&n!==l.e.Created&&n!==l.e.InProcess){var r=this.getItems(e),o=this.firestore.firestore.batch();r.forEach(function(t){var n=i.prepareRootDocumentToModify("shipments/"+e+"/items/"+t.toUpperCase());i.batchUpdate(o,n.ref,{tsoCacheable:!1})}),o.commit()}},t.prototype.getOriginLabs=function(e,t,n){return S(this,void 0,void 0,function(){var i,r=this;return k(this,function(o){switch(o.label){case 0:return[4,this._labs];case 1:return i=o.sent(),n||(i=i.filter(function(e){return r.authService.currentUser.businessUnits.findIndex(function(t){return t===e.bussinesUnitId})>-1})),[2,Promise.resolve(this.filterList(!1,i,e?[{property:"name",operator:"like",value:e}]:[],t,{orderBy:"name",direction:"asc"}))]}})})},t.prototype.getDestinationLabs=function(e,t){return S(this,void 0,void 0,function(){var n;return k(this,function(i){switch(i.label){case 0:return[4,this._labs];case 1:return n=(n=i.sent()).filter(function(e){return e.bussinesUnitId&&"lab"===e.kind.toLocaleLowerCase()}),[2,Promise.resolve(this.filterList(!1,n,e?[{property:"name",operator:"like",value:e}]:[],t,{orderBy:"name",direction:"asc"}))]}})})},t.prototype.getLocations=function(e){return S(this,void 0,void 0,function(){var t,n;return k(this,function(i){switch(i.label){case 0:return[4,this._labs];case 1:return t=i.sent(),e&&(t=t.filter(function(t){return t.addressId===e.addressId})),n=[].concat.apply([],t.map(function(e){return e.locations||[]})),[4,Promise.resolve(n)];case 2:return[2,i.sent()]}})})},t.prototype.getArea=function(e){return S(this,void 0,void 0,function(){var t,n;return k(this,function(i){switch(i.label){case 0:return[4,this._labs];case 1:if(t=i.sent(),!(n=t.find(function(t){return t.locations.findIndex(function(t){return t.barcode.toLowerCase()===e.toLowerCase()})>-1})))throw new Error("Invalid location barcode");return[4,Promise.resolve(n.bussinesUnitId)];case 2:return[2,i.sent()]}})})},t.prototype.getShippingSizes=function(e){return S(this,void 0,void 0,function(){var e=this;return k(this,function(t){return[2,new Promise(function(t,n){return S(e,void 0,void 0,function(){return k(this,function(e){return(function e(){return S(this,void 0,void 0,function(){var n,i=this;return k(this,function(r){switch(r.label){case 0:return[4,this._shippingSizes];case 1:return(n=r.sent())?[2,t(n.map(function(e){return{_id:e._id,name:e.name,icon:e.properties.icon}}))]:(setTimeout(function(){e.call(i)},500),[2])}})})}).call(this),[2]})})})]})})},t.prototype.getShippingMethods=function(e){return S(this,void 0,void 0,function(){var t,n;return k(this,function(i){switch(i.label){case 0:return[4,this._shippingMethods];case 1:return t=i.sent(),n=t.filter(function(t){return!e||t.name.toLowerCase().indexOf(e.toLowerCase())>-1}).map(function(e){return{_id:e._id,name:e.name,icon:e.properties.icon,kind:e.properties.kind}}),[4,Promise.resolve(n)];case 2:return[2,i.sent()]}})})},t.prototype.waitForSync=function(e){return S(this,void 0,void 0,function(){var t,n;return k(this,function(i){switch(i.label){case 0:return t=this.prepareRootDocumentToModify("tso/sync/shipments/"+e),n=null,[4,new Promise(function(e,i){var r=t.ref.onSnapshot(function(i){i.exists?(r(),t.ref.delete(),n&&clearTimeout(n),e(!0)):n=setTimeout(function(){r(),e(!0)},1e4)},function(){return i()})})];case 1:return i.sent(),[2]}})})},t.prototype.deepCopy=function(e){return JSON.parse(JSON.stringify(e))},t.prototype.getUserInfo=function(){var e=this.authService.currentUser;return{_id:e._id,externalId:e.externalId||null,firstName:e.firstName||"",lastName:e.lastName||"",ssoData:e.ssoData?e.ssoData.credentials:null}},t.prototype.getUserBusinessUnit=function(){return this.authService.currentUser.businessUnits[0]},t.prototype.filterList=function(e,t,n,i,r){return void 0===n&&(n=[]),n&&n.length&&n.forEach(function(e){t=t.filter(function(t){var n=y.get(t,e.property);if(n)switch(e.operator){case"==":return n.toLowerCase()===e.value.toLowerCase();case"!=":return n.toLowerCase()!==e.value.toLowerCase();case"in":return e.value.findIndex(function(e){return e.toLowerCase()===n.toLowerCase()})>-1;case"like":return n.toLowerCase().indexOf(e.value.toLowerCase())>-1}else if("notExistOrEmpty"===e.operator)return!0;return!1})}),i?(t=y.orderBy(t,i.orderBy,i.direction||"asc"),t=y.take(y.drop(t,e?i.page:i.page*i.pageSize),i.pageSize)):r&&(t=y.orderBy(t,r.orderBy,r.direction)),t},t.prototype.getOnlineDictionaryData=function(e,t){return void 0===t&&(t={skip:0,take:1e5}),S(this,void 0,void 0,function(){return k(this,function(n){switch(n.label){case 0:return[4,this.privateApiCaller.get(e,t).pipe(Object(u.a)(function(e){return e.data||e})).toPromise()];case 1:return[2,n.sent()]}})})},t.prototype.getComertialAirports=function(e,t){return S(this,void 0,void 0,function(){var n,i;return k(this,function(r){switch(r.label){case 0:return this.onlineOfflineService.isOnline?(n={skip:t.page,take:t.pageSize},e&&e.length&&(n.filter=[e[0].property,this.parseToMongoOperator(e[0].operator),e[0].value]),[4,this.getOnlineDictionaryData("tso/commercial/airport",this.convertToMongoParameters(n))]):[3,2];case 1:return[2,r.sent()];case 2:return[4,this._commercialAirports];case 3:return i=r.sent(),[2,Promise.resolve(this.filterList(!0,i,e,t))]}})})},t.prototype.getQuestAirports=function(e,t){return S(this,void 0,void 0,function(){var n;return k(this,function(i){switch(i.label){case 0:return[4,this._questAirports];case 1:return n=i.sent(),[2,Promise.resolve(this.filterList(!0,n,e,t))]}})})},t.prototype.getCarriers=function(e,t){return S(this,void 0,void 0,function(){var n,i;return k(this,function(r){switch(r.label){case 0:return this._localChachedCarriers&&this._localChachedCarriers.length?[2,Promise.resolve(this.filterList(!0,this._localChachedCarriers,e,t))]:this.onlineOfflineService.isOnline?(n=this,[4,this.getOnlineDictionaryData("tso/commercial/airline")]):[3,2];case 1:return n._localChachedCarriers=r.sent(),[2,Promise.resolve(this.filterList(!0,this._localChachedCarriers,e,t))];case 2:return[4,this._offlineCarriers];case 3:return i=r.sent(),[2,Promise.resolve(this.filterList(!0,i,e,t))]}})})},t.prototype.createUnknownLab=function(e){return{id:"-1",addressId:"",code:"Unknown",name:"Unknown",bussinesUnitId:e,locations:[],kind:"lab",airport:"N/A"}},Object.defineProperty(t.prototype,"shipmentStatuses",{get:function(){return[{name:"Created",value:"Created"},{name:"In Process",value:"In Process"},{name:"In Transit: 3rd Party",value:"In Transit: 3rd Party"},{name:"Delivered",value:"Delivered"},{name:"In Transit: RSR",value:"In Transit: RSR"},{name:"In Transit: Airport",value:"In Transit: Airport"},{name:"In Transit: Quest Air",value:"In Transit: Quest Air"},{name:"In Transit: Hub",value:"In Transit: Hub"},{name:"Delivered by 3rd party",value:"Delivered by 3rd party"},{name:"Delivered by system",value:"Delivered by system"}]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"temperatures",{get:function(){return[{name:"Ambient",icon:"./assets/icon/ambient.svg",value:"A"},{name:"Frozen",icon:"./assets/icon/frozen.svg",value:"F"},{name:"Refrigerated",icon:"./assets/icon/refrigerated.svg",value:"R"}]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"specimenTypes",{get:function(){return[{name:"Processed",value:"processed",icon:"./assets/icon/refrigerated.svg"},{name:"Unprocessed",value:"unprocessed",icon:"./assets/icon/refrigerated.svg"},{name:"Both",value:"both",icon:"./assets/icon/refrigerated.svg"}]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"weightUoms",{get:function(){return[{name:"KG",value:"KG"},{name:"LB",value:"LB"}]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"getShippingMethodTypes",{get:function(){return{commercialAirline:"commercialAirline",questAirline:"questAirline",overnight:"overnight",questGround:"questGround",unknown:"unknown"}},enumerable:!1,configurable:!0}),t.prototype.get3rdParties=function(){return S(this,void 0,void 0,function(){return k(this,function(e){return[2,this.privateApiCaller.get("tso/thirdparty",{list:!0,take:1e3,skip:0}).toPromise().then(function(e){return e.map(function(e){return e.name})})]})})},t.prototype.getWeekDay=function(e){"string"==typeof e&&(e=new Date(e));var t=e.getDay();return this.weekDays[t]},t.prototype.convertToMongoParameters=function(e){var t={};return["skip","take","list","requireGroupCount","sort","filter","totalSummary","group","groupSummary"].forEach(function(n){n in e&&null!=e[n]&&""!==e[n]&&(t[n]=JSON.stringify(e[n]))}),t},t.prototype.parseToMongoOperator=function(e){switch(e){case"like":return"contains";case"==":return"=";default:return e}},t.prototype.getRSRShipmentsAvailableToDropCBags=function(e){return S(this,void 0,void 0,function(){return k(this,function(e){switch(e.label){case 0:return[4,this.getCachedShipments([{property:"status",operator:"==",value:l.e.InProcess}],null,null,{orderBy:"createdAt",direction:"desc"})];case 1:return[2,e.sent()]}})})},t.prototype.getShipmentsByVegicle=function(e){return S(this,void 0,void 0,function(){return k(this,function(t){switch(t.label){case 0:return[4,this.getCachedShipments([{property:"currentLocation",operator:"==",value:e},{property:"status",operator:"!=",value:l.e.Created}],null,null,{orderBy:"createdAt",direction:"desc"})];case 1:return[2,t.sent()]}})})},t.prototype.getRSRShipments=function(e,t){return S(this,void 0,void 0,function(){var n;return k(this,function(i){switch(i.label){case 0:return n=[{property:"currentArea",operator:"==",value:e}],t&&n.push({property:"barcode",operator:"==",value:t}),[4,this.getCachedShipments(n,null,null,{orderBy:"createdAt",direction:"desc"})];case 1:return[2,i.sent()]}})})},t.prototype.getRSRShipmentsWithoutParent=function(e,t,n){return S(this,void 0,void 0,function(){var i;return k(this,function(r){switch(r.label){case 0:return i=[{property:"currentArea",operator:"==",value:e},{property:"parent",operator:"notExistOrEmpty",value:""}],n&&i.push({property:"type",operator:"==",value:l.h.consolidation}),t&&i.push({property:"barcode",operator:"==",value:t}),[4,this.getCachedShipments(i,null,null,{orderBy:"createdAt",direction:"desc"})];case 1:return[2,r.sent()]}})})},t.prototype.getShipmentAirportDropInfo=function(e,t){return S(this,void 0,void 0,function(){var n,i,r,o,a;return k(this,function(s){switch(s.label){case 0:return[4,this.getRSRShipmentsAvailableToDrop(e)];case 1:return n=(n=s.sent()).filter(function(e){return!e.isException&&e.transport&&e.shipmentMethod&&e.shipmentMethod.kind===t}),i=y.uniqBy(n.map(function(e){return e.transport.originAirport}),"fs"),r=y.uniqBy(n.map(function(e){return e.transport.carrier}),"fs"),(o=r.findIndex(function(e){return"LBQ"===e.fs}))>-1&&(a=r[o],r.splice(o,1),r.unshift(a)),[2,{airports:i,carriers:r}]}})})},t.prototype.getRSRShipmentsAvailableToDrop=function(e,t,n){return S(this,void 0,void 0,function(){return k(this,function(i){switch(i.label){case 0:return[4,this.getCachedShipments([{property:"currentArea",operator:"==",value:e},{property:"status",operator:"!=",value:l.e.Created}],null,null,{orderBy:"createdAt",direction:"desc"})];case 1:return[2,i.sent().filter(function(e){return e.isException||(!t||e.transport&&e.transport.originAirport&&e.transport.originAirport.fs===t.fs)&&(!n||e.transport&&e.transport.carrier&&e.transport.carrier.fs===n.fs)})]}})})},t.prototype.pickupShipmentsFromLab=function(e,t,n,i){return S(this,void 0,void 0,function(){return k(this,function(r){switch(r.label){case 0:return[4,this.pickupShipments(e,t,n,i,l.f.RSRPickupFromLab,null)];case 1:return r.sent(),[2]}})})},t.prototype.pickupShipmentsFrom3rdParty=function(e,t,n,i,r,o){return S(this,void 0,void 0,function(){var a,s,c,u,d=this;return k(this,function(h){switch(h.label){case 0:return a=this.firestore.firestore.batch(),s=null,(c=r)?[3,2]:[4,this.getArea(t)];case 1:c=h.sent(),h.label=2;case 2:return[4,this.getDestinationLabs(null,null)];case 3:return u=h.sent(),e.forEach(function(e){var h,f=u.find(function(t){return t.addressId===e.destinationLab.addressId}),p="",g=!1;if(f&&(p=f.name,g=!f.locations.some(function(e){return e.barcode===t}))){var m=u.find(function(e){return e.locations.some(function(e){return e.barcode===t})});m?(p=m.name,h=l.g.MismatchedDropLocation):(p=l.g.ShipmentDropLocationNotMappedToLab,h=l.g.ShipmentDropLocationNotMappedToLab)}var v=r?l.e.InTransitRSR:l.e.DeliveredBy3rdParty;d.setItemStatus(e.barcode,e.status,v),d.createTransaction(e.barcode,r?l.f.RSRPickupFrom3rdParty:l.f.ShipmentDeliveredBy3rdparty,v,i,t,o,n,null,null,e.thirdParty,null,e.currentLocation,g,h,e.originLab,e.destinationLab,e,p),e.barcode=e.barcode.toUpperCase(),e.transferredTo3rdParty=!1,e.currentArea=c,e.currentLocation=t,e.status=v;var _=d.prepareRootDocumentToModify("shipments/"+e.barcode),y={transferredTo3rdParty:e.transferredTo3rdParty,currentArea:e.currentArea,currentLocation:e.currentLocation,status:e.status,thirdParty:i,localTimestamp:(new Date).toISOString()};r&&(y.route={routeId:r,userId:d.userId()}),d.batchUpdate(a,_.ref,y),null===s&&(s=_)}),a.commit(),[4,new Promise(function(e,t){var n=s.ref.onSnapshot(function(t){return S(d,void 0,void 0,function(){return k(this,function(t){return n(),e(!0),[2]})})},function(){return t()})})];case 4:return h.sent(),[2,Promise.resolve(e)]}})})},t.prototype.pickupShipmentsFromRSR=function(e,t,n,i,r){return S(this,void 0,void 0,function(){var o,a,s=this;return k(this,function(c){switch(c.label){case 0:return o=this.firestore.firestore.batch(),a=null,e.forEach(function(e){s.setItemStatus(e.barcode,e.status,l.e.InTransitRSR),s.createTransaction(e.barcode,l.f.RSRPickupFromRSR,l.e.InTransitRSR,e.currentLocation,t,r,i,null,null,null,null,e.currentLocation,null,null,e.originLab,e.destinationLab,e),e.barcode=e.barcode.toUpperCase(),e.transferredTo3rdParty=!1,e.currentArea=n,e.currentLocation=t,e.status=l.e.InTransitRSR;var c=s.prepareRootDocumentToModify("shipments/"+e.barcode),u={transferredTo3rdParty:e.transferredTo3rdParty,currentArea:e.currentArea,currentLocation:e.currentLocation,status:e.status,localTimestamp:(new Date).toISOString()};n&&(u.route={routeId:n,userId:s.userId()}),s.batchUpdate(o,c.ref,u),null===a&&(a=c)}),o.commit(),[4,new Promise(function(e,t){var n=a.ref.onSnapshot(function(t){return S(s,void 0,void 0,function(){return k(this,function(t){return n(),e(!0),[2]})})},function(){return t()})})];case 1:return c.sent(),[2,Promise.resolve(e)]}})})},t.prototype.pickupShipments=function(e,t,n,i,r,o){return S(this,void 0,void 0,function(){var a,s,c,u=this;return k(this,function(d){switch(d.label){case 0:return a={routeId:n,userId:this.userId()},s=null,c=this.firestore.firestore.batch(),e.forEach(function(e){u.setItemStatus(e.barcode,e.status,l.e.InTransitRSR),u.createTransaction(e.barcode,r,l.e.InTransitRSR,t,i,null,o,null,null,null,null,e.currentLocation,null,null,e.originLab,e.destinationLab,e),e.status=l.e.InTransitRSR,e.currentArea=n,e.currentLocation=i,e.transferredTo3rdParty=!1,e.pickedUpFromAirport=r===l.f.RSRPickupFromAirport;var d=u.prepareRootDocumentToModify("shipments/"+e.barcode.toUpperCase());u.batchUpdate(c,d.ref,{route:a,status:e.status,currentArea:e.currentArea,currentLocation:e.currentLocation,transferredTo3rdParty:e.transferredTo3rdParty,pickedUpFromAirport:e.pickedUpFromAirport,localTimestamp:(new Date).toISOString()}),null===s&&(s=d)}),c.commit(),[4,new Promise(function(e,t){var n=s.ref.onSnapshot(function(t){return S(u,void 0,void 0,function(){return k(this,function(t){return n(),e(!0),[2]})})},function(){return t()})})];case 1:return d.sent(),[2]}})})},t.prototype.dropShipmentsTo3rdParty=function(e,t,n,i,r,o){return void 0===r&&(r=null),void 0===o&&(o=!0),S(this,void 0,void 0,function(){var a,s,c,u=this;return k(this,function(d){switch(d.label){case 0:return a=this.firestore.firestore.batch(),s=null,c=n?l.f.RSRDropTo3rdParty:l.f.TSOOperatorDropTo3rdParty,e.forEach(function(e){var n;u.setItemStatus(e.barcode,e.status,l.e.InTransit3rdParty),u.createTransaction(e.barcode,c,l.e.InTransit3rdParty,e.currentLocation,t,r,i,null,null,null,null,e.currentLocation,null,null,e.originLab,e.destinationLab,e),e.transferredTo3rdParty=!0,e.transferred=!0,e.currentArea=t,e.currentLocation=t,e.status=l.e.InTransit3rdParty;var d=e.barcode.toUpperCase(),h=u.prepareRootDocumentToModify("shipments/"+d);u.batchUpdate(a,h.ref,((n={}).syncRequired=o,n.transferredTo3rdParty=e.transferredTo3rdParty,n.transferred=e.transferred,n.currentArea=e.currentArea,n.currentLocation=e.currentLocation,n.status=e.status,n.thirdParty=t,n.localTimestamp=(new Date).toISOString(),n)),null===s&&(s=h)}),a.commit(),o?[4,this.waitForSync(e[0].barcode)]:[3,2];case 1:return d.sent(),[3,4];case 2:return[4,new Promise(function(e,t){var n=s.ref.onSnapshot(function(t){return S(u,void 0,void 0,function(){return k(this,function(t){return n(),e(!0),[2]})})},function(){return t()})})];case 3:d.sent(),d.label=4;case 4:return[4,Promise.resolve(e)];case 5:return[2,d.sent()]}})})},t.prototype.dropShipmentsToLabOrHub=function(e,t,n,i,r){return S(this,void 0,void 0,function(){var o,a,s,c,u,d,h=this;return k(this,function(f){switch(f.label){case 0:return o=this.firestore.firestore.batch(),a=null,[4,this.getArea(t)];case 1:return s=f.sent(),c=n?l.e.Delivered:l.e.InTransitHub,u=n?l.f.RSRDropToLab:l.f.RSRDropToHub,[4,this.getDestinationLabs(null,null)];case 2:return d=f.sent(),e.forEach(function(e){var f,p,g=d.find(function(t){return t.addressId===e.destinationLab.addressId}),m="",v=!1;if(g&&n&&(m=g.name,v=!g.locations.some(function(e){return e.barcode===t}))){var _=d.find(function(e){return e.locations.some(function(e){return e.barcode===t})});_?(m=_.name,p=l.g.MismatchedDropLocation):(m=l.g.ShipmentDropLocationNotMappedToLab,p=l.g.ShipmentDropLocationNotMappedToLab)}h.setItemStatus(e.barcode,e.status,c),h.createTransaction(e.barcode,u,c,e.currentLocation,t,i,r,null,null,null,null,e.currentLocation,v,p,e.originLab,e.destinationLab,e,m),e.transferredTo3rdParty=!1,e.transferred=!1,e.currentArea=s,e.currentLocation=t,e.status=c;var y=e.barcode.toUpperCase(),b=h.prepareRootDocumentToModify("shipments/"+y);h.batchUpdate(o,b.ref,((f={}).transferredTo3rdParty=e.transferredTo3rdParty,f.transferred=e.transferred,f.currentArea=e.currentArea,f.currentLocation=e.currentLocation,f.status=e.status,f.localTimestamp=(new Date).toISOString(),f)),null===a&&(a=b)}),o.commit(),[4,new Promise(function(e,t){var n=a.ref.onSnapshot(function(t){return S(h,void 0,void 0,function(){return k(this,function(t){return n(),e(!0),[2]})})},function(){return t()})})];case 3:return f.sent(),[4,Promise.resolve(e)];case 4:return[2,f.sent()]}})})},t.prototype.dropShipmentsToAirport=function(e,t,n,i,r){return S(this,void 0,void 0,function(){var o,a,s,c=this;return k(this,function(u){switch(u.label){case 0:return o=this.firestore.firestore.batch(),a=null,s=i?l.e.InTransitQuestAir:l.e.InTransitAirport,e.forEach(function(e){var i;c.setItemStatus(e.barcode,e.status,s),c.createTransaction(e.barcode,l.f.RSRDropToAirport,s,e.currentLocation,t.fs,e.trackingReference,r,null,null,null,null,e.currentLocation,null,null,e.originLab,e.destinationLab,e),e.transferredTo3rdParty=!1,e.transferred=!1,e.currentArea=t.fs,e.currentLocation=n?n.fs:t.fs,e.status=s,e.pickedUpFromAirport=!1;var u=e.barcode.toUpperCase(),d=c.prepareRootDocumentToModify("shipments/"+u);c.batchUpdate(o,d.ref,((i={}).transferredTo3rdParty=e.transferredTo3rdParty,i.transferred=e.transferred,i.currentArea=e.currentArea,i.currentLocation=e.currentLocation,i.status=e.status,i.pickedUpFromAirport=e.pickedUpFromAirport,i.localTimestamp=(new Date).toISOString(),i)),null===a&&(a=d)}),o.commit(),[4,new Promise(function(e,t){var n=a.ref.onSnapshot(function(t){return S(c,void 0,void 0,function(){return k(this,function(t){return n(),e(!0),[2]})})},function(){return t()})})];case 1:return u.sent(),[4,Promise.resolve(e)];case 2:return[2,u.sent()]}})})},t.prototype.pickupShipmentsFromAirport=function(e,t,n,i,r){return S(this,void 0,void 0,function(){return k(this,function(o){switch(o.label){case 0:return[4,this.pickupShipments(e,t,n,i,l.f.RSRPickupFromAirport,r)];case 1:return o.sent(),[2]}})})},t.prototype.getAirportShipment=function(e,t,n){return S(this,void 0,void 0,function(){var i;return k(this,function(r){switch(r.label){case 0:return[4,this.getShipmentByBarcode(e,t.fs,n?n.fs:null)];case 1:return(i=r.sent())?[2,Promise.resolve(i)]:[4,this.getShipmentByBarcode(e,null,null,!0)];case 2:if((i=r.sent())&&i.transport&&i.transport.destinationAirport&&i.transport.destinationAirport.fs===t.fs)return[2,Promise.resolve(i)];if(i)throw new Error("Shipment "+i.barcode+" is not at Airport: "+t["code-name-city"]+(n?"; Airline: "+n["code-name"]:""));return[2,Promise.resolve(null)]}})})},t.prototype.getInbondShipments=function(e,t){return S(this,void 0,void 0,function(){return k(this,function(n){return[2,this._shipments.filter(function(n){return!n.deleted&&n.status!==l.e.Delivered&&n.status!==l.e.DeliveredBy3rdParty&&n.status!==l.e.DeliveredBySystem&&!!n.transport&&!!n.transport.destinationAirport&&n.transport.destinationAirport.fs===e.fs&&(!t||n.transport.carrier&&n.transport.carrier.fs===t.fs)&&new Date(n.transport.eta)<=new Date&&!n.pickedUpFromAirport})]})})},t.prototype.addShipmentsToConsolidation=function(e,t,n){return S(this,void 0,void 0,function(){var i,r,o,a,s=this;return k(this,function(c){switch(c.label){case 0:return i=this.firestore.firestore.batch(),r=null,[4,Promise.all(e.map(function(e){return S(s,void 0,void 0,function(){var n,o;return k(this,function(a){switch(a.label){case 0:return[4,this.getShipmentByBarcode(e,null,null)];case 1:return(n=a.sent())&&n.parent!==t.barcode&&(o=this.prepareRootDocumentToModify("shipments/"+e),this.batchUpdate(i,o.ref,{parent:t.barcode,localTimestamp:(new Date).toISOString()}),null===r&&(r=o),n.parent=t.barcode,this.createTransaction(e,l.f.ShipmentAddedToConsolidation,n.status,null,null,null,null,null,null,null,null,n.currentLocation,null,null,n.originLab,n.destinationLab,n)),[2,e]}})})}))];case 1:return c.sent(),n&&(o=y.uniq(t.children.concat(e)),a=this.prepareRootDocumentToModify("shipments/"+t.barcode),this.batchUpdate(i,a.ref,{children:o,localTimestamp:(new Date).toISOString()}),t.children=o,this.createTransaction(t.barcode,l.f.ConsolidationUpdated,t.status,null,null,null,null,null,null,null,null,t.currentLocation,null,null,t.originLab,t.destinationLab,t)),i.commit(),[4,new Promise(function(e,t){if(null===r)e(!0);else var n=r.ref.onSnapshot(function(t){return S(s,void 0,void 0,function(){return k(this,function(t){return n(),e(!0),[2]})})},function(){return t()})})];case 2:return c.sent(),[4,Promise.resolve(!0)];case 3:return[2,c.sent()]}})})},t.prototype.deleteShipmentsFromConsolidation=function(e,t,n){return S(this,void 0,void 0,function(){var i,r,o,a,s=this;return k(this,function(c){switch(c.label){case 0:return i=this.firestore.firestore.batch(),r=null,e.forEach(function(e){var t=s.prepareRootDocumentToModify("shipments/"+e.barcode);s.batchUpdate(i,t.ref,{parent:null,localTimestamp:(new Date).toISOString()}),null===r&&(r=t),s.createTransaction(e.barcode,l.f.ShipmentRemovedFromConsolidation,e.status,null,null,null,null,null,null,null,null,e.currentLocation,null,null,e.originLab,e.destinationLab,e)}),o=t.children.filter(function(t){return!e.find(function(e){return e.barcode===t})}),a=this.prepareRootDocumentToModify("shipments/"+t.barcode),this.batchUpdate(i,a.ref,{children:o,localTimestamp:(new Date).toISOString()}),i.commit(),n||(t.children=o,this.createTransaction(t.barcode,l.f.ConsolidationUpdated,t.status,null,null,null,null,null,null,null,null,t.currentLocation,null,null,t.originLab,t.destinationLab,t)),[4,new Promise(function(e,t){if(null===r)e(!0);else var n=r.ref.onSnapshot(function(t){return S(s,void 0,void 0,function(){return k(this,function(t){return n(),e(!0),[2]})})},function(){return t()})})];case 1:return c.sent(),[4,Promise.resolve(!0)];case 2:return[2,c.sent()]}})})},t.prototype.getShipmentsByConsolidation=function(e){return S(this,void 0,void 0,function(){return k(this,function(t){switch(t.label){case 0:return[4,this.getCachedShipments([{property:"parent",operator:"==",value:e}],{orderBy:"createdAt",pageSize:1e3,direction:"desc",page:0},!0,null)];case 1:return[2,t.sent()]}})})},t.prototype.breakConsolidation=function(e){return S(this,void 0,void 0,function(){var t;return k(this,function(n){switch(n.label){case 0:return[4,this.getShipmentsByConsolidation(e.barcode)];case 1:return t=n.sent(),[4,this.createTransaction(e.barcode,l.f.ConsolidationBroken,e.status,null,null,null,null,null,null,null,null,e.currentLocation,null,null,e.originLab,e.destinationLab,e)];case 2:return n.sent(),[4,this.deleteShipmentsFromConsolidation(t,e,!0)];case 3:return n.sent(),[4,this.deleteShipment([e.barcode])];case 4:return n.sent(),[2]}})})},t.prototype.getCacheMonitoringInfo=function(){var e=localStorage.getItem("cache_monitoring");return e?JSON.parse(e):null},t.prototype.setCacheMonitoringInfo=function(e,t){var n=this.getCacheMonitoringInfo();n&&(e+=n.shipmentsCount,t+=n.itemsCount),localStorage.setItem("cache_monitoring",JSON.stringify({shipmentsCount:e,itemsCount:t}))},t.prototype.addOrUpdateCacheMonitoring=function(){return S(this,void 0,void 0,function(){var e,t,n,i;return k(this,function(r){switch(r.label){case 0:return(e=this.getCacheMonitoringInfo())?(t={shipmentsCount:e.shipmentsCount,itemsCount:e.itemsCount,employeeName:this.authService.currentUser.ssoData&&this.authService.currentUser.ssoData.credentials?this.authService.currentUser.ssoData.credentials:null,employeeBU:this.authService.currentUser.businessUnits,employeeHUB:this.authService.currentUser.homebase||null,date:(new Date).toISOString(),localTimestamp:new Date},[4,this.firestore.doc("cacheMonitoring/"+this.authService.currentUser._id)]):[3,5];case 1:n=r.sent(),r.label=2;case 2:return r.trys.push([2,4,,5]),[4,n.ref.set(t,{merge:!0})];case 3:return r.sent(),localStorage.removeItem("cache_monitoring"),[3,5];case 4:return i=r.sent(),console.log(i),[3,5];case 5:return[2]}})})},t.prototype.getLabByLocation=function(e){return S(this,void 0,void 0,function(){return k(this,function(t){switch(t.label){case 0:return[4,this._labs];case 1:return[2,t.sent().find(function(t){return t.locations.findIndex(function(t){return t.barcode.toLowerCase()===e.toLowerCase()})>-1})]}})})},t.prototype.isLocationsLabSame=function(e,t){return S(this,void 0,void 0,function(){var n,i;return k(this,function(r){switch(r.label){case 0:return[4,this.getLabByLocation(e)];case 1:return n=r.sent(),[4,this.getLabByLocation(t)];case 2:return i=r.sent(),[2,n&&i&&n.addressId===i.addressId]}})})},t.\u0275fac=function(e){return new(e||t)(r.kc(g.a),r.kc(p.v),r.kc(d.a),r.kc(h.a))},t.\u0275prov=r.Wb({token:t,factory:t.\u0275fac,providedIn:"root"}),t}(_)},"+XMB":function(e,t,n){"use strict";var i=n("ia8j"),r=n("wqBK"),o=i.inherit(r).inherit({_addWidgetPrefix:function(e){return"dx-list-"+e},_getCombinedFilter:function(){var e,t,n=this._dataSource;return n&&(t={filter:n.filter()},n._addSearchFilter(t),e=t.filter),e},_initDataSource:function(){var e=this.option("searchValue"),t=this.option("searchExpr"),n=this.option("searchMode");this.callBase(),this._dataSource&&(e&&e.length&&this._dataSource.searchValue(e),n.length&&this._dataSource.searchOperation(r.getOperationBySearchMode(n)),t&&this._dataSource.searchExpr(t))}});e.exports=o},"+csE":function(e,t,n){"use strict";n.d(t,"a",function(){return ue});var i,r=n("aiMf"),o=n("ptfe"),a=n("3Pt+"),s=n("fGHt"),c=n("c7TG"),u=n("jW8C"),l=n("7Dxw"),d=n("FbS+"),h=n("OC8m"),f=n("mjQz"),p=n("Xzt5"),g=n("pptJ"),m=n("JvtB"),v=n("Zcen"),_=n("9ans"),y=n("fXoL"),b=n("tyNb"),w=(i=function(e,t){return(i=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(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),C=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},O=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0),y.Ob(2),y.wc("ngIf",i.name.length<30),y.Ob(1),y.wc("ngIf",i.name.length>30),y.Ob(2),y.wc("ngIf",!i.commentCount)}}function L(e,t){1&e&&(y.gc(0,"div",33),y.Rc(1,"Scan Vehicle Barcode is required"),y.fc())}function R(e,t){if(1&e&&(y.gc(0,"div",33),y.Rc(1),y.fc()),2&e){var n=y.qc(2);y.Ob(1),y.Sc(n.errorMessage)}}function j(e,t){if(1&e){var n=y.hc();y.gc(0,"ion-item"),y.gc(1,"ion-row",20),y.gc(2,"ion-col",34),y.bc(3,"ion-icon",35),y.fc(),y.gc(4,"ion-col",36),y.gc(5,"ion-label"),y.Rc(6,"Mileage"),y.fc(),y.fc(),y.gc(7,"ion-col",37),y.gc(8,"ion-input",38),y.nc("ionFocus",function(){return y.Ic(n),y.qc(2).selectText()})("ngModelChange",function(e){return y.Ic(n),y.qc(2).mileage=e}),y.fc(),y.fc(),y.fc(),y.fc()}if(2&e){var i=y.qc(2);y.Ob(8),y.xc("value",i.mileage),y.wc("ngModel",i.mileage)}}function N(e,t){1&e&&(y.gc(0,"div",33),y.Rc(1," Mileage not a number "),y.fc())}function F(e,t){if(1&e&&(y.gc(0,"span"),y.gc(1,"ion-badge",29),y.Rc(2),y.fc(),y.fc()),2&e){var n=y.qc().$implicit;y.Ob(2),y.Sc(n.commentCount)}}function B(e,t){if(1&e&&(y.gc(0,"span",42),y.Rc(1),y.gc(2,"div"),y.Rc(3),y.fc(),y.fc()),2&e){var n=y.qc().$implicit;y.Ob(1),y.Tc(" ",n.name," "),y.Ob(2),y.Sc(n.value)}}function V(e,t){if(1&e&&y.bc(0,"ion-textarea",43),2&e){var n=y.qc().$implicit;y.xc("value",n.name)}}function $(e,t){if(1&e&&y.bc(0,"ion-checkbox",32),2&e){var n=y.qc().$implicit;y.xc("formControlName",n.name)}}function H(e,t){if(1&e){var n=y.hc();y.gc(0,"ion-list",19),y.gc(1,"ion-item"),y.gc(2,"ion-row",20),y.gc(3,"ion-col",21),y.gc(4,"ion-button",39),y.nc("click",function(){y.Ic(n);var e=t.$implicit;return y.qc(2).commentPrompt(e.name,"vehicleChecklist")}),y.bc(5,"ion-icon",23),y.Pc(6,F,3,1,"span",1),y.fc(),y.fc(),y.gc(7,"ion-col",24),y.Pc(8,B,4,2,"span",40),y.Pc(9,V,1,1,"ion-textarea",41),y.fc(),y.gc(10,"ion-col",27),y.Pc(11,$,1,1,"ion-checkbox",28),y.fc(),y.fc(),y.fc(),y.fc()}if(2&e){var i=t.$implicit,r=y.qc(2);y.Ob(4),y.wc("disabled",!r.isScanVehicle||""===r.scanVehicleBarcode||""!==r.scanVehicleBarcode&&!r.isBarcodeValid),y.Ob(2),y.wc("ngIf",i.commentCount>0),y.Ob(2),y.wc("ngIf",i.name.length<30),y.Ob(1),y.wc("ngIf",i.name.length>30),y.Ob(2),y.wc("ngIf",!i.commentCount&&r.isScanVehicle&&""!==r.scanVehicleBarcode&&0!=r.mileage&&+r.mileage)}}var U=function(){return{}},z=function(){return{display:"none"}};function W(e,t){if(1&e){var n=y.hc();y.gc(0,"base-modal-content"),y.Pc(1,k,1,0,"app-top-menu",1),y.Pc(2,x,1,0,"route-card",1),y.gc(3,"div",4),y.Pc(4,T,2,1,"span",1),y.Pc(5,E,2,1,"span",1),y.fc(),y.gc(6,"ion-segment",5),y.nc("ngModelChange",function(e){return y.Ic(n),y.qc().segment=e}),y.gc(7,"ion-segment-button",6),y.gc(8,"ion-label"),y.Rc(9," Pre-route Checklist "),y.fc(),y.fc(),y.gc(10,"ion-segment-button",7),y.gc(11,"ion-label"),y.Rc(12," Vehicle Checklist "),y.fc(),y.fc(),y.fc(),y.gc(13,"ion-content",8),y.gc(14,"ion-grid",8),y.gc(15,"div",9),y.gc(16,"form",10),y.nc("ngSubmit",function(){return y.Ic(n),y.qc().onSubmit()}),y.Pc(17,P,12,4,"ion-list",11),y.gc(18,"ion-button",12),y.Rc(19,"Access Route Sheet"),y.fc(),y.fc(),y.fc(),y.gc(20,"div",9,13),y.gc(22,"ion-item"),y.bc(23,"ion-icon",14),y.gc(24,"ion-input",15),y.nc("ngModelChange",function(e){return y.Ic(n),y.qc().scanVehicleBarcode=e})("ionChange",function(){y.Ic(n);var e=y.qc();return e.handleScan(e.scanVehicleBarcode)}),y.fc(),y.fc(),y.Pc(25,L,2,0,"div",16),y.Pc(26,R,2,1,"div",16),y.Pc(27,j,9,2,"ion-item",1),y.Pc(28,N,2,0,"div",16),y.gc(29,"form",17),y.nc("ngSubmit",function(){return y.Ic(n),y.qc().onSubmit()}),y.Pc(30,H,12,5,"ion-list",11),y.gc(31,"ion-button",18),y.Rc(32,"Access Route Sheet"),y.fc(),y.fc(),y.fc(),y.fc(),y.fc(),y.fc()}if(2&e){var i=y.qc();y.Ob(1),y.wc("ngIf","lg"===i.size),y.Ob(1),y.wc("ngIf",i.task),y.Ob(2),y.wc("ngIf",i.checklistErrorMessage),y.Ob(1),y.wc("ngIf",i.mileage),y.Ob(1),y.wc("ngModel",i.segment),y.Ob(9),y.wc("ngStyle","prechecklist"==i.segment?y.Ac(18,U):y.Ac(19,z)),y.Ob(1),y.wc("formGroup",i.preRouteForm),y.Ob(1),y.wc("ngForOf",i.preRouteObj),y.Ob(1),y.wc("disabled",!i.vcForm.valid||!i.preRouteForm.valid||""===i.scanVehicleBarcode||0==i.mileage),y.Ob(2),y.wc("ngStyle","vehicleChecklist"==i.segment?y.Ac(20,U):y.Ac(21,z)),y.Ob(4),y.wc("ngModel",i.scanVehicleBarcode),y.Ob(1),y.wc("ngIf",""===i.scanVehicleBarcode),y.Ob(1),y.wc("ngIf",""!==i.scanVehicleBarcode&&!i.isBarcodeValid),y.Ob(1),y.wc("ngIf",""!==i.scanVehicleBarcode&&0!==i.mileage),y.Ob(1),y.wc("ngIf",i.mileage&&0!=i.mileage&&!+i.mileage),y.Ob(1),y.wc("formGroup",i.vcForm),y.Ob(1),y.wc("ngForOf",i.vehicleObj),y.Ob(1),y.wc("disabled",!i.vcForm.valid||!i.preRouteForm.valid||""===i.scanVehicleBarcode||0==i.mileage||!+i.mileage)}}function Y(e,t){1&e&&y.bc(0,"app-top-menu")}function G(e,t){if(1&e&&(y.gc(0,"div",4),y.Rc(1),y.fc()),2&e){var n=y.qc(2);y.Ob(1),y.Sc(n.checklistErrorMessage)}}function q(e,t){1&e&&y.bc(0,"ion-icon",58)}function K(e,t){1&e&&y.bc(0,"ion-icon",58)}function X(e,t){if(1&e&&(y.gc(0,"span"),y.gc(1,"ion-badge",29),y.Rc(2),y.fc(),y.fc()),2&e){var n=y.qc().$implicit;y.Ob(2),y.Sc(n.commentCount)}}function J(e,t){if(1&e&&(y.gc(0,"span",30),y.Rc(1),y.fc()),2&e){var n=y.qc().$implicit;y.Ob(1),y.Sc(n.name)}}function Q(e,t){if(1&e&&y.bc(0,"ion-textarea",31),2&e){var n=y.qc().$implicit;y.xc("value",n.name)}}function Z(e,t){if(1&e&&y.bc(0,"ion-checkbox",32),2&e){var n=y.qc().$implicit;y.xc("formControlName",n.name)}}function ee(e,t){if(1&e){var n=y.hc();y.gc(0,"ion-list",19),y.gc(1,"ion-item"),y.gc(2,"ion-row",20),y.gc(3,"ion-col",21),y.gc(4,"ion-button",22),y.nc("click",function(){y.Ic(n);var e=t.$implicit;return y.qc(2).commentPrompt(e.name,"postchecklist")}),y.bc(5,"ion-icon",23),y.Pc(6,X,3,1,"span",1),y.fc(),y.fc(),y.gc(7,"ion-col",24),y.Pc(8,J,2,1,"span",25),y.Pc(9,Q,1,1,"ion-textarea",26),y.fc(),y.gc(10,"ion-col",27),y.Pc(11,Z,1,1,"ion-checkbox",28),y.fc(),y.fc(),y.fc(),y.fc()}if(2&e){var i=t.$implicit;y.Ob(6),y.wc("ngIf",i.commentCount>0),y.Ob(2),y.wc("ngIf",i.name.length<30),y.Ob(1),y.wc("ngIf",i.name.length>30),y.Ob(2),y.wc("ngIf",!i.commentCount)}}function te(e,t){if(1&e&&(y.gc(0,"ion-col",59),y.gc(1,"span",33),y.Rc(2),y.fc(),y.fc()),2&e){var n=y.qc(2);y.Ob(2),y.Sc(n.endMileageErrorMessage)}}function ne(e,t){if(1&e&&(y.gc(0,"span"),y.gc(1,"ion-badge",29),y.Rc(2),y.fc(),y.fc()),2&e){var n=y.qc().$implicit;y.Ob(2),y.Sc(n.commentCount)}}function ie(e,t){if(1&e&&(y.gc(0,"span",42),y.Rc(1),y.gc(2,"div"),y.Rc(3),y.fc(),y.fc()),2&e){var n=y.qc().$implicit;y.Ob(1),y.Tc(" ",n.name," "),y.Ob(2),y.Sc(n.value)}}function re(e,t){if(1&e&&y.bc(0,"ion-textarea",43),2&e){var n=y.qc().$implicit;y.xc("value",n.name)}}function oe(e,t){if(1&e&&y.bc(0,"ion-checkbox",32),2&e){var n=y.qc().$implicit;y.xc("formControlName",n.name)}}function ae(e,t){if(1&e){var n=y.hc();y.gc(0,"ion-list",19),y.gc(1,"ion-item"),y.gc(2,"ion-row",20),y.gc(3,"ion-col",21),y.gc(4,"ion-button",22),y.nc("click",function(){y.Ic(n);var e=t.$implicit;return y.qc(2).commentPrompt(e.name,"postVehicleChecklist")}),y.bc(5,"ion-icon",23),y.Pc(6,ne,3,1,"span",1),y.fc(),y.fc(),y.gc(7,"ion-col",24),y.Pc(8,ie,4,2,"span",40),y.Pc(9,re,1,1,"ion-textarea",41),y.fc(),y.gc(10,"ion-col",27),y.Pc(11,oe,1,1,"ion-checkbox",28),y.fc(),y.fc(),y.fc(),y.fc()}if(2&e){var i=t.$implicit,r=y.qc(2);y.Ob(6),y.wc("ngIf",i.commentCount>0),y.Ob(2),y.wc("ngIf",i.name.length<30),y.Ob(1),y.wc("ngIf",i.name.length>30),y.Ob(2),y.wc("ngIf",!i.commentCount&&r.endMileage&&!r.endMileageErrorMessage)}}function se(e,t){if(1&e){var n=y.hc();y.gc(0,"base-modal-content"),y.Pc(1,Y,1,0,"app-top-menu",1),y.bc(2,"route-card"),y.Pc(3,G,2,1,"div",44),y.gc(4,"ion-segment",5),y.nc("ngModelChange",function(e){return y.Ic(n),y.qc().segment=e}),y.gc(5,"ion-segment-button",45),y.gc(6,"ion-label"),y.Rc(7," Post-route "),y.Pc(8,q,1,0,"ion-icon",46),y.fc(),y.fc(),y.gc(9,"ion-segment-button",47),y.gc(10,"ion-label"),y.Rc(11," Vehicle "),y.Pc(12,K,1,0,"ion-icon",46),y.fc(),y.fc(),y.fc(),y.gc(13,"ion-content",8),y.gc(14,"ion-grid",8),y.gc(15,"div",9),y.gc(16,"form",48),y.Pc(17,ee,12,4,"ion-list",11),y.fc(),y.fc(),y.gc(18,"div",9,49),y.gc(20,"ion-item"),y.bc(21,"ion-icon",50),y.gc(22,"span"),y.Rc(23),y.fc(),y.fc(),y.gc(24,"ion-item"),y.gc(25,"ion-row"),y.gc(26,"ion-col",51),y.bc(27,"ion-icon",35),y.fc(),y.gc(28,"ion-col",52),y.gc(29,"ion-label"),y.Rc(30,"Start Mileage"),y.fc(),y.fc(),y.gc(31,"ion-col",53),y.bc(32,"ion-input",54),y.fc(),y.gc(33,"ion-col",51),y.bc(34,"ion-icon",35),y.fc(),y.gc(35,"ion-col",52),y.gc(36,"ion-label"),y.Rc(37,"End Mileage"),y.fc(),y.fc(),y.gc(38,"ion-col",53),y.gc(39,"ion-input",55),y.nc("ngModelChange",function(e){return y.Ic(n),y.qc().endMileage=e})("ionChange",function(){y.Ic(n);var e=y.qc();return e.checkEndMileage(e.endMileage)}),y.fc(),y.fc(),y.Pc(40,te,3,1,"ion-col",56),y.fc(),y.fc(),y.gc(41,"form",17),y.nc("ngSubmit",function(){return y.Ic(n),y.qc().onSubmit()}),y.Pc(42,ae,12,4,"ion-list",11),y.gc(43,"ion-button",57),y.Rc(44,"Close Route"),y.fc(),y.fc(),y.fc(),y.fc(),y.fc(),y.fc()}if(2&e){var i=y.qc();y.Ob(1),y.wc("ngIf","lg"===i.size),y.Ob(2),y.wc("ngIf",i.checklistErrorMessage),y.Ob(1),y.wc("ngModel",i.segment),y.Ob(4),y.wc("ngIf",i.postRouteForm.valid),y.Ob(4),y.wc("ngIf",i.vcPostForm.valid),y.Ob(3),y.wc("ngStyle","postchecklist"==i.segment?y.Ac(16,U):y.Ac(17,z)),y.Ob(1),y.wc("formGroup",i.postRouteForm),y.Ob(1),y.wc("ngForOf",i.postRouteObj),y.Ob(1),y.wc("ngStyle","postVehicleChecklist"==i.segment?y.Ac(18,U):y.Ac(19,z)),y.Ob(5),y.Sc(i.vehicleBarcode),y.Ob(9),y.xc("value",i.startMileage),y.Ob(7),y.wc("ngModel",i.endMileage),y.Ob(1),y.wc("ngIf",i.endMileageErrorMessage),y.Ob(1),y.wc("formGroup",i.vcPostForm),y.Ob(1),y.wc("ngForOf",i.postVehicleObj),y.Ob(1),y.Pb("disabled",!i.vcPostForm.valid||!i.postRouteForm.valid||""!==i.endMileageErrorMessage||!i.endMileage)}}function ce(e,t){1&e&&y.bc(0,"cmx-loader")}var ue=function(e){function t(t,n,i,r,o,a,s,c,u,l,d,h,f){var p=e.call(this)||this;return p.appConfigService=t,p.tasksBroadcastService=n,p.router=i,p.authService=r,p.taskManagerService=o,p.tasksService=a,p.formBuilder=s,p.staticsService=c,p.modalController=u,p.viewSizeService=l,p.alertCtrl=d,p.notificationService=h,p.toastController=f,p.setupType="pre",p.loader=!1,p.mileage=0,p.scanVehicleBarcode="",p.checklistErrorMessage="",p.isSetupTask=!1,p.isBarcodeValid=!1,p.isScanVehicle=!1,p.isValidPreRouteForm=!1,p.isValidPostRouteForm=!1,p.toastOpenVH=!1,p.toastOpenPR=!1,p.totalMileage=0,p.endMileageErrorMessage="",p.menuItems=[],p.showDeliveries=!1,p}return w(t,e),t.prototype.ionViewWillEnter=function(){console.log("will enter setup task comp")},t.prototype.ionViewWillLeave=function(){this.notificationService.canShowNotification=!0,console.log("will leave from setup task"),(this.toastOpenVH||this.toastOpenPR)&&this.toastController.dismiss()},t.prototype.ngOnInit=function(){var e=this;if(this.showDeliveries=this.appConfigService.appConfig.showDeliveries,this.task=this.taskManagerService.task,this.viewSizeService.size.subscribe(function(t){e.size=t}),console.log("setup setupType ",this.setupType),console.log("setup task ",this.task),"pre"===this.setupType&&(this.subscriptions.push(this.tasksBroadcastService.routeStopsCountChanged.subscribe(function(t){if(console.log("tasksBroadcastService.routeStopsCountChanged",t),!0===t.isAddedStop)e.taskManagerService.task.main.push(t),e.taskManagerService.task.properties.numberOfStops+=1;else if(!1===t.isAddedStop){var n=e.taskManagerService.task.main.findIndex(function(e){return e._id===t._id});n>-1&&(e.taskManagerService.task.main.splice(n,1),e.taskManagerService.task.properties.numberOfStops-=1)}})),this.segment="prechecklist",this.task.pre.forEach(function(t){console.log("elemnet",t),"Pre Vehicle"===t.name?(e.vehicleObjId=t._id,e.vehicleObj=t.properties.checklist):"Pre Route"===t.name&&(e.preRouteObjId=t._id,e.preRouteObj=t.properties.checklist)}),this.formItemPreRoute=this.preRouteObj.map(function(e){return{name:e.name,validation:e.validation,default:e.default,commentCount:e.commentCount}}),this.formItemVehicle=this.vehicleObj.map(function(e){return{name:e.name,validation:e.validation,default:e.default,commentCount:e.commentCount}}),this.formPreRouteObj={},this.formVehicleObj={},this.formItemPreRoute.forEach(function(t){e.formPreRouteObj[t.name]="required"!==t.validation||""!==t.commentCount&&0!==t.commentCount?[t.default]:[t.default,[a.D.requiredTrue]]}),this.formItemVehicle.forEach(function(t){e.formVehicleObj[t.name]="required"!==t.validation||""!==t.commentCount&&0!==t.commentCount?[t.default]:[t.default,[a.D.requiredTrue]]}),this.preRouteForm=this.formBuilder.group(this.formPreRouteObj),this.vcForm=this.formBuilder.group(this.formVehicleObj)),"post"===this.setupType){this.notificationService.canShowNotification=!1,this.segment="postchecklist";var t=null;this.task.equipment.forEach(function(n){n.vehicle&&(n.vehicle.isActive?t=n.vehicle:e.totalMileage+=n.vehicle.endingMileage.miles-n.vehicle.startingMileage.miles)}),this.vehicleBarcode=t?t.barcode:"",this.startMileage=t?t.startingMileage.miles:0,this.endMileage=t&&t.endingMileage&&t.endingMileage.miles?t.endingMileage.miles:null,this.task.post.forEach(function(t){console.log("post elemnet",t),"Post Vehicle"===t.name?(e.postVehicleObjId=t._id,e.postVehicleObj=t.properties.checklist):"Post Route"===t.name&&(e.postRouteObjId=t._id,e.postRouteObj=t.properties.checklist)}),this.formItemPostRoute=this.postRouteObj.map(function(e){return{name:e.name,validation:e.validation,default:e.default,commentCount:e.commentCount}}),this.formItemPostVehicle=this.postVehicleObj.map(function(e){return{name:e.name,validation:e.validation,default:e.default,commentCount:e.commentCount}}),this.formPostRouteObj={},this.formPostVehicleObj={},this.formItemPostRoute.forEach(function(t){e.formPostRouteObj[t.name]="required"!==t.validation||""!==t.commentCount&&0!==t.commentCount?[t.default]:[t.default,[a.D.requiredTrue]]}),this.formItemPostVehicle.forEach(function(t){e.formPostVehicleObj[t.name]="required"!==t.validation||""!==t.commentCount&&0!==t.commentCount?[t.default]:[t.default,[a.D.requiredTrue]]}),this.postRouteForm=this.formBuilder.group(this.formPostRouteObj),this.vcPostForm=this.formBuilder.group(this.formPostVehicleObj)}this.onChanges(),"pre"===this.setupType&&this.initMenuItems(),this.subscriptions.push(this.barcodeScanEvent.subscribe(function(t){"pre"===e.setupType&&"vehicleChecklist"==e.segment&&(e.scanVehicleBarcode=t)}))},t.prototype.ngOnDestroy=function(){this.subscriptions.forEach(function(e){e.unsubscribe()})},t.prototype.onChanges=function(){var e=this;console.log(this.preRouteForm),"pre"===this.setupType&&(this.preRouteForm.statusChanges.subscribe(function(t){e.checklist=t,console.log(t),"VALID"===t?((e.toastOpenVH||e.toastOpenPR)&&(e.checklistErrorMessage=""),e.vcForm.invalid&&(e.checklistErrorMessage="Vehicle Checklist is not complete"),e.toastOpenPR=!1,e.isValidPreRouteForm=!0,e.segment="vehicleChecklist",e.vchecklist.scrollToTop()):(e.toastOpenPR||(e.toastOpenPR=!0,e.checklistErrorMessage="PRE-ROUTE Checklist is not complete"),e.isValidPreRouteForm=!1)}),this.vcForm.statusChanges.subscribe(function(t){"vehicleChecklist"===e.segment&&("VALID"===t?((e.toastOpenVH||e.toastOpenPR)&&(e.checklistErrorMessage=""),e.preRouteForm.invalid&&(e.checklistErrorMessage="PRE-ROUTE Checklist is not complete"),e.toastOpenVH=!1):e.toastOpenVH||(e.toastOpenVH=!0,e.checklistErrorMessage="Vehicle Checklist is not complete"))})),"post"===this.setupType&&(this.postRouteForm.statusChanges.subscribe(function(t){e.checklist=t,"VALID"===t?((e.toastOpenVH||e.toastOpenPR)&&(e.checklistErrorMessage=""),e.vcPostForm.invalid&&(e.checklistErrorMessage="Vehicle Checklist is not complete"),e.toastOpenPR=!1,e.isValidPostRouteForm=!0,e.segment="postVehicleChecklist",e.postVehicleChecklist.scrollToTop()):(e.toastOpenPR||(e.toastOpenPR=!0,e.checklistErrorMessage="POST-ROUTE Checklist is not complete"),e.isValidPostRouteForm=!1)}),this.vcPostForm.statusChanges.subscribe(function(t){"postVehicleChecklist"===e.segment&&("VALID"===t?((e.toastOpenVH||e.toastOpenPR)&&(e.checklistErrorMessage=""),e.postRouteForm.invalid&&(e.checklistErrorMessage="POST-ROUTE Checklist is not complete"),e.toastOpenVH=!1):e.toastOpenVH||(e.toastOpenVH=!0,e.checklistErrorMessage="Vehicle Checklist is not complete"))}))},t.prototype.showToast=function(){return C(this,void 0,void 0,function(){var e;return O(this,function(t){switch(t.label){case 0:return e="","pre"===this.setupType&&(e="prechecklist"===this.segment?"PRE-ROUTE Checklist is not complete":"Vehicle Checklist is not complete"),"post"===this.setupType&&(e="postchecklist"===this.segment?"POST-ROUTE Checklist is not complete":"Vehicle Checklist is not complete"),[4,this.toastController.create({message:e,position:"top",color:"danger",cssClass:"mt-40px"})];case 1:return[2,t.sent().present()]}})})},t.prototype.selectText=function(){document.getElementById("scanMileage").getElementsByTagName("input")[0].select()},t.prototype.dismiss=function(){var e=this;this.router.navigateByUrl("main-menu").then(function(){e.taskManagerService.dismissAllModals()})},t.prototype.handleScan=function(e){return C(this,void 0,void 0,function(){var t=this;return O(this,function(n){return console.log(e),this.scanVehicleBarcode=e,"VH"!==this.scanVehicleBarcode.substring(0,2).toUpperCase()?(this.isBarcodeValid=!1,this.errorMessage="Scan Barcode is not valid",[2]):(this.staticsService.getVehicleInfoByBarcode(this.scanVehicleBarcode).subscribe(function(e){console.log(e),t.mileage=0!==e.data.length?e.data[0].mileage.miles:0,console.log(t.mileage),console.log(0!==t.mileage&&"VH"===t.scanVehicleBarcode.substring(0,2).toUpperCase()),0!==t.mileage&&"VH"===t.scanVehicleBarcode.substring(0,2).toUpperCase()||(t.isBarcodeValid=!1,t.errorMessage="Scan Barcode is not valid"),0!==t.mileage&&"VH"===t.scanVehicleBarcode.substring(0,2).toUpperCase()&&(t.isBarcodeValid=!0),t.isScanVehicle=!0},function(e){console.log(e),console.log(e.error);var n=new Date;console.log(n.toISOString());var i=new Date(e.error.body.checkedOutAt),r=(new Date(n.toISOString()),i.getMonth()+1+"/"+i.getDate()+"/"+i.getFullYear()+","+i.toLocaleString("en-US",{hour:"numeric",minute:"numeric",hour12:!0})),o=e.error.body.routeCode;400===e.error.status&&e.error.body.routeCode?(console.log(i.getHours()),e.error.body.checkoutAllowed?t.presentConfirm(r,e.error.body):(t.errorMessage="The vehicle was checkout out at "+r+" and is currently being used to run "+o+". Please select/scan another vehicle",t.isBarcodeValid=!1,t.mileage=0)):(t.isBarcodeValid=!1,t.errorMessage=e.error.body,t.mileage=0)}),[2])})})},t.prototype.presentConfirm=function(e,t){return C(this,void 0,void 0,function(){var n=this;return O(this,function(i){switch(i.label){case 0:return[4,this.alertCtrl.create({message:"The vehicle was checkout out at "+e+" and is currently being used to run "+t.routeCode+'. To proceed with checking out this vehicle, select "CONTINUE". To checkout different vehicle, select "CANCEL"',buttons:[{text:"Cancel",role:"cancel",handler:function(){console.log("Cancel clicked"),n.errorMessage="Please select/scan another vehicle"}},{text:"Continue",handler:function(){return C(n,void 0,void 0,function(){return O(this,function(e){return this.mileage=t.Mileage||0,0===this.mileage?(this.isBarcodeValid=!1,this.errorMessage="Scan Barcode is not valid",[2]):(this.isBarcodeValid=!0,this.isScanVehicle=!0,console.log("Continue clicked"),console.log(this.scanVehicleBarcode),this.errorMessage="",[2])})})}}]})];case 1:return i.sent().present(),[2]}})})},t.prototype.commentPrompt=function(e,t){return C(this,void 0,void 0,function(){var n,i,r,o,a,c=this;return O(this,function(u){switch(u.label){case 0:return"prechecklist"===t&&(n=this.preRouteForm,i=this.formPreRouteObj,r=this.preRouteObj,o=this.preRouteObjId),"vehicleChecklist"===t&&(n=this.vcForm,i=this.formVehicleObj,r=this.vehicleObj,o=this.vehicleObjId),"postchecklist"===t&&(n=this.postRouteForm,i=this.formPostRouteObj,r=this.postRouteObj,o=this.postRouteObjId),"postVehicleChecklist"===t&&(n=this.vcPostForm,i=this.formPostVehicleObj,r=this.postVehicleObj,o=this.postVehicleObjId),(this.toastOpenVH||this.toastOpenPR)&&(this.toastOpenVH=this.toastOpenPR=!1,this.toastController.dismiss()),[4,this.modalController.create({component:s.a,componentProps:{itemName:e,checklistObj:r,checklistObjId:o}})];case 1:return[4,(a=u.sent()).present()];case 2:return u.sent(),[4,a.onDidDismiss().then(function(t){c.tasksService.getTasksById(o).subscribe(function(t){t.properties.checklist.forEach(function(t){t.name===e&&(t.commentCount>0?(n.controls[e].clearValidators(),n.controls[e].updateValueAndValidity()):0===t.commentCount&&(n.controls[e].setValidators(i[e][1]),n.controls[e].updateValueAndValidity()),r.forEach(function(n){n.name===e&&(n.commentCount=t.commentCount)}))})},function(e){c.loader=!1,c.taskManagerService.showAlert(c.taskManagerService.defaultErrorHeader,e.message||c.taskManagerService.defaultErrorMessage)})})];case 3:return u.sent(),[2]}})})},t.prototype.openCbag=function(){return C(this,void 0,void 0,function(){return O(this,function(e){switch(e.label){case 0:return[4,this.modalController.create({component:v.a,componentProps:new p.a({bagType:"cBag",isOnline:!0})})];case 1:return e.sent().present(),[2]}})})},t.prototype.initMenuItems=function(){this.menuItems=[{name:"Uncheck Route",icon:"./assets/icon/uncheck-route.svg",eventName:"uncheck-route",disableWhenOffline:!0,action:this.uncheckRoute.bind(this)}],this.showDeliveries&&this.menuItems.push({name:"Setup Delivery",icon:"./assets/icon/delivery.svg",eventName:"setup-delivery",parameters:{stops:this.taskManagerService.task.main}})},t.prototype.uncheckRoute=function(){return C(this,void 0,void 0,function(){var e=this;return O(this,function(t){switch(t.label){case 0:return[4,this.taskManagerService.showConfirmation("","Are you sure you want to uncheckout your route?","Yes","No")];case 1:return t.sent()?(this.loader=!0,this.tasksService.updateTaskByType("updateRouteStatus",this.task._id,{status:f.e.notAssigned,users:[],sessionId:this.authService.sessionId}).subscribe(function(t){e.loader=!1,e.notificationService.resetNotifications(),e.dismiss()},function(t){e.loader=!1,e.taskManagerService.showAlert(e.taskManagerService.defaultErrorHeader,t.message||e.taskManagerService.defaultErrorMessage)}),[2]):[2]}})})},t.prototype.onSubmit=function(){return C(this,void 0,void 0,function(){var e,t,n=this;return O(this,function(i){switch(i.label){case 0:if(this.loader=!0,"pre"!==this.setupType)return[3,10];if(!this.scanVehicleBarcode)return[3,9];this.staticsService.updateMileage(this.scanVehicleBarcode,+this.mileage).subscribe(function(e){console.log(e)},function(e){n.loader=!1,n.taskManagerService.showAlert(n.taskManagerService.defaultErrorHeader,e.message||n.taskManagerService.defaultErrorMessage)}),i.label=1;case 1:return i.trys.push([1,7,,8]),[4,this.tasksService.addVehicle(this.taskManagerService.task._id,this.scanVehicleBarcode)];case 2:return i.sent(),[4,this.tasksService.copyActiveRouteToFirebase()];case 3:return i.sent(),e=this,[4,this.tasksService.getTasksActiveRoute()];case 4:return e.task=i.sent(),this.taskManagerService.task=this.task,[4,this.taskManagerService.dismissAllModals()];case 5:return i.sent(),[4,this.modalController.create({component:l.a,componentProps:new p.a({activeRoute:!0,task:this.task})})];case 6:return i.sent().present(),[3,8];case 7:return t=i.sent(),this.loader=!1,this.taskManagerService.showAlert(this.taskManagerService.defaultErrorHeader,t.message||this.taskManagerService.defaultErrorMessage),[3,8];case 8:this.loader=!1,i.label=9;case 9:try{this.tasksService.updateTaskByType("updateChecklist",this.preRouteObjId,this.preRouteObj),this.tasksService.updateTaskByType("updateChecklist",this.vehicleObjId,this.vehicleObj)}catch(r){this.loader=!1,this.taskManagerService.showAlert(this.taskManagerService.defaultErrorHeader,r.message||this.taskManagerService.defaultErrorMessage)}i.label=10;case 10:return"post"===this.setupType&&this.tasksService.updateEndingMileage(this.task._id,this.vehicleBarcode,this.endMileage).subscribe(function(e){return C(n,void 0,void 0,function(){var e,t=this;return O(this,function(n){switch(n.label){case 0:return[4,this.tasksService.getGeolocation()];case 1:return e=n.sent(),this.tasksService.updateTaskByType("updateRouteStatus",this.task._id,{status:f.e.completed,lat:e.lat,long:e.long,sessionId:this.authService.sessionId}).subscribe(function(e){return C(t,void 0,void 0,function(){return O(this,function(e){return this.taskManagerService.task.status=f.e.completed,this.taskManagerService.task.users=[],this.router.navigateByUrl("main-menu"),window.location.reload(),[2]})})},function(e){return C(t,void 0,void 0,function(){return O(this,function(t){switch(t.label){case 0:return this.loader=!1,[4,this.alertCtrl.create({message:e.error.body,buttons:[{text:"Ok",role:"cancel"}]})];case 1:return t.sent().present(),[2]}})})}),[2]}})})},function(e){return C(n,void 0,void 0,function(){return O(this,function(t){return this.loader=!1,this.taskManagerService.showAlert(this.taskManagerService.defaultErrorHeader,e.message||this.taskManagerService.defaultErrorMessage),[2]})})}),[2]}})})},t.prototype.checkEndMileage=function(e){return C(this,void 0,void 0,function(){var t,n=this;return O(this,function(i){switch(i.label){case 0:return e&&0!=e&&!+e?(this.endMileageErrorMessage="Ending mileage not a number.",[2]):e<=this.startMileage||e-this.startMileage>999?(e<=this.startMileage&&(this.endMileageErrorMessage="Ending mileage must be greater than starting mileage."),e-this.startMileage>999&&(this.endMileageErrorMessage="Ending mileage that is > 999 more than the starting mileage."),[3,3]):[3,1];case 1:return this.endMileageErrorMessage="",this.totalMileage+(e-this.startMileage)>400?(t="",this.totalMileage?(t="Total mileage driven by route is greater than 400 miles.Confirm ending mileage for
"+this.vehicleBarcode,this.task.equipment.forEach(function(e){e.vehicle&&(e.vehicle.isActive||(t+="
"+e.vehicle.barcode+" - "+(e.vehicle.endingMileage.miles-e.vehicle.startingMileage.miles)))}),t+="
"+this.vehicleBarcode+" - "+this.endMileage):t="Total mileage driven by route is greater than 400 miles.Confirm ending mileage for "+this.vehicleBarcode,[4,this.alertCtrl.create({message:t,buttons:[{text:"Yes",handler:function(){n.endMileageErrorMessage=""}},{text:"No",role:"cancel",handler:function(){n.endMileageErrorMessage="Total mileage driven by route is greater than 400 miles."}}]})]):[3,3];case 2:i.sent().present(),i.label=3;case 3:return[2]}})})},t.\u0275fac=function(e){return new(e||t)(y.ac(m.a),y.ac(g.a),y.ac(b.g),y.ac(_.a),y.ac(r.a),y.ac(o.a),y.ac(a.f),y.ac(u.a),y.ac(c.Gb),y.ac(d.a),y.ac(c.a),y.ac(h.a),y.ac(c.Rb))},t.\u0275cmp=y.Ub({type:t,selectors:[["app-setup-task"]],viewQuery:function(e,t){var n;1&e&&(y.Xc(c.t,!0),y.Xc(c.t,!0),y.Xc(c.t,!0)),2&e&&(y.Ec(n=y.oc())&&(t.vchecklist=n.first),y.Ec(n=y.oc())&&(t.scanMileage=n.first),y.Ec(n=y.oc())&&(t.postVehicleChecklist=n.first))},features:[y.Lb],decls:5,vars:6,consts:[["title","Route Checklist","hideCloseButton","true",3,"menuItems","showBackButton","onDismiss"],[4,"ngIf"],[3,"click"],["name","briefcase"],["id","error_checklist"],[3,"ngModel","ngModelChange"],["value","prechecklist","checked","",1,"font-small"],["value","vehicleChecklist",1,"font-small"],[2,"padding","0px","margin","0px"],[3,"ngStyle"],[3,"formGroup","ngSubmit"],["no-padding","",4,"ngFor","ngForOf"],["type","submit","expand","block",1,"ion-padding",3,"disabled"],["vchecklist",""],["src","./assets/icon/vehicle.svg",1,"ion-padding"],["type","text","placeholder","SCAN VEHICLE BARCODE","value","","id","scanVehicleBarcode","uppercase","",3,"ngModel","ngModelChange","ionChange"],["id","error",4,"ngIf"],[2,"padding-bottom","20px",3,"formGroup","ngSubmit"],["type","submit","padding","","expand","block",3,"disabled"],["no-padding",""],[2,"width","100%"],["size","2",1,"ion-align-self-center",2,"padding","18px 0px"],["fill","clear",3,"click"],["slot","icon-only","name","chatbubbles"],["size","8"],["padding","",4,"ngIf"],["rows","8","readonly","true","style","padding-left: 10px",3,"value",4,"ngIf"],["size","2"],[3,"formControlName",4,"ngIf"],["id","notifications-badge"],["padding",""],["rows","8","readonly","true",2,"padding-left","10px",3,"value"],[3,"formControlName"],["id","error"],["size","2",2,"font-size","20px"],["padding","","src","./assets/icon/odometer.svg"],["size","7"],["padding-start","","size","3"],["type","tel","maxLength","6","id","scanMileage","numbers","",3,"ngModel","value","ionFocus","ngModelChange"],["fill","clear",3,"disabled","click"],["text-wrap","",4,"ngIf"],["readonly","true","rows","8",3,"value",4,"ngIf"],["text-wrap",""],["readonly","true","rows","8",3,"value"],["id","error_checklist",4,"ngIf"],["value","postchecklist","checked","",1,"font-small"],["name","checkmark-circle-outline",4,"ngIf"],["value","postVehicleChecklist",1,"font-small"],[3,"formGroup"],["postVehicleChecklist",""],["padding","","src","./assets/icon/vehicle.svg"],["padding-start","","size","2"],["padding-start","","size","4"],["padding-start","","size","6"],["type","number","readonly","",3,"value"],["type","tel","maxlength","6","id","scanMileage","placeholder","Enter Miles","numbers","",3,"ngModel","ngModelChange","ionChange"],["padding-start","","size","12",4,"ngIf"],["type","submit","padding","","expand","block"],["name","checkmark-circle-outline"],["padding-start","","size","12"]],template:function(e,t){1&e&&(y.gc(0,"base-modal",0),y.nc("onDismiss",function(){return t.dismiss()}),y.Pc(1,S,3,0,"base-modal-header",1),y.Pc(2,W,33,22,"base-modal-content",1),y.Pc(3,se,45,20,"base-modal-content",1),y.fc(),y.Pc(4,ce,1,0,"cmx-loader",1)),2&e&&(y.wc("menuItems",t.menuItems)("showBackButton","pre"!==t.setupType),y.Ob(1),y.wc("ngIf","pre"===t.setupType),y.Ob(1),y.wc("ngIf","pre"===t.setupType),y.Ob(1),y.wc("ngIf","post"===t.setupType),y.Ob(1),y.wc("ngIf",t.loader))},styles:["#notifications-badge[_ngcontent-%COMP%]{background-color:#b9c930;color:#000;position:absolute;top:1px;right:7px;border-radius:100%;padding:1px}ion-col[_ngcontent-%COMP%]{align-self:center}#error[_ngcontent-%COMP%]{padding-left:36px;padding-top:5px}#error[_ngcontent-%COMP%], #error_checklist[_ngcontent-%COMP%]{color:red;font-size:12px}#error_checklist[_ngcontent-%COMP%]{padding-left:16px}#success[_ngcontent-%COMP%]{color:#4bb543;padding-left:36px;padding-top:5px;font-size:12px}"]}),t}(p.a)},"+s0g":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},"+wj7":function(e,t,n){"use strict";var i=o(n("BWGd")),r=o(n("2RPT"));function o(e){return e&&e.__esModule?e:{default:e}}i.default.registerModule("filterBuilder",r.default)},"//9w":function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},"/7L9":function(e,t,n){"use strict";var i=n("IWKj");e.exports=i({E0001:"Method is not implemented",E0002:"Member name collision: {0}",E0003:"A class must be instantiated using the 'new' keyword",E0004:"The NAME property of the component is not specified",E0005:"Unknown device",E0006:"Unknown endpoint key is requested",E0007:"'Invalidate' method is called outside the update transaction",E0008:"Type of the option name is not appropriate to create an action",E0009:"Component '{0}' has not been initialized for an element",E0010:"Animation configuration with the '{0}' type requires '{1}' configuration as {2}",E0011:"Unknown animation type '{0}'",E0012:"jQuery version is too old. Please upgrade jQuery to 1.10.0 or later",E0013:"KnockoutJS version is too old. Please upgrade KnockoutJS to 2.3.0 or later",E0014:"The 'release' method shouldn't be called for an unlocked Lock object",E0015:"Queued task returned an unexpected result",E0017:"Event namespace is not defined",E0018:"DevExpress.ui.DevExpressPopup widget is required",E0020:"Template engine '{0}' is not supported",E0021:"Unknown theme is set: {0}",E0022:"LINK[rel=DevExpress-theme] tags must go before DevExpress included scripts",E0023:"Template name is not specified",E0024:"DevExtreme bundle already included",E0025:"Unexpected argument type",E0100:"Unknown validation type is detected",E0101:"Misconfigured range validation rule is detected",E0102:"Misconfigured comparison validation rule is detected",E0103:"validationCallback of an asynchronous rule should return a jQuery or a native promise",E0110:"Unknown validation group is detected",E0120:"Adapter for a DevExpressValidator component cannot be configured",E0121:"The 'customItem' field of the 'onCustomItemCreating' function's parameter should contain a custom item or Promise that is resolved after the item is created.",W0000:"'{0}' is deprecated in {1}. {2}",W0001:"{0} - '{1}' option is deprecated in {2}. {3}",W0002:"{0} - '{1}' method is deprecated in {2}. {3}",W0003:"{0} - '{1}' property is deprecated in {2}. {3}",W0004:"Timeout for theme loading is over: {0}",W0005:"'{0}' event is deprecated in {1}. {2}",W0006:"Invalid recurrence rule: '{0}'",W0007:"'{0}' Globalize culture is not defined",W0008:"Invalid view name: '{0}'",W0009:"Invalid time zone name: '{0}'",W0010:"{0} is deprecated in {1}. {2}",W0011:"Number parsing is invoked while the parser is not defined",W0012:"Date parsing is invoked while the parser is not defined",W0013:"'{0}' file is deprecated in {1}. {2}",W0014:"{0} - '{1}' type is deprecated in {2}. {3}",W0015:"Instead of returning a value from the '{0}' function, write it into the '{1}' field of the function's parameter.",W0016:'The "{0}" option does not accept the "{1}" value since v.{2}. {3}.'})},"/ABI":function(e,t,n){"use strict";n.d(t,"a",function(){return C}),n.d(t,"b",function(){return O});var i=n("fXoL"),r=n("R0Ic"),o=n("ofXK"),a=n("tyNb"),s=n("c7TG");function c(e,t){if(1&e){var n=i.hc();i.gc(0,"ul",1),i.gc(1,"cmx-submenu",2),i.nc("onItemClick",function(e){return i.Ic(n),i.qc().itemClick(e)}),i.fc(),i.fc()}if(2&e){var r=i.qc();i.Ob(1),i.wc("item",r.model)("reset",r.reset)}}function u(e,t){if(1&e&&i.bc(0,"i"),2&e){var n=i.qc(3).$implicit;i.Qb(n.icon)}}function l(e,t){if(1&e&&i.bc(0,"img",10),2&e){var n=i.qc(3).$implicit;i.wc("src",n.iconSrc,i.Kc)}}function d(e,t){1&e&&i.bc(0,"i",11)}function h(e,t){if(1&e){var n=i.hc();i.gc(0,"a",6),i.nc("click",function(e){i.Ic(n);var t=i.qc(2),r=t.$implicit,o=t.index;return i.qc().itemClick(e,r,o)}),i.Pc(1,u,1,3,"i",7),i.Pc(2,l,1,1,"img",8),i.gc(3,"span"),i.Rc(4),i.fc(),i.Pc(5,d,1,0,"i",9),i.fc()}if(2&e){var r=i.qc(2).$implicit,o=i.qc();i.Pb("tabindex",o.visible?null:"-1"),i.Ob(1),i.wc("ngIf",r.icon),i.Ob(1),i.wc("ngIf",r.iconSrc),i.Ob(2),i.Sc(r.label),i.Ob(1),i.wc("ngIf",r.items)}}function f(e,t){if(1&e&&i.bc(0,"i"),2&e){var n=i.qc(3).$implicit;i.Qb(n.icon)}}function p(e,t){if(1&e&&i.bc(0,"img",10),2&e){var n=i.qc(3).$implicit;i.wc("src",n.iconSrc,i.Kc)}}function g(e,t){1&e&&(i.gc(0,"i",11),i.Rc(1,"keyboard_arrow_down"),i.fc())}var m=function(){return{exact:!0}};function v(e,t){if(1&e){var n=i.hc();i.gc(0,"a",12),i.nc("click",function(e){i.Ic(n);var t=i.qc(2),r=t.$implicit,o=t.index;return i.qc().itemClick(e,r,o)}),i.Pc(1,f,1,3,"i",7),i.Pc(2,p,1,1,"img",8),i.gc(3,"span"),i.Rc(4),i.fc(),i.Pc(5,g,2,0,"i",9),i.fc()}if(2&e){var r=i.qc(2).$implicit,o=i.qc();i.wc("routerLink",r.routerLink)("queryParams",r.queryParams)("routerLinkActiveOptions",i.Ac(9,m)),i.Pb("tabindex",o.visible?null:"-1")("target",r.target),i.Ob(1),i.wc("ngIf",r.icon),i.Ob(1),i.wc("ngIf",r.iconSrc),i.Ob(2),i.Sc(r.label),i.Ob(1),i.wc("ngIf",r.items)}}function _(e,t){if(1&e){var n=i.hc();i.gc(0,"ul"),i.gc(1,"cmx-submenu",13),i.nc("onItemClick",function(e){return i.Ic(n),i.qc(3).onItemClick.emit(e)}),i.fc(),i.fc()}if(2&e){var r=i.qc(2),o=r.index,a=r.$implicit,s=i.qc();i.wc("@children",s.isActive(o)?"visible":"hidden"),i.Ob(1),i.wc("item",a)("visible",s.isActive(o))("reset",s.reset)}}var y=function(e,t){return{"active-menuitem":e,"no-submenu-child":t}};function b(e,t){if(1&e&&(i.gc(0,"li",2),i.Pc(1,h,6,5,"a",3),i.Pc(2,v,6,10,"a",4),i.Pc(3,_,2,4,"ul",5),i.fc()),2&e){var n=i.qc(),r=n.index,o=n.$implicit,a=i.qc();i.wc("ngClass",i.Cc(4,y,a.isActive(r),!(null!=o&&null!=o.items&&o.items.length))),i.Ob(1),i.wc("ngIf",!o.routerLink),i.Ob(1),i.wc("ngIf",o.routerLink),i.Ob(1),i.wc("ngIf",o.items)}}function w(e,t){1&e&&i.Pc(0,b,4,7,"li",1),2&e&&i.wc("ngIf",!1!==t.$implicit.visible)}var C=function(){function e(){this.autoReset=!0,this.onItemClick=new i.s}return e.prototype.ngOnInit=function(){},e.prototype.itemClick=function(e){this.autoReset&&(this.reset=!e.item.items),this.onItemClick.emit(e)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Ub({type:e,selectors:[["cmx-menu"]],inputs:{model:"model",autoReset:"autoReset",reset:"reset"},outputs:{onItemClick:"onItemClick"},decls:1,vars:1,consts:[["class","ultima-menu ultima-main-menu clearfix",4,"ngIf"],[1,"ultima-menu","ultima-main-menu","clearfix"],["root","true","visible","true",3,"item","reset","onItemClick"]],template:function(e,t){1&e&&i.Pc(0,c,2,2,"ul",0),2&e&&i.wc("ngIf",null==t.model?null:t.model.length)},directives:function(){return[o.t,O]},styles:["[_nghost-%COMP%] { display: block; }"]}),e}(),O=function(){function e(e,t,n){this.eRef=e,this.router=t,this.location=n,this.onItemClick=new i.s}return e.prototype.itemClick=function(e,t,n){if(t.disabled)return e.preventDefault(),!0;this.activeIndex=this.activeIndex===n?null:n,(t.items||!t.url&&!t.routerLink)&&e.preventDefault(),this.onItemClick.emit({event:e,item:t,index:n})},e.prototype.isActive=function(e){return this.activeIndex===e},Object.defineProperty(e.prototype,"reset",{get:function(){return this._reset},set:function(e){this._reset=e,this._reset&&(this.activeIndex=null)},enumerable:!1,configurable:!0}),e.prototype.handleOutsideClick=function(e){this.eRef.nativeElement.contains(e.target)||(this.activeIndex=null)},e.\u0275fac=function(t){return new(t||e)(i.ac(i.q),i.ac(a.g),i.ac(o.n))},e.\u0275cmp=i.Ub({type:e,selectors:[["cmx-submenu"]],hostBindings:function(e,t){1&e&&i.nc("click",function(e){return t.handleOutsideClick(e)},!1,i.Gc)("touchstart",function(e){return t.handleOutsideClick(e)},!1,i.Gc)},inputs:{item:"item",root:"root",visible:"visible",reset:"reset"},outputs:{onItemClick:"onItemClick"},decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],["class","ripplelink",3,"click",4,"ngIf"],["class","ripplelink","routerLinkActive","active-menuitem-routerlink",3,"routerLink","queryParams","routerLinkActiveOptions","click",4,"ngIf"],[4,"ngIf"],[1,"ripplelink",3,"click"],[3,"class",4,"ngIf"],[3,"src",4,"ngIf"],["class","faw faw-chevron-down",4,"ngIf"],[3,"src"],[1,"faw","faw-chevron-down"],["routerLinkActive","active-menuitem-routerlink",1,"ripplelink",3,"routerLink","queryParams","routerLinkActiveOptions","click"],[3,"item","visible","reset","onItemClick"]],template:function(e,t){1&e&&i.Pc(0,w,1,1,"ng-template",0),2&e&&i.wc("ngForOf",t.root?t.item:t.item.items)},directives:[o.s,o.t,o.q,a.j,a.i,s.Ob,e],encapsulation:2,data:{animation:[Object(r.j)("children",[Object(r.g)("hidden",Object(r.h)({height:"0px",opacity:"0",pointerEvents:"none"})),Object(r.g)("visible",Object(r.h)({height:"*",opacity:1})),Object(r.i)("visible => hidden",Object(r.e)("400ms cubic-bezier(0.86, 0, 0.07, 1)")),Object(r.i)("hidden => visible",Object(r.e)("400ms cubic-bezier(0.86, 0, 0.07, 1)")),Object(r.g)("hidden-small",Object(r.h)({height:"0px"})),Object(r.g)("visible-small",Object(r.h)({height:"*"})),Object(r.i)("visible-small => hidden-small",Object(r.e)("400ms cubic-bezier(0.86, 0, 0.07, 1)")),Object(r.i)("hidden-small => visible-small",Object(r.e)("400ms cubic-bezier(0.86, 0, 0.07, 1)"))])]}}),e}()},"/DUC":function(e,t,n){"use strict";var i,r=(i=n("Bhoz"))&&i.__esModule?i:{default:i},o=" .,:;/\\<>()-[]\u060c",a=function(e){var t=e&&r.default.convertDigits(e,!1).charCodeAt(0),n=r.default.convertDigits("0",!1).charCodeAt(0);return n<=t&&t0&&!a(e[t-1])&&("."===e[t-1]||o.indexOf(e[t-1])<0);)t--;return t},u=function(e,t){return Array.isArray(e)?e.map(function(e){return(t(e)||"").toString()}):(t(e)||"").toString()},l=/[a-zA-Z]/g;t.getFormat=function(e){var t=[],n=u(new Date(2009,8,8,6,5,4),e),i=n.split("").map(function(e,t){return t}),r=n,o={},d=[{date:new Date(2009,8,8,6,5,4,100),pattern:"S"},{date:new Date(2009,8,8,6,5,2),pattern:"s"},{date:new Date(2009,8,8,6,2,4),pattern:"m"},{date:new Date(2009,8,8,18,5,4),pattern:"H",isDigit:!0},{date:new Date(2009,8,8,2,5,4),pattern:"h",isDigit:!0},{date:new Date(2009,8,8,18,5,4),pattern:"a",isDigit:!1},{date:new Date(2009,8,1,6,5,4),pattern:"d"},{date:[new Date(2009,8,2,6,5,4),new Date(2009,8,3,6,5,4),new Date(2009,8,4,6,5,4)],pattern:"E"},{date:new Date(2009,9,6,6,5,4),pattern:"M"},{date:new Date(1998,8,8,6,5,4),pattern:"y"}];if(r)return d.forEach(function(l){var d=function(e,t,n,i){var r=0,o=[],u=function(t){return e[r]!==t[r]&&(void 0===i||a(e[r])===i)};for(Array.isArray(t)||(t=[t]),r=0;rc;){for(s=i[o=t.pop()],i[o]=-1,r=o+1;r1?n[i]:n)+e.substr(o+i+1)}),1===t.length&&(e=(e=e.replace("0"+n,n+n)).replace("\u0660"+n,n+n)),e}(e,t,n,i)}(r,d,h,i),o[h]=d.length}),r=function(e,t,n,i){var r=t.split("").map(function(e,t){return n.indexOf(t)<0&&(e.match(l)||"'"===e)?i[t]:-1});return e.split("").map(function(e,t){var n=e,i=r.indexOf(t)>=0,o=t>0&&r.indexOf(t-1)>=0,a=r.indexOf(t+1)>=0;return i&&(o||(n="'"+n),a||(n+="'")),n}).join("")}(r,n,t,i),t.length?r:void 0}},"/ElL":function(e,t,n){"use strict";var i=n("FKN7"),r=n("f7cP"),o=n("imRD"),a=n("85Zg").register,s=n("AQWU"),c=n("uHSv"),u=n("XDlL"),l="dx-list-context-menu";a("menu","context",s.inherit({_init:function(){var e=i("
").addClass(l);this._list.$element().append(e),this._menu=this._renderOverlay(e)},_renderOverlay:function(e){return this._list._createComponent(e,c,{shading:!1,deferRendering:!0,closeOnTargetScroll:!0,closeOnOutsideClick:function(e){return!i(e.target).closest("."+l).length},animation:{show:{type:"slide",duration:300,from:{height:0,opacity:1},to:{height:(function(){return this._$menuList.outerHeight()}).bind(this),opacity:1}},hide:{type:"slide",duration:0,from:{opacity:1},to:{opacity:0}}},height:(function(){return this._$menuList?this._$menuList.outerHeight():0}).bind(this),width:(function(){return this._list.$element().outerWidth()}).bind(this),onContentReady:this._renderMenuContent.bind(this)})},_renderMenuContent:function(e){var t=e.component.$content(),n=this._menuItems().slice();this._deleteEnabled()&&n.push({text:o.format("dxListEditDecorator-delete"),action:this._deleteItem.bind(this)}),this._$menuList=i("
"),this._list._createComponent(this._$menuList,u,{items:n,onItemClick:this._menuItemClickHandler.bind(this),height:"auto",integrationOptions:{}}),t.addClass("dx-list-context-menucontent"),t.append(this._$menuList)},_menuItemClickHandler:function(e){this._menu.hide(),this._fireMenuAction(this._$itemWithMenu,e.itemData.action)},_deleteItem:function(){this._list.deleteItem(this._$itemWithMenu)},handleContextMenu:function(e){return this._$itemWithMenu=e,this._menu.option({position:{my:"top",at:"bottom",of:e,collision:"flip"}}),this._menu.show(),!0},dispose:function(){this._menu&&this._menu.$element().remove(),this.callBase.apply(this,arguments)}}).include(r))},"/JVm":function(e,t,n){"use strict";var i,r=(i=n("3wDN"))&&i.__esModule?i:{default:i},o=n("tJvG"),a=n("KAnu"),s=r.default.inherit({_initMarkup:function(){this._deferredItems=[],this.callBase()},_renderItemContent:function(e){var t=new o.Deferred,n=new o.Deferred;this._deferredItems[e.index]=n;var i=this.callBase.call(this,e);return n.done(function(){t.resolve(i)}),t.promise()},_createItemByTemplate:function(e,t){var n=this;return e.render({model:t.itemData,container:t.container,index:t.index,onRendered:function(){n._deferredItems[t.index].resolve()}})},_postProcessRenderItems:a.noop,_renderItemsAsync:function(){var e=this,t=new o.Deferred;return o.when.apply(this,this._deferredItems).done(function(){e._postProcessRenderItems(),t.resolve()}),t.promise()},_clean:function(){this.callBase(),this._deferredItems=[]}});e.exports=s},"/O3b":function(e,t,n){"use strict";n.d(t,"a",function(){return L});var i,r=n("c7TG"),o=n("aiMf"),a=n("ptfe"),s=n("Xzt5"),c=n("mjQz"),u=n("y3WU"),l=n("9ans"),d=n("Zhhz"),h=n("+Jrw"),f=n("fXoL"),p=(i=function(e,t){return(i=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(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},m=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]-1?[4,this.tasksService.reportBagAsMissing(e)]:[3,2];case 1:return i.sent(),this.cBagsList.splice(t,1),n=this.bags.findIndex(function(t){return t.barcode===e}),this.bags.splice(n,1),[3,4];case 2:return[4,this.taskManagerService.showToast("Barcode not recognized.")];case 3:i.sent(),i.label=4;case 4:return[2]}})})},t.prototype.getcBagSpecimenOnline=function(e){return g(this,void 0,void 0,function(){return m(this,function(e){return[2]})})},t.prototype.loadSpecimenView=function(e){return g(this,void 0,void 0,function(){var t;return m(this,function(n){switch(n.label){case 0:return this.cBag=e,t=this.cBag,[4,this.tasksService.getSpecimens(this.cBag.barcode)];case 1:return t.specimen=n.sent(),this.cBag.specimen.length?(this.showcbags=!1,this.showspecimen=!0,[2,!0]):this.onlineOfflineService.isOnline?(this.handleError("Cbag "+this.cBag.barcode+" is empty"),[2,!1]):(this.handleError("You are offline"),[2,!1])}})})},t.prototype.loadCbagView=function(){this.showcbags=!0,this.showspecimen=!1},t.prototype.dismiss=function(){this.modalController.dismiss()},t.prototype.reportMissingBag=function(){return g(this,void 0,void 0,function(){var e=this;return m(this,function(t){switch(t.label){case 0:return[4,this.alertController.create({header:"Report a missing bag",subHeader:"Add the barcode for the missing bag below",inputs:[{name:"barcode",type:"text",placeholder:"cBag Barcode"}],buttons:[{text:"Cancel",role:"cancel",cssClass:"secondary"},{text:"Ok",handler:function(t){return g(e,void 0,void 0,function(){return m(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.markCbagAsMissing(t.barcode)];case 1:return e.sent(),[3,3];case 2:return e.sent(),this.handleError(),[3,3];case 3:return[2]}})})}}]})];case 1:return[4,t.sent().present()];case 2:return t.sent(),[2]}})})},t.prototype.reportMissingSpecimen=function(){return g(this,void 0,void 0,function(){var e=this;return m(this,function(t){switch(t.label){case 0:return[4,this.alertController.create({header:"Report a missing specimen",subHeader:"Add the barcode for the missing specimen below",inputs:[{name:"barcode",type:"text",placeholder:"Specimen Barcode"}],buttons:[{text:"Cancel",role:"cancel",cssClass:"secondary"},{text:"Ok",handler:function(t){return g(e,void 0,void 0,function(){var e,n;return m(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),(e=this.cBag.specimen.filter(function(e){return e.barcode===t.barcode})).length&&(n=e.find(function(e){return!e.checked}))?[4,this.tasksService.reportSpecimenAsMissing(this.cBag.barcode,n.id)]:[3,2];case 1:i.sent(),n.checked=!0,n.missing=!0,this.enableDoneButton=this.cBag.specimen.every(function(e){return e.missing||e.checked}),this.enableDoneButton&&this.loadCbagView(),i.label=2;case 2:return[3,4];case 3:return i.sent(),this.handleError(),[3,4];case 4:return[2]}})})}}]})];case 1:return[4,t.sent().present()];case 2:return t.sent(),[2]}})})},t.prototype.dropBagsOnLocation=function(){return g(this,void 0,void 0,function(){return m(this,function(e){switch(e.label){case 0:return[4,this.transferBags()];case 1:return e.sent(),[4,this.taskManagerService.showToast(this.selectedBags.length+" Cbags successfully dropped at "+(this.shipment?"Shipment":"Location"))];case 2:return e.sent(),this.dismiss(),[2]}})})},t.prototype.transferBags=function(){return g(this,void 0,void 0,function(){var e,t,n,i,r,o,a=this;return m(this,function(s){switch(s.label){case 0:return this.loader=!0,this.shipment&&this.shipment.buildLocation&&(e=this.shipment.buildLocation,this.shipment.buildLocation.startsWith(c.a.VH)&&(t=this.shipment.buildLocation,n=this.locationsList.find(function(e){return e.kind===c.c.TSO}),e=n?n.barcode:e)),i={date:(new Date).toUTCString(),transferredFrom:null,transferredTO:this.shipment?this.shipment.barcode:this.location.barcode,isSubcontractor:!1,droppedToLab:!!this.location,droppedToShipment:!!this.shipment,buildLocation:e,vehicle:t},this.selectedBags.forEach(function(e){e.transferLog=e.transferLog||[],e.transferLog.push(i),e.routeId=a.taskManagerService.task._id}),console.log("transfer",this.selectedBags),[4,this.tasksService.transferBags(this.selectedBags,[])];case 1:return s.sent(),this.canDropToShipment&&this.shipment?(r=this.selectedBags.map(function(e){return e.barcode}),[4,this.tsoService.addItems(this.shipment.barcode,r,{externalId:this.taskManagerService.task.externalId,shiftTemplateCode:this.taskManagerService.task.shiftTemplateCode})]):[3,3];case 2:s.sent(),s.label=3;case 3:return o=this,[4,this.tasksService.getBags()];case 4:return o.bags=s.sent(),this.loader=!1,[2]}})})},t.prototype.handleError=function(e){return void 0===e&&(e="There was an error while processing your request"),g(this,void 0,void 0,function(){return m(this,function(t){switch(t.label){case 0:return[4,this.alertController.create({message:e,buttons:["OK"]})];case 1:return[2,t.sent().present()]}})})},t.prototype.selectFromBagView=function(e){e&&e.target&&e.target.outerHTML&&e.target.outerHTML.indexOf('aria-label="return left"')>-1&&this.loadCbagView()},t.prototype.checkLocationOnStop=function(e){return this.locationsList.some(function(t){return t.barcode===e&&t.isDropAllowed})},t.prototype.swichLocation=function(e){return g(this,void 0,void 0,function(){var t;return m(this,function(n){switch(n.label){case 0:return e?(t=this.locationsList.find(function(t){return t.barcode===e&&t.isDropAllowed}))?this.selectedBags.length?[4,this.transferBags()]:[3,2]:[3,3]:[2];case 1:n.sent(),n.label=2;case 2:this.shipment=null,this.location=t,this.selectedBags=[],this.loadCbagView(),this.getCbagsByLocation(this.location),n.label=3;case 3:return[2]}})})},t.prototype.checkShipment=function(e){var t=this;return this.shipmentsList.some(function(n){return n.barcode===e&&n.type===d.h.shipment&&!n.parent&&n.originLab.code===t.stop.properties.addressId.code})},t.prototype.swichShipment=function(e){return g(this,void 0,void 0,function(){var t;return m(this,function(n){switch(n.label){case 0:return e?(t=this.shipmentsList.find(function(t){return t.barcode===e}))?this.selectedBags.length?[4,this.transferBags()]:[3,2]:[3,3]:[2];case 1:n.sent(),n.label=2;case 2:this.location=null,this.shipment=t,this.selectedBags=[],this.loadCbagView(),this.getCbagsByShipment(this.shipment),n.label=3;case 3:return[2]}})})},t.prototype.getCbagsByLocation=function(e){var t=this;this.cBagsList=this.bags.filter(function(n){return!(n.bagType!==t.bagTypes.cBag||n.temperature!==e.temperatureCode||!n.unscanned&&!n.itemsCount)})},t.prototype.getCbagsByShipment=function(e){var t=this;this.cBagsList=this.bags.filter(function(n){return!(n.bagType!==t.bagTypes.cBag||n.temperature!==e.temperature||!n.unscanned&&!n.itemsCount)})},t.prototype.getShipments=function(){return g(this,void 0,void 0,function(){var e;return m(this,function(t){switch(t.label){case 0:return e=this,[4,this.tsoService.getRSRShipmentsAvailableToDropCBags(this.taskManagerService.task._id)];case 1:return e.shipmentsList=t.sent(),console.log("this.shipmentsList",this.shipmentsList),[2]}})})},t.\u0275fac=function(e){return new(e||t)(f.ac(r.Gb),f.ac(o.a),f.ac(a.a),f.ac(r.a),f.ac(l.a),f.ac(h.a),f.ac(u.a))},t.\u0275cmp=f.Ub({type:t,selectors:[["app-drop-specimen-at-lab"]],inputs:{bags:"bags",stop:"stop"},features:[f.Lb],decls:20,vars:15,consts:[[3,"title","hideCloseButton","showBackButton","onDismiss"],[1,"pm-0"],[3,"location","hideTotalSpecimenCount",4,"ngIf"],[3,"shipment",4,"ngIf"],[4,"ngIf"],[3,"bag","header","hideBackButton","click",4,"ngIf"],["text-center",""],[1,"footer-toolbar"],[1,"btnDanger","btn-footer",3,"click"],["name","close-circle","size","small"],["class","btn-footer",3,"click",4,"ngIf"],["class","btn-footer",3,"disabled","click",4,"ngIf"],[3,"fullScreen",4,"ngIf"],[3,"location","hideTotalSpecimenCount"],[3,"shipment"],["size","1",1,"d-flex-center"],["name","barcode",2,"font-size","20px"],["size","11"],["uppercase","",1,"barcode",3,"placeholder","ngModel","ngModelChange","ionChange"],["placeholder","Scan or enter CBag Barcode","uppercase","",1,"barcode",3,"ngModel","ngModelChange","ionChange"],["lines","none",4,"ngFor","ngForOf"],["class","message",4,"ngIf"],["lines","none"],[1,"w-100",3,"bag"],[1,"message"],[3,"bag","header","hideBackButton","click"],["placeholder","Scan specimen barcode","uppercase","",1,"barcode",3,"ngModel","ngModelChange","ionChange"],[3,"specimen"],["size","1"],["name","checkmark",3,"ngClass",4,"ngIf"],["name","checkmark",3,"ngClass"],[1,"btn-footer",3,"click"],[1,"btn-footer",3,"disabled","click"],[3,"fullScreen"]],template:function(e,t){1&e&&(f.gc(0,"base-modal",0),f.nc("onDismiss",function(){return t.dismiss()}),f.gc(1,"base-modal-content"),f.gc(2,"ion-content",1),f.Pc(3,v,1,2,"location-card",2),f.Pc(4,_,1,1,"app-tso-card",3),f.Pc(5,y,5,2,"ion-row",4),f.Pc(6,b,5,1,"ion-row",4),f.Pc(7,O,3,2,"ion-list",4),f.Pc(8,S,1,3,"bag-view",5),f.Pc(9,k,5,1,"ion-row",4),f.Pc(10,I,2,1,"ion-list",4),f.fc(),f.gc(11,"ion-footer",6),f.gc(12,"ion-toolbar",7),f.gc(13,"ion-button",8),f.nc("click",function(){return t.dismiss()}),f.bc(14,"ion-icon",9),f.Rc(15," Cancel "),f.fc(),f.Pc(16,D,2,0,"ion-button",10),f.Pc(17,M,2,1,"ion-button",11),f.Pc(18,A,2,0,"ion-button",10),f.fc(),f.fc(),f.fc(),f.fc(),f.Pc(19,P,1,1,"cmx-loader",12)),2&e&&(f.wc("title",t.title)("hideCloseButton",!0)("showBackButton",!1),f.Ob(3),f.wc("ngIf",t.location),f.Ob(1),f.wc("ngIf",t.shipment),f.Ob(1),f.wc("ngIf",!t.location&&!t.shipment),f.Ob(1),f.wc("ngIf",t.showcbags),f.Ob(1),f.wc("ngIf",t.showcbags),f.Ob(1),f.wc("ngIf",t.showspecimen),f.Ob(1),f.wc("ngIf",t.showspecimen&&t.cBag.type.isLevel1ScanAtDropRequired),f.Ob(1),f.wc("ngIf",t.showspecimen&&(null==t.cBag||null==t.cBag.specimen?null:t.cBag.specimen.length)),f.Ob(6),f.wc("ngIf",t.showcbags),f.Ob(1),f.wc("ngIf",t.showcbags),f.Ob(1),f.wc("ngIf",t.showspecimen),f.Ob(1),f.wc("ngIf",t.loader))},styles:[".footer-toolbar[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;flex-wrap:wrap}.btn-footer[_ngcontent-%COMP%]{max-width:110px;width:100%;text-overflow:ellipsis;overflow:hidden;white-space:normal;font-size:12px}"]}),t}(s.a)},"/X5v":function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},"/ZIY":function(e,t,n){"use strict";n.d(t,"a",function(){return y}),n.d(t,"b",function(){return b});var i=n("1OyB"),r=n("vuIU"),o=n("JX7q"),a=n("ReuC"),s=n("foSv"),c=n("Ji7U"),u=n("LK+K"),l=n("mrSG"),d=n("jhN1"),h=n("fXoL"),f=n("/aUX"),p=n.n(f),g=n("3Pt+"),m=n("PVOt"),v=n("6t9p"),_={provide:g.o,useExisting:Object(h.hb)(function(){return y}),multi:!0},y=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,r,a,s,c,u,l,d){var h;return Object(i.a)(this,n),(h=t.call(this,e,r,a,s,l,d))._watcherHelper=s,h._idh=c,h.touched=function(e){},h._createEventEmitters([{subscribe:"closed",emit:"onClosed"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"opened",emit:"onOpened"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"pageLoading",emit:"onPageLoading"},{subscribe:"pullRefresh",emit:"onPullRefresh"},{subscribe:"scroll",emit:"onScroll"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{subscribe:"titleRendered",emit:"onTitleRendered"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"animationChange"},{emit:"applyButtonTextChange"},{emit:"applyValueModeChange"},{emit:"cancelButtonTextChange"},{emit:"cleanSearchOnOpeningChange"},{emit:"clearButtonTextChange"},{emit:"closeOnOutsideClickChange"},{emit:"dataSourceChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"displayExprChange"},{emit:"displayValueChange"},{emit:"dropDownCenteredChange"},{emit:"dropDownOptionsChange"},{emit:"elementAttrChange"},{emit:"fieldTemplateChange"},{emit:"focusStateEnabledChange"},{emit:"fullScreenChange"},{emit:"groupedChange"},{emit:"groupTemplateChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isValidChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"minSearchLengthChange"},{emit:"nameChange"},{emit:"nextButtonTextChange"},{emit:"noDataTextChange"},{emit:"openedChange"},{emit:"pageLoadingTextChange"},{emit:"pageLoadModeChange"},{emit:"placeholderChange"},{emit:"popupHeightChange"},{emit:"popupWidthChange"},{emit:"positionChange"},{emit:"pulledDownTextChange"},{emit:"pullingDownTextChange"},{emit:"pullRefreshEnabledChange"},{emit:"refreshingTextChange"},{emit:"rtlEnabledChange"},{emit:"searchEnabledChange"},{emit:"searchExprChange"},{emit:"searchModeChange"},{emit:"searchPlaceholderChange"},{emit:"searchTimeoutChange"},{emit:"selectedItemChange"},{emit:"shadingChange"},{emit:"showCancelButtonChange"},{emit:"showClearButtonChange"},{emit:"showDataBeforeSearchChange"},{emit:"showPopupTitleChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"titleChange"},{emit:"titleTemplateChange"},{emit:"useNativeScrollingChange"},{emit:"usePopoverChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"valueExprChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wrapItemTextChange"},{emit:"onBlur"}]),h._idh.setHost(Object(o.a)(h)),u.setHost(Object(o.a)(h)),h}return Object(r.a)(n,[{key:"accessKey",get:function(){return this._getOption("accessKey")},set:function(e){this._setOption("accessKey",e)}},{key:"activeStateEnabled",get:function(){return this._getOption("activeStateEnabled")},set:function(e){this._setOption("activeStateEnabled",e)}},{key:"animation",get:function(){return this._getOption("animation")},set:function(e){this._setOption("animation",e)}},{key:"applyButtonText",get:function(){return this._getOption("applyButtonText")},set:function(e){this._setOption("applyButtonText",e)}},{key:"applyValueMode",get:function(){return this._getOption("applyValueMode")},set:function(e){this._setOption("applyValueMode",e)}},{key:"cancelButtonText",get:function(){return this._getOption("cancelButtonText")},set:function(e){this._setOption("cancelButtonText",e)}},{key:"cleanSearchOnOpening",get:function(){return this._getOption("cleanSearchOnOpening")},set:function(e){this._setOption("cleanSearchOnOpening",e)}},{key:"clearButtonText",get:function(){return this._getOption("clearButtonText")},set:function(e){this._setOption("clearButtonText",e)}},{key:"closeOnOutsideClick",get:function(){return this._getOption("closeOnOutsideClick")},set:function(e){this._setOption("closeOnOutsideClick",e)}},{key:"dataSource",get:function(){return this._getOption("dataSource")},set:function(e){this._setOption("dataSource",e)}},{key:"deferRendering",get:function(){return this._getOption("deferRendering")},set:function(e){this._setOption("deferRendering",e)}},{key:"disabled",get:function(){return this._getOption("disabled")},set:function(e){this._setOption("disabled",e)}},{key:"displayExpr",get:function(){return this._getOption("displayExpr")},set:function(e){this._setOption("displayExpr",e)}},{key:"displayValue",get:function(){return this._getOption("displayValue")},set:function(e){this._setOption("displayValue",e)}},{key:"dropDownCentered",get:function(){return this._getOption("dropDownCentered")},set:function(e){this._setOption("dropDownCentered",e)}},{key:"dropDownOptions",get:function(){return this._getOption("dropDownOptions")},set:function(e){this._setOption("dropDownOptions",e)}},{key:"elementAttr",get:function(){return this._getOption("elementAttr")},set:function(e){this._setOption("elementAttr",e)}},{key:"fieldTemplate",get:function(){return this._getOption("fieldTemplate")},set:function(e){this._setOption("fieldTemplate",e)}},{key:"focusStateEnabled",get:function(){return this._getOption("focusStateEnabled")},set:function(e){this._setOption("focusStateEnabled",e)}},{key:"fullScreen",get:function(){return this._getOption("fullScreen")},set:function(e){this._setOption("fullScreen",e)}},{key:"grouped",get:function(){return this._getOption("grouped")},set:function(e){this._setOption("grouped",e)}},{key:"groupTemplate",get:function(){return this._getOption("groupTemplate")},set:function(e){this._setOption("groupTemplate",e)}},{key:"height",get:function(){return this._getOption("height")},set:function(e){this._setOption("height",e)}},{key:"hint",get:function(){return this._getOption("hint")},set:function(e){this._setOption("hint",e)}},{key:"hoverStateEnabled",get:function(){return this._getOption("hoverStateEnabled")},set:function(e){this._setOption("hoverStateEnabled",e)}},{key:"inputAttr",get:function(){return this._getOption("inputAttr")},set:function(e){this._setOption("inputAttr",e)}},{key:"isValid",get:function(){return this._getOption("isValid")},set:function(e){this._setOption("isValid",e)}},{key:"items",get:function(){return this._getOption("items")},set:function(e){this._setOption("items",e)}},{key:"itemTemplate",get:function(){return this._getOption("itemTemplate")},set:function(e){this._setOption("itemTemplate",e)}},{key:"minSearchLength",get:function(){return this._getOption("minSearchLength")},set:function(e){this._setOption("minSearchLength",e)}},{key:"name",get:function(){return this._getOption("name")},set:function(e){this._setOption("name",e)}},{key:"nextButtonText",get:function(){return this._getOption("nextButtonText")},set:function(e){this._setOption("nextButtonText",e)}},{key:"noDataText",get:function(){return this._getOption("noDataText")},set:function(e){this._setOption("noDataText",e)}},{key:"opened",get:function(){return this._getOption("opened")},set:function(e){this._setOption("opened",e)}},{key:"pageLoadingText",get:function(){return this._getOption("pageLoadingText")},set:function(e){this._setOption("pageLoadingText",e)}},{key:"pageLoadMode",get:function(){return this._getOption("pageLoadMode")},set:function(e){this._setOption("pageLoadMode",e)}},{key:"placeholder",get:function(){return this._getOption("placeholder")},set:function(e){this._setOption("placeholder",e)}},{key:"popupHeight",get:function(){return this._getOption("popupHeight")},set:function(e){this._setOption("popupHeight",e)}},{key:"popupWidth",get:function(){return this._getOption("popupWidth")},set:function(e){this._setOption("popupWidth",e)}},{key:"position",get:function(){return this._getOption("position")},set:function(e){this._setOption("position",e)}},{key:"pulledDownText",get:function(){return this._getOption("pulledDownText")},set:function(e){this._setOption("pulledDownText",e)}},{key:"pullingDownText",get:function(){return this._getOption("pullingDownText")},set:function(e){this._setOption("pullingDownText",e)}},{key:"pullRefreshEnabled",get:function(){return this._getOption("pullRefreshEnabled")},set:function(e){this._setOption("pullRefreshEnabled",e)}},{key:"refreshingText",get:function(){return this._getOption("refreshingText")},set:function(e){this._setOption("refreshingText",e)}},{key:"rtlEnabled",get:function(){return this._getOption("rtlEnabled")},set:function(e){this._setOption("rtlEnabled",e)}},{key:"searchEnabled",get:function(){return this._getOption("searchEnabled")},set:function(e){this._setOption("searchEnabled",e)}},{key:"searchExpr",get:function(){return this._getOption("searchExpr")},set:function(e){this._setOption("searchExpr",e)}},{key:"searchMode",get:function(){return this._getOption("searchMode")},set:function(e){this._setOption("searchMode",e)}},{key:"searchPlaceholder",get:function(){return this._getOption("searchPlaceholder")},set:function(e){this._setOption("searchPlaceholder",e)}},{key:"searchTimeout",get:function(){return this._getOption("searchTimeout")},set:function(e){this._setOption("searchTimeout",e)}},{key:"selectedItem",get:function(){return this._getOption("selectedItem")},set:function(e){this._setOption("selectedItem",e)}},{key:"shading",get:function(){return this._getOption("shading")},set:function(e){this._setOption("shading",e)}},{key:"showCancelButton",get:function(){return this._getOption("showCancelButton")},set:function(e){this._setOption("showCancelButton",e)}},{key:"showClearButton",get:function(){return this._getOption("showClearButton")},set:function(e){this._setOption("showClearButton",e)}},{key:"showDataBeforeSearch",get:function(){return this._getOption("showDataBeforeSearch")},set:function(e){this._setOption("showDataBeforeSearch",e)}},{key:"showPopupTitle",get:function(){return this._getOption("showPopupTitle")},set:function(e){this._setOption("showPopupTitle",e)}},{key:"stylingMode",get:function(){return this._getOption("stylingMode")},set:function(e){this._setOption("stylingMode",e)}},{key:"tabIndex",get:function(){return this._getOption("tabIndex")},set:function(e){this._setOption("tabIndex",e)}},{key:"text",get:function(){return this._getOption("text")},set:function(e){this._setOption("text",e)}},{key:"title",get:function(){return this._getOption("title")},set:function(e){this._setOption("title",e)}},{key:"titleTemplate",get:function(){return this._getOption("titleTemplate")},set:function(e){this._setOption("titleTemplate",e)}},{key:"useNativeScrolling",get:function(){return this._getOption("useNativeScrolling")},set:function(e){this._setOption("useNativeScrolling",e)}},{key:"usePopover",get:function(){return this._getOption("usePopover")},set:function(e){this._setOption("usePopover",e)}},{key:"validationError",get:function(){return this._getOption("validationError")},set:function(e){this._setOption("validationError",e)}},{key:"validationErrors",get:function(){return this._getOption("validationErrors")},set:function(e){this._setOption("validationErrors",e)}},{key:"validationMessageMode",get:function(){return this._getOption("validationMessageMode")},set:function(e){this._setOption("validationMessageMode",e)}},{key:"validationStatus",get:function(){return this._getOption("validationStatus")},set:function(e){this._setOption("validationStatus",e)}},{key:"value",get:function(){return this._getOption("value")},set:function(e){this._setOption("value",e)}},{key:"valueChangeEvent",get:function(){return this._getOption("valueChangeEvent")},set:function(e){this._setOption("valueChangeEvent",e)}},{key:"valueExpr",get:function(){return this._getOption("valueExpr")},set:function(e){this._setOption("valueExpr",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"width",get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)}},{key:"wrapItemText",get:function(){return this._getOption("wrapItemText")},set:function(e){this._setOption("wrapItemText",e)}},{key:"change",value:function(e){}},{key:"itemsChildren",get:function(){return this._getOption("items")},set:function(e){this.setChildren("items",e)}},{key:"_createInstance",value:function(e,t){return new p.a(e,t)}},{key:"writeValue",value:function(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"registerOnChange",value:function(e){this.change=e}},{key:"registerOnTouched",value:function(e){this.touched=e}},{key:"_createWidget",value:function(e){var t=this;Object(a.a)(Object(s.a)(n.prototype),"_createWidget",this).call(this,e),this.instance.on("focusOut",function(e){t.eventHelper.fireNgEvent("onBlur",[e])})}},{key:"ngOnDestroy",value:function(){this._destroyWidget()}},{key:"ngOnChanges",value:function(e){Object(a.a)(Object(s.a)(n.prototype),"ngOnChanges",this).call(this,e),this.setupChanges("dataSource",e),this.setupChanges("items",e),this.setupChanges("searchExpr",e),this.setupChanges("validationErrors",e)}},{key:"setupChanges",value:function(e,t){e in this._optionsToUpdate||this._idh.setup(e,t)}},{key:"ngDoCheck",value:function(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("searchExpr"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),Object(a.a)(Object(s.a)(n.prototype),"ngDoCheck",this).call(this),Object(a.a)(Object(s.a)(n.prototype),"clearChangedOptions",this).call(this)}},{key:"_setOption",value:function(e,t){var i=this._idh.setupSingle(e,t),r=null!==this._idh.getChanges(e,t);(i||r)&&Object(a.a)(Object(s.a)(n.prototype),"_setOption",this).call(this,e,t)}}]),n}(m.b);return e.\u0275fac=function(t){return new(t||e)(h.ac(h.q),h.ac(h.J),h.ac(m.f),h.ac(m.k),h.ac(m.h),h.ac(m.j),h.ac(d.d),h.ac(h.M))},e.\u0275cmp=h.Ub({type:e,selectors:[["dx-lookup"]],contentQueries:function(e,t,n){var i;1&e&&h.Tb(n,v.y,!1),2&e&&h.Ec(i=h.oc())&&(t.itemsChildren=i)},hostBindings:function(e,t){1&e&&h.nc("onBlur",function(e){return t.touched(e)})("valueChange",function(e){return t.change(e)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",animation:"animation",applyButtonText:"applyButtonText",applyValueMode:"applyValueMode",cancelButtonText:"cancelButtonText",cleanSearchOnOpening:"cleanSearchOnOpening",clearButtonText:"clearButtonText",closeOnOutsideClick:"closeOnOutsideClick",dataSource:"dataSource",deferRendering:"deferRendering",disabled:"disabled",displayExpr:"displayExpr",displayValue:"displayValue",dropDownCentered:"dropDownCentered",dropDownOptions:"dropDownOptions",elementAttr:"elementAttr",fieldTemplate:"fieldTemplate",focusStateEnabled:"focusStateEnabled",fullScreen:"fullScreen",grouped:"grouped",groupTemplate:"groupTemplate",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isValid:"isValid",items:"items",itemTemplate:"itemTemplate",minSearchLength:"minSearchLength",name:"name",nextButtonText:"nextButtonText",noDataText:"noDataText",opened:"opened",pageLoadingText:"pageLoadingText",pageLoadMode:"pageLoadMode",placeholder:"placeholder",popupHeight:"popupHeight",popupWidth:"popupWidth",position:"position",pulledDownText:"pulledDownText",pullingDownText:"pullingDownText",pullRefreshEnabled:"pullRefreshEnabled",refreshingText:"refreshingText",rtlEnabled:"rtlEnabled",searchEnabled:"searchEnabled",searchExpr:"searchExpr",searchMode:"searchMode",searchPlaceholder:"searchPlaceholder",searchTimeout:"searchTimeout",selectedItem:"selectedItem",shading:"shading",showCancelButton:"showCancelButton",showClearButton:"showClearButton",showDataBeforeSearch:"showDataBeforeSearch",showPopupTitle:"showPopupTitle",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",title:"title",titleTemplate:"titleTemplate",useNativeScrolling:"useNativeScrolling",usePopover:"usePopover",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",valueExpr:"valueExpr",visible:"visible",width:"width",wrapItemText:"wrapItemText"},outputs:{onClosed:"onClosed",onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onItemClick:"onItemClick",onOpened:"onOpened",onOptionChanged:"onOptionChanged",onPageLoading:"onPageLoading",onPullRefresh:"onPullRefresh",onScroll:"onScroll",onSelectionChanged:"onSelectionChanged",onTitleRendered:"onTitleRendered",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",animationChange:"animationChange",applyButtonTextChange:"applyButtonTextChange",applyValueModeChange:"applyValueModeChange",cancelButtonTextChange:"cancelButtonTextChange",cleanSearchOnOpeningChange:"cleanSearchOnOpeningChange",clearButtonTextChange:"clearButtonTextChange",closeOnOutsideClickChange:"closeOnOutsideClickChange",dataSourceChange:"dataSourceChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",displayExprChange:"displayExprChange",displayValueChange:"displayValueChange",dropDownCenteredChange:"dropDownCenteredChange",dropDownOptionsChange:"dropDownOptionsChange",elementAttrChange:"elementAttrChange",fieldTemplateChange:"fieldTemplateChange",focusStateEnabledChange:"focusStateEnabledChange",fullScreenChange:"fullScreenChange",groupedChange:"groupedChange",groupTemplateChange:"groupTemplateChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isValidChange:"isValidChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",minSearchLengthChange:"minSearchLengthChange",nameChange:"nameChange",nextButtonTextChange:"nextButtonTextChange",noDataTextChange:"noDataTextChange",openedChange:"openedChange",pageLoadingTextChange:"pageLoadingTextChange",pageLoadModeChange:"pageLoadModeChange",placeholderChange:"placeholderChange",popupHeightChange:"popupHeightChange",popupWidthChange:"popupWidthChange",positionChange:"positionChange",pulledDownTextChange:"pulledDownTextChange",pullingDownTextChange:"pullingDownTextChange",pullRefreshEnabledChange:"pullRefreshEnabledChange",refreshingTextChange:"refreshingTextChange",rtlEnabledChange:"rtlEnabledChange",searchEnabledChange:"searchEnabledChange",searchExprChange:"searchExprChange",searchModeChange:"searchModeChange",searchPlaceholderChange:"searchPlaceholderChange",searchTimeoutChange:"searchTimeoutChange",selectedItemChange:"selectedItemChange",shadingChange:"shadingChange",showCancelButtonChange:"showCancelButtonChange",showClearButtonChange:"showClearButtonChange",showDataBeforeSearchChange:"showDataBeforeSearchChange",showPopupTitleChange:"showPopupTitleChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",titleChange:"titleChange",titleTemplateChange:"titleTemplateChange",useNativeScrollingChange:"useNativeScrollingChange",usePopoverChange:"usePopoverChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",valueExprChange:"valueExprChange",visibleChange:"visibleChange",widthChange:"widthChange",wrapItemTextChange:"wrapItemTextChange",onBlur:"onBlur"},features:[h.Nb([m.f,m.k,_,m.j,m.h]),h.Lb,h.Mb],decls:0,vars:0,template:function(e,t){},encapsulation:2}),e=Object(l.__decorate)([Object(l.__param)(7,Object(h.w)(h.M)),Object(l.__metadata)("design:paramtypes",[h.q,h.J,m.f,m.k,m.h,m.j,d.d,Object])],e)}(),b=function(){var e=Object(r.a)(function e(){Object(i.a)(this,e)});return e.\u0275mod=h.Yb({type:e}),e.\u0275inj=h.Xb({factory:function(t){return new(t||e)},imports:[[v.sb,v.md,v.Se,v.sc,v.ld,v.pe,v.yb,v.Fb,v.Rb,v.Xd,v.be,v.Qe,v.eb,v.z,m.d,m.g,d.b],v.sb,v.md,v.Se,v.sc,v.ld,v.pe,v.yb,v.Fb,v.Rb,v.Xd,v.be,v.Qe,v.eb,v.z,m.g]}),e}()},"/aUX":function(e,t,n){"use strict";var i=n("FKN7"),r=n("jeLr"),o=n("cGv3").getWindow(),a=n("czNW"),s=n("KAnu"),c=n("v4HY"),u=n("zl3R").each,l=n("1LL4").extend,d=n("yUp2"),h=n("imRD"),f=n("LdFP"),p=n("D6VQ"),g=n("GCD8"),m=n("8kKR"),v=n("+6qP"),_=n("XCcL"),y=n("wjBO"),b=n("ynD9"),w=n("lBBa").ChildDefaultTemplate,C=n("YQNt"),O=m.inherit({_supportedKeys:function(){return l(this.callBase(),{space:function(e){e.preventDefault(),this._validatedOpening()},enter:function(){this._validatedOpening()}})},_getDefaultOptions:function(){return l(this.callBase(),{placeholder:h.format("Select"),searchPlaceholder:h.format("Search"),searchEnabled:!0,cleanSearchOnOpening:!0,showCancelButton:!0,showClearButton:!1,clearButtonText:h.format("Clear"),applyButtonText:h.format("OK"),pullRefreshEnabled:!1,useNativeScrolling:!0,pullingDownText:h.format("dxList-pullingDownText"),pulledDownText:h.format("dxList-pulledDownText"),refreshingText:h.format("dxList-refreshingText"),pageLoadingText:h.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:h.format("dxList-nextButtonText"),grouped:!1,groupTemplate:"group",usePopover:!1,showDropDownButton:!1,focusStateEnabled:!1,animation:{},dropDownOptions:{showTitle:!0,width:function(){return.8*i(o).width()},height:function(){return.8*i(o).height()},shading:!0,closeOnOutsideClick:!1,position:void 0,animation:{},title:"",titleTemplate:"title",onTitleRendered:null,fullScreen:!1},dropDownCentered:!1,_scrollToSelectedItemEnabled:!1,useHiddenSubmitElement:!0})},_defaultOptionsRules:function(){var e=v.current();return this.callBase().concat([{device:function(){return!a.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(e){return!f.isSimulator()&&"desktop"===f.real().deviceType&&"generic"===e.platform},options:{usePopover:!0,dropDownOptions:{height:"auto"}}},{device:{platform:"ios",phone:!0},options:{dropDownOptions:{fullScreen:!0}}},{device:{platform:"ios",tablet:!0},options:{dropDownOptions:{width:function(){return.4*Math.min(i(o).width(),i(o).height())},height:"auto"},usePopover:!0,useInkRipple:!1}},{device:function(){return"desktop"===f.real().deviceType&&!f.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return v.isMaterial(e)},options:{usePopover:!1,searchEnabled:!1,showCancelButton:!1,dropDownCentered:!0,_scrollToSelectedItemEnabled:!0,dropDownOptions:{closeOnOutsideClick:!0,width:(function(){return this._getPopupWidth()}).bind(this),height:(function(){return this._getPopupHeight()}).bind(this),showTitle:!1,shading:!1}}}])},_init:function(){this.callBase(),this._initActions()},_initActions:function(){this.callBase(),this._initScrollAction(),this._initPageLoadingAction(),this._initPullRefreshAction()},_initPageLoadingAction:function(){this._pageLoadingAction=this._createActionByOption("onPageLoading")},_initPullRefreshAction:function(){this._pullRefreshAction=this._createActionByOption("onPullRefresh")},_initScrollAction:function(){this._scrollAction=this._createActionByOption("onScroll")},_scrollHandler:function(e){this._scrollAction(e)},_pullRefreshHandler:function(e){this._pullRefreshAction(e)},_pageLoadingHandler:function(e){this._pageLoadingAction(e)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({group:new w("group"),title:new w("title")})},_initMarkup:function(){this.$element().addClass("dx-lookup").toggleClass("dx-lookup-popover-mode",this.option("usePopover")),this.callBase()},_inputWrapper:function(){return this.$element().find(".dx-lookup-field-wrapper")},_dataSourceOptions:function(){return l(this.callBase(),{paginate:!0})},_fireContentReadyAction:s.noop,_popupWrapperClass:function(){return""},_renderInput:function(){var e=this._createAction((function(){this._toggleOpenState()}).bind(this));this._$field=i("
").addClass("dx-lookup-field"),r.on(this._$field,g.addNamespace(_.name,this.NAME),function(t){e({event:t})});var t=i("
").addClass("dx-lookup-arrow");this._$fieldWrapper=i("
").addClass("dx-lookup-field-wrapper").append(this._$field).append(t).appendTo(this.$element()),this.option("useInkRipple")&&this._renderInkRipple()},_getInputContainer:function(){return this._$fieldWrapper},_renderInkRipple:function(){this._inkRipple=d.render()},_toggleOpenState:function(){this.callBase(),!this.option("dropDownOptions.fullScreen")&&this.option("_scrollToSelectedItemEnabled")&&this._setPopupPosition()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:this._inputWrapper(),event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_renderField:function(){var e=this._getTemplateByOption("fieldTemplate");e&&this.option("fieldTemplate")?this._renderFieldTemplate(e):(this._updateField(this.option("displayValue")||this.option("placeholder")),this.$element().toggleClass("dx-lookup-empty",!this.option("selectedItem")))},_renderDisplayText:function(e){this._input().length?this.callBase(e):this._updateField(e)},_updateField:function(e){this._$field.text(e)},_renderFieldTemplate:function(e){this._$field.empty();var t=this._fieldRenderData();e.render({model:t,container:c.getPublicElement(this._$field)})},_fieldRenderData:function(){return this.option("selectedItem")},_popupShowingHandler:function(){this.callBase.apply(this,arguments),this.option("cleanSearchOnOpening")&&(this.option("searchEnabled")&&this._searchBox.option("value")&&(this._searchBox.option("value",""),this._searchCanceled()),this._list&&this._list.option("focusedElement",null)),this.option("dropDownOptions.fullScreen")&&this.option("_scrollToSelectedItemEnabled")&&(this._popup.option("position").of=i(o))},_scrollToSelectedItem:function(){var e=this._list.option("selectedIndex"),t=this._list.option("items"),n=t.length;0!==n&&(this._list.option("grouped")?this._list.scrollToItem({group:n-1,item:t[n-1].items.length-1}):this._list.scrollToItem(n-1),this._list.scrollToItem(e))},_getDifferenceOffsets:function(e){return e.offset().top-i(this.element()).offset().top},_isCenteringEnabled:function(e,t){return 1=e-2&&(this._scrollToSelectedItem(),l=r+this._getDifferenceOffsets(t));a").addClass("dx-lookup-search-wrapper"),r=this._$searchBox=i("
").addClass("dx-lookup-search").appendTo(n),o=f.current(),a=!1;this._searchBox=this._createComponent(r,b,{onDisposing:function(){return a=!1},onFocusIn:function(){return a=!0},onFocusOut:function(){return a=!1},onKeyboardHandled:function(t){return a&&e._list._keyboardHandler(t)},mode:o.android&&o.version[0]>=5?"text":"search",showClearButton:!0,valueChangeEvent:this.option("valueChangeEvent"),onValueChanged:this._searchHandler.bind(this)}),this._registerSearchKeyHandlers(),n.insertBefore(this._$list),this._setSearchPlaceholder()}},_removeSearch:function(){this._$searchWrapper&&this._$searchWrapper.remove(),delete this._$searchWrapper,this._$searchBox&&this._$searchBox.remove(),delete this._$searchBox,delete this._searchBox},_selectListItemHandler:function(e){var t=i(this._list.option("focusedElement"));t.length&&(e.preventDefault(),this._selectListItem(e.itemData,t))},_registerSearchKeyHandlers:function(){this._searchBox.registerKeyHandler("escape",this.close.bind(this)),this._searchBox.registerKeyHandler("enter",this._selectListItemHandler.bind(this)),this._searchBox.registerKeyHandler("space",this._selectListItemHandler.bind(this)),this._searchBox.registerKeyHandler("end",s.noop),this._searchBox.registerKeyHandler("home",s.noop)},_toggleSearchClass:function(e){this._popup&&this._popup._wrapper().toggleClass("dx-lookup-popup-search",e)},_setSearchPlaceholder:function(){if(this._$searchBox){var e=this.option("minSearchLength"),t=this.option("searchPlaceholder");e&&t===h.format("Search")&&(t=h.getFormatter("dxLookup-searchPlaceholder")(e)),this._searchBox.option("placeholder",t)}},_setAriaTargetForList:s.noop,_renderList:function(){this.callBase(),this._list.registerKeyHandler("escape",(function(){this.close()}).bind(this))},_listConfig:function(){return l(this.callBase(),{tabIndex:0,grouped:this.option("grouped"),groupTemplate:this._getTemplateByOption("groupTemplate"),pullRefreshEnabled:this.option("pullRefreshEnabled"),useNativeScrolling:this.option("useNativeScrolling"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),pageLoadingText:this.option("pageLoadingText"),onScroll:this._scrollHandler.bind(this),onPullRefresh:this._pullRefreshHandler.bind(this),onPageLoading:this._pageLoadingHandler.bind(this),pageLoadMode:this.option("pageLoadMode"),nextButtonText:this.option("nextButtonText"),indicateLoading:this.option("searchEnabled"),onSelectionChanged:this._getSelectionChangedHandler()})},_getSelectionChangedHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):s.noop},_listContentReadyHandler:function(){this.callBase.apply(this,arguments),this._refreshSelected()},_setFocusPolicy:function(){this.option("focusStateEnabled")&&(this.option("searchEnabled")?this._searchBox.focus():r.trigger(this._$list,"focus"))},_focusTarget:function(){return this._$field},_keyboardEventBindingTarget:function(){return this._$field},_listItemClickHandler:function(e){this._saveValueChangeEvent(e.event),this._selectListItem(e.itemData,e.event.currentTarget)},_selectListItem:function(e,t){this._list.selectItem(t),"instantly"===this.option("applyValueMode")&&this._applyButtonHandler()},_currentSelectedItem:function(){return this.option("grouped")?this._list.option("selectedItems[0]").items[0]:this._list.option("selectedItems[0]")},_resetValue:function(e){this._saveValueChangeEvent(e.event),this.option("value",null),this.option("opened",!1)},_searchValue:function(){return this.option("searchEnabled")&&this._searchBox?this._searchBox.option("value"):""},_renderInputValue:function(){return this.callBase().always((function(){this._refreshSelected()}).bind(this))},_renderPlaceholder:function(){0!==this.$element().find(".dx-texteditor-input").length&&this.callBase()},_clean:function(){this._$fieldWrapper.remove(),this._$searchBox=null,delete this._inkRipple,this.callBase()},_setDeprecatedOptions:function(){this.callBase(),l(this._deprecatedOptions,{title:{since:"20.1",alias:"dropDownOptions.title"},titleTemplate:{since:"20.1",alias:"dropDownOptions.titleTemplate"},onTitleRendered:{since:"20.1",alias:"dropDownOptions.onTitleRendered"},fullScreen:{since:"20.1",alias:"dropDownOptions.fullScreen"},popupWidth:{since:"20.1",alias:"dropDownOptions.width"},popupHeight:{since:"20.1",alias:"dropDownOptions.height"},shading:{since:"20.1",alias:"dropDownOptions.shading"},closeOnOutsideClick:{since:"20.1",alias:"dropDownOptions.closeOnOutsideClick"},position:{since:"20.1",alias:"dropDownOptions.position"},animation:{since:"20.1",alias:"dropDownOptions.animation"}})},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"dataSource":this.callBase.apply(this,arguments),this._renderField();break;case"searchEnabled":this._popup&&(this._removeSearch(),this._renderSearch());break;case"searchPlaceholder":this._setSearchPlaceholder();break;case"minSearchLength":this._setSearchPlaceholder(),this.callBase.apply(this,arguments);break;case"title":case"titleTemplate":case"onTitleRendered":case"shading":case"animation":case"position":case"closeOnOutsideClick":case"fullScreen":this._setPopupOption(t,n);break;case"usePopover":case"placeholder":this._invalidate();break;case"clearButtonText":case"showClearButton":case"showCancelButton":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"applyValueMode":this.callBase.apply(this,arguments);break;case"popupWidth":this._setPopupOption("width","auto"===n?this.initialOption("dropDownOptions").width:n);break;case"popupHeight":this._setPopupOption("height","auto"===n?this.initialOption("dropDownOptions").height:n);break;case"onPageLoading":this._initPageLoadingAction();break;case"onPullRefresh":this._initPullRefreshAction();break;case"pullRefreshEnabled":case"useNativeScrolling":case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"nextButtonText":case"grouped":case"groupTemplate":this._setListOption(t);break;case"onScroll":this._initScrollAction();break;case"pageLoadMode":this._setListOption("pageLoadMode",this.option("pageLoadMode"));break;case"cleanSearchOnOpening":case"_scrollToSelectedItemEnabled":break;case"dropDownCentered":this.option("_scrollToSelectedItemEnabled")&&(this.option("dropDownOptions.position",void 0),this._renderPopup());break;default:this.callBase.apply(this,arguments)}},focus:function(){this.option("opened")?this._setFocusPolicy():r.trigger(this._focusTarget(),"focus")},field:function(){return this._$field}});p("dxLookup",O),e.exports=O,e.exports.default=e.exports},"/jMu":function(e,t,n){"use strict";var i,r=(i=n("5qrJ"))&&i.__esModule?i:{default:i},o=n("yxXJ"),a=n("ti0F"),s=n("YyLj"),c=n("IRs2");function u(e,t,n,i){var r=0;if(e0&&this._calculateGroups({items:this._data})},totalAggregates:function(){return this._totals},_aggregate:function(e,t,n){for(var i=t.items?t.items.length:0,r=0;r0;)u(0,n,e,a)},_seed:function(e,t){return l(e,function(e){var n=e.aggregator;return"seed"in n?(0,a.isFunction)(n.seed)?n.seed(t):n.seed:NaN})},_accumulate:function(e,t,n,i){var r,o=t.selector(i);(!t.skipEmptyValues||(r=o)==r&&""!==r&&null!=r)&&(n[e]=n[e]!=n[e]?o:t.aggregator.step(n[e],o))},_finalize:function(e,t){return l(e,function(e,n){var i=e.aggregator.finalize;return i?i(t[n]):t[n]})}})},"/orT":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=(i=n("T6P2"))&&i.__esModule?i:{default:i};t.default=new r.default},"/q2h":function(e,t,n){"use strict";var i=n("cGv3"),r=n("tUd6"),o=n("cYys"),a=n("xMpX"),s=n("heGP"),c=function(){var e,t=o(),n=t.add,c=t.remove;if(!i.hasWindow())return t;var u,l=function(){var e=i.getWindow();return{width:e.innerWidth,height:e.innerHeight}},d=function(){var n,i=l();i.width===e.width&&i.height===e.height||(i.width===e.width&&(n="height"),i.height===e.height&&(n="width"),e=i,t.fire(n))},h=s(function(){e=l()});return t.add=function(){var e=n.apply(t,arguments);return h(),a.add(function(){!u&&t.has()&&(u=r.listen(i.getWindow(),"resize",d))}),e},t.remove=function(){var e=c.apply(t,arguments);return!t.has()&&u&&(u(),u=void 0),e},t}();e.exports=c},"/uUt":function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("7o/Q");function c(e,t){return function(n){return n.lift(new u(e,t))}}var u=function(){function e(t,n){Object(o.a)(this,e),this.compare=t,this.keySelector=n}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.compare,this.keySelector))}}]),e}(),l=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i,r){var a;return Object(o.a)(this,n),(a=t.call(this,e)).keySelector=r,a.hasKey=!1,"function"==typeof i&&(a.compare=i),a}return Object(a.a)(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(s.a)},"/wwX":function(e,t,n){"use strict";var i=o(n("BWGd")),r=o(n("6miG"));function o(e){return e&&e.__esModule?e:{default:e}}i.default.registerModule("columnFixing",r.default)},0:function(e,t,n){e.exports=n("zUnb")},"05l1":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("jtHE"),r=n("oB13");function o(e,t,n,o){n&&"function"!=typeof n&&(o=n);var a="function"==typeof n?n:void 0,s=new i.a(e,t,o);return function(e){return Object(r.a)(function(){return s},a)(e)}}},"09b2":function(e,t,n){"use strict";var i=n("FKN7"),r=n("wx82"),o=n("zl3R").each,a=n("GCD8"),s=n("jeLr"),c=n("1LL4").extend,u=n("gpjr").focused,l=n("ti0F").isDefined,d=n("imRD"),h=n("KAnu").noop,f=n("TssP"),p=n("t2fQ"),g=n("mP+d"),m=n("yVMT"),v=n("8cKB").isInputEventsL2Supported,_=n("EJAH").default,y=n("fJLn").default,b=function(){return{}},w="dx-texteditor-masked",C="forward",O={0:/[0-9]/,9:/[0-9\s]/,"#":/[-+0-9\s]/,L:function(e){return k(e)},l:function(e){return k(e)||x(e)},C:/\S/,c:/./,A:function(e){return k(e)||S(e)},a:function(e){return k(e)||S(e)||x(e)}};function S(e){return/[0-9]/.test(e)}function k(e){var t=e.charCodeAt();return 64127}function x(e){return" "===e}var T=m.inherit({_getDefaultOptions:function(){return c(this.callBase(),{mask:"",maskChar:"_",maskRules:{},maskInvalidMessage:d.format("validation-mask"),useMaskedValue:!1,showMaskMode:"always"})},_supportedKeys:function(){var e=this,t={backspace:e._maskStrategy.getHandler("backspace"),del:e._maskStrategy.getHandler("del"),enter:e._changeHandler},n=e.callBase();return o(t,function(t,i){var r=n[t];n[t]=function(t){e.option("mask")&&i.call(e,t),r&&r(t)}}),n},_getSubmitElement:function(){return this.option("mask")?this._$hiddenElement:this.callBase()},_init:function(){this.callBase(),this._initMaskStrategy()},_initMaskStrategy:function(){this._maskStrategy=v()?new y(this):new _(this)},_initMarkup:function(){this._renderHiddenElement(),this.callBase()},_attachMouseWheelEventHandlers:function(){if(this._onMouseWheel!==h){var e=this._input(),t=a.addNamespace(p.name,this.NAME),n=this._createAction((function(t){if(u(e)){var n=t.event;this._onMouseWheel(n),n.preventDefault(),n.stopPropagation()}}).bind(this));s.off(e,t),s.on(e,t,function(e){n({event:e})})}},_onMouseWheel:h,_render:function(){this._renderMask(),this.callBase(),this._attachMouseWheelEventHandlers()},_renderHiddenElement:function(){this.option("mask")&&(this._$hiddenElement=i("").attr("type","hidden").appendTo(this._inputWrapper()))},_removeHiddenElement:function(){this._$hiddenElement&&this._$hiddenElement.remove()},_renderMask:function(){this.$element().removeClass(w),this._maskRulesChain=null,this._maskStrategy.detachEvents(),this.option("mask")&&(this.$element().addClass(w),this._maskStrategy.attachEvents(),this._parseMask(),this._renderMaskedValue())},_suppressCaretChanging:function(e,t){var n=r;r=b;try{e.apply(this,t)}finally{r=n}},_changeHandler:function(e){var t=this._input(),n=t.val();if(n!==this._changedValue){this._changedValue=n;var i=a.createEvent(e,{type:"change"});s.trigger(t,i)}},_parseMask:function(){this._maskRules=c({},O,this.option("maskRules")),this._maskRulesChain=this._parseMaskRule(0)},_parseMaskRule:function(e){var t=this.option("mask");if(e>=t.length)return new g.EmptyMaskRule;var n=t[e],i="\\"===n,r=i?new g.StubMaskRule({maskChar:t[e+1]}):this._getMaskRule(n);return r.next(this._parseMaskRule(e+1+i)),r},_getMaskRule:function(e){var t;return o(this._maskRules,function(n,i){if(n===e)return t={pattern:n,allowedChars:i},!1}),l(t)?new g.MaskRule(c({maskChar:this.option("maskChar")},t)):new g.StubMaskRule({maskChar:e})},_renderMaskedValue:function(){if(this._maskRulesChain){var e=this.option("value")||"";this._maskRulesChain.clear(this._normalizeChainArguments());var t={length:e.length};t[this._isMaskedValueMode()?"text":"value"]=e,this._handleChain(t),this._displayMask()}},_replaceSelectedText:function(e,t,n){return void 0===n?e:e.slice(0,t.start)+n+e.slice(t.end)},_isMaskedValueMode:function(){return this.option("useMaskedValue")},_displayMask:function(e){e=e||this._caret(),this._renderValue(),this._caret(e)},_isValueEmpty:function(){return f.isEmpty(this._value)},_shouldShowMask:function(){return"onFocus"!==this.option("showMaskMode")||u(this._input())||!this._isValueEmpty()},_showMaskPlaceholder:function(){if(this._shouldShowMask()){var e=this._maskRulesChain.text();this.option("text",e),"onFocus"===this.option("showMaskMode")&&this._renderDisplayText(e)}},_renderValue:function(){if(this._maskRulesChain){var e=this._maskRulesChain.text();if(this._showMaskPlaceholder(),this._$hiddenElement){var t=this._maskRulesChain.value(),n=this._isMaskedValueMode()?e:t;this._$hiddenElement.val(f.isEmpty(t)?"":n)}}return this.callBase()},_valueChangeEventHandler:function(e){this._maskRulesChain?(this._saveValueChangeEvent(e),this.option("value",this._convertToValue().replace(/\s+$/,""))):this.callBase.apply(this,arguments)},_isControlKeyFired:function(e){return this._isControlKey(a.normalizeKeyName(e))||e.ctrlKey||e.metaKey},_handleChain:function(e){var t=this._maskRulesChain.handle(this._normalizeChainArguments(e));return this._value=this._maskRulesChain.value(),this._textValue=this._maskRulesChain.text(),t},_normalizeChainArguments:function(e){return(e=e||{}).index=0,e.fullText=this._maskRulesChain.text(),e},_convertToValue:function(e){return this._isMaskedValueMode()?this._replaceMaskCharWithEmpty(e||this._textValue||""):e||this._value||""},_replaceMaskCharWithEmpty:function(e){return e.replace(new RegExp(this.option("maskChar"),"g")," ")},_maskKeyHandler:function(e,t){var n=this;if(!this.option("readOnly")){this.setForwardDirection(),e.preventDefault(),this._handleSelection();var i=this._input().val(),r=function(){i!==n._input().val()&&n._maskStrategy.runWithoutEventProcessing(function(){return s.trigger(n._input(),"input")})},o=t();o?o.then(r):(this.setForwardDirection(),this._adjustCaret(),this._displayMask(),this._maskRulesChain.reset(),r())}},_handleKey:function(e,t){this._direction(t||C),this._adjustCaret(e),this._handleKeyChain(e),this._moveCaret()},_handleSelection:function(){if(this._hasSelection()){var e=this._caret(),t=new Array(e.end-e.start+1).join(" ");this._handleKeyChain(t)}},_handleKeyChain:function(e){var t=this._caret(),n=this.isForwardDirection()?t.start:t.start-1,i=this.isForwardDirection()?t.end:t.end-1;this._handleChain({text:e,start:n,length:n===i?1:i-n})},_tryMoveCaretBackward:function(){this.setBackwardDirection();var e=this._caret().start;return this._adjustCaret(),!e||e!==this._caret().start},_adjustCaret:function(e){var t=this._maskRulesChain.adjustedCaret(this._caret().start,this.isForwardDirection(),e);this._caret({start:t,end:t})},_moveCaret:function(){var e=this._caret().start,t=e+(this.isForwardDirection()?0:-1),n=this._maskRulesChain.isAccepted(t)?e+(this.isForwardDirection()?1:-1):e;this._caret({start:n,end:n})},_caret:function(e){var t=this._input();if(t.length)return arguments.length?void r(t,e):r(t)},_hasSelection:function(){var e=this._caret();return e.start!==e.end},_direction:function(e){if(!arguments.length)return this._typingDirection;this._typingDirection=e},setForwardDirection:function(){this._direction(C)},setBackwardDirection:function(){this._direction("backward")},isForwardDirection:function(){return this._direction()===C},_clean:function(){this._maskStrategy&&this._maskStrategy.clean(),this.callBase()},_validateMask:function(){if(this._maskRulesChain){var e=f.isEmpty(this.option("value"))||this._maskRulesChain.isValid(this._normalizeChainArguments());this.option({isValid:e,validationError:e?null:{editorSpecific:!0,message:this.option("maskInvalidMessage")}})}},_updateHiddenElement:function(){this._removeHiddenElement(),this.option("mask")&&(this._input().removeAttr("name"),this._renderHiddenElement()),this._setSubmitElementName(this.option("name"))},_updateMaskOption:function(){this._updateHiddenElement(),this._renderMask(),this._validateMask()},_processEmptyMask:function(e){if(!e){var t=this.option("value");this.option({text:t,isValid:!0}),this.validationRequest.fire({value:t,editor:this}),this._renderValue()}},_optionChanged:function(e){switch(e.name){case"mask":this._updateMaskOption(),this._processEmptyMask(e.value);break;case"maskChar":case"maskRules":case"useMaskedValue":this._updateMaskOption();break;case"value":this._renderMaskedValue(),this._validateMask(),this.callBase(e),this._changedValue=this._input().val();break;case"maskInvalidMessage":break;case"showMaskMode":this.option("text",""),this._renderValue();break;default:this.callBase(e)}}});e.exports=T},"0EUg":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("bHdf");function r(){return Object(i.a)(1)}},"0M3q":function(e,t,n){"use strict";var i=f(n("FKN7")),r=f(n("D6VQ")),o=n("1LL4"),a=f(n("9nyG")),s=n("v4HY"),c=n("cGv3"),u=n("XgSC"),l=f(n("YQNt")),d=f(n("hMwJ")),h=n("tJvG");function f(e){return e&&e.__esModule?e:{default:e}}var p="placeholder",g=function(e){return(0,i.default)(e).is(":visible")},m=function(e,t){var n,i;if(e){var r=(null===(n=t.to)||void 0===n?void 0:n.left)||0,o=(null===(i=t.to)||void 0===i?void 0:i.top)||0;e.style.transform="translate(".concat(r,"px,").concat(o,"px)"),e.style.transition=d.default.off?"":"all ".concat(t.duration,"ms ").concat(t.easing)}},v=a.default.inherit({_getDefaultOptions:function(){return(0,o.extend)(this.callBase(),{clone:!0,filter:"> *",itemOrientation:"vertical",dropFeedbackMode:"push",allowDropInsideItem:!1,allowReordering:!0,moveItemOnDrop:!1,onDragChange:null,onAdd:null,onRemove:null,onReorder:null,onPlaceholderPrepared:null,animation:{type:"slide",duration:300,easing:"ease"},fromIndex:null,toIndex:null,dropInsideItem:!1,itemPoints:null})},reset:function(){this.option({dropInsideItem:!1,toIndex:null,fromIndex:null}),this._$placeholderElement&&this._$placeholderElement.remove(),this._$placeholderElement=null,!this._isIndicateMode()&&this._$modifiedItem&&(this._$modifiedItem.css("marginBottom",this._modifiedItemMargin),this._$modifiedItem=null)},_getPrevVisibleItem:function(e,t){return e.slice(0,t).reverse().filter(g)[0]},_dragStartHandler:function(e){if(this.callBase.apply(this,arguments),!0!==e.cancel){var t=this._getSourceElement();this._updateItemPoints(),this.option("fromIndex",this._getElementIndex(t))}},_dragEnterHandler:function(){if(this.callBase.apply(this,arguments),this!==this._getSourceDraggable()&&(this._updateItemPoints(),this.option("fromIndex",-1),!this._isIndicateMode())){var e=this.option("itemPoints"),t=e[e.length-1];if(t){var n=this.$element(),r=this._getSourceElement(),o=this._isVerticalOrientation(),a=o?r.outerHeight(!0):r.outerWidth(!0),s=n.get(0)[o?"scrollHeight":"scrollWidth"],c=n.get(0)[o?"scrollTop":"scrollLeft"],u=o?"top":"left",l=t[u],d=n.offset()[u],h=d+s-c-l;if(h=e.pageY&&i.top<=e.pageY,o=i.left+n.width()>=e.pageX&&i.left<=e.pageX;return r&&o}return!0},dragEnd:function(e){var t,n,i=this._getSourceElement(),r=this._getSourceDraggable(),o=r.NAME!==this.NAME,a=this.option("toIndex"),s=this._isInsideTargetDraggable(e.event);return null!==a&&a>=0&&s&&(r!==this&&((t=this._fireAddEvent(e))||(n=this._fireRemoveEvent(e))),o&&l.default.resetPosition(i),this.option("moveItemOnDrop")&&!t&&this._moveItem(i,a,n),r===this)?this._fireReorderEvent(e):(new h.Deferred).resolve()},dragMove:function(e){var t=this.option("itemPoints");if(t){for(var n,i=this._isVerticalOrientation(),r=i?"top":"left",o=i?e.pageY:e.pageX,a=this.option("rtlEnabled"),s=t.length-1;s>=0;s--){var c=t[s+1]&&(t[s][r]+t[s+1][r])/2;if(!(!i&&a?o>c:c>o)&&void 0!==c)break;n=t[s]}n&&(this._updatePlaceholderPosition(e,n),this._verticalScrollHelper.isScrolling()&&this._isIndicateMode()&&this._movePlaceholder())}},_isIndicateMode:function(){return"indicate"===this.option("dropFeedbackMode")||this.option("allowDropInsideItem")},_createPlaceholder:function(){var e;return this._isIndicateMode()&&(e=(0,i.default)("
").addClass(this._addWidgetPrefix(p)).insertBefore(this._getSourceDraggable()._$dragElement)),this._$placeholderElement=e,e},_getItems:function(){var e=this._getItemsSelector();return this._$content().find(e).not("."+this._addWidgetPrefix(p)).not("."+this._addWidgetPrefix("clone")).toArray()},_allowReordering:function(){return this._getSourceDraggable()!==this._getTargetDraggable()||this.option("allowReordering")},_isValidPoint:function(e,t,n){var i=this.option("allowDropInsideItem");return!!(n||this._allowReordering()||0===e&&i)&&(!this._isIndicateMode()||-1===t||e!==t&&(n||e!==t+1))},_getItemPoints:function(){var e,t,n,r=this,a=[],s=r.option("rtlEnabled"),c=r._isVerticalOrientation(),u=r._getItems(),l=u.filter(g),d=l.length,h=this._getDraggableElement(),f=l.indexOf(h.get(0));if(d){for(var p=0;p<=d;p++){var m=!c&&s^p===d,v=c&&p===d;p=e||t?e:e-1,0)},_updatePlaceholderPosition:function(e,t){var n=this._getSourceDraggable(),i=this._normalizeToIndex(t.index,t.dropInsideItem),r=(0,o.extend)(this._getEventArgs(e),{toIndex:i,dropInsideItem:t.dropInsideItem});t.isValid&&this._getAction("onDragChange")(r),!r.cancel&&t.isValid?(this.option({dropInsideItem:t.dropInsideItem,toIndex:t.index}),this._getAction("onPlaceholderPrepared")((0,o.extend)(this._getEventArgs(e),{placeholderElement:(0,s.getPublicElement)(this._$placeholderElement),dragElement:(0,s.getPublicElement)(n._$dragElement)})),this._updateItemPoints()):t.isValid||this.option({dropInsideItem:!1,toIndex:null})},_makeWidthCorrection:function(e,t){if(this._$scrollable=this._getScrollable(e),this._$scrollable&&this._$scrollable.width()0?n-i:r>0?n-r:n}return t},_updatePlaceholderSizes:function(e,t){var n=this,r=n.option("dropInsideItem"),o=(0,i.default)(t),a=n._isVerticalOrientation(),s="",c="";e.toggleClass(n._addWidgetPrefix("placeholder-inside"),r),(a||r)&&(s=o.outerWidth()),a&&!r||(c=o.outerHeight()),s=n._makeWidthCorrection(o,s),e.css({width:s,height:c})},_moveItem:function(e,t,n){var i,r=this._getItems(),o=r[t],a=this._getSourceDraggable();n&&(e=e.clone(),a._toggleDragSourceClass(!1,e)),o||(i=r[t-1]),this._moveItemCore(e,o,i)},_moveItemCore:function(e,t,n){t||n?n?e.insertAfter((0,i.default)(n)):e.insertBefore((0,i.default)(t)):e.appendTo(this.$element())},_getDragStartArgs:function(e,t){return(0,o.extend)(this.callBase.apply(this,arguments),{fromIndex:this._getElementIndex(t)})},_getEventArgs:function(e){var t=this._getSourceDraggable(),n=this._getTargetDraggable(),i=n.option("dropInsideItem");return(0,o.extend)(this.callBase.apply(this,arguments),{fromIndex:t.option("fromIndex"),toIndex:this._normalizeToIndex(n.option("toIndex"),i),dropInsideItem:i})},_optionChanged:function(e){var t=this,n=e.name;switch(n){case"onDragChange":case"onPlaceholderPrepared":case"onAdd":case"onRemove":case"onReorder":this["_"+n+"Action"]=this._createActionByOption(n);break;case"itemOrientation":case"allowDropInsideItem":case"moveItemOnDrop":case"dropFeedbackMode":case"itemPoints":case"animation":case"allowReordering":break;case"fromIndex":this._$sourceElement||[!1,!0].forEach(function(n){var r=n?e.value:e.previousValue;if(null!==r){var o=(0,i.default)(t._getItems()[r]);t._toggleDragSourceClass(n,o)}});break;case"dropInsideItem":this._optionChangedDropInsideItem(e);break;case"toIndex":this._optionChangedToIndex(e);break;default:this.callBase(e)}},_optionChangedDropInsideItem:function(){this._isIndicateMode()&&this._$placeholderElement&&this._movePlaceholder()},_isPositionVisible:function(e){var t,n=this.$element();if("hidden"!==n.css("overflow")?t=n.get(0):n.parents().each(function(){if("visible"!==(0,i.default)(this).css("overflow"))return t=this,!1}),t){var r=(0,u.getBoundingRect)(t),o=this._isVerticalOrientation(),a=o?"top":"left",s=o?"bottom":"right",l=(0,c.getWindow)(),d=o?l.pageYOffset:l.pageXOffset;if(e[a]r[s]+d)return!1}return!0},_optionChangedToIndex:function(e){var t=e.value;if(this._isIndicateMode()){var n=null!==t&&t>=0;this._togglePlaceholder(n),n&&this._movePlaceholder()}else this._moveItems(e.previousValue,e.value)},_makeLeftCorrection:function(e,t){var n=this._$scrollable;return n&&this._isVerticalOrientation()&&n.scrollLeft()>t&&(e+=n.scrollLeft()-t),e},_movePlaceholder:function(){var e=this,t=e._$placeholderElement||e._createPlaceholder(),n=e._getItems(),r=e.option("toIndex"),o=e._isVerticalOrientation(),a=this.option("rtlEnabled"),s=e.option("dropInsideItem"),c=null,u=0,l=n[r];if(l){var d=(0,i.default)(l);c=d.offset(),u=parseFloat(d.css("marginLeft")),o||!a||s||(c.left+=d.outerWidth(!0))}else{var h=l=this._getPrevVisibleItem(n,r);h&&(c=(0,i.default)(h).offset(),o?c.top+=(0,i.default)(h).outerHeight(!0):a||(c.left+=(0,i.default)(h).outerWidth(!0)))}e._updatePlaceholderSizes(t,l),c&&!e._isPositionVisible(c)&&(c=null),c&&(c.left=e._makeLeftCorrection(c.left,u),e._move(c,t)),t.toggle(!!c)},_getPositions:function(e,t,n,i){for(var r=[],o=0;o=i&&(a=t):-1===i?o>n&&(a=-t):nn&&oi&&o>=i&&o5||a(t.y)>5},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}}),bubble:!0,events:[s]}),e.exports={name:s}},"0mo+":function(e,t,n){!function(e){"use strict";var t={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},n={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};e.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(e){return e.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===t&&e>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===t&&e<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":e<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":e<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":e<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(n("wd/R"))},"0oYm":function(e,t,n){"use strict";n.d(t,"a",function(){return b});var i=n("c7TG"),r=n("9ans"),o={header:{visible:!0,value:"Menu"},mainContent:{visible:!0,value:[{name:"main-menu",role:"",label:{visible:!0,value:"Main Menu"},icon:"menu",visible:!0},{name:"admin",api:"/api/users",role:"CMX IT",label:{visible:!0,value:"Admin Tools"},icon:"build",visible:!1},{name:"tasks",api:"/api/tasks",role:"RSRGround",label:{visible:!0,value:"RSR On Road"},icon:"./assets/icon/truck.svg",visible:!0},{name:"logger",api:"/api/logger",role:"CMX IT",label:{visible:!0,value:"Monitor Logs"},icon:"stats",visible:!0},{name:"test-send-out",api:"/api/tso",role:"TSO",label:{visible:!0,value:"TSO Operations"},icon:"./assets/icon/airplane-outline.svg",visible:!0}]}},a=n("I+t8"),s=n("huA5"),c=n("ptfe"),u=n("+Jrw"),l=n("fXoL"),d=n("tyNb"),h=n("ofXK"),f=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},p=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1].collapse-button dx-button{height:100%;border-radius:2px}collapsable-container>.collapse-button dx-button .dx-button-content{position:relative;padding:0!important;width:8px;border-radius:0}collapsable-container>.collapse-button dx-button .dx-button-content i.dx-icon{position:absolute;left:0;top:calc(50% - 9px);width:7px;height:auto;font-size:10px}"],encapsulation:2}),e}()},"14X2":function(e,t){},"15ve":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("5qrJ");var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._options=t,this._itemsRunTimeInfo=this._options.itemsRunTimeInfo}var t;return(t=[{key:"findInstance",value:function(){return this._itemsRunTimeInfo.findWidgetInstanceByItem(this._options.item)}},{key:"findItemContainer",value:function(){return this._itemsRunTimeInfo.findItemContainerByItem(this._options.item)}},{key:"tryExecute",value:function(){(0,i.abstract)()}}])&&function(e,t){for(var n=0;n").addClass(r).appendTo(e),n._createComponent(t,u.default,{icon:y,onClick:function(){n.getView("columnChooserView").showColumnChooser()},hint:n.option("columnChooser.title"),integrationOptions:{}})):a.hide()},getPosition:function(){var e=this.getView("rowsView");return{my:"right bottom",at:"right bottom",of:e&&e.element(),collision:"fit",offset:"-2 -2",boundaryOffset:"2 2"}}}),C=a.default.ColumnsView.inherit({_resizeCore:r.noop,_isWinDevice:function(){return!!d.default.real().win},_updateList:function(e){var t,n=this._popupContainer.$content(),i="select"===this.option("columnChooser.mode"),r=this._columnChooserList,o=this._columnsController.getChooserColumns(i);if(i&&r&&e&&"selection"===e.changeType){t=b(this,o);for(var a=0;a0||t.selectComponent.footerTemplate))},directives:[a.A,s.t,a.t,a.Bb,a.k,a.j,a.zb,s.A,a.jb,a.Qb,c.p,c.s,a.rb,a.N,s.s,a.I,a.H,a.M,a.G,s.q,a.B,a.D,a.E,a.Cb,a.Tb,a.Ub,s.w,a.y,a.ib,a.s],encapsulation:2}),e}()},"1efO":function(e,t,n){"use strict";n.d(t,"a",function(){return z});var i,r=n("c7TG"),o=n("ptfe"),a=n("aiMf"),s=n("xez0"),c=n("OC8m"),u=n("7O6h"),l=n("8Aqn"),d=n("oRFw"),h=n("/O3b"),f=n("NhcS"),p=n("7w2k"),g=n("mjQz"),m=n("Xzt5"),v=n("2+1s"),_=n("Dbm3"),y=n("JvtB"),b=n("pptJ"),w=n("9ans"),C=n("z04I"),O=n("+Jrw"),S=n("LxBO"),k=n("fXoL"),x=(i=function(e,t){return(i=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(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),T=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},E=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0})?[4,this.alertController.create({message:"Tbag is not Empty",buttons:[{text:"Close",handler:function(){}}]})]:[3,10];case 8:return[4,n.sent().present()];case 9:return n.sent(),[3,12];case 10:return[4,this.modalController.create({component:h.a,componentProps:new m.a({stop:this.task,bags:t})})];case 11:n.sent().present(),n.label=12;case 12:return e.value!==U.Drop_undelivered_Deliveries?[3,14]:[4,this.modalController.create({component:f.a,componentProps:{stop:this.task}})];case 13:n.sent().present(),n.label=14;case 14:return e.value!==U.Transfer_from_Location?[3,16]:[4,this.openTransferComponent({title:"Transfer from Location",mainPlaceholder:"Scan or enter Location Id",dataSource:"location",transferDirection:"from"})];case 15:n.sent(),n.label=16;case 16:return e.value!==U.Transfer_to_Location?[3,18]:[4,this.openTransferComponent({title:"Transfer to Location",mainPlaceholder:"Scan or enter Location Id",dataSource:"location",transferDirection:"to"})];case 17:n.sent(),n.label=18;case 18:return e.value!==U.End_Stop?[3,24]:this.task.properties.orderKind!==g.d.STAT||this.task.properties.stopKind!==g.f.DELIVERY?[3,20]:[4,this.tasksService.validateStatStop(this.task._id)];case 19:if(!n.sent())return this.taskManagerService.showAlert("Close Stop","Pickup stop for STAT Stop "+this.task.properties.addressId.name+" is not complete."),[2];n.label=20;case 20:return[4,this.tasksService.changeStopStatus(this.task._id,g.e.completed)];case 21:return n.sent()?[4,this.sendCloseNotification(g.e.completed)]:[3,23];case 22:return n.sent(),[3,24];case 23:this.taskManagerService.showAlert("Close Stop","There are still incomplete stops or undelivered deliveries or bags. Please complete them before closing the last hub."),n.label=24;case 24:return e.value===U.Shipments&&this.createModal(S.a,new m.a),e.value===U.Create_Shipment&&this.createModal(C.a,new m.a({title:"Create Shipment",isRSR:!0})),[2]}})})},t.prototype.createModal=function(e,t){return T(this,void 0,void 0,function(){var n;return E(this,function(i){switch(i.label){case 0:return[4,this.modalController.create({component:e,componentProps:t})];case 1:return[4,(n=i.sent()).present()];case 2:return i.sent(),[4,n.onDidDismiss()];case 3:return i.sent(),[2]}})})},t.prototype.openTransferComponent=function(e){return T(this,void 0,void 0,function(){return E(this,function(t){switch(t.label){case 0:return e.stop=this.task,[4,this.modalController.create({component:d.a,componentProps:new m.a(e)})];case 1:return[4,t.sent().present()];case 2:return t.sent(),[2]}})})},t.prototype.sortLocations=function(){return T(this,void 0,void 0,function(){var e,t,n=this;return E(this,function(i){switch(i.label){case 0:return e=this.searchQuery.toLowerCase(),this.searchQuery.length<3&&(e=""),this.completed=[],this.notCompleted=[],[4,this.tasksService.getBags()];case 1:return t=(t=i.sent()).filter(function(e){return!e.transferred&&!!e.stops[n.task._id]}),this.activeLocations=this.task.properties.addressId.locations.filter(function(e){return e.isActive}),this.task.properties.addressId.locations.filter(function(t){return t.isActive&&(!e||t.barcode.toLowerCase().indexOf(e)>-1)}).forEach(function(e){e.totalSpecimenCount=t.reduce(function(t,i){return t+(i.stops[n.task._id][e.barcode]?(i.stops[n.task._id][e.barcode].itemsCount||0)+(i.stops[n.task._id][e.barcode].unscanned||0):0)},0),e.stopStatus=n.task.status,e.stopId=n.task._id,e.status===g.e.completed||e.status===g.e.doortag?n.completed.push(e):n.notCompleted.push(e)}),this.setQuickCloseIfValid(),[2]}})})},t.prototype.setQuickCloseIfValid=function(){this.isQuickCloseStopValid=!1,this.isCloseStopValid=0===this.notCompleted.length,this.hasDelivery=this.task.delivery&&this.task.delivery.length&&this.task.delivery.some(function(e){return e.status!==g.e.completed&&e.status!==g.e.failed}),this.isCloseStopValid||this.task.status===g.e.inProgress&&this.completed.some(function(e){return"LOCKBOX"===e.kind})&&(this.isQuickCloseStopValid=!0,this.isCloseStopValid=!1)},t.prototype.openReopenLocationAlert=function(e){return T(this,void 0,void 0,function(){var t=this;return E(this,function(n){switch(n.label){case 0:return[4,this.alertController.create({header:"Reopen Location",message:"",buttons:[{text:"Cancel",role:"cancel"},{text:"Yes",handler:function(){return T(t,void 0,void 0,function(){return E(this,function(t){switch(t.label){case 0:return[4,this.reopenLocation(e)];case 1:return t.sent(),[2]}})})}}]})];case 1:return[4,n.sent().present()];case 2:return n.sent(),[2]}})})},t.prototype.reopenLocation=function(e){return T(this,void 0,void 0,function(){var t,n;return E(this,function(i){switch(i.label){case 0:return this.segment="not-completed",e.status=g.e.notCompleted,e.reason="",[4,this.tasksService.updateLocationStatus(e.id,e.status,e.reason,"",e.stopId,e.totalSpecimenCount)];case 1:return i.sent(),this.isValidStopKind&&(t=this.completed.map(function(e){return e.id}).indexOf(e.id),n=this.completed.splice(t,1)[0],this.notCompleted.push(n),this.setQuickCloseIfValid()),[4,this.openLocation(e)];case 2:return i.sent(),[2]}})})},t.prototype.openLocation=function(e){return T(this,void 0,void 0,function(){var t,n,i,r,o=this;return E(this,function(a){switch(a.label){case 0:return e.stopId||(e.stopId=this.task._id),e.isActive?[3,3]:[4,this.taskManagerService.showConfirmation("","Do you want to update "+e.barcode+" status from inactive to active for "+this.task.properties.addressId.name+"?","Yes","No")];case 1:return a.sent()?[4,this.tasksService.activateLocation(e.id,e.stopId)]:(this.barcode="",[2]);case 2:a.sent(),e.isActive=!0,this.sortLocations(),a.label=3;case 3:return e.isLevel2TrackingRequired=this.task.properties.addressId.isLevel2TrackingRequired,e.stopStatus=this.task.status,e.SLA=this.task.properties.customerId.SLA,[4,this.modalController.create({component:u.a,componentProps:new m.a({locationBarcode:e.barcode,locationInfo:e,locationList:this.task.properties.addressId.locations,clientName:this.task.properties.addressId.name})})];case 4:return[4,(t=a.sent()).present()];case 5:return a.sent(),[4,t.onDidDismiss()];case 6:return n=a.sent().data,this.task.hasOpenedLocation?[3,8]:[4,this.tasksService.updateStop(this.task._id,{hasOpenedLocation:!0})];case 7:a.sent(),this.task.hasOpenedLocation=!0,a.label=8;case 8:return n&&(n.stopStatus&&(this.task.status=n.stopStatus,this.task.properties.addressId.locations.map(function(e){return e.stopStatus=o.task.status,e}),n.stopStatus===g.e.doortag&&this.doorTagSubmitted(n,"add-a-doortag")),n.status!==g.e.completed&&n.status!==g.e.doortag||!this.isValidStopKind||(i=this.notCompleted.map(function(e){return e.id}).indexOf(e.id),r=this.notCompleted.splice(i,1)[0],this.completed.push(r),this.setQuickCloseIfValid(),n.nextLocation&&this.viewSubTask(n.nextLocation))),[2]}})})},t.prototype.showLocationNoAccessModal=function(e){return T(this,void 0,void 0,function(){var t,n,i,r;return E(this,function(o){switch(o.label){case 0:return[4,this.modalController.create({component:l.a,componentProps:{location:e}})];case 1:return[4,(t=o.sent()).present()];case 2:return o.sent(),[4,t.onDidDismiss()];case 3:return(n=o.sent().data)&&n&&this.isValidStopKind&&(i=this.notCompleted.map(function(e){return e.id}).indexOf(e.id),r=this.notCompleted.splice(i,1)[0],this.completed.push(r),this.setQuickCloseIfValid()),[2]}})})},t.prototype.viewSubTask=function(e,t){return T(this,void 0,void 0,function(){return E(this,function(n){switch(n.label){case 0:return t&&t.target&&"ION-ICON"===t.target.tagName&&t.target.outerHTML&&t.target.outerHTML.indexOf('aria-label="more"')>-1?(e.status===g.e.notCompleted&&this.showLocationNoAccessModal(e),e.status!==g.e.completed&&e.status!==g.e.doortag?[3,2]:[4,this.openReopenLocationAlert(e)]):[3,3];case 1:n.sent(),n.label=2;case 2:return[3,7];case 3:return!this.allowClickOnLocation&&t&&"click"===t.type?[2]:e.status!==g.e.notCompleted?[3,5]:[4,this.openLocation(e)];case 4:return n.sent(),[3,7];case 5:return e.status!==g.e.completed&&e.status!==g.e.doortag?[3,7]:[4,this.reopenLocation(e)];case 6:n.sent(),n.label=7;case 7:return[2]}})})},t.prototype.handleScan=function(e){return T(this,void 0,void 0,function(){var t;return E(this,function(n){switch(n.label){case 0:if(!e)return[3,19];switch(e.substring(0,2)){case g.a.QD:return[3,1];case g.a.DH:return[3,9]}return[3,16];case 1:return this.taskManagerService.checkLocation(e)?(t=this.task.properties.addressId.locations.find(function(t){return t.barcode===e}))?[4,this.viewSubTask(t)]:[3,3]:[3,6];case 2:return n.sent(),[3,5];case 3:return[4,this.taskManagerService.showAlert("Location Scanned","The location scanned doesn\u2019t belong to the client from the current stop or the stop is inactive.")];case 4:n.sent(),n.label=5;case 5:return[3,8];case 6:return[4,this.taskManagerService.showToast("Barcode not recognized.")];case 7:n.sent(),n.label=8;case 8:return[3,18];case 9:return this.task.properties.addressId.kind!==g.f.HUB?[3,11]:[4,this.taskManagerService.showToast("Barcode not recognized.")];case 10:return n.sent(),[3,15];case 11:return[4,this.tasksService.checkDoortag(e)];case 12:return n.sent()?(this.addDoortag(e),[3,15]):[3,13];case 13:return[4,this.taskManagerService.showAlert("Doortag Scanned",e+" is already in use on this Route")];case 14:n.sent(),n.label=15;case 15:return[3,18];case 16:return[4,this.taskManagerService.showToast("Barcode not recognized.")];case 17:return n.sent(),[3,18];case 18:this.barcode="",n.label=19;case 19:return[2]}})})},t.prototype.addDoortag=function(e){return T(this,void 0,void 0,function(){var t,n;return E(this,function(i){switch(i.label){case 0:return[4,this.modalController.create({component:p.a,componentProps:new m.a({barcode:e,stop:this.task})})];case 1:return[4,(t=i.sent()).present()];case 2:return i.sent(),[4,t.onDidDismiss()];case 3:return(n=i.sent().data)&&this.doorTagSubmitted(n,"add-a-doortag"),[2]}})})},t.\u0275fac=function(e){return new(e||t)(k.ac(y.a),k.ac(r.Gb),k.ac(o.a),k.ac(a.a),k.ac(r.a),k.ac(m.b),k.ac(b.a),k.ac(c.a),k.ac(w.a),k.ac(O.a))},t.\u0275cmp=k.Ub({type:t,selectors:[["app-task-details"]],viewQuery:function(e,t){var n;1&e&&k.Xc(r.t,!0),2&e&&k.Ec(n=k.oc())&&(t.ionContent=n.first)},inputs:{task:"task",stopList:"stopList"},features:[k.Lb],decls:24,vars:19,consts:[["title","Stop Info","hideCloseButton","true",3,"menuItems","onDismiss"],[3,"click"],["name","chatbubbles"],["name","search"],[3,"click",4,"ngIf"],[3,"stop"],[3,"ngModel","ngModelChange",4,"ngIf"],["showCancelButton","true","autocomplete","","placeholder","Search for locations",3,"ngModel","ngModelChange","ionCancel","ionChange",4,"ngIf"],[4,"ngIf"],[3,"ngStyle"],[3,"location","showMoreButton","click",4,"ngFor","ngForOf"],[3,"location","click",4,"ngFor","ngForOf"],["expand","block",3,"click",4,"ngIf"],["text-center",""],[3,"fullScreen",4,"ngIf"],["src","./assets/icon/delivery.svg"],[3,"ngModel","ngModelChange"],["value","not-completed"],["value","completed","checked",""],["showCancelButton","true","autocomplete","","placeholder","Search for locations",3,"ngModel","ngModelChange","ionCancel","ionChange"],["uppercase","",1,"barcode-input",3,"ngModel","placeholder","ngModelChange"],["color","primary",3,"disabled","click"],[3,"location","showMoreButton","click"],[3,"location","click"],["button","true",3,"click",4,"ngFor","ngForOf"],["button","true",3,"click"],["expand","block",3,"click"],[1,"btnDanger",3,"click"],[3,"fullScreen"]],template:function(e,t){1&e&&(k.gc(0,"base-modal",0),k.nc("onDismiss",function(){return t.dismiss()}),k.gc(1,"base-modal-header"),k.gc(2,"ion-button",1),k.nc("click",function(){return t.openMessages()}),k.bc(3,"ion-icon",2),k.fc(),k.gc(4,"ion-button",1),k.nc("click",function(){return t.isSearchbarOpened=!t.isSearchbarOpened}),k.bc(5,"ion-icon",3),k.fc(),k.Pc(6,I,2,0,"ion-button",4),k.fc(),k.gc(7,"base-modal-content"),k.bc(8,"action-card",5),k.Pc(9,D,7,5,"ion-segment",6),k.Pc(10,M,1,1,"ion-searchbar",7),k.gc(11,"ion-content"),k.gc(12,"ion-grid"),k.Pc(13,A,4,3,"ion-item",8),k.gc(14,"div",9),k.Pc(15,P,1,2,"location-card",10),k.fc(),k.gc(16,"div",9),k.Pc(17,L,1,1,"location-card",11),k.fc(),k.Pc(18,j,2,1,"ion-list",8),k.fc(),k.Pc(19,N,2,0,"ion-button",12),k.Pc(20,F,2,0,"ion-button",12),k.fc(),k.gc(21,"ion-footer",13),k.Pc(22,B,3,0,"ion-toolbar",8),k.fc(),k.fc(),k.fc(),k.Pc(23,V,1,1,"cmx-loader",14)),2&e&&(k.wc("menuItems",t.menuItems),k.Ob(6),k.wc("ngIf",t.task.delivery&&t.task.delivery.length),k.Ob(2),k.wc("stop",t.task),k.Ob(1),k.wc("ngIf",t.isValidStopKind),k.Ob(1),k.wc("ngIf",t.isSearchbarOpened),k.Ob(3),k.wc("ngIf",t.isPickupSpecimen||t.isValidStopKind),k.Ob(1),k.wc("ngStyle","not-completed"==t.segment?k.Ac(15,$):k.Ac(16,H)),k.Ob(1),k.wc("ngForOf",t.notCompleted),k.Ob(1),k.wc("ngStyle","completed"==t.segment?k.Ac(17,$):k.Ac(18,H)),k.Ob(1),k.wc("ngForOf",t.completed),k.Ob(1),k.wc("ngIf",!t.isValidStopKind&&!t.isPickupSpecimen),k.Ob(1),k.wc("ngIf",t.isValidStopKind&&t.isQuickCloseStopValid&&!t.hasDelivery),k.Ob(1),k.wc("ngIf",t.isValidStopKind&&t.isCloseStopValid&&!t.hasDelivery),k.Ob(2),k.wc("ngIf",t.isPickupSpecimen),k.Ob(1),k.wc("ngIf",t.loader))},styles:["ion-grid[_ngcontent-%COMP%]{padding:0;margin:0}.barcode-input[_ngcontent-%COMP%]{width:100%;padding:5px;border:1px solid #eee;border-radius:5px}.selected[_ngcontent-%COMP%]{--background:#f5f5f5}"]}),t}(m.a)},"1f+4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=l(n("FKN7")),r=l(n("jeLr")),o=l(n("aNBS")),a=l(n("5uIg")),s=n("GCD8"),c=n("T4bj"),u=n("1LL4");function l(e){return e&&e.__esModule?e:{default:e}}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(d,e);var t,n,o,l=(n=d,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=m(n);if(o){var i=m(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return g(this,e)});function d(){return h(this,d),l.apply(this,arguments)}return(t=[{key:"_attachEvents",value:function(e,t){var n=this.editor,i=(0,s.addNamespace)(c.down,n.NAME),o=t.children(),u=n._createAction(function(e){return n._spinButtonsPointerDownHandler(e)});r.default.off(t,i),r.default.on(t,i,function(e){return u({event:e})}),a.default.getInstance(o.eq(0)).option("onChange",function(e){return n._spinUpChangeHandler(e)}),a.default.getInstance(o.eq(1)).option("onChange",function(e){return n._spinDownChangeHandler(e)})}},{key:"_create",value:function(){var e=this.editor,t=(0,i.default)("
").addClass("dx-numberbox-spin-container"),n=(0,i.default)("
").appendTo(t),r=(0,i.default)("
").appendTo(t),o=this._getOptions();return this._addToContainer(t),e._createComponent(n,a.default,(0,u.extend)({direction:"up"},o)),e._createComponent(r,a.default,(0,u.extend)({direction:"down"},o)),this._legacyRender(e.$element(),this._isTouchFriendly(),o.visible),{instance:t,$element:t}}},{key:"_getOptions",value:function(){var e=this.editor;return{visible:this._isVisible(),disabled:e.option("disabled")}}},{key:"_isVisible",value:function(){var e=this.editor;return f(m(d.prototype),"_isVisible",this).call(this)&&e.option("showSpinButtons")}},{key:"_isTouchFriendly",value:function(){var e=this.editor;return e.option("showSpinButtons")&&e.option("useLargeSpinButtons")}},{key:"_legacyRender",value:function(e,t,n){e.toggleClass("dx-numberbox-spin-touch-friendly",t),e.toggleClass("dx-numberbox-spin",n)}},{key:"update",value:function(){if(f(m(d.prototype),"update",this).call(this)){var e=this.instance,t=this.editor.$element(),n=this._isVisible(),i=this._isTouchFriendly(),r=e.children(),o=a.default.getInstance(r.eq(0)),s=a.default.getInstance(r.eq(1)),c=this._getOptions();o.option(c),s.option(c),this._legacyRender(t,i,n)}}}])&&function(e,t){for(var n=0;n","<","<=",">",">=","notcontains","contains","startswith","endswith","between"],h="include",f="exclude";function p(e){return e.dataField||e.name}var g,m,v,_,y,b,w=r.default.Controller.inherit((g=function(){return{filterType:h,filterValues:void 0}},m=function(e){return!(c.default.getGroupInterval(e)||e.headerFilter&&e.headerFilter.dataSource)},v=function(e){if((0,i.isDefined)(e.filterValue)){var t=e.selectedFilterOperation||e.defaultFilterOperation||o.default.getDefaultOperation(e);return[p(e),t,e.filterValue]}return null},_=function(e){var t,n,i=e.filterValues;return i?(m(e)&&1===e.filterValues.length&&!Array.isArray(i[0])?(t=e.filterType===f?"<>":"=",n=i[0]):(t=e.filterType===f?"noneof":"anyof",n=i),[p(e),t,n]):null},y=function(e,t,n){var i=function(e,t){if(!e)return g();var n,i=e[1],r=e[2],o=Array.isArray(r);if(!o&&!m(t))return g();switch(i){case"anyof":case"=":n=h;break;case"noneof":case"<>":n=f;break;default:return g()}return{filterType:n,filterValues:o?r:[r]}}(n,t);e.columnOption(p(t),i)},b=function(e,t,n){var r,o=n&&n[1],a=t.filterOperations||t.defaultFilterOperations;(!a||a.indexOf(o)>=0||o===t.defaultFilterOperation)&&d.indexOf(o)>=0?(o!==t.defaultFilterOperation||(0,i.isDefined)(t.selectedFilterOperation)||(o=t.selectedFilterOperation),r={filterValue:n[2],selectedFilterOperation:o}):r={filterValue:void 0,selectedFilterOperation:void 0},e.columnOption(p(t),r)},{syncFilterValue:function(){var e=this,t=e.getController("columns"),n=t.getFilteringColumns();this._skipSyncColumnOptions=!0,n.forEach(function(n){var r=o.default.getMatchedConditions(e.option("filterValue"),p(n));if(1===r.length){var a=r[0];y(t,n,a),b(t,n,a)}else(0,i.isDefined)(n.filterValues)&&y(t,n),(0,i.isDefined)(n.filterValue)&&b(t,n)}),this._skipSyncColumnOptions=!1},_initSync:function(){var e=this.getController("columns").getColumns(),t=this.getController("data"),n=t.pageIndex();if(function(e){e.forEach(function(e){var t=p(e);if(!(0,i.isDefined)(t)&&e.allowFiltering)throw new a.default.Error("E1049",e.caption)})}(e),!this.option("filterValue")){var r=this.getController("columns").getFilteringColumns(),o=this.getFilterValueFromColumns(r);this.option("filterValue",o)}this.syncFilterValue(),t.pageIndex(n)},init:function(){var e=this,t=this.getController("data");t.isFilterSyncActive()&&(this.getController("columns").isAllDataTypesDefined()?this._initSync():t.dataSourceChanged.add(function(){return e._initSync()}))},_getSyncFilterRow:function(e,t){var n=v(t);return(0,i.isDefined)(n)?o.default.syncFilters(e,n):o.default.removeFieldConditionsFromFilter(e,p(t))},_getSyncHeaderFilter:function(e,t){var n=_(t);return n?o.default.syncFilters(e,n):o.default.removeFieldConditionsFromFilter(e,p(t))},getFilterValueFromColumns:function(e){if(!this.getController("data").isFilterSyncActive())return null;var t=["and"];return e&&e.forEach(function(e){var n=_(e),i=v(e);n&&o.default.addItem(n,t),i&&o.default.addItem(i,t)}),o.default.getNormalizedFilter(t)},syncFilterRow:function(e,t){this.option("filterValue",this._getSyncFilterRow(this.option("filterValue"),e))},syncHeaderFilter:function(e){this.option("filterValue",this._getSyncHeaderFilter(this.option("filterValue"),e))},getCustomFilterOperations:function(){var e=this.option("filterBuilder.customOperations")||[];return[u.default.anyOf(this.component),u.default.noneOf(this.component)].concat(e)},publicMethods:function(){return["getCustomFilterOperations"]}}));e.exports={defaultOptions:function(){return{filterValue:null,filterSyncEnabled:"auto"}},controllers:{filterSync:w},extenders:{controllers:{data:{isFilterSyncActive:function(){var e=this.option("filterSyncEnabled");return"auto"===e?this.option("filterPanel.visible"):e},skipCalculateColumnFilters:function(){return(0,i.isDefined)(this.option("filterValue"))&&this.isFilterSyncActive()},_calculateAdditionalFilter:function(){var e=this;if(!1===e.option("filterPanel.filterEnabled"))return e.callBase();var t=[e.callBase()],n=e.getController("columns").getFilteringColumns(),i=e.option("filterValue");if(e.isFilterSyncActive()){var r=e.getController("headerFilter").getCurrentColumn();r&&i&&(i=o.default.removeFieldConditionsFromFilter(i,p(r)))}var a=e.getController("filterSync").getCustomFilterOperations(),c=o.default.getFilterExpression(i,n,a,"filterBuilder");return c&&t.push(c),s.default.combineFilters(t)},_parseColumnPropertyName:function(e){return e.match(/.*\.(.*)/)[1]},clearFilter:function(e){this.component.beginUpdate(),arguments.length>0?("filterValue"===e&&this.option("filterValue",null),this.callBase(e)):(this.option("filterValue",null),this.callBase()),this.component.endUpdate()},optionChanged:function(e){switch(e.name){case"filterValue":this._applyFilter(),this.isFilterSyncActive()&&this.getController("filterSync").syncFilterValue(),e.handled=!0;break;case"filterSyncEnabled":e.handled=!0;break;case"columns":if(this.isFilterSyncActive()){var t=this.getController("columns").getColumnByPath(e.fullName),n=this.getController("filterSync");if(t&&!n._skipSyncColumnOptions){var i=this._parseColumnPropertyName(e.fullName);n._skipSyncColumnOptions=!0,"filterType"===i?f!==e.value&&f!==e.previousValue||n.syncHeaderFilter(t):"filterValues"===i?n.syncHeaderFilter(t):["filterValue","selectedFilterOperation"].indexOf(i)>-1&&n.syncFilterRow(t,t.filterValue),n._skipSyncColumnOptions=!1}}this.callBase(e);break;default:this.callBase(e)}}}},views:{columnHeadersView:{_isHeaderFilterEmpty:function(e){return this.getController("data").isFilterSyncActive()?!o.default.filterHasField(this.option("filterValue"),p(e)):this.callBase(e)},_needUpdateFilterIndicators:function(){return!this.getController("data").isFilterSyncActive()},optionChanged:function(e){"filterValue"===e.name?this._updateHeaderFilterIndicators():this.callBase(e)}}}}}},"2BeW":function(e,t,n){"use strict";var i=p(n("FKN7")),r=n("cGv3"),o=n("KAnu"),a=p(n("Kksw")),s=p(n("8S5z")),c=n("zl3R"),u=n("tJvG"),l=p(n("YQNt")),d=p(n("XWCB")),h=p(n("uHaw")),f=n("XgSC");function p(e){return e&&e.__esModule?e:{default:e}}var g,m,v,_,y="bottom-load-panel",b="table-content",w="content",C="dx-freespace-row",O="dx-virtual-row",S="infinite",k="virtual",x=25e4,T=function(e){return e.option("scrolling.mode")===k},E=function(e){return e.option("scrolling.mode")===S},I=function(e){var t=e.option("scrolling.rowRenderingMode");return t===k||"standard"!==t&&void 0},D=function(e,t,n,i){for(var r=n?0:1,o=0;o=0&&e.getViewportItemIndex()>=0&&(t*e.pageSize()>e.getViewportItemIndex()||t*e.pageSize()+e.itemsCount()0&&this.resizeCompleted.add(function n(){e.resizeCompleted.remove(n),e.scrollToPage(t.pageIndex())})},scrollToPage:function(e){var t,n=this,i=n._dataController,r=i?i.pageSize():0;if(T(n)||E(n)){var o=i.getItemSize(),a=i.getItemSizes(),s=e*r;for(var c in t=s*o,a)c<=s&&(t+=a[c]-o)}else t=0;n.scrollTo({y:t,x:n._scrollLeft})},renderDelayedTemplates:function(e){this._updateContentPosition(!0),this.callBase.apply(this,arguments)},_renderCore:function(e){var t=this,n=new Date;t.callBase.apply(t,arguments);var i=t._dataController._dataSource;if(i&&e){var r=e.items?e.items.length:20,o=t._dataController.viewportSize()||20;i._renderTime=I(t)?(new Date-n)*o/r:new Date-n}},_getRowElements:function(e){var t=this.callBase(e);return t&&t.not(".dx-virtual-row")},_renderContent:function(e,t){var n=this,i=n._dataController.virtualItemsCount();return i&&n.option("legacyRendering")?((0,r.hasWindow)()&&t.addClass(n.addWidgetPrefix(b)),e.children().length?e.children().first().replaceWith(t):e.append(t),1===e.children("table").length&&(e.append(n._createTable()),n._contentHeight=0),e):n.callBase.apply(n,arguments)},_removeRowsElements:function(e,t,n){var r=this._getRowElements(e).toArray();r="append"===n?r.slice(0,t):r.slice(-t);var o=this.getController("errorHandling");r.map(function(e){var t=(0,i.default)(e);o&&o.removeErrorRow(t.next()),t.remove()})},_restoreErrorRow:function(e){var t=this.getController("editing");t&&t.hasChanges()&&this._getRowElements(e).each(function(e,n){var r=(0,i.default)(n).data("options");if(r){var o=t.getEditDataByKey(r.key);o&&t._showErrorRow(o)}})},_updateContent:function(e,t){var n,i=this,r=i._findContentElement(),o=t&&t.changeType;if("append"===o||"prepend"===o){var a=r.children().first(),s=i._getBodies(e);i.option("legacyRendering")||1!==s.length?s["append"===o?"appendTo":"prependTo"](a):i._getBodies(a)["append"===o?"append":"prepend"](s.children()),e.remove(),n=i._getFreeSpaceRowElements(a),v(n,C),t.removeCount&&i._removeRowsElements(a,t.removeCount,o),i._restoreErrorRow(a)}else i.callBase.apply(i,arguments);i._updateBottomLoading()},_addVirtualRow:function(e,t,n,i){if(i){var r=this._createEmptyRow(O,t,i);r=this._wrapRowIfNeed(e,r),this._appendEmptyRow(e,r,n)}},_updateContentPosition:function(e){var t=this,n=t._dataController;if(n.viewportItemSize(t._rowHeight||20),t.option("legacyRendering")||!T(t)&&!I(t))(0,o.deferUpdate)(function(){t._updateContentPositionCore()});else{if(!e){var r=t._getRowElements(t._tableElement).toArray().map(function(e){return(0,f.getBoundingRect)(e).height});n.setContentSize(r)}var a=n.getContentOffset("begin"),s=n.getContentOffset("end"),c=t.getTableElements(),u=c.children("tbody").children(".dx-virtual-row");v(u,O),c.each(function(e){var n=e>0;t._isFixedTableRendering=n,t._addVirtualRow((0,i.default)(this),n,"top",a),t._addVirtualRow((0,i.default)(this),n,"bottom",s),t._isFixedTableRendering=!1})}},_updateContentPositionCore:function(){var e,t,n,i=this,r=i._rowHeight||20;if(i._dataController.virtualItemsCount()){t=i._findContentElement().children(),n=t.eq(0);var a=t.eq(1);i._contentTableHeight=n[0].offsetHeight,i._dataController.viewportItemSize(r),i._dataController.setContentSize(i._contentTableHeight),e=i._dataController.getVirtualContentSize();var s=i._dataController.getContentOffset();(0,o.deferRender)(function(){l.default.move(n,{left:0,top:s}),(i._contentHeight!==e||0===e||!i._isTableLinesDisplaysCorrect(a)||!i._isColumnElementsEqual(n.find("col"),a.find("col")))&&(i._contentHeight=e,i._renderVirtualTableContent(a,e))})}},_isTableLinesDisplaysCorrect:function(e){return e.find(".dx-column-lines").length>0===this.option("showColumnLines")},_isColumnElementsEqual:function(e,t){var n=e.length===t.length;return n&&(0,c.each)(e,function(e,i){if(i.style.width!==t[e].style.width)return n=!1}),n},_renderVirtualTableContent:function(e,t){for(var n=this,i=n._columnsController.getVisibleColumns(),r=n._createColGroup(i).prop("outerHTML"),o="",a=n.option("showColumnLines")?"dx-column-lines":"",s=function(e){return""+o+""},c=0;c"}for(;t>x;)r+=s(x),t-=x;r+=s(t),e.addClass(n.addWidgetPrefix("table")),e.html(r)},_getCellClasses:function(e){var t=[],n=e.cssClass,i="expand"===e.command;return n&&t.push(n),i&&t.push(this.addWidgetPrefix("group-space")),t},_findBottomLoadPanel:function(e){var t=e||this.element(),n=t&&t.find("."+this.addWidgetPrefix(y));if(n&&n.length)return n},_updateBottomLoading:function(){var e=this,t=e.option("scrolling.mode"),n=t===k,r=t===S,o=!e._dataController.hasKnownLastPage()&&e._dataController.isLoaded()&&(n||r),a=e._findContentElement(),s=e._findBottomLoadPanel(a);o?s||(0,i.default)("
").addClass(e.addWidgetPrefix(y)).append(e._createComponent((0,i.default)("
"),d.default).$element()).appendTo(a):s&&s.remove()},_handleScroll:function(e){var t=this;t._hasHeight&&t._rowHeight&&t._dataController.setViewportPosition(e.scrollOffset.top),t.callBase.apply(t,arguments)},_needUpdateRowHeight:function(e){var t=this;return t.callBase.apply(t,arguments)||e>0&&t.option("scrolling.mode")===S&&t.option("scrolling.rowRenderingMode")!==k},_updateRowHeight:function(){var e=this;if(e.callBase.apply(e,arguments),e._rowHeight){e._updateContentPosition();var t=e._hasHeight?e.element().outerHeight():(0,i.default)((0,r.getWindow)()).outerHeight();e._dataController.viewportSize(Math.ceil(t/e._rowHeight))}},updateFreeSpaceRowHeight:function(){var e=this.callBase.apply(this,arguments);return e&&this._updateContentPosition(),e},setLoading:function(e,t){var n=this,i=n.callBase,r=n._dataController;r.pageIndex()>0&&r.isLoaded()&&!!n._findBottomLoadPanel()&&(e=!1),i.call(n,e,t)},_resizeCore:function(){var e=this,t=e.element();e.callBase(),e.component.$element()&&!e._windowScroll&&t.closest((0,r.getWindow)().document).length&&(e._windowScroll=a.default.subscribeToExternalScrollers(t,function(t){!e._hasHeight&&e._rowHeight&&e._dataController.setViewportPosition(t)},e.component.$element()),e.on("disposing",function(){e._windowScroll.dispose()})),e.loadIfNeed()},loadIfNeed:function(){var e=this._dataController;e&&e.loadIfNeed&&e.loadIfNeed()},setColumnWidths:function(e){var t,n=this.getScrollable();this.callBase.apply(this,arguments),"virtual"===this.option("scrolling.mode")&&(t=n?n.$content():this.element(),this.callBase(e,t.children("."+this.addWidgetPrefix(w)).children(":not(."+this.addWidgetPrefix(b)+")")))},dispose:function(){clearTimeout(this._scrollTimeoutID),this.callBase()}});e.exports={defaultOptions:function(){return{scrolling:{timeout:300,updateTimeout:300,minTimeout:0,renderingThreshold:100,removeInvisiblePages:!0,rowPageSize:5,mode:"standard",preloadEnabled:!1,rowRenderingMode:"standard"}}},extenders:{dataSourceAdapter:M,controllers:{data:(_={_refreshDataSource:function(){var e=this.callBase.apply(this,arguments)||(new u.Deferred).resolve().promise();return e.done(this.initVirtualRows.bind(this)),e},getRowPageSize:function(){var e=this.option("scrolling.rowPageSize"),t=this.pageSize();return t&&t(h.default.mozilla||h.default.msie?1:0)&&(l=Math.round(l+u.outerHeight()*(n%1)),a.scrollTo({y:l}))}}})},initVirtualRows:function(){var e=this,t=I(e);if("virtual"!==e.option("scrolling.mode")&&!0!==t||!1===t||e.option("legacyRendering")||!e.option("scrolling.rowPageSize"))return e._visibleItems=null,void(e._rowsScrollController=null);e._rowPageIndex=Math.ceil(e.pageIndex()*e.pageSize()/e.getRowPageSize()),e._visibleItems=[];var n=function(t){return"data"===t.rowType&&!t.isNewRow||"group"===t.rowType&&e._dataSource.isGroupItemCountable(t.data)};e._rowsScrollController=new a.default.VirtualScrollController(e.component,{pageSize:function(){return e.getRowPageSize()},totalItemsCount:function(){return T(e)?e.totalItemsCount():e._items.filter(n).length},hasKnownLastPage:function(){return!0},pageIndex:function(t){return void 0!==t&&(e._rowPageIndex=t),e._rowPageIndex},isLoading:function(){return e.isLoading()},pageCount:function(){return Math.ceil(this.totalItemsCount()/this.pageSize())||1},load:function(){e._rowsScrollController.pageIndex()>=this.pageCount()&&(e._rowPageIndex=this.pageCount()-1,e._rowsScrollController.pageIndex(e._rowPageIndex)),!e._rowsScrollController._dataSource.items().length&&this.totalItemsCount()||e._rowsScrollController.handleDataChanged(function(t){(t=t||{}).changeType=t.changeType||"refresh",t.items=t.items||e._visibleItems,e._visibleItems.forEach(function(e,t){e.rowIndex=t}),e._fireChanged(t)})},updateLoading:function(){},itemsCount:function(){return e._rowsScrollController._dataSource.items().filter(n).length},correctCount:function(e,t,i){return D(e,t,i,n)},items:function(t){var i=e.dataSource(),r=i&&i.virtualItemsCount(),o=r?r.begin:0,a=e.getRowPageSize(),s=e._rowPageIndex*a-o,c=a,u=e._items;return s<0?[]:(s&&(s=this.correctCount(u,s),u=u.slice(s)),c&&(c=this.correctCount(u,c),u=u.slice(0,c)),t?u.filter(n):u)},viewportItems:function(t){return t&&(e._visibleItems=t),e._visibleItems},onChanged:function(){},changingDuration:function(t){var n=e.dataSource();return n.isLoading()?300:(null==n?void 0:n._renderTime)||0}},!0),e._rowsScrollController.positionChanged.add(function(){var t;null===(t=e._dataSource)||void 0===t||t.setViewportItemIndex(e._rowsScrollController.getViewportItemIndex())}),e.isLoaded()&&e._rowsScrollController.load()},_updateItemsCore:function(e){var t=this,n=this.getRowIndexDelta();this.callBase.apply(this,arguments);var i=this._rowsScrollController;if(i){var r=this._visibleItems,o="refresh"===e.changeType||e.isLiveUpdate;if("append"===e.changeType&&e.items&&!e.items.length)return;o||"append"===e.changeType||"prepend"===e.changeType?(e.cancel=!0,o&&i.reset(!0),i.load()):("update"===e.changeType?e.rowIndices.forEach(function(t,n){var i=e.changeTypes[n],o=e.items[n];"update"===i?r[t]=o:"insert"===i?r.splice(t,0,o):"remove"===i&&r.splice(t,1)}):(r.forEach(function(e,i){r[i]=t._items[i+n]||r[i]}),e.items=r),r.forEach(function(e,t){e.rowIndex=t}))}},_applyChange:function(e){var t=this,n=e.items,i=e.changeType,r=e.removeCount;switch(r&&(r=D(t._items,r,"prepend"===i,function(e,n){return"data"===e.rowType&&!e.isNewRow||"group"===e.rowType&&(t._dataSource.isGroupItemCountable(e.data)||n)}),e.removeCount=r),i){case"prepend":t._items.unshift.apply(t._items,n),r&&t._items.splice(-r);break;case"append":t._items.push.apply(t._items,n),r&&t._items.splice(0,r);break;default:t.callBase(e)}},items:function(e){return e?this._items:this._visibleItems||this._items},getRowIndexDelta:function(){var e=this._visibleItems,t=0;return e&&e[0]&&(t=this._items.indexOf(e[0])),t<0?0:t},getRowIndexOffset:function(){var e=0,t=this.dataSource(),n=this._rowsScrollController;return n?e=n.beginPageIndex()*n._dataSource.pageSize():"virtual"===this.option("scrolling.mode")&&t&&(e=t.beginPageIndex()*t.pageSize()),e},viewportSize:function(){var e=this._rowsScrollController;e&&e.viewportSize.apply(e,arguments);var t=this._dataSource;return t&&t.viewportSize.apply(t,arguments)},viewportItemSize:function(){var e=this._rowsScrollController;e&&e.viewportItemSize.apply(e,arguments);var t=this._dataSource;return t&&t.viewportItemSize.apply(t,arguments)},setViewportPosition:function(){var e=this._rowsScrollController,t=this._dataSource;e?e.setViewportPosition.apply(e,arguments):null==t||t.setViewportPosition.apply(t,arguments)},setContentSize:function(e){var t=this._rowsScrollController;t&&t.setContentSize(e);var n=this._dataSource;return n&&n.setContentSize(e)},loadIfNeed:function(){var e=this._rowsScrollController;e&&e.loadIfNeed();var t=this._dataSource;return t&&t.loadIfNeed()},getItemSize:function(){var e=this._rowsScrollController;if(e)return e.getItemSize.apply(e,arguments);var t=this._dataSource;return t&&t.getItemSize.apply(t,arguments)},getItemSizes:function(){var e=this._rowsScrollController;if(e)return e.getItemSizes.apply(e,arguments);var t=this._dataSource;return t&&t.getItemSizes.apply(t,arguments)},getContentOffset:function(){var e=this._rowsScrollController;if(e)return e.getContentOffset.apply(e,arguments);var t=this._dataSource;return t&&t.getContentOffset.apply(t,arguments)},refresh:function(e){var t=this._dataSource;return t&&e&&e.load&&E(this)&&t.resetCurrentTotalCount(),this.callBase.apply(this,arguments)},dispose:function(){var e=this._rowsScrollController;e&&e.dispose(),this.callBase.apply(this,arguments)}},s.default.proxyMethod(_,"virtualItemsCount"),s.default.proxyMethod(_,"getVirtualContentSize"),s.default.proxyMethod(_,"setViewportItemIndex"),_),resizing:{resize:function(){var e,t=this,n=t.callBase;if(t.option("legacyRendering")||!T(t)&&!I(t))e=n.apply(t);else{clearTimeout(t._resizeTimeout);var i=new Date-t._lastTime,r=t.option("scrolling.updateTimeout");t._lastTime&&i0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0),h.Ob(2),h.wc("ngIf",i.name.length<30),h.Ob(1),h.wc("ngIf",i.name.length>30),h.Ob(2),h.wc("ngIf",r.isScanVehicle&&r.isBarcodeValid&&""!==r.scanVehicleBarcode&&!i.commentCount&&0!=r.mileage&&+r.mileage)}}function I(e,t){1&e&&h.bc(0,"cmx-loader",40),2&e&&h.wc("fullScreen",!0)}var D=function(){return{}},M=function(){return{display:"none"}},A=function(e){function t(t,n,i,r,o,a,s){var c=e.call(this)||this;return c.modalController=t,c.taskManagerService=n,c.tasksService=i,c.staticsService=r,c.formBuilder=o,c.alertCtrl=a,c.notificationService=s,c.menuItems=[],c.isChangeVehicleTask=!1,c.scanVehicleBarcode="",c.mileage=0,c.isScanVehicle=!1,c.isBarcodeValid=!1,c.loader=!1,c.disableVehicleTab=!0,c}return f(t,e),t.prototype.ngOnInit=function(){var e=this;this.task=this.taskManagerService.task,this.initMenuItems(),this.segment="vehicleInUse";var t=this.task.equipment.filter(function(e){return e.vehicle&&e.vehicle.isActive});t.length?(this.startMileage=t[0].vehicle.mileage.miles,this.vehicleBarcodeInUse=t[0].vehicle.barcode):console.log("no vehicle in task... is this ok??"),this.task.pre.forEach(function(t){console.log("elemnet",t),"Pre Vehicle"===t.name&&(e.vehicleObjId=t._id,e.vehicleObj=t.properties.checklist)}),this.formItemVehicle=this.vehicleObj.map(function(e){return{name:e.name,validation:e.validation,default:e.default,commentCount:e.commentCount}}),this.formVehicleObj={},this.formItemVehicle.forEach(function(t){e.formVehicleObj[t.name]="required"!==t.validation||""!==t.commentCount&&0!==t.commentCount?[t.default]:[t.default,[a.D.requiredTrue]]}),this.vcForm=this.formBuilder.group(this.formVehicleObj),this.subscriptions.push(this.barcodeScanEvent.subscribe(function(t){"vehicleChecklist"==e.segment&&(e.scanVehicleBarcode=t)}))},t.prototype.ngOnDestroy=function(){this.subscriptions.forEach(function(e){e.unsubscribe()})},t.prototype.dismiss=function(){this.modalController.dismiss()},t.prototype.selectText=function(){document.getElementById("scanMileage").getElementsByTagName("input")[0].select()},t.prototype.initMenuItems=function(){this.menuItems=[{name:"Add Cbag",icon:"./assets/icon/cbag.svg",eventName:"add-a-cbag",parameters:new d.a,dataHandler:this.dataReceived.bind(this)}]},t.prototype.dataReceived=function(e){return p(this,void 0,void 0,function(){return g(this,function(t){switch(t.label){case 0:return[4,this.tasksService.addCbagToRoute(e.barcode,e)];case 1:return t.sent(),[2]}})})},t.prototype.commentPrompt=function(e,t){return p(this,void 0,void 0,function(){var t,n,i,r,o,a=this;return g(this,function(c){switch(c.label){case 0:return t=this.vcForm,n=this.formVehicleObj,[4,this.modalController.create({component:s.a,componentProps:{itemName:e,checklistObj:i=this.vehicleObj,checklistObjId:r=this.vehicleObjId}})];case 1:return[4,(o=c.sent()).present()];case 2:return c.sent(),[4,o.onDidDismiss().then(function(o){a.tasksService.getTasksById(r).subscribe(function(r){r.properties.checklist.forEach(function(r){r.name===e&&(r.commentCount>0?(t.controls[e].clearValidators(),t.controls[e].updateValueAndValidity()):0===r.commentCount&&(t.controls[e].setValidators(n[e][1]),t.controls[e].updateValueAndValidity()),i.forEach(function(t){t.name===e&&(t.commentCount=r.commentCount)}))})},function(e){a.loader=!1,a.taskManagerService.showAlert(a.taskManagerService.defaultErrorHeader,e.message||a.taskManagerService.defaultErrorMessage)})})];case 3:return c.sent(),[2]}})})},t.prototype.updateEndingMileage=function(){var e=this;this.tasksService.updateEndingMileage(this.task._id,this.vehicleBarcodeInUse,this.endMileage).subscribe(function(t){e.disableVehicleTab=!1,e.segment="vehicleChecklist"},function(t){e.loader=!1,e.taskManagerService.showAlert(e.taskManagerService.defaultErrorHeader,t.message||e.taskManagerService.defaultErrorMessage)})},t.prototype.handleScan=function(e){return p(this,void 0,void 0,function(){var t=this;return g(this,function(n){switch(n.label){case 0:return console.log(e),this.scanVehicleBarcode=e,"VH"!==this.scanVehicleBarcode.substring(0,2).toUpperCase()?(this.isBarcodeValid=!1,this.errorMessage="Scan Barcode is not valid",[2]):this.vehicleBarcodeInUse===this.scanVehicleBarcode?(this.isBarcodeValid=!1,this.errorMessage="This is your own vehicle",[2]):[4,this.staticsService.getVehicleInfoByBarcode(this.scanVehicleBarcode).subscribe(function(e){console.log(e),t.mileage=0!==e.data.length?e.data[0].mileage.miles:0,console.log(t.mileage),console.log(0!==t.mileage&&"VH"===t.scanVehicleBarcode.substring(0,2).toUpperCase()),0!==t.mileage&&"VH"===t.scanVehicleBarcode.substring(0,2).toUpperCase()||(t.isBarcodeValid=!1,t.errorMessage="Scan Barcode is not valid"),0!==t.mileage&&"VH"===t.scanVehicleBarcode.substring(0,2).toUpperCase()&&(t.isBarcodeValid=!0),t.isScanVehicle=!0},function(e){t.isBarcodeValid=!1,console.log(e),console.log(e.error);var n=new Date;console.log(n.toISOString()),console.log(e.error.body.checkedOutAt);var i=new Date(e.error.body.checkedOutAt),r=(new Date(n.toISOString()),i.getMonth()+1+"/"+i.getDate()+"/"+i.getFullYear()+","+i.toLocaleString("en-US",{hour:"numeric",minute:"numeric",hour12:!0})),o=e.error.body.routeCode;400===e.error.status&&e.error.body.routeCode?(console.log(i.getHours()),e.error.body.checkoutAllowed?t.presentConfirm(r,e.error.body):t.errorMessage="The vehicle was checkout out at "+r+" and is currently being used to run "+o+". Please select/scan another vehicle"):(t.errorMessage=e.error.body,t.mileage=0)})];case 1:return n.sent(),[2]}})})},t.prototype.presentConfirm=function(e,t){return p(this,void 0,void 0,function(){var n=this;return g(this,function(i){switch(i.label){case 0:return[4,this.alertCtrl.create({message:"The vehicle was checkout out at "+e+" and is currently being used to run "+t.routeCode+'. To proceed with checking out this vehicle, select "CONTINUE". To checkout different vehicle, select "CANCEL"',buttons:[{text:"Cancel",role:"cancel",handler:function(){console.log("Cancel clicked"),n.errorMessage="Please select/scan another vehicle"}},{text:"Continue",handler:function(){return p(n,void 0,void 0,function(){return g(this,function(e){return this.mileage=t.Mileage||0,0===this.mileage?(this.isBarcodeValid=!1,this.errorMessage="Scan Barcode is not valid",[2]):(this.isBarcodeValid=!0,this.isScanVehicle=!0,console.log("Continue clicked"),console.log(this.scanVehicleBarcode),this.errorMessage="",[2])})})}}]})];case 1:return i.sent().present(),[2]}})})},t.prototype.onSubmit=function(){return p(this,void 0,void 0,function(){var e,t,n=this;return g(this,function(i){switch(i.label){case 0:if(!this.scanVehicleBarcode)return[3,5];this.loader=!0,i.label=1;case 1:return i.trys.push([1,4,,5]),[4,this.staticsService.updateMileage(this.scanVehicleBarcode,+this.mileage).toPromise()];case 2:return i.sent(),[4,this.tasksService.addVehicle(this.taskManagerService.task._id,this.scanVehicleBarcode,!0)];case 3:return e=i.sent(),this.tasksService.updateTaskByType("updateChecklist",this.vehicleObjId,this.vehicleObj).subscribe(function(t){return p(n,void 0,void 0,function(){return g(this,function(t){switch(t.label){case 0:return e&&e.equipment?(e.equipment=e.equipment.filter(function(e){return e.vehicle&&!0===e.vehicle.isActive}),[4,this.tasksService.setNewVehicleFirestore(e.equipment)]):[3,2];case 1:t.sent(),t.label=2;case 2:return this.taskManagerService.task.equipment=e.equipment,this.taskManagerService.update.next(this.taskManagerService.update.value+1),this.loader=!1,this.modalController.dismiss(),[2]}})})},function(e){n.loader=!1,n.taskManagerService.showAlert(n.taskManagerService.defaultErrorHeader,e.message||n.taskManagerService.defaultErrorMessage)}),[3,5];case 4:return t=i.sent(),this.loader=!1,this.taskManagerService.showAlert(this.taskManagerService.defaultErrorHeader,t.message||this.taskManagerService.defaultErrorMessage),[3,5];case 5:return[2]}})})},t.\u0275fac=function(e){return new(e||t)(h.ac(r.Gb),h.ac(o.a),h.ac(c.a),h.ac(u.a),h.ac(a.f),h.ac(r.a),h.ac(l.a))},t.\u0275cmp=h.Ub({type:t,selectors:[["app-change-vehicle"]],viewQuery:function(e,t){var n;1&e&&h.Xc(r.t,!0),2&e&&h.Ec(n=h.oc())&&(t.scanMileage=n.first)},features:[h.Lb],decls:59,vars:26,consts:[["title","Change Vehicle","hideCloseButton","true",3,"menuItems","onDismiss"],[4,"ngIf"],[3,"ngModel","ngModelChange"],["value","vehicleInUse","checked",""],["value","vehicleChecklist",3,"disabled"],[2,"padding","0px","margin","0px"],[3,"ngStyle"],["size","2",2,"font-size","20px"],["src","./assets/icon/vehicle.svg",1,"ion-padding"],["size","5"],["padding-start","","size","5"],["type","text","readonly","","autofocus","false",3,"value"],[2,"width","100%"],["src","./assets/icon/odometer.svg",1,"ion-padding"],["type","tel","readonly","","placeholder","Enter start mileage","maxlength","6","select-all","","numbers","",3,"ngModel","ngModelChange"],["type","tel","placeholder","Enter end mileage","maxlength","6","select-all","","numbers","",3,"ngModel","ngModelChange"],["id","error",4,"ngIf"],["expand","block",1,"ion-padding",3,"disabled","click"],["type","text","placeholder","SCAN VEHICLE BARCODE","value","","id","scanVehicleBarcode","uppercase","",3,"ngModel","ngModelChange","ionChange"],[2,"padding-bottom","20px",3,"formGroup","ngSubmit"],["no-padding","",4,"ngFor","ngForOf"],["type","submit","padding","","expand","block",3,"disabled"],[3,"fullScreen",4,"ngIf"],["id","error"],["size","7"],["padding-start","","size","3"],["type","tel","id","scanMileage","select-all","","maxlength","6","numbers","",3,"ngModel","value","ionFocus","ngModelChange"],["no-padding",""],["size","2",1,"ion-align-self-center",2,"padding","18px 0px"],["fill","clear",3,"disabled","click"],["slot","icon-only","name","chatbubbles"],["size","8"],["text-wrap","",4,"ngIf"],["readonly","true","rows","8",3,"value",4,"ngIf"],["size","2"],[3,"formControlName",4,"ngIf"],["id","notifications-badge"],["text-wrap",""],["readonly","true","rows","8",3,"value"],[3,"formControlName"],[3,"fullScreen"]],template:function(e,t){1&e&&(h.gc(0,"base-modal",0),h.nc("onDismiss",function(){return t.dismiss()}),h.bc(1,"base-modal-header"),h.gc(2,"base-modal-content"),h.Pc(3,m,1,0,"app-top-menu",1),h.bc(4,"route-card"),h.gc(5,"ion-segment",2),h.nc("ngModelChange",function(e){return t.segment=e}),h.gc(6,"ion-segment-button",3),h.gc(7,"ion-label"),h.Rc(8," Vehicle In Use "),h.fc(),h.fc(),h.gc(9,"ion-segment-button",4),h.gc(10,"ion-label"),h.Rc(11," Vehicle Checklist "),h.fc(),h.fc(),h.fc(),h.gc(12,"ion-content",5),h.gc(13,"ion-grid",5),h.gc(14,"div",6),h.gc(15,"ion-item"),h.gc(16,"ion-col",7),h.bc(17,"ion-icon",8),h.fc(),h.gc(18,"ion-col",9),h.gc(19,"ion-label"),h.Rc(20,"Vehicle Barcode"),h.fc(),h.fc(),h.gc(21,"ion-col",10),h.bc(22,"ion-input",11),h.fc(),h.fc(),h.gc(23,"ion-item"),h.gc(24,"ion-row",12),h.gc(25,"ion-col",7),h.bc(26,"ion-icon",13),h.fc(),h.gc(27,"ion-col",9),h.gc(28,"ion-label"),h.Rc(29,"Starting Mileage"),h.fc(),h.fc(),h.gc(30,"ion-col",10),h.gc(31,"ion-input",14),h.nc("ngModelChange",function(e){return t.startMileage=e}),h.fc(),h.fc(),h.fc(),h.fc(),h.gc(32,"ion-item"),h.gc(33,"ion-row",12),h.gc(34,"ion-col",7),h.bc(35,"ion-icon",13),h.fc(),h.gc(36,"ion-col",9),h.gc(37,"ion-label"),h.Rc(38,"Ending Mileage"),h.fc(),h.fc(),h.gc(39,"ion-col",10),h.gc(40,"ion-input",15),h.nc("ngModelChange",function(e){return t.endMileage=e}),h.fc(),h.fc(),h.fc(),h.fc(),h.Pc(41,v,2,0,"div",16),h.Pc(42,_,2,0,"div",16),h.Pc(43,y,2,0,"div",16),h.gc(44,"ion-button",17),h.nc("click",function(){return t.updateEndingMileage()}),h.Rc(45,"Submit "),h.fc(),h.fc(),h.gc(46,"div",6),h.gc(47,"ion-item"),h.bc(48,"ion-icon",8),h.gc(49,"ion-input",18),h.nc("ngModelChange",function(e){return t.scanVehicleBarcode=e})("ionChange",function(){return t.handleScan(t.scanVehicleBarcode)}),h.fc(),h.fc(),h.Pc(50,b,2,0,"div",16),h.Pc(51,w,2,1,"div",16),h.Pc(52,C,9,2,"ion-item",1),h.Pc(53,O,2,0,"div",16),h.gc(54,"form",19),h.nc("ngSubmit",function(){return t.onSubmit()}),h.Pc(55,E,12,5,"ion-list",20),h.gc(56,"ion-button",21),h.Rc(57,"Change Vehicle"),h.fc(),h.fc(),h.fc(),h.fc(),h.fc(),h.fc(),h.fc(),h.Pc(58,I,1,1,"cmx-loader",22)),2&e&&(h.wc("menuItems",t.menuItems),h.Ob(3),h.wc("ngIf","lg"===t.size),h.Ob(2),h.wc("ngModel",t.segment),h.Ob(4),h.wc("disabled",t.disableVehicleTab),h.Ob(5),h.wc("ngStyle","vehicleInUse"==t.segment?h.Ac(22,D):h.Ac(23,M)),h.Ob(8),h.xc("value",t.vehicleBarcodeInUse),h.Ob(9),h.wc("ngModel",t.startMileage),h.Ob(9),h.wc("ngModel",t.endMileage),h.Ob(1),h.wc("ngIf",t.endMileage&&0!=t.endMileage&&!+t.endMileage),h.Ob(1),h.wc("ngIf",+t.endMileage<=+t.startMileage),h.Ob(1),h.wc("ngIf",+t.endMileage-+t.startMileage>999),h.Ob(1),h.wc("disabled",!t.endMileage||!+t.endMileage||+t.endMileage<=+t.startMileage||+t.endMileage-+t.startMileage>999),h.Ob(2),h.wc("ngStyle","vehicleChecklist"==t.segment?h.Ac(24,D):h.Ac(25,M)),h.Ob(3),h.wc("ngModel",t.scanVehicleBarcode),h.Ob(1),h.wc("ngIf",""===t.scanVehicleBarcode),h.Ob(1),h.wc("ngIf",""!==t.scanVehicleBarcode&&!t.isBarcodeValid),h.Ob(1),h.wc("ngIf",""!==t.scanVehicleBarcode&&0!==t.mileage),h.Ob(1),h.wc("ngIf",t.mileage&&0!=t.mileage&&!+t.mileage),h.Ob(1),h.wc("formGroup",t.vcForm),h.Ob(1),h.wc("ngForOf",t.vehicleObj),h.Ob(1),h.wc("disabled",t.vcForm&&!t.vcForm.valid||""===t.scanVehicleBarcode||0==t.mileage||!+t.mileage),h.Ob(2),h.wc("ngIf",t.loader))},styles:["#notifications-badge[_ngcontent-%COMP%]{background-color:#b9c930;color:#000;position:absolute;top:1px;right:7px;border-radius:100%;padding:1px}ion-col[_ngcontent-%COMP%]{align-self:center}#error[_ngcontent-%COMP%]{color:red;padding-left:36px;padding-top:5px;font-size:12px}"]}),t}(d.a)},"2MiI":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("fXoL"),r=n("c7TG"),o=function(){function e(){this.headerTitle=""}return e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Ub({type:e,selectors:[["app-header"]],inputs:{headerTitle:"headerTitle"},decls:6,vars:1,consts:[["color","primary"],["slot","start"],["autoHide","true"]],template:function(e,t){1&e&&(i.gc(0,"ion-header"),i.gc(1,"ion-toolbar",0),i.gc(2,"ion-title"),i.Rc(3),i.fc(),i.gc(4,"ion-buttons",1),i.bc(5,"ion-menu-button",2),i.fc(),i.fc(),i.fc()),2&e&&(i.Ob(3),i.Sc(t.headerTitle))},directives:[r.A,r.Bb,r.zb,r.k,r.Q],styles:[""]}),e}()},"2QA8":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},"2RPT":function(e,t,n){"use strict";var i=d(n("FKN7")),r=d(n("GYHJ")),o=n("1LL4"),a=d(n("d+kW")),s=d(n("imRD")),c=d(n("NnyS")),u=d(n("IF55")),l=n("Yt8F");function d(e){return e&&e.__esModule?e:{default:e}}var h=r.default.View.inherit({_renderCore:function(){this._updatePopupOptions()},_updatePopupOptions:function(){this.option("filterBuilderPopup.visible")?this._initPopup():this._filterBuilderPopup&&this._filterBuilderPopup.hide()},_disposePopup:function(){this._filterBuilderPopup&&(this._filterBuilderPopup.dispose(),this._filterBuilderPopup=void 0),this._filterBuilder&&(this._filterBuilder.dispose(),this._filterBuilder=void 0)},_initPopup:function(){var e=this;e._disposePopup(),e._filterBuilderPopup=e._createComponent(e.element(),u.default,(0,o.extend)({title:s.default.format("dxDataGrid-filterBuilderPopupTitle"),contentTemplate:function(t){return e._getPopupContentTemplate(t)},onOptionChanged:function(t){"visible"===t.name&&e.option("filterBuilderPopup.visible",t.value)},toolbarItems:e._getPopupToolbarItems()},e.option("filterBuilderPopup"),{onHidden:function(t){(0,l.restoreFocus)(e),e._disposePopup()}}))},_getPopupContentTemplate:function(e){var t=(0,i.default)(e),n=(0,i.default)("
").appendTo((0,i.default)(e));this._filterBuilder=this._createComponent(n,a.default,(0,o.extend)({value:this.option("filterValue"),fields:this.getController("columns").getFilteringColumns()},this.option("filterBuilder"),{customOperations:this.getController("filterSync").getCustomFilterOperations()})),this._createComponent(t,c.default,{direction:"both"})},_getPopupToolbarItems:function(){var e=this;return[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:s.default.format("OK"),onClick:function(t){var n=e._filterBuilder.option("value");e.option("filterValue",n),e._filterBuilderPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:s.default.format("Cancel"),onClick:function(t){e._filterBuilderPopup.hide()}}}]},optionChanged:function(e){switch(e.name){case"filterBuilder":case"filterBuilderPopup":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}}});e.exports={defaultOptions:function(){return{filterBuilder:{groupOperationDescriptions:{and:s.default.format("dxFilterBuilder-and"),or:s.default.format("dxFilterBuilder-or"),notAnd:s.default.format("dxFilterBuilder-notAnd"),notOr:s.default.format("dxFilterBuilder-notOr")},filterOperationDescriptions:{between:s.default.format("dxFilterBuilder-filterOperationBetween"),equal:s.default.format("dxFilterBuilder-filterOperationEquals"),notEqual:s.default.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:s.default.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:s.default.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:s.default.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:s.default.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:s.default.format("dxFilterBuilder-filterOperationStartsWith"),contains:s.default.format("dxFilterBuilder-filterOperationContains"),notContains:s.default.format("dxFilterBuilder-filterOperationNotContains"),endsWith:s.default.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:s.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:s.default.format("dxFilterBuilder-filterOperationIsNotBlank")}},filterBuilderPopup:{}}},views:{filterBuilderView:h}}},"2S0u":function(e,t,n){"use strict";var i=n("FKN7"),r=n("Lci2"),o=n("Y18R"),a=n("5u+F"),s=n("zl3R").each,c=n("1LL4").extend,u=n("LI0J"),l=n("D6VQ"),d=n("dYUP"),h="date",f="year",p="month",g="day",m="hours",v=r.inherit({_valueOption:function(){var e=this.option("value"),t=new Date(e);return!e||isNaN(t)?this._getDefaultDate():t},_getDefaultDate:function(){var e=new Date;return this.option("type")===h?new Date(e.getFullYear(),e.getMonth(),e.getDate()):e},_getDefaultOptions:function(){return c(this.callBase(),{minDate:u.MIN_DATEVIEW_DEFAULT_DATE,maxDate:u.MAX_DATEVIEW_DEFAULT_DATE,type:h,value:new Date,applyCompactClass:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"desktop"!==e.deviceType},options:{applyCompactClass:!0}}])},_render:function(){this.callBase(),this.$element().addClass("dx-dateview"),this._toggleFormatClasses(this.option("type")),this._toggleCompactClass()},_toggleFormatClasses:function(e,t){this.$element().addClass("dx-dateview-"+e),t&&this.$element().removeClass("dx-dateview-"+t)},_toggleCompactClass:function(){this.$element().toggleClass("dx-dateview-compact",this.option("applyCompactClass"))},_wrapper:function(){return this._$wrapper},_renderContentImpl:function(){this._$wrapper=i("
").addClass("dx-dateview-wrapper"),this._renderRollers(),this._$wrapper.appendTo(this.$element())},_renderRollers:function(){this._$rollersContainer||(this._$rollersContainer=i("
").addClass("dx-dateview-rollers")),this._$rollersContainer.empty(),this._createRollerConfigs(),this._rollers={};var e=this;s(e._rollerConfigs,function(t){var n=i("
").appendTo(e._$rollersContainer).addClass("dx-dateviewroller-"+e._rollerConfigs[t].type);e._rollers[e._rollerConfigs[t].type]=e._createComponent(n,o,{items:e._rollerConfigs[t].displayItems,selectedIndex:e._rollerConfigs[t].selectedIndex,showScrollbar:!1,onStart:function(n){var i=n.component;i._toggleActive(!0),e._setActiveRoller(e._rollerConfigs[t],i.option("selectedIndex"))},onEnd:function(e){e.component._toggleActive(!1)},onClick:function(n){var i=n.component;i._toggleActive(!0),e._setActiveRoller(e._rollerConfigs[t],i.option("selectedIndex")),e._setRollerState(e._rollerConfigs[t],i.option("selectedIndex")),i._toggleActive(!1)},onSelectedIndexChanged:function(n){e._setRollerState(e._rollerConfigs[t],n.component.option("selectedIndex"))}})}),e._$rollersContainer.appendTo(e._wrapper())},_createRollerConfigs:function(e){var t=this;e=e||t.option("type"),t._rollerConfigs={},d.getFormatParts(u.FORMATS_MAP[e]).forEach(function(e){t._createRollerConfig(e)})},_createRollerConfig:function(e){for(var t=u.DATE_COMPONENTS_INFO[e],n=this._calculateRollerConfigValueRange(e),i=n.startValue,r=n.endValue,o=t.formatter,a=this._getCurrentDate(),s={type:e,setValue:t.setter,valueItems:[],displayItems:[],getIndex:function(e){return e[t.getter]()-i}},c=i;c<=r;c++)s.valueItems.push(c),s.displayItems.push(o(c,a));s.selectedIndex=s.getIndex(a),this._rollerConfigs[e]=s},_setActiveRoller:function(e){var t=e&&this._rollers[e.type];s(this._rollers,function(){this.toggleActiveState(this===t)})},_updateRollersPosition:function(){var e=this;s(this._rollers,function(t){var n=e._rollerConfigs[t].getIndex(e._getCurrentDate());this.option("selectedIndex",n)})},_setRollerState:function(e,t){if(t!==e.selectedIndex){var n=e.valueItems[t],i=e.setValue,r=new Date(this._getCurrentDate()),o=r.getDate(),s=this.option("minDate"),c=this.option("maxDate");e.type===p?o=Math.min(o,u.getMaxMonthDay(r.getFullYear(),n)):e.type===f&&(o=Math.min(o,u.getMaxMonthDay(n,r.getMonth()))),r.setDate(o),r[i](n);var l=a.normalizeDate(r,s,c);r=u.mergeDates(l,r,"time"),r=a.normalizeDate(r,s,c),this.option("value",r),e.selectedIndex=t}e.type===f&&this._refreshRollers(),e.type===p&&(this._refreshRoller(g),this._refreshRoller(m))},_refreshRoller:function(e){var t=this._rollers[e];if(t){this._createRollerConfig(e);var n=this._rollerConfigs[e];e!==g&&n.displayItems.toString()===t.option("items").toString()||t.option({items:n.displayItems,selectedIndex:n.selectedIndex})}},_getCurrentDate:function(){var e=this._valueOption(),t=this.option("minDate"),n=this.option("maxDate");return a.normalizeDate(e,t,n)},_calculateRollerConfigValueRange:function(e){var t=this._getCurrentDate(),n=this.option("minDate"),i=this.option("maxDate"),r=a.sameYear(t,n),o=r&&t.getMonth()===n.getMonth(),s=a.sameYear(t,i),c=s&&t.getMonth()===i.getMonth(),l=o&&t.getDate()===n.getDate(),d=c&&t.getDate()===i.getDate(),h=u.DATE_COMPONENTS_INFO[e],v=h.startValue,_=h.endValue;return e===f&&(v=n.getFullYear(),_=i.getFullYear()),e===p&&(r&&(v=n.getMonth()),s&&(_=i.getMonth())),e===g&&(_=u.getMaxMonthDay(t.getFullYear(),t.getMonth()),r&&o&&(v=n.getDate()),s&&c&&(_=i.getDate())),e===m&&(v=l?n.getHours():v,_=d?i.getHours():_),{startValue:v,endValue:_}},_refreshRollers:function(){this._refreshRoller(p),this._refreshRoller(g),this._refreshRoller(m)},_optionChanged:function(e){switch(e.name){case"minDate":case"maxDate":case"type":this._renderRollers(),this._toggleFormatClasses(e.value,e.previousValue);break;case"visible":this.callBase(e),e.value&&this._renderRollers();break;case"value":this.option("value",this._valueOption()),this._refreshRollers(),this._updateRollersPosition();break;default:this.callBase(e)}},_clean:function(){this.callBase(),delete this._$rollersContainer},_dispose:function(){clearTimeout(this._deferredRenderDayTimeout),clearTimeout(this._deferredRenderMonthTimeout),this.callBase()}});l("dxDateView",v),e.exports=v},"2Vo4":function(e,t,n){"use strict";n.d(t,"a",function(){return d});var i=n("1OyB"),r=n("vuIU"),o=n("ReuC"),a=n("foSv"),s=n("Ji7U"),c=n("LK+K"),u=n("XNiG"),l=n("9ppp"),d=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(i.a)(this,n),(r=t.call(this))._value=e,r}return Object(r.a)(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var t=Object(o.a)(Object(a.a)(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new l.a;return this._value}},{key:"next",value:function(e){Object(o.a)(Object(a.a)(n.prototype),"next",this).call(this,this._value=e)}}]),n}(u.a)},"2WcH":function(e,t,n){"use strict";function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}n.d(t,"a",function(){return i})},"2XS1":function(e,t,n){"use strict";var i=n("rA4u"),r=n("YyLj"),o=n("zl3R").each,a=n("ti0F").isFunction,s=n("tJvG").Deferred,c=n("Nxdf");e.exports=function e(t,n,u){u=u||[],n=n||{};var l=function(e,t){return{name:e,args:t}},d=function(e){var d,h,f,p,g,m,v,_=new s,y=function(e){var t=n.errorHandler;t&&t(e),r._errorHandler(e),_.reject(e)};function b(e){switch(e.name){case"sortBy":return g=[e.args],!0;case"thenBy":if(!g)throw r.errors.Error("E4004");return g.push(e.args),!0}return!1}try{a(d=n.adapter)||(d=i[d]),h=d(n),f=[].concat(u).concat(e);var w=h.optimize;for(w&&w(f);f.length;){if(!b(p=f[0])){if(g){f.unshift(l("multiSort",[g])),g=null;continue}if("enumerate"!==String(p.name)&&(!h[p.name]||!1===h[p.name].apply(h,p.args)))break}f.shift()}v=[],(m=f[0])&&"multiSort"===m.name&&(f.shift(),o(m.args[0],function(){v.push(l(v.length?"thenBy":"sortBy",this))})),f=v.concat(f),h.exec(t).done(function(e,t){if(f.length){var i=c(e,{errorHandler:n.errorHandler});o(f,function(){i=i[this.name].apply(i,this.args)}),i.done(_.resolve).fail(_.reject)}else _.resolve(e,t)}).fail(y)}catch(C){y(C)}return _.promise()},h={};return o(["sortBy","thenBy","filter","slice","select","groupBy"],function(){var i=String(this);h[i]=function(){return e(t,n,u.concat(l(i,arguments)))}}),o(["count","min","max","sum","avg","aggregate","enumerate"],function(){var e=String(this);h[e]=function(){return d.call(this,l(e,arguments))}}),h}},"2aEG":function(e,t,n){"use strict";var i=p(n("FKN7")),r=p(n("wL+b")),o=n("ti0F"),a=p(n("GC31")),s=n("zl3R"),c=n("1LL4"),u=p(n("tUd6")),l=p(n("v4HY")),d=p(n("cGv3")),h=n("xZEH"),f=n("tJvG");function p(e){return e&&e.__esModule?e:{default:e}}var g,m=d.default.getWindow(),v=Math,_=v.PI,y=v.min,b=v.abs,w=v.sqrt,C=v.pow,O=v.atan2,S=v.cos,k=v.sin,x=Number;function T(e,t,n){var r=(0,i.default)("")[0];return r.width=e+2*n,r.height=t+2*n,r.hidden=!0,r}function E(e,t,n,i,r,o,a,s){var c=(e+n)/2,u=(t+i)/2,l=O(t-i,e-n),d=o?1:-1;l+=_/180*90*(a?1:-1);var h=w(C(n-e,2)+C(i-t,2))/2,f=w(b(C(r,2)-C(h,2))),p=c+d*(f*S(l)),g=u+d*(f*k(l)),m=O(t-g,e-p),v=O(i-g,n-p);s.arc(p,g,r,m,v,!a)}function I(e,t){var n,i=g(e.attributes||{}),r=(0,c.extend)({},i,{text:e.textContent.replace(/\s+/g," "),textAlign:"middle"===i["text-anchor"]?"center":i["text-anchor"]}),a=i.transform;return a&&((n=a.match(/translate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/))&&(n=n[0].match(/-*\d+([.]\d+)*/g),r.translateX=x(n[0]),r.translateY=n[1]?x(n[1]):0),(n=a.match(/rotate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*,*\s*-*\d+([.]\d+)*)*/))&&(n=n[0].match(/-*\d+([.]\d+)*/g),r.rotationAngle=x(n[0]),r.rotationX=n[1]&&x(n[1]),r.rotationY=n[2]&&x(n[2])),(n=a.match(/scale\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/))&&(n=n[0].match(/-*\d+([.]\d+)*/g),r.scaleX=x(n[0]),r.scaleY=n.length>1?x(n[1]):r.scaleX)),function(e,t,n){var i,r=e.style||{};for(i in r)""!==r[i]&&(t[(0,h.camelize)(i)]=r[i]);n&&u.default.isElementNode(e)&&(r=m.getComputedStyle(e),["fill","stroke","stroke-width","font-family","font-size","font-style","font-weight"].forEach(function(e){e in r&&""!==r[e]&&(t[(0,h.camelize)(e)]=r[e])}),["opacity","fill-opacity","stroke-opacity"].forEach(function(e){e in r&&""!==r[e]&&"1"!==r[e]&&(t[e]=x(r[e]))})),t.textDecoration=t.textDecoration||t.textDecorationLine,t.globalAlpha=(0,o.isDefined)(t.opacity)?t.opacity:t.globalAlpha}(e,r,t),r}function D(e){var t=e&&e.match(/url\(.*#(.*?)["']?\)/i);return t&&t[1]}function M(e,t){var n=[];t.fontSize=t.fontSize||"10px",t.fill=t.fill||"#000",t.fontStyle&&n.push(t.fontStyle),t.fontWeight&&n.push(t.fontWeight),n.push(t.fontSize),n.push(t.fontFamily),e.font=n.join(" "),e.textAlign=t.textAlign,e.fillStyle=t.fill,e.globalAlpha=t.globalAlpha}function A(e){for(var t=e.childNodes,n=0;n2&&void 0!==arguments[2]?arguments[2]:new f.Deferred;if(0===e.length)return n.resolve();var i=t(e[0]);function r(){F(Array.prototype.slice.call(e,1),t,n)}return(0,o.isPromise)(i)?i.then(r):r(),n}function B(e,t,n,i){return F(e,function(e){switch(e.tagName&&e.tagName.toLowerCase()){case"g":case"svg":var a=(0,c.extend)({},n,I(e,i.rootAppended));t.save(),j(t,a),N(t,a,i);var u=function(){t.restore()},l=B(e.childNodes,t,a,i);return(0,o.isPromise)(l)?l.then(u):u(),l;case"defs":return B(e.childNodes,t,{},i);case"clippath":i.clipPaths[e.attributes.id.textContent]=e.childNodes[0];break;case"pattern":i.patterns[e.attributes.id.textContent]=e;break;case"filter":i.filters[e.id]=function(e){var t={};return(0,s.each)(e.childNodes,function(e,n){var i,o,a=n.attributes;if(a.result)switch(a.result.value){case"gaussianBlurResult":t.blur=x(a.stdDeviation.value);break;case"offsetResult":t.offsetX=x(a.dx.value),t.offsetY=x(a.dy.value);break;case"floodResult":t.color=(i=a["flood-opacity"]?a["flood-opacity"].value:1,"rgba("+(o=new r.default(a["flood-color"]?a["flood-color"].value:"#000")).r+","+o.g+","+o.b+","+i+")")}}),t}(e);break;case"lineargradient":i.gradients[e.attributes.id.textContent]=function(e){var t=[];return(0,s.each)(e.childNodes,function(e,n){var i=n.attributes;t.push({offset:i.offset.value,stopColor:i["stop-color"].value})}),t}(e);break;default:return L(e,t,n,i)}})}function V(e,t,n){var i=t.stroke;i&&"none"!==i&&0!==t["stroke-width"]&&(function(e,t){var n=t["stroke-dasharray"]&&t["stroke-dasharray"].match(/(\d+)/g);n&&n.length&&(n=(0,s.map)(n,function(e){return x(e)}),e.setLineDash(n))}(e,t),e.lineJoin=t["stroke-linejoin"],e.lineWidth=t["stroke-width"],e.globalAlpha=t.strokeOpacity,e.strokeStyle=i,n?e.strokeText(t.text,t.x,t.y):e.stroke(),e.globalAlpha=1)}function $(e,t,n){var i=t.fill;if(i&&"none"!==i){if(-1===i.search(/url/))e.fillStyle=i;else{var r=n.patterns[D(i)];if(!r)return;e.fillStyle=function(e,t,n){var i=I(t,n.rootAppended),r=T(i.width,i.height,0),o=r.getContext("2d");return B(t.childNodes,o,i,n),e.createPattern(r,"repeat")}(e,r,n)}e.globalAlpha=t.fillOpacity,e.fill(),e.globalAlpha=1}}function H(e,t,n,i,r){e.fillStyle=i||"#ffffff",e.fillRect(-r,-r,t+2*r,n+2*r)}function U(){var e=u.default.createElement("div");return e.style.left="-9999px",e.style.position="absolute",e}function z(e,t,n){return B(e.childNodes,t.getContext("2d"),{},{clipPaths:{},patterns:{},filters:{},gradients:{},rootAppended:n})}g=function(e){var t,n={};return(0,s.each)(e,function(e,i){t=i.textContent,isFinite(t)&&(t=x(t)),n[i.name.toLowerCase()]=t}),n},t.imageCreator={getImageData:function(e,t){var n="image/"+t.format,i=t.width,r=t.height,s=t.backgroundColor;return(0,o.isFunction)(t.__parseAttributesFn)&&(g=t.__parseAttributesFn),function(e,t,n,i,r){var o,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:z,c=T(t,n,r),d=c.getContext("2d"),h=a.default.getSvgElement(e),p=u.default.isElementNode(e);return d.translate(r,r),u.default.getBody().appendChild(c),p||((o=U()).appendChild(h),u.default.getBody().appendChild(o)),h.attributes.direction&&(c.dir=h.attributes.direction.textContent),H(d,t,n,i,r),(0,f.fromPromise)(s(h,c,p&&l.default.contains(u.default.getBody(),e))).then(function(){return c}).always(function(){o&&u.default.getBody().removeChild(o),u.default.getBody().removeChild(c)})}(e,i,r,s,t.margin,t.svgToCanvas).then(function(e){return function(e,t){var n=e.toDataURL(t,1);return m.atob(n.substring(("data:"+t+";base64,").length))}(e,n)})},getData:function(e,n){var i=this;return t.imageCreator.getImageData(e,n).then(function(e){var t="image/"+n.format;return(0,o.isFunction)(m.Blob)&&!n.forceProxy?i._getBlob(e,t):i._getBase64(e)})},_getBlob:function(e,t){var n,i=new Uint8Array(e.length);for(n=0;n0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},"3+zk":function(e,t,n){"use strict";var i=o(n("BWGd")),r=o(n("Dwac"));function o(e){return e&&e.__esModule?e:{default:e}}t.RowsView=r.default.views.rowsView,i.default.registerModule("rows",r.default)},"3As9":function(e,t,n){"use strict";var i=n("FKN7"),r=n("jeLr"),o=n("LdFP"),a=n("1LL4").extend,s=n("yUp2"),c=n("D6VQ"),u=n("Lci2"),l=n("GCD8"),d=n("XCcL"),h=u.inherit({_supportedKeys:function(){return a(this.callBase(),{space:function(e){e.preventDefault(),this._clickAction({event:e})}})},_getDefaultOptions:function(){return a(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1,useInkRipple:!1})},_canValueBeChangedByClick:function(){return!0},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===o.real().deviceType&&!o.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.$element().addClass("dx-radiobutton")},_initMarkup:function(){this.callBase(),this._renderIcon(),this.option("useInkRipple")&&this._renderInkRipple(),this._renderCheckedState(this.option("value")),this._renderClick(),this.setAria("role","radio")},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:3.3,useHoldAnimation:!1,wavesNumber:2,isCentered:!0})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var r={element:e,event:t,wave:i};n?this._inkRipple.showWave(r):this._inkRipple.hideWave(r)}},_updateFocusState:function(e,t){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,e,t,0)},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,n,t,1)},_renderIcon:function(){this._$icon=i("
").addClass("dx-radiobutton-icon"),i("
").addClass("dx-radiobutton-icon-dot").appendTo(this._$icon),this.$element().append(this._$icon)},_renderCheckedState:function(e){this.$element().toggleClass("dx-radiobutton-checked",e).find(".dx-radiobutton-icon").toggleClass("dx-radiobutton-icon-checked",e),this.setAria("checked",e)},_renderClick:function(){var e=l.addNamespace(d.name,this.NAME);this._clickAction=this._createAction((function(e){this._clickHandler(e.event)}).bind(this)),r.off(this.$element(),e),r.on(this.$element(),e,(function(e){this._clickAction({event:e})}).bind(this))},_clickHandler:function(e){this._saveValueChangeEvent(e),this.option("value",!0)},_optionChanged:function(e){switch(e.name){case"useInkRipple":this._invalidate();break;case"value":this._renderCheckedState(e.value),this.callBase(e);break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});c("dxRadioButton",h),e.exports=h},"3E1r":function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.defineLocale("hi",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924"===t?e<4?e:e+12:"\u0938\u0941\u092c\u0939"===t?e:"\u0926\u094b\u092a\u0939\u0930"===t?e>=10?e:e+12:"\u0936\u093e\u092e"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0930\u093e\u0924":e<10?"\u0938\u0941\u092c\u0939":e<17?"\u0926\u094b\u092a\u0939\u0930":e<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(n("wd/R"))},"3HbM":function(e,t,n){"use strict";var i=o(n("BWGd")),r=o(n("H/Lu"));function o(e){return e&&e.__esModule?e:{default:e}}i.default.registerModule("virtualColumns",r.default)},"3IPI":function(e,t,n){"use strict";var i=n("2Fn2"),r=n("S3Ua").getFormatter,o=n("Y0yK"),a=n("ti0F"),s=a.isString,c=a.isDate,u=a.isNumeric,l="number",d=/^(\d{4,})(-)?(\d{2})(-)?(\d{2})(?:T(\d{2})(:)?(\d{2})?(:)?(\d{2}(?:\.(\d{1,3})\d*)?)?)?(Z|([+-])(\d{2})(:)?(\d{2})?)?$/,h=/^(\d{2}):(\d{2})(:(\d{2}))?$/,f=["","yyyy","","MM","","dd","THH","","mm","","ss",".SSS"],p=function(e,t){var n,i;return s(e)&&!t&&(n=function(e){var t=e.match(d),n=function(e){return+e||0};if(!t)return(t=e.match(h))?new Date(0,0,0,n(t[1]),n(t[2]),n(t[4])):void 0;var i=t[1],r=--t[3],o=t[5],a=0,s=0;a=n(t[14]),s=n(t[16]),"-"===t[13]&&(a=-a,s=-s);var c,u=n(t[6])-a,l=n(t[8])-s,f=n(t[10]),p=n(c=(c=t[11])||"")*Math.pow(10,3-c.length);return t[12]?new Date(Date.UTC(i,r,o,u,l,f,p)):new Date(i,r,o,u,l,f,p)}(e)),n||(i=!c(e)&&Date.parse(e),n=u(i)?new Date(i):e),n};e.exports={dateParser:p,deserializeDate:function(e){return"number"==typeof e?new Date(e):p(e,!i().forceIsoDateParsing)},serializeDate:function(e,t){return t?c(e)?t===l?e&&e.valueOf?e.valueOf():null:r(t,o)(e):null:e},getDateSerializationFormat:function(e){return"number"==typeof e?l:s(e)?(i().forceIsoDateParsing&&(t=function(e,t){var n=e.match(d),i="";if(!n)return(n=e.match(h))?n[3]?"HH:mm:ss":"HH:mm":void 0;for(var r=1;r=0?"yyyy/MM/dd HH:mm:ss":"yyyy/MM/dd")):e?null:void 0;var t}}},"3JVz":function(e,t,n){"use strict";var i=n("cGv3").getWindow(),r=n("eWCF");e.exports=r({getXhr:function(){return new i.XMLHttpRequest}})},"3Kre":function(e,t,n){"use strict";n.r(t),n.d(t,"factory",function(){return C}),n.d(t,"registerAnalytics",function(){return S}),n.d(t,"resetGlobalVars",function(){return b}),n.d(t,"settings",function(){return w});var i,r,o,a=n("wj3C"),s=n.n(a),c=(n("fSjL"),n("mrSG")),u=n("zVF4"),l=n("S+S0"),d="https://www.googletagmanager.com/gtag/js",h=function(e){return e.EVENT="event",e.SET="set",e.CONFIG="config",e}({}),f=function(e){return e.ADD_PAYMENT_INFO="add_payment_info",e.ADD_TO_CART="add_to_cart",e.ADD_TO_WISHLIST="add_to_wishlist",e.BEGIN_CHECKOUT="begin_checkout",e.CHECKOUT_PROGRESS="checkout_progress",e.EXCEPTION="exception",e.GENERATE_LEAD="generate_lead",e.LOGIN="login",e.PAGE_VIEW="page_view",e.PURCHASE="purchase",e.REFUND="refund",e.REMOVE_FROM_CART="remove_from_cart",e.SCREEN_VIEW="screen_view",e.SEARCH="search",e.SELECT_CONTENT="select_content",e.SET_CHECKOUT_OPTION="set_checkout_option",e.SHARE="share",e.SIGN_UP="sign_up",e.TIMING_COMPLETE="timing_complete",e.VIEW_ITEM="view_item",e.VIEW_ITEM_LIST="view_item_list",e.VIEW_PROMOTION="view_promotion",e.VIEW_SEARCH_RESULTS="view_search_results",e}({}),p=((i={})["no-ga-id"]='"measurementId" field is empty in Firebase config. Firebase Analytics requires this field to contain a valid measurement ID.',i["already-exists"]="A Firebase Analytics instance with the measurement ID ${id} already exists. Only one Firebase Analytics instance can be created for each measurement ID.",i["already-initialized"]="Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.",i["interop-component-reg-failed"]="Firebase Analytics Interop Component failed to instantiate",i),g=new u.ErrorFactory("analytics","Analytics",p),m={},v="dataLayer",_="gtag",y=!1;function b(e,t){void 0===e&&(e=!1),void 0===t&&(t={}),y=e,m=t,v="dataLayer",_="gtag"}function w(e){if(y)throw g.create("already-initialized");e.dataLayerName&&(v=e.dataLayerName),e.gtagName&&(_=e.gtagName)}function C(e,t){var n=e.options.measurementId;if(!n)throw g.create("no-ga-id");if(null!=m[n])throw g.create("already-exists",{id:n});if(!y){(function(){for(var e=window.document.getElementsByTagName("script"),t=0,n=Object.values(e);t5&&void 0!==arguments[5])||arguments[5],u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];Object(o.a)(this,e),this.store=t,this.currentLoader=n,this.compiler=i,this.parser=r,this.missingTranslationHandler=a,this.useDefaultLang=c,this.isolate=u,this.pending=!1,this._onTranslationChange=new s.s,this._onLangChange=new s.s,this._onDefaultLangChange=new s.s,this._langs=[],this._translations={},this._translationRequests={}}return Object(a.a)(e,[{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(e){this.isolate?this._currentLang=e:this.store.currentLang=e}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(e){this.isolate?this._langs=e:this.store.langs=e}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(e){this.isolate?this._translations=e:this.store.translations=e}},{key:"setDefaultLang",value:function(e){var t=this;if(e!==this.defaultLang){var n=this.retrieveTranslations(e);void 0!==n?(this.defaultLang||(this.defaultLang=e),n.pipe(Object(F.a)(1)).subscribe(function(n){t.changeDefaultLang(e)})):this.changeDefaultLang(e)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(e){var t=this;if(e===this.currentLang)return Object(l.a)(this.translations[e]);var n=this.retrieveTranslations(e);return void 0!==n?(this.currentLang||(this.currentLang=e),n.pipe(Object(F.a)(1)).subscribe(function(n){t.changeLang(e)}),n):(this.changeLang(e),Object(l.a)(this.translations[e]))}},{key:"retrieveTranslations",value:function(e){var t;return void 0===this.translations[e]&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}},{key:"getTranslation",value:function(e){var t=this;this.pending=!0;var n=this.currentLoader.getTranslation(e).pipe(Object(B.a)());return this.loadingTranslations=n.pipe(Object(F.a)(1),Object(h.a)(function(n){return t.compiler.compileTranslations(n,e)}),Object(B.a)()),this.loadingTranslations.subscribe(function(n){t.translations[e]=n,t.updateLangs(),t.pending=!1},function(e){t.pending=!1}),n}},{key:"setTranslation",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=this.compiler.compileTranslations(t,e),this.translations[e]=n&&this.translations[e]?te(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(e){var t=this;e.forEach(function(e){-1===t.langs.indexOf(e)&&t.langs.push(e)})}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(e,t,n){var i;if(t instanceof Array){var r,o={},a=!1,s=Object(P.a)(t);try{for(s.s();!(r=s.n()).done;){var c=r.value;o[c]=this.getParsedResult(e,c,n),"function"==typeof o[c].subscribe&&(a=!0)}}catch(v){s.e(v)}finally{s.f()}if(a){var u,d,f=Object(P.a)(t);try{for(f.s();!(d=f.n()).done;){var p=d.value,g="function"==typeof o[p].subscribe?o[p]:Object(l.a)(o[p]);u=void 0===u?g:Object(R.a)(u,g)}}catch(v){f.e(v)}finally{f.f()}return u.pipe(function(e,t){return arguments.length>=2?function(n){return Object(U.a)(Object(V.a)(e,t),Object($.a)(1),Object(H.a)(t))(n)}:function(t){return Object(U.a)(Object(V.a)(function(t,n,i){return e(t,n,i+1)}),Object($.a)(1))(t)}}(z,[]),Object(h.a)(function(e){var n={};return e.forEach(function(e,i){n[t[i]]=e}),n}))}return o}if(e&&(i=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===i&&this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===i){var m={key:t,translateService:this};void 0!==n&&(m.interpolateParams=n),i=this.missingTranslationHandler.handle(m)}return void 0!==i?i:t}},{key:"get",value:function(e,t){var n=this;if(!Z(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return j.a.create(function(i){var r=function(e){i.next(e),i.complete()},o=function(e){i.error(e)};n.loadingTranslations.subscribe(function(i){"function"==typeof(i=n.getParsedResult(i,e,t)).subscribe?i.subscribe(r,o):r(i)},o)});var i=this.getParsedResult(this.translations[this.currentLang],e,t);return"function"==typeof i.subscribe?i:Object(l.a)(i)}},{key:"stream",value:function(e,t){var n=this;if(!Z(e)||!e.length)throw new Error('Parameter "key" required');return Object(N.a)(this.get(e,t),this.onLangChange.pipe(Object(g.a)(function(i){var r=n.getParsedResult(i.translations,e,t);return"function"==typeof r.subscribe?r:Object(l.a)(r)})))}},{key:"instant",value:function(e,t){if(!Z(e)||!e.length)throw new Error('Parameter "key" required');var n=this.getParsedResult(this.translations[this.currentLang],e,t);if(void 0!==n.subscribe){if(e instanceof Array){var i={};return e.forEach(function(t,n){i[e[n]]=e[n]}),i}return e}return n}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}},{key:"changeLang",value:function(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang||this.changeDefaultLang(e)}},{key:"changeDefaultLang",value:function(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}},{key:"reloadLang",value:function(e){return this.resetLang(e),this.getTranslation(e)}},{key:"resetLang",value:function(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return-1!==(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage).indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator)return(window.navigator.languages?window.navigator.languages[0]:null)||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}]),e}();return e.\u0275fac=function(t){return new(t||e)(s.kc(oe),s.kc(W),s.kc(X),s.kc(ne),s.kc(q),s.kc(se),s.kc(ae))},e.\u0275prov=s.Wb({token:e,factory:e.\u0275fac}),e}(),ue=function(){var e=function(){function e(){Object(o.a)(this,e)}return Object(a.a)(e,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:W,useClass:Y},t.compiler||{provide:X,useClass:J},t.parser||{provide:ne,useClass:ie},t.missingTranslationHandler||{provide:q,useClass:K},oe,{provide:ae,useValue:t.isolate},{provide:se,useValue:t.useDefaultLang},ce]}}},{key:"forChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:W,useClass:Y},t.compiler||{provide:X,useClass:J},t.parser||{provide:ne,useClass:ie},t.missingTranslationHandler||{provide:q,useClass:K},{provide:ae,useValue:t.isolate},{provide:se,useValue:t.useDefaultLang},ce]}}}]),e}();return e.\u0275mod=s.Yb({type:e}),e.\u0275inj=s.Xb({factory:function(t){return new(t||e)}}),e}(),le=n("tyNb"),de=n("6t9p"),he=n("tk/3"),fe=n("KQm4"),pe=n("ODXe"),ge=n("YS7c"),me=n.n(ge),ve=n("quSY"),_e=Object(a.a)(function e(t,n,i){Object(o.a)(this,e),this.name=t,this.drake=n,this.options=i,this.initEvents=!1}),ye={Cancel:"cancel",Cloned:"cloned",Drag:"drag",DragEnd:"dragend",Drop:"drop",Out:"out",Over:"over",Remove:"remove",Shadow:"shadow",DropModel:"dropModel",RemoveModel:"removeModel"},be=Object.keys(ye).map(function(e){return ye[e]}),we=me.a||ge,Ce=Object(a.a)(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:we;Object(o.a)(this,e),this.build=t}),Oe=function(e,t,n){return function(i){return i.pipe(Object(d.a)(function(n){return n.event===e&&(void 0===t||n.name===t)}),Object(h.a)(function(e){return n(e.name,e.args)}))}},Se=function(e,t){var n=Object(pe.a)(t,3);return{name:e,el:n[0],container:n[1],source:n[2]}},ke=function(){var e=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;Object(o.a)(this,e),this.drakeFactory=n,this.dispatch$=new c.a,this.drag=function(e){return t.dispatch$.pipe(Oe(ye.Drag,e,function(e,t){var n=Object(pe.a)(t,2);return{name:e,el:n[0],source:n[1]}}))},this.dragend=function(e){return t.dispatch$.pipe(Oe(ye.DragEnd,e,function(e,t){return{name:e,el:Object(pe.a)(t,1)[0]}}))},this.drop=function(e){return t.dispatch$.pipe(Oe(ye.Drop,e,function(e,t){var n=Object(pe.a)(t,4);return{name:e,el:n[0],target:n[1],source:n[2],sibling:n[3]}}))},this.elContainerSource=function(e){return function(n){return t.dispatch$.pipe(Oe(e,n,Se))}},this.cancel=this.elContainerSource(ye.Cancel),this.remove=this.elContainerSource(ye.Remove),this.shadow=this.elContainerSource(ye.Shadow),this.over=this.elContainerSource(ye.Over),this.out=this.elContainerSource(ye.Out),this.cloned=function(e){return t.dispatch$.pipe(Oe(ye.Cloned,e,function(e,t){var n=Object(pe.a)(t,3);return{name:e,clone:n[0],original:n[1],cloneType:n[2]}}))},this.dropModel=function(e){return t.dispatch$.pipe(Oe(ye.DropModel,e,function(e,t){var n=Object(pe.a)(t,9);return{name:e,el:n[0],target:n[1],source:n[2],sibling:n[3],item:n[4],sourceModel:n[5],targetModel:n[6],sourceIndex:n[7],targetIndex:n[8]}}))},this.removeModel=function(e){return t.dispatch$.pipe(Oe(ye.RemoveModel,e,function(e,t){var n=Object(pe.a)(t,6);return{name:e,el:n[0],container:n[1],source:n[2],item:n[3],sourceModel:n[4],sourceIndex:n[5]}}))},this.groups={},null===this.drakeFactory&&(this.drakeFactory=new Ce)}return Object(a.a)(e,[{key:"add",value:function(e){if(this.find(e.name))throw new Error('Group named: "'+e.name+'" already exists.');return this.groups[e.name]=e,this.handleModels(e),this.setupEvents(e),e}},{key:"find",value:function(e){return this.groups[e]}},{key:"destroy",value:function(e){var t=this.find(e);t&&(t.drake&&t.drake.destroy(),delete this.groups[e])}},{key:"createGroup",value:function(e,t){return this.add(new _e(e,this.drakeFactory.build([],t),t))}},{key:"handleModels",value:function(e){var t,n,i,r=this,o=e.name,a=e.drake,s=e.options;a.on("remove",function(e,t,i){if(a.models){var s=a.models[a.containers.indexOf(i)],c=(s=s.slice(0)).splice(n,1)[0];r.dispatch$.next({event:ye.RemoveModel,name:o,args:[e,t,i,c,s,n]})}}),a.on("drag",function(e,i){a.models&&(t=e,n=r.domIndexOf(e,i))}),a.on("drop",function(e,c,u,l){if(a.models&&c){i=r.domIndexOf(e,c);var d,h=a.models[a.containers.indexOf(u)],f=a.models[a.containers.indexOf(c)];if(c===u)d=(h=h.slice(0)).splice(n,1)[0],h.splice(i,0,d),f=h;else{var p=t!==e;if(d=h[n],p){if(!s.copyItem)throw new Error("If you have enabled `copy` on a group, you must provide a `copyItem` function.");d=s.copyItem(d)}if(p||(h=h.slice(0)).splice(n,1),(f=f.slice(0)).splice(i,0,d),p)try{c.removeChild(e)}catch(g){}}r.dispatch$.next({event:ye.DropModel,name:o,args:[e,c,u,l,d,h,f,n,i]})}})}},{key:"setupEvents",value:function(e){var t=this;if(!e.initEvents){e.initEvents=!0;var n=e.name;be.forEach(function(i){e.drake.on(i,function(){for(var e=arguments.length,r=new Array(e),o=0;o0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;Object(o.a)(this,e),this.containers=t,this.options=n,this.models=i,this.dragging=!1,this.emitter$=new c.a,this.subs=new ve.a}return Object(a.a)(e,[{key:"start",value:function(e){this.dragging=!0}},{key:"end",value:function(){this.dragging=!1}},{key:"cancel",value:function(e){this.dragging=!1}},{key:"remove",value:function(){this.dragging=!1}},{key:"on",value:function(e,t){this.subs.add(this.emitter$.pipe(Object(d.a)(function(t){return t.eventType===e})).subscribe(function(e){var n=e.args;t.apply(void 0,Object(fe.a)(n))}))}},{key:"destroy",value:function(){this.subs.unsubscribe()}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{responseType:"json",observe:"body"},t=arguments.length>1?arguments[1]:void 0;if(t)for(var n in e.params=new he.f,t)e.params=e.params.set(n,t[n]);return e}var qe=function(){var e=function(){function e(t,n){Object(o.a)(this,e),this.http=t,this.broadcasterService=n,this.accessTokenName="token",this.requestCount=0}return Object(a.a)(e,[{key:"getAuthHeaders",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.incrementRequestCount(e),{headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(localStorage.getItem(this.accessTokenName))}}}},{key:"doPrivateApiRequest",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Object(l.a)(localStorage.getItem(this.accessTokenName)).pipe(Object(p.a)(),Object(d.a)(function(e){return!!e}),Object(h.a)(this.getAuthHeaders.bind(this,n)),Object(g.a)(e),this.processApiResponse(t,n))}},{key:"get",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return this.doPrivateApiRequest(function(r){return i.http.get(i.apiUrl+e,Object.assign(Object.assign({},Ge(n,t)),r))},r,o)}},{key:"post",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return this.doPrivateApiRequest(function(r){return i.http.post(i.apiUrl+e,t,Object.assign(Object.assign({},Ge(n)),r))},r,o)}},{key:"put",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return this.doPrivateApiRequest(function(r){return i.http.put(i.apiUrl+e,t,Object.assign(Object.assign({},Ge(n)),r))},r,o)}},{key:"delete",value:function(e,t){var n=this,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return this.doPrivateApiRequest(function(i){return n.http.delete(n.apiUrl+e,Object.assign(Object.assign({},Ge(t)),i))},i,r)}},{key:"patch",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return this.doPrivateApiRequest(function(r){return i.http.patch(i.apiUrl+e,t,Object.assign(Object.assign({},Ge(n)),r))},r,o)}},{key:"getByEndpoint",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return this.doPrivateApiRequest(function(r){return i.http.get(e,Object.assign(Object.assign({},Ge(n,t)),r))},r,o)}},{key:"postByEndpoint",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return this.doPrivateApiRequest(function(r){return i.http.post(e,t,Object.assign(Object.assign({},Ge(n)),r))},r,o)}},{key:"putByEndpoint",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return this.doPrivateApiRequest(function(r){return i.http.put(e,t,Object.assign(Object.assign({},Ge(n)),r))},r,o)}},{key:"deleteByEndpoint",value:function(e,t){var n=this,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return this.doPrivateApiRequest(function(i){return n.http.delete(e,Object.assign(Object.assign({},Ge(t)),i))},i,r)}},{key:"patchByEndpoint",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return this.doPrivateApiRequest(function(r){return i.http.patch(e,t,Object.assign(Object.assign({},Ge(n)),r))},r,o)}},{key:"processApiResponse",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(i){return i.pipe(Object(h.a)(function(e){return t.decrementRequestCount(n),e.token&&localStorage.setItem(t.accessTokenName,e.token),e.result?e.result:e}),Object(f.a)(function(i){return t.decrementRequestCount(n),401===i.status&&(localStorage.removeItem(t.accessTokenName),location.reload()),e&&t.broadcasterService.broadcast(Le.Show_Cmx_Information_Popup,{type:"info",titleText:"Information",headerText:i.header||"",bodyText:i.body||""}),Object(u.a)(i)}))}}},{key:"incrementRequestCount",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t&&(this.requestCount++,setTimeout(function(){e.broadcasterService.broadcast(Le.Toggle_Loader,!0)},0))}},{key:"decrementRequestCount",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t&&(this.requestCount--,0===this.requestCount&&setTimeout(function(){e.broadcasterService.broadcast(Le.Toggle_Loader,!1)},0))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Object(s.kc)(he.b),Object(s.kc)(Re))},e.\u0275prov=Object(s.Wb)({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Ke=function(e){return e.NAVIGATE_IN_APP="navigateInApp",e.API_CALL="apiCall",e.EVENT="event",e.API_CALL_AND_NAVIGATE_IN_APP="apiCallAndNavigateInApp",e.API_CALL_AND_EVENT="apiCallAndEvent",e.API_CALL_AND_EVENT_AND_NAVIGATE_IN_APP="apiCallAndEventAndNavigateInApp",e}({}),Xe=function(){var e=function(){function e(t,n,i){Object(o.a)(this,e),this.router=t,this.event=n,this.privateApiCaller=i}return Object(a.a)(e,[{key:"callAction",value:function(e){var t=this;if(e&&e.type)switch(e.type){case Ke.EVENT:var n=e.options?e.options.data:null;e.options.name.split(",").forEach(function(e){t.event.broadcast(e,n)});break;case Ke.NAVIGATE_IN_APP:this.router.navigate(e.options.commands,e.options.extras);break;case Ke.API_CALL:break;case Ke.API_CALL_AND_NAVIGATE_IN_APP:this.privateApiCaller[e.options.method](e.options.endpoint,e.options.data,e.options.params).subscribe(function(n){t.router.navigate(e.options.commands,e.options.extras)},function(n){e.options.saveLocallyOnFailure&&t.addLocallData(e.options.data)});break;case Ke.API_CALL_AND_EVENT:this.privateApiCaller[e.options.method](e.options.endpoint,e.options.data,e.options.params).subscribe(function(n){var i=e.options?e.options.data:{};i.responseData=n,e.options.eventName.split(",").forEach(function(e){t.event.broadcast(e,i)})});break;case Ke.API_CALL_AND_EVENT_AND_NAVIGATE_IN_APP:this.privateApiCaller[e.options.method](e.options.endpoint,e.options.data,e.options.params).subscribe(function(n){var i=e.options?e.options.data:{};i.responseData=n,e.options.eventName.split(",").forEach(function(e){t.event.broadcast(e,i)}),setTimeout(function(){t.router.navigate(e.options.commands,e.options.extras)},0)},function(n){e.options.saveLocallyOnFailure&&t.addLocallData(e.options.data)})}}},{key:"addLocallData",value:function(e){var t=indexedDB.open("shipmentTransaction",1);t.onupgradeneeded=function(e){e.target.result.createObjectStore("transaction",{keyPath:"id",autoIncrement:!1})},t.onsuccess=function(t){t.target.result.transaction(["transaction"],"readwrite").objectStore("transaction").put(e).onerror=function(e){console.log("error storing data")}},t.onerror=function(e){console.error("Unable to open database.")}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Object(s.kc)(le.g),Object(s.kc)(Re),Object(s.kc)(qe))},e.\u0275prov=Object(s.Wb)({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Je=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(s.Wb)({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Qe=["cont"];function Ze(e,t){}function et(e,t){if(1&e){var n=Object(s.hc)();Object(s.gc)(0,"dx-button",9),Object(s.nc)("click",function(){return Object(s.Ic)(n),Object(s.qc)(2).goToPrevStep()}),Object(s.fc)()}if(2&e){var i=Object(s.qc)(2);Object(s.wc)("icon",null==i.workFlowSteps[i.selectedStep-1]||null==i.workFlowSteps[i.selectedStep-1].navButtons||null==i.workFlowSteps[i.selectedStep-1].navButtons.backButton?null:i.workFlowSteps[i.selectedStep-1].navButtons.backButton.icon)("text",(null==i.workFlowSteps[i.selectedStep-1]||null==i.workFlowSteps[i.selectedStep-1].navButtons||null==i.workFlowSteps[i.selectedStep-1].navButtons.backButton?null:i.workFlowSteps[i.selectedStep-1].navButtons.backButton.text)||"Back")("type",(null==i.workFlowSteps[i.selectedStep-1]||null==i.workFlowSteps[i.selectedStep-1].navButtons||null==i.workFlowSteps[i.selectedStep-1].navButtons.backButton?null:i.workFlowSteps[i.selectedStep-1].navButtons.backButton.type)||"normal")("disabled",null==i.workFlowSteps[i.selectedStep-1]||null==i.workFlowSteps[i.selectedStep-1].navButtons||null==i.workFlowSteps[i.selectedStep-1].navButtons.backButton?null:i.workFlowSteps[i.selectedStep-1].navButtons.backButton.disabled)}}function tt(e,t){if(1&e&&(Object(s.gc)(0,"span"),Object(s.Rc)(1),Object(s.fc)()),2&e){var n=Object(s.qc)(2);Object(s.Ob)(1),Object(s.Uc)("",null!=n.workFlowSteps&&n.workFlowSteps.length?n.selectedStep+1:0," of ",(null==n.workFlowSteps?null:n.workFlowSteps.length)||0,"")}}function nt(e,t){if(1&e&&(Object(s.gc)(0,"div",7),Object(s.gc)(1,"div"),Object(s.Pc)(2,et,1,4,"dx-button",8),Object(s.fc)(),Object(s.Pc)(3,tt,2,2,"span",6),Object(s.fc)()),2&e){var n=Object(s.qc)();Object(s.Ob)(2),Object(s.wc)("ngIf",!1!==(null==n.workFlowSteps[n.selectedStep-1]||null==n.workFlowSteps[n.selectedStep-1].navButtons||null==n.workFlowSteps[n.selectedStep-1].navButtons.backButton?null:n.workFlowSteps[n.selectedStep-1].navButtons.backButton.visible)),Object(s.Ob)(1),Object(s.wc)("ngIf",n.showStepNumbers)}}function it(e,t){1&e&&Object(s.bc)(0,"cmx-loader")}var rt=function(){var e=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i,r,a,c,u,l,d){var h;return Object(o.a)(this,n),(h=t.call(this,i)).dynamicActionsService=e,h.broadcasterService=i,h.router=r,h.viewContainerRef=a,h.injector=c,h.componentFactoryResolver=u,h.cmxDynamicComponentService=l,h.cdRef=d,h.task={},h.selectedStep=1,h.selectedStepChange=new s.s,h.prevSteps=[],h.currentStepData={},h.stepComponents={},h}return Object(a.a)(n,[{key:"ngAfterViewInit",value:function(){this.createComponent({stepId:this.selectedStep||1})}},{key:"ngOnChanges",value:function(e){var t=e.component;t&&!t.firstChange&&this.container&&(this.container.remove(),this.createComponent({stepId:this.selectedStep||1}))}},{key:"ngOnInit",value:function(){var e=this;this.subscriptions.push(this.broadcasterService.on(Le.CHANGE_STEP).subscribe(function(t){console.log(t),e.goToStep(t)}))}},{key:"createComponent",value:function(e){var t=parseInt(e.stepId)-1,n=this.workFlowSteps[t],i=this.componentFactoryResolver.resolveComponentFactory("string"==typeof n.widgetId?this.cmxDynamicComponentService.dynamicComponentsList[n.widgetId]:n),r=this.container;r.clear();var o=r.createComponent(i),a=o.instance;a.question=n.options.question,a.questions=n.options.questions,a.completeAction=n.options.completeAction,a.options=n.options,a.innerComponent=n.innerComponent,a.task=e.task||this.task,this.task=a.task,this.selectedStep=e.stepId,this.selectedStepChange.emit(this.selectedStep),this.prevSteps.push(this.selectedStep),o.changeDetectorRef.detectChanges(),this.cdRef.detectChanges()}},{key:"initializeDynamicStep",value:function(e,t){t=t||1,console.log("initializeDynamicStep",e,t),this.stepComponents[t]=e}},{key:"goToStep",value:function(e){this.createComponent(e),this.loader=!1}},{key:"goToNextStep",value:function(){}},{key:"goToPrevStep",value:function(){this.prevSteps.splice(-1,1);var e={stepId:this.prevSteps.pop()};this.goToStep(e)}},{key:"getStepIndexById",value:function(e){var t=-1;return this.workFlowSteps.find(function(n,i){if(n.id==e)return t=i,!0}),t}}]),n}(je);return e.\u0275fac=function(e){s.mc()},e.\u0275dir=s.Vb({type:e,features:[s.Lb,s.Mb]}),e.\u0275fac=function(t){return new(t||e)(Object(s.ac)(Xe),Object(s.ac)(Re),Object(s.ac)(le.g),Object(s.ac)(s.cb),Object(s.ac)(s.z),Object(s.ac)(s.m),Object(s.ac)(Je),Object(s.ac)(s.j))},e.\u0275cmp=Object(s.Ub)({type:e,selectors:[["cmx-workflow-processor"]],viewQuery:function(e,t){var n;1&e&&Object(s.Nc)(Qe,!0,s.cb),2&e&&Object(s.Ec)(n=Object(s.oc)())&&(t.container=n.first)},inputs:{task:"task",workFlowSteps:"workFlowSteps",selectedStep:"selectedStep",showStepNumbers:"showStepNumbers"},outputs:{selectedStepChange:"selectedStepChange"},features:[s.Lb,s.Mb],decls:8,vars:4,consts:[["width","100%",3,"selectedIndex","swipeEnabled"],["taskstepsview",""],[1,"h-100"],["class","h-100 overflow-auto"],["cont",""],["class","d-flex flex-row justify-content-around align-items-center p-2 workflow-footer",4,"ngIf"],[4,"ngIf"],[1,"d-flex","flex-row","justify-content-around","align-items-center","p-2","workflow-footer"],["class","back-btn",3,"icon","text","type","disabled","click",4,"ngIf"],[1,"back-btn",3,"icon","text","type","disabled","click"]],template:function(e,t){1&e&&(Object(s.gc)(0,"dx-multi-view",0,1),Object(s.gc)(2,"dxi-item"),Object(s.gc)(3,"div",2),Object(s.Pc)(4,Ze,0,0,"ng-template",3,4,s.Qc),Object(s.fc)(),Object(s.fc)(),Object(s.fc)(),Object(s.Pc)(6,nt,4,2,"div",5),Object(s.Pc)(7,it,1,0,"cmx-loader",6)),2&e&&(Object(s.wc)("selectedIndex",t.selectedStep)("swipeEnabled",!1),Object(s.Ob)(6),Object(s.wc)("ngIf",!1!==(null==t.workFlowSteps[t.selectedStep-1]||null==t.workFlowSteps[t.selectedStep-1].navButtons?null:t.workFlowSteps[t.selectedStep-1].navButtons.visible)),Object(s.Ob)(1),Object(s.wc)("ngIf",t.loader))},directives:[x.a,de.y,m.t,_.a,He],styles:["[_nghost-%COMP%]{display:flex} dx-multi-view{display:flex!important;flex:1 1 auto} dx-multi-view .dx-multiview-wrapper{height:auto!important} .workflow-footer{flex:0 1 50px}"]}),e}();function ot(e,t){if(1&e){var n=Object(s.hc)();Object(s.gc)(0,"dx-button",6),Object(s.nc)("onClick",function(e){Object(s.Ic)(n);var t=Object(s.qc)().$implicit;return Object(s.qc)().onCellButtonClicked(t,e)}),Object(s.fc)()}if(2&e){var i=Object(s.qc)().$implicit;Object(s.xc)("text",i.data[i.column.dataField])}}function at(e,t){if(1&e&&(Object(s.gc)(0,"div",4),Object(s.Pc)(1,ot,1,1,"dx-button",5),Object(s.fc)()),2&e){var n=t.$implicit;Object(s.Ob)(1),Object(s.wc)("ngIf",n.value)}}function st(e,t){if(1&e&&Object(s.bc)(0,"img",12),2&e){var n=Object(s.qc)(2).$implicit;Object(s.xc)("src",n.data[n.column.dataField].url,s.Kc)}}function ct(e,t){if(1&e){var n=Object(s.hc)();Object(s.gc)(0,"dx-button",13),Object(s.nc)("onClick",function(e){Object(s.Ic)(n);var t=Object(s.qc)(2).$implicit;return Object(s.qc)().onCellButtonClicked(t,e)}),Object(s.bc)(1,"img",12),Object(s.fc)()}if(2&e){var i=Object(s.qc)(2).$implicit;Object(s.Ob)(1),Object(s.xc)("src",i.data[i.column.dataField].url,s.Kc)}}function ut(e,t){if(1&e&&(Object(s.gc)(0,"div",9),Object(s.Pc)(1,st,1,1,"img",10),Object(s.Pc)(2,ct,2,1,"dx-button",11),Object(s.fc)()),2&e){var n=Object(s.qc)().$implicit;Object(s.xc)("title",n.data[n.column.dataField].title),Object(s.Ob)(1),Object(s.wc)("ngIf",n.value&&!n.data[n.column.dataField].isClickable),Object(s.Ob)(1),Object(s.wc)("ngIf",n.value&&n.data[n.column.dataField].isClickable)}}function lt(e,t){if(1&e&&(Object(s.gc)(0,"div",7),Object(s.Pc)(1,ut,3,3,"div",8),Object(s.fc)()),2&e){var n=t.$implicit;Object(s.Ob)(1),Object(s.wc)("ngIf",n.value)}}function dt(e,t){if(1&e&&(Object(s.gc)(0,"div"),Object(s.bc)(1,"img",12),Object(s.fc)()),2&e){var n=Object(s.qc)().$implicit;Object(s.Ob)(1),Object(s.xc)("src",n.data[n.column.dataField],s.Kc)}}function ht(e,t){if(1&e&&(Object(s.gc)(0,"div",7),Object(s.Pc)(1,dt,2,1,"div",14),Object(s.fc)()),2&e){var n=t.$implicit;Object(s.Ob)(1),Object(s.wc)("ngIf",n.value)}}function ft(e,t){if(1&e&&(Object(s.gc)(0,"div",16),Object(s.gc)(1,"div"),Object(s.Rc)(2),Object(s.fc)(),Object(s.bc)(3,"i"),Object(s.fc)()),2&e){var n=Object(s.qc)().$implicit;Object(s.xc)("title",n.data[n.column.dataField].title),Object(s.Ob)(2),Object(s.Sc)(n.data[n.column.dataField].count),Object(s.Ob)(1),Object(s.Qb)(n.data[n.column.dataField].icon)}}function pt(e,t){if(1&e&&(Object(s.gc)(0,"div",16),Object(s.bc)(1,"i"),Object(s.fc)()),2&e){var n=Object(s.qc)().$implicit;Object(s.xc)("title",n.data[n.column.dataField].title),Object(s.Ob)(1),Object(s.Qb)(n.data[n.column.dataField].icon)}}function gt(e,t){if(1&e&&(Object(s.gc)(0,"div",7),Object(s.Pc)(1,ft,4,5,"div",15),Object(s.Pc)(2,pt,2,4,"div",15),Object(s.fc)()),2&e){var n=t.$implicit;Object(s.Ob)(1),Object(s.wc)("ngIf",n.value&&n.data[n.column.dataField].count),Object(s.Ob)(1),Object(s.wc)("ngIf",n.value&&!n.data[n.column.dataField].count)}}function mt(e,t){if(1&e&&(Object(s.gc)(0,"span"),Object(s.Rc)(1),Object(s.fc)()),2&e){var n=Object(s.qc)().$implicit;Object(s.Qb)(n.data[n.column.dataField]),Object(s.Ob)(1),Object(s.Sc)(n.data[n.column.dataField])}}function vt(e,t){if(1&e&&(Object(s.gc)(0,"div",17),Object(s.Pc)(1,mt,2,4,"span",18),Object(s.fc)()),2&e){var n=t.$implicit;Object(s.Ob)(1),Object(s.wc)("ngIf",n.value)}}function _t(e,t){if(1&e&&(Object(s.gc)(0,"div"),Object(s.bc)(1,"cmx-data-grid",19),Object(s.fc)()),2&e){var n=t.$implicit;Object(s.Ob)(1),Object(s.wc)("options",n.data.options)}}var yt=function(){var e=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this,e)).broadcasterService=e,r.dynamicActionsService=i,r.onCellButtonClick=new s.s,r.subscriptions.push(e.on(Le.Grid_Get_Selected_Rows_Data).subscribe(function(e){r.broadcasterService.broadcast(Le.Grid_On_Get_Selected_Rows_Data,r.options.id?{source:r.dataGrid.instance.getSelectedRowsData(),id:r.options.id}:r.dataGrid.instance.getSelectedRowsData())})),r.subscriptions.push(e.on(Le.Grid_Refresh_Data).subscribe(function(e){r.dataGrid.instance.deselectAll(),r.dataGrid.instance.refresh()})),r.subscriptions.push(e.on(Le.Grid_Reset_Filters).subscribe(function(e){r.dataGrid.instance.clearFilter()})),r.subscriptions.push(e.on(Le.Grid_Update_Selected_Rows).subscribe(function(e){r.updateSelectedRows()})),r}return Object(a.a)(n,[{key:"ngAfterViewInit",value:function(){this.dataGrid.instance.option(this.options)}},{key:"onCellButtonClicked",value:function(e,t){this.onCellButtonClick.emit(e),this.broadcasterService.broadcast(Le.Grid_On_Cell_Button_Click,e)}},{key:"updateSelectedRows",value:function(){var e=this.dataGrid.instance.getSelectedRowKeys();if(e.length){this.dataGrid.instance.deselectRows(e);for(var t=[],n=0;n<=e.length;n++)-1!=this.dataGrid.instance.getRowIndexByKey(e[n])&&t.push(e[n]);this.dataGrid.instance.selectRows(t,!0)}}}]),n}(je);return e.\u0275fac=function(e){s.mc()},e.\u0275dir=s.Vb({type:e,features:[s.Lb]}),e.\u0275fac=function(t){return new(t||e)(Object(s.ac)(Re),Object(s.ac)(Xe))},e.\u0275cmp=Object(s.Ub)({type:e,selectors:[["cmx-data-grid"]],viewQuery:function(e,t){var n;1&e&&Object(s.Nc)(T.a,!0),2&e&&Object(s.Ec)(n=Object(s.oc)())&&(t.dataGrid=n.first)},inputs:{options:"options"},outputs:{onCellButtonClick:"onCellButtonClick"},features:[s.Lb],decls:7,vars:6,consts:[["class","button-template",4,"dxTemplate","dxTemplateOf"],["class","img-template text-center",4,"dxTemplate","dxTemplateOf"],["class","color-template",4,"dxTemplate","dxTemplateOf"],[4,"dxTemplate","dxTemplateOf"],[1,"button-template"],[3,"text","onClick",4,"ngIf"],[3,"text","onClick"],[1,"img-template","text-center"],[3,"title",4,"ngIf"],[3,"title"],[3,"src",4,"ngIf"],[3,"onClick",4,"ngIf"],[3,"src"],[3,"onClick"],[4,"ngIf"],["class","cell-badge",3,"title",4,"ngIf"],[1,"cell-badge",3,"title"],[1,"color-template"],[3,"class",4,"ngIf"],[3,"options"]],template:function(e,t){1&e&&(Object(s.gc)(0,"dx-data-grid"),Object(s.Pc)(1,at,2,1,"div",0),Object(s.Pc)(2,lt,2,1,"div",1),Object(s.Pc)(3,ht,2,1,"div",1),Object(s.Pc)(4,gt,3,2,"div",1),Object(s.Pc)(5,vt,2,1,"div",2),Object(s.Pc)(6,_t,2,1,"div",3),Object(s.fc)()),2&e&&(Object(s.Ob)(1),Object(s.wc)("dxTemplateOf","button"),Object(s.Ob)(1),Object(s.wc)("dxTemplateOf","image"),Object(s.Ob)(1),Object(s.wc)("dxTemplateOf","imageOnly"),Object(s.Ob)(1),Object(s.wc)("dxTemplateOf","icon"),Object(s.Ob)(1),Object(s.wc)("dxTemplateOf","color"),Object(s.Ob)(1),Object(s.wc)("dxTemplateOf","detailGrid"))},directives:[T.a,C.e,m.t,_.a,e],styles:['cmx-data-grid{display:block;height:100%;width:100%}cmx-data-grid .faw,cmx-data-grid .ma{font-size:16px}cmx-data-grid .no-text-decorator{text-decoration:none!important}cmx-data-grid dx-data-grid{max-width:none!important}cmx-data-grid dx-data-grid .img-template img{max-width:18px}cmx-data-grid dx-data-grid .button-template .dx-button-content{padding:0!important}cmx-data-grid dx-data-grid .button-template dx-button{-moz-user-select:auto!important;-ms-user-select:auto!important;-webkit-user-select:auto!important;user-select:auto!important;width:100%}cmx-data-grid dx-data-grid .export-menu-button.dx-menu-base{border:1px solid #ddd;border-radius:4px;padding:1px}cmx-data-grid dx-data-grid .export-menu-button.dx-menu-base:hover{background-color:#e6e6e6;border-color:#bebebe}cmx-data-grid dx-data-grid .dx-datagrid-container .dx-menu-item-has-icon .dx-icon,cmx-data-grid dx-data-grid .dx-menu-item-has-icon .dx-icon{color:#000!important}cmx-data-grid dx-data-grid .dx-toolbar{margin:0!important;padding:10px}cmx-data-grid dx-data-grid .sub-grid-container{display:block;height:348px}cmx-data-grid dx-data-grid .dx-row.dx-freespace-row.dx-column-lines>td{border-left:none;border-right:none}cmx-data-grid dx-data-grid .dx-datagrid-headers td[role=columnheader]:not([aria-sort=none]):not([aria-sort=""]){background-color:#397eb9;color:#fff}cmx-data-grid dx-data-grid .dx-datagrid-headers td[role=columnheader]:not([aria-sort=none]):not([aria-sort=""]) .dx-header-filter{color:#fff}cmx-data-grid .badge{background-color:#d40511;position:absolute;right:-12px;top:-5px}cmx-data-grid .badge-container{margin:auto;position:relative;width:24px}cmx-data-grid .status-image{text-align:center}cmx-data-grid .status-image img{height:24px;width:24px}cmx-data-grid .icon-image{text-align:center}cmx-data-grid .icon-image img{height:20px;width:20px}cmx-data-grid .cell-badge{position:relative}cmx-data-grid .cell-badge>div{background-color:#d40511;border-radius:50%;color:#fff;font-size:9px;font-weight:700;height:13px;position:absolute;right:0;top:0;width:13px}'],encapsulation:2}),e}(),bt=["cont"];function wt(e,t){1&e&&Object(s.bc)(0,"cmx-loader")}var Ct=function(){var e=function(){function e(t,n,i,r){Object(o.a)(this,e),this.cmxDynamicComponentService=t,this.viewRef=n,this.cdRef=i,this.componentFactoryResolver=r,this.hasLoader=!0,this.optionsChange=new s.s,this.initialized=new s.s,this.action=new s.s,this.loader=!0}return Object(a.a)(e,[{key:"ngAfterViewInit",value:function(){this.init()}},{key:"init",value:function(){if(this.loader=!0,this.component){var e=this.componentFactoryResolver.resolveComponentFactory("string"==typeof this.component?this.cmxDynamicComponentService.dynamicComponentsList[this.component]:this.component);this.injectComponent(e,this.options,this.container),this.loader=!1,this.options||(this.options={}),this.cdRef.detectChanges(),this.initialized.emit(this.control)}else this.loader=!1,this.cdRef.detectChanges(),this.initialized.emit(this.control)}},{key:"injectComponent",value:function(e,t,n){var i=this;if(e){var r=n.createComponent(e);for(var o in t)t.hasOwnProperty(o)&&(r.instance[o]=t[o]);if(this.events)for(var a=0;a .panel[_ngcontent-%COMP%]{height:100%}.maximized-panel[_nghost-%COMP%] > .panel[_ngcontent-%COMP%] > .panel-content-wrapper[_ngcontent-%COMP%]{border:0!important;height:100%!important;margin:auto;width:100%}.maximized-panel[_nghost-%COMP%] > .panel[_ngcontent-%COMP%] > .panel-content-wrapper[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{height:100%!important}[_nghost-%COMP%] .panel[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;width:100%}[_nghost-%COMP%] .panel[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%]{align-items:center;border:1px solid #d0d0d0;display:flex;justify-content:space-between}[_nghost-%COMP%] .panel[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%] .drag-button[_ngcontent-%COMP%]{cursor:move;font-size:18px;padding-top:3px}[_nghost-%COMP%] .panel[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%] .header-text[_ngcontent-%COMP%]{align-items:center;display:flex;max-width:calc(100% - 20px);width:100%}[_nghost-%COMP%] .panel[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%] .header-text[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin-right:5px}[_nghost-%COMP%] .panel[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%] .header-text[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px}[_nghost-%COMP%] .panel[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%] .header-text[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:24px;max-width:24px}[_nghost-%COMP%] .panel[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%] .header-text[_ngcontent-%COMP%] .views[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%] .panel[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%] .header-text[_ngcontent-%COMP%] .views[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{box-sizing:border-box;cursor:pointer}[_nghost-%COMP%] .panel[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%] .header-text[_ngcontent-%COMP%] .views[_ngcontent-%COMP%] .icon.selected[_ngcontent-%COMP%]{box-shadow:0 0 0 2px #d40511;box-sizing:content-box}[_nghost-%COMP%] .panel[_ngcontent-%COMP%] .panel-content-wrapper[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #d0d0d0;border-top:0;box-sizing:border-box;height:400px;overflow:auto!important;overflow-x:hidden!important;padding:.625em 1em}[_nghost-%COMP%] .panel[_ngcontent-%COMP%] .panel-content-wrapper[_ngcontent-%COMP%] .dx-button[_ngcontent-%COMP%]{background:#fff;float:right!important}[_nghost-%COMP%] .panel[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] > .panel[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%]{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;background:#fafafa;border-bottom:1px solid #e1e1e1;border-color:rgba(0,0,0,.15);filter:none;font-family:Segoe UI,Helvetica Neue,Helvetica,Verdana,sans-serif;font-size:13px;min-height:34px;padding:0;user-select:none;width:100%}[_nghost-%COMP%] > .panel[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%] .header-text[_ngcontent-%COMP%]{-ms-text-overflow:ellipsis;cursor:default;font-weight:400;overflow:hidden;padding:2px 0 2px 10px;text-overflow:ellipsis}[_nghost-%COMP%] > .panel[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%] .header-text[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{flex:1 1 auto}[_nghost-%COMP%] > .panel[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%] .header-text[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#5d5d5d}[_nghost-%COMP%] > .panel[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{border-width:0;display:flex;padding:4px;vertical-align:top}[_nghost-%COMP%] > .panel[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] .dx-button-content{padding:0}[_nghost-%COMP%] > .panel[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] .dx-button-content .dx-icon{font-size:24px;height:100%;line-height:24px;width:100%}[_nghost-%COMP%] > .panel[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] .dx-button-content .dx-icon.ma.ma-fullscreen, [_nghost-%COMP%] > .panel[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] .dx-button-content .dx-icon.ma.ma-fullscreen_exit{font-size:24px}[_nghost-%COMP%] > .panel[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] .dx-button[_ngcontent-%COMP%]{background:#fff;border:0;border-radius:0;height:24px;width:24px}[_nghost-%COMP%] > .panel[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] .dx-button[_ngcontent-%COMP%]:hover{background-color:initial;box-shadow:0 0 0 1px rgba(0,0,0,.15)}[_nghost-%COMP%] > .panel[_ngcontent-%COMP%] .panel-content-wrapper[_ngcontent-%COMP%]{border-color:rgba(0,0,0,.15)}@media (-ms-high-contrast:active),(-ms-high-contrast:none){cmx-panel.maximized-panel[_ngcontent-%COMP%]{position:absolute!important}}"]}),e}(),Lt=["dynamiccomponents"];function Rt(e,t){if(1&e){var n=Object(s.hc)();Object(s.gc)(0,"cmx-dynamic",8,9),Object(s.nc)("optionsChange",function(e){return Object(s.Ic)(n),Object(s.qc)().$implicit.options=e}),Object(s.fc)()}if(2&e){var i=Object(s.qc)().$implicit;Object(s.wc)("options",i.options)("component",i.widgetId)}}function jt(e,t){if(1&e){var n=Object(s.hc)();Object(s.gc)(0,"div",2),Object(s.gc)(1,"cmx-panel",3),Object(s.nc)("onMenuItemClick",function(e){return Object(s.Ic)(n),t.$implicit.menuItemClick(e)}),Object(s.gc)(2,"div",4),Object(s.gc)(3,"span",5),Object(s.Rc)(4),Object(s.fc)(),Object(s.fc)(),Object(s.gc)(5,"div",6),Object(s.Pc)(6,Rt,2,2,"cmx-dynamic",7),Object(s.fc)(),Object(s.fc)(),Object(s.fc)()}if(2&e){var i=t.$implicit,r=Object(s.qc)();Object(s.Ob)(1),Object(s.wc)("draggable",1!==r.widgets.length)("icon",i.icon)("iconSrc",i.iconSrc)("menu",i.menu),Object(s.Ob)(3),Object(s.Tc)(" ",i.title," "),Object(s.Ob)(2),Object(s.wc)("ngIf",!i.dataSets||0===i.dataSets.length||i.dataSets&&i.dataSets.length>0&&i.selectedDataSet)}}var Nt=function(){var e=function(){function e(t){Object(o.a)(this,e),this.dragulaService=t,this.rowCount=2,this.colCount=2,this.layoutType=6,this.widgets=[],this.autoLoad=!1,this.initialized=new s.s,this.widgetsChange=new s.s,this.initializedItemsCount=0,this.layoutClasses="",this.dragulaContainerName=new De.a}return Object(a.a)(e,[{key:"ngOnInit",value:function(){this.init(),this.layoutClasses=kt["FlexTemplate"+this.layoutType]?kt["FlexTemplate"+this.layoutType].class:""}},{key:"dragulaModelChange",value:function(e){var t=this;this.widgets=e,this.widgetsChange.emit(this.widgets),setTimeout(function(){t.resize()},100)}},{key:"resize",value:function(){this.widgets&&this.widgets.forEach(function(e){e.component&&(e.component.resize?e.component.resize():e.component.updateDimensions&&e.component.updateDimensions())})}},{key:"init",value:function(){var e=this;this.layoutClasses=kt["FlexTemplate"+this.layoutType]?kt["FlexTemplate"+this.layoutType].class:"",this.initializedItemsCount=0,this.widgets.forEach(function(e){e.options=e.options||{},e.dataSets&&(e.selectedDataSet=e.dataSets[0])}),this.dragulaService.find(this.dragulaContainerName)||this.dragulaService.createGroup(this.dragulaContainerName,{moves:function(e,t,n){return n.className&&n.className.indexOf&&-1!==n.className.indexOf("drag-button")}}),setTimeout(function(){e.resize()},100)}},{key:"ngOnChanges",value:function(e){var t=this;(e.widgets||e.cols)&&setTimeout(function(){t.resize()},100)}}]),e}();return e.\u0275fac=function(e){s.mc()},e.\u0275dir=s.Vb({type:e,features:[s.Mb]}),e.\u0275fac=function(t){return new(t||e)(Object(s.ac)(ke))},e.\u0275cmp=Object(s.Ub)({type:e,selectors:[["cmx-draggable-panels-container"]],viewQuery:function(e,t){var n;1&e&&Object(s.Xc)(Lt,!0),2&e&&Object(s.Ec)(n=Object(s.oc)())&&(t.dynamics=n)},inputs:{rowCount:"rowCount",colCount:"colCount",layoutType:"layoutType",widgets:"widgets",filterParams:"filterParams",autoLoad:"autoLoad"},outputs:{initialized:"initialized",widgetsChange:"widgetsChange"},features:[s.Mb],decls:2,vars:5,consts:[[3,"dragula","dragulaModel","dragulaModelChange"],["class","item",4,"ngFor","ngForOf"],[1,"item"],[1,"no-margin",3,"draggable","icon","iconSrc","menu","onMenuItemClick"],[1,"header"],[1,"title"],[1,"content","h-100"],["class","h-100 overflow-auto",3,"options","component","optionsChange",4,"ngIf"],[1,"h-100","overflow-auto",3,"options","component","optionsChange"],["dynamiccomponents",""]],template:function(e,t){1&e&&(Object(s.gc)(0,"div",0),Object(s.nc)("dragulaModelChange",function(e){return t.dragulaModelChange(e)}),Object(s.Pc)(1,jt,7,6,"div",1),Object(s.fc)()),2&e&&(Object(s.Qb)("flex-gapped "+t.layoutClasses),Object(s.wc)("dragula",t.dragulaContainerName)("dragulaModel",t.widgets),Object(s.Ob)(1),Object(s.wc)("ngForOf",t.widgets))},directives:[xe,m.s,Pt,m.t,Ct],styles:["[_nghost-%COMP%]{display:block;height:100%;overflow:auto}[_nghost-%COMP%] dynamic[_ngcontent-%COMP%]{height:100%;width:100%}[_nghost-%COMP%] dynamic[_ngcontent-%COMP%] cmx-timeline.duration[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .title[_ngcontent-%COMP%]{float:left}[_nghost-%COMP%] dx-select-box[_ngcontent-%COMP%]{float:left;margin-left:10px}[_nghost-%COMP%] dx-select-box[_ngcontent-%COMP%] .dx-item[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] dx-select-box[_ngcontent-%COMP%] .dx-texteditor-input[_ngcontent-%COMP%]{min-height:20px;padding:0 5px 2px}[_nghost-%COMP%] .fullheight[_ngcontent-%COMP%]{height:100%!important}[_nghost-%COMP%] .draggable-column[_ngcontent-%COMP%] > cmx-panel[_ngcontent-%COMP%] > .panel[_ngcontent-%COMP%] > .panel-content-wrapper[_ngcontent-%COMP%]{padding:.625em .4em!important}@media (max-width:1200px){[_nghost-%COMP%] .width-50-percent[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%] .item>cmx-panel{height:100%}[_nghost-%COMP%] .item>cmx-panel>.panel>.panel-content-wrapper{height:100%!important}.item-content[_ngcontent-%COMP%]{background-color:rgba(90,216,90,.664);border:1px solid #266626;color:#266626}.flex-layout[_ngcontent-%COMP%]{display:flex}.flex-row-layout[_ngcontent-%COMP%]{flex-direction:row}.flex-column-layout[_ngcontent-%COMP%]{flex-direction:column}.flex-wrap[_ngcontent-%COMP%]{flex-wrap:wrap}.flex-nowrap[_ngcontent-%COMP%]{flex-wrap:nowrap}@media (min-width:1201px){.flex-fitted[_ngcontent-%COMP%]{height:100%}}.flex-not-fitted[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]{height:460px}.flex-gapped[_ngcontent-%COMP%], .flex-gapped[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]{padding:2px}@media (min-width:1201px){.flex-item-width-one-third-height-half[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]{height:50%;width:33.333%}.flex-item-width-half-height-half[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]{height:50%;width:50%}.flex-item-width-15-percent-height-half[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]{height:50%;width:30%}.flex-item-width-half[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]{width:50%}.flex-item-width-full[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]{width:100%}.flex-item-width-full-height-half[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]{height:50%;width:100%}.flex-fifth-item-full-height[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:nth-child(5), .flex-third-item-full-height[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:nth-child(3){height:100%}.flex-third-item-full-width[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:nth-child(3){width:100%}.flex-first-item-two-third-width-full-height[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:first-child{height:100%;width:66.666%}.flex-first-item-full-width-half-height[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:first-child{height:50%;width:100%}.flex-third-item-40-percent-width-full-height[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:nth-child(3){height:100%;width:40%}.flex-first-item-half-width-full-height[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]:first-child{height:100%;width:50%}}@media (max-width:1200px){.flex-layout[_ngcontent-%COMP%]{flex-direction:column}.flex-layout[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]{height:460px;width:100%}}"]}),e}(),Ft=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=Object(s.Yb)({type:e}),e.\u0275inj=Object(s.Xb)({factory:function(t){return new(t||e)},imports:[[m.c,_.b,E.b]]}),e}(),Bt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=Object(s.Yb)({type:e}),e.\u0275inj=Object(s.Xb)({factory:function(t){return new(t||e)},providers:[ke],imports:[[m.c,Te,Ft,Ot],Te]}),e}();function Vt(e,t){if(1&e&&Object(s.bc)(0,"i"),2&e){var n=Object(s.qc)().$implicit;Object(s.Qb)(n.icon)}}function $t(e,t){if(1&e&&Object(s.bc)(0,"img",14),2&e){var n=Object(s.qc)().$implicit;Object(s.wc)("src",n.icon,s.Kc)}}function Ht(e,t){if(1&e){var n=Object(s.hc)();Object(s.gc)(0,"dx-button",15),Object(s.nc)("onClick",function(){Object(s.Ic)(n);var e=Object(s.qc)().$implicit;return Object(s.qc)(3).onClickRefreshTab(e)}),Object(s.fc)()}2&e&&Object(s.wc)("width",25)("height",25)}function Ut(e,t){if(1&e){var n=Object(s.hc)();Object(s.gc)(0,"dx-button",16),Object(s.nc)("onClick",function(){Object(s.Ic)(n);var e=Object(s.qc)().$implicit;return Object(s.qc)(3).closeTab(e)}),Object(s.fc)()}2&e&&Object(s.wc)("width",25)("height",25)}function zt(e,t){if(1&e&&(Object(s.gc)(0,"div"),Object(s.gc)(1,"div",9),Object(s.Pc)(2,Vt,1,3,"i",10),Object(s.Pc)(3,$t,1,1,"img",11),Object(s.gc)(4,"span"),Object(s.Rc)(5),Object(s.fc)(),Object(s.fc)(),Object(s.Pc)(6,Ht,1,2,"dx-button",12),Object(s.Pc)(7,Ut,1,2,"dx-button",13),Object(s.fc)()),2&e){var n=t.$implicit,i=Object(s.qc)(3);Object(s.Ob)(2),Object(s.wc)("ngIf",n.icon&&-1===n.icon.indexOf("/")),Object(s.Ob)(1),Object(s.wc)("ngIf",n.icon&&-1!==n.icon.indexOf("/")),Object(s.Ob)(2),Object(s.Sc)(n.title),Object(s.Ob)(1),Object(s.wc)("ngIf",n.hasRefresh&&i.selectedIndex===n._index),Object(s.Ob)(1),Object(s.wc)("ngIf",n.closable)}}function Wt(e,t){if(1&e){var n=Object(s.hc)();Object(s.gc)(0,"div",6),Object(s.gc)(1,"dx-tabs",7),Object(s.nc)("selectedIndexChange",function(e){return Object(s.Ic)(n),Object(s.qc)(2).selectedIndexChanged(e)}),Object(s.Pc)(2,zt,8,5,"div",8),Object(s.fc)(),Object(s.fc)()}if(2&e){var i=Object(s.qc)(2);Object(s.Ob)(1),Object(s.wc)("items",i.items)("scrollByContent",!0)("selectedIndex",i.selectedIndex)("showNavButtons",!0),Object(s.Ob)(1),Object(s.wc)("dxTemplateOf","item")}}function Yt(e,t){if(1&e){var n=Object(s.hc)();Object(s.gc)(0,"cmx-dynamic",20),Object(s.nc)("initialized",function(e){Object(s.Ic)(n);var t=Object(s.qc)().$implicit;return Object(s.qc)(2).dynamicComponentInitialized(e,t)})("action",function(e){return Object(s.Ic)(n),Object(s.qc)(3).actionHappend(e)})("optionsChange",function(e){return Object(s.Ic)(n),Object(s.qc)().$implicit.content.options=e})("eventsChange",function(e){return Object(s.Ic)(n),Object(s.qc)().$implicit.content.events=e})("componentChange",function(e){return Object(s.Ic)(n),Object(s.qc)().$implicit.content.widgetId=e}),Object(s.fc)()}if(2&e){var i=Object(s.qc)().$implicit;Object(s.wc)("options",i.content.options)("events",i.content.events)("component",i.content.widgetId)}}function Gt(e,t){if(1&e&&Object(s.Rc)(0),2&e){var n=Object(s.qc)().$implicit;Object(s.Sc)(n.content)}}function qt(e,t){if(1&e&&(Object(s.gc)(0,"div",17),Object(s.Pc)(1,Yt,1,3,"cmx-dynamic",18),Object(s.Pc)(2,Gt,1,1,"ng-template",null,19,s.Qc),Object(s.fc)()),2&e){var n=t.$implicit,i=t.index,r=Object(s.Fc)(3),o=Object(s.qc)(2);Object(s.Sb)("dx-multiview-item-hidden",i!==o.selectedIndex),Object(s.Ob)(1),Object(s.wc)("ngIf",null==n.content?null:n.content.widgetId)("ngIfElse",r)}}var Kt=function(e){return{"tab-header-hidden":e}};function Xt(e,t){if(1&e&&(Object(s.ec)(0),Object(s.Pc)(1,Wt,3,5,"div",1),Object(s.gc)(2,"div",2),Object(s.gc)(3,"div",3),Object(s.gc)(4,"div",4),Object(s.Pc)(5,qt,4,4,"div",5),Object(s.fc)(),Object(s.fc)(),Object(s.fc)(),Object(s.dc)()),2&e){var n=Object(s.qc)();Object(s.Ob)(1),Object(s.wc)("ngIf",n.showTabHeader),Object(s.Ob)(1),Object(s.wc)("ngClass",Object(s.Bc)(3,Kt,!n.showTabHeader)),Object(s.Ob)(3),Object(s.wc)("ngForOf",n.items)}}var Jt=function(){var e=function(){function e(t){Object(o.a)(this,e),this.broadcasterService=t,this.items=[],this.showTabHeader=!0,this.selectedIndex=0,this.selectedIndexChange=new s.s,this.selectedItemChange=new s.s,this.initialized=new s.s,this.dynamicAction=new s.s,this.refreshButtonClicked=new s.s,this.initializedItemsCount=0,this.eventsSubscription=[]}return Object(a.a)(e,[{key:"ngOnInit",value:function(){var e=this;this.indexingTabs(),this.onAddTab&&this.eventsSubscription.push(this.onAddTab.subscribe(function(t){return e.addTab(t)})),this.onRefreshTab&&this.eventsSubscription.push(this.onRefreshTab.subscribe(function(t){return e.refreshTab(t)})),this.eventsSubscription.push(this.broadcasterService.on(Le.CLOSE_TAB).subscribe(function(t){t||(t=e.selectedItem),e.closeTab(t)}))}},{key:"selectedIndexChanged",value:function(e){var t=this;this.selectedIndex!==e&&(this.selectedIndex=e),setTimeout(function(){t.selectedIndexChange.emit(e),t.selectedItem=t.items[e],t.selectedItemChange.emit(t.selectedItem)})}},{key:"dynamicComponentInitialized",value:function(e,t){this.initializedItemsCount++,t.component=e,this.initializedItemsCount===this.items.length&&this.initialized.emit(this.items)}},{key:"actionHappend",value:function(e){this.dynamicAction.emit(e)}},{key:"indexingTabs",value:function(){this.items.forEach(function(e,t){e._index=t})}},{key:"closeTab",value:function(e){var t=this;this.items.splice(e._index,1),this.indexingTabs(),setTimeout(function(){t.selectedIndex=0,t.selectedIndexChange.emit(t.selectedIndex),t.selectedItem=t.items[t.selectedIndex],t.selectedItemChange.emit(t.selectedItem)})}},{key:"onClickRefreshTab",value:function(e){this.refreshButtonClicked.emit(e)}},{key:"refreshTab",value:function(e){var t=this,n=this.items.find(function(t){return t.id===e.id})._index;this.items[n].content=null,setTimeout(function(){t.items[n].content=e.content},0)}},{key:"addTab",value:function(e,t){var n=this,i=this.items.map(function(e){return e.id}).indexOf(e.id);(-1===i||t)&&this.items.push({_index:this.items.length,content:e.content,id:e.id,title:e.title,icon:e.icon,closable:e.closable,hasRefresh:e.hasRefresh}),i>-1&&!t&&this.refreshTab(e),setTimeout(function(){n.selectedIndex=-1===i||t?n.items.length-1:i,n.selectedIndexChange.emit(n.selectedIndex),n.selectedItem=n.items[i],n.selectedItemChange.emit(n.selectedItem)})}},{key:"ngOnDestroy",value:function(){this.eventsSubscription.forEach(function(e){e.unsubscribe()})}}]),e}();return e.\u0275fac=function(e){s.mc()},e.\u0275dir=s.Vb({type:e}),e.\u0275fac=function(t){return new(t||e)(Object(s.ac)(Re))},e.\u0275cmp=Object(s.Ub)({type:e,selectors:[["cmx-tabview"]],inputs:{items:"items",component:"component",showTabHeader:"showTabHeader",selectedIndex:"selectedIndex",selectedItem:"selectedItem",onAddTab:"onAddTab",onRefreshTab:"onRefreshTab"},outputs:{selectedIndexChange:"selectedIndexChange",selectedItemChange:"selectedItemChange",initialized:"initialized",dynamicAction:"dynamicAction",refreshButtonClicked:"refreshButtonClicked"},decls:1,vars:1,consts:[[4,"ngIf"],["class","dx-tabpanel-tabs vertical-center",4,"ngIf"],[1,"dx-tabpanel-container",3,"ngClass"],[1,"dx-multiview-wrapper"],[1,"dx-multiview-item-container"],["class","dx-item dx-multiview-item",3,"dx-multiview-item-hidden",4,"ngFor","ngForOf"],[1,"dx-tabpanel-tabs","vertical-center"],[3,"items","scrollByContent","selectedIndex","showNavButtons","selectedIndexChange"],[4,"dxTemplate","dxTemplateOf"],[1,"tab-header-text"],[3,"class",4,"ngIf"],[3,"src",4,"ngIf"],["icon","refresh","class","round-button mr-5px",3,"width","height","onClick",4,"ngIf"],["icon","close","class","round-button mr-5px",3,"width","height","onClick",4,"ngIf"],[3,"src"],["icon","refresh",1,"round-button","mr-5px",3,"width","height","onClick"],["icon","close",1,"round-button","mr-5px",3,"width","height","onClick"],[1,"dx-item","dx-multiview-item"],["class","h-100 overflow-auto",3,"options","events","component","initialized","action","optionsChange","eventsChange","componentChange",4,"ngIf","ngIfElse"],["html",""],[1,"h-100","overflow-auto",3,"options","events","component","initialized","action","optionsChange","eventsChange","componentChange"]],template:function(e,t){1&e&&Object(s.Pc)(0,Xt,6,5,"ng-container",0),2&e&&Object(s.wc)("ngIf",(null==t.items?null:t.items.length)>0)},directives:[m.t,m.q,m.s,Me.a,C.e,_.a,Ct],styles:["[_nghost-%COMP%]{display:block;height:100%;overflow:auto;width:100%}[_nghost-%COMP%] .dx-tabpanel-container[_ngcontent-%COMP%]{background-color:var(--white);height:calc(100% - 44px);padding:5px 10px}[_nghost-%COMP%] .tab-header-hidden[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .dx-tabpanel-tabs[_ngcontent-%COMP%]{background-color:#e8e8e8;font-size:0}[_nghost-%COMP%] .dx-tabpanel-tabs .dx-tabs-wrapper{display:block}[_nghost-%COMP%] .round-button{border:none;border-radius:50%}[_nghost-%COMP%] .round-button .dx-button-content{padding:0}[_nghost-%COMP%] .round-button .dx-button-content i{font-size:14px;margin:0}[_nghost-%COMP%] .dx-tab{background-color:#e8e8e8;border-left:1px solid transparent;border-right:1px solid transparent;font-size:0;min-height:100%;padding:0!important}[_nghost-%COMP%] .dx-tab .dx-template-wrapper{align-items:center;display:flex}[_nghost-%COMP%] .dx-tab.dx-tab-selected{background-color:#fff;border-left:1px solid #ddd;border-right:1px solid #ddd}[_nghost-%COMP%] .dx-tab:before{height:0}[_nghost-%COMP%] .dx-tab .tab-header-text{align-items:center;color:#333;display:flex;font-size:12px;font-weight:400;height:42px;justify-content:center;padding:0 10px;text-transform:none}[_nghost-%COMP%] .dx-tab .tab-header-text img{margin-right:5px;max-height:50%;width:auto}"]}),e}(),Qt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=Object(s.Yb)({type:e}),e.\u0275inj=Object(s.Xb)({factory:function(t){return new(t||e)},imports:[[m.c,Ot,Me.b,I.a,_.b]]}),e}(),Zt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=Object(s.Yb)({type:e}),e.\u0275inj=Object(s.Xb)({factory:function(t){return new(t||e)},providers:[C.f],imports:[[m.c,T.b,C.g,w.b,_.b,S.b,D.b,E.b],T.b,C.g,w.b,_.b,S.b,D.b,E.b]}),e}(),en=["scrollView"];function tn(e,t){if(1&e){var n=Object(s.hc)();Object(s.gc)(0,"span",4),Object(s.nc)("click",function(){return Object(s.Ic)(n),Object(s.qc)().navBefore()}),Object(s.fc)()}}function nn(e,t){if(1&e){var n=Object(s.hc)();Object(s.gc)(0,"span",5),Object(s.nc)("click",function(){return Object(s.Ic)(n),Object(s.qc)().navNext()}),Object(s.fc)()}}var rn=[[["",8,"content"]]],on=[".content"],an=function(){var e=function(){function e(){Object(o.a)(this,e)}return Object(a.a)(e,[{key:"ngOnInit",value:function(){}},{key:"scrollBarInitialized",value:function(e){var t=this;setTimeout(function(){t.resize()})}},{key:"navBefore",value:function(){this.scrollView.instance.scrollBy(-60)}},{key:"navNext",value:function(){this.scrollView.instance.scrollBy(60)}},{key:"resize",value:function(){this.thumbnailArrows=this.scrollView.instance.scrollWidth()>this.scrollView.instance.clientWidth()+10||this.scrollView.instance.content().scrollWidth>this.scrollView.instance.content().clientWidth+10}},{key:"onWindowResize",value:function(){this.resize()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=s.Vb({type:e}),e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Object(s.Ub)({type:e,selectors:[["cmx-arrow-scrollbar"]],viewQuery:function(e,t){var n;1&e&&Object(s.Nc)(en,!0),2&e&&Object(s.Ec)(n=Object(s.oc)())&&(t.scrollView=n.first)},hostBindings:function(e,t){1&e&&Object(s.nc)("resize",function(){return t.onWindowResize()},!1,s.Hc)},ngContentSelectors:on,decls:5,vars:2,consts:[["class","before ma ma-navigate_before",3,"click",4,"ngIf"],["direction","horizontal","width","100%",1,"arrow-scrollbar",3,"onInitialized"],["scrollView",""],["class","next ma ma-navigate_next",3,"click",4,"ngIf"],[1,"before","ma","ma-navigate_before",3,"click"],[1,"next","ma","ma-navigate_next",3,"click"]],template:function(e,t){1&e&&(Object(s.vc)(rn),Object(s.Pc)(0,tn,1,0,"span",0),Object(s.gc)(1,"dx-scroll-view",1,2),Object(s.nc)("onInitialized",function(e){return t.scrollBarInitialized(e)}),Object(s.uc)(3),Object(s.fc)(),Object(s.Pc)(4,nn,1,0,"span",3)),2&e&&(Object(s.wc)("ngIf",t.thumbnailArrows),Object(s.Ob)(4),Object(s.wc)("ngIf",t.thumbnailArrows))},directives:[m.t,Ae.a],styles:["[_nghost-%COMP%]{align-items:center;display:flex;justify-content:center;margin:5px 0;padding:0 32px;white-space:nowrap;width:auto}[_nghost-%COMP%] .arrow-scrollbar.dx-scrollable[_ngcontent-%COMP%]{height:auto}[_nghost-%COMP%] .ma[_ngcontent-%COMP%]{cursor:pointer;font-size:32px;top:5px}[_nghost-%COMP%] .ma.before[_ngcontent-%COMP%]{left:0}[_nghost-%COMP%] .ma.next[_ngcontent-%COMP%]{right:0}"]}),e}(),sn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=Object(s.Yb)({type:e}),e.\u0275inj=Object(s.Xb)({factory:function(t){return new(t||e)},imports:[[m.c,Ae.b]]}),e}();function cn(e,t){if(1&e&&(Object(s.gc)(0,"div",8),Object(s.Rc)(1),Object(s.fc)()),2&e){var n=Object(s.qc)(3);Object(s.Ob)(1),Object(s.Sc)(null==n.details?null:n.details.headerText)}}function un(e,t){if(1&e&&(Object(s.gc)(0,"div",9),Object(s.Rc)(1),Object(s.fc)()),2&e){var n=Object(s.qc)(3);Object(s.Ob)(1),Object(s.Sc)(null==n.details?null:n.details.bodyText)}}function ln(e,t){if(1&e){var n=Object(s.hc)();Object(s.gc)(0,"div",3),Object(s.Pc)(1,cn,2,1,"div",4),Object(s.Pc)(2,un,2,1,"div",5),Object(s.gc)(3,"div",6),Object(s.gc)(4,"dx-button",7),Object(s.nc)("onClick",function(){return Object(s.Ic)(n),Object(s.qc)(2).close()}),Object(s.fc)(),Object(s.fc)(),Object(s.fc)()}if(2&e){var i=Object(s.qc)(2);Object(s.Ob)(1),Object(s.wc)("ngIf",null==i.details?null:i.details.headerText),Object(s.Ob)(1),Object(s.wc)("ngIf",null==i.details?null:i.details.bodyText)}}var dn=function(e,t,n){return{success:e,error:t,info:n}};function hn(e,t){if(1&e){var n=Object(s.hc)();Object(s.gc)(0,"div"),Object(s.gc)(1,"dx-popup",1),Object(s.nc)("visibleChange",function(e){return Object(s.Ic)(n),Object(s.qc)().showPopup=e}),Object(s.Pc)(2,ln,5,2,"div",2),Object(s.fc)(),Object(s.fc)()}if(2&e){var i=Object(s.qc)();Object(s.Ob)(1),Object(s.xc)("title",null==i.details?null:i.details.titleText),Object(s.wc)("visible",i.showPopup)("showCloseButton",!0)("ngClass",Object(s.Dc)(5,dn,"success"===(null==i.details?null:i.details.type),"error"===(null==i.details?null:i.details.type),"info"===(null==i.details?null:i.details.type))),Object(s.Ob)(1),Object(s.wc)("dxTemplateOf","content")}}var fn=function(){var e=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(o.a)(this,n),(i=t.call(this,e)).broadcasterService=e,i.showPopup=!1,i.subscriptions.push(e.on(Le.Show_Cmx_Information_Popup).subscribe(function(e){i.details=e,i.showPopup=!0})),i}return Object(a.a)(n,[{key:"ngOnInit",value:function(){}},{key:"close",value:function(){this.showPopup=!1}}]),n}(je);return e.\u0275fac=function(e){s.mc()},e.\u0275dir=s.Vb({type:e,features:[s.Lb]}),e.\u0275fac=function(t){return new(t||e)(Object(s.ac)(Re))},e.\u0275cmp=Object(s.Ub)({type:e,selectors:[["cmx-information-popup"]],features:[s.Lb],decls:1,vars:1,consts:[[4,"ngIf"],["height","'auto'",1,"information-popup","themable-popup","p-0",3,"visible","title","showCloseButton","ngClass","visibleChange"],["class","d-flex flex-column flex-nowrap",4,"dxTemplate","dxTemplateOf"],[1,"d-flex","flex-column","flex-nowrap"],["class","font-size-16px text-center mt-10px font-weight-bold",4,"ngIf"],["class","font-size-16px text-center mt-10px",4,"ngIf"],[1,"p-3","mt-2","text-center"],["type","default","text","Ok",3,"onClick"],[1,"font-size-16px","text-center","mt-10px","font-weight-bold"],[1,"font-size-16px","text-center","mt-10px"]],template:function(e,t){1&e&&Object(s.Pc)(0,hn,3,9,"div",0),2&e&&Object(s.wc)("ngIf",t.showPopup)},directives:[m.t,Pe.a,m.q,C.e,_.a],styles:[""],encapsulation:2}),e}(),pn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=Object(s.Yb)({type:e}),e.\u0275inj=Object(s.Xb)({factory:function(t){return new(t||e)},imports:[[m.c,Pe.b,_.b,M.a]]}),e}();function gn(){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))}},"3N8a":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("1OyB"),r=n("vuIU"),o=n("Ji7U"),a=n("LK+K"),s=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,r){var o;return Object(i.a)(this,n),(o=t.call(this,e,r)).scheduler=e,o.work=r,o.pending=!1,o}return Object(r.a)(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(e,r){return Object(i.a)(this,n),t.call(this)}return Object(r.a)(n,[{key:"schedule",value:function(e){return this}}]),n}(n("quSY").a))},"3NFn":function(e,t,n){"use strict";var i=u(n("TssP")),r=u(n("Bhoz")),o=u(n("dYUP")),a=n("ti0F"),s=n("/DUC"),c=n("p/U6");function u(e){return e&&e.__esModule?e:{default:e}}n("Niae");var l={thousands:"#,##0{0},"K"",millions:"#,##0{0},,"M"",billions:"#,##0{0},,,"B"",trillions:"#,##0{0},,,,"T"",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "},d=/a+/g,h=/E/g,f=/dE+/g,p=/L/g,g=/h/g,m=/\//g,v=/\[/g,_=/]/g,y=/./g,b=e.exports={_applyPrecision:function(e,t){var n,i;if(t>0){for(n="decimal"!==e?".":"",i=0;i=1632&&t<1642)return!0;return!1},_convertDateFormatToOpenXml:function(e){return e.replace(m,"\\/").split("'").map(function(e,t){return t%2==0?e.replace(d,"AM/PM").replace(f,"d").replace(h,"d").replace(p,"M").replace(g,"H").replace(v,"\\[").replace(_,"\\]"):e?e.replace(y,"\\$&"):"'"}).join("")},_convertDateFormat:function(e){var t=(o.default.format(new Date(2009,8,8,6,5,4),e)||"").toString(),n=(0,s.getFormat)(function(t){return o.default.format(t,e)});return n&&(n=this._convertDateFormatToOpenXml(n),n=this._getLanguageInfo(t)+n),n},_getLanguageInfo:function(e){var t=(0,c.getLanguageId)(),n=t?t.toString(16):"",i="";if(this._hasArabicDigits(e)){for(;n.length<3;)n="0"+n;i="[$-2010"+n+"]"}else n&&(i="[$-"+n+"]");return i},_convertNumberFormat:function(e,t,n){var o,a;return(a="currency"===e?r.default.getOpenXmlCurrencyFormat(n):l[e.toLowerCase()])&&(o=i.default.format(a,this._applyPrecision(e,t))),o},convertFormat:function(e,t,n,i){if((0,a.isDefined)(e)){if("date"===n)return b._convertDateFormat(e);if((0,a.isString)(e)&&l[e.toLowerCase()])return b._convertNumberFormat(e,t,i)}}}},"3Nus":function(e,t,n){"use strict";var i=o(n("BWGd")),r=o(n("27Ll"));function o(e){return e&&e.__esModule?e:{default:e}}i.default.registerModule("filterSync",r.default)},"3Pt+":function(e,t,n){"use strict";n.d(t,"a",function(){return v}),n.d(t,"b",function(){return Je}),n.d(t,"c",function(){return b}),n.d(t,"d",function(){return et}),n.d(t,"e",function(){return ze}),n.d(t,"f",function(){return ut}),n.d(t,"g",function(){return Ce}),n.d(t,"h",function(){return Fe}),n.d(t,"i",function(){return Ge}),n.d(t,"j",function(){return Ve}),n.d(t,"k",function(){return He}),n.d(t,"l",function(){return lt}),n.d(t,"m",function(){return rt}),n.d(t,"n",function(){return nt}),n.d(t,"o",function(){return g}),n.d(t,"p",function(){return x}),n.d(t,"q",function(){return T}),n.d(t,"r",function(){return Te}),n.d(t,"s",function(){return Le}),n.d(t,"t",function(){return Me}),n.d(t,"u",function(){return K}),n.d(t,"v",function(){return V}),n.d(t,"w",function(){return at}),n.d(t,"x",function(){return U}),n.d(t,"y",function(){return W}),n.d(t,"z",function(){return dt}),n.d(t,"A",function(){return Xe}),n.d(t,"B",function(){return q}),n.d(t,"C",function(){return Q}),n.d(t,"D",function(){return P}),n.d(t,"E",function(){return Z}),n.d(t,"F",function(){return Re});var i=n("JX7q"),r=n("uFwe"),o=n("KQm4"),a=n("Ji7U"),s=n("LK+K"),c=n("1OyB"),u=n("vuIU"),l=n("fXoL"),d=n("ofXK"),h=n("cp0P"),f=n("Cfvw"),p=n("lJxs"),g=new l.y("NgValueAccessor"),m={provide:g,useExisting:Object(l.hb)(function(){return v}),multi:!0},v=function(){var e=function(){function e(t,n){Object(c.a)(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return Object(u.a)(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.ac(l.O),l.ac(l.q))},e.\u0275dir=l.Vb({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&l.nc("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[l.Nb([m])]}),e}(),_={provide:g,useExisting:Object(l.hb)(function(){return b}),multi:!0},y=new l.y("CompositionEventMode"),b=function(){var e=function(){function e(t,n,i){var r;Object(c.a)(this,e),this._renderer=t,this._elementRef=n,this._compositionMode=i,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=Object(d.M)()?Object(d.M)().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return Object(u.a)(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_handleInput",value:function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.ac(l.O),l.ac(l.q),l.ac(y,8))},e.\u0275dir=l.Vb({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&l.nc("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[l.Nb([_])]}),e}(),w=function(){var e=function(){function e(){Object(c.a)(this,e)}return Object(u.a)(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=l.Vb({type:e}),e}(),C=function(){var e=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(){return Object(c.a)(this,n),t.apply(this,arguments)}return Object(u.a)(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(w);return e.\u0275fac=function(t){return O(t||e)},e.\u0275dir=l.Vb({type:e,features:[l.Lb]}),e}(),O=l.ic(C),S=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(){var e;return Object(c.a)(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return Object(u.a)(n,[{key:"validator",get:function(){}},{key:"asyncValidator",get:function(){}}]),n}(w),k=function(){function e(t){Object(c.a)(this,e),this._cd=t}return Object(u.a)(e,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),e}(),x=function(){var e=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e){return Object(c.a)(this,n),t.call(this,e)}return Object(u.a)(n)}(k);return e.\u0275fac=function(t){return new(t||e)(l.ac(S,2))},e.\u0275dir=l.Vb({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&l.Sb("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[l.Lb]}),e}(),T=function(){var e=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e){return Object(c.a)(this,n),t.call(this,e)}return Object(u.a)(n)}(k);return e.\u0275fac=function(t){return new(t||e)(l.ac(C,2))},e.\u0275dir=l.Vb({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&l.Sb("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[l.Lb]}),e}();function E(e){return null==e||0===e.length}function I(e){return null!=e&&"number"==typeof e.length}var D=new l.y("NgValidators"),M=new l.y("NgAsyncValidators"),A=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,P=function(){function e(){Object(c.a)(this,e)}return Object(u.a)(e,null,[{key:"min",value:function(e){return function(t){if(E(t.value)||E(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&ne?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return E(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return E(e.value)||A.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){return E(t.value)||!I(t.value)?null:t.value.lengthe?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),n=new RegExp(i)):(i=t.toString(),n=t),function(e){if(E(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:i,actualValue:t}}}):e.nullValidator;var n,i}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(L);return 0==t.length?null:function(e){return j(N(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(L);return 0==t.length?null:function(e){var n=N(e,t).map(R);return Object(h.a)(n).pipe(Object(p.a)(j))}}}]),e}();function L(e){return null!=e}function R(e){var t=Object(l.Fb)(e)?Object(f.a)(e):e;return Object(l.Eb)(t),t}function j(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function N(e,t){return t.map(function(t){return t(e)})}function F(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}var B={provide:g,useExisting:Object(l.hb)(function(){return V}),multi:!0},V=function(){var e=function(){function e(t,n){Object(c.a)(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return Object(u.a)(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.ac(l.O),l.ac(l.q))},e.\u0275dir=l.Vb({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&l.nc("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[l.Nb([B])]}),e}(),$={provide:g,useExisting:Object(l.hb)(function(){return U}),multi:!0},H=function(){var e=function(){function e(){Object(c.a)(this,e),this._accessors=[]}return Object(u.a)(e,[{key:"add",value:function(e,t){this._accessors.push([e,t])}},{key:"remove",value:function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=l.Wb({token:e,factory:e.\u0275fac}),e}(),U=function(){var e=function(){function e(t,n,i,r){Object(c.a)(this,e),this._renderer=t,this._elementRef=n,this._registry=i,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return Object(u.a)(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(S),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.ac(l.O),l.ac(l.q),l.ac(H),l.ac(l.z))},e.\u0275dir=l.Vb({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&l.nc("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[l.Nb([$])]}),e}(),z={provide:g,useExisting:Object(l.hb)(function(){return W}),multi:!0},W=function(){var e=function(){function e(t,n){Object(c.a)(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return Object(u.a)(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(l.ac(l.O),l.ac(l.q))},e.\u0275dir=l.Vb({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&l.nc("change",function(e){return t.onChange(e.target.value)})("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[l.Nb([z])]}),e}(),Y={provide:g,useExisting:Object(l.hb)(function(){return q}),multi:!0};function G(e,t){return null==e?"".concat(t):(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var q=function(){var e=function(){function e(t,n){Object(c.a)(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return Object(u.a)(e,[{key:"compareWith",set:function(e){this._compareWith=e}},{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=G(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var i=[];if(void 0!==n.selectedOptions)for(var r=n.selectedOptions,o=0;o-1&&e.splice(n,1)}function de(e,t,n,i){Object(l.jb)()&&"never"!==i&&((null!==i&&"once"!==i||t._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(t._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}var he="VALID",fe="INVALID",pe="PENDING",ge="DISABLED";function me(e){return(be(e)?e.validators:e)||null}function ve(e){return Array.isArray(e)?re(e):e||null}function _e(e,t){return(be(t)?t.asyncValidators:e)||null}function ye(e){return Array.isArray(e)?oe(e):e||null}function be(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var we=function(){function e(t,n){Object(c.a)(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=ve(this._rawValidators),this._composedAsyncValidatorFn=ye(this._rawAsyncValidators)}return Object(u.a)(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===he}},{key:"invalid",get:function(){return this.status===fe}},{key:"pending",get:function(){return this.status==pe}},{key:"disabled",get:function(){return this.status===ge}},{key:"enabled",get:function(){return this.status!==ge}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=ve(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=ye(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=pe,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=ge,this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=he,this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==he&&this.status!==pe||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?ge:he}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=pe,this._hasOwnPendingAsyncValidator=!0;var n=R(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach(function(e){i=i instanceof Oe?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof Se&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new l.s,this.statusChanges=new l.s}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?ge:this.errors?fe:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(pe)?pe:this._anyControlsHaveStatus(fe)?fe:he}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){be(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}]),e}(),Ce=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return Object(c.a)(this,n),(e=t.call(this,me(r),_e(o,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),e._initObservables(),e}return Object(u.a)(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(we),Oe=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r){var o;return Object(c.a)(this,n),(o=t.call(this,me(i),_e(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(u.a)(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof Ce?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(we),Se=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r){var o;return Object(c.a)(this,n),(o=t.call(this,me(i),_e(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(u.a)(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof Ce?e.value:e.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=Object(r.a)(this.controls);try{for(t.s();!(e=t.n()).done;)if(e.value.enabled)return!1}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(we),ke={provide:C,useExisting:Object(l.hb)(function(){return Te})},xe=function(){return Promise.resolve(null)}(),Te=function(){var e=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i){var r;return Object(c.a)(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new l.s,r.form=new Oe({},re(e),oe(i)),r}return Object(u.a)(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(e){var t=this;xe.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),te(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;xe.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),le(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;xe.then(function(){var n=t._findContainer(e.path),i=new Oe({});ie(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;xe.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;xe.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,ce(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(C);return e.\u0275fac=function(t){return new(t||e)(l.ac(D,10),l.ac(M,10))},e.\u0275dir=l.Vb({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&l.nc("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[l.Nb([ke]),l.Lb]}),e}(),Ee=function(){var e=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(){return Object(c.a)(this,n),t.apply(this,arguments)}return Object(u.a)(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return ee(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return re(this._validators)}},{key:"asyncValidator",get:function(){return oe(this._asyncValidators)}},{key:"_checkParentType",value:function(){}}]),n}(C);return e.\u0275fac=function(t){return Ie(t||e)},e.\u0275dir=l.Vb({type:e,features:[l.Lb]}),e}(),Ie=l.ic(Ee),De={provide:C,useExisting:Object(l.hb)(function(){return Me})},Me=function(){var e=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r){var o;return Object(c.a)(this,n),(o=t.call(this))._parent=e,o._validators=i,o._asyncValidators=r,o}return Object(u.a)(n,[{key:"_checkParentType",value:function(){}}]),n}(Ee);return e.\u0275fac=function(t){return new(t||e)(l.ac(C,5),l.ac(D,10),l.ac(M,10))},e.\u0275dir=l.Vb({type:e,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[l.Nb([De]),l.Lb]}),e}(),Ae={provide:S,useExisting:Object(l.hb)(function(){return Le})},Pe=function(){return Promise.resolve(null)}(),Le=function(){var e=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,r,o,a){var s;return Object(c.a)(this,n),(s=t.call(this)).control=new Ce,s._registered=!1,s.update=new l.s,s._parent=e,s._rawValidators=r||[],s._rawAsyncValidators=o||[],s.valueAccessor=ue(Object(i.a)(s),a),s}return Object(u.a)(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),ae(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?ee(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return re(this._rawValidators)}},{key:"asyncValidator",get:function(){return oe(this._rawAsyncValidators)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){te(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;Pe.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;Pe.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})}}]),n}(S);return e.\u0275fac=function(t){return new(t||e)(l.ac(C,9),l.ac(D,10),l.ac(M,10),l.ac(g,10))},e.\u0275dir=l.Vb({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[l.Nb([Ae]),l.Lb,l.Mb]}),e}(),Re=function(){var e=Object(u.a)(function e(){Object(c.a)(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=l.Vb({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),je=new l.y("NgModelWithFormControlWarning"),Ne={provide:S,useExisting:Object(l.hb)(function(){return Fe})},Fe=function(){var e=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,r,o,a){var s;return Object(c.a)(this,n),(s=t.call(this))._ngModelWarningConfig=a,s.update=new l.s,s._ngModelWarningSent=!1,s._rawValidators=e||[],s._rawAsyncValidators=r||[],s.valueAccessor=ue(Object(i.a)(s),o),s}return Object(u.a)(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){this._isControlChanged(e)&&(te(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),ae(e,this.viewModel)&&(de(0,n,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}},{key:"path",get:function(){return[]}},{key:"validator",get:function(){return re(this._rawValidators)}},{key:"asyncValidator",get:function(){return oe(this._rawAsyncValidators)}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}}]),n}(S);return e.\u0275fac=function(t){return new(t||e)(l.ac(D,10),l.ac(M,10),l.ac(g,10),l.ac(je,8))},e.\u0275dir=l.Vb({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[l.Nb([Ne]),l.Lb,l.Mb]}),e._ngModelWarningSentOnce=!1,e}(),Be={provide:C,useExisting:Object(l.hb)(function(){return Ve})},Ve=function(){var e=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i){var r;return Object(c.a)(this,n),(r=t.call(this))._validators=e,r._asyncValidators=i,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new l.s,r}return Object(u.a)(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return te(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){le(this.directives,e)}},{key:"addFormGroup",value:function(e){var t=this.form.get(e.path);ie(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(e){}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){var t=this.form.get(e.path);ie(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(e){}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,ce(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){var n=function(){};t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n),t._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(t.control,t),n&&te(n,t),t.control=n)}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form}},{key:"_updateValidators",value:function(){var e=re(this._validators);this.form.validator=P.compose([this.form.validator,e]);var t=oe(this._asyncValidators);this.form.asyncValidator=P.composeAsync([this.form.asyncValidator,t])}},{key:"_checkFormPresent",value:function(){}}]),n}(C);return e.\u0275fac=function(t){return new(t||e)(l.ac(D,10),l.ac(M,10))},e.\u0275dir=l.Vb({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&l.nc("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[l.Nb([Be]),l.Lb,l.Mb]}),e}(),$e={provide:C,useExisting:Object(l.hb)(function(){return He})},He=function(){var e=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r){var o;return Object(c.a)(this,n),(o=t.call(this))._parent=e,o._validators=i,o._asyncValidators=r,o}return Object(u.a)(n,[{key:"_checkParentType",value:function(){We(this._parent)}}]),n}(Ee);return e.\u0275fac=function(t){return new(t||e)(l.ac(C,13),l.ac(D,10),l.ac(M,10))},e.\u0275dir=l.Vb({type:e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[l.Nb([$e]),l.Lb]}),e}(),Ue={provide:C,useExisting:Object(l.hb)(function(){return ze})},ze=function(){var e=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,i,r){var o;return Object(c.a)(this,n),(o=t.call(this))._parent=e,o._validators=i,o._asyncValidators=r,o}return Object(u.a)(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"control",get:function(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function(){return ee(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"validator",get:function(){return re(this._validators)}},{key:"asyncValidator",get:function(){return oe(this._asyncValidators)}},{key:"_checkParentType",value:function(){We(this._parent)}}]),n}(C);return e.\u0275fac=function(t){return new(t||e)(l.ac(C,13),l.ac(D,10),l.ac(M,10))},e.\u0275dir=l.Vb({type:e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[l.Nb([Ue]),l.Lb]}),e}();function We(e){return!(e instanceof He||e instanceof Ve||e instanceof ze)}var Ye={provide:S,useExisting:Object(l.hb)(function(){return Ge})},Ge=function(){var e=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,r,o,a,s){var u;return Object(c.a)(this,n),(u=t.call(this))._ngModelWarningConfig=s,u._added=!1,u.update=new l.s,u._ngModelWarningSent=!1,u._parent=e,u._rawValidators=r||[],u._rawAsyncValidators=o||[],u.valueAccessor=ue(Object(i.a)(u),a),u}return Object(u.a)(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){this._added||this._setUpControl(),ae(e,this.viewModel)&&(de(0,n,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"path",get:function(){return ee(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return re(this._rawValidators)}},{key:"asyncValidator",get:function(){return oe(this._rawAsyncValidators)}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}]),n}(S);return e.\u0275fac=function(t){return new(t||e)(l.ac(C,13),l.ac(D,10),l.ac(M,10),l.ac(g,10),l.ac(je,8))},e.\u0275dir=l.Vb({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[l.Nb([Ye]),l.Lb,l.Mb]}),e._ngModelWarningSentOnce=!1,e}(),qe={provide:D,useExisting:Object(l.hb)(function(){return Xe}),multi:!0},Ke={provide:D,useExisting:Object(l.hb)(function(){return Je}),multi:!0},Xe=function(){var e=function(){function e(){Object(c.a)(this,e),this._required=!1}return Object(u.a)(e,[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!=="".concat(e),this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?P.required(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=l.Vb({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&l.Pb("required",t.required?"":null)},inputs:{required:"required"},features:[l.Nb([qe])]}),e}(),Je=function(){var e=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(){return Object(c.a)(this,n),t.apply(this,arguments)}return Object(u.a)(n,[{key:"validate",value:function(e){return this.required?P.requiredTrue(e):null}}]),n}(Xe);return e.\u0275fac=function(t){return Qe(t||e)},e.\u0275dir=l.Vb({type:e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&l.Pb("required",t.required?"":null)},features:[l.Nb([Ke]),l.Lb]}),e}(),Qe=l.ic(Je),Ze={provide:D,useExisting:Object(l.hb)(function(){return et}),multi:!0},et=function(){var e=function(){function e(){Object(c.a)(this,e),this._enabled=!1}return Object(u.a)(e,[{key:"email",set:function(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this._enabled?P.email(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=l.Vb({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[l.Nb([Ze])]}),e}(),tt={provide:D,useExisting:Object(l.hb)(function(){return nt}),multi:!0},nt=function(){var e=function(){function e(){Object(c.a)(this,e),this._validator=P.nullValidator}return Object(u.a)(e,[{key:"ngOnChanges",value:function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return null==this.minlength?null:this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=P.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=l.Vb({type:e,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&l.Pb("minlength",t.minlength?t.minlength:null)},inputs:{minlength:"minlength"},features:[l.Nb([tt]),l.Mb]}),e}(),it={provide:D,useExisting:Object(l.hb)(function(){return rt}),multi:!0},rt=function(){var e=function(){function e(){Object(c.a)(this,e),this._validator=P.nullValidator}return Object(u.a)(e,[{key:"ngOnChanges",value:function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return null!=this.maxlength?this._validator(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=P.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=l.Vb({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&l.Pb("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[l.Nb([it]),l.Mb]}),e}(),ot={provide:D,useExisting:Object(l.hb)(function(){return at}),multi:!0},at=function(){var e=function(){function e(){Object(c.a)(this,e),this._validator=P.nullValidator}return Object(u.a)(e,[{key:"ngOnChanges",value:function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){this._validator=P.pattern(this.pattern)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=l.Vb({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&l.Pb("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[l.Nb([ot]),l.Mb]}),e}(),st=function(){var e=Object(u.a)(function e(){Object(c.a)(this,e)});return e.\u0275mod=l.Yb({type:e}),e.\u0275inj=l.Xb({factory:function(t){return new(t||e)}}),e}();function ct(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}var ut=function(){var e=function(){function e(){Object(c.a)(this,e)}return Object(u.a)(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),i=null,r=null,o=void 0;return null!=t&&(ct(t)?(i=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new Oe(n,{asyncValidators:r,updateOn:o,validators:i})}},{key:"control",value:function(e,t,n){return new Ce(e,t,n)}},{key:"array",value:function(e,t,n){var i=this,r=e.map(function(e){return i._createControl(e)});return new Se(r,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(i){n[i]=t._createControl(e[i])}),n}},{key:"_createControl",value:function(e){return e instanceof Ce||e instanceof Oe||e instanceof Se?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=l.Wb({token:e,factory:e.\u0275fac}),e}(),lt=function(){var e=Object(u.a)(function e(){Object(c.a)(this,e)});return e.\u0275mod=l.Yb({type:e}),e.\u0275inj=l.Xb({factory:function(t){return new(t||e)},providers:[H],imports:[st]}),e}(),dt=function(){var e=function(){function e(){Object(c.a)(this,e)}return Object(u.a)(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:je,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}();return e.\u0275mod=l.Yb({type:e}),e.\u0275inj=l.Xb({factory:function(t){return new(t||e)},providers:[ut,H],imports:[st]}),e}()},"3RoI":function(e,t,n){"use strict";var i=n("ti0F"),r=n("XDlg"),o=function(){function e(){}return function(t){return e.prototype=t,new e}}(),a=function(e,t,n,i){!i&&r.isWrapped(e[t])?r.assign(e[t],n):e[t]=n};t.clone=o,t.orderEach=function(e,t){var n,r,o=[];for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.push(n);for(o.sort(function(e,t){var n=i.isNumeric(e),r=i.isNumeric(t);return n&&r?e-t:n&&!r?-1:!n&&r?1:et?1:0}),r=0;r0?t.count:t.items&&t.items.length||0:t.count=a.count||t.count,a.offset=r):(n&&(o=t.count>0?t.count:t.items.length),e.addGroupInfo({isExpanded:e._isGroupExpanded(i.length-1),path:i.slice(0),offset:r,count:o||0}))},i=function e(t,i,r,o,a,s,c){var u,l=(i.group?i.group.length:0)===o,d=0,h=0;if(a=a||0,s=s||[],i.remoteOperations.paging&&!c&&(d=0===a?i.skip||0:i.skips[a-1]||0),a>=o)return r.length;for(var f=0;f0&&(i+=e[o-1].childrenTotalCount,t&&(i+=p(r,t,i,o-1)*o)),r+=i;return r};function p(e,t,n,i){if(i=i||0,t>1&&n>0){var r=e-Math.floor(e/t)*t||t;return(r+=n-i-2)<0&&(r+=t),Math.floor(r/(t-i-1))}return 0}function g(e,t,n,i){var r=t.items[i],o=e.skips&&e.skips[n],a=e.takes&&e.takes[n],s=i===t.items.length-1,c=0===i,u=r.count>a+(c&&o||0);c&&void 0!==o&&(r.isContinuation=!0),s&&void 0!==a&&u&&(r.isContinuationOnNextPage=!0)}function m(e){return!Array.isArray(e)}function v(e){m(e.data)||(e.data=new d.Deferred)}function _(e,n,s,u,l,h){n.isCustomLoading||(t(e,h,s,u={},[]),function(e,t,n){var i=n-1,r=e.group?e.group.length:0;t.skip=e.skips&&e.skips[i],e.takes&&void 0!==e.takes[i]&&(t.take=r===n&&t.count?t.count-(t.skip||0):0,t.take+=e.takes[i])}(n,u,s)),u.paths.length&&(n.group?n.group.length:0)-s>0?(v(n),function(e,t,n,r,a,s){var u=t.group||[],l=u[a+1],h=[];(0,o.each)(n.paths,function(i){var r={requireTotalCount:!1,requireGroupCount:!0,group:[l],groupSummary:t.storeLoadOptions.groupSummary,filter:(0,c.createGroupFilter)(n.paths[i],{filter:t.storeLoadOptions.filter,group:u}),select:t.storeLoadOptions.select};0===i&&(r.skip=n.skip||0),i===n.paths.length-1&&(r.take=n.take);var o=0===r.take?[]:e._dataSource.loadFromStore(r);(0,d.when)(o).done(function(e){var r=n.items[i];g(t,n,a,i),r.items=e}),h.push(o)}),d.when.apply(null,h).done(function(){i(e,t,s,r+1),_(e,t,r+1,n,a+1,s)})}(e,n,u,s,l,h)):u.paths.length&&n.storeLoadOptions.group?(v(n),function(e,t,n,i){var s=[],u=t.group||[];(0,o.each)(n.paths,function(e,n){s.push((0,c.createGroupFilter)(n,{group:t.isCustomLoading?t.storeLoadOptions.group:u}))});var l=t.storeLoadOptions.filter;t.storeLoadOptions.isLoadingAll||(l=(0,a.combineFilters)([l,(0,a.combineFilters)(s,"or")]));var h=(0,r.extend)({},t.storeLoadOptions,{requireTotalCount:!1,requireGroupCount:!1,group:null,sort:u.concat((0,a.normalizeSortingInfo)(t.storeLoadOptions.sort||[])),filter:l}),f=e._dataSource.isLastLevelGroupItemsPagingLocal();f||(h.skip=n.skip,h.take=n.take),(0,d.when)(0===n.take?[]:e._dataSource.loadFromStore(h)).done(function(r,a){f&&(r=e._dataSource.sortLastLevelGroupItems(r,u,n.paths),r=n.skip?r.slice(n.skip):r,r=n.take?r.slice(0,n.take):r),(0,o.each)(n.items,function(e,i){var o=r.splice(0,i.count-(0===e&&n.skip||0));g(t,n,u.length-1,e),i.items=o}),t.data.resolve(i)}).fail(t.data.reject)}(e,n,u,h)):m(n.data)&&n.data.resolve(h)}var y=function(e,t){var n=new d.Deferred,i=!(!t.group||!t.group.length),o=(0,r.extend)({skip:0,take:1,requireGroupCount:i,requireTotalCount:!i},t,{group:i?t.group:null});return e.load(o).done(function(e,t){var r=t&&(i?t.groupCount:t.totalCount);isFinite(r)?n.resolve(r):n.reject(l.errors.Error(i?"E4022":"E4021"))}).fail(n.reject.bind(n)),n};return{updateTotalItemsCount:function(t){var n=0,i=t.extra&&t.extra.totalCount||0,r=t.extra&&t.extra.groupCount||0,o=this._dataSource.pageSize(),a=this._isVirtualPaging();e(this,function(e){e.childrenTotalCount=0}),e(this,function(e,t){var i=f(t,a?0:o,n),r=e.count+e.childrenTotalCount;a||(r+=p(i,o,r,t.length-1)),t[t.length-2]?t[t.length-2].childrenTotalCount+=r:n+=r}),this.callBase(n-i+r)},_isGroupExpanded:function(e){var t=this._dataSource.group();return h(t,e)},_updatePagingOptions:function(t,n){var i=this,r=i._isVirtualPaging(),o=i._dataSource.pageSize(),a=[],s=[],c=0,u=0;t.take&&(e(this,function(e){e.childrenTotalCount=0,e.skipChildrenTotalCount=0}),e(i,function(e,i){var l,d=0,h=0,g=f(i,r?0:o,u),m=0,v=0,_=e.count+e.childrenTotalCount,y=_;n&&n(e,g);var b=t.skip-g;g<=t.skip+t.take&&_&&(l=t.take,r||(_+=(m=p(g,o,_,i.length-1))*i.length,y+=m,o&&b>=0&&(d=i.length,h=i.length-1,v=Math.floor(b/o))),b>=0?(g+_>t.skip&&a.unshift(b-v*d-e.skipChildrenTotalCount),g+_>=t.skip+l&&s.unshift(l-d-e.childrenTotalCount+e.skipChildrenTotalCount)):g+_>=t.skip+l&&s.unshift(l+b-e.childrenTotalCount)),g<=t.skip&&(i[i.length-2]?i[i.length-2].skipChildrenTotalCount+=Math.min(y,b+1-v*h):c+=Math.min(y,b+1)),g<=t.skip+l&&(_=Math.min(y,b+l-(v+1)*h),i[i.length-2]?i[i.length-2].childrenTotalCount+=_:u+=_)}),t.skip-=c,t.take-=u-c),t.skips=a,t.takes=s},changeRowExpand:function(e){var t=this.findGroupInfo(e),n=this._dataSource,i=n.remoteOperations().groupPaging,r=(0,a.normalizeSortingInfo)(n.group());return t?(t.isExpanded=!t.isExpanded,i&&t.isExpanded&&e.lengths&&(o.isContinuationOnNextPage=!0,r.forEach(function(e){e.isContinuationOnNextPage=!0}),a&&(a=a.slice(0,s),o.items=a)),r.push(o),this._processTakes(a,t.slice(1),n.slice(1),i-1,r))}},_processPaging:function(e,t){this._processSkips(e.data,e.skips,t),this._processTakes(e.data,e.skips,e.takes,t)},isLastLevelGroupItemsPagingLocal:function(){return!1},sortLastLevelGroupItems:function(e){return e},refresh:function(t,n){var i,r,o=this,u=o._dataSource,l=t.storeLoadOptions,f=t.group||t.storeLoadOptions.group,p=(0,a.normalizeSortingInfo)(o._group);function g(e,t){t.length===r+1&&(e.isExpanded=i)}for(r=0;r");return this._addToContainer(t),{$element:t,instance:e._createComponent(t,o.default,(0,a.extend)({},this.options,{ignoreParentReadOnly:!0,disabled:this._isDisabled(),integrationOptions:this._prepareIntegrationOptions(e)}))}}},{key:"_prepareIntegrationOptions",value:function(e){return(0,a.extend)({},e.option("integrationOptions"),{skipTemplates:["content"]})}},{key:"update",value:function(){var e=f(m(d.prototype),"update",this).call(this);return this.instance&&this.instance.option("disabled",this._isDisabled()),e}},{key:"_isVisible",value:function(){return this.editor.option("visible")}},{key:"_isDisabled",value:function(){return void 0!==this.options.disabled?this.instance?this.instance.option("disabled"):this.options.disabled:this.editor.option("readOnly")}}])&&function(e,t){for(var n=0;n").addClass("dx-gesture-cover").css("pointerEvents","none");return r.subscribeGlobal(t,"dxmousewheel",function(e){e.preventDefault()}),u(function(){t.appendTo("body")}),function(e,n){t.css("pointerEvents",e?"all":"none"),e&&t.css("cursor",n)}}),y=p.inherit({gesture:!0,configure:function(e){this.getElement().css("msTouchAction",e.immediate?"pinch-zoom":""),this.callBase(e)},allowInterruptionByMouseWheel:function(){return 2!==this._stage},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=0},start:function(e){e._needSkipEvent||f.needSkipEvent(e)?this._cancel(e):(this._startEvent=f.createEvent(e),this._startEventData=f.eventData(e),this._stage=1,this._init(e),this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout((function(){this._immediateAccepted=!0}).bind(this),180))},move:function(e){if(1===this._stage&&this._directionConfirmed(e)){if(this._stage=2,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(e),this._adjustStartEvent(e),this._start(this._startEvent),0===this._stage)return;this._requestAccept(e),this._move(e),this._forgetAccept()}else 2===this._stage&&(this._clearSelection(e),this._move(e))},_directionConfirmed:function(e){var t=this._getTouchBoundary(e),n=f.eventDelta(this._startEventData,f.eventData(e)),i=m(n.x),r=m(n.y),o=this._validateMove(t,i,r),a=this._validateMove(t,r,i),s=this.getDirection(e);return"both"===s&&(o||a)||"horizontal"===s&&o||"vertical"===s&&a||this._immediateAccepted},_validateMove:function(e,t,n){return t&&t>=e&&(!this.immediate||t>=n)},_getTouchBoundary:function(e){return this.immediate||f.isDxMouseWheelEvent(e)?0:v},_adjustStartEvent:function(e){var t=this._getTouchBoundary(e),n=f.eventDelta(this._startEventData,f.eventData(e));this._startEvent.pageX+=g(n.x)*t,this._startEvent.pageY+=g(n.y)*t},_resetActiveElement:function(){"ios"===o.real().platform&&this.getElement().find(":focus").length&&c.resetActiveElement()},_toggleGestureCover:function(e){this._toggleGestureCoverImpl(e)},_toggleGestureCoverImpl:function(e){2===this._stage&&function(e,t){_()(e,t)}(e,this.getElement().css("cursor"))},_clearSelection:function(e){f.isDxMouseWheelEvent(e)||f.isTouchEvent(e)||c.clearSelection()},end:function(e){this._toggleGestureCover(!1),2===this._stage?this._end(e):1===this._stage&&this._stop(e),this._stage=0},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:d,_start:d,_move:d,_stop:d,_end:d});y.initialTouchBoundary=v,y.touchBoundary=function(e){if(!h(e))return v;v=e},e.exports=y},"3u3F":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("8Cge");var r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._counter=-1,this._deferreds={}}var t;return(t=[{key:"add",value:function(e){return this._counter++,this._deferreds[this._counter]=e,this._counter}},{key:"remove",value:function(e){return delete this._deferreds[e]}},{key:"cancel",value:function(e){return e in this._deferreds&&(this._deferreds[e].reject(i.CANCELED_TOKEN),!0)}},{key:"cancelAll",value:function(){for(;this._counter>-1;)this.cancel(this._counter),this._counter--}}])&&function(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,i=new Array(t);n=0?n.totalCount():t.length},key:e.key.bind(e),keyOf:e.keyOf.bind(e),load:function(t){if(e._dataSource){var n=e._dataSource.loadOptions();t.customQueryParams=n.customQueryParams,t.userData=e._dataSource._userData}var i=e._dataSource&&e._dataSource.store();return i?i.load(t).done(function(t){if(!e._disposed){var n=(0,p.normalizeLoadResult)(t).data;e._dataSource._applyMapFunction(n)}}):(new m.Deferred).resolve(this.plainItems())},dataFields:function(){return e._dataSource&&e._dataSource.select()},plainItems:t.bind(e._editStrategy)})},_initEditStrategy:function(){this._editStrategy=new(0,d.default)(this)},_getSelectedItemIndices:function(e){var t=this,n=[];return e=e||this._selection.getSelectedItemKeys(),t._editStrategy.beginCache(),(0,c.each)(e,function(e,i){var r=t._getIndexByKey(i);b(r)&&n.push(r)}),t._editStrategy.endCache(),n},_initMarkup:function(){var e=this;this._rendering=!0,this._dataSource&&this._dataSource.isLoading()||this._syncSelectionOptions().done(function(){return e._normalizeSelectedItems()}),this.callBase()},_render:function(){this.callBase(),this._rendering=!1},_fireContentReadyAction:function(){this._rendering=!1,this._rendered=!0,this.callBase.apply(this,arguments)},_syncSelectionOptions:function(e){var t,n,i,r;switch(e=e||this._chooseSelectOption()){case"selectedIndex":t=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),(0,l.isDefined)(t)?(this._setOptionWithoutOptionChange("selectedItems",[t]),this._setOptionWithoutOptionChange("selectedItem",t),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedItem",null));break;case"selectedItems":if(r=this.option("selectedItems")||[],n=this._editStrategy.getIndexByItemData(r[0]),this.option("selectionRequired")&&!b(n))return this._syncSelectionOptions("selectedIndex");this._setOptionWithoutOptionChange("selectedItem",r[0]),this._setOptionWithoutOptionChange("selectedIndex",n),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems(r));break;case"selectedItem":if(t=this.option("selectedItem"),n=this._editStrategy.getIndexByItemData(t),this.option("selectionRequired")&&!b(n))return this._syncSelectionOptions("selectedIndex");(0,l.isDefined)(t)?(this._setOptionWithoutOptionChange("selectedItems",[t]),this._setOptionWithoutOptionChange("selectedIndex",n),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedIndex",-1));break;case"selectedItemKeys":if(i=this.option("selectedItemKeys"),this.option("selectionRequired")){var o=this._getIndexByKey(i[0]);if(!b(o))return this._syncSelectionOptions("selectedIndex")}return this._selection.setSelection(i)}return(new m.Deferred).resolve().promise()},_chooseSelectOption:function(){var e="selectedIndex",t=(function(e){var t=this.option(e);return(0,l.isDefined)(t)&&t.length||e in this._userOptions}).bind(this);return t("selectedItems")?e="selectedItems":t("selectedItem")?e="selectedItem":t("selectedItemKeys")&&(e="selectedItemKeys"),e},_compareKeys:function(e,t){if(e.length!==t.length)return!1;for(var n=0;n1||!e.length&&this.option("selectionRequired")&&this.option("items")&&this.option("items").length){var t=this._selection.getSelectedItems(),n=void 0===e[0]?t[0]:e[0];return void 0===n&&(n=this._editStrategy.itemsGetter()[0]),this.option("grouped")&&n&&n.items&&(n.items=[n.items[0]]),this._selection.setSelection(this._getKeysByItems([n])),this._setOptionWithoutOptionChange("selectedItems",[n]),this._syncSelectionOptions("selectedItems")}this._selection.setSelection(this._getKeysByItems(e))}else{var i=this._getKeysByItems(this.option("selectedItems")),r=this._selection.getSelectedItemKeys();this._compareKeys(r,i)||this._selection.setSelection(i)}return(new m.Deferred).resolve().promise()},_itemClickHandler:function(e){this._createAction((function(e){this._itemSelectHandler(e.event)}).bind(this),{validatingTargetName:"itemElement"})({itemElement:(0,i.default)(e.currentTarget),event:e}),this.callBase.apply(this,arguments)},_itemSelectHandler:function(e){this.option("selectionByClick")&&(this.isItemSelected(e.currentTarget)?this.unselectItem(e.currentTarget):this.selectItem(e.currentTarget))},_selectedItemElement:function(e){return this._itemElements().eq(e)},_postprocessRenderItem:function(e){if("none"!==this.option("selectionMode")){var t=(0,i.default)(e.itemElement),n=this._editStrategy.getNormalizedIndex(t),r=this._isItemSelected(n);this._processSelectableItem(t,r)}},_processSelectableItem:function(e,t){e.toggleClass(this._selectedItemClass(),t),this._setAriaSelected(e,String(t))},_updateSelectedItems:function(e){var t=this,n=e.addedItemKeys,i=e.removedItemKeys;if(t._rendered&&(n.length||i.length)){var r=t._selectionChangePromise;if(!t._rendering){var o,a=[],s=[];t._editStrategy.beginCache();for(var c=0;c").text(e).addClass(b)},value:function(e){if(!l.isDefined(e)){var t=this._$page.text();return l.isNumeric(t)?parseInt(t):t}this._$page.text(e)},element:function(){return this._$page},select:function(e){this._$page.toggleClass(O,e)},render:function(e,t){t?this._$page.prependTo(e):this._$page.appendTo(e)}}),I=g.inherit({_getDefaultOptions:function(){return d(this.callBase(),{visible:!0,pagesNavigatorVisible:"auto",pageIndex:1,maxPagesCount:10,pageCount:10,totalCount:0,pageSize:5,showPageSizes:!0,pageSizes:[5,10],hasKnownLastPage:!0,showNavigationButtons:!1,showInfo:!1,infoText:p.getFormatter("dxPager-infoText"),pagesCountText:p.getFormatter("dxPager-pagesCountText"),rtlEnabled:!1,lightModeEnabled:!1,pageIndexChanged:c.noop,pageSizeChanged:c.noop})},_toggleVisibility:function(e){var t=this.$element();t&&t.css("display",e?"":"none")},_getPages:function(e,t){var n,i,r=[],o=!this.option("hasKnownLastPage");if(t>0||o)if(t<=this.option("maxPagesCount")){for(i=1;i<=t;i++)r.push(new E(i,i-1));o&&r.push(new E(">",i-1))}else{for(r.push(new E(1,0)),n=e?e.value()-e.index:1,i=1;i<=4;i++)r.push(new E(n+i,i));r.push(new E(t,5)),o&&r.push(new E(">",5))}return r},_getPageByValue:function(e){var t,n;for(n=0;ne&&5!==i.selectedPage.index&&(i.selectedPage.index=5):t>4&&t"===n.value()&&(i=n,n=void 0,s--,a.pop()),r.selectedPage&&r.selectedPage.select(!1),o.select(!0),r.selectedPage=o,n&&n.value()-e>1)if(0!==o.index)for(c.value(e+1),r._pages.splice(o.index,1),r._pages.splice(o.index-1,0,o),r._pages[o.index].index=o.index,o.index=o.index-1,t=o.index-1;t>0;t--)r._pages[t].value(r._pages[t+1].value()-1);else for(t=0;t1)if(o.index!==s-1)for(n.value(e-1),r._pages.splice(o.index,1),r._pages.splice(o.index+1,0,o),r._pages[o.index].index=o.index,o.index=o.index+1,t=o.index+1;t0&&t<=n&&this.option("pageIndex",t)},_wrapClickAction:function(e){var t=this;return function(n){if("dxpointerup"===n.type)t._pointerUpHappened=!0;else if(t._pointerUpHappened)return void(t._pointerUpHappened=!1);e({event:n})}},_renderPages:function(e){var t,n,o=this,a=e.length,s=o._createAction(function(e){var t=i(e.event.target).text(),n=">"===t?o.option("pageCount")+1:Number(t);o.option("pageIndex",n)});a>1&&(o._pageClickHandler=this._wrapClickAction(s),r.on(o._$pagesChooser,_.addNamespace([f.up,h.name],o.Name+"Pages"),w,o._pageClickHandler),y.registerKeyboardAction("pager",o,o._$pagesChooser,w,s));for(var c=0;c1&&(t=i("
").text(". . .").addClass("dx-separator"),o.option("rtlEnabled")?t.prependTo(o._$pagesChooser):t.appendTo(o._$pagesChooser))},_calculateLightPagesWidth:function(e,t){return Number(e.css("minWidth").replace("px",""))+10*t.toString().length},_renderLightPages:function(){var e=this,t=this.option("pageCount"),n=this.option("pageIndex"),o=e._createAction(function(){e.option("pageIndex",t)}),a=this.option("pagesCountText"),s=i("
").addClass("dx-light-pages").appendTo(this._$pagesChooser),c=i("
").addClass("dx-page-index").appendTo(s);e._pageIndexEditor=e._createComponent(c,v,{value:n,min:1,max:t,width:e._calculateLightPagesWidth(c,t),onValueChanged:function(t){e.option("pageIndex",t.value)}}),i("").text(a).addClass("dx-info-text dx-info").appendTo(s);var u=i("").addClass("dx-pages-count").text(t);r.on(u,_.addNamespace(h.name,e.Name+"PagesCount"),function(e){o({event:e})}),y.registerKeyboardAction("pager",e,u,void 0,o),u.appendTo(s),e.setAria({role:"button",label:"Navigates to the last page"},u)},_renderPagesChooser:function(){var e=this,t=e.option("lightModeEnabled"),n=e.option("pagesNavigatorVisible"),r=e.$element();e._$pagesChooser&&e._$pagesChooser.remove(),n&&(e._pages&&0===e._pages.length?e.selectedPage=null:(e._$pagesChooser=i("
").addClass(C).appendTo(r),"auto"===n&&e._$pagesChooser.css("visibility",1===e.option("pageCount")?"hidden":""),t||e._renderInfo(),e._renderNavigateButton("prev"),t?e._renderLightPages():e._renderPages(e._pages),e._renderNavigateButton("next"),e._updatePagesChooserWidth()))},_renderPageSizes:function(){var e,t,n,o=this,a=o.option("pageSizes"),s=a&&a.length,c=o.option("pageSize"),u=o._createAction(function(e){t=parseInt(i(e.event.target).text()),o.option("pageSize",t)});for(r.on(o._$pagesSizeChooser,_.addNamespace(h.name,o.Name+"PageSize"),S,function(e){u({event:e})}),y.registerKeyboardAction("pager",o,o._$pagesSizeChooser,S,u),e=0;e").text(a[e]).addClass("dx-page-size"),o.setAria({role:"button",label:"Display "+a[e]+" items on page"},n),y.setTabIndex(o,n),c===a[e]&&n.addClass(O),o._$pagesSizeChooser.append(n)},_calculateLightPageSizesWidth:function(e){return Number(this._$pagesSizeChooser.css("minWidth").replace("px",""))+10*Math.max.apply(Math,e).toString().length},_renderLightPageSizes:function(){var e=this,t=e.option("pageSizes"),n=i("
").appendTo(e._$pagesSizeChooser);e._pageSizeEditor=e._createComponent(n,m,{dataSource:t,value:e.option("pageSize"),onSelectionChanged:function(t){e.option("pageSize",t.selectedItem)},width:e._calculateLightPageSizesWidth(t)})},_renderPagesSizeChooser:function(){var e=this,t=e.option("pageSizes"),n=e.option("showPageSizes"),r=t&&t.length,o=e.$element();e._$pagesSizeChooser&&e._$pagesSizeChooser.remove(),n&&r&&(e._$pagesSizeChooser=i("
").addClass("dx-page-sizes").appendTo(o),e.option("lightModeEnabled")?e._renderLightPageSizes():e._renderPageSizes(),e._pagesSizeChooserWidth=e._$pagesSizeChooser.width())},_renderInfo:function(){var e=this.option("infoText");this.option("showInfo")&&l.isDefined(e)&&(this._$info=i("
").css("display",this._isInfoHide?"none":"").addClass("dx-info").text(a.format(e,this.selectedPage&&this.selectedPage.value(),this.option("pageCount"),this.option("totalCount"))).appendTo(this._$pagesChooser),this._isInfoHide||(this._infoWidth=this._$info.outerWidth(!0)))},_renderNavigateButton:function(e){var t,n=this,o=n._createAction(function(){n._nextPage(e)});(n.option("showNavigationButtons")||n.option("lightModeEnabled"))&&(t=i("
").addClass("dx-navigate-button"),r.on(t,_.addNamespace([f.up,h.name],n.Name+"Pages"),n._wrapClickAction(o)),y.registerKeyboardAction("pager",n,t,void 0,o),n.setAria({role:"button",label:"prev"===e?"Previous page":" Next page"},t),y.setTabIndex(n,t),n.option("rtlEnabled")?(t.addClass("prev"===e?x:k),t.prependTo(this._$pagesChooser)):(t.addClass("prev"===e?k:x),t.appendTo(this._$pagesChooser)))},_renderContentImpl:function(){this.$element().toggleClass("dx-light-mode",this.option("lightModeEnabled")),this._toggleVisibility(this.option("visible")),this._updatePageSizes(!0),this._updatePages(!0),y.restoreFocus(this)},_initMarkup:function(){var e=this.$element();e.addClass("dx-pager");var t=i("
").addClass(b);this._$pagesChooser=i("
").addClass(C).append(t).appendTo(e)},_render:function(){this.option().lightModeEnabled=!1,this.callBase(),this._updateLightMode()},_updatePageSizes:function(e){var t=this.option("lightModeEnabled"),n=this.option("pageSize"),i=this.option("pageSizes");t&&this._pageSizeEditor&&this._pageSizeEditor.option({value:n,dataSource:i,width:this._calculateLightPageSizesWidth(i)}),t&&!e||this._renderPagesSizeChooser()},_updatePages:function(e){var t=this.option("pageCount"),n=this.option("pageIndex"),i=this.option("lightModeEnabled");i?this._pageIndexEditor&&this._pageIndexEditor.option({value:n,width:this._calculateLightPagesWidth(this._pageIndexEditor.$element(),t)}):(this._processSelectedPage(this.option("maxPagesCount"),n,t),this._pages=this._getPages(this.selectedPage,t),this._selectPageByValue(n)),i&&!e||this._renderPagesChooser(),this._updateButtonsState(n)},_isPageIndexInvalid:function(e,t){var n="next"===e,i=this.option("rtlEnabled");return i&&n||!i&&!n?t<=1:t>=this.option("pageCount")},_updateButtonsState:function(e){var t=this.$element().find(".dx-next-button"),n=this.$element().find(".dx-prev-button");t.toggleClass(T,this._isPageIndexInvalid("next",e)),n.toggleClass(T,this._isPageIndexInvalid("prev",e))},_optionChanged:function(e){switch(e.name){case"visible":this._toggleVisibility(e.value);break;case"pageIndex":var t=this.option("pageIndexChanged");t&&t(e.value),this._updatePages();break;case"maxPagesCount":case"pageCount":case"totalCount":case"hasKnownLastPage":case"pagesNavigatorVisible":case"showNavigationButtons":this._updatePages();break;case"pageSize":var n=this.option("pageSizeChanged");n&&n(e.value),this._updatePageSizes();break;case"pageSizes":this._updatePageSizes();break;case"lightModeEnabled":this._renderContentImpl(),!e.value&&this._updateLightMode();break;default:this._invalidate()}},_clean:function(){this._$pagesChooser&&(r.off(this._$pagesChooser,_.addNamespace([f.up,h.name],this.Name+"Pages"),w,this._pageClickHandler),y.registerKeyboardAction("pager",this,this._$pagesChooser,w,this._pageKeyDownHandler)),this.callBase()},_getMinPagerWidth:function(){return(l.isDefined(this._pagesChooserWidth)?this._pagesChooserWidth:0)+(l.isDefined(this._pagesSizeChooserWidth)?this._pagesSizeChooserWidth:0)},_updatePagesChooserWidth:c.deferUpdater(function(){var e=this._pages&&this._pages.length>0?this._pages[this._pages.length-1]._$page.width():0;this._pagesChooserWidth=this._$pagesChooser.width()+e}),_updateLightMode:c.deferUpdater(function(){var e=this,t=this.$element().width(),n=l.isDefined(this._infoWidth)?this._infoWidth:0;c.deferRender(function(){e._isInfoHide&&t>e._getMinPagerWidth()+n&&(e._$info.show(),e._updatePagesChooserWidth(),e._isInfoHide=!1),!e._isInfoHide&&t>e._getMinPagerWidth()-n&&te._previousWidth?e.option("lightModeEnabled",!1):t=10?e:e+12:"\u0ab8\u0abe\u0a82\u0a9c"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0ab0\u0abe\u0aa4":e<10?"\u0ab8\u0ab5\u0abe\u0ab0":e<17?"\u0aac\u0aaa\u0acb\u0ab0":e<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(n("wd/R"))},"4Oz5":function(e,t,n){"use strict";var i=n("Q7sy"),r=n("KAnu"),o=n("ti0F"),a=r.getKeyHash,s=n("5qrJ"),c=n("tJvG").Deferred;e.exports=s.inherit({ctor:function(e){this.options=e,this._setOption("disabledItemKeys",[]),this._clearItemKeys()},_clearItemKeys:function(){this._setOption("addedItemKeys",[]),this._setOption("removedItemKeys",[]),this._setOption("removedItems",[]),this._setOption("addedItems",[])},validate:r.noop,_setOption:function(e,t){this.options[e]=t},onSelectionChanged:function(){var e=this.options.addedItemKeys,t=this.options.removedItemKeys,n=this.options.addedItems,i=this.options.removedItems,o=this.options.selectedItems,a=this.options.selectedItemKeys,s=this.options.onSelectionChanged||r.noop;this._clearItemKeys(),s({selectedItems:o,selectedItemKeys:a,addedItemKeys:e,removedItemKeys:t,addedItems:n,removedItems:i})},equalKeys:function(e,t){return this.options.equalByReference&&o.isObject(e)&&o.isObject(t)?e===t:r.equalByValue(e,t)},getSelectableItems:function(e){return e.filter(function(e){return!e.disabled})},_clearSelection:function(e,t,n,i){return e=e||[],e=Array.isArray(e)?e:[e],this.validate(),this.selectedItemKeys(e,t,n,i)},_loadFilteredData:function(e,t,n,r){var a=encodeURI(JSON.stringify(e)).length,s=this.options.maxFilterLengthInRequest&&a>this.options.maxFilterLengthInRequest,u=new c,l={filter:s?void 0:e,select:s?this.options.dataFields():n||this.options.dataFields()};return e&&0===e.length?u.resolve([]):this.options.load(l).done(function(n){var a=o.isPlainObject(n)?n.data:n;t&&!r?a=a.filter(t):s&&(a=i(a).filter(e).toArray()),u.resolve(a)}).fail(u.reject.bind(u)),u},updateSelectedItemKeyHash:function(e){for(var t=0;t=this.options.totalCount()-this.options.disabledItemKeys.length||void 0:this._isAnyItemSelected(e)},_getVisibleSelectAllState:function(){for(var e=this.getSelectableItems(this.options.plainItems()),t=!1,n=!1,i=0;i>>((3&t)<<3)&255;return r}}},"4lf7":function(e,t,n){"use strict";var i=o(n("BWGd")),r=o(n("uy2t"));function o(e){return e&&e.__esModule?e:{default:e}}i.default.registerModule("selection",r.default)},"4xE8":function(e,t,n){"use strict";var i=o(n("BWGd")),r=o(n("ultK"));function o(e){return e&&e.__esModule?e:{default:e}}i.default.registerModule("filterPanel",r.default)},"4xVo":function(e,t,n){"use strict";n.d(t,"a",function(){return g}),n.d(t,"b",function(){return m});var i=n("1OyB"),r=n("vuIU"),o=n("JX7q"),a=n("Ji7U"),s=n("LK+K"),c=n("mrSG"),u=n("jhN1"),l=n("fXoL"),d=n("PbkZ"),h=n.n(d),f=n("PVOt"),p=n("6t9p"),g=function(){var e=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,r,a,s,c,u,l){var d;return Object(i.a)(this,n),(d=t.call(this,e,r,a,s,u,l))._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"hidden",emit:"onHidden"},{subscribe:"hiding",emit:"onHiding"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"showing",emit:"onShowing"},{subscribe:"shown",emit:"onShown"},{emit:"animationChange"},{emit:"closeOnOutsideClickChange"},{emit:"containerChange"},{emit:"deferRenderingChange"},{emit:"delayChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"indicatorSrcChange"},{emit:"maxHeightChange"},{emit:"maxWidthChange"},{emit:"messageChange"},{emit:"minHeightChange"},{emit:"minWidthChange"},{emit:"positionChange"},{emit:"rtlEnabledChange"},{emit:"shadingChange"},{emit:"shadingColorChange"},{emit:"showIndicatorChange"},{emit:"showPaneChange"},{emit:"visibleChange"},{emit:"widthChange"}]),c.setHost(Object(o.a)(d)),d}return Object(r.a)(n,[{key:"animation",get:function(){return this._getOption("animation")},set:function(e){this._setOption("animation",e)}},{key:"closeOnOutsideClick",get:function(){return this._getOption("closeOnOutsideClick")},set:function(e){this._setOption("closeOnOutsideClick",e)}},{key:"container",get:function(){return this._getOption("container")},set:function(e){this._setOption("container",e)}},{key:"deferRendering",get:function(){return this._getOption("deferRendering")},set:function(e){this._setOption("deferRendering",e)}},{key:"delay",get:function(){return this._getOption("delay")},set:function(e){this._setOption("delay",e)}},{key:"elementAttr",get:function(){return this._getOption("elementAttr")},set:function(e){this._setOption("elementAttr",e)}},{key:"focusStateEnabled",get:function(){return this._getOption("focusStateEnabled")},set:function(e){this._setOption("focusStateEnabled",e)}},{key:"height",get:function(){return this._getOption("height")},set:function(e){this._setOption("height",e)}},{key:"hint",get:function(){return this._getOption("hint")},set:function(e){this._setOption("hint",e)}},{key:"hoverStateEnabled",get:function(){return this._getOption("hoverStateEnabled")},set:function(e){this._setOption("hoverStateEnabled",e)}},{key:"indicatorSrc",get:function(){return this._getOption("indicatorSrc")},set:function(e){this._setOption("indicatorSrc",e)}},{key:"maxHeight",get:function(){return this._getOption("maxHeight")},set:function(e){this._setOption("maxHeight",e)}},{key:"maxWidth",get:function(){return this._getOption("maxWidth")},set:function(e){this._setOption("maxWidth",e)}},{key:"message",get:function(){return this._getOption("message")},set:function(e){this._setOption("message",e)}},{key:"minHeight",get:function(){return this._getOption("minHeight")},set:function(e){this._setOption("minHeight",e)}},{key:"minWidth",get:function(){return this._getOption("minWidth")},set:function(e){this._setOption("minWidth",e)}},{key:"position",get:function(){return this._getOption("position")},set:function(e){this._setOption("position",e)}},{key:"rtlEnabled",get:function(){return this._getOption("rtlEnabled")},set:function(e){this._setOption("rtlEnabled",e)}},{key:"shading",get:function(){return this._getOption("shading")},set:function(e){this._setOption("shading",e)}},{key:"shadingColor",get:function(){return this._getOption("shadingColor")},set:function(e){this._setOption("shadingColor",e)}},{key:"showIndicator",get:function(){return this._getOption("showIndicator")},set:function(e){this._setOption("showIndicator",e)}},{key:"showPane",get:function(){return this._getOption("showPane")},set:function(e){this._setOption("showPane",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"width",get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)}},{key:"_createInstance",value:function(e,t){return new h.a(e,t)}},{key:"ngOnDestroy",value:function(){this._destroyWidget()}}]),n}(f.b);return e.\u0275fac=function(t){return new(t||e)(l.ac(l.q),l.ac(l.J),l.ac(f.f),l.ac(f.k),l.ac(f.j),l.ac(u.d),l.ac(l.M))},e.\u0275cmp=l.Ub({type:e,selectors:[["dx-load-panel"]],inputs:{animation:"animation",closeOnOutsideClick:"closeOnOutsideClick",container:"container",deferRendering:"deferRendering",delay:"delay",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",indicatorSrc:"indicatorSrc",maxHeight:"maxHeight",maxWidth:"maxWidth",message:"message",minHeight:"minHeight",minWidth:"minWidth",position:"position",rtlEnabled:"rtlEnabled",shading:"shading",shadingColor:"shadingColor",showIndicator:"showIndicator",showPane:"showPane",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onHidden:"onHidden",onHiding:"onHiding",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onShowing:"onShowing",onShown:"onShown",animationChange:"animationChange",closeOnOutsideClickChange:"closeOnOutsideClickChange",containerChange:"containerChange",deferRenderingChange:"deferRenderingChange",delayChange:"delayChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",indicatorSrcChange:"indicatorSrcChange",maxHeightChange:"maxHeightChange",maxWidthChange:"maxWidthChange",messageChange:"messageChange",minHeightChange:"minHeightChange",minWidthChange:"minWidthChange",positionChange:"positionChange",rtlEnabledChange:"rtlEnabledChange",shadingChange:"shadingChange",shadingColorChange:"shadingColorChange",showIndicatorChange:"showIndicatorChange",showPaneChange:"showPaneChange",visibleChange:"visibleChange",widthChange:"widthChange"},features:[l.Nb([f.f,f.k,f.j]),l.Lb],decls:0,vars:0,template:function(e,t){},encapsulation:2}),e=Object(c.__decorate)([Object(c.__param)(6,Object(l.w)(l.M)),Object(c.__metadata)("design:paramtypes",[l.q,l.J,f.f,f.k,f.j,u.d,Object])],e)}(),m=function(){var e=Object(r.a)(function e(){Object(i.a)(this,e)});return e.\u0275mod=l.Yb({type:e}),e.\u0275inj=l.Xb({factory:function(t){return new(t||e)},imports:[[p.sb,p.md,p.Se,p.pe,p.yb,p.Fb,p.Rb,p.Xd,p.be,f.d,f.g,u.b],p.sb,p.md,p.Se,p.pe,p.yb,p.Fb,p.Rb,p.Xd,p.be,f.g]}),e}()},"5+tZ":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("lJxs"),c=n("Cfvw"),u=n("zx2A");function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(l(function(n,i){return Object(c.a)(e(n,i)).pipe(Object(s.a)(function(e,r){return t(n,e,i,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new d(e,n))})}var d=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;Object(o.a)(this,e),this.project=t,this.concurrent=n}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new h(e,this.project,this.concurrent))}}]),e}(),h=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return Object(o.a)(this,n),(r=t.call(this,e)).project=i,r.concurrent=a,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return Object(a.a)(n,[{key:"_next",value:function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(u.b)},"5Yhv":function(e,t,n){"use strict";n.d(t,"a",function(){return b});var i,r=n("c7TG"),o=n("mjQz"),a=n("Zhhz"),s=n("Xzt5"),c=n("+Jrw"),u=n("aiMf"),l=n("LvDl"),d=n("fXoL"),h=(i=function(e,t){return(i=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(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},p=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]o.b.SHIPMENT_BARCODE_LENGTH?(this.taskManagerService.alarmPlay(),this.taskManagerService.showToast("Shipment Barcode exceeds maximum defined limit ("+o.b.SHIPMENT_BARCODE_LENGTH+" characters)"),[2]):[4,this.tsoService.getShipments(e)];case 2:return t=i.sent(),n=null,t&&t[0]&&(n=t[0]),this.consolidationShipment.barcode?n?n.type===this.shipmentTypes.consolidation?(this.taskManagerService.alarmPlay(),this.taskManagerService.showToast("Consolidation Shipment"),[2]):n.parent?(this.taskManagerService.alarmPlay(),this.taskManagerService.showToast("Already Part of Consolidation"),[2]):n.shipmentMethod&&n.shipmentMethod.kind===this.shippingMethodTypes.commercialAirline&&n.transport&&n.transport.trackingNumber?this.selectedShipments.length&&this.selectedShipments[0].transport.trackingNumber!==n.transport.trackingNumber?(this.taskManagerService.alarmPlay(),this.taskManagerService.showToast("Airway Bill doesnot match"),[2]):[4,this.addShipmentToSelectedList(JSON.parse(JSON.stringify(n)))]:[3,4]:[3,6]:[3,8];case 3:return i.sent(),[3,5];case 4:return this.taskManagerService.alarmPlay(),this.taskManagerService.showToast("Shipping Method Is Not Commercial"),[2];case 5:return[3,7];case 6:return this.taskManagerService.alarmPlay(),this.taskManagerService.showToast("Shipment Not Found"),[2];case 7:return[3,9];case 8:if(n)return this.taskManagerService.alarmPlay(),this.taskManagerService.showToast("Duplicate Barcode"),[2];this.consolidationShipment.barcode=e,this.consolidationBarcode=e,i.label=9;case 9:return[3,11];case 10:return this.taskManagerService.alarmPlay(),this.taskManagerService.showToast("Invalid Barcode"),[3,11];case 11:return[2]}})})},t.prototype.onConsolidationBarcodeChanged=function(){this.consolidationBarcode?this.consolidationBarcode.startsWith(o.a.SC)?this.handleScan(this.consolidationBarcode):(this.taskManagerService.alarmPlay(),this.taskManagerService.showToast("Invalid Barcode"),this.consolidationShipment.barcode=null,this.consolidationBarcode=""):this.consolidationShipment.barcode=null},t.prototype.save=function(e){return f(this,void 0,void 0,function(){var t,n,i;return p(this,function(r){switch(r.label){case 0:return r.trys.push([0,7,8,9]),this.loader=!0,this.consolidationShipment.children=this.selectedShipments.map(function(e){return e.barcode}),console.log("save consolitadion",this.consolidationShipment),this.isRSR?(t=this,[4,this.tsoService.createRSRConsolidationShipment(this.consolidationShipment,this.taskManagerService.task._id,!1)]):[3,2];case 1:return t.consolidationShipment=r.sent(),[3,4];case 2:return n=this,[4,this.tsoService.createTSOConsolidationShipment(this.consolidationShipment,!1)];case 3:n.consolidationShipment=r.sent(),r.label=4;case 4:return e?[4,this.dismiss()]:[3,6];case 5:r.sent(),r.label=6;case 6:return[3,9];case 7:return i=r.sent(),console.log(i),[3,9];case 8:return this.loader=!1,[7];case 9:return[2]}})})},t.prototype.getRSRVehicle=function(){if(!this.isRSR)return"";var e=this.taskManagerService.task.equipment.find(function(e){return e.vehicle&&e.vehicle.isActive});return e&&e.vehicle&&e.vehicle.barcode?e.vehicle.barcode:""},t.prototype.addShipmentToSelectedList=function(e){return f(this,void 0,void 0,function(){return p(this,function(t){switch(t.label){case 0:return this.selectedShipments.length?[3,2]:[4,this.setConsolidationShipmentDefaultOptions(e)];case 1:t.sent(),t.label=2;case 2:return-1!==this.selectedShipments.findIndex(function(t){return t.barcode===e.barcode})?[3,4]:(this.selectedShipments.push(e),this.isEditMode?[4,this.tsoService.addShipmentsToConsolidation([e.barcode],this.consolidationShipment,!0)]:[3,4]);case 3:t.sent(),this.consolidationShipment.children=l.uniq(this.consolidationShipment.children.concat([e.barcode])),t.label=4;case 4:return[2]}})})},t.prototype.removeShipmentFromSelectedList=function(e){return f(this,void 0,void 0,function(){var t,n;return p(this,function(i){switch(i.label){case 0:return[4,this.slidingList.closeSlidingItems()];case 1:return i.sent(),t=!0,this.isEditMode?[4,this.taskManagerService.showConfirmation("","Please confirm to remove "+e.barcode+" from the Consolidation Shipment","Remove","Cancel")]:[3,3];case 2:t=i.sent(),i.label=3;case 3:return t&&(n=this.selectedShipments.findIndex(function(t){return t.barcode===e.barcode}))>-1?(this.selectedShipments.splice(n,1),this.isEditMode||0!==n||!this.selectedShipments.length?[3,5]:[4,this.setConsolidationShipmentDefaultOptions(this.selectedShipments[0])]):[3,7];case 4:i.sent(),i.label=5;case 5:return this.isEditMode?[4,this.tsoService.deleteShipmentsFromConsolidation([e],this.consolidationShipment)]:[3,7];case 6:i.sent(),i.label=7;case 7:return[2]}})})},t.prototype.setConsolidationShipmentDefaultOptions=function(e){return f(this,void 0,void 0,function(){return p(this,function(t){switch(t.label){case 0:return this.consolidationShipment.originLab=e.originLab,this.consolidationShipment.destinationLab=e.destinationLab,this.consolidationShipment.buildLocation=e.buildLocation,this.consolidationShipment.temperature=e.temperature,this.consolidationShipment.size=e.size,this.consolidationShipment.transport=e.transport,this.consolidationShipment.shipmentMethod=e.shipmentMethod,this.isEditMode?[4,this.save(!1)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},t.prototype.initSelectedShipments=function(e){return f(this,void 0,void 0,function(){var t;return p(this,function(n){switch(n.label){case 0:return t=this,[4,this.tsoService.getCachedShipments([{property:"barcode",operator:"in",value:e}],{orderBy:"createdAt",direction:"desc",pageSize:1e3,page:0},null,{orderBy:"createdAt",direction:"desc"})];case 1:return t.selectedShipments=n.sent(),[2]}})})},t.\u0275fac=function(e){return new(e||t)(d.ac(r.Gb),d.ac(c.a),d.ac(u.a))},t.\u0275cmp=d.Ub({type:t,selectors:[["app-consolidation-shipment"]],viewQuery:function(e,t){var n;1&e&&d.Xc(g,!0),2&e&&d.Ec(n=d.oc())&&(t.slidingList=n.first)},inputs:{consolidationShipment:"consolidationShipment",isRSR:"isRSR"},features:[d.Lb],decls:18,vars:6,consts:[["title","Consolidation Shipment","hideCloseButton","true",3,"onDismiss"],[1,"createShipment"],["name","barcode"],["clear-input","true","uppercase","","placeholder","Scan/Enter Consolidation Barcode",2,"margin-left","10px","margin-right","5px","border","1px solid #eee","border-radius","5px","padding-left","5px !important",3,"disabled","ngModel","ngModelChange","change"],[4,"ngIf"],["slidingList",""],[4,"ngFor","ngForOf"],["justify-content-center","",2,"padding","5px 0"],[1,"btnDanger",3,"click"],["name","close-circle"],[3,"disabled","click",4,"ngIf"],["clear-input","true","uppercase","","placeholder","Scan/Enter Shipment Barcode",2,"margin-left","10px","margin-right","5px","border","1px solid #eee","border-radius","5px","padding-left","5px !important",3,"ngModel","ngModelChange","change"],[1,"ion-no-padding","ion-no-inner-padding"],[2,"width","100%",3,"shipment"],["side","end"],["color","danger",3,"click"],[3,"disabled","click"],["name","save"]],template:function(e,t){1&e&&(d.gc(0,"base-modal",0),d.nc("onDismiss",function(){return t.dismiss()}),d.gc(1,"base-modal-content",1),d.gc(2,"ion-header"),d.gc(3,"ion-item"),d.bc(4,"ion-icon",2),d.gc(5,"ion-input",3),d.nc("ngModelChange",function(e){return t.consolidationBarcode=e})("change",function(){return t.onConsolidationBarcodeChanged()}),d.fc(),d.fc(),d.Pc(6,m,3,1,"ion-item",4),d.fc(),d.gc(7,"ion-content"),d.gc(8,"ion-list",null,5),d.Pc(10,v,6,1,"ion-item-sliding",6),d.fc(),d.fc(),d.gc(11,"ion-footer"),d.gc(12,"ion-row",7),d.gc(13,"ion-button",8),d.nc("click",function(){return t.dismiss()}),d.bc(14,"ion-icon",9),d.Rc(15," Cancel "),d.fc(),d.Pc(16,_,3,1,"ion-button",10),d.fc(),d.fc(),d.fc(),d.fc(),d.Pc(17,y,1,0,"cmx-loader",4)),2&e&&(d.Ob(5),d.wc("disabled",t.consolidationShipment.barcode)("ngModel",t.consolidationBarcode),d.Ob(1),d.wc("ngIf",t.consolidationShipment.barcode),d.Ob(4),d.wc("ngForOf",t.selectedShipments),d.Ob(6),d.wc("ngIf",!t.isEditMode),d.Ob(1),d.wc("ngIf",t.loader))},styles:[".ion-no-inner-padding[_ngcontent-%COMP%]{--padding-end:0px;--inner-padding-end:0px}"]}),t}(s.a)},"5qrJ":function(e,t,n){"use strict";var i,r=n("/7L9"),o=n("ti0F"),a=function(e,t,n){return function(){var i=this.callBase;this.callBase=e[t];try{return n.apply(this,arguments)}finally{this.callBase=i}}},s=function(e){var t,n,i=this;if(!e)return i;for(t in e)n=e[t],i.prototype[t]="function"==typeof i.prototype[t]&&"function"==typeof n?a(i.parent.prototype,t,n):n;return i},c=function(){var e,t,n,i=this,r=Object.prototype.hasOwnProperty.bind(i),o=!r("_includedCtors")&&!r("_includedPostCtors");for(o&&(i._includedCtors=i._includedCtors.slice(0),i._includedPostCtors=i._includedPostCtors.slice(0)),n=0;n=0;t--)i=r[t],(n=Math.floor(e/h(i)))>0&&(o[i+"s"]=n,e-=p(i,n));return o};function p(e,t){return h(e)*t}function g(e){var t,n=-1;return c(e)?e:s(e)?(o(e,function(e,i){for(t=0;tn&&(i=n),i):e}function M(e,t){if(l(e)){var n=t.getHours()-e.getHours();if(0!==n){var i=1===n||-23===n?-1:1,r=new Date(t.getTime()+36e5*i);(i>0||r.getDate()===t.getDate())&&t.setTime(r.getTime())}}}function A(e,t){return 60*(t.getTimezoneOffset()-e.getTimezoneOffset())*1e3}var P={dateUnitIntervals:d,convertMillisecondsToDateUnits:f,dateToMilliseconds:function(e){var t=0;return s(e)&&o(e,function(e,n){t+=p(e.substr(0,e.length-1),n)}),c(e)&&(t=p(e,1)),t},getNextDateUnit:function(e,t){switch(g(e)){case"millisecond":return"second";case"second":return"minute";case"minute":return"hour";case"hour":return"day";case"day":return t?"week":"month";case"week":return"month";case"month":return"quarter";case"quarter":case"year":return"year";default:return 0}},convertDateUnitToMilliseconds:p,getDateUnitInterval:g,getDateFormatByTickInterval:function(e){return m[g(e)]||""},getDatesDifferences:function(e,t){var n=0,i={year:e.getFullYear()!==t.getFullYear(),month:e.getMonth()!==t.getMonth(),day:e.getDate()!==t.getDate(),hour:e.getHours()!==t.getHours(),minute:e.getMinutes()!==t.getMinutes(),second:e.getSeconds()!==t.getSeconds(),millisecond:e.getMilliseconds()!==t.getMilliseconds()};return o(i,function(e,t){t&&n++}),0===n&&0!==A(e,t)&&(i.hour=!0,n++),i.count=n,i},correctDateWithUnitBeginning:y,trimTime:b,setToDayEnd:function(e){var t=b(e);return t.setDate(t.getDate()+1),new Date(t.getTime()-1)},roundDateByStartDayHour:function(e,t){var n=this.dateTimeFromDecimal(t),i=new Date(e);return(e.getHours()===n.hours&&e.getMinutes()=6&&(i=new Date(i.setDate(i.getDate()+7))),i},getQuarter:v,getFirstQuarterMonth:_,dateInRange:function(e,t,n,i){return"date"===i&&(t=t&&P.correctDateWithUnitBeginning(t,"day"),n=n&&P.correctDateWithUnitBeginning(n,"day"),e=e&&P.correctDateWithUnitBeginning(e,"day")),D(e,t,n)===e},roundToHour:function(e){return e.setHours(e.getHours()+1),e.setMinutes(0),e},normalizeDate:D,getViewMinBoundaryDate:function(e,t){var n=new Date(t.getFullYear(),t.getMonth(),1);return"month"===e||(n.setMonth(0),"year"===e||("decade"===e&&n.setFullYear(E(t)),"century"===e&&n.setFullYear(T(t)))),n},getViewMaxBoundaryDate:function(e,t){var n=new Date(t);return n.setDate(O(t)),"month"===e||(n.setMonth(11),n.setDate(O(n)),"year"===e||("decade"===e&&n.setFullYear(E(t)+9),"century"===e&&n.setFullYear(T(t)+99))),n},fixTimezoneGap:M,getTimezonesDifference:A,makeDate:function(e){return new Date(e)},getDatesInterval:function(e,t,n){var i=t.getTime()-e.getTime(),r=h(n)||1;return Math.floor(i/r)},getDatesOfInterval:function(e,t,n){var i=[],r=new Date(e.getTime());for(e.getTime()===t.getTime()&&i.push(new Date(e.getTime()));r").addClass(e+"-icon").appendTo(this.$element())},_render:function(){this.callBase();var e=c.addNamespace(u.down,this.NAME),t=this.$element();o.off(t,e),o.on(t,e,this._spinDownHandler.bind(this)),this._spinChangeHandler=this._createActionByOption("onChange")},_spinDownHandler:function(e){e.preventDefault(),this._clearTimer(),o.on(this.$element(),d.name,(function(){this._feedBackDeferred=new h,l.lock(this._feedBackDeferred),this._spinChangeHandler({event:e}),this._holdTimer=setInterval(this._spinChangeHandler,100,{event:e})}).bind(this));var t=r.getDocument();o.on(t,p,this._clearTimer.bind(this)),o.on(t,g,this._clearTimer.bind(this)),this._spinChangeHandler({event:e})},_dispose:function(){this._clearTimer(),this.callBase()},_clearTimer:function(){o.off(this.$element(),d.name);var e=r.getDocument();o.off(e,p),o.off(e,g),this._feedBackDeferred&&this._feedBackDeferred.resolve(),this._holdTimer&&clearInterval(this._holdTimer)},_optionChanged:function(e){switch(e.name){case"onChange":case"direction":this._invalidate();break;default:this.callBase(e)}}});e.exports=m},"5wU3":function(e,t,n){"use strict";var i=n("FKN7"),r=n("f6AH"),o=n("1LL4").extend,a=n("tJvG").Deferred,s=n("CWM8"),c=null,u=null,l=function(){c&&(u(),c=null)};t.show=function(e){return l(),function(e){var t=(e=o({position:"top"},e)).content;delete e.content;var n=i("
").html(t).appendTo(s.value());u=function(){n.remove()},c=new r(n,e)}(e),c.show()},t.hide=function(){return c?c.hide().done(l).promise():(new a).resolve()}},"5x2u":function(e,t,n){"use strict";var i=v(n("FKN7")),r=v(n("5qrJ")),o=n("ti0F"),a=n("1LL4"),s=n("XgSC"),c=v(n("XpgS")),u=v(n("BWGd")),l=v(n("d+p3")),d=n("JUkI"),h=v(n("imRD")),f=v(n("XPWh")),p=v(n("I0Qj")),g=v(n("zrYi")),m=n("tJvG");function v(e){return e&&e.__esModule?e:{default:e}}var _="xlsxfile",y="exportselected",b="dx-toolbar-item-auto-hide";t.DataProvider=r.default.inherit({_getGroupValue:function(e){var t=e.key,n=e.data,i=e.rowType,r=e.groupIndex,o=e.summaryCells,a=this._options.groupColumns[r],s=u.default.getDisplayValue(a,a.deserializeValue?a.deserializeValue(t[r]):t[r],n,i),c=a.caption+": "+u.default.formatValue(s,a);return o&&o[0]&&o[0].length&&(c+=" "+u.default.getGroupRowSummaryText(o[0],this._options.summaryTexts)),c},_correctCellIndex:function(e){return e},_initOptions:function(){var e=this._exportController,t=e._columnsController.getGroupColumns(),n=e.option("export.excelWrapTextEnabled");this._options={columns:e._getColumns(this._initialColumnWidthsByColumnIndex),groupColumns:t,items:this._selectedRowsOnly||e._selectionOnly?e._getSelectedItems():e._getAllItems(),getVisibleIndex:e._columnsController.getVisibleIndex.bind(e._columnsController),isHeadersVisible:e.option("showColumnHeaders"),summaryTexts:e.option("summary.texts"),customizeExportData:e.option("customizeExportData"),rtlEnabled:e.option("rtlEnabled"),wrapTextEnabled:(0,o.isDefined)(n)?n:!!e.option("wordWrapEnabled"),customizeExcelCell:e.option("export.customizeExcelCell")}},hasCustomizeExcelCell:function(){return(0,o.isDefined)(this._options.customizeExcelCell)},customizeExcelCell:function(e,t){this._options.customizeExcelCell&&(e.gridCell=t,(0,o.isDefined)(this._exportController)&&(0,o.isDefined)(this._exportController.component)&&(e.component=this._exportController.component),this._options.customizeExcelCell(e))},ctor:function(e,t,n){this._exportController=e,this._initialColumnWidthsByColumnIndex=t,this._selectedRowsOnly=n},getStyles:function(){var e=this._options.wrapTextEnabled,t=["center","left","right"].map(function(e){return{bold:!0,alignment:e,wrapText:!0}});return this.getColumns().forEach(function(n){t.push({alignment:n.alignment||"left",format:n.format,wrapText:e,dataType:n.dataType})}),t.push({bold:!0,wrapText:!1,alignment:(0,s.getDefaultAlignment)(this._options.rtlEnabled)}),t},_getTotalCellStyleId:function(e){var t=this.getColumns()[e]&&this.getColumns()[e].alignment||"right";return["center","left","right"].indexOf(t)},getStyleId:function(e,t){return e1),n),t.items=n}).fail(function(){t.items=[]})},_convertFromGridGroupSummaryItems:function(e){if((0,o.isDefined)(e)&&e.length>0)return e.map(function(e){return{value:e.value,name:e.name}})},getCellData:function(e,t,n){var i,r,a={cellSourceData:{},value:r},s=this.getColumns(),c=this._correctCellIndex(t);if(e0?n?"\n":" \n ":"")+u.default.getSummaryText(h[f],this._options.summaryTexts);a.value=r}else a.cellSourceData.value=void 0}break;default:if(i=s[t]){var p=d[c],g=u.default.getDisplayValue(i,p,l.data,l.rowType);a.value=!isFinite(g)||(0,o.isDefined)(i.customizeText)?n&&(0,o.isDefined)(i.customizeText)&&i.customizeText===this._exportController._columnsController.getCustomizeTextByDataType("boolean")?g:u.default.formatValue(g,i):g,a.cellSourceData.value=p}a.cellSourceData.data=l.data}}}return a},isHeadersVisible:function(){return this._options.isHeadersVisible},isTotalCell:function(e,t){var n=this._options.items[e],i=this._correctCellIndex(t);return n&&"groupFooter"===n.rowType||"totalFooter"===n.rowType||n.summaryCells&&n.summaryCells[i]&&n.summaryCells[i].length>0&&n.summaryCells[i][0].alignByColumn},getCellMerging:function(e,t){var n=this._options.columns,i=n[e]&&n[e][t];return i?{colspan:(i.exportColspan||1)-1,rowspan:(i.rowspan||1)-1}:{colspan:0,rowspan:0}},getFrozenArea:function(){return{x:0,y:this.getHeaderRowCount()}}}),t.ExportController=u.default.ViewController.inherit({}).include(l.default).inherit({_getEmptyCell:function(){return{caption:"",colspan:1,rowspan:1}},_updateColumnWidth:function(e,t){e.width=t},_getColumns:function(e){var t,n,i=[],r=this._columnsController,s=r.getRowCount();for(t=0;t<=s;t++){var c=[];n=r.getVisibleColumns(t,!0);var u=void 0;if(t===s)if(this._updateLockCount)u=e;else{var l=this._getColumnWidths(this._headersView,this._rowsView);if(l&&l.length){u={};for(var d=0;d1){for(var o=i.values.length,a=1;a0&&(c.default.merge(i.values,t),t=[])}}},_processUnExportedItems:function(e){for(var t,n,i=this._columnsController.getVisibleColumns(null,!0),r=this._columnsController.getGroupColumns(),o=0;o").addClass(b);t.wrapInner(s).parent().addClass("dx-toolbar-menu-action dx-toolbar-menu-button dx-toolbar-hidden-button"),o.text=o.hint}r._createComponent(a,f.default,o)},_renderList:function(e,t){var n=this,r=n.option("export.texts"),o=[{template:function(e,t,r){n._renderFakeButton(e,(0,i.default)(r),_)},text:r.exportAll},{template:function(e,t,r){n._renderFakeButton(e,(0,i.default)(r),y)},text:r.exportSelectedRows,exportSelected:!0}];n._createComponent(t,p.default,{items:o,onItemClick:function(e){n._exportController.exportToExcel(e.itemData.exportSelected)},scrollingEnabled:!1})},_renderFakeButton:function(e,t,n){var r=(0,i.default)("
").addClass("dx-icon dx-icon-"+n),o=(0,i.default)("").addClass("dx-button-text").text(e.text),a=(0,i.default)("
").addClass("dx-button-content").append(r).append(o),s=(0,i.default)("
").addClass("dx-button dx-button-has-text dx-button-has-icon dx-datagrid-toolbar-button").append(a),c=(0,i.default)("
").addClass(b).append(s);t.append(c).parent().addClass("dx-toolbar-menu-custom dx-toolbar-hidden-button")},_correctItemsPosition:function(e){e.sort(function(e,t){return e.sortIndex-t.sortIndex})},_renderExportMenu:function(e){var t=this,n=e.find(".dx-button"),r=t.option("export.texts"),o=[{text:r.exportAll,icon:_},{text:r.exportSelectedRows,exportSelected:!0,icon:y}],a=(0,i.default)("
").appendTo(e);t._contextMenu=t._createComponent(a,g.default,{showEvent:"dxclick",items:o,cssClass:"dx-datagrid-export-menu",onItemClick:function(e){t._exportController.exportToExcel(e.itemData.exportSelected)},target:n,position:{at:"left bottom",my:"left top",offset:"0 3",collision:"fit",boundary:t._$parent,boundaryOffset:"1 1"}})},_isExportButtonVisible:function(){return this.option("export.enabled")},_getButtonOptions:function(e){var t=this,n=t.option("export.texts");return e?{hint:n.exportTo,icon:"export-to"}:{hint:n.exportAll,icon:"export-excel-button",onClick:function(){t._exportController.exportToExcel()}}},optionChanged:function(e){this.callBase(e),"export"===e.name&&(e.handled=!0,this._invalidate())},init:function(){var e=this;this.callBase(),this._exportController=this.getController("export"),this._editingController=this.getController("editing"),this._editingController.editingChanged.add(function(t){e.setToolbarItemDisabled("exportButton",t)})},isVisible:function(){return this.callBase()||this._isExportButtonVisible()}}}}})},"5yfJ":function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a});var i=n("HDdC"),r=n("KqfI"),o=new i.a(r.a);function a(){return o}},"6+QB":function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("wd/R"))},"630O":function(e,t,n){"use strict";n.d(t,"a",function(){return g});var i=n("c7TG"),r=n("ptfe"),o=n("aiMf"),a=n("2bZG"),s=n("OC8m"),c=n("fXoL"),u=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},l=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]").addClass(s).appendTo(n)),c}}},"6F5R":function(e,t,n){"use strict";var i=g(n("FKN7")),r=g(n("D6VQ")),o=g(n("KAnu")),a=g(n("ti0F")),s=n("zl3R"),c=n("1LL4"),u=n("ccQb"),l=g(n("uHaw")),d=g(n("zBVi")),h=n("BWGd"),f=g(h),p=g(n("+6qP"));function g(e){return e&&e.__esModule?e:{default:e}}n("oVzw"),n("NbX6"),n("C7sP"),n("rwQK"),n("3+zk"),n("PcbC"),n("uN9D"),n("pP7y"),n("4Ip1"),f.default.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","grouping","editing","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);var m=d.default.inherit({_activeStateUnit:".dx-row",_getDefaultOptions:function(){var e=this.callBase();return(0,s.each)(f.default.modules,function(){a.default.isFunction(this.defaultOptions)&&(0,c.extend)(!0,e,this.defaultOptions())}),e},_setDeprecatedOptions:function(){this.callBase(),(0,c.extend)(this._deprecatedOptions,{useKeyboard:{since:"19.2",alias:"keyboardNavigation.enabled"}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{showRowLines:!0}},{device:function(){return p.default.isMaterial()},options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0}}},{device:function(){return l.default.webkit},options:{loadingTimeout:30,loadPanel:{animation:{show:{easing:"cubic-bezier(1, 0, 1, 0)",duration:500,from:{opacity:0},to:{opacity:1}}}}}},{device:function(e){return"desktop"!==e.deviceType},options:{grouping:{expandMode:"rowClick"}}}])},_init:function(){var e=this;e.callBase(),f.default.processModules(e,f.default),(0,h.callModuleItemsMethod)(e,"init")},_clean:o.default.noop,_optionChanged:function(e){(0,h.callModuleItemsMethod)(this,"optionChanged",[e]),e.handled||this.callBase(e)},_dimensionChanged:function(){this.updateDimensions(!0)},_visibilityChanged:function(e){e&&this.updateDimensions()},_initMarkup:function(){this.callBase.apply(this,arguments),this.getView("gridView").render(this.$element())},_renderContentImpl:function(){this.getView("gridView").update()},_renderContent:function(){var e=this;o.default.deferRender(function(){e._renderContentImpl()})},_getTemplate:function(e){var t=e;return a.default.isString(t)&&"#"===t[0]&&(t=(0,i.default)(e),u.logger.warn("Specifying grid templates with the jQuery selector name is now deprecated. Use the DOM Node or the jQuery object that references this selector instead.")),this.callBase(t)},_dispose:function(){this.callBase(),(0,h.callModuleItemsMethod)(this,"dispose")},isReady:function(){return this.getController("data").isReady()},beginUpdate:function(){this.callBase(),(0,h.callModuleItemsMethod)(this,"beginUpdate")},endUpdate:function(){(0,h.callModuleItemsMethod)(this,"endUpdate"),this.callBase()},getController:function(e){return this._controllers[e]},getView:function(e){return this._views[e]},focus:function(e){this.getController("keyboardNavigation").focus(e)}});m.registerModule=f.default.registerModule.bind(f.default),(0,r.default)("dxDataGrid",m),e.exports=m},"6JCj":function(e,t,n){"use strict";var i=n("JyGs"),r=n("FKN7"),o=n("imRD"),a=n("1LL4").extend,s=n("+12O").DataSource,c=n("tJvG"),u=n("uhpr");function l(e){var t=function(e,t){return t?t+"/"+e:e},n=function e(n,i){var r=[];return n.forEach(function(n){if(n.items){var o=e(n.items,t(n.text,i));r=r.concat(o)}n.selected&&r.push(t(n.text,i))}),r},o=e&&e.getController("headerFilter");return{dataTypes:["string","date","datetime","number","boolean","object"],calculateFilterExpression:function(e,t,n){var i=[],r=e.length-1;return e&&e.forEach(function(e,o){if(u.isCondition(e)||u.isGroup(e)){var a=u.getFilterExpression(e,n,[],"headerFilter");i.push(a)}else i.push(u.getFilterExpression([t.dataField,"=",e],n,[],"headerFilter"));o!==r&&i.push("or")}),1===i.length&&(i=i[0]),i},editorTemplate:function(t,n){var s=r("
").addClass("dx-filterbuilder-item-value-text").appendTo(n),c=a(!0,{},e.columnOption(t.field.dataField));return(0,i.renderValueText)(s,t.text&&t.text.split("|")),c.filterType="include",c.filterValues=t.value?t.value.slice():[],o.showHeaderFilterMenuBase({columnElement:s,column:c,apply:function(){t.setValue(this.filterValues),o.hideHeaderFilterMenu(),t.closeEditor()},onHidden:function(){t.closeEditor()},isFilterBuilder:!0}),n},customizeText:function(t){var i=t.value,r=e.columnOption(t.field.dataField),u=r&&r.headerFilter,l=r&&r.lookup;if(u&&u.dataSource||l&&l.dataSource){r=a({},r,{filterType:"include",filterValues:[i]});var d=o.getDataSource(r);d.paginate=!1;var h=new s(d),f=new c.Deferred,p=h.store().key();return p&&h.filter([p,"=",t.value]),h.load().done(function(e){f.resolve(n(e)[0])}),f}return o.getHeaderItemText(i,r,0,e.option("headerFilter"))}}}t.anyOf=function(e){return a(l(e),{name:"anyof",icon:"selectall",caption:o.format("dxFilterBuilder-filterOperationAnyOf")})},t.noneOf=function(e){var t=l(e);return a({},t,{calculateFilterExpression:function(e,n,i){var r=t.calculateFilterExpression(e,n,i);return r&&0!==r.length?"!"===r[0]?r:["!",r]:null},name:"noneof",icon:"unselectall",caption:o.format("dxFilterBuilder-filterOperationNoneOf")})}},"6Joi":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=(i=n("wj3C"))&&"object"==typeof i&&"default"in i?i.default:i,o=n("mrSG"),a=n("q/0M"),s=n("zVF4"),c=n("S+S0"),u=n("x7I3"),l=r.SDK_VERSION,d=new a.Logger("@firebase/firestore"),h=function(e){return e[e.DEBUG=0]="DEBUG",e[e.ERROR=1]="ERROR",e[e.SILENT=2]="SILENT",e}({});function f(){return d.logLevel===a.LogLevel.DEBUG?h.DEBUG:d.logLevel===a.LogLevel.SILENT?h.SILENT:h.ERROR}function p(e){switch(e){case h.DEBUG:d.logLevel=a.LogLevel.DEBUG;break;case h.ERROR:d.logLevel=a.LogLevel.ERROR;break;case h.SILENT:d.logLevel=a.LogLevel.SILENT;break;default:d.error("Firestore ("+l+"): Invalid value passed to `setLogLevel`")}}function g(e,t){for(var n=[],i=2;ii)throw new O(C.INVALID_ARGUMENT,"Function "+e+"() requires between "+n+" and "+i+" arguments, but was called with "+K(t.length,"argument")+".")}function L(e,t,n,i){if(!(t instanceof Array)||t.length20&&(e=e.substring(0,20)+"..."),JSON.stringify(e);if("number"==typeof e||"boolean"==typeof e)return""+e;if("object"==typeof e){if(e instanceof Array)return"an array";var t=function(e){if(e.constructor){var t=/function\s+([^\s(]+)\s*\(/.exec(e.constructor.toString());if(t&&t.length>1)return t[1]}return null}(e);return t?"a custom "+t+" object":"an object"}return"function"==typeof e?"a function":_("Unknown wrong type: "+typeof e)}function z(e,t,n){if(void 0===n)throw new O(C.INVALID_ARGUMENT,"Function "+e+"() requires a valid "+q(t)+" argument, but it was undefined.")}function W(e,t,n){E(t,function(t,i){if(n.indexOf(t)<0)throw new O(C.INVALID_ARGUMENT,"Unknown option '"+t+"' passed to function "+e+"(). Available options: "+n.join(", "))})}function Y(e,t,n,i){var r=U(i);return new O(C.INVALID_ARGUMENT,"Function "+e+"() requires its "+q(n)+" argument to be a "+t+", but it was: "+r)}function G(e,t,n){if(n<=0)throw new O(C.INVALID_ARGUMENT,'Function "'+e+'()" requires its '+q(t)+" argument to be a positive number, but it was: "+n+".")}function q(e){switch(e){case 1:return"first";case 2:return"second";case 3:return"third";default:return e+"th"}}function K(e,t){return e+" "+t+(1===e?"":"s")}var X=function(){function e(){}return e.newId=function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t="",n=0;n<20;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return y(20===t.length,"Invalid auto ID: "+t),t},e}();function J(e,t){return et?1:0}function Q(e,t){if(e.length!==t.length)return!1;for(var n=0;ne.length&&_("offset "+t+" out of range "+e.length),void 0===n?n=e.length-t:n>e.length-t&&_("length "+n+" out of range "+(e.length-t)),this.segments=e,this.offset=t,this.len=n}return Object.defineProperty(e.prototype,"length",{get:function(){return this.len},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){return 0===e.comparator(this,t)},e.prototype.child=function(t){var n=this.segments.slice(this.offset,this.limit());return t instanceof e?t.forEach(function(e){n.push(e)}):n.push(t),this.construct(n)},e.prototype.limit=function(){return this.offset+this.length},e.prototype.popFirst=function(e){return y(this.length>=(e=void 0===e?1:e),"Can't call popFirst() with less segments"),this.construct(this.segments,this.offset+e,this.length-e)},e.prototype.popLast=function(){return y(!this.isEmpty(),"Can't call popLast() on empty path"),this.construct(this.segments,this.offset,this.length-1)},e.prototype.firstSegment=function(){return y(!this.isEmpty(),"Can't call firstSegment() on empty path"),this.segments[this.offset]},e.prototype.lastSegment=function(){return this.get(this.length-1)},e.prototype.get=function(e){return y(eo)return 1}return e.lengtht.length?1:0},e}(),le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.construct=function(e,n,i){return new t(e,n,i)},t.prototype.canonicalString=function(){return this.toArray().join("/")},t.prototype.toString=function(){return this.canonicalString()},t.fromString=function(e){if(e.indexOf("//")>=0)throw new O(C.INVALID_ARGUMENT,"Invalid path ("+e+"). Paths must not contain // in them.");return new t(e.split("/").filter(function(e){return e.length>0}))},t.EMPTY_PATH=new t([]),t}(ue),de=/^[_a-zA-Z][_a-zA-Z0-9]*$/,he=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.construct=function(e,n,i){return new t(e,n,i)},t.isValidIdentifier=function(e){return de.test(e)},t.prototype.canonicalString=function(){return this.toArray().map(function(e){return e=e.replace("\\","\\\\").replace("`","\\`"),t.isValidIdentifier(e)||(e="`"+e+"`"),e}).join(".")},t.prototype.toString=function(){return this.canonicalString()},t.prototype.isKeyField=function(){return 1===this.length&&this.get(0)===ce},t.keyField=function(){return new t([ce])},t.fromServerFormat=function(e){for(var n=[],i="",r=0,o=function(){if(0===i.length)throw new O(C.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(i),i=""},a=!1;r=2&&this.path.get(this.path.length-2)===e},e.prototype.isEqual=function(e){return null!==e&&0===le.comparator(this.path,e.path)},e.prototype.toString=function(){return this.path.toString()},e.comparator=function(e,t){return le.comparator(e.path,t.path)},e.isDocumentKey=function(e){return e.length%2==0},e.fromSegments=function(t){return new e(new le(t.slice()))},e.fromPathString=function(t){return new e(le.fromString(t))},e.EMPTY=new e(new le([])),e}(),pe=function(){return function(){var e=this;this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})}}(),ge=function(e){return e.All="all",e.ListenStreamIdle="listen_stream_idle",e.ListenStreamConnectionBackoff="listen_stream_connection_backoff",e.WriteStreamIdle="write_stream_idle",e.WriteStreamConnectionBackoff="write_stream_connection_backoff",e.OnlineStateTimeout="online_state_timeout",e.ClientMetadataRefresh="client_metadata_refresh",e.LruGarbageCollection="lru_garbage_collection",e.RetryTransaction="retry_transaction",e}({}),me=function(){function e(e,t,n,i,r){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=n,this.op=i,this.removalCallback=r,this.deferred=new pe,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.catch=this.deferred.promise.catch.bind(this.deferred.promise),this.deferred.promise.catch(function(e){})}return e.createAndSchedule=function(t,n,i,r,o){var a=new e(t,n,Date.now()+i,r,o);return a.start(i),a},e.prototype.start=function(e){var t=this;this.timerHandle=setTimeout(function(){return t.handleDelayElapsed()},e)},e.prototype.skipDelay=function(){return this.handleDelayElapsed()},e.prototype.cancel=function(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new O(C.CANCELLED,"Operation cancelled"+(e?": "+e:""))))},e.prototype.handleDelayElapsed=function(){var e=this;this.asyncQueue.enqueueAndForget(function(){return null!==e.timerHandle?(e.clearTimeout(),e.op().then(function(t){return e.deferred.resolve(t)})):Promise.resolve()})},e.prototype.clearTimeout=function(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)},e}(),ve=function(){function e(){this.tail=Promise.resolve(),this._isShuttingDown=!1,this.delayedOperations=[],this.failure=null,this.operationInProgress=!1,this.timerIdsToSkip=[]}return Object.defineProperty(e.prototype,"isShuttingDown",{get:function(){return this._isShuttingDown},enumerable:!0,configurable:!0}),e.prototype.enqueueAndForget=function(e){this.enqueue(e)},e.prototype.enqueueAndForgetEvenAfterShutdown=function(e){this.verifyNotFailed(),this.enqueueInternal(e)},e.prototype.enqueueEvenAfterShutdown=function(e){return this.verifyNotFailed(),this.enqueueInternal(e)},e.prototype.enqueueAndInitiateShutdown=function(e){return o.__awaiter(this,void 0,void 0,function(){return o.__generator(this,function(t){switch(t.label){case 0:return this.verifyNotFailed(),this._isShuttingDown?[3,2]:(this._isShuttingDown=!0,[4,this.enqueueEvenAfterShutdown(e)]);case 1:t.sent(),t.label=2;case 2:return[2]}})})},e.prototype.enqueue=function(e){return this.verifyNotFailed(),this._isShuttingDown?new Promise(function(e){}):this.enqueueInternal(e)},e.prototype.enqueueInternal=function(e){var t=this,n=this.tail.then(function(){return t.operationInProgress=!0,e().catch(function(e){t.failure=e,t.operationInProgress=!1;var n=e.stack||e.message||"";throw m("INTERNAL UNHANDLED ERROR: ",n),n.indexOf("Firestore Test Simulated Error")<0&&setTimeout(function(){throw e},0),e}).then(function(e){return t.operationInProgress=!1,e})});return this.tail=n,n},e.prototype.enqueueAfterDelay=function(e,t,n){var i=this;this.verifyNotFailed(),y(t>=0,"Attempted to schedule an operation with a negative delay of "+t),this.timerIdsToSkip.indexOf(e)>-1&&(t=0);var r=me.createAndSchedule(this,e,t,n,function(e){return i.removeDelayedOperation(e)});return this.delayedOperations.push(r),r},e.prototype.verifyNotFailed=function(){this.failure&&_("AsyncQueue is already failed: "+(this.failure.stack||this.failure.message))},e.prototype.verifyOperationInProgress=function(){y(this.operationInProgress,"verifyOpInProgress() called when no op in progress on this queue.")},e.prototype.drain=function(){return this.enqueueEvenAfterShutdown(function(){return Promise.resolve()})},e.prototype.containsDelayedOperation=function(e){for(var t=0,n=this.delayedOperations;t=0,"Delayed operation not found."),this.delayedOperations.splice(t,1)},e}(),_e="\x01";function ye(e){for(var t="",n=0;n0&&(t=we(t)),t=be(e.get(n),t);return we(t)}function be(e,t){for(var n=t,i=e.length,r=0;r=2,"Invalid path "+e),2===t)return y(e.charAt(0)===_e&&"\x01"===e.charAt(1),"Non-empty path "+e+" had length 2"),le.EMPTY_PATH;for(var n=t-2,i=[],r="",o=0;on)&&_('Invalid encoded resource path: "'+e+'"'),e.charAt(a+1)){case"\x01":var s=e.substring(o,a),c=void 0;0===r.length?c=s:(c=r+=s,r=""),i.push(c);break;case"\x10":r+=e.substring(o,a),r+="\0";break;case"\x11":r+=e.substring(o,a+1);break;default:_('Invalid encoded resource path: "'+e+'"')}o=a+2}return new le(i)}var Oe=function(){function e(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new O(C.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new O(C.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-62135596800)throw new O(C.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new O(C.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}return e.now=function(){return e.fromMillis(Date.now())},e.fromDate=function(t){return e.fromMillis(t.getTime())},e.fromMillis=function(t){var n=Math.floor(t/1e3);return new e(n,1e6*(t-1e3*n))},e.prototype.toDate=function(){return new Date(this.toMillis())},e.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},e.prototype._compareTo=function(e){return this.seconds===e.seconds?J(this.nanoseconds,e.nanoseconds):J(this.seconds,e.seconds)},e.prototype.isEqual=function(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds},e.prototype.toString=function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"},e}(),Se=function(){function e(e){this.timestamp=e}return e.fromMicroseconds=function(t){var n=Math.floor(t/1e6);return new e(new Oe(n,t%1e6*1e3))},e.fromTimestamp=function(t){return new e(t)},e.forDeletedDoc=function(){return e.MIN},e.prototype.compareTo=function(e){return this.timestamp._compareTo(e.timestamp)},e.prototype.isEqual=function(e){return this.timestamp.isEqual(e.timestamp)},e.prototype.toMicroseconds=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},e.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},e.prototype.toTimestamp=function(){return this.timestamp},e.MIN=new e(new Oe(0,0)),e}(),ke=function(){function e(e,t){this.comparator=e,this.root=t||Te.EMPTY}return e.prototype.insert=function(t,n){return new e(this.comparator,this.root.insert(t,n,this.comparator).copy(null,null,Te.BLACK,null,null))},e.prototype.remove=function(t){return new e(this.comparator,this.root.remove(t,this.comparator).copy(null,null,Te.BLACK,null,null))},e.prototype.get=function(e){for(var t=this.root;!t.isEmpty();){var n=this.comparator(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null},e.prototype.indexOf=function(e){for(var t=0,n=this.root;!n.isEmpty();){var i=this.comparator(e,n.key);if(0===i)return t+n.left.size;i<0?n=n.left:(t+=n.left.size+1,n=n.right)}return-1},e.prototype.isEmpty=function(){return this.root.isEmpty()},Object.defineProperty(e.prototype,"size",{get:function(){return this.root.size},enumerable:!0,configurable:!0}),e.prototype.minKey=function(){return this.root.minKey()},e.prototype.maxKey=function(){return this.root.maxKey()},e.prototype.inorderTraversal=function(e){return this.root.inorderTraversal(e)},e.prototype.forEach=function(e){this.inorderTraversal(function(t,n){return e(t,n),!1})},e.prototype.toString=function(){var e=[];return this.inorderTraversal(function(t,n){return e.push(t+":"+n),!1}),"{"+e.join(", ")+"}"},e.prototype.reverseTraversal=function(e){return this.root.reverseTraversal(e)},e.prototype.getIterator=function(){return new xe(this.root,null,this.comparator,!1)},e.prototype.getIteratorFrom=function(e){return new xe(this.root,e,this.comparator,!1)},e.prototype.getReverseIterator=function(){return new xe(this.root,null,this.comparator,!0)},e.prototype.getReverseIteratorFrom=function(e){return new xe(this.root,e,this.comparator,!0)},e}(),xe=function(){function e(e,t,n,i){this.isReverse=i,this.nodeStack=[];for(var r=1;!e.isEmpty();)if(r=t?n(e.key,t):1,i&&(r*=-1),r<0)e=this.isReverse?e.left:e.right;else{if(0===r){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}return e.prototype.getNext=function(){y(this.nodeStack.length>0,"getNext() called on iterator when hasNext() is false.");var e=this.nodeStack.pop(),t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t},e.prototype.hasNext=function(){return this.nodeStack.length>0},e.prototype.peek=function(){if(0===this.nodeStack.length)return null;var e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}},e}(),Te=function(){function e(t,n,i,r,o){this.key=t,this.value=n,this.color=null!=i?i:e.RED,this.left=null!=r?r:e.EMPTY,this.right=null!=o?o:e.EMPTY,this.size=this.left.size+1+this.right.size}return e.prototype.copy=function(t,n,i,r,o){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=i?i:this.color,null!=r?r:this.left,null!=o?o:this.right)},e.prototype.isEmpty=function(){return!1},e.prototype.inorderTraversal=function(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)},e.prototype.min=function(){return this.left.isEmpty()?this:this.left.min()},e.prototype.minKey=function(){return this.min().key},e.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},e.prototype.insert=function(e,t,n){var i=this,r=n(e,i.key);return(i=r<0?i.copy(null,null,null,i.left.insert(e,t,n),null):0===r?i.copy(null,t,null,null,null):i.copy(null,null,null,null,i.right.insert(e,t,n))).fixUp()},e.prototype.removeMin=function(){if(this.left.isEmpty())return e.EMPTY;var t=this;return t.left.isRed()||t.left.left.isRed()||(t=t.moveRedLeft()),(t=t.copy(null,null,null,t.left.removeMin(),null)).fixUp()},e.prototype.remove=function(t,n){var i,r=this;if(n(t,r.key)<0)r.left.isEmpty()||r.left.isRed()||r.left.left.isRed()||(r=r.moveRedLeft()),r=r.copy(null,null,null,r.left.remove(t,n),null);else{if(r.left.isRed()&&(r=r.rotateRight()),r.right.isEmpty()||r.right.isRed()||r.right.left.isRed()||(r=r.moveRedRight()),0===n(t,r.key)){if(r.right.isEmpty())return e.EMPTY;i=r.right.min(),r=r.copy(i.key,i.value,null,null,r.right.removeMin())}r=r.copy(null,null,null,null,r.right.remove(t,n))}return r.fixUp()},e.prototype.isRed=function(){return this.color},e.prototype.fixUp=function(){var e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e},e.prototype.moveRedLeft=function(){var e=this.colorFlip();return e.right.left.isRed()&&(e=(e=(e=e.copy(null,null,null,null,e.right.rotateRight())).rotateLeft()).colorFlip()),e},e.prototype.moveRedRight=function(){var e=this.colorFlip();return e.left.left.isRed()&&(e=(e=e.rotateRight()).colorFlip()),e},e.prototype.rotateLeft=function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)},e.prototype.rotateRight=function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)},e.prototype.colorFlip=function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)},e.prototype.checkMaxDepth=function(){var e=this.check();return Math.pow(2,e)<=this.size+1},e.prototype.check=function(){if(this.isRed()&&this.left.isRed())throw _("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed())throw _("Right child of ("+this.key+","+this.value+") is red");var e=this.left.check();if(e!==this.right.check())throw _("Black depths differ");return e+(this.isRed()?0:1)},e.EMPTY=null,e.RED=!0,e.BLACK=!1,e}(),Ee=function(){function e(){this.size=0}return Object.defineProperty(e.prototype,"key",{get:function(){throw _("LLRBEmptyNode has no key.")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){throw _("LLRBEmptyNode has no value.")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){throw _("LLRBEmptyNode has no color.")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){throw _("LLRBEmptyNode has no left child.")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){throw _("LLRBEmptyNode has no right child.")},enumerable:!0,configurable:!0}),e.prototype.copy=function(e,t,n,i,r){return this},e.prototype.insert=function(e,t,n){return new Te(e,t)},e.prototype.remove=function(e,t){return this},e.prototype.isEmpty=function(){return!0},e.prototype.inorderTraversal=function(e){return!1},e.prototype.reverseTraversal=function(e){return!1},e.prototype.minKey=function(){return null},e.prototype.maxKey=function(){return null},e.prototype.isRed=function(){return!1},e.prototype.checkMaxDepth=function(){return!0},e.prototype.check=function(){return 0},e}();Te.EMPTY=new Ee;var Ie=function(){function e(e){this.comparator=e,this.data=new ke(this.comparator)}return e.fromMapKeys=function(t){var n=new e(t.comparator);return t.forEach(function(e){n=n.add(e)}),n},e.prototype.has=function(e){return null!==this.data.get(e)},e.prototype.first=function(){return this.data.minKey()},e.prototype.last=function(){return this.data.maxKey()},Object.defineProperty(e.prototype,"size",{get:function(){return this.data.size},enumerable:!0,configurable:!0}),e.prototype.indexOf=function(e){return this.data.indexOf(e)},e.prototype.forEach=function(e){this.data.inorderTraversal(function(t,n){return e(t),!1})},e.prototype.forEachInRange=function(e,t){for(var n=this.data.getIteratorFrom(e[0]);n.hasNext();){var i=n.getNext();if(this.comparator(i.key,e[1])>=0)return;t(i.key)}},e.prototype.forEachWhile=function(e,t){var n;for(n=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();n.hasNext();)if(!e(n.getNext().key))return},e.prototype.firstAfterOrEqual=function(e){var t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null},e.prototype.getIterator=function(){return new De(this.data.getIterator())},e.prototype.getIteratorFrom=function(e){return new De(this.data.getIteratorFrom(e))},e.prototype.add=function(e){return this.copy(this.data.remove(e).insert(e,!0))},e.prototype.delete=function(e){return this.has(e)?this.copy(this.data.remove(e)):this},e.prototype.isEmpty=function(){return this.data.isEmpty()},e.prototype.unionWith=function(e){var t=this;return e.forEach(function(e){t=t.add(e)}),t},e.prototype.isEqual=function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.data.getIterator(),i=t.data.getIterator();n.hasNext();){var r=n.getNext().key,o=i.getNext().key;if(0!==this.comparator(r,o))return!1}return!0},e.prototype.toArray=function(){var e=[];return this.forEach(function(t){e.push(t)}),e},e.prototype.toString=function(){var e=[];return this.forEach(function(t){return e.push(t)}),"SortedSet("+e.toString()+")"},e.prototype.copy=function(t){var n=new e(this.comparator);return n.data=t,n},e}(),De=function(){function e(e){this.iter=e}return e.prototype.getNext=function(){return this.iter.getNext().key},e.prototype.hasNext=function(){return this.iter.hasNext()},e}(),Me=new ke(fe.comparator);function Ae(){return Me}function Pe(){return Ae()}var Le=new ke(fe.comparator);function Re(){return Le}var je=new ke(fe.comparator);function Ne(){return je}var Fe=new Ie(fe.comparator);function Be(){for(var e=[],t=0;t0,"Cannot create an empty mutation batch")}return e.prototype.applyToRemoteDocument=function(e,t,n){t&&y(t.key.isEqual(e),"applyToRemoteDocument: key "+e+" should match maybeDoc key\n "+t.key);var i=n.mutationResults;y(i.length===this.mutations.length,"Mismatch between mutations length\n ("+this.mutations.length+") and mutation results length\n ("+i.length+").");for(var r=0;r0||t.indexOf("Trident/")>0||t.indexOf("Edge/")>0||i||o)},e.isMockPersistence=function(){var e;return"undefined"!=typeof process&&"YES"===(null===(e=process.env)||void 0===e?void 0:e.USE_MOCK_PERSISTENCE)},e.getStore=function(e,t){return e.store(t)},e.getIOSVersion=function(e){var t=e.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=t?t[1].split("_").slice(0,2).join("."):"-1";return Number(n)},e.getAndroidVersion=function(e){var t=e.match(/Android ([\d.]+)/i),n=t?t[1].split(".").slice(0,2).join("."):"-1";return Number(n)},e.prototype.setVersionChangeListener=function(e){this.db.onversionchange=function(t){return e(t)}},e.prototype.runTransaction=function(e,t,n){return o.__awaiter(this,void 0,void 0,function(){var i,r,a,s,c,u;return o.__generator(this,function(l){switch(l.label){case 0:i=e.startsWith("readonly"),r=e.endsWith("idempotent"),a=0,s=function(){var e,s,u,l;return o.__generator(this,function(o){switch(o.label){case 0:++a,e=Ke.open(c.db,i?"readonly":"readwrite",t),o.label=1;case 1:return o.trys.push([1,3,,4]),(s=n(e).catch(function(t){return e.abort(t),We.reject(t)}).toPromise()).catch(function(){}),[4,e.completionPromise];case 2:return o.sent(),[2,{value:s}];case 3:return u=o.sent(),g(Ye,"Transaction failed with error: %s. Retrying: %s.",u.message,l=r&&"FirebaseError"!==u.name&&a<3),l?[3,4]:[2,{value:Promise.reject(u)}];case 4:return[2]}})},c=this,l.label=1;case 1:return[5,s()];case 2:return"object"==typeof(u=l.sent())?[2,u.value]:[3,1];case 3:return[2]}})})},e.prototype.close=function(){this.db.close()},e}(),qe=function(){function e(e){this.dbCursor=e,this.shouldStop=!1,this.nextKey=null}return Object.defineProperty(e.prototype,"isDone",{get:function(){return this.shouldStop},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"skipToKey",{get:function(){return this.nextKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursor",{set:function(e){this.dbCursor=e},enumerable:!0,configurable:!0}),e.prototype.done=function(){this.shouldStop=!0},e.prototype.skip=function(e){this.nextKey=e},e.prototype.delete=function(){return Je(this.dbCursor.delete())},e}(),Ke=function(){function e(e){var t=this;this.transaction=e,this.aborted=!1,this.completionDeferred=new pe,this.transaction.oncomplete=function(){t.completionDeferred.resolve()},this.transaction.onabort=function(){e.error?t.completionDeferred.reject(e.error):t.completionDeferred.resolve()},this.transaction.onerror=function(e){var n=Ze(e.target.error);t.completionDeferred.reject(n)}}return e.open=function(t,n,i){return new e(t.transaction(i,n))},Object.defineProperty(e.prototype,"completionPromise",{get:function(){return this.completionDeferred.promise},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){e&&this.completionDeferred.reject(e),this.aborted||(g(Ye,"Aborting transaction:",e?e.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())},e.prototype.store=function(e){var t=this.transaction.objectStore(e);return y(!!t,"Object store not part of transaction: "+e),new Xe(t)},e}(),Xe=function(){function e(e){this.store=e}return e.prototype.put=function(e,t){var n;return void 0!==t?(g(Ye,"PUT",this.store.name,e,t),n=this.store.put(t,e)):(g(Ye,"PUT",this.store.name,"",e),n=this.store.put(e)),Je(n)},e.prototype.add=function(e){return g(Ye,"ADD",this.store.name,e,e),Je(this.store.add(e))},e.prototype.get=function(e){var t=this;return Je(this.store.get(e)).next(function(n){return void 0===n&&(n=null),g(Ye,"GET",t.store.name,e,n),n})},e.prototype.delete=function(e){return g(Ye,"DELETE",this.store.name,e),Je(this.store.delete(e))},e.prototype.count=function(){return g(Ye,"COUNT",this.store.name),Je(this.store.count())},e.prototype.loadAll=function(e,t){var n=this.cursor(this.options(e,t)),i=[];return this.iterateCursor(n,function(e,t){i.push(t)}).next(function(){return i})},e.prototype.deleteAll=function(e,t){g(Ye,"DELETE ALL",this.store.name);var n=this.options(e,t);n.keysOnly=!1;var i=this.cursor(n);return this.iterateCursor(i,function(e,t,n){return n.delete()})},e.prototype.iterate=function(e,t){var n;t?n=e:(n={},t=e);var i=this.cursor(n);return this.iterateCursor(i,t)},e.prototype.iterateSerial=function(e){var t=this.cursor({});return new We(function(n,i){t.onerror=function(e){var t=Ze(e.target.error);i(t)},t.onsuccess=function(t){var i=t.target.result;i?e(i.primaryKey,i.value).next(function(e){e?i.continue():n()}):n()}})},e.prototype.iterateCursor=function(e,t){var n=[];return new We(function(i,r){e.onerror=function(e){r(e.target.error)},e.onsuccess=function(e){var r=e.target.result;if(r){var o=new qe(r),a=t(r.primaryKey,r.value,o);if(a instanceof We){var s=a.catch(function(e){return o.done(),We.reject(e)});n.push(s)}o.isDone?i():null===o.skipToKey?r.continue():r.continue(o.skipToKey)}else i()}}).next(function(){return We.waitFor(n)})},e.prototype.options=function(e,t){var n=void 0;return void 0!==e&&("string"==typeof e?n=e:(y(void 0===t,"3rd argument must not be defined if 2nd is a range."),t=e)),{index:n,range:t}},e.prototype.cursor=function(e){var t="next";if(e.reverse&&(t="prev"),e.index){var n=this.store.index(e.index);return e.keysOnly?n.openKeyCursor(e.range,t):n.openCursor(e.range,t)}return this.store.openCursor(e.range,t)},e}();function Je(e){return new We(function(t,n){e.onsuccess=function(e){t(e.target.result)},e.onerror=function(e){var t=Ze(e.target.error);n(t)}})}var Qe=!1;function Ze(e){var t=Ge.getIOSVersion(s.getUA());if(t>=12.2&&t<13){var n="An internal error was encountered in the Indexed Database server";if(e.message.indexOf(n)>=0){var i=new O("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '"+n+"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.");return Qe||(Qe=!0,setTimeout(function(){throw i},0)),i}}return e}var et=function(){function e(e,t,n,i){this.userId=e,this.serializer=t,this.indexManager=n,this.referenceDelegate=i,this.documentKeysByBatchId={}}return e.forUser=function(t,n,i,r){return y(""!==t.uid,"UserID must not be an empty string."),new e(t.isAuthenticated()?t.uid:"",n,i,r)},e.prototype.checkEmpty=function(e){var t=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return rt(e).iterate({index:sn.userMutationsIndex,range:n},function(e,n,i){t=!1,i.done()}).next(function(){return t})},e.prototype.acknowledgeBatch=function(e,t,n){return this.getMutationQueueMetadata(e).next(function(t){return t.lastStreamToken=it(n),at(e).put(t)})},e.prototype.getLastStreamToken=function(e){return this.getMutationQueueMetadata(e).next(function(e){return e.lastStreamToken})},e.prototype.setLastStreamToken=function(e,t){return this.getMutationQueueMetadata(e).next(function(n){return n.lastStreamToken=it(t),at(e).put(n)})},e.prototype.addMutationBatch=function(e,t,n,i){var r=this,o=ot(e),a=rt(e);return a.add({}).next(function(s){y("number"==typeof s,"Auto-generated key is not a number");for(var c=new Ue(s,t,n,i),u=r.serializer.toDbMutationBatch(r.userId,c),l=[],d=new Ie(function(e,t){return J(e.canonicalString(),t.canonicalString())}),h=0,f=i;h=i,"Should have found mutation after "+i),o=n.serializer.fromDbMutationBatch(t)),r.done()}).next(function(){return o})},e.prototype.getHighestUnacknowledgedBatchId=function(e){var t=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=He;return rt(e).iterate({index:sn.userMutationsIndex,range:t,reverse:!0},function(e,t,i){n=t.batchId,i.done()}).next(function(){return n})},e.prototype.getAllMutationBatches=function(e){var t=this,n=IDBKeyRange.bound([this.userId,He],[this.userId,Number.POSITIVE_INFINITY]);return rt(e).loadAll(sn.userMutationsIndex,n).next(function(e){return e.map(function(e){return t.serializer.fromDbMutationBatch(e)})})},e.prototype.getAllMutationBatchesAffectingDocumentKey=function(e,t){var n=this,i=cn.prefixForPath(this.userId,t.path),r=IDBKeyRange.lowerBound(i),o=[];return ot(e).iterate({range:r},function(i,r,a){var s=i[0],c=i[2],u=Ce(i[1]);if(s===n.userId&&t.path.isEqual(u))return rt(e).get(c).next(function(e){if(!e)throw _("Dangling document-mutation reference found: "+i+" which points to "+c);y(e.userId===n.userId,"Unexpected user '"+e.userId+"' for mutation batch "+c),o.push(n.serializer.fromDbMutationBatch(e))});a.done()}).next(function(){return o})},e.prototype.getAllMutationBatchesAffectingDocumentKeys=function(e,t){var n=this,i=new Ie(J),r=[];return t.forEach(function(t){var o=cn.prefixForPath(n.userId,t.path),a=IDBKeyRange.lowerBound(o),s=ot(e).iterate({range:a},function(e,r,o){var a=e[0],s=e[2],c=Ce(e[1]);a===n.userId&&t.path.isEqual(c)?i=i.add(s):o.done()});r.push(s)}),We.waitFor(r).next(function(){return n.lookupMutationBatches(e,i)})},e.prototype.getAllMutationBatchesAffectingQuery=function(e,t){var n=this;y(!t.isDocumentQuery(),"Document queries shouldn't go down this path"),y(!t.isCollectionGroupQuery(),"CollectionGroup queries should be handled in LocalDocumentsView");var i=t.path,r=i.length+1,o=cn.prefixForPath(this.userId,i),a=IDBKeyRange.lowerBound(o),s=new Ie(J);return ot(e).iterate({range:a},function(e,t,o){var a=e[0],c=e[2],u=Ce(e[1]);a===n.userId&&i.isPrefixOf(u)?u.length===r&&(s=s.add(c)):o.done()}).next(function(){return n.lookupMutationBatches(e,s)})},e.prototype.lookupMutationBatches=function(e,t){var n=this,i=[],r=[];return t.forEach(function(t){r.push(rt(e).get(t).next(function(e){if(null===e)throw _("Dangling document-mutation reference found, which points to "+t);y(e.userId===n.userId,"Unexpected user '"+e.userId+"' for mutation batch "+t),i.push(n.serializer.fromDbMutationBatch(e))}))}),We.waitFor(r).next(function(){return i})},e.prototype.removeMutationBatch=function(e,t){var n=this;return nt(e.simpleDbTransaction,this.userId,t).next(function(i){return e.addOnCommittedListener(function(){n.removeCachedMutationKeys(t.batchId)}),We.forEach(i,function(t){return n.referenceDelegate.removeMutationReference(e,t)})})},e.prototype.removeCachedMutationKeys=function(e){delete this.documentKeysByBatchId[e]},e.prototype.performConsistencyCheck=function(e){var t=this;return this.checkEmpty(e).next(function(n){if(!n)return We.resolve();var i=IDBKeyRange.lowerBound(cn.prefixForUser(t.userId)),r=[];return ot(e).iterate({range:i},function(e,n,i){if(e[0]===t.userId){var o=Ce(e[1]);r.push(o)}else i.done()}).next(function(){y(0===r.length,"Document leak -- detected dangling mutation references when queue is empty. Dangling keys: "+r.map(function(e){return e.canonicalString()}))})})},e.prototype.containsKey=function(e,t){return tt(e,this.userId,t)},e.prototype.getMutationQueueMetadata=function(e){var t=this;return at(e).get(this.userId).next(function(e){return e||new an(t.userId,He,"")})},e}();function tt(e,t,n){var i=cn.prefixForPath(t,n.path),r=i[1],o=IDBKeyRange.lowerBound(i),a=!1;return ot(e).iterate({range:o,keysOnly:!0},function(e,n,i){e[0]===t&&e[1]===r&&(a=!0),i.done()}).next(function(){return a})}function nt(e,t,n){var i=e.store(sn.store),r=e.store(cn.store),o=[],a=IDBKeyRange.only(n.batchId),s=0,c=i.iterate({range:a},function(e,t,n){return s++,n.delete()});o.push(c.next(function(){y(1===s,"Dangling document-mutation reference found: Missing batch "+n.batchId)}));for(var u=[],l=0,d=n.mutations;lr.highestListenSequenceNumber&&(r.highestListenSequenceNumber=t),i.saveMetadata(e,r)})},e.prototype.addTargetData=function(e,t){var n=this;return this.saveTargetData(e,t).next(function(){return n.retrieveMetadata(e).next(function(i){return i.targetCount+=1,n.updateMetadataFromTargetData(t,i),n.saveMetadata(e,i)})})},e.prototype.updateTargetData=function(e,t){return this.saveTargetData(e,t)},e.prototype.removeTargetData=function(e,t){var n=this;return this.removeMatchingKeysForTargetId(e,t.targetId).next(function(){return lt(e).delete(t.targetId)}).next(function(){return n.retrieveMetadata(e)}).next(function(t){return y(t.targetCount>0,"Removing from an empty target cache"),t.targetCount-=1,n.saveMetadata(e,t)})},e.prototype.removeTargets=function(e,t,n){var i=this,r=0,o=[];return lt(e).iterate(function(a,s){var c=i.serializer.fromDbTarget(s);c.sequenceNumber<=t&&null===n.get(c.targetId)&&(r++,o.push(i.removeTargetData(e,c)))}).next(function(){return We.waitFor(o)}).next(function(){return r})},e.prototype.forEachTarget=function(e,t){var n=this;return lt(e).iterate(function(e,i){var r=n.serializer.fromDbTarget(i);t(r)})},e.prototype.retrieveMetadata=function(e){return dt(e.simpleDbTransaction)},e.prototype.saveMetadata=function(e,t){return(n=e,Vn.getStore(n,gn.store)).put(gn.key,t);var n},e.prototype.saveTargetData=function(e,t){return lt(e).put(this.serializer.toDbTarget(t))},e.prototype.updateMetadataFromTargetData=function(e,t){var n=!1;return e.targetId>t.highestTargetId&&(t.highestTargetId=e.targetId,n=!0),e.sequenceNumber>t.highestListenSequenceNumber&&(t.highestListenSequenceNumber=e.sequenceNumber,n=!0),n},e.prototype.getTargetCount=function(e){return this.retrieveMetadata(e).next(function(e){return e.targetCount})},e.prototype.getTargetData=function(e,t){var n=this,i=t.canonicalId(),r=IDBKeyRange.bound([i,Number.NEGATIVE_INFINITY],[i,Number.POSITIVE_INFINITY]),o=null;return lt(e).iterate({range:r,index:fn.queryTargetsIndexName},function(e,i,r){var a=n.serializer.fromDbTarget(i);t.isEqual(a.target)&&(o=a,r.done())}).next(function(){return o})},e.prototype.addMatchingKeys=function(e,t,n){var i=this,r=[],o=ft(e);return t.forEach(function(t){var a=ye(t.path);r.push(o.put(new pn(n,a))),r.push(i.referenceDelegate.addReference(e,t))}),We.waitFor(r)},e.prototype.removeMatchingKeys=function(e,t,n){var i=this,r=ft(e);return We.forEach(t,function(t){var o=ye(t.path);return We.waitFor([r.delete([n,o]),i.referenceDelegate.removeReference(e,t)])})},e.prototype.removeMatchingKeysForTargetId=function(e,t){var n=ft(e),i=IDBKeyRange.bound([t],[t+1],!1,!0);return n.delete(i)},e.prototype.getMatchingKeysForTargetId=function(e,t){var n=IDBKeyRange.bound([t],[t+1],!1,!0),i=ft(e),r=Be();return i.iterate({range:n,keysOnly:!0},function(e,t,n){var i=Ce(e[1]),o=new fe(i);r=r.add(o)}).next(function(){return r})},e.prototype.containsKey=function(e,t){var n=ye(t.path),i=IDBKeyRange.bound([n],[Z(n)],!1,!0),r=0;return ft(e).iterate({index:pn.documentTargetsIndex,keysOnly:!0,range:i},function(e,t,n){0!==e[0]&&(r++,n.done())}).next(function(){return r>0})},e.prototype.getTargetDataForTarget=function(e,t){var n=this;return lt(e).get(t).next(function(e){return e?n.serializer.fromDbTarget(e):null})},e}();function lt(e){return Vn.getStore(e,fn.store)}function dt(e){return Ge.getStore(e,gn.store).get(gn.key).next(function(e){return y(null!==e,"Missing metadata row."),e})}function ht(e){return dt(e).next(function(e){return e.highestListenSequenceNumber})}function ft(e){return Vn.getStore(e,pn.store)}var pt=function(){function e(e){this.fields=e}return e.fromSet=function(t){return new e(t)},e.fromArray=function(t){var n=new Ie(he.comparator);return t.forEach(function(e){return n=n.add(e)}),new e(n)},e.prototype.covers=function(e){var t=!1;return this.fields.forEach(function(n){n.isPrefixOf(e)&&(t=!0)}),t},e.prototype.isEqual=function(e){return this.fields.isEqual(e.fields)},e}(),gt=function(){function e(e,t){this.field=e,this.transform=t}return e.prototype.isEqual=function(e){return this.field.isEqual(e.field)&&this.transform.isEqual(e.transform)},e}(),mt=function(){return function(e,t){this.version=e,this.transformResults=t}}(),vt=function(e){return e[e.Set=0]="Set",e[e.Patch=1]="Patch",e[e.Transform=2]="Transform",e[e.Delete=3]="Delete",e}({}),_t=function(){function e(e,t){this.updateTime=e,this.exists=t,y(void 0===e||void 0===t,'Precondition can specify "exists" or "updateTime" but not both')}return e.exists=function(t){return new e(void 0,t)},e.updateTime=function(t){return new e(t)},Object.defineProperty(e.prototype,"isNone",{get:function(){return void 0===this.updateTime&&void 0===this.exists},enumerable:!0,configurable:!0}),e.prototype.isValidFor=function(e){return void 0!==this.updateTime?e instanceof Ut&&e.version.isEqual(this.updateTime):void 0!==this.exists?this.exists===e instanceof Ut:(y(this.isNone,"Precondition should be empty"),!0)},e.prototype.isEqual=function(e){return n=e.updateTime,!((null!=(t=this.updateTime)?!n||!t.isEqual(n):t!==n)||this.exists!==e.exists);var t,n},e.NONE=new e,e}(),yt=function(){function e(){}return e.prototype.verifyKeyMatches=function(e){null!=e&&y(e.key.isEqual(this.key),"Can only apply a mutation to a document with the same key")},e.getPostMutationVersion=function(e){return e instanceof Ut?e.version:Se.MIN},e}(),bt=function(e){function t(t,n,i){var r=e.call(this)||this;return r.key=t,r.value=n,r.precondition=i,r.type=vt.Set,r}return o.__extends(t,e),t.prototype.applyToRemoteDocument=function(e,t){return this.verifyKeyMatches(e),y(null==t.transformResults,"Transform results received by SetMutation."),new Ut(this.key,t.version,{hasCommittedMutations:!0},this.value)},t.prototype.applyToLocalView=function(e,t,n){if(this.verifyKeyMatches(e),!this.precondition.isValidFor(e))return e;var i=yt.getPostMutationVersion(e);return new Ut(this.key,i,{hasLocalMutations:!0},this.value)},t.prototype.extractBaseValue=function(e){return null},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.value.isEqual(e.value)&&this.precondition.isEqual(e.precondition)},t}(yt),wt=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o.key=t,o.data=n,o.fieldMask=i,o.precondition=r,o.type=vt.Patch,o}return o.__extends(t,e),t.prototype.applyToRemoteDocument=function(e,t){if(this.verifyKeyMatches(e),y(null==t.transformResults,"Transform results received by PatchMutation."),!this.precondition.isValidFor(e))return new Wt(this.key,t.version);var n=this.patchDocument(e);return new Ut(this.key,t.version,{hasCommittedMutations:!0},n)},t.prototype.applyToLocalView=function(e,t,n){if(this.verifyKeyMatches(e),!this.precondition.isValidFor(e))return e;var i=yt.getPostMutationVersion(e),r=this.patchDocument(e);return new Ut(this.key,i,{hasLocalMutations:!0},r)},t.prototype.extractBaseValue=function(e){return null},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.fieldMask.isEqual(e.fieldMask)&&this.precondition.isEqual(e.precondition)},t.prototype.patchDocument=function(e){var t;return t=e instanceof Ut?e.data():Vt.EMPTY,this.patchObject(t)},t.prototype.patchObject=function(e){var t=this;return this.fieldMask.fields.forEach(function(n){if(!n.isEmpty()){var i=t.data.field(n);e=null!==i?e.set(n,i):e.delete(n)}}),e},t}(yt),Ct=function(e){function t(t,n){var i=e.call(this)||this;return i.key=t,i.fieldTransforms=n,i.type=vt.Transform,i.precondition=_t.exists(!0),i}return o.__extends(t,e),t.prototype.applyToRemoteDocument=function(e,t){if(this.verifyKeyMatches(e),y(null!=t.transformResults,"Transform results missing for TransformMutation."),!this.precondition.isValidFor(e))return new Wt(this.key,t.version);var n=this.requireDocument(e),i=this.serverTransformResults(e,t.transformResults),r=t.version,o=this.transformObject(n.data(),i);return new Ut(this.key,r,{hasCommittedMutations:!0},o)},t.prototype.applyToLocalView=function(e,t,n){if(this.verifyKeyMatches(e),!this.precondition.isValidFor(e))return e;var i=this.requireDocument(e),r=this.localTransformResults(n,e,t),o=this.transformObject(i.data(),r);return new Ut(this.key,i.version,{hasLocalMutations:!0},o)},t.prototype.extractBaseValue=function(e){for(var t=null,n=0,i=this.fieldTransforms;ni?1:n===i?0:isNaN(n)?isNaN(i)?0:-1:1:this.defaultCompareTo(e);var n,i},t}(Tt);function Mt(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}var At=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.isEqual=function(e){return e instanceof t&&Mt(this.internalValue,e.internalValue)},t}(Dt),Pt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.isEqual=function(e){return e instanceof t&&Mt(this.internalValue,e.internalValue)},t.NAN=new t(NaN),t.POSITIVE_INFINITY=new t(1/0),t.NEGATIVE_INFINITY=new t(-1/0),t}(Dt),Lt=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=St.StringValue,n}return o.__extends(t,e),t.prototype.value=function(e){return this.internalValue},t.prototype.isEqual=function(e){return e instanceof t&&this.internalValue===e.internalValue},t.prototype.compareTo=function(e){return e instanceof t?J(this.internalValue,e.internalValue):this.defaultCompareTo(e)},t}(Tt),Rt=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=St.TimestampValue,n}return o.__extends(t,e),t.prototype.value=function(e){return!e||e.timestampsInSnapshots?this.internalValue:this.internalValue.toDate()},t.prototype.isEqual=function(e){return e instanceof t&&this.internalValue.isEqual(e.internalValue)},t.prototype.compareTo=function(e){return e instanceof t?this.internalValue._compareTo(e.internalValue):e instanceof jt?-1:this.defaultCompareTo(e)},t}(Tt),jt=function(e){function t(t,n){var i=e.call(this)||this;return i.localWriteTime=t,i.previousValue=n,i.typeOrder=St.TimestampValue,i}return o.__extends(t,e),t.prototype.value=function(e){return e&&e.serverTimestampBehavior===kt.Estimate?new Rt(this.localWriteTime).value(e):e&&e.serverTimestampBehavior===kt.Previous&&this.previousValue?this.previousValue.value(e):null},t.prototype.isEqual=function(e){return e instanceof t&&this.localWriteTime.isEqual(e.localWriteTime)},t.prototype.compareTo=function(e){return e instanceof t?this.localWriteTime._compareTo(e.localWriteTime):e instanceof Rt?1:this.defaultCompareTo(e)},t.prototype.toString=function(){return""},t}(Tt),Nt=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=St.BlobValue,n}return o.__extends(t,e),t.prototype.value=function(e){return this.internalValue},t.prototype.isEqual=function(e){return e instanceof t&&this.internalValue.isEqual(e.internalValue)},t.prototype.compareTo=function(e){return e instanceof t?this.internalValue._compareTo(e.internalValue):this.defaultCompareTo(e)},t}(Tt),Ft=function(e){function t(t,n){var i=e.call(this)||this;return i.databaseId=t,i.key=n,i.typeOrder=St.RefValue,i}return o.__extends(t,e),t.prototype.value=function(e){return this.key},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.databaseId.isEqual(e.databaseId)},t.prototype.compareTo=function(e){if(e instanceof t){var n=this.databaseId.compareTo(e.databaseId);return 0!==n?n:fe.comparator(this.key,e.key)}return this.defaultCompareTo(e)},t}(Tt),Bt=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=St.GeoPointValue,n}return o.__extends(t,e),t.prototype.value=function(e){return this.internalValue},t.prototype.isEqual=function(e){return e instanceof t&&this.internalValue.isEqual(e.internalValue)},t.prototype.compareTo=function(e){return e instanceof t?this.internalValue._compareTo(e.internalValue):this.defaultCompareTo(e)},t}(Tt),Vt=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=St.ObjectValue,n}return o.__extends(t,e),t.prototype.value=function(e){var t={};return this.internalValue.inorderTraversal(function(n,i){t[n]=i.value(e)}),t},t.prototype.forEach=function(e){this.internalValue.inorderTraversal(e)},t.prototype.isEqual=function(e){if(e instanceof t){for(var n=this.internalValue.getIterator(),i=e.internalValue.getIterator();n.hasNext()&&i.hasNext();){var r=n.getNext(),o=i.getNext();if(r.key!==o.key||!r.value.isEqual(o.value))return!1}return!n.hasNext()&&!i.hasNext()}return!1},t.prototype.compareTo=function(e){if(e instanceof t){for(var n=this.internalValue.getIterator(),i=e.internalValue.getIterator();n.hasNext()&&i.hasNext();){var r=n.getNext(),o=i.getNext(),a=J(r.key,o.key)||r.value.compareTo(o.value);if(a)return a}return J(n.hasNext(),i.hasNext())}return this.defaultCompareTo(e)},t.prototype.set=function(e,n){if(y(!e.isEmpty(),"Cannot set field for empty path on ObjectValue"),1===e.length)return this.setChild(e.firstSegment(),n);var i=this.child(e.firstSegment());i instanceof t||(i=t.EMPTY);var r=i.set(e.popFirst(),n);return this.setChild(e.firstSegment(),r)},t.prototype.delete=function(e){if(y(!e.isEmpty(),"Cannot delete field for empty path on ObjectValue"),1===e.length)return new t(this.internalValue.remove(e.firstSegment()));var n=this.child(e.firstSegment());if(n instanceof t){var i=n.delete(e.popFirst());return new t(this.internalValue.insert(e.firstSegment(),i))}return this},t.prototype.contains=function(e){return null!==this.field(e)},t.prototype.field=function(e){y(!e.isEmpty(),"Can't get field of empty path");var n=this;return e.forEach(function(e){n=n instanceof t?n.internalValue.get(e):null}),n},t.prototype.fieldMask=function(){var e=new Ie(he.comparator);return this.internalValue.forEach(function(n,i){var r=new he([n]);if(i instanceof t){var o=i.fieldMask().fields;o.isEmpty()?e=e.add(r):o.forEach(function(t){e=e.add(r.child(t))})}else e=e.add(r)}),pt.fromSet(e)},t.prototype.toString=function(){return this.internalValue.toString()},t.prototype.child=function(e){return this.internalValue.get(e)||void 0},t.prototype.setChild=function(e,n){return new t(this.internalValue.insert(e,n))},t.EMPTY=new t(new ke(J)),t}(Tt),$t=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=St.ArrayValue,n}return o.__extends(t,e),t.prototype.value=function(e){return this.internalValue.map(function(t){return t.value(e)})},t.prototype.contains=function(e){for(var t=0,n=this.internalValue;t=0&&i<=tn,"Unexpected schema upgrade from v"+n+" to v{toVersion}.");var o=new Ke(t);n<1&&i>=1&&(function(e){e.createObjectStore(on.store)}(e),function(e){e.createObjectStore(an.store,{keyPath:an.keyPath}),e.createObjectStore(sn.store,{keyPath:sn.keyPath,autoIncrement:!0}).createIndex(sn.userMutationsIndex,sn.userMutationsKeyPath,{unique:!0}),e.createObjectStore(cn.store)}(e),vn(e),function(e){e.createObjectStore(dn.store)}(e));var a=We.resolve();return n<3&&i>=3&&(0!==n&&(function(e){e.deleteObjectStore(pn.store),e.deleteObjectStore(fn.store),e.deleteObjectStore(gn.store)}(e),vn(e)),a=a.next(function(){return function(e){var t=e.store(gn.store),n=new gn(0,0,Se.MIN.toTimestamp(),0);return t.put(gn.key,n)}(o)})),n<4&&i>=4&&(0!==n&&(a=a.next(function(){return function(e,t){return t.store(sn.store).loadAll().next(function(n){e.deleteObjectStore(sn.store),e.createObjectStore(sn.store,{keyPath:sn.keyPath,autoIncrement:!0}).createIndex(sn.userMutationsIndex,sn.userMutationsKeyPath,{unique:!0});var i=t.store(sn.store),r=n.map(function(e){return i.put(e)});return We.waitFor(r)})}(e,o)})),a=a.next(function(){!function(e){e.createObjectStore(_n.store,{keyPath:_n.keyPath})}(e)})),n<5&&i>=5&&(a=a.next(function(){return r.removeAcknowledgedMutations(o)})),n<6&&i>=6&&(a=a.next(function(){return function(e){e.createObjectStore(hn.store)}(e),r.addDocumentGlobal(o)})),n<7&&i>=7&&(a=a.next(function(){return r.ensureSequenceNumbers(o)})),n<8&&i>=8&&(a=a.next(function(){return r.createCollectionParentIndex(e,o)})),n<9&&i>=9&&(a=a.next(function(){!function(e){e.objectStoreNames.contains("remoteDocumentChanges")&&e.deleteObjectStore("remoteDocumentChanges")}(e),function(e){var t=e.objectStore(dn.store);t.createIndex(dn.readTimeIndex,dn.readTimeIndexPath,{unique:!1}),t.createIndex(dn.collectionReadTimeIndex,dn.collectionReadTimeIndexPath,{unique:!1})}(t)})),a},e.prototype.addDocumentGlobal=function(e){var t=0;return e.store(dn.store).iterate(function(e,n){t+=Qt(n)}).next(function(){var n=new hn(t);return e.store(hn.store).put(hn.key,n)})},e.prototype.removeAcknowledgedMutations=function(e){var t=this,n=e.store(an.store),i=e.store(sn.store);return n.loadAll().next(function(n){return We.forEach(n,function(n){var r=IDBKeyRange.bound([n.userId,He],[n.userId,n.lastAcknowledgedBatchId]);return i.loadAll(sn.userMutationsIndex,r).next(function(i){return We.forEach(i,function(i){y(i.userId===n.userId,"Cannot process batch "+i.batchId+" from unexpected user");var r=t.serializer.fromDbMutationBatch(i);return nt(e,n.userId,r).next(function(){})})})})})},e.prototype.ensureSequenceNumbers=function(e){var t=e.store(pn.store),n=e.store(dn.store);return ht(e).next(function(e){var i=[];return n.iterate(function(n,r){var o=new le(n),a=function(e){return[0,ye(e)]}(o);i.push(t.get(a).next(function(n){return n?We.resolve():function(n){return t.put(new pn(0,ye(n),e))}(o)}))}).next(function(){return We.waitFor(i)})})},e.prototype.createCollectionParentIndex=function(e,t){e.createObjectStore(mn.store,{keyPath:mn.keyPath});var n=t.store(mn.store),i=new en,r=function(e){if(i.add(e)){var t=e.lastSegment(),r=e.popLast();return n.put({collectionId:t,parent:ye(r)})}};return t.store(dn.store).iterate({keysOnly:!0},function(e,t){var n=new le(e);return r(n.popLast())}).next(function(){return t.store(cn.store).iterate({keysOnly:!0},function(e,t){var n=Ce(e[1]);return r(n.popLast())})})},e}(),rn=function(){return function(e,t){this.seconds=e,this.nanoseconds=t}}(),on=function(){function e(e,t,n){this.ownerId=e,this.allowTabSynchronization=t,this.leaseTimestampMs=n}return e.store="owner",e.key="owner",e}(),an=function(){function e(e,t,n){this.userId=e,this.lastAcknowledgedBatchId=t,this.lastStreamToken=n}return e.store="mutationQueues",e.keyPath="userId",e}(),sn=function(){function e(e,t,n,i,r){this.userId=e,this.batchId=t,this.localWriteTimeMs=n,this.baseMutations=i,this.mutations=r}return e.store="mutations",e.keyPath="batchId",e.userMutationsIndex="userMutationsIndex",e.userMutationsKeyPath=["userId","batchId"],e}(),cn=function(){function e(){}return e.prefixForUser=function(e){return[e]},e.prefixForPath=function(e,t){return[e,ye(t)]},e.key=function(e,t,n){return[e,ye(t),n]},e.store="documentMutations",e.PLACEHOLDER=new e,e}(),un=function(){return function(e,t){this.path=e,this.readTime=t}}(),ln=function(){return function(e,t){this.path=e,this.version=t}}(),dn=function(){function e(e,t,n,i,r,o){this.unknownDocument=e,this.noDocument=t,this.document=n,this.hasCommittedMutations=i,this.readTime=r,this.parentPath=o}return e.store="remoteDocuments",e.readTimeIndex="readTimeIndex",e.readTimeIndexPath="readTime",e.collectionReadTimeIndex="collectionReadTimeIndex",e.collectionReadTimeIndexPath=["parentPath","readTime"],e}(),hn=function(){function e(e){this.byteSize=e}return e.store="remoteDocumentGlobal",e.key="remoteDocumentGlobalKey",e}(),fn=function(){function e(e,t,n,i,r,o,a){this.targetId=e,this.canonicalId=t,this.readTime=n,this.resumeToken=i,this.lastListenSequenceNumber=r,this.lastLimboFreeSnapshotVersion=o,this.query=a}return e.store="targets",e.keyPath="targetId",e.queryTargetsIndexName="queryTargetsIndex",e.queryTargetsKeyPath=["canonicalId","targetId"],e}(),pn=function(){function e(e,t,n){this.targetId=e,this.path=t,this.sequenceNumber=n,y(0===e==(void 0!==n),"A target-document row must either have targetId == 0 and a defined sequence number, or a non-zero targetId and no sequence number")}return e.store="targetDocuments",e.keyPath=["targetId","path"],e.documentTargetsIndex="documentTargetsIndex",e.documentTargetsKeyPath=["path","targetId"],e}(),gn=function(){function e(e,t,n,i){this.highestTargetId=e,this.highestListenSequenceNumber=t,this.lastRemoteSnapshotVersion=n,this.targetCount=i}return e.key="targetGlobalKey",e.store="targetGlobal",e}(),mn=function(){function e(e,t){this.collectionId=e,this.parent=t}return e.store="collectionParents",e.keyPath=["collectionId","parent"],e}();function vn(e){e.createObjectStore(pn.store,{keyPath:pn.keyPath}).createIndex(pn.documentTargetsIndex,pn.documentTargetsKeyPath,{unique:!0}),e.createObjectStore(fn.store,{keyPath:fn.keyPath}).createIndex(fn.queryTargetsIndexName,fn.queryTargetsKeyPath,{unique:!0}),e.createObjectStore(gn.store)}var _n=function(){function e(e,t,n,i){this.clientId=e,this.updateTimeMs=t,this.networkEnabled=n,this.inForeground=i}return e.store="clientMetadata",e.keyPath="clientId",e}(),yn=o.__spreadArrays([an.store,sn.store,cn.store,dn.store,fn.store,on.store,gn.store,pn.store],[_n.store]),bn=o.__spreadArrays(yn,[hn.store]),wn=o.__spreadArrays(bn,[mn.store]),Cn=function(){function e(){this.collectionParentsCache=new en}return e.prototype.addToCollectionParentIndex=function(e,t){var n=this;if(y(t.length%2==1,"Expected a collection path."),!this.collectionParentsCache.has(t)){var i=t.lastSegment(),r=t.popLast();e.addOnCommittedListener(function(){n.collectionParentsCache.add(t)});var o={collectionId:i,parent:ye(r)};return On(e).put(o)}return We.resolve()},e.prototype.getCollectionParents=function(e,t){var n=[],i=IDBKeyRange.bound([t,""],[Z(t),""],!1,!0);return On(e).loadAll(i).next(function(e){for(var i=0,r=e;iu.params.maximumSequenceNumbersToCollect?(g("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+u.params.maximumSequenceNumbersToCollect+" from "+t),i=u.params.maximumSequenceNumbersToCollect):i=t,o=Date.now(),u.nthSequenceNumber(e,i)}).next(function(i){return n=i,a=Date.now(),u.removeTargets(e,n,t)}).next(function(t){return r=t,s=Date.now(),u.removeOrphanedDocuments(e,n)}).next(function(e){return c=Date.now(),f()<=h.DEBUG&&g("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(o-l)+"ms\n\tDetermined least recently used "+i+" in "+(a-o)+"ms\n\tRemoved "+r+" targets in "+(s-a)+"ms\n\tRemoved "+e+" documents in "+(c-s)+"ms\nTotal Duration: "+(c-l)+"ms"),We.resolve({didRun:!0,sequenceNumbersCollected:i,targetsRemoved:r,documentsRemoved:e})})},e}(),Pn=function(){function e(){this.onCommittedListeners=[]}return e.prototype.addOnCommittedListener=function(e){this.onCommittedListeners.push(e)},e.prototype.raiseOnCommittedEvent=function(){this.onCommittedListeners.forEach(function(e){return e()})},e}(),Ln="IndexedDbPersistence",Rn=18e5,jn=5e3,Nn="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",Fn="Another tab has exclusive access to the persistence layer. To allow shared access, make sure to invoke `enablePersistence()` with `synchronizeTabs:true` in all tabs.",Bn=function(e){function t(t,n){var i=e.call(this)||this;return i.simpleDbTransaction=t,i.currentSequenceNumber=n,i}return o.__extends(t,e),t}(Pn),Vn=function(){function e(t,n,i,r,o,a,s,c){if(this.allowTabSynchronization=t,this.persistenceKey=n,this.clientId=i,this.queue=a,this.sequenceNumberSyncer=c,this._started=!1,this.isPrimary=!1,this.networkEnabled=!0,this.windowUnloadHandler=null,this.inForeground=!1,this.documentVisibilityHandler=null,this.clientMetadataRefresher=null,this.lastGarbageCollectionTime=Number.NEGATIVE_INFINITY,this.primaryStateListener=function(e){return Promise.resolve()},this.referenceDelegate=new zn(this,o),this.dbName=n+e.MAIN_DATABASE,this.serializer=new xn(s),this.document=r.document,this.targetCache=new ut(this.referenceDelegate,this.serializer),this.indexManager=new Cn,this.remoteDocumentCache=new qt(this.serializer,this.indexManager),!r.window||!r.window.localStorage)throw new O(C.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");this.window=r.window,this.webStorage=this.window.localStorage}return e.getStore=function(e,t){if(e instanceof Bn)return Ge.getStore(e.simpleDbTransaction,t);throw _("IndexedDbPersistence must use instances of IndexedDbTransaction")},e.createIndexedDbPersistence=function(t){return o.__awaiter(this,void 0,void 0,function(){var n;return o.__generator(this,function(i){switch(i.label){case 0:if(!e.isAvailable())throw new O(C.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");return[4,(n=new e(t.allowTabSynchronization,t.persistenceKey,t.clientId,t.platform,t.lruParams,t.queue,t.serializer,t.sequenceNumberSyncer)).start()];case 1:return i.sent(),[2,n]}})})},e.prototype.start=function(){var e=this;return y(!this.started,"IndexedDbPersistence double-started!"),y(null!==this.window,"Expected 'window' to be defined"),Ge.openOrCreate(this.dbName,tn,new nn(this.serializer)).then(function(t){return e.simpleDb=t,e.updateClientMetadataAndTryBecomePrimary()}).then(function(){return e.attachVisibilityHandler(),e.attachWindowUnloadHook(),e.scheduleClientMetadataAndPrimaryLeaseRefreshes(),e.simpleDb.runTransaction("readonly-idempotent",[gn.store],function(e){return ht(e)})}).then(function(t){e.listenSequence=new se(t,e.sequenceNumberSyncer)}).then(function(){e._started=!0}).catch(function(t){return e.simpleDb&&e.simpleDb.close(),Promise.reject(t)})},e.prototype.setPrimaryStateListener=function(e){var t=this;return this.primaryStateListener=function(n){return o.__awaiter(t,void 0,void 0,function(){return o.__generator(this,function(t){return this.started?[2,e(n)]:[2]})})},e(this.isPrimary)},e.prototype.setDatabaseDeletedListener=function(e){var t=this;this.simpleDb.setVersionChangeListener(function(n){return o.__awaiter(t,void 0,void 0,function(){return o.__generator(this,function(t){switch(t.label){case 0:return null!==n.newVersion?[3,2]:[4,e()];case 1:t.sent(),t.label=2;case 2:return[2]}})})})},e.prototype.setNetworkEnabled=function(e){var t=this;this.networkEnabled!==e&&(this.networkEnabled=e,this.queue.enqueueAndForget(function(){return o.__awaiter(t,void 0,void 0,function(){return o.__generator(this,function(e){switch(e.label){case 0:return this.started?[4,this.updateClientMetadataAndTryBecomePrimary()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})}))},e.prototype.updateClientMetadataAndTryBecomePrimary=function(){var e=this;return this.simpleDb.runTransaction("readwrite-idempotent",wn,function(t){return Un(t).put(new _n(e.clientId,Date.now(),e.networkEnabled,e.inForeground)).next(function(){if(e.isPrimary)return e.verifyPrimaryLease(t).next(function(t){t||(e.isPrimary=!1,e.queue.enqueueAndForget(function(){return e.primaryStateListener(!1)}))})}).next(function(){return e.canActAsPrimary(t)}).next(function(n){return e.isPrimary&&!n?e.releasePrimaryLeaseIfHeld(t).next(function(){return!1}):!!n&&e.acquireOrExtendPrimaryLease(t).next(function(){return!0})})}).catch(function(t){if(!e.allowTabSynchronization)throw t;return g(Ln,"Releasing owner lease after error during lease refresh",t),!1}).then(function(t){e.isPrimary!==t&&e.queue.enqueueAndForget(function(){return e.primaryStateListener(t)}),e.isPrimary=t})},e.prototype.verifyPrimaryLease=function(e){var t=this;return Hn(e).get(on.key).next(function(e){return We.resolve(t.isLocalClient(e))})},e.prototype.removeClientMetadata=function(e){return Un(e).delete(this.clientId)},e.prototype.maybeGarbageCollectMultiClientState=function(){return o.__awaiter(this,void 0,void 0,function(){var t=this;return o.__generator(this,function(n){switch(n.label){case 0:return!this.isPrimary||this.isWithinAge(this.lastGarbageCollectionTime,Rn)?[3,2]:(this.lastGarbageCollectionTime=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary-idempotent",function(n){var i=e.getStore(n,_n.store);return i.loadAll().next(function(e){var n=t.filterActiveClients(e,Rn),r=e.filter(function(e){return-1===n.indexOf(e)});return We.forEach(r,function(e){return i.delete(e.clientId)}).next(function(){return r})})})]);case 1:n.sent().forEach(function(e){t.window.localStorage.removeItem(t.zombiedClientLocalStorageKey(e.clientId))}),n.label=2;case 2:return[2]}})})},e.prototype.scheduleClientMetadataAndPrimaryLeaseRefreshes=function(){var e=this;this.clientMetadataRefresher=this.queue.enqueueAfterDelay(ge.ClientMetadataRefresh,4e3,function(){return e.updateClientMetadataAndTryBecomePrimary().then(function(){return e.maybeGarbageCollectMultiClientState()}).then(function(){return e.scheduleClientMetadataAndPrimaryLeaseRefreshes()})})},e.prototype.isLocalClient=function(e){return!!e&&e.ownerId===this.clientId},e.prototype.canActAsPrimary=function(e){var t=this;return Hn(e).get(on.key).next(function(n){if(null!==n&&t.isWithinAge(n.leaseTimestampMs,jn)&&!t.isClientZombied(n.ownerId)){if(t.isLocalClient(n)&&t.networkEnabled)return!0;if(!t.isLocalClient(n)){if(!n.allowTabSynchronization)throw new O(C.FAILED_PRECONDITION,Fn);return!1}}return!(!t.networkEnabled||!t.inForeground)||Un(e).loadAll().next(function(e){return void 0===t.filterActiveClients(e,jn).find(function(e){return!(t.clientId===e.clientId||!(!t.networkEnabled&&e.networkEnabled||!t.inForeground&&e.inForeground&&t.networkEnabled===e.networkEnabled))})})}).next(function(e){return t.isPrimary!==e&&g(Ln,"Client "+(e?"is":"is not")+" eligible for a primary lease."),e})},e.prototype.shutdown=function(){return o.__awaiter(this,void 0,void 0,function(){var e=this;return o.__generator(this,function(t){switch(t.label){case 0:return this._started=!1,this.markClientZombied(),this.clientMetadataRefresher&&(this.clientMetadataRefresher.cancel(),this.clientMetadataRefresher=null),this.detachVisibilityHandler(),this.detachWindowUnloadHook(),[4,this.simpleDb.runTransaction("readwrite-idempotent",[on.store,_n.store],function(t){return e.releasePrimaryLeaseIfHeld(t).next(function(){return e.removeClientMetadata(t)})})];case 1:return t.sent(),this.simpleDb.close(),this.removeClientZombiedEntry(),[2]}})})},e.prototype.filterActiveClients=function(e,t){var n=this;return e.filter(function(e){return n.isWithinAge(e.updateTimeMs,t)&&!n.isClientZombied(e.clientId)})},e.prototype.getActiveClients=function(){var e=this;return this.simpleDb.runTransaction("readonly-idempotent",[_n.store],function(t){return Un(t).loadAll().next(function(t){return e.filterActiveClients(t,Rn).map(function(e){return e.clientId})})})},e.clearPersistence=function(t){return o.__awaiter(this,void 0,void 0,function(){return o.__generator(this,function(n){switch(n.label){case 0:return e.isAvailable()?[4,Ge.delete(t+e.MAIN_DATABASE)]:[2,Promise.resolve()];case 1:return n.sent(),[2]}})})},Object.defineProperty(e.prototype,"started",{get:function(){return this._started},enumerable:!0,configurable:!0}),e.prototype.getMutationQueue=function(e){return y(this.started,"Cannot initialize MutationQueue before persistence is started."),et.forUser(e,this.serializer,this.indexManager,this.referenceDelegate)},e.prototype.getTargetCache=function(){return y(this.started,"Cannot initialize TargetCache before persistence is started."),this.targetCache},e.prototype.getRemoteDocumentCache=function(){return y(this.started,"Cannot initialize RemoteDocumentCache before persistence is started."),this.remoteDocumentCache},e.prototype.getIndexManager=function(){return y(this.started,"Cannot initialize IndexManager before persistence is started."),this.indexManager},e.prototype.runTransaction=function(e,t,n){var i=this;g(Ln,"Starting transaction:",e);var r,o=t.endsWith("idempotent"),a=t.startsWith("readonly");return this.simpleDb.runTransaction(a?o?"readonly-idempotent":"readonly":o?"readwrite-idempotent":"readwrite",wn,function(o){return r=new Bn(o,i.listenSequence.next()),"readwrite-primary"===t||"readwrite-primary-idempotent"===t?i.verifyPrimaryLease(o).next(function(e){return!!e||i.canActAsPrimary(o)}).next(function(t){if(!t)throw m("Failed to obtain primary lease for action '"+e+"'."),i.isPrimary=!1,i.queue.enqueueAndForget(function(){return i.primaryStateListener(!1)}),new O(C.FAILED_PRECONDITION,Nn);return n(r)}).next(function(e){return i.acquireOrExtendPrimaryLease(o).next(function(){return e})}):i.verifyAllowTabSynchronization(o).next(function(){return n(r)})}).then(function(e){return r.raiseOnCommittedEvent(),e})},e.prototype.verifyAllowTabSynchronization=function(e){var t=this;return Hn(e).get(on.key).next(function(e){if(null!==e&&t.isWithinAge(e.leaseTimestampMs,jn)&&!t.isClientZombied(e.ownerId)&&!t.isLocalClient(e)&&!e.allowTabSynchronization)throw new O(C.FAILED_PRECONDITION,Fn)})},e.prototype.acquireOrExtendPrimaryLease=function(e){var t=new on(this.clientId,this.allowTabSynchronization,Date.now());return Hn(e).put(on.key,t)},e.isAvailable=function(){return Ge.isAvailable()},e.buildStoragePrefix=function(e){var t=e.databaseId.projectId;return e.databaseId.isDefaultDatabase||(t+="."+e.databaseId.database),"firestore/"+e.persistenceKey+"/"+t+"/"},e.prototype.releasePrimaryLeaseIfHeld=function(e){var t=this,n=Hn(e);return n.get(on.key).next(function(e){return t.isLocalClient(e)?(g(Ln,"Releasing primary lease."),n.delete(on.key)):We.resolve()})},e.prototype.isWithinAge=function(e,t){var n=Date.now();return!(en&&(m("Detected an update time that is in the future: "+e+" > "+n),1))},e.prototype.attachVisibilityHandler=function(){var e=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.documentVisibilityHandler=function(){e.queue.enqueueAndForget(function(){return e.inForeground="visible"===e.document.visibilityState,e.updateClientMetadataAndTryBecomePrimary()})},this.document.addEventListener("visibilitychange",this.documentVisibilityHandler),this.inForeground="visible"===this.document.visibilityState)},e.prototype.detachVisibilityHandler=function(){this.documentVisibilityHandler&&(y(null!==this.document&&"function"==typeof this.document.addEventListener,"Expected 'document.addEventListener' to be a function"),this.document.removeEventListener("visibilitychange",this.documentVisibilityHandler),this.documentVisibilityHandler=null)},e.prototype.attachWindowUnloadHook=function(){var e=this;"function"==typeof this.window.addEventListener&&(this.windowUnloadHandler=function(){e.markClientZombied(),e.queue.enqueueAndForget(function(){return e.shutdown()})},this.window.addEventListener("unload",this.windowUnloadHandler))},e.prototype.detachWindowUnloadHook=function(){this.windowUnloadHandler&&(y("function"==typeof this.window.removeEventListener,"Expected 'window.removeEventListener' to be a function"),this.window.removeEventListener("unload",this.windowUnloadHandler),this.windowUnloadHandler=null)},e.prototype.isClientZombied=function(e){try{var t=null!==this.webStorage.getItem(this.zombiedClientLocalStorageKey(e));return g(Ln,"Client '"+e+"' "+(t?"is":"is not")+" zombied in LocalStorage"),t}catch(n){return m(Ln,"Failed to get zombied client id.",n),!1}},e.prototype.markClientZombied=function(){try{this.webStorage.setItem(this.zombiedClientLocalStorageKey(this.clientId),String(Date.now()))}catch(e){m("Failed to set zombie client id.",e)}},e.prototype.removeClientZombiedEntry=function(){try{this.webStorage.removeItem(this.zombiedClientLocalStorageKey(this.clientId))}catch(e){}},e.prototype.zombiedClientLocalStorageKey=function(e){return"firestore_zombie_"+this.persistenceKey+"_"+e},e.MAIN_DATABASE="main",e}();function $n(e){return o.__awaiter(this,void 0,void 0,function(){return o.__generator(this,function(t){if(!function(e){return e.code===C.FAILED_PRECONDITION&&e.message===Nn}(e))throw e;return g(Ln,"Unexpectedly lost primary lease"),[2]})})}function Hn(e){return e.store(on.store)}function Un(e){return e.store(_n.store)}var zn=function(){function e(e,t){this.db=e,this.inMemoryPins=null,this.garbageCollector=new An(this,t)}return e.prototype.getSequenceNumberCount=function(e){var t=this.orphanedDocmentCount(e);return this.db.getTargetCache().getTargetCount(e).next(function(e){return t.next(function(t){return e+t})})},e.prototype.orphanedDocmentCount=function(e){var t=0;return this.forEachOrphanedDocumentSequenceNumber(e,function(e){t++}).next(function(){return t})},e.prototype.forEachTarget=function(e,t){return this.db.getTargetCache().forEachTarget(e,t)},e.prototype.forEachOrphanedDocumentSequenceNumber=function(e,t){return this.forEachOrphanedDocument(e,function(e,n){return t(n)})},e.prototype.setInMemoryPins=function(e){this.inMemoryPins=e},e.prototype.addReference=function(e,t){return Wn(e,t)},e.prototype.removeReference=function(e,t){return Wn(e,t)},e.prototype.removeTargets=function(e,t,n){return this.db.getTargetCache().removeTargets(e,t,n)},e.prototype.removeMutationReference=function(e,t){return Wn(e,t)},e.prototype.isPinned=function(e,t){return this.inMemoryPins.containsKey(t)?We.resolve(!0):function(e,t){var n=!1;return at(e).iterateSerial(function(i){return tt(e,i,t).next(function(e){return e&&(n=!0),We.resolve(!e)})}).next(function(){return n})}(e,t)},e.prototype.removeOrphanedDocuments=function(e,t){var n=this,i=this.db.getRemoteDocumentCache().newChangeBuffer(),r=[],o=0;return this.forEachOrphanedDocument(e,function(a,s){if(s<=t){var c=n.isPinned(e,a).next(function(t){if(!t)return o++,i.getEntry(e,a).next(function(){return i.removeEntry(a),ft(e).delete([0,ye(a.path)])})});r.push(c)}}).next(function(){return We.waitFor(r)}).next(function(){return i.apply(e)}).next(function(){return o})},e.prototype.removeTarget=function(e,t){var n=t.withSequenceNumber(e.currentSequenceNumber);return this.db.getTargetCache().updateTargetData(e,n)},e.prototype.updateLimboDocument=function(e,t){return Wn(e,t)},e.prototype.forEachOrphanedDocument=function(e,t){var n,i=ft(e),r=se.INVALID;return i.iterate({index:pn.documentTargetsIndex},function(e,i){var o=i.path,a=i.sequenceNumber;0===e[0]?(r!==se.INVALID&&t(new fe(Ce(n)),r),r=a,n=o):r=se.INVALID}).next(function(){r!==se.INVALID&&t(new fe(Ce(n)),r)})},e.prototype.getCacheSize=function(e){return this.db.getRemoteDocumentCache().getSize(e)},e}();function Wn(e,t){return ft(e).put(function(e,t){return new pn(0,ye(e.path),t)}(t,e.currentSequenceNumber))}var Yn=Number,Gn=Yn.MIN_SAFE_INTEGER||-(Math.pow(2,53)-1),qn=Yn.MAX_SAFE_INTEGER||Math.pow(2,53)-1,Kn=Yn.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function Xn(e){return null==e}function Jn(e){return Kn(e)&&e<=qn&&e>=Gn}var Qn=function(){function e(e,t,n,i,r,o,a){void 0===t&&(t=null),void 0===n&&(n=[]),void 0===i&&(i=[]),void 0===r&&(r=null),void 0===o&&(o=null),void 0===a&&(a=null),this.path=e,this.collectionGroup=t,this.orderBy=n,this.filters=i,this.limit=r,this.startAt=o,this.endAt=a,this.memoizedCanonicalId=null}return e.prototype.canonicalId=function(){if(null===this.memoizedCanonicalId){var e=this.path.canonicalString();null!==this.collectionGroup&&(e+="|cg:"+this.collectionGroup),e+="|f:";for(var t=0,n=this.filters;t0&&(e+=", orderBy: ["+this.orderBy.join(", ")+"]"),this.startAt&&(e+=", startAt: "+this.startAt.canonicalId()),this.endAt&&(e+=", endAt: "+this.endAt.canonicalId()),"Target("+e+")"},e.prototype.isEqual=function(e){if(this.limit!==e.limit)return!1;if(this.orderBy.length!==e.orderBy.length)return!1;for(var t=0;t0?this.explicitOrderBy[this.explicitOrderBy.length-1].dir:ui.ASCENDING)===ui.ASCENDING?hi:fi)}}return this.memoizedOrderBy},enumerable:!0,configurable:!0}),e.prototype.addFilter=function(t){y(null==this.getInequalityFilterField()||!(t instanceof ii)||!t.isInequality()||t.field.isEqual(this.getInequalityFilterField()),"Query must only have one inequality field."),y(!this.isDocumentQuery(),"No filtering allowed for document query");var n=this.filters.concat([t]);return new e(this.path,this.collectionGroup,this.explicitOrderBy.slice(),n,this.limit,this.limitType,this.startAt,this.endAt)},e.prototype.addOrderBy=function(t){y(!this.startAt&&!this.endAt,"Bounds must be set after orderBy");var n=this.explicitOrderBy.concat([t]);return new e(this.path,this.collectionGroup,n,this.filters.slice(),this.limit,this.limitType,this.startAt,this.endAt)},e.prototype.withLimitToFirst=function(t){return new e(this.path,this.collectionGroup,this.explicitOrderBy.slice(),this.filters.slice(),t,Zn.First,this.startAt,this.endAt)},e.prototype.withLimitToLast=function(t){return new e(this.path,this.collectionGroup,this.explicitOrderBy.slice(),this.filters.slice(),t,Zn.Last,this.startAt,this.endAt)},e.prototype.withStartAt=function(t){return new e(this.path,this.collectionGroup,this.explicitOrderBy.slice(),this.filters.slice(),this.limit,this.limitType,t,this.endAt)},e.prototype.withEndAt=function(t){return new e(this.path,this.collectionGroup,this.explicitOrderBy.slice(),this.filters.slice(),this.limit,this.limitType,this.startAt,t)},e.prototype.asCollectionQueryAtPath=function(t){return new e(t,null,this.explicitOrderBy.slice(),this.filters.slice(),this.limit,this.limitType,this.startAt,this.endAt)},e.prototype.matchesAllDocuments=function(){return 0===this.filters.length&&null===this.limit&&null==this.startAt&&null==this.endAt&&(0===this.explicitOrderBy.length||1===this.explicitOrderBy.length&&this.explicitOrderBy[0].field.isKeyField())},e.prototype.canonicalId=function(){return this.toTarget().canonicalId()+"|lt:"+this.limitType},e.prototype.toString=function(){return"Query(target="+this.toTarget().toString()+"; limitType="+this.limitType+")"},e.prototype.isEqual=function(e){return this.toTarget().isEqual(e.toTarget())&&this.limitType===e.limitType},e.prototype.docComparator=function(e,t){for(var n=!1,i=0,r=this.orderBy;i0?this.explicitOrderBy[0].field:null},e.prototype.getInequalityFilterField=function(){for(var e=0,t=this.filters;e=0)return i.op}return null},e.prototype.isDocumentQuery=function(){return this.toTarget().isDocumentQuery()},e.prototype.isCollectionGroupQuery=function(){return null!==this.collectionGroup},e.prototype.toTarget=function(){if(!this.memoizedTarget)if(this.limitType===Zn.First)this.memoizedTarget=new Qn(this.path,this.collectionGroup,this.orderBy,this.filters,this.limit,this.startAt,this.endAt);else{for(var e=[],t=0,n=this.orderBy;t=":return e.GREATER_THAN_OR_EQUAL;case">":return e.GREATER_THAN;case"array-contains":return e.ARRAY_CONTAINS;case"in":return e.IN;case"array-contains-any":return e.ARRAY_CONTAINS_ANY;default:return _("Unknown FieldFilter operator: "+t)}},e.prototype.toString=function(){return this.name},e.prototype.isEqual=function(e){return this.name===e.name},e.LESS_THAN=new e("<"),e.LESS_THAN_OR_EQUAL=new e("<="),e.EQUAL=new e("=="),e.GREATER_THAN=new e(">"),e.GREATER_THAN_OR_EQUAL=new e(">="),e.ARRAY_CONTAINS=new e("array-contains"),e.IN=new e("in"),e.ARRAY_CONTAINS_ANY=new e("array-contains-any"),e}(),ii=function(e){function t(t,n,i){var r=e.call(this)||this;return r.field=t,r.op=n,r.value=i,r}return o.__extends(t,e),t.create=function(e,n,i){if(e.isKeyField())return n===ni.IN?(y(i instanceof $t,"Comparing on key with IN, but filter value not an ArrayValue"),y(i.internalValue.every(function(e){return e instanceof Ft}),"Comparing on key with IN, but an array value was not a RefValue"),new oi(e,i)):(y(i instanceof Ft,"Comparing on key, but filter value not a RefValue"),y(n!==ni.ARRAY_CONTAINS&&n!==ni.ARRAY_CONTAINS_ANY,"'"+n.toString()+"' queries don't make sense on document keys."),new ri(e,n,i));if(i.isEqual(Et.INSTANCE)){if(n!==ni.EQUAL)throw new O(C.INVALID_ARGUMENT,"Invalid query. Null supports only equality comparisons.");return new t(e,n,i)}if(i.isEqual(Pt.NAN)){if(n!==ni.EQUAL)throw new O(C.INVALID_ARGUMENT,"Invalid query. NaN supports only equality comparisons.");return new t(e,n,i)}return n===ni.ARRAY_CONTAINS?new ai(e,i):n===ni.IN?(y(i instanceof $t,"IN filter has invalid value: "+i.toString()),new si(e,i)):n===ni.ARRAY_CONTAINS_ANY?(y(i instanceof $t,"ARRAY_CONTAINS_ANY filter has invalid value: "+i.toString()),new ci(e,i)):new t(e,n,i)},t.prototype.matches=function(e){var t=e.field(this.field);return null!==t&&this.value.typeOrder===t.typeOrder&&this.matchesComparison(t.compareTo(this.value))},t.prototype.matchesComparison=function(e){switch(this.op){case ni.LESS_THAN:return e<0;case ni.LESS_THAN_OR_EQUAL:return e<=0;case ni.EQUAL:return 0===e;case ni.GREATER_THAN:return e>0;case ni.GREATER_THAN_OR_EQUAL:return e>=0;default:return _("Unknown FieldFilter operator: "+this.op)}},t.prototype.isInequality=function(){return[ni.LESS_THAN,ni.LESS_THAN_OR_EQUAL,ni.GREATER_THAN,ni.GREATER_THAN_OR_EQUAL].indexOf(this.op)>=0},t.prototype.canonicalId=function(){return this.field.canonicalString()+this.op.toString()+this.value.toString()},t.prototype.isEqual=function(e){return e instanceof t&&this.op.isEqual(e.op)&&this.field.isEqual(e.field)&&this.value.isEqual(e.value)},t.prototype.toString=function(){return this.field.canonicalString()+" "+this.op+" "+this.value.value()},t}(ti),ri=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.matches=function(e){var t=fe.comparator(e.key,this.value.key);return this.matchesComparison(t)},t}(ii),oi=function(e){function t(t,n){var i=e.call(this,t,ni.IN,n)||this;return i.value=n,i}return o.__extends(t,e),t.prototype.matches=function(e){return this.value.internalValue.some(function(t){return e.key.isEqual(t.key)})},t}(ii),ai=function(e){function t(t,n){return e.call(this,t,ni.ARRAY_CONTAINS,n)||this}return o.__extends(t,e),t.prototype.matches=function(e){var t=e.field(this.field);return t instanceof $t&&t.contains(this.value)},t}(ii),si=function(e){function t(t,n){var i=e.call(this,t,ni.IN,n)||this;return i.value=n,i}return o.__extends(t,e),t.prototype.matches=function(e){var t=this.value,n=e.field(this.field);return null!==n&&t.contains(n)},t}(ii),ci=function(e){function t(t,n){var i=e.call(this,t,ni.ARRAY_CONTAINS_ANY,n)||this;return i.value=n,i}return o.__extends(t,e),t.prototype.matches=function(e){var t=this,n=e.field(this.field);return n instanceof $t&&n.internalValue.some(function(e){return t.value.contains(e)})},t}(ii),ui=function(){function e(e){this.name=e}return e.prototype.toString=function(){return this.name},e.ASCENDING=new e("asc"),e.DESCENDING=new e("desc"),e}(),li=function(){function e(e,t){this.position=e,this.before=t}return e.prototype.canonicalId=function(){for(var e=this.before?"b:":"a:",t=0,n=this.position;t0)},e.prototype.executeFullCollectionScan=function(e,t){return f()<=h.DEBUG&&g("IndexFreeQueryEngine","Using full collection scan to execute query: %s",t.toString()),this.localDocumentsView.getDocumentsMatchingQuery(e,t,Se.MIN)},e}(),gi=function(){function e(e,t,n){this.remoteDocumentCache=e,this.mutationQueue=t,this.indexManager=n}return e.prototype.getDocument=function(e,t){var n=this;return this.mutationQueue.getAllMutationBatchesAffectingDocumentKey(e,t).next(function(i){return n.getDocumentInternal(e,t,i)})},e.prototype.getDocumentInternal=function(e,t,n){return this.remoteDocumentCache.getEntry(e,t).next(function(e){for(var i=0,r=n;i0){var l=c.withResumeToken(u,i).withSequenceNumber(o.currentSequenceNumber);r=r.insert(t,l),e.shouldPersistTargetData(c,l,a)&&s.push(n.targetCache.updateTargetData(o,l))}}});var c=Ae(),u=Be();if(t.documentUpdates.forEach(function(e,t){u=u.add(e)}),s.push(a.getEntries(o,u).next(function(e){t.documentUpdates.forEach(function(r,u){var l=e.get(r);u instanceof zt&&u.version.isEqual(Se.MIN)?(a.removeEntry(r,i),c=c.insert(r,u)):null==l||u.version.compareTo(l.version)>0||0===u.version.compareTo(l.version)&&l.hasPendingWrites?(y(!Se.MIN.isEqual(i),"Cannot add a document when the remote version is zero"),a.addEntry(u,i),c=c.insert(r,u)):g("LocalStore","Ignoring outdated watch update for ",r,". Current version:",l.version," Watch version:",u.version),t.resolvedLimboDocuments.has(r)&&s.push(n.persistence.referenceDelegate.updateLimboDocument(o,r))})})),!i.isEqual(Se.MIN)){var l=n.targetCache.getLastRemoteSnapshotVersion(o).next(function(e){return y(i.compareTo(e)>=0,"Watch stream reverted to previous snapshot?? "+i+" < "+e),n.targetCache.setTargetsMetadata(o,o.currentSequenceNumber,i)});s.push(l)}return We.waitFor(s).next(function(){return a.apply(o)}).next(function(){return n.localDocuments.getLocalViewOfDocuments(o,c)})}).then(function(e){return n.targetDataByTarget=r,e})},e.shouldPersistTargetData=function(e,t,n){return y(t.resumeToken.length>0,"Attempted to persist target data with no resume token"),0===e.resumeToken.length||t.snapshotVersion.toMicroseconds()-e.snapshotVersion.toMicroseconds()>=this.RESUME_TOKEN_MAX_AGE_MICROS||n.addedDocuments.size+n.modifiedDocuments.size+n.removedDocuments.size>0},e.prototype.notifyLocalViewChanges=function(e){for(var t=this,n=0,i=e;n0&&y(this.mutationQueue[this.mutationQueue.length-1].batchIdi?this.mutationQueue[i]:null)},e.prototype.getHighestUnacknowledgedBatchId=function(){return We.resolve(0===this.mutationQueue.length?He:this.nextBatchId-1)},e.prototype.getAllMutationBatches=function(e){return We.resolve(this.mutationQueue.slice())},e.prototype.getAllMutationBatchesAffectingDocumentKey=function(e,t){var n=this,i=new vi(t,0),r=new vi(t,Number.POSITIVE_INFINITY),o=[];return this.batchesByDocumentKey.forEachInRange([i,r],function(e){y(t.isEqual(e.key),"Should only iterate over a single key's batches");var i=n.findMutationBatch(e.targetOrBatchId);y(null!==i,"Batches in the index must exist in the main table"),o.push(i)}),We.resolve(o)},e.prototype.getAllMutationBatchesAffectingDocumentKeys=function(e,t){var n=this,i=new Ie(J);return t.forEach(function(e){var t=new vi(e,0),r=new vi(e,Number.POSITIVE_INFINITY);n.batchesByDocumentKey.forEachInRange([t,r],function(t){y(e.isEqual(t.key),"For each key, should only iterate over a single key's batches"),i=i.add(t.targetOrBatchId)})}),We.resolve(this.findMutationBatches(i))},e.prototype.getAllMutationBatchesAffectingQuery=function(e,t){y(!t.isCollectionGroupQuery(),"CollectionGroup queries should be handled in LocalDocumentsView");var n=t.path,i=n.length+1,r=n;fe.isDocumentKey(r)||(r=r.child(""));var o=new vi(new fe(r),0),a=new Ie(J);return this.batchesByDocumentKey.forEachWhile(function(e){var t=e.key.path;return!!n.isPrefixOf(t)&&(t.length===i&&(a=a.add(e.targetOrBatchId)),!0)},o),We.resolve(this.findMutationBatches(a))},e.prototype.findMutationBatches=function(e){var t=this,n=[];return e.forEach(function(e){var i=t.findMutationBatch(e);null!==i&&n.push(i)}),n},e.prototype.removeMutationBatch=function(e,t){var n=this;y(0===this.indexOfExistingBatchId(t.batchId,"removed"),"Can only remove the first entry of the mutation queue"),this.mutationQueue.shift();var i=this.batchesByDocumentKey;return We.forEach(t.mutations,function(r){var o=new vi(r.key,t.batchId);return i=i.delete(o),n.referenceDelegate.removeMutationReference(e,r.key)}).next(function(){n.batchesByDocumentKey=i})},e.prototype.removeCachedMutationKeys=function(e){},e.prototype.containsKey=function(e,t){var n=new vi(t,0),i=this.batchesByDocumentKey.firstAfterOrEqual(n);return We.resolve(t.isEqual(i&&i.key))},e.prototype.performConsistencyCheck=function(e){return 0===this.mutationQueue.length&&y(this.batchesByDocumentKey.isEmpty(),"Document leak -- detected dangling mutation references when queue is empty."),We.resolve()},e.prototype.indexOfExistingBatchId=function(e,t){var n=this.indexOfBatchId(e);return y(n>=0&&n=this.mutationQueue.length)return null;var n=this.mutationQueue[t];return y(n.batchId===e,"If found batch must match"),n},e}(),bi=function(){function e(e,t){this.indexManager=e,this.sizer=t,this.docs=new ke(fe.comparator),this.size=0}return e.prototype.addEntry=function(e,t,n){y(!n.isEqual(Se.MIN),"Cannot add a document with a read time of zero");var i=t.key,r=this.docs.get(i),o=r?r.size:0,a=this.sizer(t);return this.docs=this.docs.insert(i,{maybeDocument:t,size:a,readTime:n}),this.size+=a-o,this.indexManager.addToCollectionParentIndex(e,i.path.popLast())},e.prototype.removeEntry=function(e){var t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)},e.prototype.getEntry=function(e,t){var n=this.docs.get(t);return We.resolve(n?n.maybeDocument:null)},e.prototype.getEntries=function(e,t){var n=this,i=Pe();return t.forEach(function(e){var t=n.docs.get(e);i=i.insert(e,t?t.maybeDocument:null)}),We.resolve(i)},e.prototype.getDocumentsMatchingQuery=function(e,t,n){y(!t.isCollectionGroupQuery(),"CollectionGroup queries should be handled in LocalDocumentsView");for(var i=Re(),r=new fe(t.path.child("")),o=this.docs.getIteratorFrom(r);o.hasNext();){var a=o.getNext(),s=a.value,c=s.maybeDocument,u=s.readTime;if(!t.path.isPrefixOf(a.key.path))break;u.compareTo(n)<=0||c instanceof Ut&&t.matches(c)&&(i=i.insert(c.key,c))}return We.resolve(i)},e.prototype.forEachDocumentKey=function(e,t){return We.forEach(this.docs,function(e){return t(e)})},e.prototype.getNewDocumentChanges=function(e,t){throw new Error("getNewDocumentChanges() is not supported with MemoryPersistence")},e.prototype.newChangeBuffer=function(t){return new e.RemoteDocumentChangeBuffer(this)},e.prototype.getSize=function(e){return We.resolve(this.size)},e.RemoteDocumentChangeBuffer=function(e){function t(t){var n=e.call(this)||this;return n.documentCache=t,n}return o.__extends(t,e),t.prototype.applyChanges=function(e){var t=this,n=[];return this.changes.forEach(function(i,r){r?n.push(t.documentCache.addEntry(e,r,t.readTime)):t.documentCache.removeEntry(i)}),We.waitFor(n)},t.prototype.getFromCache=function(e,t){return this.documentCache.getEntry(e,t)},t.prototype.getAllFromCache=function(e,t){return this.documentCache.getEntries(e,t)},t}(Gt),e}(),wi=function(){function e(e){this.persistence=e,this.targets=new Yt(function(e){return e.canonicalId()}),this.lastRemoteSnapshotVersion=Se.MIN,this.highestTargetId=0,this.highestSequenceNumber=0,this.references=new mi,this.targetCount=0,this.targetIdGenerator=ct.forTargetCache()}return e.prototype.forEachTarget=function(e,t){return this.targets.forEach(function(e,n){return t(n)}),We.resolve()},e.prototype.getLastRemoteSnapshotVersion=function(e){return We.resolve(this.lastRemoteSnapshotVersion)},e.prototype.getHighestSequenceNumber=function(e){return We.resolve(this.highestSequenceNumber)},e.prototype.allocateTargetId=function(e){var t=this.targetIdGenerator.after(this.highestTargetId);return this.highestTargetId=t,We.resolve(t)},e.prototype.setTargetsMetadata=function(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.highestSequenceNumber&&(this.highestSequenceNumber=t),We.resolve()},e.prototype.saveTargetData=function(e){this.targets.set(e.target,e);var t=e.targetId;t>this.highestTargetId&&(this.highestTargetId=t),e.sequenceNumber>this.highestSequenceNumber&&(this.highestSequenceNumber=e.sequenceNumber)},e.prototype.addTargetData=function(e,t){return y(!this.targets.has(t.target),"Adding a target that already exists"),this.saveTargetData(t),this.targetCount+=1,We.resolve()},e.prototype.updateTargetData=function(e,t){return y(this.targets.has(t.target),"Updating a non-existent target"),this.saveTargetData(t),We.resolve()},e.prototype.removeTargetData=function(e,t){return y(this.targetCount>0,"Removing a target from an empty cache"),y(this.targets.has(t.target),"Removing a non-existent target from the cache"),this.targets.delete(t.target),this.references.removeReferencesForId(t.targetId),this.targetCount-=1,We.resolve()},e.prototype.removeTargets=function(e,t,n){var i=this,r=0,o=[];return this.targets.forEach(function(a,s){s.sequenceNumber<=t&&null===n.get(s.targetId)&&(i.targets.delete(a),o.push(i.removeMatchingKeysForTargetId(e,s.targetId)),r++)}),We.waitFor(o).next(function(){return r})},e.prototype.getTargetCount=function(e){return We.resolve(this.targetCount)},e.prototype.getTargetData=function(e,t){var n=this.targets.get(t)||null;return We.resolve(n)},e.prototype.getTargetDataForTarget=function(e,t){return _("Not yet implemented.")},e.prototype.addMatchingKeys=function(e,t,n){this.references.addReferences(t,n);var i=this.persistence.referenceDelegate,r=[];return i&&t.forEach(function(t){r.push(i.addReference(e,t))}),We.waitFor(r)},e.prototype.removeMatchingKeys=function(e,t,n){this.references.removeReferences(t,n);var i=this.persistence.referenceDelegate,r=[];return i&&t.forEach(function(t){r.push(i.removeReference(e,t))}),We.waitFor(r)},e.prototype.removeMatchingKeysForTargetId=function(e,t){return this.references.removeReferencesForId(t),We.resolve()},e.prototype.getMatchingKeysForTargetId=function(e,t){var n=this.references.referencesForId(t);return We.resolve(n)},e.prototype.containsKey=function(e,t){return We.resolve(this.references.containsKey(t))},e}(),Ci=function(){function e(e,t){var n=this;this.clientId=e,this.mutationQueues={},this.listenSequence=new se(0),this._started=!1,this._started=!0,this.referenceDelegate=t(this),this.targetCache=new wi(this),this.indexManager=new Zt,this.remoteDocumentCache=new bi(this.indexManager,function(e){return n.referenceDelegate.documentSize(e)})}return e.createLruPersistence=function(t,n,i){return new e(t,function(e){return new ki(e,new xn(n),i)})},e.createEagerPersistence=function(t){return new e(t,function(e){return new Si(e)})},e.prototype.shutdown=function(){return this._started=!1,Promise.resolve()},Object.defineProperty(e.prototype,"started",{get:function(){return this._started},enumerable:!0,configurable:!0}),e.prototype.getActiveClients=function(){return o.__awaiter(this,void 0,void 0,function(){return o.__generator(this,function(e){return[2,[this.clientId]]})})},e.prototype.setPrimaryStateListener=function(e){return e(!0)},e.prototype.setDatabaseDeletedListener=function(){},e.prototype.setNetworkEnabled=function(e){},e.prototype.getIndexManager=function(){return this.indexManager},e.prototype.getMutationQueue=function(e){var t=this.mutationQueues[e.toKey()];return t||(t=new yi(this.indexManager,this.referenceDelegate),this.mutationQueues[e.toKey()]=t),t},e.prototype.getTargetCache=function(){return this.targetCache},e.prototype.getRemoteDocumentCache=function(){return this.remoteDocumentCache},e.prototype.runTransaction=function(e,t,n){var i=this;g("MemoryPersistence","Starting transaction:",e);var r=new Oi(this.listenSequence.next());return this.referenceDelegate.onTransactionStarted(),n(r).next(function(e){return i.referenceDelegate.onTransactionCommitted(r).next(function(){return e})}).toPromise().then(function(e){return r.raiseOnCommittedEvent(),e})},e.prototype.mutationQueuesContainKey=function(e,t){return We.or((n=this.mutationQueues,i=[],E(n,function(e,t){return i.push(t)}),i).map(function(n){return function(){return n.containsKey(e,t)}}));var n,i},e}(),Oi=function(e){function t(t){var n=e.call(this)||this;return n.currentSequenceNumber=t,n}return o.__extends(t,e),t}(Pn),Si=function(){function e(e){this.persistence=e,this.inMemoryPins=null,this._orphanedDocuments=null}return Object.defineProperty(e.prototype,"orphanedDocuments",{get:function(){if(this._orphanedDocuments)return this._orphanedDocuments;throw _("orphanedDocuments is only valid during a transaction.")},enumerable:!0,configurable:!0}),e.prototype.setInMemoryPins=function(e){this.inMemoryPins=e},e.prototype.addReference=function(e,t){return this.orphanedDocuments.delete(t),We.resolve()},e.prototype.removeReference=function(e,t){return this.orphanedDocuments.add(t),We.resolve()},e.prototype.removeMutationReference=function(e,t){return this.orphanedDocuments.add(t),We.resolve()},e.prototype.removeTarget=function(e,t){var n=this,i=this.persistence.getTargetCache();return i.getMatchingKeysForTargetId(e,t.targetId).next(function(e){e.forEach(function(e){return n.orphanedDocuments.add(e)})}).next(function(){return i.removeTargetData(e,t)})},e.prototype.onTransactionStarted=function(){this._orphanedDocuments=new Set},e.prototype.onTransactionCommitted=function(e){var t=this,n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return We.forEach(this.orphanedDocuments,function(i){return t.isReferenced(e,i).next(function(e){e||n.removeEntry(i)})}).next(function(){return t._orphanedDocuments=null,n.apply(e)})},e.prototype.updateLimboDocument=function(e,t){var n=this;return this.isReferenced(e,t).next(function(e){e?n.orphanedDocuments.delete(t):n.orphanedDocuments.add(t)})},e.prototype.documentSize=function(e){return 0},e.prototype.isReferenced=function(e,t){var n=this;return We.or([function(){return n.persistence.getTargetCache().containsKey(e,t)},function(){return n.persistence.mutationQueuesContainKey(e,t)},function(){return We.resolve(n.inMemoryPins.containsKey(t))}])},e}(),ki=function(){function e(e,t,n){this.persistence=e,this.serializer=t,this.inMemoryPins=null,this.orphanedSequenceNumbers=new Yt(function(e){return ye(e.path)}),this.garbageCollector=new An(this,n)}return e.prototype.onTransactionStarted=function(){},e.prototype.onTransactionCommitted=function(e){return We.resolve()},e.prototype.forEachTarget=function(e,t){return this.persistence.getTargetCache().forEachTarget(e,t)},e.prototype.getSequenceNumberCount=function(e){var t=this.orphanedDocumentCount(e);return this.persistence.getTargetCache().getTargetCount(e).next(function(e){return t.next(function(t){return e+t})})},e.prototype.orphanedDocumentCount=function(e){var t=0;return this.forEachOrphanedDocumentSequenceNumber(e,function(e){t++}).next(function(){return t})},e.prototype.forEachOrphanedDocumentSequenceNumber=function(e,t){var n=this;return We.forEach(this.orphanedSequenceNumbers,function(i,r){return n.isPinned(e,i,r).next(function(e){return e?We.resolve():t(r)})})},e.prototype.setInMemoryPins=function(e){this.inMemoryPins=e},e.prototype.removeTargets=function(e,t,n){return this.persistence.getTargetCache().removeTargets(e,t,n)},e.prototype.removeOrphanedDocuments=function(e,t){var n=this,i=0,r=this.persistence.getRemoteDocumentCache(),o=r.newChangeBuffer();return r.forEachDocumentKey(e,function(r){return n.isPinned(e,r,t).next(function(e){e||(i++,o.removeEntry(r))})}).next(function(){return o.apply(e)}).next(function(){return i})},e.prototype.removeMutationReference=function(e,t){return this.orphanedSequenceNumbers.set(t,e.currentSequenceNumber),We.resolve()},e.prototype.removeTarget=function(e,t){var n=t.withSequenceNumber(e.currentSequenceNumber);return this.persistence.getTargetCache().updateTargetData(e,n)},e.prototype.addReference=function(e,t){return this.orphanedSequenceNumbers.set(t,e.currentSequenceNumber),We.resolve()},e.prototype.removeReference=function(e,t){return this.orphanedSequenceNumbers.set(t,e.currentSequenceNumber),We.resolve()},e.prototype.updateLimboDocument=function(e,t){return this.orphanedSequenceNumbers.set(t,e.currentSequenceNumber),We.resolve()},e.prototype.documentSize=function(e){var t,n=this.serializer.toDbRemoteDocument(e,e.version);if(n.document)t=n.document;else if(n.unknownDocument)t=n.unknownDocument;else{if(!n.noDocument)throw _("Unknown remote document type");t=n.noDocument}return JSON.stringify(t).length},e.prototype.isPinned=function(e,t,n){var i=this;return We.or([function(){return i.persistence.mutationQueuesContainKey(e,t)},function(){return We.resolve(i.inMemoryPins.containsKey(t))},function(){return i.persistence.getTargetCache().containsKey(e,t)},function(){var e=i.orphanedSequenceNumbers.get(t);return We.resolve(void 0!==e&&e>n)}])},e.prototype.getCacheSize=function(e){return this.persistence.getRemoteDocumentCache().getSize(e)},e}(),xi=function(){function e(e,t,n,i,r){void 0===n&&(n=1e3),void 0===i&&(i=1.5),void 0===r&&(r=6e4),this.queue=e,this.timerId=t,this.initialDelayMs=n,this.backoffFactor=i,this.maxDelayMs=r,this.currentBaseMs=0,this.timerPromise=null,this.lastAttemptTime=Date.now(),this.reset()}return e.prototype.reset=function(){this.currentBaseMs=0},e.prototype.resetToMax=function(){this.currentBaseMs=this.maxDelayMs},e.prototype.backoffAndRun=function(e){var t=this;this.cancel();var n=Math.floor(this.currentBaseMs+this.jitterDelayMs()),i=Math.max(0,Date.now()-this.lastAttemptTime),r=Math.max(0,n-i);this.currentBaseMs>0&&g("ExponentialBackoff","Backing off for "+r+" ms (base delay: "+this.currentBaseMs+" ms, delay with jitter: "+n+" ms, last attempt: "+i+" ms ago)"),this.timerPromise=this.queue.enqueueAfterDelay(this.timerId,r,function(){return t.lastAttemptTime=Date.now(),e()}),this.currentBaseMs*=this.backoffFactor,this.currentBaseMsthis.maxDelayMs&&(this.currentBaseMs=this.maxDelayMs)},e.prototype.cancel=function(){null!==this.timerPromise&&(this.timerPromise.cancel(),this.timerPromise=null)},e.prototype.jitterDelayMs=function(){return(Math.random()-.5)*this.currentBaseMs},e}(),Ti="PersistentStream",Ei=function(e){return e[e.Initial=0]="Initial",e[e.Starting=1]="Starting",e[e.Open=2]="Open",e[e.Error=3]="Error",e[e.Backoff=4]="Backoff",e}({}),Ii=function(){function e(e,t,n,i,r,o){this.queue=e,this.idleTimerId=n,this.connection=i,this.credentialsProvider=r,this.listener=o,this.state=Ei.Initial,this.closeCount=0,this.idleTimer=null,this.stream=null,this.backoff=new xi(e,t)}return e.prototype.isStarted=function(){return this.state===Ei.Starting||this.state===Ei.Open||this.state===Ei.Backoff},e.prototype.isOpen=function(){return this.state===Ei.Open},e.prototype.start=function(){this.state!==Ei.Error?(y(this.state===Ei.Initial,"Already started"),this.auth()):this.performBackoff()},e.prototype.stop=function(){return o.__awaiter(this,void 0,void 0,function(){return o.__generator(this,function(e){switch(e.label){case 0:return this.isStarted()?[4,this.close(Ei.Initial)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},e.prototype.inhibitBackoff=function(){y(!this.isStarted(),"Can only inhibit backoff in a stopped state"),this.state=Ei.Initial,this.backoff.reset()},e.prototype.markIdle=function(){var e=this;this.isOpen()&&null===this.idleTimer&&(this.idleTimer=this.queue.enqueueAfterDelay(this.idleTimerId,6e4,function(){return e.handleIdleCloseTimer()}))},e.prototype.sendRequest=function(e){this.cancelIdleCheck(),this.stream.send(e)},e.prototype.handleIdleCloseTimer=function(){return o.__awaiter(this,void 0,void 0,function(){return o.__generator(this,function(e){return this.isOpen()?[2,this.close(Ei.Initial)]:[2]})})},e.prototype.cancelIdleCheck=function(){this.idleTimer&&(this.idleTimer.cancel(),this.idleTimer=null)},e.prototype.close=function(e,t){return o.__awaiter(this,void 0,void 0,function(){return o.__generator(this,function(n){switch(n.label){case 0:return y(this.isStarted(),"Only started streams should be closed."),y(e===Ei.Error||Xn(t),"Can't provide an error when not in an error state."),this.cancelIdleCheck(),this.backoff.cancel(),this.closeCount++,e!==Ei.Error?this.backoff.reset():t&&t.code===C.RESOURCE_EXHAUSTED?(m(t.toString()),m("Using maximum backoff delay to prevent overloading the backend."),this.backoff.resetToMax()):t&&t.code===C.UNAUTHENTICATED&&this.credentialsProvider.invalidateToken(),null!==this.stream&&(this.tearDown(),this.stream.close(),this.stream=null),this.state=e,[4,this.listener.onClose(t)];case 1:return n.sent(),[2]}})})},e.prototype.tearDown=function(){},e.prototype.auth=function(){var e=this;y(this.state===Ei.Initial,"Must be in initial state to auth"),this.state=Ei.Starting;var t=this.getCloseGuardedDispatcher(this.closeCount),n=this.closeCount;this.credentialsProvider.getToken().then(function(t){e.closeCount===n&&e.startStream(t)},function(n){t(function(){var t=new O(C.UNKNOWN,"Fetching auth token failed: "+n.message);return e.handleStreamClose(t)})})},e.prototype.startStream=function(e){var t=this;y(this.state===Ei.Starting,"Trying to start stream in a non-starting state");var n=this.getCloseGuardedDispatcher(this.closeCount);this.stream=this.startRpc(e),this.stream.onOpen(function(){n(function(){return y(t.state===Ei.Starting,"Expected stream to be in state Starting, but was "+t.state),t.state=Ei.Open,t.listener.onOpen()})}),this.stream.onClose(function(e){n(function(){return t.handleStreamClose(e)})}),this.stream.onMessage(function(e){n(function(){return t.onMessage(e)})})},e.prototype.performBackoff=function(){var e=this;y(this.state===Ei.Error,"Should only perform backoff when in Error state"),this.state=Ei.Backoff,this.backoff.backoffAndRun(function(){return o.__awaiter(e,void 0,void 0,function(){return o.__generator(this,function(e){return y(this.state===Ei.Backoff,"Backoff elapsed but state is now: "+this.state),this.state=Ei.Initial,this.start(),y(this.isStarted(),"PersistentStream should have started"),[2]})})})},e.prototype.handleStreamClose=function(e){return y(this.isStarted(),"Can't handle server close on non-started stream"),g(Ti,"close with error: "+e),this.stream=null,this.close(Ei.Error,e)},e.prototype.getCloseGuardedDispatcher=function(e){var t=this;return function(n){t.queue.enqueueAndForget(function(){return t.closeCount===e?n():(g(Ti,"stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())})}},e}(),Di=function(e){function t(t,n,i,r,o){var a=e.call(this,t,ge.ListenStreamConnectionBackoff,ge.ListenStreamIdle,n,i,o)||this;return a.serializer=r,a}return o.__extends(t,e),t.prototype.startRpc=function(e){return this.connection.openStream("Listen",e)},t.prototype.onMessage=function(e){this.backoff.reset();var t=this.serializer.fromWatchChange(e),n=this.serializer.versionFromListenResponse(e);return this.listener.onWatchChange(t,n)},t.prototype.watch=function(e){var t={};t.database=this.serializer.encodedDatabaseId,t.addTarget=this.serializer.toTarget(e);var n=this.serializer.toListenRequestLabels(e);n&&(t.labels=n),this.sendRequest(t)},t.prototype.unwatch=function(e){var t={};t.database=this.serializer.encodedDatabaseId,t.removeTarget=e,this.sendRequest(t)},t}(Ii),Mi=function(e){function t(t,n,i,r,o){var a=e.call(this,t,ge.WriteStreamConnectionBackoff,ge.WriteStreamIdle,n,i,o)||this;return a.serializer=r,a.handshakeComplete_=!1,a.lastStreamToken=w(),a}return o.__extends(t,e),Object.defineProperty(t.prototype,"handshakeComplete",{get:function(){return this.handshakeComplete_},enumerable:!0,configurable:!0}),t.prototype.start=function(){this.handshakeComplete_=!1,e.prototype.start.call(this)},t.prototype.tearDown=function(){this.handshakeComplete_&&this.writeMutations([])},t.prototype.startRpc=function(e){return this.connection.openStream("Write",e)},t.prototype.onMessage=function(e){if(y(!!e.streamToken,"Got a write response without a stream token"),this.lastStreamToken=e.streamToken,this.handshakeComplete_){this.backoff.reset();var t=this.serializer.fromWriteResults(e.writeResults,e.commitTime),n=this.serializer.fromVersion(e.commitTime);return this.listener.onMutationResult(n,t)}return y(!e.writeResults||0===e.writeResults.length,"Got mutation results for handshake"),this.handshakeComplete_=!0,this.listener.onHandshakeComplete()},t.prototype.writeHandshake=function(){y(this.isOpen(),"Writing handshake requires an opened stream"),y(!this.handshakeComplete_,"Handshake already completed");var e={};e.database=this.serializer.encodedDatabaseId,this.sendRequest(e)},t.prototype.writeMutations=function(e){var t=this;y(this.isOpen(),"Writing mutations requires an opened stream"),y(this.handshakeComplete_,"Handshake must be complete before writing mutations"),y(this.lastStreamToken.length>0,"Trying to write mutation without a token");var n={streamToken:this.lastStreamToken,writes:e.map(function(e){return t.serializer.toMutation(e)})};this.sendRequest(n)},t}(Ii),Ai=function(){function e(e,t,n,i){this.queue=e,this.connection=t,this.credentials=n,this.serializer=i}return e.prototype.newPersistentWriteStream=function(e){return new Mi(this.queue,this.connection,this.credentials,this.serializer,e)},e.prototype.newPersistentWatchStream=function(e){return new Di(this.queue,this.connection,this.credentials,this.serializer,e)},e.prototype.commit=function(e){var t=this,n={database:this.serializer.encodedDatabaseId,writes:e.map(function(e){return t.serializer.toMutation(e)})};return this.invokeRPC("Commit",n).then(function(e){return t.serializer.fromWriteResults(e.writeResults,e.commitTime)})},e.prototype.lookup=function(e){var t=this,n={database:this.serializer.encodedDatabaseId,documents:e.map(function(e){return t.serializer.toName(e)})};return this.invokeStreamingRPC("BatchGetDocuments",n).then(function(n){var i=Ae();n.forEach(function(e){var n=t.serializer.fromMaybeDocument(e);i=i.insert(n.key,n)});var r=[];return e.forEach(function(e){var t=i.get(e);y(!!t,"Missing entity in write response for "+e),r.push(t)}),r})},e.prototype.invokeRPC=function(e,t){var n=this;return this.credentials.getToken().then(function(i){return n.connection.invokeRPC(e,t,i)}).catch(function(e){throw e.code===C.UNAUTHENTICATED&&n.credentials.invalidateToken(),e})},e.prototype.invokeStreamingRPC=function(e,t){var n=this;return this.credentials.getToken().then(function(i){return n.connection.invokeStreamingRPC(e,t,i)}).catch(function(e){throw e.code===C.UNAUTHENTICATED&&n.credentials.invalidateToken(),e})},e}(),Pi=function(){function e(e){this.datastore=e,this.readVersions=Ne(),this.mutations=[],this.committed=!1,this.lastWriteError=null,this.writtenDocs=new Set}return e.prototype.lookup=function(e){return o.__awaiter(this,void 0,void 0,function(){var t,n=this;return o.__generator(this,function(i){switch(i.label){case 0:if(this.ensureCommitNotCalled(),this.mutations.length>0)throw new O(C.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,this.datastore.lookup(e)];case 1:return(t=i.sent()).forEach(function(e){e instanceof zt||e instanceof Ut?n.recordVersion(e):_("Document in a transaction was a "+e.constructor.name)}),[2,t]}})})},e.prototype.set=function(e,t){this.write(t.toMutations(e,this.precondition(e))),this.writtenDocs.add(e)},e.prototype.update=function(e,t){try{this.write(t.toMutations(e,this.preconditionForUpdate(e)))}catch(n){this.lastWriteError=n}this.writtenDocs.add(e)},e.prototype.delete=function(e){this.write([new Ot(e,this.precondition(e))]),this.writtenDocs.add(e)},e.prototype.commit=function(){return o.__awaiter(this,void 0,void 0,function(){var e;return o.__generator(this,function(t){switch(t.label){case 0:if(this.ensureCommitNotCalled(),this.lastWriteError)throw this.lastWriteError;if(e=this.readVersions,this.mutations.forEach(function(t){e=e.remove(t.key)}),!e.isEmpty())throw new O(C.INVALID_ARGUMENT,"Every document read in a transaction must also be written.");return[4,this.datastore.commit(this.mutations)];case 1:return t.sent(),this.committed=!0,[2]}})})},e.prototype.recordVersion=function(e){var t;if(e instanceof Ut)t=e.version;else{if(!(e instanceof zt))throw _("Document in a transaction was a "+e.constructor.name);t=Se.forDeletedDoc()}var n=this.readVersions.get(e.key);if(null!==n){if(!t.isEqual(n))throw new O(C.ABORTED,"Document version changed between two reads.")}else this.readVersions=this.readVersions.insert(e.key,t)},e.prototype.precondition=function(e){var t=this.readVersions.get(e);return!this.writtenDocs.has(e)&&t?_t.updateTime(t):_t.NONE},e.prototype.preconditionForUpdate=function(e){var t=this.readVersions.get(e);if(!this.writtenDocs.has(e)&&t){if(t.isEqual(Se.forDeletedDoc()))throw new O(C.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return _t.updateTime(t)}return _t.exists(!0)},e.prototype.write=function(e){this.ensureCommitNotCalled(),this.mutations=this.mutations.concat(e)},e.prototype.ensureCommitNotCalled=function(){y(!this.committed,"A transaction object cannot be used after its update callback has been invoked.")},e}(),Li=function(e){return e[e.Unknown=0]="Unknown",e[e.Online=1]="Online",e[e.Offline=2]="Offline",e}({}),Ri=function(e){return e[e.RemoteStore=0]="RemoteStore",e[e.SharedClientState=1]="SharedClientState",e}({}),ji=function(){function e(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state=Li.Unknown,this.watchStreamFailures=0,this.onlineStateTimer=null,this.shouldWarnClientIsOffline=!0}return e.prototype.handleWatchStreamStart=function(){var e=this;0===this.watchStreamFailures&&(this.setAndBroadcast(Li.Unknown),y(null===this.onlineStateTimer,"onlineStateTimer shouldn't be started yet"),this.onlineStateTimer=this.asyncQueue.enqueueAfterDelay(ge.OnlineStateTimeout,1e4,function(){return e.onlineStateTimer=null,y(e.state===Li.Unknown,"Timer should be canceled if we transitioned to a different state."),e.logClientOfflineWarningIfNecessary("Backend didn't respond within 10 seconds."),e.setAndBroadcast(Li.Offline),Promise.resolve()}))},e.prototype.handleWatchStreamFailure=function(e){this.state===Li.Online?(this.setAndBroadcast(Li.Unknown),y(0===this.watchStreamFailures,"watchStreamFailures must be 0"),y(null===this.onlineStateTimer,"onlineStateTimer must be null")):(this.watchStreamFailures++,this.watchStreamFailures>=1&&(this.clearOnlineStateTimer(),this.logClientOfflineWarningIfNecessary("Connection failed 1 times. Most recent error: "+e.toString()),this.setAndBroadcast(Li.Offline)))},e.prototype.set=function(e){this.clearOnlineStateTimer(),this.watchStreamFailures=0,e===Li.Online&&(this.shouldWarnClientIsOffline=!1),this.setAndBroadcast(e)},e.prototype.setAndBroadcast=function(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))},e.prototype.logClientOfflineWarningIfNecessary=function(e){var t="Could not reach Cloud Firestore backend. "+e+"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.";this.shouldWarnClientIsOffline?(m(t),this.shouldWarnClientIsOffline=!1):g("OnlineStateTracker",t)},e.prototype.clearOnlineStateTimer=function(){null!==this.onlineStateTimer&&(this.onlineStateTimer.cancel(),this.onlineStateTimer=null)},e}(),Ni=function(e){return e[e.OK=0]="OK",e[e.CANCELLED=1]="CANCELLED",e[e.UNKNOWN=2]="UNKNOWN",e[e.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",e[e.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",e[e.NOT_FOUND=5]="NOT_FOUND",e[e.ALREADY_EXISTS=6]="ALREADY_EXISTS",e[e.PERMISSION_DENIED=7]="PERMISSION_DENIED",e[e.UNAUTHENTICATED=16]="UNAUTHENTICATED",e[e.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",e[e.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",e[e.ABORTED=10]="ABORTED",e[e.OUT_OF_RANGE=11]="OUT_OF_RANGE",e[e.UNIMPLEMENTED=12]="UNIMPLEMENTED",e[e.INTERNAL=13]="INTERNAL",e[e.UNAVAILABLE=14]="UNAVAILABLE",e[e.DATA_LOSS=15]="DATA_LOSS",e}({});function Fi(e){switch(e){case C.OK:return _("Treated status OK as error");case C.CANCELLED:case C.UNKNOWN:case C.DEADLINE_EXCEEDED:case C.RESOURCE_EXHAUSTED:case C.INTERNAL:case C.UNAVAILABLE:case C.UNAUTHENTICATED:return!1;case C.INVALID_ARGUMENT:case C.NOT_FOUND:case C.ALREADY_EXISTS:case C.PERMISSION_DENIED:case C.FAILED_PRECONDITION:case C.ABORTED:case C.OUT_OF_RANGE:case C.UNIMPLEMENTED:case C.DATA_LOSS:return!0;default:return _("Unknown status code: "+e)}}function Bi(e){if(void 0===e)return m("GRPC error has no .code"),C.UNKNOWN;switch(e){case Ni.OK:return C.OK;case Ni.CANCELLED:return C.CANCELLED;case Ni.UNKNOWN:return C.UNKNOWN;case Ni.DEADLINE_EXCEEDED:return C.DEADLINE_EXCEEDED;case Ni.RESOURCE_EXHAUSTED:return C.RESOURCE_EXHAUSTED;case Ni.INTERNAL:return C.INTERNAL;case Ni.UNAVAILABLE:return C.UNAVAILABLE;case Ni.UNAUTHENTICATED:return C.UNAUTHENTICATED;case Ni.INVALID_ARGUMENT:return C.INVALID_ARGUMENT;case Ni.NOT_FOUND:return C.NOT_FOUND;case Ni.ALREADY_EXISTS:return C.ALREADY_EXISTS;case Ni.PERMISSION_DENIED:return C.PERMISSION_DENIED;case Ni.FAILED_PRECONDITION:return C.FAILED_PRECONDITION;case Ni.ABORTED:return C.ABORTED;case Ni.OUT_OF_RANGE:return C.OUT_OF_RANGE;case Ni.UNIMPLEMENTED:return C.UNIMPLEMENTED;case Ni.DATA_LOSS:return C.DATA_LOSS;default:return _("Unknown status code: "+e)}}function Vi(e){if(void 0===e)return Ni.OK;switch(e){case C.OK:return Ni.OK;case C.CANCELLED:return Ni.CANCELLED;case C.UNKNOWN:return Ni.UNKNOWN;case C.DEADLINE_EXCEEDED:return Ni.DEADLINE_EXCEEDED;case C.RESOURCE_EXHAUSTED:return Ni.RESOURCE_EXHAUSTED;case C.INTERNAL:return Ni.INTERNAL;case C.UNAVAILABLE:return Ni.UNAVAILABLE;case C.UNAUTHENTICATED:return Ni.UNAUTHENTICATED;case C.INVALID_ARGUMENT:return Ni.INVALID_ARGUMENT;case C.NOT_FOUND:return Ni.NOT_FOUND;case C.ALREADY_EXISTS:return Ni.ALREADY_EXISTS;case C.PERMISSION_DENIED:return Ni.PERMISSION_DENIED;case C.FAILED_PRECONDITION:return Ni.FAILED_PRECONDITION;case C.ABORTED:return Ni.ABORTED;case C.OUT_OF_RANGE:return Ni.OUT_OF_RANGE;case C.UNIMPLEMENTED:return Ni.UNIMPLEMENTED;case C.DATA_LOSS:return Ni.DATA_LOSS;default:return _("Unknown status code: "+e)}}var $i=function(){function e(e){this.comparator=e?function(t,n){return e(t,n)||fe.comparator(t.key,n.key)}:function(e,t){return fe.comparator(e.key,t.key)},this.keyedMap=Re(),this.sortedSet=new ke(this.comparator)}return e.emptySet=function(t){return new e(t.comparator)},e.prototype.has=function(e){return null!=this.keyedMap.get(e)},e.prototype.get=function(e){return this.keyedMap.get(e)},e.prototype.first=function(){return this.sortedSet.minKey()},e.prototype.last=function(){return this.sortedSet.maxKey()},e.prototype.isEmpty=function(){return this.sortedSet.isEmpty()},e.prototype.indexOf=function(e){var t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1},Object.defineProperty(e.prototype,"size",{get:function(){return this.sortedSet.size},enumerable:!0,configurable:!0}),e.prototype.forEach=function(e){this.sortedSet.inorderTraversal(function(t,n){return e(t),!1})},e.prototype.add=function(e){var t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))},e.prototype.delete=function(e){var t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this},e.prototype.isEqual=function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.sortedSet.getIterator(),i=t.sortedSet.getIterator();n.hasNext();){var r=n.getNext().key,o=i.getNext().key;if(!r.isEqual(o))return!1}return!0},e.prototype.toString=function(){var e=[];return this.forEach(function(t){e.push(t.toString())}),0===e.length?"DocumentSet ()":"DocumentSet (\n "+e.join(" \n")+"\n)"},e.prototype.copy=function(t,n){var i=new e;return i.comparator=this.comparator,i.keyedMap=t,i.sortedSet=n,i},e}(),Hi=function(e){return e[e.Added=0]="Added",e[e.Removed=1]="Removed",e[e.Modified=2]="Modified",e[e.Metadata=3]="Metadata",e}({}),Ui=function(e){return e[e.Local=0]="Local",e[e.Synced=1]="Synced",e}({}),zi=function(){function e(){this.changeMap=new ke(fe.comparator)}return e.prototype.track=function(e){var t=e.doc.key,n=this.changeMap.get(t);n?e.type!==Hi.Added&&n.type===Hi.Metadata?this.changeMap=this.changeMap.insert(t,e):e.type===Hi.Metadata&&n.type!==Hi.Removed?this.changeMap=this.changeMap.insert(t,{type:n.type,doc:e.doc}):e.type===Hi.Modified&&n.type===Hi.Modified?this.changeMap=this.changeMap.insert(t,{type:Hi.Modified,doc:e.doc}):e.type===Hi.Modified&&n.type===Hi.Added?this.changeMap=this.changeMap.insert(t,{type:Hi.Added,doc:e.doc}):e.type===Hi.Removed&&n.type===Hi.Added?this.changeMap=this.changeMap.remove(t):e.type===Hi.Removed&&n.type===Hi.Modified?this.changeMap=this.changeMap.insert(t,{type:Hi.Removed,doc:n.doc}):e.type===Hi.Added&&n.type===Hi.Removed?this.changeMap=this.changeMap.insert(t,{type:Hi.Modified,doc:e.doc}):_("unsupported combination of changes: "+JSON.stringify(e)+" after "+JSON.stringify(n)):this.changeMap=this.changeMap.insert(t,e)},e.prototype.getChanges=function(){var e=[];return this.changeMap.inorderTraversal(function(t,n){e.push(n)}),e},e}(),Wi=function(){function e(e,t,n,i,r,o,a,s){this.query=e,this.docs=t,this.oldDocs=n,this.docChanges=i,this.mutatedKeys=r,this.fromCache=o,this.syncStateChanged=a,this.excludesMetadataChanges=s}return e.fromInitialDocuments=function(t,n,i,r){var o=[];return n.forEach(function(e){o.push({type:Hi.Added,doc:e})}),new e(t,n,$i.emptySet(n),o,i,r,!0,!1)},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return!this.mutatedKeys.isEmpty()},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(e){if(!(this.fromCache===e.fromCache&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&this.query.isEqual(e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;var t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(var i=0;i0&&(this._hasPendingChanges=!0,this._resumeToken=e)},e.prototype.toTargetChange=function(){var e=Be(),t=Be(),n=Be();return this.documentChanges.forEach(function(i,r){switch(r){case Hi.Added:e=e.add(i);break;case Hi.Modified:t=t.add(i);break;case Hi.Removed:n=n.add(i);break;default:_("Encountered invalid change type: "+r)}}),new Gi(this._resumeToken,this._current,e,t,n)},e.prototype.clearPendingChanges=function(){this._hasPendingChanges=!1,this.documentChanges=tr()},e.prototype.addDocumentChange=function(e,t){this._hasPendingChanges=!0,this.documentChanges=this.documentChanges.insert(e,t)},e.prototype.removeDocumentChange=function(e){this._hasPendingChanges=!0,this.documentChanges=this.documentChanges.remove(e)},e.prototype.recordPendingTargetRequest=function(){this.pendingResponses+=1},e.prototype.recordTargetResponse=function(){this.pendingResponses-=1},e.prototype.markCurrent=function(){this._hasPendingChanges=!0,this._current=!0},e}(),Zi=function(){function e(e){this.metadataProvider=e,this.targetStates={},this.pendingDocumentUpdates=Ae(),this.pendingDocumentTargetMapping=er(),this.pendingTargetResets=new Ie(J)}return e.prototype.handleDocumentChange=function(e){for(var t=0,n=e.updatedTargetIds;t0?e.targetIds.forEach(t):T(this.targetStates,t)},e.prototype.handleExistenceFilter=function(e){var t=e.targetId,n=e.existenceFilter.count,i=this.targetDataForActiveTarget(t);if(i){var r=i.target;if(r.isDocumentQuery())if(0===n){var o=new fe(r.path);this.removeDocumentFromTarget(t,o,new zt(o,Se.forDeletedDoc()))}else y(1===n,"Single document existence filter with count: "+n);else this.getCurrentDocumentCountForTarget(t)!==n&&(this.resetTarget(t),this.pendingTargetResets=this.pendingTargetResets.add(t))}},e.prototype.createRemoteEvent=function(e){var t=this,n={};T(this.targetStates,function(i,r){var o=t.targetDataForActiveTarget(i);if(o){if(r.current&&o.target.isDocumentQuery()){var a=new fe(o.target.path);null!==t.pendingDocumentUpdates.get(a)||t.targetContainsDocument(i,a)||t.removeDocumentFromTarget(i,a,new zt(a,e))}r.hasPendingChanges&&(n[i]=r.toTargetChange(),r.clearPendingChanges())}});var i=Be();this.pendingDocumentTargetMapping.forEach(function(e,n){var r=!0;n.forEachWhile(function(e){var n=t.targetDataForActiveTarget(e);return!n||n.purpose===Sn.LimboResolution||(r=!1,!1)}),r&&(i=i.add(e))});var r=new Yi(e,n,this.pendingTargetResets,this.pendingDocumentUpdates,i);return this.pendingDocumentUpdates=Ae(),this.pendingDocumentTargetMapping=er(),this.pendingTargetResets=new Ie(J),r},e.prototype.addDocumentToTarget=function(e,t){if(this.isActiveTarget(e)){var n=this.targetContainsDocument(e,t.key)?Hi.Modified:Hi.Added;this.ensureTargetState(e).addDocumentChange(t.key,n),this.pendingDocumentUpdates=this.pendingDocumentUpdates.insert(t.key,t),this.pendingDocumentTargetMapping=this.pendingDocumentTargetMapping.insert(t.key,this.ensureDocumentTargetMapping(t.key).add(e))}},e.prototype.removeDocumentFromTarget=function(e,t,n){if(this.isActiveTarget(e)){var i=this.ensureTargetState(e);this.targetContainsDocument(e,t)?i.addDocumentChange(t,Hi.Removed):i.removeDocumentChange(t),this.pendingDocumentTargetMapping=this.pendingDocumentTargetMapping.insert(t,this.ensureDocumentTargetMapping(t).delete(e)),n&&(this.pendingDocumentUpdates=this.pendingDocumentUpdates.insert(t,n))}},e.prototype.removeTarget=function(e){delete this.targetStates[e]},e.prototype.getCurrentDocumentCountForTarget=function(e){var t=this.ensureTargetState(e).toTargetChange();return this.metadataProvider.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size},e.prototype.recordPendingTargetRequest=function(e){this.ensureTargetState(e).recordPendingTargetRequest()},e.prototype.ensureTargetState=function(e){return this.targetStates[e]||(this.targetStates[e]=new Qi),this.targetStates[e]},e.prototype.ensureDocumentTargetMapping=function(e){var t=this.pendingDocumentTargetMapping.get(e);return t||(t=new Ie(J),this.pendingDocumentTargetMapping=this.pendingDocumentTargetMapping.insert(e,t)),t},e.prototype.isActiveTarget=function(e){var t=null!==this.targetDataForActiveTarget(e);return t||g("WatchChangeAggregator","Detected inactive target",e),t},e.prototype.targetDataForActiveTarget=function(e){var t=this.targetStates[e];return t&&t.isPending?null:this.metadataProvider.getTargetDataForTarget(e)},e.prototype.resetTarget=function(e){var t=this;y(!this.targetStates[e].isPending,"Should only reset active targets"),this.targetStates[e]=new Qi,this.metadataProvider.getRemoteKeysForTarget(e).forEach(function(n){t.removeDocumentFromTarget(e,n,null)})},e.prototype.targetContainsDocument=function(e,t){return this.metadataProvider.getRemoteKeysForTarget(e).has(t)},e}();function er(){return new ke(fe.comparator)}function tr(){return new ke(fe.comparator)}var nr="RemoteStore",ir=function(){function e(e,t,n,i,r){var a=this;this.localStore=e,this.datastore=t,this.writePipeline=[],this.listenTargets={},this.watchChangeAggregator=null,this.networkEnabled=!1,this.isPrimary=!1,this.connectivityMonitor=r,this.connectivityMonitor.addCallback(function(e){n.enqueueAndForget(function(){return o.__awaiter(a,void 0,void 0,function(){return o.__generator(this,function(e){switch(e.label){case 0:return this.canUseNetwork()?(g(nr,"Restarting streams for network reachability change."),[4,this.restartNetwork()]):[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})})}),this.onlineStateTracker=new ji(n,i),this.watchStream=this.datastore.newPersistentWatchStream({onOpen:this.onWatchStreamOpen.bind(this),onClose:this.onWatchStreamClose.bind(this),onWatchChange:this.onWatchStreamChange.bind(this)}),this.writeStream=this.datastore.newPersistentWriteStream({onOpen:this.onWriteStreamOpen.bind(this),onClose:this.onWriteStreamClose.bind(this),onHandshakeComplete:this.onWriteHandshakeComplete.bind(this),onMutationResult:this.onMutationResult.bind(this)})}return e.prototype.start=function(){return this.enableNetwork()},e.prototype.enableNetwork=function(){return o.__awaiter(this,void 0,void 0,function(){var e;return o.__generator(this,function(t){switch(t.label){case 0:return this.networkEnabled=!0,this.canUseNetwork()?(e=this.writeStream,[4,this.localStore.getLastStreamToken()]):[3,3];case 1:return e.lastStreamToken=t.sent(),this.shouldStartWatchStream()?this.startWatchStream():this.onlineStateTracker.set(Li.Unknown),[4,this.fillWritePipeline()];case 2:t.sent(),t.label=3;case 3:return[2]}})})},e.prototype.disableNetwork=function(){return o.__awaiter(this,void 0,void 0,function(){return o.__generator(this,function(e){switch(e.label){case 0:return this.networkEnabled=!1,[4,this.disableNetworkInternal()];case 1:return e.sent(),this.onlineStateTracker.set(Li.Offline),[2]}})})},e.prototype.disableNetworkInternal=function(){return o.__awaiter(this,void 0,void 0,function(){return o.__generator(this,function(e){switch(e.label){case 0:return[4,this.writeStream.stop()];case 1:return e.sent(),[4,this.watchStream.stop()];case 2:return e.sent(),this.writePipeline.length>0&&(g(nr,"Stopping write stream with "+this.writePipeline.length+" pending writes"),this.writePipeline=[]),this.cleanUpWatchStreamState(),[2]}})})},e.prototype.shutdown=function(){return o.__awaiter(this,void 0,void 0,function(){return o.__generator(this,function(e){switch(e.label){case 0:return g(nr,"RemoteStore shutting down."),this.networkEnabled=!1,[4,this.disableNetworkInternal()];case 1:return e.sent(),this.connectivityMonitor.shutdown(),this.onlineStateTracker.set(Li.Unknown),[2]}})})},e.prototype.listen=function(e){k(this.listenTargets,e.targetId)||(this.listenTargets[e.targetId]=e,this.shouldStartWatchStream()?this.startWatchStream():this.watchStream.isOpen()&&this.sendWatchRequest(e))},e.prototype.unlisten=function(e){y(k(this.listenTargets,e),"unlisten called on target no currently watched: "+e),delete this.listenTargets[e],this.watchStream.isOpen()&&this.sendUnwatchRequest(e),I(this.listenTargets)&&(this.watchStream.isOpen()?this.watchStream.markIdle():this.canUseNetwork()&&this.onlineStateTracker.set(Li.Unknown))},e.prototype.getTargetDataForTarget=function(e){return this.listenTargets[e]||null},e.prototype.getRemoteKeysForTarget=function(e){return this.syncEngine.getRemoteKeysForTarget(e)},e.prototype.sendWatchRequest=function(e){this.watchChangeAggregator.recordPendingTargetRequest(e.targetId),this.watchStream.watch(e)},e.prototype.sendUnwatchRequest=function(e){this.watchChangeAggregator.recordPendingTargetRequest(e),this.watchStream.unwatch(e)},e.prototype.startWatchStream=function(){y(this.shouldStartWatchStream(),"startWatchStream() called when shouldStartWatchStream() is false."),this.watchChangeAggregator=new Zi(this),this.watchStream.start(),this.onlineStateTracker.handleWatchStreamStart()},e.prototype.shouldStartWatchStream=function(){return this.canUseNetwork()&&!this.watchStream.isStarted()&&!I(this.listenTargets)},e.prototype.canUseNetwork=function(){return this.isPrimary&&this.networkEnabled},e.prototype.cleanUpWatchStreamState=function(){this.watchChangeAggregator=null},e.prototype.onWatchStreamOpen=function(){return o.__awaiter(this,void 0,void 0,function(){var e=this;return o.__generator(this,function(t){return T(this.listenTargets,function(t,n){e.sendWatchRequest(n)}),[2]})})},e.prototype.onWatchStreamClose=function(e){return o.__awaiter(this,void 0,void 0,function(){return o.__generator(this,function(t){return void 0===e&&y(!this.shouldStartWatchStream(),"Watch stream was stopped gracefully while still needed."),this.cleanUpWatchStreamState(),this.shouldStartWatchStream()?(this.onlineStateTracker.handleWatchStreamFailure(e),this.startWatchStream()):this.onlineStateTracker.set(Li.Unknown),[2]})})},e.prototype.onWatchStreamChange=function(e,t){return o.__awaiter(this,void 0,void 0,function(){var n;return o.__generator(this,function(i){switch(i.label){case 0:return this.onlineStateTracker.set(Li.Online),e instanceof Ji&&e.state===Xi.Removed&&e.cause?[2,this.handleTargetError(e)]:(e instanceof qi?this.watchChangeAggregator.handleDocumentChange(e):e instanceof Ki?this.watchChangeAggregator.handleExistenceFilter(e):(y(e instanceof Ji,"Expected watchChange to be an instance of WatchTargetChange"),this.watchChangeAggregator.handleTargetChange(e)),t.isEqual(Se.MIN)?[3,3]:[4,this.localStore.getLastRemoteSnapshotVersion()]);case 1:return n=i.sent(),t.compareTo(n)>=0?[4,this.raiseWatchSnapshot(t)]:[3,3];case 2:i.sent(),i.label=3;case 3:return[2]}})})},e.prototype.raiseWatchSnapshot=function(e){var t=this;y(!e.isEqual(Se.MIN),"Can't raise event for unknown SnapshotVersion");var n=this.watchChangeAggregator.createRemoteEvent(e);return T(n.targetChanges,function(n,i){if(i.resumeToken.length>0){var r=t.listenTargets[n];r&&(t.listenTargets[n]=r.withResumeToken(i.resumeToken,e))}}),n.targetMismatches.forEach(function(e){var n=t.listenTargets[e];if(n){t.listenTargets[e]=n.withResumeToken(w(),n.snapshotVersion),t.sendUnwatchRequest(e);var i=new kn(n.target,e,Sn.ExistenceFilterMismatch,n.sequenceNumber);t.sendWatchRequest(i)}}),this.syncEngine.applyRemoteEvent(n)},e.prototype.handleTargetError=function(e){var t=this;y(!!e.cause,"Handling target error without a cause");var n=e.cause,i=Promise.resolve();return e.targetIds.forEach(function(e){i=i.then(function(){return o.__awaiter(t,void 0,void 0,function(){return o.__generator(this,function(t){return k(this.listenTargets,e)?(delete this.listenTargets[e],this.watchChangeAggregator.removeTarget(e),[2,this.syncEngine.rejectListen(e,n)]):[2]})})})}),i},e.prototype.fillWritePipeline=function(){return o.__awaiter(this,void 0,void 0,function(){var e;return o.__generator(this,function(t){switch(t.label){case 0:return this.canAddToWritePipeline()?[4,this.localStore.nextMutationBatch(this.writePipeline.length>0?this.writePipeline[this.writePipeline.length-1].batchId:He)]:[3,4];case 1:return null!==(e=t.sent())?[3,2]:(0===this.writePipeline.length&&this.writeStream.markIdle(),[3,4]);case 2:return this.addToWritePipeline(e),[4,this.fillWritePipeline()];case 3:t.sent(),t.label=4;case 4:return this.shouldStartWriteStream()&&this.startWriteStream(),[2]}})})},e.prototype.canAddToWritePipeline=function(){return this.canUseNetwork()&&this.writePipeline.length<10},e.prototype.outstandingWrites=function(){return this.writePipeline.length},e.prototype.addToWritePipeline=function(e){y(this.canAddToWritePipeline(),"addToWritePipeline called when pipeline is full"),this.writePipeline.push(e),this.writeStream.isOpen()&&this.writeStream.handshakeComplete&&this.writeStream.writeMutations(e.mutations)},e.prototype.shouldStartWriteStream=function(){return this.canUseNetwork()&&!this.writeStream.isStarted()&&this.writePipeline.length>0},e.prototype.startWriteStream=function(){y(this.shouldStartWriteStream(),"startWriteStream() called when shouldStartWriteStream() is false."),this.writeStream.start()},e.prototype.onWriteStreamOpen=function(){return o.__awaiter(this,void 0,void 0,function(){return o.__generator(this,function(e){return this.writeStream.writeHandshake(),[2]})})},e.prototype.onWriteHandshakeComplete=function(){var e=this;return this.localStore.setLastStreamToken(this.writeStream.lastStreamToken).then(function(){for(var t=0,n=e.writePipeline;t0,"Got result for empty write pipeline");var i=this.writePipeline.shift(),r=ze.from(i,e,t,this.writeStream.lastStreamToken);return this.syncEngine.applySuccessfulWrite(r).then(function(){return n.fillWritePipeline()})},e.prototype.onWriteStreamClose=function(e){return o.__awaiter(this,void 0,void 0,function(){var t=this;return o.__generator(this,function(n){return void 0===e&&y(!this.shouldStartWriteStream(),"Write stream was stopped gracefully while still needed."),e&&this.writePipeline.length>0?[2,(this.writeStream.handshakeComplete?this.handleWriteError(e):this.handleHandshakeError(e)).then(function(){t.shouldStartWriteStream()&&t.startWriteStream()})]:[2]})})},e.prototype.handleHandshakeError=function(e){return o.__awaiter(this,void 0,void 0,function(){return o.__generator(this,function(t){return Fi(e.code)?(g(nr,"RemoteStore error before completed handshake; resetting stream token: ",this.writeStream.lastStreamToken),this.writeStream.lastStreamToken=w(),[2,this.localStore.setLastStreamToken(w()).catch($n)]):[2]})})},e.prototype.handleWriteError=function(e){return o.__awaiter(this,void 0,void 0,function(){var t,n=this;return o.__generator(this,function(i){return Fi(r=e.code)&&r!==C.ABORTED?(t=this.writePipeline.shift(),this.writeStream.inhibitBackoff(),[2,this.syncEngine.rejectFailedWrite(t.batchId,e).then(function(){return n.fillWritePipeline()})]):[2];var r})})},e.prototype.createTransaction=function(){return new Pi(this.datastore)},e.prototype.restartNetwork=function(){return o.__awaiter(this,void 0,void 0,function(){return o.__generator(this,function(e){switch(e.label){case 0:return this.networkEnabled=!1,[4,this.disableNetworkInternal()];case 1:return e.sent(),this.onlineStateTracker.set(Li.Unknown),[4,this.enableNetwork()];case 2:return e.sent(),[2]}})})},e.prototype.handleCredentialChange=function(){return o.__awaiter(this,void 0,void 0,function(){return o.__generator(this,function(e){switch(e.label){case 0:return this.canUseNetwork()?(g(nr,"RemoteStore restarting streams for new credential"),[4,this.restartNetwork()]):[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},e.prototype.applyPrimaryState=function(e){return o.__awaiter(this,void 0,void 0,function(){return o.__generator(this,function(t){switch(t.label){case 0:return this.isPrimary=e,e&&this.networkEnabled?[4,this.enableNetwork()]:[3,2];case 1:return t.sent(),[3,4];case 2:return e?[3,4]:[4,this.disableNetworkInternal()];case 3:t.sent(),this.onlineStateTracker.set(Li.Unknown),t.label=4;case 4:return[2]}})})},e}(),rr=function(){function e(e,t){if(M("GeoPoint",arguments,2),R("GeoPoint","number",1,e),R("GeoPoint","number",2,t),!isFinite(e)||e<-90||e>90)throw new O(C.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new O(C.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}return Object.defineProperty(e.prototype,"latitude",{get:function(){return this._lat},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this._long},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(e){return this._lat===e._lat&&this._long===e._long},e.prototype._compareTo=function(e){return J(this._lat,e._lat)||J(this._long,e._long)},e}(),or=function(){function e(){}return e.prototype.applyToLocalView=function(e,t){return new jt(t,e)},e.prototype.applyToRemoteDocument=function(e,t){return t},e.prototype.computeBaseValue=function(e){return null},e.prototype.isEqual=function(t){return t instanceof e},e.instance=new e,e}(),ar=function(){function e(e){this.elements=e}return e.prototype.applyToLocalView=function(e,t){return this.apply(e)},e.prototype.applyToRemoteDocument=function(e,t){return this.apply(e)},e.prototype.apply=function(e){for(var t=ur(e),n=function(e){t.find(function(t){return t.isEqual(e)})||t.push(e)},i=0,r=this.elements;i4&&"documents"===e.get(4),"tried to deserialize invalid key "+e.toString()),e.popFirst(5)},e.prototype.isValidResourceName=function(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)},e.prototype.toValue=function(e){if(e instanceof Et)return{nullValue:"NULL_VALUE"};if(e instanceof It)return{booleanValue:e.value()};if(e instanceof At)return{integerValue:""+e.value()};if(e instanceof Pt){var t=e.value();if(this.options.useProto3Json){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:e.value()}}return e instanceof Lt?{stringValue:e.value()}:e instanceof Vt?{mapValue:this.toMapValue(e)}:e instanceof $t?{arrayValue:this.toArrayValue(e)}:e instanceof Rt?{timestampValue:this.toTimestamp(e.internalValue)}:e instanceof Bt?{geoPointValue:{latitude:e.value().latitude,longitude:e.value().longitude}}:e instanceof Nt?{bytesValue:this.toBytes(e.value())}:e instanceof Ft?{referenceValue:this.toResourceName(e.databaseId,e.key.path)}:_("Unknown FieldValue "+JSON.stringify(e))},e.prototype.fromValue=function(e){var t=this;if("nullValue"in e)return Et.INSTANCE;if("booleanValue"in e)return It.of(e.booleanValue);if("integerValue"in e)return new At(vr(e.integerValue));if("doubleValue"in e){if(this.options.useProto3Json){if("NaN"===e.doubleValue)return Pt.NAN;if("Infinity"===e.doubleValue)return Pt.POSITIVE_INFINITY;if("-Infinity"===e.doubleValue)return Pt.NEGATIVE_INFINITY}return new Pt(e.doubleValue)}if("stringValue"in e)return new Lt(e.stringValue);if("mapValue"in e)return this.fromFields(e.mapValue.fields||{});if("arrayValue"in e)return mr(e.arrayValue,"arrayValue"),new $t((e.arrayValue.values||[]).map(function(e){return t.fromValue(e)}));if("timestampValue"in e)return mr(e.timestampValue,"timestampValue"),new Rt(this.fromTimestamp(e.timestampValue));if("geoPointValue"in e)return mr(e.geoPointValue,"geoPointValue"),new Bt(new rr(e.geoPointValue.latitude||0,e.geoPointValue.longitude||0));if("bytesValue"in e){mr(e.bytesValue,"bytesValue");var n=this.fromBlob(e.bytesValue);return new Nt(n)}if("referenceValue"in e){mr(e.referenceValue,"referenceValue");var i=this.fromResourceName(e.referenceValue),r=new ae(i.get(1),i.get(3)),o=new fe(this.extractLocalPathFromResourceName(i));return new Ft(r,o)}return _("Unknown Value proto "+JSON.stringify(e))},e.prototype.toMutationDocument=function(e,t){return{name:this.toName(e),fields:this.toFields(t)}},e.prototype.toDocument=function(e){return y(!e.hasLocalMutations,"Can't serialize documents with mutations."),{name:this.toName(e.key),fields:this.toFields(e.data()),updateTime:this.toTimestamp(e.version.toTimestamp())}},e.prototype.fromDocument=function(e,t){var n=this,i=this.fromName(e.name),r=this.fromVersion(e.updateTime);return new Ut(i,r,{hasCommittedMutations:!!t},void 0,e,function(e){return n.fromValue(e)})},e.prototype.toFields=function(e){var t=this,n={};return e.forEach(function(e,i){n[e]=t.toValue(i)}),n},e.prototype.fromFields=function(e){var t=this,n=Vt.EMPTY;return E(e,function(e,i){n=n.set(new he([e]),t.fromValue(i))}),n},e.prototype.toMapValue=function(e){return{fields:this.toFields(e)}},e.prototype.toArrayValue=function(e){var t=this,n=[];return e.forEach(function(e){n.push(t.toValue(e))}),{values:n}},e.prototype.fromFound=function(e){var t=this;y(!!e.found,"Tried to deserialize a found document from a missing document."),mr(e.found.name,"doc.found.name"),mr(e.found.updateTime,"doc.found.updateTime");var n=this.fromName(e.found.name),i=this.fromVersion(e.found.updateTime);return new Ut(n,i,{},void 0,e.found,function(e){return t.fromValue(e)})},e.prototype.fromMissing=function(e){y(!!e.missing,"Tried to deserialize a missing document from a found document."),y(!!e.readTime,"Tried to deserialize a missing document without a read time.");var t=this.fromName(e.missing),n=this.fromVersion(e.readTime);return new zt(t,n)},e.prototype.fromMaybeDocument=function(e){return"found"in e?this.fromFound(e):"missing"in e?this.fromMissing(e):_("invalid batch get response: "+JSON.stringify(e))},e.prototype.toWatchTargetChangeState=function(e){switch(e){case Xi.Added:return"ADD";case Xi.Current:return"CURRENT";case Xi.NoChange:return"NO_CHANGE";case Xi.Removed:return"REMOVE";case Xi.Reset:return"RESET";default:return _("Unknown WatchTargetChangeState: "+e)}},e.prototype.toTestWatchChange=function(e){if(e instanceof Ki)return{filter:{count:e.existenceFilter.count,targetId:e.targetId}};if(e instanceof qi){var t;if(e.newDoc instanceof Ut)return{documentChange:{document:{name:this.toName((t=e.newDoc).key),fields:this.toFields(t.data()),updateTime:this.toVersion(t.version)},targetIds:e.updatedTargetIds,removedTargetIds:e.removedTargetIds}};if(e.newDoc instanceof zt)return{documentDelete:{document:this.toName((t=e.newDoc).key),readTime:this.toVersion(t.version),removedTargetIds:e.removedTargetIds}};if(null===e.newDoc)return{documentRemove:{document:this.toName(e.key),removedTargetIds:e.removedTargetIds}}}if(e instanceof Ji){var n=void 0;return e.cause&&(n={code:Vi(e.cause.code),message:e.cause.message}),{targetChange:{targetChangeType:this.toWatchTargetChangeState(e.state),targetIds:e.targetIds,resumeToken:this.unsafeCastProtoByteString(e.resumeToken),cause:n}}}return _("Unrecognized watch change: "+JSON.stringify(e))},e.prototype.fromWatchChange=function(e){var t,n=this;if("targetChange"in e){mr(e.targetChange,"targetChange");var i=this.fromWatchTargetChangeState(e.targetChange.targetChangeType||"NO_CHANGE"),r=e.targetChange.targetIds||[],o=e.targetChange.resumeToken||this.emptyByteString(),a=e.targetChange.cause,s=a&&this.fromRpcStatus(a);t=new Ji(i,r,o,s||null)}else if("documentChange"in e){mr(e.documentChange,"documentChange");var c=e.documentChange;mr(c.document,"documentChange.name"),mr(c.document.name,"documentChange.document.name"),mr(c.document.updateTime,"documentChange.document.updateTime");var u=this.fromName(c.document.name),l=this.fromVersion(c.document.updateTime),d=new Ut(u,l,{},void 0,c.document,function(e){return n.fromValue(e)});t=new qi(c.targetIds||[],c.removedTargetIds||[],d.key,d)}else if("documentDelete"in e){mr(e.documentDelete,"documentDelete");var h=e.documentDelete;mr(h.document,"documentDelete.document"),u=this.fromName(h.document),l=h.readTime?this.fromVersion(h.readTime):Se.forDeletedDoc(),d=new zt(u,l),t=new qi([],h.removedTargetIds||[],d.key,d)}else if("documentRemove"in e){mr(e.documentRemove,"documentRemove");var f=e.documentRemove;mr(f.document,"documentRemove"),u=this.fromName(f.document),t=new qi([],f.removedTargetIds||[],u,null)}else{if(!("filter"in e))return _("Unknown change type "+JSON.stringify(e));mr(e.filter,"filter");var p=e.filter;mr(p.targetId,"filter.targetId");var g=new hr(p.count||0);t=new Ki(p.targetId,g)}return t},e.prototype.fromWatchTargetChangeState=function(e){return"NO_CHANGE"===e?Xi.NoChange:"ADD"===e?Xi.Added:"REMOVE"===e?Xi.Removed:"CURRENT"===e?Xi.Current:"RESET"===e?Xi.Reset:_("Got unexpected TargetChange.state: "+e)},e.prototype.versionFromListenResponse=function(e){if(!("targetChange"in e))return Se.MIN;var t=e.targetChange;return t.targetIds&&t.targetIds.length?Se.MIN:t.readTime?this.fromVersion(t.readTime):Se.MIN},e.prototype.toMutation=function(e){var t,n=this;if(e instanceof bt)t={update:this.toMutationDocument(e.key,e.value)};else if(e instanceof Ot)t={delete:this.toName(e.key)};else if(e instanceof wt)t={update:this.toMutationDocument(e.key,e.data),updateMask:this.toDocumentMask(e.fieldMask)};else{if(!(e instanceof Ct))return _("Unknown mutation type "+e.type);t={transform:{document:this.toName(e.key),fieldTransforms:e.fieldTransforms.map(function(e){return n.toFieldTransform(e)})}}}return e.precondition.isNone||(t.currentDocument=this.toPrecondition(e.precondition)),t},e.prototype.fromMutation=function(e){var t=this,n=e.currentDocument?this.fromPrecondition(e.currentDocument):_t.NONE;if(e.update){mr(e.update.name,"name");var i=this.fromName(e.update.name),r=this.fromFields(e.update.fields||{});if(e.updateMask){var o=this.fromDocumentMask(e.updateMask);return new wt(i,r,o,n)}return new bt(i,r,n)}if(e.delete)return i=this.fromName(e.delete),new Ot(i,n);if(e.transform){i=this.fromName(e.transform.document);var a=e.transform.fieldTransforms.map(function(e){return t.fromFieldTransform(e)});return y(!0===n.exists,'Transforms only support precondition "exists == true"'),new Ct(i,a)}return _("unknown mutation proto: "+JSON.stringify(e))},e.prototype.toPrecondition=function(e){return y(!e.isNone,"Can't serialize an empty precondition"),void 0!==e.updateTime?{updateTime:this.toVersion(e.updateTime)}:void 0!==e.exists?{exists:e.exists}:_("Unknown precondition")},e.prototype.fromPrecondition=function(e){return void 0!==e.updateTime?_t.updateTime(this.fromVersion(e.updateTime)):void 0!==e.exists?_t.exists(e.exists):_t.NONE},e.prototype.fromWriteResult=function(e,t){var n=this,i=this.fromVersion(e.updateTime?e.updateTime:t);i.isEqual(Se.MIN)&&(i=this.fromVersion(t));var r=null;return e.transformResults&&e.transformResults.length>0&&(r=e.transformResults.map(function(e){return n.fromValue(e)})),new mt(i,r)},e.prototype.fromWriteResults=function(e,t){var n=this;return e&&e.length>0?(y(void 0!==t,"Received a write result without a commit time"),e.map(function(e){return n.fromWriteResult(e,t)})):[]},e.prototype.toFieldTransform=function(e){var t=this,n=e.transform;if(n instanceof or)return{fieldPath:e.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof ar)return{fieldPath:e.field.canonicalString(),appendMissingElements:{values:n.elements.map(function(e){return t.toValue(e)})}};if(n instanceof sr)return{fieldPath:e.field.canonicalString(),removeAllFromArray:{values:n.elements.map(function(e){return t.toValue(e)})}};if(n instanceof cr)return{fieldPath:e.field.canonicalString(),increment:this.toValue(n.operand)};throw _("Unknown transform: "+e.transform)},e.prototype.fromFieldTransform=function(e){var t=this,n=null;if("setToServerValue"in e)y("REQUEST_TIME"===e.setToServerValue,"Unknown server value transform proto: "+JSON.stringify(e)),n=or.instance;else if("appendMissingElements"in e)n=new ar((e.appendMissingElements.values||[]).map(function(e){return t.fromValue(e)}));else if("removeAllFromArray"in e)n=new sr((e.removeAllFromArray.values||[]).map(function(e){return t.fromValue(e)}));else if("increment"in e){var i=this.fromValue(e.increment);y(i instanceof Dt,"NUMERIC_ADD transform requires a NumberValue"),n=new cr(i)}else _("Unknown transform proto: "+JSON.stringify(e));var r=he.fromServerFormat(e.fieldPath);return new gt(r,n)},e.prototype.toDocumentsTarget=function(e){return{documents:[this.toQueryPath(e.path)]}},e.prototype.fromDocumentsTarget=function(e){var t=e.documents.length;return y(1===t,"DocumentsTarget contained other than 1 document: "+t),ei.atPath(this.fromQueryPath(e.documents[0])).toTarget()},e.prototype.toQueryTarget=function(e){var t={structuredQuery:{}},n=e.path;null!==e.collectionGroup?(y(n.length%2==0,"Collection Group queries should be within a document path or root."),t.parent=this.toQueryPath(n),t.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(y(n.length%2!=0,"Document queries with filters are not supported."),t.parent=this.toQueryPath(n.popLast()),t.structuredQuery.from=[{collectionId:n.lastSegment()}]);var i=this.toFilter(e.filters);i&&(t.structuredQuery.where=i);var r=this.toOrder(e.orderBy);r&&(t.structuredQuery.orderBy=r);var o=this.toInt32Value(e.limit);return null!==o&&(t.structuredQuery.limit=o),e.startAt&&(t.structuredQuery.startAt=this.toCursor(e.startAt)),e.endAt&&(t.structuredQuery.endAt=this.toCursor(e.endAt)),t},e.prototype.fromQueryTarget=function(e){var t=this.fromQueryPath(e.parent),n=e.structuredQuery,i=n.from?n.from.length:0,r=null;if(i>0){y(1===i,"StructuredQuery.from with more than one collection is not supported.");var o=n.from[0];o.allDescendants?r=o.collectionId:t=t.child(o.collectionId)}var a=[];n.where&&(a=this.fromFilter(n.where));var s=[];n.orderBy&&(s=this.fromOrder(n.orderBy));var c=null;n.limit&&(c=this.fromInt32Value(n.limit));var u=null;n.startAt&&(u=this.fromCursor(n.startAt));var l=null;return n.endAt&&(l=this.fromCursor(n.endAt)),new ei(t,r,s,a,c,Zn.First,u,l).toTarget()},e.prototype.toListenRequestLabels=function(e){var t=this.toLabel(e.purpose);return null==t?null:{"goog-listen-tags":t}},e.prototype.toLabel=function(e){switch(e){case Sn.Listen:return null;case Sn.ExistenceFilterMismatch:return"existence-filter-mismatch";case Sn.LimboResolution:return"limbo-document";default:return _("Unrecognized query purpose: "+e)}},e.prototype.toTarget=function(e){var t,n=e.target;return(t=n.isDocumentQuery()?{documents:this.toDocumentsTarget(n)}:{query:this.toQueryTarget(n)}).targetId=e.targetId,e.resumeToken.length>0&&(t.resumeToken=this.unsafeCastProtoByteString(e.resumeToken)),t},e.prototype.toFilter=function(e){var t=this;if(0!==e.length){var n=e.map(function(e){return e instanceof ii?t.toUnaryOrFieldFilter(e):_("Unrecognized filter: "+JSON.stringify(e))});return 1===n.length?n[0]:{compositeFilter:{op:"AND",filters:n}}}},e.prototype.fromFilter=function(e){var t=this;return e?void 0!==e.unaryFilter?[this.fromUnaryFilter(e)]:void 0!==e.fieldFilter?[this.fromFieldFilter(e)]:void 0!==e.compositeFilter?e.compositeFilter.filters.map(function(e){return t.fromFilter(e)}).reduce(function(e,t){return e.concat(t)}):_("Unknown filter: "+JSON.stringify(e)):[]},e.prototype.toOrder=function(e){var t=this;if(0!==e.length)return e.map(function(e){return t.toPropertyOrder(e)})},e.prototype.fromOrder=function(e){var t=this;return e.map(function(e){return t.fromPropertyOrder(e)})},e.prototype.toCursor=function(e){var t=this;return{before:e.before,values:e.position.map(function(e){return t.toValue(e)})}},e.prototype.fromCursor=function(e){var t=this,n=!!e.before,i=e.values.map(function(e){return t.fromValue(e)});return new li(i,n)},e.prototype.toDirection=function(e){return fr[e.name]},e.prototype.fromDirection=function(e){switch(e){case"ASCENDING":return ui.ASCENDING;case"DESCENDING":return ui.DESCENDING;default:return}},e.prototype.toOperatorName=function(e){return pr[e.name]},e.prototype.fromOperatorName=function(e){switch(e){case"EQUAL":return ni.EQUAL;case"GREATER_THAN":return ni.GREATER_THAN;case"GREATER_THAN_OR_EQUAL":return ni.GREATER_THAN_OR_EQUAL;case"LESS_THAN":return ni.LESS_THAN;case"LESS_THAN_OR_EQUAL":return ni.LESS_THAN_OR_EQUAL;case"ARRAY_CONTAINS":return ni.ARRAY_CONTAINS;case"IN":return ni.IN;case"ARRAY_CONTAINS_ANY":return ni.ARRAY_CONTAINS_ANY;case"OPERATOR_UNSPECIFIED":return _("Unspecified operator");default:return _("Unknown operator")}},e.prototype.toFieldPathReference=function(e){return{fieldPath:e.canonicalString()}},e.prototype.fromFieldPathReference=function(e){return he.fromServerFormat(e.fieldPath)},e.prototype.toPropertyOrder=function(e){return{field:this.toFieldPathReference(e.field),direction:this.toDirection(e.dir)}},e.prototype.fromPropertyOrder=function(e){return new di(this.fromFieldPathReference(e.field),this.fromDirection(e.direction))},e.prototype.fromFieldFilter=function(e){return ii.create(this.fromFieldPathReference(e.fieldFilter.field),this.fromOperatorName(e.fieldFilter.op),this.fromValue(e.fieldFilter.value))},e.prototype.toUnaryOrFieldFilter=function(e){if(e.op===ni.EQUAL){if(e.value.isEqual(Pt.NAN))return{unaryFilter:{field:this.toFieldPathReference(e.field),op:"IS_NAN"}};if(e.value.isEqual(Et.INSTANCE))return{unaryFilter:{field:this.toFieldPathReference(e.field),op:"IS_NULL"}}}return{fieldFilter:{field:this.toFieldPathReference(e.field),op:this.toOperatorName(e.op),value:this.toValue(e.value)}}},e.prototype.fromUnaryFilter=function(e){switch(e.unaryFilter.op){case"IS_NAN":var t=this.fromFieldPathReference(e.unaryFilter.field);return ii.create(t,ni.EQUAL,Pt.NAN);case"IS_NULL":var n=this.fromFieldPathReference(e.unaryFilter.field);return ii.create(n,ni.EQUAL,Et.INSTANCE);case"OPERATOR_UNSPECIFIED":return _("Unspecified filter");default:return _("Unknown filter")}},e.prototype.toDocumentMask=function(e){var t=[];return e.fields.forEach(function(e){return t.push(e.canonicalString())}),{fieldPaths:t}},e.prototype.fromDocumentMask=function(e){var t=(e.fieldPaths||[]).map(function(e){return he.fromServerFormat(e)});return pt.fromArray(t)},e}(),yr=function(){return function(){this.viewSnap=null,this.targetId=0,this.listeners=[]}}(),br=function(){function e(e){this.syncEngine=e,this.queries=new Yt(function(e){return e.canonicalId()}),this.onlineState=Li.Unknown,this.snapshotsInSyncListeners=new Set,this.syncEngine.subscribe(this)}return e.prototype.listen=function(e){var t=e.query,n=!1,i=this.queries.get(t);return i||(n=!0,i=new yr,this.queries.set(t,i)),i.listeners.push(e),y(!e.applyOnlineStateChange(this.onlineState),"applyOnlineStateChange() shouldn't raise an event for brand-new listeners."),i.viewSnap&&e.onViewSnapshot(i.viewSnap)&&this.raiseSnapshotsInSyncEvent(),n?this.syncEngine.listen(t).then(function(e){return i.targetId=e,e}):Promise.resolve(i.targetId)},e.prototype.unlisten=function(e){return o.__awaiter(this,void 0,void 0,function(){var t,n,i,r;return o.__generator(this,function(o){return n=!1,(i=this.queries.get(t=e.query))&&(r=i.listeners.indexOf(e))>=0&&(i.listeners.splice(r,1),n=0===i.listeners.length),n?(this.queries.delete(t),[2,this.syncEngine.unlisten(t)]):[2]})})},e.prototype.onWatchChange=function(e){for(var t=!1,n=0,i=e;n0||e.syncStateChanged,"We got a new snapshot with no changes?"),!this.options.includeMetadataChanges){for(var t=[],n=0,i=e.docChanges;n0||!!(e.syncStateChanged||this.snap&&this.snap.hasPendingWrites!==e.hasPendingWrites)&&!0===this.options.includeMetadataChanges},e.prototype.raiseInitialEvent=function(e){y(!this.raisedInitialEvent,"Trying to raise initial events for second time"),e=Wi.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache),this.raisedInitialEvent=!0,this.queryObserver.next(e)},e}(),Cr=function(){function e(e,t,n,i){this.targetId=e,this.fromCache=t,this.addedKeys=n,this.removedKeys=i}return e.fromSnapshot=function(t,n){for(var i=Be(),r=Be(),o=0,a=n.docChanges;o0&&this.isRetryableTransactionError(e)?(this.retries-=1,this.asyncQueue.enqueueAndForget(function(){return t.runWithBackOff(),Promise.resolve()})):this.deferred.reject(e)},e.prototype.isRetryableTransactionError=function(e){if("FirebaseError"===e.name){var t=e.code;return"aborted"===t||"failed-precondition"===t||!Fi(t)}return!1},e}(),Tr="SyncEngine",Er=function(){return function(e,t,n){this.query=e,this.targetId=t,this.view=n}}(),Ir=function(){return function(e){this.key=e,this.receivedDocument=!1}}(),Dr=function(){function e(e,t,n,i){this.localStore=e,this.remoteStore=t,this.sharedClientState=n,this.currentUser=i,this.syncEngineListener=null,this.queryViewsByQuery=new Yt(function(e){return e.canonicalId()}),this.queriesByTarget={},this.limboTargetsByKey=new ke(fe.comparator),this.limboResolutionsByTarget={},this.limboDocumentRefs=new mi,this.mutationUserCallbacks={},this.pendingWritesCallbacks=new Map,this.limboTargetIdGenerator=ct.forSyncEngine(),this.isPrimary=void 0,this.onlineState=Li.Unknown}return Object.defineProperty(e.prototype,"isPrimaryClient",{get:function(){return!0===this.isPrimary},enumerable:!0,configurable:!0}),e.prototype.subscribe=function(e){y(null!==e,"SyncEngine listener cannot be null"),y(null===this.syncEngineListener,"SyncEngine already has a subscriber."),this.syncEngineListener=e},e.prototype.listen=function(e){return o.__awaiter(this,void 0,void 0,function(){var t,n,i,r,a;return o.__generator(this,function(o){switch(o.label){case 0:return this.assertSubscribed("listen()"),(i=this.queryViewsByQuery.get(e))?(this.sharedClientState.addLocalQueryTarget(t=i.targetId),n=i.view.computeInitialSnapshot(),[3,4]):[3,1];case 1:return[4,this.localStore.allocateTarget(e.toTarget())];case 2:return r=o.sent(),a=this.sharedClientState.addLocalQueryTarget(r.targetId),[4,this.initializeViewAndComputeSnapshot(e,t=r.targetId,"current"===a)];case 3:n=o.sent(),this.isPrimary&&this.remoteStore.listen(r),o.label=4;case 4:return this.syncEngineListener.onWatchChange([n]),[2,t]}})})},e.prototype.initializeViewAndComputeSnapshot=function(e,t,n){return o.__awaiter(this,void 0,void 0,function(){var i,r,a,s,c,u;return o.__generator(this,function(o){switch(o.label){case 0:return[4,this.localStore.executeQuery(e,!0)];case 1:return i=o.sent(),r=new kr(e,i.remoteKeys),a=r.computeDocChanges(i.documents),s=Gi.createSynthesizedTargetChangeForCurrentChange(t,n&&this.onlineState!==Li.Offline),y(0===(c=r.applyChanges(a,!0===this.isPrimary,s)).limboChanges.length,"View returned limbo docs before target ack from the server."),y(!!c.snapshot,"applyChanges for new view should always return a snapshot"),u=new Er(e,t,r),this.queryViewsByQuery.set(e,u),this.queriesByTarget[t]||(this.queriesByTarget[t]=[]),this.queriesByTarget[t].push(e),[2,c.snapshot]}})})},e.prototype.synchronizeViewAndComputeSnapshot=function(e){return o.__awaiter(this,void 0,void 0,function(){var t,n;return o.__generator(this,function(i){switch(i.label){case 0:return[4,this.localStore.executeQuery(e.query,!0)];case 1:return t=i.sent(),n=e.view.synchronizeWithPersistedState(t),this.isPrimary&&this.updateTrackedLimbos(e.targetId,n.limboChanges),[2,n]}})})},e.prototype.unlisten=function(e){return o.__awaiter(this,void 0,void 0,function(){var t,n,i=this;return o.__generator(this,function(r){switch(r.label){case 0:return this.assertSubscribed("unlisten()"),y(!!(t=this.queryViewsByQuery.get(e)),"Trying to unlisten on query not found:"+e),(n=this.queriesByTarget[t.targetId]).length>1?(this.queriesByTarget[t.targetId]=n.filter(function(t){return!t.isEqual(e)}),this.queryViewsByQuery.delete(e),[2]):this.isPrimary?(this.sharedClientState.removeLocalQueryTarget(t.targetId),this.sharedClientState.isActiveQueryTarget(t.targetId)?[3,2]:[4,this.localStore.releaseTarget(t.targetId,!1).then(function(){i.sharedClientState.clearQueryState(t.targetId),i.remoteStore.unlisten(t.targetId),i.removeAndCleanupTarget(t.targetId)}).catch($n)]):[3,3];case 1:r.sent(),r.label=2;case 2:return[3,5];case 3:return this.removeAndCleanupTarget(t.targetId),[4,this.localStore.releaseTarget(t.targetId,!0)];case 4:r.sent(),r.label=5;case 5:return[2]}})})},e.prototype.write=function(e,t){return o.__awaiter(this,void 0,void 0,function(){var n;return o.__generator(this,function(i){switch(i.label){case 0:return this.assertSubscribed("write()"),[4,this.localStore.localWrite(e)];case 1:return n=i.sent(),this.sharedClientState.addPendingMutation(n.batchId),this.addMutationCallback(n.batchId,t),[4,this.emitNewSnapsAndNotifyLocalStore(n.changes)];case 2:return i.sent(),[4,this.remoteStore.fillWritePipeline()];case 3:return i.sent(),[2]}})})},e.prototype.runTransaction=function(e,t,n){new xr(e,this.remoteStore,t,n).run()},e.prototype.applyRemoteEvent=function(e){return o.__awaiter(this,void 0,void 0,function(){var t,n=this;return o.__generator(this,function(i){switch(i.label){case 0:this.assertSubscribed("applyRemoteEvent()"),i.label=1;case 1:return i.trys.push([1,4,,6]),[4,this.localStore.applyRemoteEvent(e)];case 2:return t=i.sent(),E(e.targetChanges,function(e,t){var i=n.limboResolutionsByTarget[Number(e)];i&&(y(t.addedDocuments.size+t.modifiedDocuments.size+t.removedDocuments.size<=1,"Limbo resolution for single document contains multiple changes."),t.addedDocuments.size>0?i.receivedDocument=!0:t.modifiedDocuments.size>0?y(i.receivedDocument,"Received change for limbo target document without add."):t.removedDocuments.size>0&&(y(i.receivedDocument,"Received remove for limbo target document without add."),i.receivedDocument=!1))}),[4,this.emitNewSnapsAndNotifyLocalStore(t,e)];case 3:return i.sent(),[3,6];case 4:return[4,$n(i.sent())];case 5:return i.sent(),[3,6];case 6:return[2]}})})},e.prototype.applyOnlineStateChange=function(e,t){if(this.isPrimary&&t===Ri.RemoteStore||!this.isPrimary&&t===Ri.SharedClientState){this.assertSubscribed("applyOnlineStateChange()");var n=[];this.queryViewsByQuery.forEach(function(t,i){var r=i.view.applyOnlineStateChange(e);y(0===r.limboChanges.length,"OnlineState should not affect limbo documents."),r.snapshot&&n.push(r.snapshot)}),this.syncEngineListener.onOnlineStateChange(e),this.syncEngineListener.onWatchChange(n),this.onlineState=e,this.isPrimary&&this.sharedClientState.setOnlineState(e)}},e.prototype.rejectListen=function(e,t){return o.__awaiter(this,void 0,void 0,function(){var n,i,r,a,s,c=this;return o.__generator(this,function(o){switch(o.label){case 0:return this.assertSubscribed("rejectListens()"),this.sharedClientState.updateQueryState(e,"rejected",t),(i=(n=this.limboResolutionsByTarget[e])&&n.key)?(this.limboTargetsByKey=this.limboTargetsByKey.remove(i),delete this.limboResolutionsByTarget[e],r=(r=new ke(fe.comparator)).insert(i,new zt(i,Se.forDeletedDoc())),a=Be().add(i),s=new Yi(Se.MIN,{},new Ie(J),r,a),[2,this.applyRemoteEvent(s)]):[3,1];case 1:return[4,this.localStore.releaseTarget(e,!1).then(function(){return c.removeAndCleanupTarget(e,t)}).catch($n)];case 2:o.sent(),o.label=3;case 3:return[2]}})})},e.prototype.applyBatchState=function(e,t,n){return o.__awaiter(this,void 0,void 0,function(){var i;return o.__generator(this,function(r){switch(r.label){case 0:return this.assertSubscribed("applyBatchState()"),[4,this.localStore.lookupMutationDocuments(e)];case 1:return null===(i=r.sent())?(g(Tr,"Cannot apply mutation batch with id: "+e),[2]):"pending"!==t?[3,3]:[4,this.remoteStore.fillWritePipeline()];case 2:return r.sent(),[3,4];case 3:"acknowledged"===t||"rejected"===t?(this.processUserCallback(e,n||null),this.localStore.removeCachedMutationBatchMetadata(e)):_("Unknown batchState: "+t),r.label=4;case 4:return[4,this.emitNewSnapsAndNotifyLocalStore(i)];case 5:return r.sent(),[2]}})})},e.prototype.applySuccessfulWrite=function(e){return o.__awaiter(this,void 0,void 0,function(){var t,n;return o.__generator(this,function(i){switch(i.label){case 0:this.assertSubscribed("applySuccessfulWrite()"),this.processUserCallback(t=e.batch.batchId,null),this.triggerPendingWritesCallbacks(t),i.label=1;case 1:return i.trys.push([1,4,,6]),[4,this.localStore.acknowledgeBatch(e)];case 2:return n=i.sent(),this.sharedClientState.updateMutationState(t,"acknowledged"),[4,this.emitNewSnapsAndNotifyLocalStore(n)];case 3:return i.sent(),[3,6];case 4:return[4,$n(i.sent())];case 5:return i.sent(),[3,6];case 6:return[2]}})})},e.prototype.rejectFailedWrite=function(e,t){return o.__awaiter(this,void 0,void 0,function(){var n;return o.__generator(this,function(i){switch(i.label){case 0:this.assertSubscribed("rejectFailedWrite()"),this.processUserCallback(e,t),this.triggerPendingWritesCallbacks(e),i.label=1;case 1:return i.trys.push([1,4,,6]),[4,this.localStore.rejectBatch(e)];case 2:return n=i.sent(),this.sharedClientState.updateMutationState(e,"rejected",t),[4,this.emitNewSnapsAndNotifyLocalStore(n)];case 3:return i.sent(),[3,6];case 4:return[4,$n(i.sent())];case 5:return i.sent(),[3,6];case 6:return[2]}})})},e.prototype.registerPendingWritesCallback=function(e){return o.__awaiter(this,void 0,void 0,function(){var t,n;return o.__generator(this,function(i){switch(i.label){case 0:return this.remoteStore.canUseNetwork()||g(Tr,"The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),[4,this.localStore.getHighestUnacknowledgedBatchId()];case 1:return(t=i.sent())===He?(e.resolve(),[2]):((n=this.pendingWritesCallbacks.get(t)||[]).push(e),this.pendingWritesCallbacks.set(t,n),[2])}})})},e.prototype.triggerPendingWritesCallbacks=function(e){(this.pendingWritesCallbacks.get(e)||[]).forEach(function(e){e.resolve()}),this.pendingWritesCallbacks.delete(e)},e.prototype.rejectOutstandingPendingWritesCallbacks=function(e){this.pendingWritesCallbacks.forEach(function(t){t.forEach(function(t){t.reject(new O(C.CANCELLED,e))})}),this.pendingWritesCallbacks.clear()},e.prototype.addMutationCallback=function(e,t){var n=this.mutationUserCallbacks[this.currentUser.toKey()];n||(n=new ke(J)),n=n.insert(e,t),this.mutationUserCallbacks[this.currentUser.toKey()]=n},e.prototype.processUserCallback=function(e,t){var n=this.mutationUserCallbacks[this.currentUser.toKey()];if(n){var i=n.get(e);i&&(y(e===n.minKey(),"Mutation callbacks processed out-of-order?"),t?i.reject(t):i.resolve(),n=n.remove(e)),this.mutationUserCallbacks[this.currentUser.toKey()]=n}},e.prototype.removeAndCleanupTarget=function(e,t){var n=this;void 0===t&&(t=null),this.sharedClientState.removeLocalQueryTarget(e),y(this.queriesByTarget[e]&&0!==this.queriesByTarget[e].length,"There are no queries mapped to target id "+e);for(var i=0,r=this.queriesByTarget[e];i() instead."),so=/^__.*__$/,co=function(){function e(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}return e.prototype.toMutations=function(e,t){var n=[];return n.push(null!==this.fieldMask?new wt(e,this.data,this.fieldMask,t):new bt(e,this.data,t)),this.fieldTransforms.length>0&&n.push(new Ct(e,this.fieldTransforms)),n},e}(),uo=function(){function e(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}return e.prototype.toMutations=function(e,t){var n=[new wt(e,this.data,this.fieldMask,t)];return this.fieldTransforms.length>0&&n.push(new Ct(e,this.fieldTransforms)),n},e}(),lo=function(e){return e[e.Set=0]="Set",e[e.Update=1]="Update",e[e.MergeSet=2]="MergeSet",e[e.Argument=3]="Argument",e[e.ArrayArgument=4]="ArrayArgument",e}({});function ho(e){switch(e){case lo.Set:case lo.MergeSet:case lo.Update:return!0;case lo.Argument:case lo.ArrayArgument:return!1;default:throw _("Unexpected case for UserDataSource: "+e)}}var fo=function(){function e(e,t,n,i,r,o){this.dataSource=e,this.methodName=t,this.path=n,this.arrayElement=i,void 0===r&&this.validatePath(),this.arrayElement=void 0!==i&&i,this.fieldTransforms=r||[],this.fieldMask=o||[]}return e.prototype.childContextForField=function(t){var n=null==this.path?null:this.path.child(t),i=new e(this.dataSource,this.methodName,n,!1,this.fieldTransforms,this.fieldMask);return i.validatePathSegment(t),i},e.prototype.childContextForFieldPath=function(t){var n=null==this.path?null:this.path.child(t),i=new e(this.dataSource,this.methodName,n,!1,this.fieldTransforms,this.fieldMask);return i.validatePath(),i},e.prototype.childContextForArray=function(t){return new e(this.dataSource,this.methodName,null,!0,this.fieldTransforms,this.fieldMask)},e.prototype.createError=function(e){var t=null===this.path||this.path.isEmpty()?"":" (found in field "+this.path.toString()+")";return new O(C.INVALID_ARGUMENT,"Function "+this.methodName+"() called with invalid data. "+e+t)},e.prototype.contains=function(e){return void 0!==this.fieldMask.find(function(t){return e.isPrefixOf(t)})||void 0!==this.fieldTransforms.find(function(t){return e.isPrefixOf(t.field)})},e.prototype.validatePath=function(){if(null!==this.path)for(var e=0;e0&&t.fieldMask.push(t.path):E(e,function(e,r){var o=n.parseData(r,t.childContextForField(e));null!=o&&(i=i.insert(e,o))}),new Vt(i)},e.prototype.parseArray=function(e,t){for(var n=[],i=0,r=0,o=e;r0,"FieldValue.delete() at the top level should have already been handled."),t.createError("FieldValue.delete() can only appear at the top level of your update data")):t.createError("FieldValue.delete() cannot be used with set() unless you pass {merge:true}");t.fieldMask.push(t.path)}else if(e instanceof no)t.fieldTransforms.push(new gt(t.path,or.instance));else if(e instanceof io){var n=this.parseArrayTransformElements(e._methodName,e._elements),i=new ar(n);t.fieldTransforms.push(new gt(t.path,i))}else if(e instanceof ro){n=this.parseArrayTransformElements(e._methodName,e._elements);var r=new sr(n);t.fieldTransforms.push(new gt(t.path,r))}else if(e instanceof oo){var o=this.parseQueryValue("FieldValue.increment",e._operand),a=new cr(o);t.fieldTransforms.push(new gt(t.path,a))}else _("Unknown FieldValue type: "+e)},e.prototype.parseScalarValue=function(e,t){if(null===e)return Et.INSTANCE;if("number"==typeof e)return Jn(e)?new At(e):new Pt(e);if("boolean"==typeof e)return It.of(e);if("string"==typeof e)return new Lt(e);if(e instanceof Date)return new Rt(Oe.fromDate(e));if(e instanceof Oe)return new Rt(new Oe(e.seconds,1e3*Math.floor(e.nanoseconds/1e3)));if(e instanceof rr)return new Bt(e);if(e instanceof ne)return new Nt(e);if(e instanceof po)return new Ft(e.databaseId,e.key);throw t.createError("Unsupported field value: "+U(e))},e.prototype.parseArrayTransformElements=function(e,t){var n=this;return t.map(function(t,i){var r=new fo(lo.Argument,e,he.EMPTY_PATH);return n.parseData(t,r.childContextForArray(i))})},e}();function mo(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof Oe||e instanceof rr||e instanceof ne||e instanceof po||e instanceof eo)}function vo(e,t,n){if(!mo(n)||!H(n)){var i=U(n);throw t.createError("an object"===i?e+" a custom object":e+" "+i)}}function _o(e,t){if(t instanceof Wr)return t._internalPath;if("string"==typeof t)return yo(e,t);throw new O(C.INVALID_ARGUMENT,"Function "+e+"() called with invalid data. Field path arguments must be of type string or FieldPath.")}function yo(e,t){try{return function(e){if(e.search(Yr)>=0)throw new O(C.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not contain '~', '*', '/', '[', or ']'");try{return new(Wr.bind.apply(Wr,o.__spreadArrays([void 0],e.split("."))))}catch(t){throw new O(C.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'")}}(t)._internalPath}catch(i){var n=bo(i);throw new O(C.INVALID_ARGUMENT,"Function "+e+"() called with invalid data. "+n)}}function bo(e){return e instanceof Error?e.message:e.toString()}var wo=Dn.COLLECTION_DISABLED,Co=function(){function e(e){if(void 0===e.host){if(void 0!==e.ssl)throw new O(C.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else N("settings","non-empty string","host",e.host),this.host=e.host,F("settings","boolean","ssl",e.ssl),this.ssl=x(e.ssl,!0);if(W("settings",e,["host","ssl","credentials","timestampsInSnapshots","cacheSizeBytes","experimentalForceLongPolling"]),F("settings","object","credentials",e.credentials),this.credentials=e.credentials,F("settings","boolean","timestampsInSnapshots",e.timestampsInSnapshots),!0===e.timestampsInSnapshots?m("\n The timestampsInSnapshots setting now defaults to true and you no\n longer need to explicitly set it. In a future release, the setting\n will be removed entirely and so it is recommended that you remove it\n from your firestore.settings() call now."):!1===e.timestampsInSnapshots&&m("\n The timestampsInSnapshots setting will soon be removed. YOU MUST UPDATE\n YOUR CODE.\n\n To hide this warning, stop using the timestampsInSnapshots setting in your\n firestore.settings({ ... }) call.\n\n Once you remove the setting, Timestamps stored in Cloud Firestore will be\n read back as Firebase Timestamp objects instead of as system Date objects.\n So you will also need to update code expecting a Date to instead expect a\n Timestamp. For example:\n\n // Old:\n const date = snapshot.get('created_at');\n // New:\n const timestamp = snapshot.get('created_at'); const date =\n timestamp.toDate();\n\n Please audit all existing usages of Date when you enable the new\n behavior."),this.timestampsInSnapshots=x(e.timestampsInSnapshots,!0),F("settings","number","cacheSizeBytes",e.cacheSizeBytes),void 0===e.cacheSizeBytes)this.cacheSizeBytes=Dn.DEFAULT_CACHE_SIZE_BYTES;else{if(e.cacheSizeBytes!==wo&&e.cacheSizeBytes=0)throw new O(C.INVALID_ARGUMENT,"Invalid collection ID '"+e+"' passed to function Firestore.collectionGroup(). Collection IDs must not contain '/'.");return this.ensureClientConfigured(),new Do(new ei(le.EMPTY_PATH,e),this)},e.prototype.runTransaction=function(e){var t=this;return M("Firestore.runTransaction",arguments,1),R("Firestore.runTransaction","function",1,e),this.ensureClientConfigured().transaction(function(n){return e(new So(t,n))})},e.prototype.batch=function(){return this.ensureClientConfigured(),new ko(this)},Object.defineProperty(e,"logLevel",{get:function(){switch(f()){case h.DEBUG:return"debug";case h.ERROR:return"error";case h.SILENT:return"silent";default:return _("Unknown log level: "+f())}},enumerable:!0,configurable:!0}),e.setLogLevel=function(e){switch(M("Firestore.setLogLevel",arguments,1),R("Firestore.setLogLevel","non-empty string",1,e),e){case"debug":p(h.DEBUG);break;case"error":p(h.ERROR);break;case"silent":p(h.SILENT);break;default:throw new O(C.INVALID_ARGUMENT,"Invalid log level: "+e)}},e.prototype._areTimestampsInSnapshotsEnabled=function(){return this._settings.timestampsInSnapshots},e}(),So=function(){function e(e,t){this._firestore=e,this._transaction=t}return e.prototype.get=function(e){var t=this;M("Transaction.get",arguments,1);var n=jo("Transaction.get",e,this._firestore);return this._transaction.lookup([n._key]).then(function(e){if(!e||1!==e.length)return _("Mismatch in docs returned from document lookup.");var i=e[0];if(i instanceof zt)return new Eo(t._firestore,n._key,null,!1,!1,n._converter);if(i instanceof Ut)return new Eo(t._firestore,n._key,i,!1,!1,n._converter);throw _("BatchGetDocumentsRequest returned unexpected document type: "+i.constructor.name)})},e.prototype.set=function(e,t,n){P("Transaction.set",arguments,2,3);var i=jo("Transaction.set",e,this._firestore);n=Po("Transaction.set",n);var r=Fo(i._converter,t,"Transaction.set"),o=r[0],a=r[1],s=n.merge||n.mergeFields?this._firestore._dataConverter.parseMergeData(a,o,n.mergeFields):this._firestore._dataConverter.parseSetData(a,o);return this._transaction.set(i._key,s),this},e.prototype.update=function(e,t,n){for(var i,r,o=[],a=3;a0?[2,this._firestore.ensureClientConfigured().write(this._mutations)]:[2]})})},e.prototype.verifyNotCommitted=function(){if(this._committed)throw new O(C.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},e}(),xo=function(){function e(e,t,n){this._key=e,this.firestore=t,this._converter=n,this._firestoreClient=this.firestore.ensureClientConfigured()}return e.forPath=function(t,n,i){if(t.length%2!=0)throw new O(C.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t.canonicalString()+" has "+t.length);return new e(new fe(t),n,i)},Object.defineProperty(e.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return new Ao(this._key.path.popLast(),this.firestore,this._converter)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._key.path.canonicalString()},enumerable:!0,configurable:!0}),e.prototype.collection=function(e){if(M("DocumentReference.collection",arguments,1),R("DocumentReference.collection","non-empty string",1,e),!e)throw new O(C.INVALID_ARGUMENT,"Must provide a non-empty collection name to collection()");var t=le.fromString(e);return new Ao(this._key.path.child(t),this.firestore)},e.prototype.isEqual=function(t){if(!(t instanceof e))throw Y("isEqual","DocumentReference",1,t);return this.firestore===t.firestore&&this._key.isEqual(t._key)&&this._converter===t._converter},e.prototype.set=function(e,t){P("DocumentReference.set",arguments,1,2),t=Po("DocumentReference.set",t);var n=Fo(this._converter,e,"DocumentReference.set"),i=n[0],r=n[1],o=t.merge||t.mergeFields?this.firestore._dataConverter.parseMergeData(r,i,t.mergeFields):this.firestore._dataConverter.parseSetData(r,i);return this._firestoreClient.write(o.toMutations(this._key,_t.NONE))},e.prototype.update=function(e,t){for(var n,i=[],r=2;r=",">","array-contains","in","array-contains-any"];V("Query.where",o,2,n);var a=_o("Query.where",t),s=ni.fromString(n);if(a.isKeyField()){if(s===ni.ARRAY_CONTAINS||s===ni.ARRAY_CONTAINS_ANY)throw new O(C.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+s.toString()+"' queries on FieldPath.documentId().");if(s===ni.IN){this.validateDisjunctiveFilterElements(i,s);for(var c=[],u=0,l=i;u0)throw new O(C.INVALID_ARGUMENT,"Too many arguments provided to "+e+"().");var r=t;if(!r.exists)throw new O(C.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+e+"().");return this.boundFromDocument(e,r._document,i)}var o=[t].concat(n);return this.boundFromFields(e,o,i)},e.prototype.boundFromDocument=function(e,t,n){for(var i=[],r=0,o=this._query.orderBy;ri.length)throw new O(C.INVALID_ARGUMENT,"Too many arguments provided to "+e+"(). The number of arguments must be less than or equal to the number of Query.orderBy() clauses");for(var r=[],o=0;o10)throw new O(C.INVALID_ARGUMENT,"Invalid Query. '"+t.toString()+"' filters support a maximum of 10 elements in the value array.");if(e.indexOf(null)>=0)throw new O(C.INVALID_ARGUMENT,"Invalid Query. '"+t.toString()+"' filters cannot contain 'null' in the value array.");if(e.filter(function(e){return Number.isNaN(e)}).length>0)throw new O(C.INVALID_ARGUMENT,"Invalid Query. '"+t.toString()+"' filters cannot contain 'NaN' in the value array.")},e.prototype.validateNewFilter=function(e){if(e instanceof ii){var t=[ni.ARRAY_CONTAINS,ni.ARRAY_CONTAINS_ANY],n=[ni.IN,ni.ARRAY_CONTAINS_ANY],i=t.indexOf(e.op)>=0,r=n.indexOf(e.op)>=0;if(e.isInequality()){var o=this._query.getInequalityFilterField();if(null!==o&&!o.isEqual(e.field))throw new O(C.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, >, or >=) must be on the same field. But you have inequality filters on '"+o.toString()+"' and '"+e.field.toString()+"'");var a=this._query.getFirstOrderByField();null!==a&&this.validateOrderByAndInequalityMatch(e.field,a)}else if(r||i){var s=null;if(r&&(s=this._query.findFilterOperator(n)),null===s&&i&&(s=this._query.findFilterOperator(t)),null!=s)throw new O(C.INVALID_ARGUMENT,s===e.op?"Invalid query. You cannot use more than one '"+e.op.toString()+"' filter.":"Invalid query. You cannot use '"+e.op.toString()+"' filters with '"+s.toString()+"' filters.")}}},e.prototype.validateNewOrderBy=function(e){if(null===this._query.getFirstOrderByField()){var t=this._query.getInequalityFilterField();null!==t&&this.validateOrderByAndInequalityMatch(t,e.field)}},e.prototype.validateOrderByAndInequalityMatch=function(e,t){if(!t.isEqual(e))throw new O(C.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, >, or >=) on field '"+e.toString()+"' and so you must also use '"+e.toString()+"' as your first Query.orderBy(), but your first Query.orderBy() is on field '"+t.toString()+"' instead.")},e}(),Mo=function(){function e(e,t,n,i){this._firestore=e,this._originalQuery=t,this._snapshot=n,this._converter=i,this._cachedChanges=null,this._cachedChangesIncludeMetadataChanges=null,this.metadata=new To(n.hasPendingWrites,n.fromCache)}return Object.defineProperty(e.prototype,"docs",{get:function(){var e=[];return this.forEach(function(t){return e.push(t)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return this._snapshot.docs.isEmpty()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._snapshot.docs.size},enumerable:!0,configurable:!0}),e.prototype.forEach=function(e,t){var n=this;P("QuerySnapshot.forEach",arguments,1,2),R("QuerySnapshot.forEach","function",1,e),this._snapshot.docs.forEach(function(i){e.call(t,n.convertToDocumentImpl(i))})},Object.defineProperty(e.prototype,"query",{get:function(){return new Do(this._originalQuery,this._firestore,this._converter)},enumerable:!0,configurable:!0}),e.prototype.docChanges=function(e){e&&(W("QuerySnapshot.docChanges",e,["includeMetadataChanges"]),F("QuerySnapshot.docChanges","boolean","includeMetadataChanges",e.includeMetadataChanges));var t=!(!e||!e.includeMetadataChanges);if(t&&this._snapshot.excludesMetadataChanges)throw new O(C.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=function(e,t,n,i){if(n.oldDocs.isEmpty()){var r,o=0;return n.docChanges.map(function(t){var a=new Io(e,t.doc.key,t.doc,n.fromCache,n.mutatedKeys.has(t.doc.key),i);return y(t.type===Hi.Added,"Invalid event type for first snapshot"),y(!r||n.query.docComparator(r,t.doc)<0,"Got added events in wrong order"),r=t.doc,{type:"added",doc:a,oldIndex:-1,newIndex:o++}})}var a=n.oldDocs;return n.docChanges.filter(function(e){return t||e.type!==Hi.Metadata}).map(function(t){var r=new Io(e,t.doc.key,t.doc,n.fromCache,n.mutatedKeys.has(t.doc.key),i),o=-1,s=-1;return t.type!==Hi.Added&&(y((o=a.indexOf(t.doc.key))>=0,"Index for document not found"),a=a.delete(t.doc.key)),t.type!==Hi.Removed&&(s=(a=a.add(t.doc)).indexOf(t.doc.key)),{type:No(t.type),doc:r,oldIndex:o,newIndex:s}})}(this._firestore,t,this._snapshot,this._converter),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges},e.prototype.isEqual=function(t){if(!(t instanceof e))throw Y("isEqual","QuerySnapshot",1,t);return this._firestore===t._firestore&&this._originalQuery.isEqual(t._originalQuery)&&this._snapshot.isEqual(t._snapshot)&&this._converter===t._converter},e.prototype.convertToDocumentImpl=function(e){return new Io(this._firestore,e.key,e,this.metadata.fromCache,this._snapshot.mutatedKeys.has(e.key),this._converter)},e}();o.__spreadArrays(["length","forEach","map"],"undefined"!=typeof Symbol?[Symbol.iterator]:[]).forEach(function(e){try{Object.defineProperty(Mo.prototype.docChanges,e,{get:function(){return function(){throw new O(C.INVALID_ARGUMENT,'QuerySnapshot.docChanges has been changed from a property into a method, so usages like "querySnapshot.docChanges" should become "querySnapshot.docChanges()"')}()}})}catch(t){}});var Ao=function(e){function t(t,n,i){var r=e.call(this,ei.atPath(t),n,i)||this;if(r._path=t,t.length%2!=1)throw new O(C.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+t.canonicalString()+" has "+t.length);return r}return o.__extends(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._query.path.lastSegment()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var e=this._query.path.popLast();return e.isEmpty()?null:new xo(new fe(e),this.firestore)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._query.path.canonicalString()},enumerable:!0,configurable:!0}),t.prototype.doc=function(e){if(P("CollectionReference.doc",arguments,0,1),0===arguments.length&&(e=X.newId()),R("CollectionReference.doc","non-empty string",1,e),""===e)throw new O(C.INVALID_ARGUMENT,"Document path must be a non-empty string");var t=le.fromString(e);return xo.forPath(this._query.path.child(t),this.firestore,this._converter)},t.prototype.add=function(e){M("CollectionReference.add",arguments,1),R("CollectionReference.add","object",1,e);var t=this.doc();return t.set(e).then(function(){return t})},t.prototype.withConverter=function(e){return new t(this._path,this.firestore,e)},t}(Do);function Po(e,t){if(void 0===t)return{merge:!1};if(W(e,t,["merge","mergeFields"]),F(e,"boolean","merge",t.merge),"mergeFields","a string or a FieldPath",void 0!==(n=t.mergeFields)&&function(e,t,n,i,r){if(!(i instanceof Array))throw new O(C.INVALID_ARGUMENT,"Function "+e+"() requires its "+"mergeFields option to be an array, but it was: "+U(i));for(var o=0;o0){var i=c.getResponseJson().error;if(i&&i.status&&i.message){var r=(o=i.status.toLowerCase().replace("_","-"),Object.values(C).indexOf(o)>=0?o:C.UNKNOWN);s(new O(r,i.message))}else s(new O(C.UNKNOWN,"Server responded with status "+c.getStatus()))}else g(Zo,'RPC "'+e+'" failed'),s(new O(C.UNAVAILABLE,"Connection failed."));break;default:_('RPC "'+e+'" failed with unanticipated webchannel error '+c.getLastErrorCode()+": "+c.getLastError()+", giving up.")}}finally{g(Zo,'RPC "'+e+'" completed.')}var o});var l=o.__assign({},t);delete l.database;var d=JSON.stringify(l);g(Zo,"XHR sending: ",r+" "+d);var h={"Content-Type":"text/plain"};i.modifyHeadersForRequest(h,n),c.send(r,"POST",d,h,15)})},e.prototype.invokeStreamingRPC=function(e,t,n){return this.invokeRPC(e,t,n)},e.prototype.openStream=function(e,t){var n=[this.baseUrl,"/","google.firestore.v1.Firestore","/",e,"/channel"],i=u.createWebChannelTransport(),r={backgroundChannelTest:!0,httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling};this.modifyHeadersForRequest(r.initMessageHeaders,t),s.isReactNative()||(r.httpHeadersOverwriteParam="$httpHeaders");var o=n.join("");g(Zo,"Creating WebChannel: "+o+" "+r);var a=i.createWebChannel(o,r),c=!1,l=!1,d=new Qo({sendFn:function(e){l?g(Zo,"Not sending because WebChannel is closed:",e):(c||(g(Zo,"Opening WebChannel transport."),a.open(),c=!0),g(Zo,"WebChannel sending:",e),a.send(e))},closeFn:function(){return a.close()}}),h=function(e,t){a.listen(e,function(e){try{t(e)}catch(n){setTimeout(function(){throw n},0)}})};return h(u.WebChannel.EventType.OPEN,function(){l||g(Zo,"WebChannel transport opened.")}),h(u.WebChannel.EventType.CLOSE,function(){l||(l=!0,g(Zo,"WebChannel transport closed"),d.callOnClose())}),h(u.WebChannel.EventType.ERROR,function(e){l||(l=!0,g(Zo,"WebChannel transport errored:",e),d.callOnClose(new O(C.UNAVAILABLE,"The operation could not be completed")))}),h(u.WebChannel.EventType.MESSAGE,function(e){var t;if(!l){var n=e.data[0];y(!!n,"Got a webchannel message without data.");var i=n.error||(null===(t=n[0])||void 0===t?void 0:t.error);if(i){g(Zo,"WebChannel received error:",i);var r=i.status,o=function(e){var t=Ni[e];if(void 0!==t)return Bi(t)}(r),s=i.message;void 0===o&&(o=C.INTERNAL,s="Unknown error status: "+r+" with message "+i.message),l=!0,d.callOnClose(new O(o,s)),a.close()}else g(Zo,"WebChannel received:",n),d.callOnMessage(n)}}),setTimeout(function(){d.callOnOpen()},0),d},e.prototype.makeUrl=function(e){var t=ea[e];return y(void 0!==t,"Unknown REST mapping for: "+e),this.baseUrl+"/v1/projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database+"/documents:"+t},e}();function ia(e){(function(e){e.INTERNAL.registerComponent(new c.Component("firestore",function(e){var t=e.getProvider("app").getImmediate();return new Oo(t,e.getProvider("auth-internal"))},"PUBLIC").setServiceProps(function(e){y(e&&"object"==typeof e,"shallowCopy() expects object parameter.");var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}(qo)))})(e),e.registerVersion("@firebase/firestore","1.9.0")}b.setPlatform(new(function(){function e(){this.emptyByteString="",this.base64Available="undefined"!=typeof atob}return Object.defineProperty(e.prototype,"document",{get:function(){return"undefined"!=typeof document?document:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"window",{get:function(){return"undefined"!=typeof window?window:null},enumerable:!0,configurable:!0}),e.prototype.loadConnection=function(e){return Promise.resolve(new na(e))},e.prototype.newConnectivityMonitor=function(){return Jo.isAvailable()?new Jo:new Ko},e.prototype.newSerializer=function(e){return new _r(e,{useProto3Json:!0})},e.prototype.formatJSON=function(e){return JSON.stringify(e)},e.prototype.atob=function(e){return atob(e)},e.prototype.btoa=function(e){return btoa(e)},e}())),ia(r),t.registerFirestore=ia},"6MIN":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("ti0F"),r=c(n("OZWN")),o=c(n("hUrc")),a=c(n("kOkc")),s=c(n("GMo6"));function c(e){return e&&e.__esModule?e:{default:e}}var u={tryCreateTag:function(e,t){var n=null;if((0,i.isDefined)(e)){var r;r="number"==typeof e.numberFormat?e.numberFormat:t.registerNumberFormat(e.numberFormat);var s=e.fill;(0,i.isDefined)(s)||(s=a.default.tryCreateFillFromSimpleFormat(e)),n={numberFormatId:r,alignment:o.default.tryCreateTag(e.alignment),fontId:t.registerFont(e.font),fillId:t.registerFill(s)},u.isEmpty(n)&&(n=null)}return n},copy:function(e){var t;return null===e?t=null:(0,i.isDefined)(e)&&(t={},void 0!==e.numberFormat&&(t.numberFormat=e.numberFormat),void 0!==e.fill?t.fill=a.default.copy(e.fill):a.default.copySimpleFormat(e,t),void 0!==e.alignment&&(t.alignment=o.default.copy(e.alignment)),void 0!==e.font&&(t.font=s.default.copy(e.font))),t},areEqual:function(e,t){return u.isEmpty(e)&&u.isEmpty(t)||(0,i.isDefined)(e)&&(0,i.isDefined)(t)&&e.fontId===t.fontId&&e.numberFormatId===t.numberFormatId&&e.fillId===t.fillId&&o.default.areEqual(e.alignment,t.alignment)},isEmpty:function(e){return!(0,i.isDefined)(e)||!(0,i.isDefined)(e.fontId)&&!(0,i.isDefined)(e.numberFormatId)&&!(0,i.isDefined)(e.fillId)&&o.default.isEmpty(e.alignment)},toXml:function(e){var t,n=o.default.isEmpty(e.alignment);return(0,i.isDefined)(e.numberFormatId)&&(t=e.numberFormatId>0?1:0),r.default.toXml("xf",{xfId:0,applyAlignment:n?null:1,fontId:e.fontId,applyNumberFormat:t,fillId:e.fillId,numFmtId:e.numberFormatId},n?null:o.default.toXml(e.alignment))}};t.default=u},"6jZs":function(e,t,n){"use strict";var i=n("FKN7"),r=n("jeLr"),o=n("KAnu").noop,a=n("XCcL"),s=n("imRD"),c=n("YQNt"),u=n("GCD8"),l=n("hMAE"),d=n("f7cP"),h=n("85Zg").register,f=n("DDHz"),p=n("hMwJ"),g=n("+6qP"),m=n("Bw5F"),v="dxListEditDecorator",_=u.addNamespace(a.name,v),y=u.addNamespace(l.active,v),b="dx-list-slide-menu-wrapper",w="dx-list-slide-menu-content",C="dx-list-slide-menu-buttons-container",O="dx-list-slide-menu-buttons",S="dx-list-slide-menu-button";h("menu","slide",f.inherit({_shouldHandleSwipe:!0,_init:function(){this.callBase.apply(this,arguments),this._$buttonsContainer=i("
").addClass(C),r.on(this._$buttonsContainer,y,o),this._$buttons=i("
").addClass(O).appendTo(this._$buttonsContainer),this._renderMenu(),this._renderDeleteButton()},_renderMenu:function(){if(this._menuEnabled()){var e=this._menuItems();if(1===e.length){var t=e[0];this._renderMenuButton(t.text,(function(e){e.stopPropagation(),this._fireAction(t)}).bind(this))}else{var n=i("
").addClass("dx-list-slide-menu");this._menu=this._list._createComponent(n,m,{showTitle:!1,items:e,onItemClick:(function(e){this._fireAction(e.itemData)}).bind(this),integrationOptions:{}}),n.appendTo(this._list.$element());var r=this._renderMenuButton(s.format("dxListEditDecorator-more"),(function(e){e.stopPropagation(),this._menu.show()}).bind(this));this._menu.option("target",r)}}},_renderMenuButton:function(e,t){var n=i("
").addClass(S).addClass("dx-list-slide-menu-button-menu").text(e);return this._$buttons.append(n),r.on(n,_,t),n},_renderDeleteButton:function(){if(this._deleteEnabled()){var e=i("
").addClass(S).addClass("dx-list-slide-menu-button-delete").text(g.isMaterial()?"":s.format("dxListEditDecorator-delete"));r.on(e,_,(function(e){e.stopPropagation(),this._deleteItem()}).bind(this)),this._$buttons.append(e)}},_fireAction:function(e){this._fireMenuAction(i(this._cachedNode),e.action),this._cancelDeleteReadyItem()},modifyElement:function(e){this.callBase.apply(this,arguments);var t=e.$itemElement;t.addClass(b);var n=i("
").addClass(w);t.wrapInner(n)},_getDeleteButtonContainer:function(){return this._$buttonsContainer},handleClick:function(e,t){return!!i(t.target).closest("."+w).length&&this.callBase.apply(this,arguments)},_swipeStartHandler:function(e){this._enablePositioning(e),this._cacheItemData(e),this._setPositions(this._getPositions(0))},_swipeUpdateHandler:function(e,t){var n=this._isRtlEnabled()?-1:1,i=this._isReadyToDelete(e);if(this._getCurrentPositions().content!==this._getStartPositions().content||i||!(t.offset*n>0)){var r=this._cachedItemWidth*t.offset,o=i?-this._cachedButtonWidth*n:0,a=(r+o)*n<0?Math.abs((r+o)/this._cachedButtonWidth):0;return this._setPositions(this._getPositions(a)),!0}t.cancel=!0},_getStartPositions:function(){var e=this._isRtlEnabled();return{content:0,buttonsContainer:e?-this._cachedButtonWidth:this._cachedItemWidth,buttons:-this._cachedButtonWidth*(e?-1:1)}},_getPositions:function(e){var t=this._isRtlEnabled()?-1:1,n=this._getStartPositions();return{content:n.content-e*this._cachedButtonWidth*t,buttonsContainer:n.buttonsContainer-Math.min(e,1)*this._cachedButtonWidth*t,buttons:n.buttons+Math.min(e,1)*this._cachedButtonWidth*t}},_getCurrentPositions:function(){return{content:c.locate(this._$cachedContent).left,buttonsContainer:c.locate(this._$buttonsContainer).left,buttons:c.locate(this._$buttons).left}},_setPositions:function(e){c.move(this._$cachedContent,{left:e.content}),c.move(this._$buttonsContainer,{left:e.buttonsContainer}),c.move(this._$buttons,{left:e.buttons})},_cacheItemData:function(e){e[0]!==this._cachedNode&&(this._$cachedContent=e.find("."+w),this._cachedItemWidth=e.outerWidth(),this._cachedButtonWidth=this._cachedButtonWidth||this._$buttons.outerWidth(),this._$buttonsContainer.width(this._cachedButtonWidth),this._$cachedContent.length&&(this._cachedNode=e[0]))},_minButtonContainerLeftOffset:function(){return this._cachedItemWidth-this._cachedButtonWidth},_swipeEndHandler:function(e,t){this._cacheItemData(e);var n=this._isRtlEnabled()?1:-1,i=this._cachedItemWidth*t.offset,r=!this._isReadyToDelete(e)&&i*n>.2*this._cachedButtonWidth;return this._toggleDeleteReady(e,t.targetOffset===n&&r),!0},_enablePositioning:function(e){p.stop(this._$cachedContent,!0),this.callBase.apply(this,arguments),this._$buttonsContainer.appendTo(e)},_disablePositioning:function(){this.callBase.apply(this,arguments),this._$buttonsContainer.detach()},_animatePrepareDeleteReady:function(){return this._animateToPositions(this._getPositions(1))},_animateForgetDeleteReady:function(e){return this._cacheItemData(e),this._animateToPositions(this._getPositions(0))},_animateToPositions:function(e){var t=this,n=this._getCurrentPositions(),i=Math.min(Math.abs(n.content-e.content)/this._cachedButtonWidth,1);return p.animate(this._$cachedContent,{from:n,to:e,easing:"cubic-bezier(0.075, 0.82, 0.165, 1)",duration:400*i,strategy:"frame",draw:function(e){t._setPositions(e)}})},dispose:function(){this._menu&&this._menu.$element().remove(),this._$buttonsContainer&&this._$buttonsContainer.remove(),this.callBase.apply(this,arguments)}}).include(d))},"6jrf":function(e,t,n){"use strict";n.d(t,"a",function(){return O});var i,r=n("c7TG"),o=n("aiMf"),a=n("ptfe"),s=n("FbS+"),c=n("EcEN"),u=n("mjQz"),l=n("Xzt5"),d=n("pptJ"),h=n("fXoL"),f=(i=function(e,t){return(i=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(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=["locList"];function g(e,t){1&e&&h.bc(0,"app-top-menu")}function m(e,t){if(1&e&&(h.gc(0,"div",25),h.Rc(1),h.fc()),2&e){var n=h.qc();h.Ob(1),h.Sc(n.errorMessage)}}function v(e,t){if(1&e){var n=h.hc();h.gc(0,"ion-col",26),h.nc("click",function(){h.Ic(n);var e=t.$implicit;return h.qc().tempeartureChange(e.value)}),h.gc(1,"ion-row",27),h.bc(2,"ion-icon",28),h.fc(),h.gc(3,"ion-row",27),h.gc(4,"ion-label"),h.Rc(5),h.fc(),h.fc(),h.fc()}if(2&e){var i=t.$implicit,r=h.qc();h.Sb("highlight-color",i.value===r.tempSelected),h.Ob(2),h.xc("src",i.icon),h.Ob(3),h.Sc(i.name)}}function _(e,t){1&e&&(h.gc(0,"ion-item",8),h.bc(1,"ion-icon",29),h.gc(2,"h4"),h.Rc(3,"Location Type"),h.fc(),h.fc())}function y(e,t){if(1&e){var n=h.hc();h.gc(0,"ion-item",30),h.gc(1,"ion-label",31),h.nc("click",function(){return h.Ic(n),h.qc().openLocationTypeList()}),h.bc(2,"ion-icon",32),h.Rc(3),h.fc(),h.fc()}if(2&e){var i=h.qc();h.Ob(3),h.Tc(" ",null==i.locationTypeSelected?null:i.locationTypeSelected.name," ")}}function b(e,t){if(1&e){var n=h.hc();h.gc(0,"ion-toolbar",33),h.gc(1,"ion-title"),h.Rc(2,"Select Location Type"),h.fc(),h.gc(3,"ion-buttons",34),h.gc(4,"ion-button",31),h.nc("click",function(){return h.Ic(n),h.qc().closeLocationTypeList()}),h.bc(5,"ion-icon",35),h.fc(),h.fc(),h.fc()}}function w(e,t){if(1&e&&(h.gc(0,"ion-item",8),h.gc(1,"ion-label"),h.bc(2,"ion-icon",36),h.Rc(3),h.fc(),h.fc()),2&e){var n=t.item;h.Ob(2),h.xc("src",n.icon),h.Ob(1),h.Tc(" ",n.name," ")}}function C(e,t){1&e&&h.bc(0,"cmx-loader",37),2&e&&h.wc("fullScreen",!0)}var O=function(e){function t(t,n,i,r,o,a){var s=e.call(this)||this;return s.modalController=t,s.taskManagerService=n,s.tasksService=i,s.alertController=r,s.viewSizeService=o,s.tasksBroadcastService=a,s.loader=!1,s.errorMessage=null,s.barcodeValid=!1,s.temperatureList=[{name:"Ambient",icon:"./assets/icon/ambient.svg",value:"A"},{name:"Frozen",icon:"./assets/icon/frozen.svg",value:"F"},{name:"Refrigerated",icon:"./assets/icon/refrigerated.svg",value:"R"}],s.locationType=[{name:"COUNTER",icon:"./assets/icon/counter.svg"},{name:"FREEZER",icon:"./assets/icon/snow.svg"},{name:"LOCKBOX",icon:"./assets/icon/lockbox.svg"},{name:"RECEPTIONIST",icon:"./assets/icon/reception.svg"},{name:"REFRIGERATOR",icon:"./assets/icon/refrigerator.svg"},{name:"OTHER",icon:"./assets/icon/information.svg"}],s}return f(t,e),t.prototype.dismiss=function(){this.modalController.dismiss()},t.prototype.ngOnInit=function(){var e=this;this.task=this.taskManagerService.lastTask,this.viewSizeService.size.subscribe(function(t){e.size=t}),this.subscriptions.push(this.barcodeScanEvent.subscribe(function(t){e.barcode=t}))},t.prototype.ngOnDestroy=function(){this.subscriptions.forEach(function(e){e.unsubscribe()})},t.prototype.addLocation=function(){this.modalController.dismiss()},t.prototype.onSubmit=function(){return e=this,void 0,n=function(){var e,t,n,i=this;return function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=n+i?e-i+1:-1}).filter(function(e){return e>=0})}))},_renderTable:function(e){var t,n=this,i=n.getFixedColumns();n._isFixedColumns=!!i.length;var r=n.callBase(e);if(n._isFixedColumns){n._isFixedTableRendering=!0;var o=e&&e.change,a=o&&o.columnIndices;n._correctColumnIndicesForFixedColumns(i,o),t=n._createTable(i),n._renderRows(t,(0,u.extend)({},e,{columns:i})),n._updateContent(t,o),a&&(o.columnIndices=a),n._isFixedTableRendering=!1}else n._fixedTableElement&&n._fixedTableElement.parent().remove(),n._fixedTableElement=null;return r},_renderRow:function(e,t){var n,i=t.row.cells;if(this.callBase.apply(this,arguments),this._isFixedTableRendering&&i&&i.length){n=0;var r=t.row.cells||[];i=i.slice(),t.row.cells=i;for(var o=0;o0){var l=k(i._columnsController.getFixedColumns());n=s.length-ul?n.eq(e).css("height",u):u=0&&(e._tableElement&&e._getRowElements(e._tableElement).eq(r).toggleClass(b,o),e._fixedTableElement&&e._getRowElements(e._fixedTableElement).eq(r).toggleClass(b,o))}))};e._fixedTableElement&&e._tableElement&&(t(e._fixedTableElement),t(e._tableElement))},_findContentElement:function(){var e,t,n=this,a=n.addWidgetPrefix(m),s=n.element(),c=d.default.mozilla?60:0;if(s&&n._isFixedTableRendering){e=s.children("."+a);var u=n.getScrollable();return!e.length&&u&&(e=(0,i.default)("
").addClass(a),r.default.on(e,"scroll",function(e){clearTimeout(n._fixedScrollTimeout),n._fixedScrollTimeout=setTimeout(function(){t=(0,i.default)(e.target).scrollTop(),u.scrollTo({y:t})},c)}),r.default.on(e,o.default.name,function(e){var r=(0,i.default)(e.target).closest(".dx-scrollable");if(u&&u.$element().is(r)&&(t=u.scrollTop(),u.scrollTo({y:t-e.delta}),u.scrollTop()>0&&u.scrollTop()+u.clientHeight()0&&e.css("visibility","hidden"),i=r}this.callBase(e,t,n,i)},_getSummaryCellIndex:function(e,t){if(this._isFixedTableRendering){var n=k(t);return e>n&&(e+=t[n].colspan-1),e}return this.callBase.apply(this,arguments)},_renderCore:function(e){this._detachHoverEvents(),this.callBase(e);var t=this._isFixedColumns;this.element().toggleClass("dx-fixed-columns",t),this.option("hoverStateEnabled")&&t&&this._attachHoverEvents()},setRowsOpacity:function(e,t){this.callBase(e,t);var n=this._getRowElements(this._fixedTableElement);this._setRowsOpacityCore(n,this.getFixedColumns(),e,t)},optionChanged:function(e){this.callBase(e),"hoverStateEnabled"===e.name&&this._isFixedColumns&&(e.value?this._attachHoverEvents():this._detachHoverEvents())},getCellIndex:function(e){var t=this._fixedTableElement,n=0;if(t&&e.is("td")&&e.closest(t).length){var i=this.getFixedColumns();return(0,l.each)(i,function(t,i){if(t===e[0].cellIndex)return!1;i.colspan?n+=i.colspan:n++}),n}return this.callBase.apply(this,arguments)},_updateFixedTablePosition:function(e,t){if(this._fixedTableElement&&this._tableElement){var n,i=this.getController("editorFactory");this._fixedTableElement.parent().scrollTop(e),t&&(n=i.focus())&&i.focus(n)}},setScrollerSpacing:function(e,t){var n=this,i={marginBottom:0},r=n.element().children("."+this.addWidgetPrefix(v));r.length&&n._fixedTableElement&&(r.css(i),n._fixedTableElement.css(i),i[n.option("rtlEnabled")?"marginLeft":"marginRight"]=e,i.marginBottom=t,(n._scrollable&&n._scrollable.option("useNative")?r:n._fixedTableElement).css(i))},_getElasticScrollTop:function(e){var t=0,n=this.getScrollbarWidth(!0);if(e.scrollOffset.top<0)t=-e.scrollOffset.top;else if(e.reachedBottom){var i=this._findContentElement(),r=e.component._container();t=Math.max(i.height()+n-r.height(),0)-e.scrollOffset.top}return t},_applyElasticScrolling:function(e){if(this._fixedTableElement){var t=this._getElasticScrollTop(e);0!==Math.ceil(t)?f.default.move(this._fixedTableElement,{top:t}):this._fixedTableElement.css("transform","")}},_handleScroll:function(e){this._updateFixedTablePosition(e.scrollOffset.top,!0),this._applyElasticScrolling(e),this.callBase(e)},_updateContentPosition:function(e){this.callBase.apply(this,arguments),e||this._updateFixedTablePosition(this._scrollTop)},_afterRowPrepared:function(e){this._isFixedTableRendering||this.callBase(e)},_scrollToElement:function(e){this.callBase(e,this.getFixedColumnsOffset())},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._fixedScrollTimeout)}});e.exports={defaultOptions:function(){return{columnFixing:{enabled:!1,texts:{fix:a.default.format("dxDataGrid-columnFixingFix"),unfix:a.default.format("dxDataGrid-columnFixingUnfix"),leftPosition:a.default.format("dxDataGrid-columnFixingLeftPosition"),rightPosition:a.default.format("dxDataGrid-columnFixingRightPosition")}}}},extenders:{views:{columnHeadersView:E,rowsView:I,footerView:T},controllers:(g=function(e,t,n){var i=k(t),r=e.length-t.length;return(0,l.each)(n,function(e,t){t.index>i&&(t.columnIndex+=r,t.index+=r)}),n},{draggingHeader:{_generatePointsByColumns:function(e){var t=e.columns,n=e.targetDraggingPanel;if(n&&"headers"===n.getName()&&n.isFixedColumns()&&e.sourceColumn.fixed){e.rowIndex||(e.columnElements=n.getFixedColumnElements(0)),e.columns=n.getFixedColumns(e.rowIndex);var i=this.callBase(e);return g(t,e.columns,i),i}return this.callBase(e)},_pointCreated:function(e,t,n,i){var r=this.callBase.apply(this,arguments),o=this._columnHeadersView.getTransparentColumnElement();if(!r&&"headers"===n&&o&&o.length){var a=(0,h.getBoundingRect)(o.get(0));return i&&i.fixed?"right"===i.fixedPosition?e.xa.left:e.xa.right}return r}},columnsResizer:{_generatePointsByColumns:function(){var e=this,t=e._columnsController,n=t&&e._columnsController.getVisibleColumns(),i=t&&e._columnsController.getFixedColumns(),r=e._columnHeadersView.getFixedColumnElements(),o=[];e.callBase(),r&&r.length>0&&(o=s.default.getPointsByColumns(r,function(t){return e._pointCreated(t,r.length,i)}),e._pointsByFixedColumns=g(n,i,o))},_pointCreated:function(e,t,n){var i="widget"===this.option("columnResizingMode");if(e.index>0&&e.index=r.right)return this.callBase(this._pointsByFixedColumns,t,n)}return this.callBase(e,t,n)}}})}}},"6t9p":function(e,t,n){"use strict";n.d(t,"a",function(){return O}),n.d(t,"b",function(){return S}),n.d(t,"c",function(){return D}),n.d(t,"d",function(){return de}),n.d(t,"e",function(){return he}),n.d(t,"f",function(){return _e}),n.d(t,"g",function(){return ye}),n.d(t,"h",function(){return xe}),n.d(t,"i",function(){return Te}),n.d(t,"j",function(){return Le}),n.d(t,"k",function(){return Re}),n.d(t,"l",function(){return Q}),n.d(t,"m",function(){return ze}),n.d(t,"n",function(){return A}),n.d(t,"o",function(){return et}),n.d(t,"p",function(){return tt}),n.d(t,"q",function(){return nt}),n.d(t,"r",function(){return it}),n.d(t,"s",function(){return at}),n.d(t,"t",function(){return st}),n.d(t,"u",function(){return xt}),n.d(t,"v",function(){return tn}),n.d(t,"w",function(){return nn}),n.d(t,"x",function(){return ee}),n.d(t,"y",function(){return oe}),n.d(t,"z",function(){return ae}),n.d(t,"A",function(){return An}),n.d(t,"B",function(){return Pn}),n.d(t,"C",function(){return Ln}),n.d(t,"D",function(){return Rn}),n.d(t,"E",function(){return re}),n.d(t,"F",function(){return Gn}),n.d(t,"G",function(){return qn}),n.d(t,"H",function(){return ti}),n.d(t,"I",function(){return ni}),n.d(t,"J",function(){return ii}),n.d(t,"K",function(){return ri}),n.d(t,"L",function(){return Si}),n.d(t,"M",function(){return ki}),n.d(t,"N",function(){return Ri}),n.d(t,"O",function(){return Ui}),n.d(t,"P",function(){return zi}),n.d(t,"Q",function(){return Yi}),n.d(t,"R",function(){return Gi}),n.d(t,"S",function(){return Xi}),n.d(t,"T",function(){return Ji}),n.d(t,"U",function(){return we}),n.d(t,"V",function(){return Ce}),n.d(t,"W",function(){return wr}),n.d(t,"X",function(){return Cr}),n.d(t,"Y",function(){return Vr}),n.d(t,"Z",function(){return $r}),n.d(t,"ab",function(){return L}),n.d(t,"bb",function(){return te}),n.d(t,"cb",function(){return ne}),n.d(t,"db",function(){return mt}),n.d(t,"eb",function(){return vt}),n.d(t,"fb",function(){return Wr}),n.d(t,"gb",function(){return Yr}),n.d(t,"hb",function(){return q}),n.d(t,"ib",function(){return K}),n.d(t,"jb",function(){return fo}),n.d(t,"kb",function(){return po}),n.d(t,"lb",function(){return Co}),n.d(t,"mb",function(){return Oo}),n.d(t,"nb",function(){return g}),n.d(t,"ob",function(){return m}),n.d(t,"pb",function(){return v}),n.d(t,"qb",function(){return _}),n.d(t,"rb",function(){return b}),n.d(t,"sb",function(){return w}),n.d(t,"tb",function(){return k}),n.d(t,"ub",function(){return T}),n.d(t,"vb",function(){return R}),n.d(t,"wb",function(){return N}),n.d(t,"xb",function(){return F}),n.d(t,"yb",function(){return B}),n.d(t,"zb",function(){return V}),n.d(t,"Ab",function(){return $}),n.d(t,"Bb",function(){return H}),n.d(t,"Cb",function(){return U}),n.d(t,"Db",function(){return z}),n.d(t,"Eb",function(){return W}),n.d(t,"Fb",function(){return Y}),n.d(t,"Gb",function(){return se}),n.d(t,"Hb",function(){return ce}),n.d(t,"Ib",function(){return ue}),n.d(t,"Jb",function(){return pe}),n.d(t,"Kb",function(){return ge}),n.d(t,"Lb",function(){return me}),n.d(t,"Mb",function(){return ve}),n.d(t,"Nb",function(){return Oe}),n.d(t,"Ob",function(){return Se}),n.d(t,"Pb",function(){return ke}),n.d(t,"Qb",function(){return Ee}),n.d(t,"Rb",function(){return Ie}),n.d(t,"Sb",function(){return De}),n.d(t,"Tb",function(){return Me}),n.d(t,"Ub",function(){return Ae}),n.d(t,"Vb",function(){return je}),n.d(t,"Wb",function(){return Ne}),n.d(t,"Xb",function(){return Fe}),n.d(t,"Yb",function(){return Be}),n.d(t,"Zb",function(){return Ve}),n.d(t,"ac",function(){return $e}),n.d(t,"bc",function(){return He}),n.d(t,"cc",function(){return We}),n.d(t,"dc",function(){return Ye}),n.d(t,"ec",function(){return Ge}),n.d(t,"fc",function(){return qe}),n.d(t,"gc",function(){return Ke}),n.d(t,"hc",function(){return Xe}),n.d(t,"ic",function(){return Je}),n.d(t,"jc",function(){return Qe}),n.d(t,"kc",function(){return rt}),n.d(t,"lc",function(){return ct}),n.d(t,"mc",function(){return ut}),n.d(t,"nc",function(){return lt}),n.d(t,"oc",function(){return dt}),n.d(t,"pc",function(){return ht}),n.d(t,"qc",function(){return ft}),n.d(t,"rc",function(){return pt}),n.d(t,"sc",function(){return _t}),n.d(t,"tc",function(){return yt}),n.d(t,"uc",function(){return bt}),n.d(t,"vc",function(){return wt}),n.d(t,"wc",function(){return Ct}),n.d(t,"xc",function(){return Ot}),n.d(t,"yc",function(){return St}),n.d(t,"zc",function(){return kt}),n.d(t,"Ac",function(){return Dt}),n.d(t,"Bc",function(){return Mt}),n.d(t,"Cc",function(){return Tt}),n.d(t,"Dc",function(){return Et}),n.d(t,"Ec",function(){return At}),n.d(t,"Fc",function(){return Pt}),n.d(t,"Gc",function(){return Lt}),n.d(t,"Hc",function(){return Rt}),n.d(t,"Ic",function(){return jt}),n.d(t,"Jc",function(){return Nt}),n.d(t,"Kc",function(){return Ft}),n.d(t,"Lc",function(){return Ut}),n.d(t,"Mc",function(){return Vt}),n.d(t,"Nc",function(){return $t}),n.d(t,"Oc",function(){return zt}),n.d(t,"Pc",function(){return Wt}),n.d(t,"Qc",function(){return Yt}),n.d(t,"Rc",function(){return Gt}),n.d(t,"Sc",function(){return qt}),n.d(t,"Tc",function(){return Kt}),n.d(t,"Uc",function(){return Xt}),n.d(t,"Vc",function(){return Jt}),n.d(t,"Wc",function(){return Qt}),n.d(t,"Xc",function(){return en}),n.d(t,"Yc",function(){return Zt}),n.d(t,"Zc",function(){return cn}),n.d(t,"ad",function(){return rn}),n.d(t,"bd",function(){return on}),n.d(t,"cd",function(){return an}),n.d(t,"dd",function(){return sn}),n.d(t,"ed",function(){return un}),n.d(t,"fd",function(){return ln}),n.d(t,"gd",function(){return dn}),n.d(t,"hd",function(){return hn}),n.d(t,"id",function(){return fn}),n.d(t,"jd",function(){return pn}),n.d(t,"kd",function(){return mn}),n.d(t,"ld",function(){return gn}),n.d(t,"md",function(){return vn}),n.d(t,"nd",function(){return _n}),n.d(t,"od",function(){return yn}),n.d(t,"pd",function(){return bn}),n.d(t,"qd",function(){return wn}),n.d(t,"rd",function(){return Cn}),n.d(t,"sd",function(){return On}),n.d(t,"td",function(){return xn}),n.d(t,"ud",function(){return Sn}),n.d(t,"vd",function(){return kn}),n.d(t,"wd",function(){return Tn}),n.d(t,"xd",function(){return En}),n.d(t,"yd",function(){return In}),n.d(t,"zd",function(){return Dn}),n.d(t,"Ad",function(){return Mn}),n.d(t,"Bd",function(){return jn}),n.d(t,"Cd",function(){return Nn}),n.d(t,"Dd",function(){return Fn}),n.d(t,"Ed",function(){return Bn}),n.d(t,"Fd",function(){return Vn}),n.d(t,"Gd",function(){return $n}),n.d(t,"Hd",function(){return Hn}),n.d(t,"Id",function(){return Un}),n.d(t,"Jd",function(){return zn}),n.d(t,"Kd",function(){return Wn}),n.d(t,"Ld",function(){return Yn}),n.d(t,"Md",function(){return Kn}),n.d(t,"Nd",function(){return Xn}),n.d(t,"Od",function(){return Jn}),n.d(t,"Pd",function(){return Qn}),n.d(t,"Qd",function(){return Zn}),n.d(t,"Rd",function(){return oi}),n.d(t,"Sd",function(){return ai}),n.d(t,"Td",function(){return si}),n.d(t,"Ud",function(){return ci}),n.d(t,"Vd",function(){return ui}),n.d(t,"Wd",function(){return li}),n.d(t,"Xd",function(){return di}),n.d(t,"Yd",function(){return hi}),n.d(t,"Zd",function(){return fi}),n.d(t,"ae",function(){return pi}),n.d(t,"be",function(){return gi}),n.d(t,"ce",function(){return mi}),n.d(t,"de",function(){return vi}),n.d(t,"ee",function(){return _i}),n.d(t,"fe",function(){return yi}),n.d(t,"ge",function(){return bi}),n.d(t,"he",function(){return wi}),n.d(t,"ie",function(){return Ci}),n.d(t,"je",function(){return Oi}),n.d(t,"ke",function(){return xi}),n.d(t,"le",function(){return Ti}),n.d(t,"me",function(){return Ei}),n.d(t,"ne",function(){return Ii}),n.d(t,"oe",function(){return Mi}),n.d(t,"pe",function(){return Ai}),n.d(t,"qe",function(){return Pi}),n.d(t,"re",function(){return Li}),n.d(t,"se",function(){return ji}),n.d(t,"te",function(){return Ni}),n.d(t,"ue",function(){return Fi}),n.d(t,"ve",function(){return Bi}),n.d(t,"we",function(){return Vi}),n.d(t,"xe",function(){return $i}),n.d(t,"ye",function(){return Hi}),n.d(t,"ze",function(){return Wi}),n.d(t,"Ae",function(){return qi}),n.d(t,"Be",function(){return Ki}),n.d(t,"Ce",function(){return Qi}),n.d(t,"De",function(){return Zi}),n.d(t,"Ee",function(){return er}),n.d(t,"Fe",function(){return tr}),n.d(t,"Ge",function(){return nr}),n.d(t,"He",function(){return ir}),n.d(t,"Ie",function(){return rr}),n.d(t,"Je",function(){return or}),n.d(t,"Ke",function(){return sr}),n.d(t,"Le",function(){return cr}),n.d(t,"Me",function(){return ar}),n.d(t,"Ne",function(){return ur}),n.d(t,"Oe",function(){return lr}),n.d(t,"Pe",function(){return pr}),n.d(t,"Qe",function(){return dr}),n.d(t,"Re",function(){return hr}),n.d(t,"Se",function(){return gr}),n.d(t,"Te",function(){return fr}),n.d(t,"Ue",function(){return mr}),n.d(t,"Ve",function(){return vr}),n.d(t,"We",function(){return _r}),n.d(t,"Xe",function(){return yr}),n.d(t,"Ye",function(){return br}),n.d(t,"Ze",function(){return Or}),n.d(t,"af",function(){return Sr}),n.d(t,"bf",function(){return kr}),n.d(t,"cf",function(){return xr}),n.d(t,"df",function(){return Tr}),n.d(t,"ef",function(){return Er}),n.d(t,"ff",function(){return Ir}),n.d(t,"gf",function(){return Dr}),n.d(t,"hf",function(){return Mr}),n.d(t,"if",function(){return Ar}),n.d(t,"jf",function(){return Pr}),n.d(t,"kf",function(){return Lr}),n.d(t,"lf",function(){return Rr}),n.d(t,"mf",function(){return jr}),n.d(t,"nf",function(){return Nr}),n.d(t,"of",function(){return Fr}),n.d(t,"pf",function(){return Hr}),n.d(t,"qf",function(){return Ur}),n.d(t,"rf",function(){return zr}),n.d(t,"sf",function(){return Gr}),n.d(t,"tf",function(){return qr}),n.d(t,"uf",function(){return Xr}),n.d(t,"vf",function(){return Jr}),n.d(t,"wf",function(){return Qr}),n.d(t,"xf",function(){return Zr}),n.d(t,"yf",function(){return eo}),n.d(t,"zf",function(){return to}),n.d(t,"Af",function(){return no}),n.d(t,"Bf",function(){return io}),n.d(t,"Cf",function(){return ro}),n.d(t,"Df",function(){return oo}),n.d(t,"Ef",function(){return ao}),n.d(t,"Ff",function(){return so}),n.d(t,"Gf",function(){return co}),n.d(t,"Hf",function(){return uo}),n.d(t,"If",function(){return lo}),n.d(t,"Jf",function(){return ho}),n.d(t,"Kf",function(){return go}),n.d(t,"Lf",function(){return mo}),n.d(t,"Mf",function(){return vo}),n.d(t,"Nf",function(){return _o}),n.d(t,"Of",function(){return yo}),n.d(t,"Pf",function(){return bo}),n.d(t,"Qf",function(){return wo}),n.d(t,"Rf",function(){return So}),n.d(t,"Sf",function(){return ko}),n.d(t,"Tf",function(){return xo}),n.d(t,"Uf",function(){return To});var i,r,o=n("1OyB"),a=n("vuIU"),s=n("JX7q"),c=n("Ji7U"),u=n("LK+K"),l=n("mrSG"),d=n("fXoL"),h=n("PVOt"),f=n("ofXK"),p=(n("14X2"),["*"]),g=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),m=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),v=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),_=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),y=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"hide",get:function(){return this._getOption("hide")},set:function(e){this._setOption("hide",e)}},{key:"show",get:function(){return this._getOption("show")},set:function(e){this._setOption("show",e)}},{key:"duration",get:function(){return this._getOption("duration")},set:function(e){this._setOption("duration",e)}},{key:"easing",get:function(){return this._getOption("easing")},set:function(e){this._setOption("easing",e)}},{key:"enabled",get:function(){return this._getOption("enabled")},set:function(e){this._setOption("enabled",e)}},{key:"maxPointCountSupported",get:function(){return this._getOption("maxPointCountSupported")},set:function(e){this._setOption("maxPointCountSupported",e)}},{key:"complete",get:function(){return this._getOption("complete")},set:function(e){this._setOption("complete",e)}},{key:"delay",get:function(){return this._getOption("delay")},set:function(e){this._setOption("delay",e)}},{key:"direction",get:function(){return this._getOption("direction")},set:function(e){this._setOption("direction",e)}},{key:"from",get:function(){return this._getOption("from")},set:function(e){this._setOption("from",e)}},{key:"staggerDelay",get:function(){return this._getOption("staggerDelay")},set:function(e){this._setOption("staggerDelay",e)}},{key:"start",get:function(){return this._getOption("start")},set:function(e){this._setOption("start",e)}},{key:"to",get:function(){return this._getOption("to")},set:function(e){this._setOption("to",e)}},{key:"type",get:function(){return this._getOption("type")},set:function(e){this._setOption("type",e)}}]),n}(h.i),b=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"animation"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(y);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-animation"]],inputs:{hide:"hide",show:"show",duration:"duration",easing:"easing",enabled:"enabled",maxPointCountSupported:"maxPointCountSupported",complete:"complete",delay:"delay",direction:"direction",from:"from",staggerDelay:"staggerDelay",start:"start",to:"to",type:"type"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),w=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),C=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"allowDragging",get:function(){return this._getOption("allowDragging")},set:function(e){this._setOption("allowDragging",e)}},{key:"argument",get:function(){return this._getOption("argument")},set:function(e){this._setOption("argument",e)}},{key:"arrowLength",get:function(){return this._getOption("arrowLength")},set:function(e){this._setOption("arrowLength",e)}},{key:"arrowWidth",get:function(){return this._getOption("arrowWidth")},set:function(e){this._setOption("arrowWidth",e)}},{key:"axis",get:function(){return this._getOption("axis")},set:function(e){this._setOption("axis",e)}},{key:"border",get:function(){return this._getOption("border")},set:function(e){this._setOption("border",e)}},{key:"color",get:function(){return this._getOption("color")},set:function(e){this._setOption("color",e)}},{key:"customizeTooltip",get:function(){return this._getOption("customizeTooltip")},set:function(e){this._setOption("customizeTooltip",e)}},{key:"data",get:function(){return this._getOption("data")},set:function(e){this._setOption("data",e)}},{key:"description",get:function(){return this._getOption("description")},set:function(e){this._setOption("description",e)}},{key:"font",get:function(){return this._getOption("font")},set:function(e){this._setOption("font",e)}},{key:"height",get:function(){return this._getOption("height")},set:function(e){this._setOption("height",e)}},{key:"image",get:function(){return this._getOption("image")},set:function(e){this._setOption("image",e)}},{key:"name",get:function(){return this._getOption("name")},set:function(e){this._setOption("name",e)}},{key:"offsetX",get:function(){return this._getOption("offsetX")},set:function(e){this._setOption("offsetX",e)}},{key:"offsetY",get:function(){return this._getOption("offsetY")},set:function(e){this._setOption("offsetY",e)}},{key:"opacity",get:function(){return this._getOption("opacity")},set:function(e){this._setOption("opacity",e)}},{key:"paddingLeftRight",get:function(){return this._getOption("paddingLeftRight")},set:function(e){this._setOption("paddingLeftRight",e)}},{key:"paddingTopBottom",get:function(){return this._getOption("paddingTopBottom")},set:function(e){this._setOption("paddingTopBottom",e)}},{key:"series",get:function(){return this._getOption("series")},set:function(e){this._setOption("series",e)}},{key:"shadow",get:function(){return this._getOption("shadow")},set:function(e){this._setOption("shadow",e)}},{key:"template",get:function(){return this._getOption("template")},set:function(e){this._setOption("template",e)}},{key:"text",get:function(){return this._getOption("text")},set:function(e){this._setOption("text",e)}},{key:"textOverflow",get:function(){return this._getOption("textOverflow")},set:function(e){this._setOption("textOverflow",e)}},{key:"tooltipEnabled",get:function(){return this._getOption("tooltipEnabled")},set:function(e){this._setOption("tooltipEnabled",e)}},{key:"tooltipTemplate",get:function(){return this._getOption("tooltipTemplate")},set:function(e){this._setOption("tooltipTemplate",e)}},{key:"type",get:function(){return this._getOption("type")},set:function(e){this._setOption("type",e)}},{key:"value",get:function(){return this._getOption("value")},set:function(e){this._setOption("value",e)}},{key:"width",get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)}},{key:"wordWrap",get:function(){return this._getOption("wordWrap")},set:function(e){this._setOption("wordWrap",e)}},{key:"x",get:function(){return this._getOption("x")},set:function(e){this._setOption("x",e)}},{key:"y",get:function(){return this._getOption("y")},set:function(e){this._setOption("y",e)}},{key:"angle",get:function(){return this._getOption("angle")},set:function(e){this._setOption("angle",e)}},{key:"radius",get:function(){return this._getOption("radius")},set:function(e){this._setOption("radius",e)}}]),n}(h.a),O=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"annotations"}}]),n}(C);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-annotation"]],inputs:{allowDragging:"allowDragging",argument:"argument",arrowLength:"arrowLength",arrowWidth:"arrowWidth",axis:"axis",border:"border",color:"color",customizeTooltip:"customizeTooltip",data:"data",description:"description",font:"font",height:"height",image:"image",name:"name",offsetX:"offsetX",offsetY:"offsetY",opacity:"opacity",paddingLeftRight:"paddingLeftRight",paddingTopBottom:"paddingTopBottom",series:"series",shadow:"shadow",template:"template",text:"text",textOverflow:"textOverflow",tooltipEnabled:"tooltipEnabled",tooltipTemplate:"tooltipTemplate",type:"type",value:"value",width:"width",wordWrap:"wordWrap",x:"x",y:"y",angle:"angle",radius:"radius"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),S=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),k=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),x=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"aggregation",get:function(){return this._getOption("aggregation")},set:function(e){this._setOption("aggregation",e)}},{key:"area",get:function(){return this._getOption("area")},set:function(e){this._setOption("area",e)}},{key:"argumentField",get:function(){return this._getOption("argumentField")},set:function(e){this._setOption("argumentField",e)}},{key:"axis",get:function(){return this._getOption("axis")},set:function(e){this._setOption("axis",e)}},{key:"bar",get:function(){return this._getOption("bar")},set:function(e){this._setOption("bar",e)}},{key:"barOverlapGroup",get:function(){return this._getOption("barOverlapGroup")},set:function(e){this._setOption("barOverlapGroup",e)}},{key:"barPadding",get:function(){return this._getOption("barPadding")},set:function(e){this._setOption("barPadding",e)}},{key:"barWidth",get:function(){return this._getOption("barWidth")},set:function(e){this._setOption("barWidth",e)}},{key:"border",get:function(){return this._getOption("border")},set:function(e){this._setOption("border",e)}},{key:"bubble",get:function(){return this._getOption("bubble")},set:function(e){this._setOption("bubble",e)}},{key:"candlestick",get:function(){return this._getOption("candlestick")},set:function(e){this._setOption("candlestick",e)}},{key:"closeValueField",get:function(){return this._getOption("closeValueField")},set:function(e){this._setOption("closeValueField",e)}},{key:"color",get:function(){return this._getOption("color")},set:function(e){this._setOption("color",e)}},{key:"cornerRadius",get:function(){return this._getOption("cornerRadius")},set:function(e){this._setOption("cornerRadius",e)}},{key:"dashStyle",get:function(){return this._getOption("dashStyle")},set:function(e){this._setOption("dashStyle",e)}},{key:"fullstackedarea",get:function(){return this._getOption("fullstackedarea")},set:function(e){this._setOption("fullstackedarea",e)}},{key:"fullstackedbar",get:function(){return this._getOption("fullstackedbar")},set:function(e){this._setOption("fullstackedbar",e)}},{key:"fullstackedline",get:function(){return this._getOption("fullstackedline")},set:function(e){this._setOption("fullstackedline",e)}},{key:"fullstackedspline",get:function(){return this._getOption("fullstackedspline")},set:function(e){this._setOption("fullstackedspline",e)}},{key:"fullstackedsplinearea",get:function(){return this._getOption("fullstackedsplinearea")},set:function(e){this._setOption("fullstackedsplinearea",e)}},{key:"highValueField",get:function(){return this._getOption("highValueField")},set:function(e){this._setOption("highValueField",e)}},{key:"hoverMode",get:function(){return this._getOption("hoverMode")},set:function(e){this._setOption("hoverMode",e)}},{key:"hoverStyle",get:function(){return this._getOption("hoverStyle")},set:function(e){this._setOption("hoverStyle",e)}},{key:"ignoreEmptyPoints",get:function(){return this._getOption("ignoreEmptyPoints")},set:function(e){this._setOption("ignoreEmptyPoints",e)}},{key:"innerColor",get:function(){return this._getOption("innerColor")},set:function(e){this._setOption("innerColor",e)}},{key:"label",get:function(){return this._getOption("label")},set:function(e){this._setOption("label",e)}},{key:"line",get:function(){return this._getOption("line")},set:function(e){this._setOption("line",e)}},{key:"lowValueField",get:function(){return this._getOption("lowValueField")},set:function(e){this._setOption("lowValueField",e)}},{key:"maxLabelCount",get:function(){return this._getOption("maxLabelCount")},set:function(e){this._setOption("maxLabelCount",e)}},{key:"minBarSize",get:function(){return this._getOption("minBarSize")},set:function(e){this._setOption("minBarSize",e)}},{key:"opacity",get:function(){return this._getOption("opacity")},set:function(e){this._setOption("opacity",e)}},{key:"openValueField",get:function(){return this._getOption("openValueField")},set:function(e){this._setOption("openValueField",e)}},{key:"pane",get:function(){return this._getOption("pane")},set:function(e){this._setOption("pane",e)}},{key:"point",get:function(){return this._getOption("point")},set:function(e){this._setOption("point",e)}},{key:"rangearea",get:function(){return this._getOption("rangearea")},set:function(e){this._setOption("rangearea",e)}},{key:"rangebar",get:function(){return this._getOption("rangebar")},set:function(e){this._setOption("rangebar",e)}},{key:"rangeValue1Field",get:function(){return this._getOption("rangeValue1Field")},set:function(e){this._setOption("rangeValue1Field",e)}},{key:"rangeValue2Field",get:function(){return this._getOption("rangeValue2Field")},set:function(e){this._setOption("rangeValue2Field",e)}},{key:"reduction",get:function(){return this._getOption("reduction")},set:function(e){this._setOption("reduction",e)}},{key:"scatter",get:function(){return this._getOption("scatter")},set:function(e){this._setOption("scatter",e)}},{key:"selectionMode",get:function(){return this._getOption("selectionMode")},set:function(e){this._setOption("selectionMode",e)}},{key:"selectionStyle",get:function(){return this._getOption("selectionStyle")},set:function(e){this._setOption("selectionStyle",e)}},{key:"showInLegend",get:function(){return this._getOption("showInLegend")},set:function(e){this._setOption("showInLegend",e)}},{key:"sizeField",get:function(){return this._getOption("sizeField")},set:function(e){this._setOption("sizeField",e)}},{key:"spline",get:function(){return this._getOption("spline")},set:function(e){this._setOption("spline",e)}},{key:"splinearea",get:function(){return this._getOption("splinearea")},set:function(e){this._setOption("splinearea",e)}},{key:"stack",get:function(){return this._getOption("stack")},set:function(e){this._setOption("stack",e)}},{key:"stackedarea",get:function(){return this._getOption("stackedarea")},set:function(e){this._setOption("stackedarea",e)}},{key:"stackedbar",get:function(){return this._getOption("stackedbar")},set:function(e){this._setOption("stackedbar",e)}},{key:"stackedline",get:function(){return this._getOption("stackedline")},set:function(e){this._setOption("stackedline",e)}},{key:"stackedspline",get:function(){return this._getOption("stackedspline")},set:function(e){this._setOption("stackedspline",e)}},{key:"stackedsplinearea",get:function(){return this._getOption("stackedsplinearea")},set:function(e){this._setOption("stackedsplinearea",e)}},{key:"steparea",get:function(){return this._getOption("steparea")},set:function(e){this._setOption("steparea",e)}},{key:"stepline",get:function(){return this._getOption("stepline")},set:function(e){this._setOption("stepline",e)}},{key:"stock",get:function(){return this._getOption("stock")},set:function(e){this._setOption("stock",e)}},{key:"tagField",get:function(){return this._getOption("tagField")},set:function(e){this._setOption("tagField",e)}},{key:"type",get:function(){return this._getOption("type")},set:function(e){this._setOption("type",e)}},{key:"valueErrorBar",get:function(){return this._getOption("valueErrorBar")},set:function(e){this._setOption("valueErrorBar",e)}},{key:"valueField",get:function(){return this._getOption("valueField")},set:function(e){this._setOption("valueField",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"width",get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)}},{key:"argumentType",get:function(){return this._getOption("argumentType")},set:function(e){this._setOption("argumentType",e)}},{key:"minSegmentSize",get:function(){return this._getOption("minSegmentSize")},set:function(e){this._setOption("minSegmentSize",e)}},{key:"smallValuesGrouping",get:function(){return this._getOption("smallValuesGrouping")},set:function(e){this._setOption("smallValuesGrouping",e)}},{key:"closed",get:function(){return this._getOption("closed")},set:function(e){this._setOption("closed",e)}}]),n}(h.i),T=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),E=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"endValue",get:function(){return this._getOption("endValue")},set:function(e){this._setOption("endValue",e)}},{key:"startValue",get:function(){return this._getOption("startValue")},set:function(e){this._setOption("startValue",e)}}]),n}(h.a),I=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"breaks"}}]),n}(E);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-break"]],inputs:{endValue:"endValue",startValue:"startValue"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),D=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),M=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"color",get:function(){return this._getOption("color")},set:function(e){this._setOption("color",e)}},{key:"dashStyle",get:function(){return this._getOption("dashStyle")},set:function(e){this._setOption("dashStyle",e)}},{key:"displayBehindSeries",get:function(){return this._getOption("displayBehindSeries")},set:function(e){this._setOption("displayBehindSeries",e)}},{key:"extendAxis",get:function(){return this._getOption("extendAxis")},set:function(e){this._setOption("extendAxis",e)}},{key:"label",get:function(){return this._getOption("label")},set:function(e){this._setOption("label",e)}},{key:"paddingLeftRight",get:function(){return this._getOption("paddingLeftRight")},set:function(e){this._setOption("paddingLeftRight",e)}},{key:"paddingTopBottom",get:function(){return this._getOption("paddingTopBottom")},set:function(e){this._setOption("paddingTopBottom",e)}},{key:"value",get:function(){return this._getOption("value")},set:function(e){this._setOption("value",e)}},{key:"width",get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)}},{key:"_optionPath",get:function(){return"constantLines"}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-constant-line"]],inputs:{color:"color",dashStyle:"dashStyle",displayBehindSeries:"displayBehindSeries",extendAxis:"extendAxis",label:"label",paddingLeftRight:"paddingLeftRight",paddingTopBottom:"paddingTopBottom",value:"value",width:"width"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),A=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),P=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"color",get:function(){return this._getOption("color")},set:function(e){this._setOption("color",e)}},{key:"endValue",get:function(){return this._getOption("endValue")},set:function(e){this._setOption("endValue",e)}},{key:"label",get:function(){return this._getOption("label")},set:function(e){this._setOption("label",e)}},{key:"paddingLeftRight",get:function(){return this._getOption("paddingLeftRight")},set:function(e){this._setOption("paddingLeftRight",e)}},{key:"paddingTopBottom",get:function(){return this._getOption("paddingTopBottom")},set:function(e){this._setOption("paddingTopBottom",e)}},{key:"startValue",get:function(){return this._getOption("startValue")},set:function(e){this._setOption("startValue",e)}},{key:"_optionPath",get:function(){return"strips"}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-strip"]],inputs:{color:"color",endValue:"endValue",label:"label",paddingLeftRight:"paddingLeftRight",paddingTopBottom:"paddingTopBottom",startValue:"startValue"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),L=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),R=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),j=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"currency",get:function(){return this._getOption("currency")},set:function(e){this._setOption("currency",e)}},{key:"formatter",get:function(){return this._getOption("formatter")},set:function(e){this._setOption("formatter",e)}},{key:"parser",get:function(){return this._getOption("parser")},set:function(e){this._setOption("parser",e)}},{key:"precision",get:function(){return this._getOption("precision")},set:function(e){this._setOption("precision",e)}},{key:"type",get:function(){return this._getOption("type")},set:function(e){this._setOption("type",e)}}]),n}(h.i),N=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),F=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"x",get:function(){return this._getOption("x")},set:function(e){this._setOption("x",e)}},{key:"y",get:function(){return this._getOption("y")},set:function(e){this._setOption("y",e)}},{key:"_optionPath",get:function(){return"at"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-at"]],inputs:{x:"x",y:"y"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),B=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),V=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),$=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),H=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),U=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),z=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),W=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"x",get:function(){return this._getOption("x")},set:function(e){this._setOption("x",e)}},{key:"y",get:function(){return this._getOption("y")},set:function(e){this._setOption("y",e)}},{key:"_optionPath",get:function(){return"boundaryOffset"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-boundary-offset"]],inputs:{x:"x",y:"y"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Y=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),G=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"disabled",get:function(){return this._getOption("disabled")},set:function(e){this._setOption("disabled",e)}},{key:"html",get:function(){return this._getOption("html")},set:function(e){this._setOption("html",e)}},{key:"icon",get:function(){return this._getOption("icon")},set:function(e){this._setOption("icon",e)}},{key:"template",get:function(){return this._getOption("template")},set:function(e){this._setOption("template",e)}},{key:"text",get:function(){return this._getOption("text")},set:function(e){this._setOption("text",e)}},{key:"title",get:function(){return this._getOption("title")},set:function(e){this._setOption("title",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"onClick",get:function(){return this._getOption("onClick")},set:function(e){this._setOption("onClick",e)}},{key:"type",get:function(){return this._getOption("type")},set:function(e){this._setOption("type",e)}},{key:"baseSize",get:function(){return this._getOption("baseSize")},set:function(e){this._setOption("baseSize",e)}},{key:"box",get:function(){return this._getOption("box")},set:function(e){this._setOption("box",e)}},{key:"ratio",get:function(){return this._getOption("ratio")},set:function(e){this._setOption("ratio",e)}},{key:"shrink",get:function(){return this._getOption("shrink")},set:function(e){this._setOption("shrink",e)}},{key:"hint",get:function(){return this._getOption("hint")},set:function(e){this._setOption("hint",e)}},{key:"beginGroup",get:function(){return this._getOption("beginGroup")},set:function(e){this._setOption("beginGroup",e)}},{key:"closeMenuOnClick",get:function(){return this._getOption("closeMenuOnClick")},set:function(e){this._setOption("closeMenuOnClick",e)}},{key:"items",get:function(){return this._getOption("items")},set:function(e){this._setOption("items",e)}},{key:"selectable",get:function(){return this._getOption("selectable")},set:function(e){this._setOption("selectable",e)}},{key:"selected",get:function(){return this._getOption("selected")},set:function(e){this._setOption("selected",e)}},{key:"colSpan",get:function(){return this._getOption("colSpan")},set:function(e){this._setOption("colSpan",e)}},{key:"cssClass",get:function(){return this._getOption("cssClass")},set:function(e){this._setOption("cssClass",e)}},{key:"dataField",get:function(){return this._getOption("dataField")},set:function(e){this._setOption("dataField",e)}},{key:"editorOptions",get:function(){return this._getOption("editorOptions")},set:function(e){this._setOption("editorOptions",e)}},{key:"editorType",get:function(){return this._getOption("editorType")},set:function(e){this._setOption("editorType",e)}},{key:"helpText",get:function(){return this._getOption("helpText")},set:function(e){this._setOption("helpText",e)}},{key:"isRequired",get:function(){return this._getOption("isRequired")},set:function(e){this._setOption("isRequired",e)}},{key:"itemType",get:function(){return this._getOption("itemType")},set:function(e){this._setOption("itemType",e)}},{key:"label",get:function(){return this._getOption("label")},set:function(e){this._setOption("label",e)}},{key:"name",get:function(){return this._getOption("name")},set:function(e){this._setOption("name",e)}},{key:"validationRules",get:function(){return this._getOption("validationRules")},set:function(e){this._setOption("validationRules",e)}},{key:"visibleIndex",get:function(){return this._getOption("visibleIndex")},set:function(e){this._setOption("visibleIndex",e)}},{key:"alignItemLabels",get:function(){return this._getOption("alignItemLabels")},set:function(e){this._setOption("alignItemLabels",e)}},{key:"caption",get:function(){return this._getOption("caption")},set:function(e){this._setOption("caption",e)}},{key:"colCount",get:function(){return this._getOption("colCount")},set:function(e){this._setOption("colCount",e)}},{key:"colCountByScreen",get:function(){return this._getOption("colCountByScreen")},set:function(e){this._setOption("colCountByScreen",e)}},{key:"tabPanelOptions",get:function(){return this._getOption("tabPanelOptions")},set:function(e){this._setOption("tabPanelOptions",e)}},{key:"tabs",get:function(){return this._getOption("tabs")},set:function(e){this._setOption("tabs",e)}},{key:"badge",get:function(){return this._getOption("badge")},set:function(e){this._setOption("badge",e)}},{key:"tabTemplate",get:function(){return this._getOption("tabTemplate")},set:function(e){this._setOption("tabTemplate",e)}},{key:"alignment",get:function(){return this._getOption("alignment")},set:function(e){this._setOption("alignment",e)}},{key:"buttonOptions",get:function(){return this._getOption("buttonOptions")},set:function(e){this._setOption("buttonOptions",e)}},{key:"horizontalAlignment",get:function(){return this._getOption("horizontalAlignment")},set:function(e){this._setOption("horizontalAlignment",e)}},{key:"verticalAlignment",get:function(){return this._getOption("verticalAlignment")},set:function(e){this._setOption("verticalAlignment",e)}},{key:"height",get:function(){return this._getOption("height")},set:function(e){this._setOption("height",e)}},{key:"width",get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)}},{key:"locateInMenu",get:function(){return this._getOption("locateInMenu")},set:function(e){this._setOption("locateInMenu",e)}},{key:"location",get:function(){return this._getOption("location")},set:function(e){this._setOption("location",e)}},{key:"menuItemTemplate",get:function(){return this._getOption("menuItemTemplate")},set:function(e){this._setOption("menuItemTemplate",e)}},{key:"options",get:function(){return this._getOption("options")},set:function(e){this._setOption("options",e)}},{key:"showText",get:function(){return this._getOption("showText")},set:function(e){this._setOption("showText",e)}},{key:"widget",get:function(){return this._getOption("widget")},set:function(e){this._setOption("widget",e)}},{key:"imageAlt",get:function(){return this._getOption("imageAlt")},set:function(e){this._setOption("imageAlt",e)}},{key:"imageSrc",get:function(){return this._getOption("imageSrc")},set:function(e){this._setOption("imageSrc",e)}},{key:"formatName",get:function(){return this._getOption("formatName")},set:function(e){this._setOption("formatName",e)}},{key:"formatValues",get:function(){return this._getOption("formatValues")},set:function(e){this._setOption("formatValues",e)}},{key:"key",get:function(){return this._getOption("key")},set:function(e){this._setOption("key",e)}},{key:"showChevron",get:function(){return this._getOption("showChevron")},set:function(e){this._setOption("showChevron",e)}},{key:"menuTemplate",get:function(){return this._getOption("menuTemplate")},set:function(e){this._setOption("menuTemplate",e)}},{key:"heightRatio",get:function(){return this._getOption("heightRatio")},set:function(e){this._setOption("heightRatio",e)}},{key:"widthRatio",get:function(){return this._getOption("widthRatio")},set:function(e){this._setOption("widthRatio",e)}},{key:"expanded",get:function(){return this._getOption("expanded")},set:function(e){this._setOption("expanded",e)}},{key:"hasItems",get:function(){return this._getOption("hasItems")},set:function(e){this._setOption("hasItems",e)}},{key:"parentId",get:function(){return this._getOption("parentId")},set:function(e){this._setOption("parentId",e)}}]),n}(h.a),q=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"message",get:function(){return this._getOption("message")},set:function(e){this._setOption("message",e)}},{key:"trim",get:function(){return this._getOption("trim")},set:function(e){this._setOption("trim",e)}},{key:"type",get:function(){return this._getOption("type")},set:function(e){this._setOption("type",e)}},{key:"ignoreEmptyValue",get:function(){return this._getOption("ignoreEmptyValue")},set:function(e){this._setOption("ignoreEmptyValue",e)}},{key:"max",get:function(){return this._getOption("max")},set:function(e){this._setOption("max",e)}},{key:"min",get:function(){return this._getOption("min")},set:function(e){this._setOption("min",e)}},{key:"reevaluate",get:function(){return this._getOption("reevaluate")},set:function(e){this._setOption("reevaluate",e)}},{key:"validationCallback",get:function(){return this._getOption("validationCallback")},set:function(e){this._setOption("validationCallback",e)}},{key:"comparisonTarget",get:function(){return this._getOption("comparisonTarget")},set:function(e){this._setOption("comparisonTarget",e)}},{key:"comparisonType",get:function(){return this._getOption("comparisonType")},set:function(e){this._setOption("comparisonType",e)}},{key:"pattern",get:function(){return this._getOption("pattern")},set:function(e){this._setOption("pattern",e)}},{key:"_optionPath",get:function(){return"validationRules"}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-validation-rule"]],inputs:{message:"message",trim:"trim",type:"type",ignoreEmptyValue:"ignoreEmptyValue",max:"max",min:"min",reevaluate:"reevaluate",validationCallback:"validationCallback",comparisonTarget:"comparisonTarget",comparisonType:"comparisonType",pattern:"pattern"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),K=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),X=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"icon",get:function(){return this._getOption("icon")},set:function(e){this._setOption("icon",e)}},{key:"items",get:function(){return this._getOption("items")},set:function(e){this._setOption("items",e)}},{key:"name",get:function(){return this._getOption("name")},set:function(e){this._setOption("name",e)}},{key:"text",get:function(){return this._getOption("text")},set:function(e){this._setOption("text",e)}}]),n}(h.a),J=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"commands"}},{key:"itemsChildren",get:function(){return this._getOption("items")},set:function(e){this.setChildren("items",e)}}]),n}(X);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-command"]],contentQueries:function(e,t,n){var i;1&e&&d.Tb(n,oe,!1),2&e&&d.Ec(i=d.oc())&&(t.itemsChildren=i)},inputs:{icon:"icon",items:"items",name:"name",text:"text"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Q=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Z=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"commands",get:function(){return this._getOption("commands")},set:function(e){this._setOption("commands",e)}},{key:"title",get:function(){return this._getOption("title")},set:function(e){this._setOption("title",e)}},{key:"category",get:function(){return this._getOption("category")},set:function(e){this._setOption("category",e)}},{key:"displayMode",get:function(){return this._getOption("displayMode")},set:function(e){this._setOption("displayMode",e)}},{key:"expanded",get:function(){return this._getOption("expanded")},set:function(e){this._setOption("expanded",e)}},{key:"shapes",get:function(){return this._getOption("shapes")},set:function(e){this._setOption("shapes",e)}},{key:"_optionPath",get:function(){return"groups"}},{key:"commandsChildren",get:function(){return this._getOption("commands")},set:function(e){this.setChildren("commands",e)}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-group"]],contentQueries:function(e,t,n){var i;1&e&&d.Tb(n,J,!1),2&e&&d.Ec(i=d.oc())&&(t.commandsChildren=i)},inputs:{commands:"commands",title:"title",category:"category",displayMode:"displayMode",expanded:"expanded",shapes:"shapes"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),ee=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),te=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i,r,a,c,u){var l;return Object(o.a)(this,n),(l=t.call(this)).renderer=r,l.document=a,l.element=u,e.setNestedOption(Object(s.a)(l)),i.setHost(Object(s.a)(l),l._fullOptionPath.bind(Object(s.a)(l))),c.setHost(Object(s.a)(l)),l}return Object(a.a)(n,[{key:"alignItemLabels",get:function(){return this._getOption("alignItemLabels")},set:function(e){this._setOption("alignItemLabels",e)}},{key:"badge",get:function(){return this._getOption("badge")},set:function(e){this._setOption("badge",e)}},{key:"colCount",get:function(){return this._getOption("colCount")},set:function(e){this._setOption("colCount",e)}},{key:"colCountByScreen",get:function(){return this._getOption("colCountByScreen")},set:function(e){this._setOption("colCountByScreen",e)}},{key:"disabled",get:function(){return this._getOption("disabled")},set:function(e){this._setOption("disabled",e)}},{key:"icon",get:function(){return this._getOption("icon")},set:function(e){this._setOption("icon",e)}},{key:"items",get:function(){return this._getOption("items")},set:function(e){this._setOption("items",e)}},{key:"tabTemplate",get:function(){return this._getOption("tabTemplate")},set:function(e){this._setOption("tabTemplate",e)}},{key:"template",get:function(){return this._getOption("template")},set:function(e){this._setOption("template",e)}},{key:"title",get:function(){return this._getOption("title")},set:function(e){this._setOption("title",e)}},{key:"commands",get:function(){return this._getOption("commands")},set:function(e){this._setOption("commands",e)}},{key:"groups",get:function(){return this._getOption("groups")},set:function(e){this._setOption("groups",e)}},{key:"_optionPath",get:function(){return"tabs"}},{key:"itemsChildren",get:function(){return this._getOption("items")},set:function(e){this.setChildren("items",e)}},{key:"commandsChildren",get:function(){return this._getOption("commands")},set:function(e){this.setChildren("commands",e)}},{key:"groupsChildren",get:function(){return this._getOption("groups")},set:function(e){this.setChildren("groups",e)}},{key:"setTemplate",value:function(e){this.template=e}},{key:"ngAfterViewInit",value:function(){Object(h.l)(this,this.element,this.renderer,this.document)}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1),d.ac(d.O),d.ac(f.e),d.ac(h.f,1),d.ac(d.q))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-tab"]],contentQueries:function(e,t,n){var i;1&e&&(d.Tb(n,oe,!1),d.Tb(n,J,!1),d.Tb(n,Z,!1)),2&e&&(d.Ec(i=d.oc())&&(t.itemsChildren=i),d.Ec(i=d.oc())&&(t.commandsChildren=i),d.Ec(i=d.oc())&&(t.groupsChildren=i))},inputs:{alignItemLabels:"alignItemLabels",badge:"badge",colCount:"colCount",colCountByScreen:"colCountByScreen",disabled:"disabled",icon:"icon",items:"items",tabTemplate:"tabTemplate",template:"template",title:"title",commands:"commands",groups:"groups"},features:[d.Nb([h.j,h.f]),d.Lb],ngContentSelectors:p,decls:1,vars:0,template:function(e,t){1&e&&(d.vc(),d.uc(0))},styles:["[_nghost-%COMP%] { display: block; }"]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__param)(3,Object(d.w)(f.e)),Object(l.__param)(4,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j,d.O,Object,h.f,d.q])],e)}(),ne=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),ie=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"lat",get:function(){return this._getOption("lat")},set:function(e){this._setOption("lat",e)}},{key:"lng",get:function(){return this._getOption("lng")},set:function(e){this._setOption("lng",e)}},{key:"col",get:function(){return this._getOption("col")},set:function(e){this._setOption("col",e)}},{key:"colspan",get:function(){return this._getOption("colspan")},set:function(e){this._setOption("colspan",e)}},{key:"row",get:function(){return this._getOption("row")},set:function(e){this._setOption("row",e)}},{key:"rowspan",get:function(){return this._getOption("rowspan")},set:function(e){this._setOption("rowspan",e)}},{key:"screen",get:function(){return this._getOption("screen")},set:function(e){this._setOption("screen",e)}},{key:"_optionPath",get:function(){return"location"}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-location"]],inputs:{lat:"lat",lng:"lng",col:"col",colspan:"colspan",row:"row",rowspan:"rowspan",screen:"screen"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),re=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),oe=function(){var e=i=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i,r,a,c,u){var l;return Object(o.a)(this,n),(l=t.call(this)).renderer=r,l.document=a,l.element=u,e.setNestedOption(Object(s.a)(l)),i.setHost(Object(s.a)(l),l._fullOptionPath.bind(Object(s.a)(l))),c.setHost(Object(s.a)(l)),l}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"items"}},{key:"itemsChildren",get:function(){return this._getOption("items")},set:function(e){this.setChildren("items",e)}},{key:"validationRulesChildren",get:function(){return this._getOption("validationRules")},set:function(e){this.setChildren("validationRules",e)}},{key:"tabsChildren",get:function(){return this._getOption("tabs")},set:function(e){this.setChildren("tabs",e)}},{key:"locationChildren",get:function(){return this._getOption("location")},set:function(e){this.setChildren("location",e)}},{key:"setTemplate",value:function(e){this.template=e}},{key:"ngAfterViewInit",value:function(){Object(h.l)(this,this.element,this.renderer,this.document)}}]),n}(G);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1),d.ac(d.O),d.ac(f.e),d.ac(h.f,1),d.ac(d.q))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-item"]],contentQueries:function(e,t,n){var r;1&e&&(d.Tb(n,i,!1),d.Tb(n,q,!1),d.Tb(n,te,!1),d.Tb(n,ie,!1)),2&e&&(d.Ec(r=d.oc())&&(t.itemsChildren=r),d.Ec(r=d.oc())&&(t.validationRulesChildren=r),d.Ec(r=d.oc())&&(t.tabsChildren=r),d.Ec(r=d.oc())&&(t.locationChildren=r))},inputs:{disabled:"disabled",html:"html",icon:"icon",template:"template",text:"text",title:"title",visible:"visible",onClick:"onClick",type:"type",baseSize:"baseSize",box:"box",ratio:"ratio",shrink:"shrink",hint:"hint",beginGroup:"beginGroup",closeMenuOnClick:"closeMenuOnClick",items:"items",selectable:"selectable",selected:"selected",colSpan:"colSpan",cssClass:"cssClass",dataField:"dataField",editorOptions:"editorOptions",editorType:"editorType",helpText:"helpText",isRequired:"isRequired",itemType:"itemType",label:"label",name:"name",validationRules:"validationRules",visibleIndex:"visibleIndex",alignItemLabels:"alignItemLabels",caption:"caption",colCount:"colCount",colCountByScreen:"colCountByScreen",tabPanelOptions:"tabPanelOptions",tabs:"tabs",badge:"badge",tabTemplate:"tabTemplate",alignment:"alignment",buttonOptions:"buttonOptions",horizontalAlignment:"horizontalAlignment",verticalAlignment:"verticalAlignment",height:"height",width:"width",locateInMenu:"locateInMenu",location:"location",menuItemTemplate:"menuItemTemplate",options:"options",showText:"showText",widget:"widget",imageAlt:"imageAlt",imageSrc:"imageSrc",formatName:"formatName",formatValues:"formatValues",key:"key",showChevron:"showChevron",menuTemplate:"menuTemplate",heightRatio:"heightRatio",widthRatio:"widthRatio",expanded:"expanded",hasItems:"hasItems",parentId:"parentId"},features:[d.Nb([h.j,h.f]),d.Lb],ngContentSelectors:p,decls:1,vars:0,template:function(e,t){1&e&&(d.vc(),d.uc(0))},styles:["[_nghost-%COMP%] { display: block; }"]}),e=i=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__param)(3,Object(d.w)(f.e)),Object(l.__param)(4,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j,d.O,Object,h.f,d.q])],e)}(),ae=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),se=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),ce=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),ue=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),le=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"location",get:function(){return this._getOption("location")},set:function(e){this._setOption("location",e)}},{key:"name",get:function(){return this._getOption("name")},set:function(e){this._setOption("name",e)}},{key:"options",get:function(){return this._getOption("options")},set:function(e){this._setOption("options",e)}},{key:"cssClass",get:function(){return this._getOption("cssClass")},set:function(e){this._setOption("cssClass",e)}},{key:"hint",get:function(){return this._getOption("hint")},set:function(e){this._setOption("hint",e)}},{key:"icon",get:function(){return this._getOption("icon")},set:function(e){this._setOption("icon",e)}},{key:"onClick",get:function(){return this._getOption("onClick")},set:function(e){this._setOption("onClick",e)}},{key:"template",get:function(){return this._getOption("template")},set:function(e){this._setOption("template",e)}},{key:"text",get:function(){return this._getOption("text")},set:function(e){this._setOption("text",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}}]),n}(h.a),de=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"buttons"}}]),n}(le);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-button"]],inputs:{location:"location",name:"name",options:"options",cssClass:"cssClass",hint:"hint",icon:"icon",onClick:"onClick",template:"template",text:"text",visible:"visible"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),he=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),fe=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"accessKey",get:function(){return this._getOption("accessKey")},set:function(e){this._setOption("accessKey",e)}},{key:"activeStateEnabled",get:function(){return this._getOption("activeStateEnabled")},set:function(e){this._setOption("activeStateEnabled",e)}},{key:"disabled",get:function(){return this._getOption("disabled")},set:function(e){this._setOption("disabled",e)}},{key:"elementAttr",get:function(){return this._getOption("elementAttr")},set:function(e){this._setOption("elementAttr",e)}},{key:"focusStateEnabled",get:function(){return this._getOption("focusStateEnabled")},set:function(e){this._setOption("focusStateEnabled",e)}},{key:"height",get:function(){return this._getOption("height")},set:function(e){this._setOption("height",e)}},{key:"hint",get:function(){return this._getOption("hint")},set:function(e){this._setOption("hint",e)}},{key:"hoverStateEnabled",get:function(){return this._getOption("hoverStateEnabled")},set:function(e){this._setOption("hoverStateEnabled",e)}},{key:"icon",get:function(){return this._getOption("icon")},set:function(e){this._setOption("icon",e)}},{key:"onClick",get:function(){return this._getOption("onClick")},set:function(e){this._setOption("onClick",e)}},{key:"onContentReady",get:function(){return this._getOption("onContentReady")},set:function(e){this._setOption("onContentReady",e)}},{key:"onDisposing",get:function(){return this._getOption("onDisposing")},set:function(e){this._setOption("onDisposing",e)}},{key:"onInitialized",get:function(){return this._getOption("onInitialized")},set:function(e){this._setOption("onInitialized",e)}},{key:"onOptionChanged",get:function(){return this._getOption("onOptionChanged")},set:function(e){this._setOption("onOptionChanged",e)}},{key:"rtlEnabled",get:function(){return this._getOption("rtlEnabled")},set:function(e){this._setOption("rtlEnabled",e)}},{key:"stylingMode",get:function(){return this._getOption("stylingMode")},set:function(e){this._setOption("stylingMode",e)}},{key:"tabIndex",get:function(){return this._getOption("tabIndex")},set:function(e){this._setOption("tabIndex",e)}},{key:"template",get:function(){return this._getOption("template")},set:function(e){this._setOption("template",e)}},{key:"text",get:function(){return this._getOption("text")},set:function(e){this._setOption("text",e)}},{key:"type",get:function(){return this._getOption("type")},set:function(e){this._setOption("type",e)}},{key:"useSubmitBehavior",get:function(){return this._getOption("useSubmitBehavior")},set:function(e){this._setOption("useSubmitBehavior",e)}},{key:"validationGroup",get:function(){return this._getOption("validationGroup")},set:function(e){this._setOption("validationGroup",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"width",get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)}}]),n}(h.i),pe=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"buttonOptions"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(fe);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-button-options"]],inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",icon:"icon",onClick:"onClick",onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",rtlEnabled:"rtlEnabled",stylingMode:"stylingMode",tabIndex:"tabIndex",template:"template",text:"text",type:"type",useSubmitBehavior:"useSubmitBehavior",validationGroup:"validationGroup",visible:"visible",width:"width"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),ge=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),me=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),ve=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),_e=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"lat",get:function(){return this._getOption("lat")},set:function(e){this._setOption("lat",e)}},{key:"lng",get:function(){return this._getOption("lng")},set:function(e){this._setOption("lng",e)}},{key:"_optionPath",get:function(){return"center"}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-center"]],inputs:{lat:"lat",lng:"lng"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),ye=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),be=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"aggregation",get:function(){return this._getOption("aggregation")},set:function(e){this._setOption("aggregation",e)}},{key:"argumentField",get:function(){return this._getOption("argumentField")},set:function(e){this._setOption("argumentField",e)}},{key:"axis",get:function(){return this._getOption("axis")},set:function(e){this._setOption("axis",e)}},{key:"barOverlapGroup",get:function(){return this._getOption("barOverlapGroup")},set:function(e){this._setOption("barOverlapGroup",e)}},{key:"barPadding",get:function(){return this._getOption("barPadding")},set:function(e){this._setOption("barPadding",e)}},{key:"barWidth",get:function(){return this._getOption("barWidth")},set:function(e){this._setOption("barWidth",e)}},{key:"border",get:function(){return this._getOption("border")},set:function(e){this._setOption("border",e)}},{key:"closeValueField",get:function(){return this._getOption("closeValueField")},set:function(e){this._setOption("closeValueField",e)}},{key:"color",get:function(){return this._getOption("color")},set:function(e){this._setOption("color",e)}},{key:"cornerRadius",get:function(){return this._getOption("cornerRadius")},set:function(e){this._setOption("cornerRadius",e)}},{key:"dashStyle",get:function(){return this._getOption("dashStyle")},set:function(e){this._setOption("dashStyle",e)}},{key:"highValueField",get:function(){return this._getOption("highValueField")},set:function(e){this._setOption("highValueField",e)}},{key:"hoverMode",get:function(){return this._getOption("hoverMode")},set:function(e){this._setOption("hoverMode",e)}},{key:"hoverStyle",get:function(){return this._getOption("hoverStyle")},set:function(e){this._setOption("hoverStyle",e)}},{key:"ignoreEmptyPoints",get:function(){return this._getOption("ignoreEmptyPoints")},set:function(e){this._setOption("ignoreEmptyPoints",e)}},{key:"innerColor",get:function(){return this._getOption("innerColor")},set:function(e){this._setOption("innerColor",e)}},{key:"label",get:function(){return this._getOption("label")},set:function(e){this._setOption("label",e)}},{key:"lowValueField",get:function(){return this._getOption("lowValueField")},set:function(e){this._setOption("lowValueField",e)}},{key:"maxLabelCount",get:function(){return this._getOption("maxLabelCount")},set:function(e){this._setOption("maxLabelCount",e)}},{key:"minBarSize",get:function(){return this._getOption("minBarSize")},set:function(e){this._setOption("minBarSize",e)}},{key:"name",get:function(){return this._getOption("name")},set:function(e){this._setOption("name",e)}},{key:"opacity",get:function(){return this._getOption("opacity")},set:function(e){this._setOption("opacity",e)}},{key:"openValueField",get:function(){return this._getOption("openValueField")},set:function(e){this._setOption("openValueField",e)}},{key:"pane",get:function(){return this._getOption("pane")},set:function(e){this._setOption("pane",e)}},{key:"point",get:function(){return this._getOption("point")},set:function(e){this._setOption("point",e)}},{key:"rangeValue1Field",get:function(){return this._getOption("rangeValue1Field")},set:function(e){this._setOption("rangeValue1Field",e)}},{key:"rangeValue2Field",get:function(){return this._getOption("rangeValue2Field")},set:function(e){this._setOption("rangeValue2Field",e)}},{key:"reduction",get:function(){return this._getOption("reduction")},set:function(e){this._setOption("reduction",e)}},{key:"selectionMode",get:function(){return this._getOption("selectionMode")},set:function(e){this._setOption("selectionMode",e)}},{key:"selectionStyle",get:function(){return this._getOption("selectionStyle")},set:function(e){this._setOption("selectionStyle",e)}},{key:"showInLegend",get:function(){return this._getOption("showInLegend")},set:function(e){this._setOption("showInLegend",e)}},{key:"sizeField",get:function(){return this._getOption("sizeField")},set:function(e){this._setOption("sizeField",e)}},{key:"stack",get:function(){return this._getOption("stack")},set:function(e){this._setOption("stack",e)}},{key:"tag",get:function(){return this._getOption("tag")},set:function(e){this._setOption("tag",e)}},{key:"tagField",get:function(){return this._getOption("tagField")},set:function(e){this._setOption("tagField",e)}},{key:"type",get:function(){return this._getOption("type")},set:function(e){this._setOption("type",e)}},{key:"valueErrorBar",get:function(){return this._getOption("valueErrorBar")},set:function(e){this._setOption("valueErrorBar",e)}},{key:"valueField",get:function(){return this._getOption("valueField")},set:function(e){this._setOption("valueField",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"width",get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)}},{key:"argumentType",get:function(){return this._getOption("argumentType")},set:function(e){this._setOption("argumentType",e)}},{key:"minSegmentSize",get:function(){return this._getOption("minSegmentSize")},set:function(e){this._setOption("minSegmentSize",e)}},{key:"smallValuesGrouping",get:function(){return this._getOption("smallValuesGrouping")},set:function(e){this._setOption("smallValuesGrouping",e)}},{key:"closed",get:function(){return this._getOption("closed")},set:function(e){this._setOption("closed",e)}}]),n}(h.a),we=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"series"}}]),n}(be);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-series"]],inputs:{aggregation:"aggregation",argumentField:"argumentField",axis:"axis",barOverlapGroup:"barOverlapGroup",barPadding:"barPadding",barWidth:"barWidth",border:"border",closeValueField:"closeValueField",color:"color",cornerRadius:"cornerRadius",dashStyle:"dashStyle",highValueField:"highValueField",hoverMode:"hoverMode",hoverStyle:"hoverStyle",ignoreEmptyPoints:"ignoreEmptyPoints",innerColor:"innerColor",label:"label",lowValueField:"lowValueField",maxLabelCount:"maxLabelCount",minBarSize:"minBarSize",name:"name",opacity:"opacity",openValueField:"openValueField",pane:"pane",point:"point",rangeValue1Field:"rangeValue1Field",rangeValue2Field:"rangeValue2Field",reduction:"reduction",selectionMode:"selectionMode",selectionStyle:"selectionStyle",showInLegend:"showInLegend",sizeField:"sizeField",stack:"stack",tag:"tag",tagField:"tagField",type:"type",valueErrorBar:"valueErrorBar",valueField:"valueField",visible:"visible",width:"width",argumentType:"argumentType",minSegmentSize:"minSegmentSize",smallValuesGrouping:"smallValuesGrouping",closed:"closed"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Ce=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Oe=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Se=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"lg",get:function(){return this._getOption("lg")},set:function(e){this._setOption("lg",e)}},{key:"md",get:function(){return this._getOption("md")},set:function(e){this._setOption("md",e)}},{key:"sm",get:function(){return this._getOption("sm")},set:function(e){this._setOption("sm",e)}},{key:"xs",get:function(){return this._getOption("xs")},set:function(e){this._setOption("xs",e)}},{key:"_optionPath",get:function(){return"colCountByScreen"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-col-count-by-screen"]],inputs:{lg:"lg",md:"md",sm:"sm",xs:"xs"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),ke=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),xe=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"baseSize",get:function(){return this._getOption("baseSize")},set:function(e){this._setOption("baseSize",e)}},{key:"ratio",get:function(){return this._getOption("ratio")},set:function(e){this._setOption("ratio",e)}},{key:"screen",get:function(){return this._getOption("screen")},set:function(e){this._setOption("screen",e)}},{key:"shrink",get:function(){return this._getOption("shrink")},set:function(e){this._setOption("shrink",e)}},{key:"_optionPath",get:function(){return"cols"}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-col"]],inputs:{baseSize:"baseSize",ratio:"ratio",screen:"screen",shrink:"shrink"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Te=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Ee=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"x",get:function(){return this._getOption("x")},set:function(e){this._setOption("x",e)}},{key:"y",get:function(){return this._getOption("y")},set:function(e){this._setOption("y",e)}},{key:"_optionPath",get:function(){return"collision"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-collision"]],inputs:{x:"x",y:"y"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Ie=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),De=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Me=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"allowSearch",get:function(){return this._getOption("allowSearch")},set:function(e){this._setOption("allowSearch",e)}},{key:"emptyPanelText",get:function(){return this._getOption("emptyPanelText")},set:function(e){this._setOption("emptyPanelText",e)}},{key:"enabled",get:function(){return this._getOption("enabled")},set:function(e){this._setOption("enabled",e)}},{key:"height",get:function(){return this._getOption("height")},set:function(e){this._setOption("height",e)}},{key:"mode",get:function(){return this._getOption("mode")},set:function(e){this._setOption("mode",e)}},{key:"searchTimeout",get:function(){return this._getOption("searchTimeout")},set:function(e){this._setOption("searchTimeout",e)}},{key:"title",get:function(){return this._getOption("title")},set:function(e){this._setOption("title",e)}},{key:"width",get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)}},{key:"_optionPath",get:function(){return"columnChooser"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-column-chooser"]],inputs:{allowSearch:"allowSearch",emptyPanelText:"emptyPanelText",enabled:"enabled",height:"height",mode:"mode",searchTimeout:"searchTimeout",title:"title",width:"width"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Ae=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Pe=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"alignment",get:function(){return this._getOption("alignment")},set:function(e){this._setOption("alignment",e)}},{key:"allowEditing",get:function(){return this._getOption("allowEditing")},set:function(e){this._setOption("allowEditing",e)}},{key:"allowExporting",get:function(){return this._getOption("allowExporting")},set:function(e){this._setOption("allowExporting",e)}},{key:"allowFiltering",get:function(){return this._getOption("allowFiltering")},set:function(e){this._setOption("allowFiltering",e)}},{key:"allowFixing",get:function(){return this._getOption("allowFixing")},set:function(e){this._setOption("allowFixing",e)}},{key:"allowGrouping",get:function(){return this._getOption("allowGrouping")},set:function(e){this._setOption("allowGrouping",e)}},{key:"allowHeaderFiltering",get:function(){return this._getOption("allowHeaderFiltering")},set:function(e){this._setOption("allowHeaderFiltering",e)}},{key:"allowHiding",get:function(){return this._getOption("allowHiding")},set:function(e){this._setOption("allowHiding",e)}},{key:"allowReordering",get:function(){return this._getOption("allowReordering")},set:function(e){this._setOption("allowReordering",e)}},{key:"allowResizing",get:function(){return this._getOption("allowResizing")},set:function(e){this._setOption("allowResizing",e)}},{key:"allowSearch",get:function(){return this._getOption("allowSearch")},set:function(e){this._setOption("allowSearch",e)}},{key:"allowSorting",get:function(){return this._getOption("allowSorting")},set:function(e){this._setOption("allowSorting",e)}},{key:"autoExpandGroup",get:function(){return this._getOption("autoExpandGroup")},set:function(e){this._setOption("autoExpandGroup",e)}},{key:"buttons",get:function(){return this._getOption("buttons")},set:function(e){this._setOption("buttons",e)}},{key:"calculateCellValue",get:function(){return this._getOption("calculateCellValue")},set:function(e){this._setOption("calculateCellValue",e)}},{key:"calculateDisplayValue",get:function(){return this._getOption("calculateDisplayValue")},set:function(e){this._setOption("calculateDisplayValue",e)}},{key:"calculateFilterExpression",get:function(){return this._getOption("calculateFilterExpression")},set:function(e){this._setOption("calculateFilterExpression",e)}},{key:"calculateGroupValue",get:function(){return this._getOption("calculateGroupValue")},set:function(e){this._setOption("calculateGroupValue",e)}},{key:"calculateSortValue",get:function(){return this._getOption("calculateSortValue")},set:function(e){this._setOption("calculateSortValue",e)}},{key:"caption",get:function(){return this._getOption("caption")},set:function(e){this._setOption("caption",e)}},{key:"cellTemplate",get:function(){return this._getOption("cellTemplate")},set:function(e){this._setOption("cellTemplate",e)}},{key:"columns",get:function(){return this._getOption("columns")},set:function(e){this._setOption("columns",e)}},{key:"cssClass",get:function(){return this._getOption("cssClass")},set:function(e){this._setOption("cssClass",e)}},{key:"customizeText",get:function(){return this._getOption("customizeText")},set:function(e){this._setOption("customizeText",e)}},{key:"dataField",get:function(){return this._getOption("dataField")},set:function(e){this._setOption("dataField",e)}},{key:"dataType",get:function(){return this._getOption("dataType")},set:function(e){this._setOption("dataType",e)}},{key:"editCellTemplate",get:function(){return this._getOption("editCellTemplate")},set:function(e){this._setOption("editCellTemplate",e)}},{key:"editorOptions",get:function(){return this._getOption("editorOptions")},set:function(e){this._setOption("editorOptions",e)}},{key:"encodeHtml",get:function(){return this._getOption("encodeHtml")},set:function(e){this._setOption("encodeHtml",e)}},{key:"falseText",get:function(){return this._getOption("falseText")},set:function(e){this._setOption("falseText",e)}},{key:"filterOperations",get:function(){return this._getOption("filterOperations")},set:function(e){this._setOption("filterOperations",e)}},{key:"filterType",get:function(){return this._getOption("filterType")},set:function(e){this._setOption("filterType",e)}},{key:"filterValue",get:function(){return this._getOption("filterValue")},set:function(e){this._setOption("filterValue",e)}},{key:"filterValues",get:function(){return this._getOption("filterValues")},set:function(e){this._setOption("filterValues",e)}},{key:"fixed",get:function(){return this._getOption("fixed")},set:function(e){this._setOption("fixed",e)}},{key:"fixedPosition",get:function(){return this._getOption("fixedPosition")},set:function(e){this._setOption("fixedPosition",e)}},{key:"format",get:function(){return this._getOption("format")},set:function(e){this._setOption("format",e)}},{key:"formItem",get:function(){return this._getOption("formItem")},set:function(e){this._setOption("formItem",e)}},{key:"groupCellTemplate",get:function(){return this._getOption("groupCellTemplate")},set:function(e){this._setOption("groupCellTemplate",e)}},{key:"groupIndex",get:function(){return this._getOption("groupIndex")},set:function(e){this._setOption("groupIndex",e)}},{key:"headerCellTemplate",get:function(){return this._getOption("headerCellTemplate")},set:function(e){this._setOption("headerCellTemplate",e)}},{key:"headerFilter",get:function(){return this._getOption("headerFilter")},set:function(e){this._setOption("headerFilter",e)}},{key:"hidingPriority",get:function(){return this._getOption("hidingPriority")},set:function(e){this._setOption("hidingPriority",e)}},{key:"isBand",get:function(){return this._getOption("isBand")},set:function(e){this._setOption("isBand",e)}},{key:"lookup",get:function(){return this._getOption("lookup")},set:function(e){this._setOption("lookup",e)}},{key:"minWidth",get:function(){return this._getOption("minWidth")},set:function(e){this._setOption("minWidth",e)}},{key:"name",get:function(){return this._getOption("name")},set:function(e){this._setOption("name",e)}},{key:"ownerBand",get:function(){return this._getOption("ownerBand")},set:function(e){this._setOption("ownerBand",e)}},{key:"renderAsync",get:function(){return this._getOption("renderAsync")},set:function(e){this._setOption("renderAsync",e)}},{key:"selectedFilterOperation",get:function(){return this._getOption("selectedFilterOperation")},set:function(e){this._setOption("selectedFilterOperation",e)}},{key:"setCellValue",get:function(){return this._getOption("setCellValue")},set:function(e){this._setOption("setCellValue",e)}},{key:"showEditorAlways",get:function(){return this._getOption("showEditorAlways")},set:function(e){this._setOption("showEditorAlways",e)}},{key:"showInColumnChooser",get:function(){return this._getOption("showInColumnChooser")},set:function(e){this._setOption("showInColumnChooser",e)}},{key:"showWhenGrouped",get:function(){return this._getOption("showWhenGrouped")},set:function(e){this._setOption("showWhenGrouped",e)}},{key:"sortIndex",get:function(){return this._getOption("sortIndex")},set:function(e){this._setOption("sortIndex",e)}},{key:"sortingMethod",get:function(){return this._getOption("sortingMethod")},set:function(e){this._setOption("sortingMethod",e)}},{key:"sortOrder",get:function(){return this._getOption("sortOrder")},set:function(e){this._setOption("sortOrder",e)}},{key:"trueText",get:function(){return this._getOption("trueText")},set:function(e){this._setOption("trueText",e)}},{key:"type",get:function(){return this._getOption("type")},set:function(e){this._setOption("type",e)}},{key:"validationRules",get:function(){return this._getOption("validationRules")},set:function(e){this._setOption("validationRules",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"visibleIndex",get:function(){return this._getOption("visibleIndex")},set:function(e){this._setOption("visibleIndex",e)}},{key:"width",get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)}}]),n}(h.a),Le=function(){var e=r=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this))._createEventEmitters([{emit:"filterValueChange"},{emit:"filterValuesChange"},{emit:"groupIndexChange"},{emit:"selectedFilterOperationChange"},{emit:"sortIndexChange"},{emit:"sortOrderChange"},{emit:"visibleChange"},{emit:"visibleIndexChange"}]),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"columns"}},{key:"buttonsChildren",get:function(){return this._getOption("buttons")},set:function(e){this.setChildren("buttons",e)}},{key:"columnsChildren",get:function(){return this._getOption("columns")},set:function(e){this.setChildren("columns",e)}},{key:"validationRulesChildren",get:function(){return this._getOption("validationRules")},set:function(e){this.setChildren("validationRules",e)}}]),n}(Pe);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-column"]],contentQueries:function(e,t,n){var i;1&e&&(d.Tb(n,de,!1),d.Tb(n,r,!1),d.Tb(n,q,!1)),2&e&&(d.Ec(i=d.oc())&&(t.buttonsChildren=i),d.Ec(i=d.oc())&&(t.columnsChildren=i),d.Ec(i=d.oc())&&(t.validationRulesChildren=i))},inputs:{alignment:"alignment",allowEditing:"allowEditing",allowExporting:"allowExporting",allowFiltering:"allowFiltering",allowFixing:"allowFixing",allowGrouping:"allowGrouping",allowHeaderFiltering:"allowHeaderFiltering",allowHiding:"allowHiding",allowReordering:"allowReordering",allowResizing:"allowResizing",allowSearch:"allowSearch",allowSorting:"allowSorting",autoExpandGroup:"autoExpandGroup",buttons:"buttons",calculateCellValue:"calculateCellValue",calculateDisplayValue:"calculateDisplayValue",calculateFilterExpression:"calculateFilterExpression",calculateGroupValue:"calculateGroupValue",calculateSortValue:"calculateSortValue",caption:"caption",cellTemplate:"cellTemplate",columns:"columns",cssClass:"cssClass",customizeText:"customizeText",dataField:"dataField",dataType:"dataType",editCellTemplate:"editCellTemplate",editorOptions:"editorOptions",encodeHtml:"encodeHtml",falseText:"falseText",filterOperations:"filterOperations",filterType:"filterType",filterValue:"filterValue",filterValues:"filterValues",fixed:"fixed",fixedPosition:"fixedPosition",format:"format",formItem:"formItem",groupCellTemplate:"groupCellTemplate",groupIndex:"groupIndex",headerCellTemplate:"headerCellTemplate",headerFilter:"headerFilter",hidingPriority:"hidingPriority",isBand:"isBand",lookup:"lookup",minWidth:"minWidth",name:"name",ownerBand:"ownerBand",renderAsync:"renderAsync",selectedFilterOperation:"selectedFilterOperation",setCellValue:"setCellValue",showEditorAlways:"showEditorAlways",showInColumnChooser:"showInColumnChooser",showWhenGrouped:"showWhenGrouped",sortIndex:"sortIndex",sortingMethod:"sortingMethod",sortOrder:"sortOrder",trueText:"trueText",type:"type",validationRules:"validationRules",visible:"visible",visibleIndex:"visibleIndex",width:"width"},outputs:{filterValueChange:"filterValueChange",filterValuesChange:"filterValuesChange",groupIndexChange:"groupIndexChange",selectedFilterOperationChange:"selectedFilterOperationChange",sortIndexChange:"sortIndexChange",sortOrderChange:"sortOrderChange",visibleChange:"visibleChange",visibleIndexChange:"visibleIndexChange"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=r=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Re=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),je=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"enabled",get:function(){return this._getOption("enabled")},set:function(e){this._setOption("enabled",e)}},{key:"texts",get:function(){return this._getOption("texts")},set:function(e){this._setOption("texts",e)}},{key:"_optionPath",get:function(){return"columnFixing"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-column-fixing"]],inputs:{enabled:"enabled",texts:"texts"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Ne=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Fe=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Be=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Ve=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),$e=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"commonSeriesSettings"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(x);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-common-series-settings"]],inputs:{aggregation:"aggregation",area:"area",argumentField:"argumentField",axis:"axis",bar:"bar",barOverlapGroup:"barOverlapGroup",barPadding:"barPadding",barWidth:"barWidth",border:"border",bubble:"bubble",candlestick:"candlestick",closeValueField:"closeValueField",color:"color",cornerRadius:"cornerRadius",dashStyle:"dashStyle",fullstackedarea:"fullstackedarea",fullstackedbar:"fullstackedbar",fullstackedline:"fullstackedline",fullstackedspline:"fullstackedspline",fullstackedsplinearea:"fullstackedsplinearea",highValueField:"highValueField",hoverMode:"hoverMode",hoverStyle:"hoverStyle",ignoreEmptyPoints:"ignoreEmptyPoints",innerColor:"innerColor",label:"label",line:"line",lowValueField:"lowValueField",maxLabelCount:"maxLabelCount",minBarSize:"minBarSize",opacity:"opacity",openValueField:"openValueField",pane:"pane",point:"point",rangearea:"rangearea",rangebar:"rangebar",rangeValue1Field:"rangeValue1Field",rangeValue2Field:"rangeValue2Field",reduction:"reduction",scatter:"scatter",selectionMode:"selectionMode",selectionStyle:"selectionStyle",showInLegend:"showInLegend",sizeField:"sizeField",spline:"spline",splinearea:"splinearea",stack:"stack",stackedarea:"stackedarea",stackedbar:"stackedbar",stackedline:"stackedline",stackedspline:"stackedspline",stackedsplinearea:"stackedsplinearea",steparea:"steparea",stepline:"stepline",stock:"stock",tagField:"tagField",type:"type",valueErrorBar:"valueErrorBar",valueField:"valueField",visible:"visible",width:"width",argumentType:"argumentType",minSegmentSize:"minSegmentSize",smallValuesGrouping:"smallValuesGrouping",closed:"closed"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),He=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Ue=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"x",get:function(){return this._getOption("x")},set:function(e){this._setOption("x",e)}},{key:"y",get:function(){return this._getOption("y")},set:function(e){this._setOption("y",e)}},{key:"_optionPath",get:function(){return"connectionPoints"}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-connection-point"]],inputs:{x:"x",y:"y"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),ze=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),We=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Ye=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Ge=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),qe=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Ke=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Xe=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Je=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"x",get:function(){return this._getOption("x")},set:function(e){this._setOption("x",e)}},{key:"y",get:function(){return this._getOption("y")},set:function(e){this._setOption("y",e)}},{key:"_optionPath",get:function(){return"cursorOffset"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-cursor-offset"]],inputs:{x:"x",y:"y"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Qe=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Ze=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"calculateFilterExpression",get:function(){return this._getOption("calculateFilterExpression")},set:function(e){this._setOption("calculateFilterExpression",e)}},{key:"caption",get:function(){return this._getOption("caption")},set:function(e){this._setOption("caption",e)}},{key:"customizeText",get:function(){return this._getOption("customizeText")},set:function(e){this._setOption("customizeText",e)}},{key:"dataTypes",get:function(){return this._getOption("dataTypes")},set:function(e){this._setOption("dataTypes",e)}},{key:"editorTemplate",get:function(){return this._getOption("editorTemplate")},set:function(e){this._setOption("editorTemplate",e)}},{key:"hasValue",get:function(){return this._getOption("hasValue")},set:function(e){this._setOption("hasValue",e)}},{key:"icon",get:function(){return this._getOption("icon")},set:function(e){this._setOption("icon",e)}},{key:"name",get:function(){return this._getOption("name")},set:function(e){this._setOption("name",e)}}]),n}(h.a),et=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"customOperations"}}]),n}(Ze);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-custom-operation"]],inputs:{calculateFilterExpression:"calculateFilterExpression",caption:"caption",customizeText:"customizeText",dataTypes:"dataTypes",editorTemplate:"editorTemplate",hasValue:"hasValue",icon:"icon",name:"name"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),tt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),nt=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i,r,a,c,u){var l;return Object(o.a)(this,n),(l=t.call(this)).renderer=r,l.document=a,l.element=u,e.setNestedOption(Object(s.a)(l)),i.setHost(Object(s.a)(l),l._fullOptionPath.bind(Object(s.a)(l))),c.setHost(Object(s.a)(l)),l}return Object(a.a)(n,[{key:"allowEditImage",get:function(){return this._getOption("allowEditImage")},set:function(e){this._setOption("allowEditImage",e)}},{key:"allowEditText",get:function(){return this._getOption("allowEditText")},set:function(e){this._setOption("allowEditText",e)}},{key:"allowResize",get:function(){return this._getOption("allowResize")},set:function(e){this._setOption("allowResize",e)}},{key:"backgroundImageHeight",get:function(){return this._getOption("backgroundImageHeight")},set:function(e){this._setOption("backgroundImageHeight",e)}},{key:"backgroundImageLeft",get:function(){return this._getOption("backgroundImageLeft")},set:function(e){this._setOption("backgroundImageLeft",e)}},{key:"backgroundImageToolboxUrl",get:function(){return this._getOption("backgroundImageToolboxUrl")},set:function(e){this._setOption("backgroundImageToolboxUrl",e)}},{key:"backgroundImageTop",get:function(){return this._getOption("backgroundImageTop")},set:function(e){this._setOption("backgroundImageTop",e)}},{key:"backgroundImageUrl",get:function(){return this._getOption("backgroundImageUrl")},set:function(e){this._setOption("backgroundImageUrl",e)}},{key:"backgroundImageWidth",get:function(){return this._getOption("backgroundImageWidth")},set:function(e){this._setOption("backgroundImageWidth",e)}},{key:"baseType",get:function(){return this._getOption("baseType")},set:function(e){this._setOption("baseType",e)}},{key:"category",get:function(){return this._getOption("category")},set:function(e){this._setOption("category",e)}},{key:"connectionPoints",get:function(){return this._getOption("connectionPoints")},set:function(e){this._setOption("connectionPoints",e)}},{key:"defaultHeight",get:function(){return this._getOption("defaultHeight")},set:function(e){this._setOption("defaultHeight",e)}},{key:"defaultImageUrl",get:function(){return this._getOption("defaultImageUrl")},set:function(e){this._setOption("defaultImageUrl",e)}},{key:"defaultText",get:function(){return this._getOption("defaultText")},set:function(e){this._setOption("defaultText",e)}},{key:"defaultWidth",get:function(){return this._getOption("defaultWidth")},set:function(e){this._setOption("defaultWidth",e)}},{key:"imageHeight",get:function(){return this._getOption("imageHeight")},set:function(e){this._setOption("imageHeight",e)}},{key:"imageLeft",get:function(){return this._getOption("imageLeft")},set:function(e){this._setOption("imageLeft",e)}},{key:"imageTop",get:function(){return this._getOption("imageTop")},set:function(e){this._setOption("imageTop",e)}},{key:"imageWidth",get:function(){return this._getOption("imageWidth")},set:function(e){this._setOption("imageWidth",e)}},{key:"maxHeight",get:function(){return this._getOption("maxHeight")},set:function(e){this._setOption("maxHeight",e)}},{key:"maxWidth",get:function(){return this._getOption("maxWidth")},set:function(e){this._setOption("maxWidth",e)}},{key:"minHeight",get:function(){return this._getOption("minHeight")},set:function(e){this._setOption("minHeight",e)}},{key:"minWidth",get:function(){return this._getOption("minWidth")},set:function(e){this._setOption("minWidth",e)}},{key:"template",get:function(){return this._getOption("template")},set:function(e){this._setOption("template",e)}},{key:"templateHeight",get:function(){return this._getOption("templateHeight")},set:function(e){this._setOption("templateHeight",e)}},{key:"templateLeft",get:function(){return this._getOption("templateLeft")},set:function(e){this._setOption("templateLeft",e)}},{key:"templateTop",get:function(){return this._getOption("templateTop")},set:function(e){this._setOption("templateTop",e)}},{key:"templateWidth",get:function(){return this._getOption("templateWidth")},set:function(e){this._setOption("templateWidth",e)}},{key:"textHeight",get:function(){return this._getOption("textHeight")},set:function(e){this._setOption("textHeight",e)}},{key:"textLeft",get:function(){return this._getOption("textLeft")},set:function(e){this._setOption("textLeft",e)}},{key:"textTop",get:function(){return this._getOption("textTop")},set:function(e){this._setOption("textTop",e)}},{key:"textWidth",get:function(){return this._getOption("textWidth")},set:function(e){this._setOption("textWidth",e)}},{key:"title",get:function(){return this._getOption("title")},set:function(e){this._setOption("title",e)}},{key:"type",get:function(){return this._getOption("type")},set:function(e){this._setOption("type",e)}},{key:"_optionPath",get:function(){return"customShapes"}},{key:"connectionPointsChildren",get:function(){return this._getOption("connectionPoints")},set:function(e){this.setChildren("connectionPoints",e)}},{key:"setTemplate",value:function(e){this.template=e}},{key:"ngAfterViewInit",value:function(){Object(h.l)(this,this.element,this.renderer,this.document)}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1),d.ac(d.O),d.ac(f.e),d.ac(h.f,1),d.ac(d.q))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-custom-shape"]],contentQueries:function(e,t,n){var i;1&e&&d.Tb(n,Ue,!1),2&e&&d.Ec(i=d.oc())&&(t.connectionPointsChildren=i)},inputs:{allowEditImage:"allowEditImage",allowEditText:"allowEditText",allowResize:"allowResize",backgroundImageHeight:"backgroundImageHeight",backgroundImageLeft:"backgroundImageLeft",backgroundImageToolboxUrl:"backgroundImageToolboxUrl",backgroundImageTop:"backgroundImageTop",backgroundImageUrl:"backgroundImageUrl",backgroundImageWidth:"backgroundImageWidth",baseType:"baseType",category:"category",connectionPoints:"connectionPoints",defaultHeight:"defaultHeight",defaultImageUrl:"defaultImageUrl",defaultText:"defaultText",defaultWidth:"defaultWidth",imageHeight:"imageHeight",imageLeft:"imageLeft",imageTop:"imageTop",imageWidth:"imageWidth",maxHeight:"maxHeight",maxWidth:"maxWidth",minHeight:"minHeight",minWidth:"minWidth",template:"template",templateHeight:"templateHeight",templateLeft:"templateLeft",templateTop:"templateTop",templateWidth:"templateWidth",textHeight:"textHeight",textLeft:"textLeft",textTop:"textTop",textWidth:"textWidth",title:"title",type:"type"},features:[d.Nb([h.j,h.f]),d.Lb],ngContentSelectors:p,decls:1,vars:0,template:function(e,t){1&e&&(d.vc(),d.uc(0))},styles:["[_nghost-%COMP%] { display: block; }"]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__param)(3,Object(d.w)(f.e)),Object(l.__param)(4,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j,d.O,Object,h.f,d.q])],e)}(),it=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),rt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),ot=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"calculateFilterExpression",get:function(){return this._getOption("calculateFilterExpression")},set:function(e){this._setOption("calculateFilterExpression",e)}},{key:"caption",get:function(){return this._getOption("caption")},set:function(e){this._setOption("caption",e)}},{key:"customizeText",get:function(){return this._getOption("customizeText")},set:function(e){this._setOption("customizeText",e)}},{key:"dataField",get:function(){return this._getOption("dataField")},set:function(e){this._setOption("dataField",e)}},{key:"dataType",get:function(){return this._getOption("dataType")},set:function(e){this._setOption("dataType",e)}},{key:"editorOptions",get:function(){return this._getOption("editorOptions")},set:function(e){this._setOption("editorOptions",e)}},{key:"editorTemplate",get:function(){return this._getOption("editorTemplate")},set:function(e){this._setOption("editorTemplate",e)}},{key:"falseText",get:function(){return this._getOption("falseText")},set:function(e){this._setOption("falseText",e)}},{key:"filterOperations",get:function(){return this._getOption("filterOperations")},set:function(e){this._setOption("filterOperations",e)}},{key:"format",get:function(){return this._getOption("format")},set:function(e){this._setOption("format",e)}},{key:"lookup",get:function(){return this._getOption("lookup")},set:function(e){this._setOption("lookup",e)}},{key:"name",get:function(){return this._getOption("name")},set:function(e){this._setOption("name",e)}},{key:"trueText",get:function(){return this._getOption("trueText")},set:function(e){this._setOption("trueText",e)}},{key:"allowCrossGroupCalculation",get:function(){return this._getOption("allowCrossGroupCalculation")},set:function(e){this._setOption("allowCrossGroupCalculation",e)}},{key:"allowExpandAll",get:function(){return this._getOption("allowExpandAll")},set:function(e){this._setOption("allowExpandAll",e)}},{key:"allowFiltering",get:function(){return this._getOption("allowFiltering")},set:function(e){this._setOption("allowFiltering",e)}},{key:"allowSorting",get:function(){return this._getOption("allowSorting")},set:function(e){this._setOption("allowSorting",e)}},{key:"allowSortingBySummary",get:function(){return this._getOption("allowSortingBySummary")},set:function(e){this._setOption("allowSortingBySummary",e)}},{key:"area",get:function(){return this._getOption("area")},set:function(e){this._setOption("area",e)}},{key:"areaIndex",get:function(){return this._getOption("areaIndex")},set:function(e){this._setOption("areaIndex",e)}},{key:"calculateCustomSummary",get:function(){return this._getOption("calculateCustomSummary")},set:function(e){this._setOption("calculateCustomSummary",e)}},{key:"calculateSummaryValue",get:function(){return this._getOption("calculateSummaryValue")},set:function(e){this._setOption("calculateSummaryValue",e)}},{key:"displayFolder",get:function(){return this._getOption("displayFolder")},set:function(e){this._setOption("displayFolder",e)}},{key:"expanded",get:function(){return this._getOption("expanded")},set:function(e){this._setOption("expanded",e)}},{key:"filterType",get:function(){return this._getOption("filterType")},set:function(e){this._setOption("filterType",e)}},{key:"filterValues",get:function(){return this._getOption("filterValues")},set:function(e){this._setOption("filterValues",e)}},{key:"groupIndex",get:function(){return this._getOption("groupIndex")},set:function(e){this._setOption("groupIndex",e)}},{key:"groupInterval",get:function(){return this._getOption("groupInterval")},set:function(e){this._setOption("groupInterval",e)}},{key:"groupName",get:function(){return this._getOption("groupName")},set:function(e){this._setOption("groupName",e)}},{key:"headerFilter",get:function(){return this._getOption("headerFilter")},set:function(e){this._setOption("headerFilter",e)}},{key:"isMeasure",get:function(){return this._getOption("isMeasure")},set:function(e){this._setOption("isMeasure",e)}},{key:"precision",get:function(){return this._getOption("precision")},set:function(e){this._setOption("precision",e)}},{key:"runningTotal",get:function(){return this._getOption("runningTotal")},set:function(e){this._setOption("runningTotal",e)}},{key:"selector",get:function(){return this._getOption("selector")},set:function(e){this._setOption("selector",e)}},{key:"showGrandTotals",get:function(){return this._getOption("showGrandTotals")},set:function(e){this._setOption("showGrandTotals",e)}},{key:"showTotals",get:function(){return this._getOption("showTotals")},set:function(e){this._setOption("showTotals",e)}},{key:"showValues",get:function(){return this._getOption("showValues")},set:function(e){this._setOption("showValues",e)}},{key:"sortBy",get:function(){return this._getOption("sortBy")},set:function(e){this._setOption("sortBy",e)}},{key:"sortBySummaryField",get:function(){return this._getOption("sortBySummaryField")},set:function(e){this._setOption("sortBySummaryField",e)}},{key:"sortBySummaryPath",get:function(){return this._getOption("sortBySummaryPath")},set:function(e){this._setOption("sortBySummaryPath",e)}},{key:"sortingMethod",get:function(){return this._getOption("sortingMethod")},set:function(e){this._setOption("sortingMethod",e)}},{key:"sortOrder",get:function(){return this._getOption("sortOrder")},set:function(e){this._setOption("sortOrder",e)}},{key:"summaryDisplayMode",get:function(){return this._getOption("summaryDisplayMode")},set:function(e){this._setOption("summaryDisplayMode",e)}},{key:"summaryType",get:function(){return this._getOption("summaryType")},set:function(e){this._setOption("summaryType",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"width",get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)}},{key:"wordWrapEnabled",get:function(){return this._getOption("wordWrapEnabled")},set:function(e){this._setOption("wordWrapEnabled",e)}}]),n}(h.a),at=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"fields"}}]),n}(ot);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-field"]],inputs:{calculateFilterExpression:"calculateFilterExpression",caption:"caption",customizeText:"customizeText",dataField:"dataField",dataType:"dataType",editorOptions:"editorOptions",editorTemplate:"editorTemplate",falseText:"falseText",filterOperations:"filterOperations",format:"format",lookup:"lookup",name:"name",trueText:"trueText",allowCrossGroupCalculation:"allowCrossGroupCalculation",allowExpandAll:"allowExpandAll",allowFiltering:"allowFiltering",allowSorting:"allowSorting",allowSortingBySummary:"allowSortingBySummary",area:"area",areaIndex:"areaIndex",calculateCustomSummary:"calculateCustomSummary",calculateSummaryValue:"calculateSummaryValue",displayFolder:"displayFolder",expanded:"expanded",filterType:"filterType",filterValues:"filterValues",groupIndex:"groupIndex",groupInterval:"groupInterval",groupName:"groupName",headerFilter:"headerFilter",isMeasure:"isMeasure",precision:"precision",runningTotal:"runningTotal",selector:"selector",showGrandTotals:"showGrandTotals",showTotals:"showTotals",showValues:"showValues",sortBy:"sortBy",sortBySummaryField:"sortBySummaryField",sortBySummaryPath:"sortBySummaryPath",sortingMethod:"sortingMethod",sortOrder:"sortOrder",summaryDisplayMode:"summaryDisplayMode",summaryType:"summaryType",visible:"visible",width:"width",wordWrapEnabled:"wordWrapEnabled"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),st=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),ct=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),ut=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),lt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),dt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),ht=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),ft=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),pt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),gt=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"accessKey",get:function(){return this._getOption("accessKey")},set:function(e){this._setOption("accessKey",e)}},{key:"animation",get:function(){return this._getOption("animation")},set:function(e){this._setOption("animation",e)}},{key:"closeOnOutsideClick",get:function(){return this._getOption("closeOnOutsideClick")},set:function(e){this._setOption("closeOnOutsideClick",e)}},{key:"container",get:function(){return this._getOption("container")},set:function(e){this._setOption("container",e)}},{key:"contentTemplate",get:function(){return this._getOption("contentTemplate")},set:function(e){this._setOption("contentTemplate",e)}},{key:"deferRendering",get:function(){return this._getOption("deferRendering")},set:function(e){this._setOption("deferRendering",e)}},{key:"disabled",get:function(){return this._getOption("disabled")},set:function(e){this._setOption("disabled",e)}},{key:"dragEnabled",get:function(){return this._getOption("dragEnabled")},set:function(e){this._setOption("dragEnabled",e)}},{key:"elementAttr",get:function(){return this._getOption("elementAttr")},set:function(e){this._setOption("elementAttr",e)}},{key:"focusStateEnabled",get:function(){return this._getOption("focusStateEnabled")},set:function(e){this._setOption("focusStateEnabled",e)}},{key:"fullScreen",get:function(){return this._getOption("fullScreen")},set:function(e){this._setOption("fullScreen",e)}},{key:"height",get:function(){return this._getOption("height")},set:function(e){this._setOption("height",e)}},{key:"hint",get:function(){return this._getOption("hint")},set:function(e){this._setOption("hint",e)}},{key:"hoverStateEnabled",get:function(){return this._getOption("hoverStateEnabled")},set:function(e){this._setOption("hoverStateEnabled",e)}},{key:"maxHeight",get:function(){return this._getOption("maxHeight")},set:function(e){this._setOption("maxHeight",e)}},{key:"maxWidth",get:function(){return this._getOption("maxWidth")},set:function(e){this._setOption("maxWidth",e)}},{key:"minHeight",get:function(){return this._getOption("minHeight")},set:function(e){this._setOption("minHeight",e)}},{key:"minWidth",get:function(){return this._getOption("minWidth")},set:function(e){this._setOption("minWidth",e)}},{key:"onContentReady",get:function(){return this._getOption("onContentReady")},set:function(e){this._setOption("onContentReady",e)}},{key:"onDisposing",get:function(){return this._getOption("onDisposing")},set:function(e){this._setOption("onDisposing",e)}},{key:"onHidden",get:function(){return this._getOption("onHidden")},set:function(e){this._setOption("onHidden",e)}},{key:"onHiding",get:function(){return this._getOption("onHiding")},set:function(e){this._setOption("onHiding",e)}},{key:"onInitialized",get:function(){return this._getOption("onInitialized")},set:function(e){this._setOption("onInitialized",e)}},{key:"onOptionChanged",get:function(){return this._getOption("onOptionChanged")},set:function(e){this._setOption("onOptionChanged",e)}},{key:"onResize",get:function(){return this._getOption("onResize")},set:function(e){this._setOption("onResize",e)}},{key:"onResizeEnd",get:function(){return this._getOption("onResizeEnd")},set:function(e){this._setOption("onResizeEnd",e)}},{key:"onResizeStart",get:function(){return this._getOption("onResizeStart")},set:function(e){this._setOption("onResizeStart",e)}},{key:"onShowing",get:function(){return this._getOption("onShowing")},set:function(e){this._setOption("onShowing",e)}},{key:"onShown",get:function(){return this._getOption("onShown")},set:function(e){this._setOption("onShown",e)}},{key:"onTitleRendered",get:function(){return this._getOption("onTitleRendered")},set:function(e){this._setOption("onTitleRendered",e)}},{key:"position",get:function(){return this._getOption("position")},set:function(e){this._setOption("position",e)}},{key:"resizeEnabled",get:function(){return this._getOption("resizeEnabled")},set:function(e){this._setOption("resizeEnabled",e)}},{key:"rtlEnabled",get:function(){return this._getOption("rtlEnabled")},set:function(e){this._setOption("rtlEnabled",e)}},{key:"shading",get:function(){return this._getOption("shading")},set:function(e){this._setOption("shading",e)}},{key:"shadingColor",get:function(){return this._getOption("shadingColor")},set:function(e){this._setOption("shadingColor",e)}},{key:"showCloseButton",get:function(){return this._getOption("showCloseButton")},set:function(e){this._setOption("showCloseButton",e)}},{key:"showTitle",get:function(){return this._getOption("showTitle")},set:function(e){this._setOption("showTitle",e)}},{key:"tabIndex",get:function(){return this._getOption("tabIndex")},set:function(e){this._setOption("tabIndex",e)}},{key:"title",get:function(){return this._getOption("title")},set:function(e){this._setOption("title",e)}},{key:"titleTemplate",get:function(){return this._getOption("titleTemplate")},set:function(e){this._setOption("titleTemplate",e)}},{key:"toolbarItems",get:function(){return this._getOption("toolbarItems")},set:function(e){this._setOption("toolbarItems",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"width",get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)}},{key:"hideEvent",get:function(){return this._getOption("hideEvent")},set:function(e){this._setOption("hideEvent",e)}},{key:"showEvent",get:function(){return this._getOption("showEvent")},set:function(e){this._setOption("showEvent",e)}},{key:"target",get:function(){return this._getOption("target")},set:function(e){this._setOption("target",e)}}]),n}(h.i),mt=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i,r,a,c,u){var l;return Object(o.a)(this,n),(l=t.call(this)).renderer=r,l.document=a,l.element=u,e.setNestedOption(Object(s.a)(l)),i.setHost(Object(s.a)(l),l._fullOptionPath.bind(Object(s.a)(l))),c.setHost(Object(s.a)(l)),l}return Object(a.a)(n,[{key:"disabled",get:function(){return this._getOption("disabled")},set:function(e){this._setOption("disabled",e)}},{key:"html",get:function(){return this._getOption("html")},set:function(e){this._setOption("html",e)}},{key:"location",get:function(){return this._getOption("location")},set:function(e){this._setOption("location",e)}},{key:"options",get:function(){return this._getOption("options")},set:function(e){this._setOption("options",e)}},{key:"template",get:function(){return this._getOption("template")},set:function(e){this._setOption("template",e)}},{key:"text",get:function(){return this._getOption("text")},set:function(e){this._setOption("text",e)}},{key:"toolbar",get:function(){return this._getOption("toolbar")},set:function(e){this._setOption("toolbar",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"widget",get:function(){return this._getOption("widget")},set:function(e){this._setOption("widget",e)}},{key:"_optionPath",get:function(){return"toolbarItems"}},{key:"setTemplate",value:function(e){this.template=e}},{key:"ngAfterViewInit",value:function(){Object(h.l)(this,this.element,this.renderer,this.document)}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1),d.ac(d.O),d.ac(f.e),d.ac(h.f,1),d.ac(d.q))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-toolbar-item"]],inputs:{disabled:"disabled",html:"html",location:"location",options:"options",template:"template",text:"text",toolbar:"toolbar",visible:"visible",widget:"widget"},features:[d.Nb([h.j,h.f]),d.Lb],ngContentSelectors:p,decls:1,vars:0,template:function(e,t){1&e&&(d.vc(),d.uc(0))},styles:["[_nghost-%COMP%] { display: block; }"]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__param)(3,Object(d.w)(f.e)),Object(l.__param)(4,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j,d.O,Object,h.f,d.q])],e)}(),vt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),_t=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),yt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),bt=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"allowAdding",get:function(){return this._getOption("allowAdding")},set:function(e){this._setOption("allowAdding",e)}},{key:"allowDeleting",get:function(){return this._getOption("allowDeleting")},set:function(e){this._setOption("allowDeleting",e)}},{key:"allowUpdating",get:function(){return this._getOption("allowUpdating")},set:function(e){this._setOption("allowUpdating",e)}},{key:"confirmDelete",get:function(){return this._getOption("confirmDelete")},set:function(e){this._setOption("confirmDelete",e)}},{key:"form",get:function(){return this._getOption("form")},set:function(e){this._setOption("form",e)}},{key:"mode",get:function(){return this._getOption("mode")},set:function(e){this._setOption("mode",e)}},{key:"popup",get:function(){return this._getOption("popup")},set:function(e){this._setOption("popup",e)}},{key:"refreshMode",get:function(){return this._getOption("refreshMode")},set:function(e){this._setOption("refreshMode",e)}},{key:"selectTextOnEditStart",get:function(){return this._getOption("selectTextOnEditStart")},set:function(e){this._setOption("selectTextOnEditStart",e)}},{key:"startEditAction",get:function(){return this._getOption("startEditAction")},set:function(e){this._setOption("startEditAction",e)}},{key:"texts",get:function(){return this._getOption("texts")},set:function(e){this._setOption("texts",e)}},{key:"useIcons",get:function(){return this._getOption("useIcons")},set:function(e){this._setOption("useIcons",e)}},{key:"allowDependencyAdding",get:function(){return this._getOption("allowDependencyAdding")},set:function(e){this._setOption("allowDependencyAdding",e)}},{key:"allowDependencyDeleting",get:function(){return this._getOption("allowDependencyDeleting")},set:function(e){this._setOption("allowDependencyDeleting",e)}},{key:"allowResourceAdding",get:function(){return this._getOption("allowResourceAdding")},set:function(e){this._setOption("allowResourceAdding",e)}},{key:"allowResourceDeleting",get:function(){return this._getOption("allowResourceDeleting")},set:function(e){this._setOption("allowResourceDeleting",e)}},{key:"allowResourceUpdating",get:function(){return this._getOption("allowResourceUpdating")},set:function(e){this._setOption("allowResourceUpdating",e)}},{key:"allowTaskAdding",get:function(){return this._getOption("allowTaskAdding")},set:function(e){this._setOption("allowTaskAdding",e)}},{key:"allowTaskDeleting",get:function(){return this._getOption("allowTaskDeleting")},set:function(e){this._setOption("allowTaskDeleting",e)}},{key:"allowTaskUpdating",get:function(){return this._getOption("allowTaskUpdating")},set:function(e){this._setOption("allowTaskUpdating",e)}},{key:"enabled",get:function(){return this._getOption("enabled")},set:function(e){this._setOption("enabled",e)}},{key:"allowDragging",get:function(){return this._getOption("allowDragging")},set:function(e){this._setOption("allowDragging",e)}},{key:"allowEditingTimeZones",get:function(){return this._getOption("allowEditingTimeZones")},set:function(e){this._setOption("allowEditingTimeZones",e)}},{key:"allowResizing",get:function(){return this._getOption("allowResizing")},set:function(e){this._setOption("allowResizing",e)}},{key:"allowTimeZoneEditing",get:function(){return this._getOption("allowTimeZoneEditing")},set:function(e){this._setOption("allowTimeZoneEditing",e)}},{key:"_optionPath",get:function(){return"editing"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-editing"]],inputs:{allowAdding:"allowAdding",allowDeleting:"allowDeleting",allowUpdating:"allowUpdating",confirmDelete:"confirmDelete",form:"form",mode:"mode",popup:"popup",refreshMode:"refreshMode",selectTextOnEditStart:"selectTextOnEditStart",startEditAction:"startEditAction",texts:"texts",useIcons:"useIcons",allowDependencyAdding:"allowDependencyAdding",allowDependencyDeleting:"allowDependencyDeleting",allowResourceAdding:"allowResourceAdding",allowResourceDeleting:"allowResourceDeleting",allowResourceUpdating:"allowResourceUpdating",allowTaskAdding:"allowTaskAdding",allowTaskDeleting:"allowTaskDeleting",allowTaskUpdating:"allowTaskUpdating",enabled:"enabled",allowDragging:"allowDragging",allowEditingTimeZones:"allowEditingTimeZones",allowResizing:"allowResizing",allowTimeZoneEditing:"allowTimeZoneEditing"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),wt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Ct=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"backgroundColor",get:function(){return this._getOption("backgroundColor")},set:function(e){this._setOption("backgroundColor",e)}},{key:"enabled",get:function(){return this._getOption("enabled")},set:function(e){this._setOption("enabled",e)}},{key:"fileName",get:function(){return this._getOption("fileName")},set:function(e){this._setOption("fileName",e)}},{key:"formats",get:function(){return this._getOption("formats")},set:function(e){this._setOption("formats",e)}},{key:"margin",get:function(){return this._getOption("margin")},set:function(e){this._setOption("margin",e)}},{key:"printingEnabled",get:function(){return this._getOption("printingEnabled")},set:function(e){this._setOption("printingEnabled",e)}},{key:"proxyUrl",get:function(){return this._getOption("proxyUrl")},set:function(e){this._setOption("proxyUrl",e)}},{key:"svgToCanvas",get:function(){return this._getOption("svgToCanvas")},set:function(e){this._setOption("svgToCanvas",e)}},{key:"allowExportSelectedData",get:function(){return this._getOption("allowExportSelectedData")},set:function(e){this._setOption("allowExportSelectedData",e)}},{key:"customizeExcelCell",get:function(){return this._getOption("customizeExcelCell")},set:function(e){this._setOption("customizeExcelCell",e)}},{key:"excelFilterEnabled",get:function(){return this._getOption("excelFilterEnabled")},set:function(e){this._setOption("excelFilterEnabled",e)}},{key:"excelWrapTextEnabled",get:function(){return this._getOption("excelWrapTextEnabled")},set:function(e){this._setOption("excelWrapTextEnabled",e)}},{key:"ignoreExcelErrors",get:function(){return this._getOption("ignoreExcelErrors")},set:function(e){this._setOption("ignoreExcelErrors",e)}},{key:"texts",get:function(){return this._getOption("texts")},set:function(e){this._setOption("texts",e)}},{key:"_optionPath",get:function(){return"export"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-export"]],inputs:{backgroundColor:"backgroundColor",enabled:"enabled",fileName:"fileName",formats:"formats",margin:"margin",printingEnabled:"printingEnabled",proxyUrl:"proxyUrl",svgToCanvas:"svgToCanvas",allowExportSelectedData:"allowExportSelectedData",customizeExcelCell:"customizeExcelCell",excelFilterEnabled:"excelFilterEnabled",excelWrapTextEnabled:"excelWrapTextEnabled",ignoreExcelErrors:"ignoreExcelErrors",texts:"texts"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Ot=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),St=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),kt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),xt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Tt=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this))._createEventEmitters([{emit:"heightChange"},{emit:"positionChange"},{emit:"visibleChange"},{emit:"widthChange"}]),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"filterBuilderPopup"}},{key:"toolbarItemsChildren",get:function(){return this._getOption("toolbarItems")},set:function(e){this.setChildren("toolbarItems",e)}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(gt);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-filter-builder-popup"]],contentQueries:function(e,t,n){var i;1&e&&d.Tb(n,mt,!1),2&e&&d.Ec(i=d.oc())&&(t.toolbarItemsChildren=i)},inputs:{accessKey:"accessKey",animation:"animation",closeOnOutsideClick:"closeOnOutsideClick",container:"container",contentTemplate:"contentTemplate",deferRendering:"deferRendering",disabled:"disabled",dragEnabled:"dragEnabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",fullScreen:"fullScreen",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",maxHeight:"maxHeight",maxWidth:"maxWidth",minHeight:"minHeight",minWidth:"minWidth",onContentReady:"onContentReady",onDisposing:"onDisposing",onHidden:"onHidden",onHiding:"onHiding",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onResize:"onResize",onResizeEnd:"onResizeEnd",onResizeStart:"onResizeStart",onShowing:"onShowing",onShown:"onShown",onTitleRendered:"onTitleRendered",position:"position",resizeEnabled:"resizeEnabled",rtlEnabled:"rtlEnabled",shading:"shading",shadingColor:"shadingColor",showCloseButton:"showCloseButton",showTitle:"showTitle",tabIndex:"tabIndex",title:"title",titleTemplate:"titleTemplate",toolbarItems:"toolbarItems",visible:"visible",width:"width"},outputs:{heightChange:"heightChange",positionChange:"positionChange",visibleChange:"visibleChange",widthChange:"widthChange"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Et=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),It=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"accessKey",get:function(){return this._getOption("accessKey")},set:function(e){this._setOption("accessKey",e)}},{key:"activeStateEnabled",get:function(){return this._getOption("activeStateEnabled")},set:function(e){this._setOption("activeStateEnabled",e)}},{key:"allowHierarchicalFields",get:function(){return this._getOption("allowHierarchicalFields")},set:function(e){this._setOption("allowHierarchicalFields",e)}},{key:"customOperations",get:function(){return this._getOption("customOperations")},set:function(e){this._setOption("customOperations",e)}},{key:"disabled",get:function(){return this._getOption("disabled")},set:function(e){this._setOption("disabled",e)}},{key:"elementAttr",get:function(){return this._getOption("elementAttr")},set:function(e){this._setOption("elementAttr",e)}},{key:"fields",get:function(){return this._getOption("fields")},set:function(e){this._setOption("fields",e)}},{key:"filterOperationDescriptions",get:function(){return this._getOption("filterOperationDescriptions")},set:function(e){this._setOption("filterOperationDescriptions",e)}},{key:"focusStateEnabled",get:function(){return this._getOption("focusStateEnabled")},set:function(e){this._setOption("focusStateEnabled",e)}},{key:"groupOperationDescriptions",get:function(){return this._getOption("groupOperationDescriptions")},set:function(e){this._setOption("groupOperationDescriptions",e)}},{key:"groupOperations",get:function(){return this._getOption("groupOperations")},set:function(e){this._setOption("groupOperations",e)}},{key:"height",get:function(){return this._getOption("height")},set:function(e){this._setOption("height",e)}},{key:"hint",get:function(){return this._getOption("hint")},set:function(e){this._setOption("hint",e)}},{key:"hoverStateEnabled",get:function(){return this._getOption("hoverStateEnabled")},set:function(e){this._setOption("hoverStateEnabled",e)}},{key:"maxGroupLevel",get:function(){return this._getOption("maxGroupLevel")},set:function(e){this._setOption("maxGroupLevel",e)}},{key:"onContentReady",get:function(){return this._getOption("onContentReady")},set:function(e){this._setOption("onContentReady",e)}},{key:"onDisposing",get:function(){return this._getOption("onDisposing")},set:function(e){this._setOption("onDisposing",e)}},{key:"onEditorPrepared",get:function(){return this._getOption("onEditorPrepared")},set:function(e){this._setOption("onEditorPrepared",e)}},{key:"onEditorPreparing",get:function(){return this._getOption("onEditorPreparing")},set:function(e){this._setOption("onEditorPreparing",e)}},{key:"onInitialized",get:function(){return this._getOption("onInitialized")},set:function(e){this._setOption("onInitialized",e)}},{key:"onOptionChanged",get:function(){return this._getOption("onOptionChanged")},set:function(e){this._setOption("onOptionChanged",e)}},{key:"onValueChanged",get:function(){return this._getOption("onValueChanged")},set:function(e){this._setOption("onValueChanged",e)}},{key:"rtlEnabled",get:function(){return this._getOption("rtlEnabled")},set:function(e){this._setOption("rtlEnabled",e)}},{key:"tabIndex",get:function(){return this._getOption("tabIndex")},set:function(e){this._setOption("tabIndex",e)}},{key:"value",get:function(){return this._getOption("value")},set:function(e){this._setOption("value",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"width",get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)}}]),n}(h.i),Dt=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this))._createEventEmitters([{emit:"valueChange"}]),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"filterBuilder"}},{key:"customOperationsChildren",get:function(){return this._getOption("customOperations")},set:function(e){this.setChildren("customOperations",e)}},{key:"fieldsChildren",get:function(){return this._getOption("fields")},set:function(e){this.setChildren("fields",e)}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(It);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-filter-builder"]],contentQueries:function(e,t,n){var i;1&e&&(d.Tb(n,et,!1),d.Tb(n,at,!1)),2&e&&(d.Ec(i=d.oc())&&(t.customOperationsChildren=i),d.Ec(i=d.oc())&&(t.fieldsChildren=i))},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",allowHierarchicalFields:"allowHierarchicalFields",customOperations:"customOperations",disabled:"disabled",elementAttr:"elementAttr",fields:"fields",filterOperationDescriptions:"filterOperationDescriptions",focusStateEnabled:"focusStateEnabled",groupOperationDescriptions:"groupOperationDescriptions",groupOperations:"groupOperations",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",maxGroupLevel:"maxGroupLevel",onContentReady:"onContentReady",onDisposing:"onDisposing",onEditorPrepared:"onEditorPrepared",onEditorPreparing:"onEditorPreparing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",rtlEnabled:"rtlEnabled",tabIndex:"tabIndex",value:"value",visible:"visible",width:"width"},outputs:{valueChange:"valueChange"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Mt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),At=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"between",get:function(){return this._getOption("between")},set:function(e){this._setOption("between",e)}},{key:"contains",get:function(){return this._getOption("contains")},set:function(e){this._setOption("contains",e)}},{key:"endsWith",get:function(){return this._getOption("endsWith")},set:function(e){this._setOption("endsWith",e)}},{key:"equal",get:function(){return this._getOption("equal")},set:function(e){this._setOption("equal",e)}},{key:"greaterThan",get:function(){return this._getOption("greaterThan")},set:function(e){this._setOption("greaterThan",e)}},{key:"greaterThanOrEqual",get:function(){return this._getOption("greaterThanOrEqual")},set:function(e){this._setOption("greaterThanOrEqual",e)}},{key:"isBlank",get:function(){return this._getOption("isBlank")},set:function(e){this._setOption("isBlank",e)}},{key:"isNotBlank",get:function(){return this._getOption("isNotBlank")},set:function(e){this._setOption("isNotBlank",e)}},{key:"lessThan",get:function(){return this._getOption("lessThan")},set:function(e){this._setOption("lessThan",e)}},{key:"lessThanOrEqual",get:function(){return this._getOption("lessThanOrEqual")},set:function(e){this._setOption("lessThanOrEqual",e)}},{key:"notContains",get:function(){return this._getOption("notContains")},set:function(e){this._setOption("notContains",e)}},{key:"notEqual",get:function(){return this._getOption("notEqual")},set:function(e){this._setOption("notEqual",e)}},{key:"startsWith",get:function(){return this._getOption("startsWith")},set:function(e){this._setOption("startsWith",e)}},{key:"_optionPath",get:function(){return"filterOperationDescriptions"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-filter-operation-descriptions"]],inputs:{between:"between",contains:"contains",endsWith:"endsWith",equal:"equal",greaterThan:"greaterThan",greaterThanOrEqual:"greaterThanOrEqual",isBlank:"isBlank",isNotBlank:"isNotBlank",lessThan:"lessThan",lessThanOrEqual:"lessThanOrEqual",notContains:"notContains",notEqual:"notEqual",startsWith:"startsWith"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Pt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Lt=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this))._createEventEmitters([{emit:"filterEnabledChange"}]),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"customizeText",get:function(){return this._getOption("customizeText")},set:function(e){this._setOption("customizeText",e)}},{key:"filterEnabled",get:function(){return this._getOption("filterEnabled")},set:function(e){this._setOption("filterEnabled",e)}},{key:"texts",get:function(){return this._getOption("texts")},set:function(e){this._setOption("texts",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"_optionPath",get:function(){return"filterPanel"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-filter-panel"]],inputs:{customizeText:"customizeText",filterEnabled:"filterEnabled",texts:"texts",visible:"visible"},outputs:{filterEnabledChange:"filterEnabledChange"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Rt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),jt=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"applyFilter",get:function(){return this._getOption("applyFilter")},set:function(e){this._setOption("applyFilter",e)}},{key:"applyFilterText",get:function(){return this._getOption("applyFilterText")},set:function(e){this._setOption("applyFilterText",e)}},{key:"betweenEndText",get:function(){return this._getOption("betweenEndText")},set:function(e){this._setOption("betweenEndText",e)}},{key:"betweenStartText",get:function(){return this._getOption("betweenStartText")},set:function(e){this._setOption("betweenStartText",e)}},{key:"operationDescriptions",get:function(){return this._getOption("operationDescriptions")},set:function(e){this._setOption("operationDescriptions",e)}},{key:"resetOperationText",get:function(){return this._getOption("resetOperationText")},set:function(e){this._setOption("resetOperationText",e)}},{key:"showAllText",get:function(){return this._getOption("showAllText")},set:function(e){this._setOption("showAllText",e)}},{key:"showOperationChooser",get:function(){return this._getOption("showOperationChooser")},set:function(e){this._setOption("showOperationChooser",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"_optionPath",get:function(){return"filterRow"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-filter-row"]],inputs:{applyFilter:"applyFilter",applyFilterText:"applyFilterText",betweenEndText:"betweenEndText",betweenStartText:"betweenStartText",operationDescriptions:"operationDescriptions",resetOperationText:"resetOperationText",showAllText:"showAllText",showOperationChooser:"showOperationChooser",visible:"visible"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Nt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Ft=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Bt=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"colSpan",get:function(){return this._getOption("colSpan")},set:function(e){this._setOption("colSpan",e)}},{key:"cssClass",get:function(){return this._getOption("cssClass")},set:function(e){this._setOption("cssClass",e)}},{key:"dataField",get:function(){return this._getOption("dataField")},set:function(e){this._setOption("dataField",e)}},{key:"editorOptions",get:function(){return this._getOption("editorOptions")},set:function(e){this._setOption("editorOptions",e)}},{key:"editorType",get:function(){return this._getOption("editorType")},set:function(e){this._setOption("editorType",e)}},{key:"helpText",get:function(){return this._getOption("helpText")},set:function(e){this._setOption("helpText",e)}},{key:"isRequired",get:function(){return this._getOption("isRequired")},set:function(e){this._setOption("isRequired",e)}},{key:"itemType",get:function(){return this._getOption("itemType")},set:function(e){this._setOption("itemType",e)}},{key:"label",get:function(){return this._getOption("label")},set:function(e){this._setOption("label",e)}},{key:"name",get:function(){return this._getOption("name")},set:function(e){this._setOption("name",e)}},{key:"template",get:function(){return this._getOption("template")},set:function(e){this._setOption("template",e)}},{key:"validationRules",get:function(){return this._getOption("validationRules")},set:function(e){this._setOption("validationRules",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"visibleIndex",get:function(){return this._getOption("visibleIndex")},set:function(e){this._setOption("visibleIndex",e)}}]),n}(h.i),Vt=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"formItem"}},{key:"validationRulesChildren",get:function(){return this._getOption("validationRules")},set:function(e){this.setChildren("validationRules",e)}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(Bt);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-form-item"]],contentQueries:function(e,t,n){var i;1&e&&d.Tb(n,q,!1),2&e&&d.Ec(i=d.oc())&&(t.validationRulesChildren=i)},inputs:{colSpan:"colSpan",cssClass:"cssClass",dataField:"dataField",editorOptions:"editorOptions",editorType:"editorType",helpText:"helpText",isRequired:"isRequired",itemType:"itemType",label:"label",name:"name",template:"template",validationRules:"validationRules",visible:"visible",visibleIndex:"visibleIndex"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),$t=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Ht=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"accessKey",get:function(){return this._getOption("accessKey")},set:function(e){this._setOption("accessKey",e)}},{key:"activeStateEnabled",get:function(){return this._getOption("activeStateEnabled")},set:function(e){this._setOption("activeStateEnabled",e)}},{key:"alignItemLabels",get:function(){return this._getOption("alignItemLabels")},set:function(e){this._setOption("alignItemLabels",e)}},{key:"alignItemLabelsInAllGroups",get:function(){return this._getOption("alignItemLabelsInAllGroups")},set:function(e){this._setOption("alignItemLabelsInAllGroups",e)}},{key:"colCount",get:function(){return this._getOption("colCount")},set:function(e){this._setOption("colCount",e)}},{key:"colCountByScreen",get:function(){return this._getOption("colCountByScreen")},set:function(e){this._setOption("colCountByScreen",e)}},{key:"customizeItem",get:function(){return this._getOption("customizeItem")},set:function(e){this._setOption("customizeItem",e)}},{key:"disabled",get:function(){return this._getOption("disabled")},set:function(e){this._setOption("disabled",e)}},{key:"elementAttr",get:function(){return this._getOption("elementAttr")},set:function(e){this._setOption("elementAttr",e)}},{key:"focusStateEnabled",get:function(){return this._getOption("focusStateEnabled")},set:function(e){this._setOption("focusStateEnabled",e)}},{key:"formData",get:function(){return this._getOption("formData")},set:function(e){this._setOption("formData",e)}},{key:"height",get:function(){return this._getOption("height")},set:function(e){this._setOption("height",e)}},{key:"hint",get:function(){return this._getOption("hint")},set:function(e){this._setOption("hint",e)}},{key:"hoverStateEnabled",get:function(){return this._getOption("hoverStateEnabled")},set:function(e){this._setOption("hoverStateEnabled",e)}},{key:"items",get:function(){return this._getOption("items")},set:function(e){this._setOption("items",e)}},{key:"labelLocation",get:function(){return this._getOption("labelLocation")},set:function(e){this._setOption("labelLocation",e)}},{key:"minColWidth",get:function(){return this._getOption("minColWidth")},set:function(e){this._setOption("minColWidth",e)}},{key:"onContentReady",get:function(){return this._getOption("onContentReady")},set:function(e){this._setOption("onContentReady",e)}},{key:"onDisposing",get:function(){return this._getOption("onDisposing")},set:function(e){this._setOption("onDisposing",e)}},{key:"onEditorEnterKey",get:function(){return this._getOption("onEditorEnterKey")},set:function(e){this._setOption("onEditorEnterKey",e)}},{key:"onFieldDataChanged",get:function(){return this._getOption("onFieldDataChanged")},set:function(e){this._setOption("onFieldDataChanged",e)}},{key:"onInitialized",get:function(){return this._getOption("onInitialized")},set:function(e){this._setOption("onInitialized",e)}},{key:"onOptionChanged",get:function(){return this._getOption("onOptionChanged")},set:function(e){this._setOption("onOptionChanged",e)}},{key:"optionalMark",get:function(){return this._getOption("optionalMark")},set:function(e){this._setOption("optionalMark",e)}},{key:"readOnly",get:function(){return this._getOption("readOnly")},set:function(e){this._setOption("readOnly",e)}},{key:"requiredMark",get:function(){return this._getOption("requiredMark")},set:function(e){this._setOption("requiredMark",e)}},{key:"requiredMessage",get:function(){return this._getOption("requiredMessage")},set:function(e){this._setOption("requiredMessage",e)}},{key:"rtlEnabled",get:function(){return this._getOption("rtlEnabled")},set:function(e){this._setOption("rtlEnabled",e)}},{key:"screenByWidth",get:function(){return this._getOption("screenByWidth")},set:function(e){this._setOption("screenByWidth",e)}},{key:"scrollingEnabled",get:function(){return this._getOption("scrollingEnabled")},set:function(e){this._setOption("scrollingEnabled",e)}},{key:"showColonAfterLabel",get:function(){return this._getOption("showColonAfterLabel")},set:function(e){this._setOption("showColonAfterLabel",e)}},{key:"showOptionalMark",get:function(){return this._getOption("showOptionalMark")},set:function(e){this._setOption("showOptionalMark",e)}},{key:"showRequiredMark",get:function(){return this._getOption("showRequiredMark")},set:function(e){this._setOption("showRequiredMark",e)}},{key:"showValidationSummary",get:function(){return this._getOption("showValidationSummary")},set:function(e){this._setOption("showValidationSummary",e)}},{key:"tabIndex",get:function(){return this._getOption("tabIndex")},set:function(e){this._setOption("tabIndex",e)}},{key:"validationGroup",get:function(){return this._getOption("validationGroup")},set:function(e){this._setOption("validationGroup",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"width",get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)}}]),n}(h.i),Ut=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this))._createEventEmitters([{emit:"formDataChange"}]),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"form"}},{key:"itemsChildren",get:function(){return this._getOption("items")},set:function(e){this.setChildren("items",e)}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(Ht);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-form"]],contentQueries:function(e,t,n){var i;1&e&&d.Tb(n,oe,!1),2&e&&d.Ec(i=d.oc())&&(t.itemsChildren=i)},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",alignItemLabels:"alignItemLabels",alignItemLabelsInAllGroups:"alignItemLabelsInAllGroups",colCount:"colCount",colCountByScreen:"colCountByScreen",customizeItem:"customizeItem",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",formData:"formData",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",items:"items",labelLocation:"labelLocation",minColWidth:"minColWidth",onContentReady:"onContentReady",onDisposing:"onDisposing",onEditorEnterKey:"onEditorEnterKey",onFieldDataChanged:"onFieldDataChanged",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",optionalMark:"optionalMark",readOnly:"readOnly",requiredMark:"requiredMark",requiredMessage:"requiredMessage",rtlEnabled:"rtlEnabled",screenByWidth:"screenByWidth",scrollingEnabled:"scrollingEnabled",showColonAfterLabel:"showColonAfterLabel",showOptionalMark:"showOptionalMark",showRequiredMark:"showRequiredMark",showValidationSummary:"showValidationSummary",tabIndex:"tabIndex",validationGroup:"validationGroup",visible:"visible",width:"width"},outputs:{formDataChange:"formDataChange"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),zt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Wt=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"format"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(j);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-format"]],inputs:{currency:"currency",formatter:"formatter",parser:"parser",precision:"precision",type:"type"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Yt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Gt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),qt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Kt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Xt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Jt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Qt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Zt=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),en=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),tn=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"alignByColumn",get:function(){return this._getOption("alignByColumn")},set:function(e){this._setOption("alignByColumn",e)}},{key:"column",get:function(){return this._getOption("column")},set:function(e){this._setOption("column",e)}},{key:"customizeText",get:function(){return this._getOption("customizeText")},set:function(e){this._setOption("customizeText",e)}},{key:"displayFormat",get:function(){return this._getOption("displayFormat")},set:function(e){this._setOption("displayFormat",e)}},{key:"name",get:function(){return this._getOption("name")},set:function(e){this._setOption("name",e)}},{key:"showInColumn",get:function(){return this._getOption("showInColumn")},set:function(e){this._setOption("showInColumn",e)}},{key:"showInGroupFooter",get:function(){return this._getOption("showInGroupFooter")},set:function(e){this._setOption("showInGroupFooter",e)}},{key:"skipEmptyValues",get:function(){return this._getOption("skipEmptyValues")},set:function(e){this._setOption("skipEmptyValues",e)}},{key:"summaryType",get:function(){return this._getOption("summaryType")},set:function(e){this._setOption("summaryType",e)}},{key:"valueFormat",get:function(){return this._getOption("valueFormat")},set:function(e){this._setOption("valueFormat",e)}},{key:"_optionPath",get:function(){return"groupItems"}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-group-item"]],inputs:{alignByColumn:"alignByColumn",column:"column",customizeText:"customizeText",displayFormat:"displayFormat",name:"name",showInColumn:"showInColumn",showInGroupFooter:"showInGroupFooter",skipEmptyValues:"skipEmptyValues",summaryType:"summaryType",valueFormat:"valueFormat"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),nn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),rn=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"and",get:function(){return this._getOption("and")},set:function(e){this._setOption("and",e)}},{key:"notAnd",get:function(){return this._getOption("notAnd")},set:function(e){this._setOption("notAnd",e)}},{key:"notOr",get:function(){return this._getOption("notOr")},set:function(e){this._setOption("notOr",e)}},{key:"or",get:function(){return this._getOption("or")},set:function(e){this._setOption("or",e)}},{key:"_optionPath",get:function(){return"groupOperationDescriptions"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-group-operation-descriptions"]],inputs:{and:"and",notAnd:"notAnd",notOr:"notOr",or:"or"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),on=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),an=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"allowColumnDragging",get:function(){return this._getOption("allowColumnDragging")},set:function(e){this._setOption("allowColumnDragging",e)}},{key:"emptyPanelText",get:function(){return this._getOption("emptyPanelText")},set:function(e){this._setOption("emptyPanelText",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"_optionPath",get:function(){return"groupPanel"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-group-panel"]],inputs:{allowColumnDragging:"allowColumnDragging",emptyPanelText:"emptyPanelText",visible:"visible"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),sn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),cn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),un=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"allowCollapsing",get:function(){return this._getOption("allowCollapsing")},set:function(e){this._setOption("allowCollapsing",e)}},{key:"autoExpandAll",get:function(){return this._getOption("autoExpandAll")},set:function(e){this._setOption("autoExpandAll",e)}},{key:"contextMenuEnabled",get:function(){return this._getOption("contextMenuEnabled")},set:function(e){this._setOption("contextMenuEnabled",e)}},{key:"expandMode",get:function(){return this._getOption("expandMode")},set:function(e){this._setOption("expandMode",e)}},{key:"texts",get:function(){return this._getOption("texts")},set:function(e){this._setOption("texts",e)}},{key:"_optionPath",get:function(){return"grouping"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-grouping"]],inputs:{allowCollapsing:"allowCollapsing",autoExpandAll:"autoExpandAll",contextMenuEnabled:"contextMenuEnabled",expandMode:"expandMode",texts:"texts"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),ln=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),dn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),hn=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"allowSearch",get:function(){return this._getOption("allowSearch")},set:function(e){this._setOption("allowSearch",e)}},{key:"dataSource",get:function(){return this._getOption("dataSource")},set:function(e){this._setOption("dataSource",e)}},{key:"groupInterval",get:function(){return this._getOption("groupInterval")},set:function(e){this._setOption("groupInterval",e)}},{key:"height",get:function(){return this._getOption("height")},set:function(e){this._setOption("height",e)}},{key:"searchMode",get:function(){return this._getOption("searchMode")},set:function(e){this._setOption("searchMode",e)}},{key:"width",get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)}},{key:"searchTimeout",get:function(){return this._getOption("searchTimeout")},set:function(e){this._setOption("searchTimeout",e)}},{key:"texts",get:function(){return this._getOption("texts")},set:function(e){this._setOption("texts",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"showRelevantValues",get:function(){return this._getOption("showRelevantValues")},set:function(e){this._setOption("showRelevantValues",e)}},{key:"_optionPath",get:function(){return"headerFilter"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-header-filter"]],inputs:{allowSearch:"allowSearch",dataSource:"dataSource",groupInterval:"groupInterval",height:"height",searchMode:"searchMode",width:"width",searchTimeout:"searchTimeout",texts:"texts",visible:"visible",showRelevantValues:"showRelevantValues"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),fn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),pn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),gn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),mn=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"hide"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(y);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-hide"]],inputs:{complete:"complete",delay:"delay",direction:"direction",duration:"duration",easing:"easing",from:"from",staggerDelay:"staggerDelay",start:"start",to:"to",type:"type"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),vn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),_n=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),yn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),bn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),wn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Cn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),On=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Sn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),kn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),xn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Tn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),En=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"editOnKeyPress",get:function(){return this._getOption("editOnKeyPress")},set:function(e){this._setOption("editOnKeyPress",e)}},{key:"enabled",get:function(){return this._getOption("enabled")},set:function(e){this._setOption("enabled",e)}},{key:"enterKeyAction",get:function(){return this._getOption("enterKeyAction")},set:function(e){this._setOption("enterKeyAction",e)}},{key:"enterKeyDirection",get:function(){return this._getOption("enterKeyDirection")},set:function(e){this._setOption("enterKeyDirection",e)}},{key:"_optionPath",get:function(){return"keyboardNavigation"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-keyboard-navigation"]],inputs:{editOnKeyPress:"editOnKeyPress",enabled:"enabled",enterKeyAction:"enterKeyAction",enterKeyDirection:"enterKeyDirection"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),In=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Dn=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"connectorColor",get:function(){return this._getOption("connectorColor")},set:function(e){this._setOption("connectorColor",e)}},{key:"connectorWidth",get:function(){return this._getOption("connectorWidth")},set:function(e){this._setOption("connectorWidth",e)}},{key:"customizeText",get:function(){return this._getOption("customizeText")},set:function(e){this._setOption("customizeText",e)}},{key:"font",get:function(){return this._getOption("font")},set:function(e){this._setOption("font",e)}},{key:"format",get:function(){return this._getOption("format")},set:function(e){this._setOption("format",e)}},{key:"indent",get:function(){return this._getOption("indent")},set:function(e){this._setOption("indent",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"horizontalAlignment",get:function(){return this._getOption("horizontalAlignment")},set:function(e){this._setOption("horizontalAlignment",e)}},{key:"position",get:function(){return this._getOption("position")},set:function(e){this._setOption("position",e)}},{key:"text",get:function(){return this._getOption("text")},set:function(e){this._setOption("text",e)}},{key:"verticalAlignment",get:function(){return this._getOption("verticalAlignment")},set:function(e){this._setOption("verticalAlignment",e)}},{key:"alignment",get:function(){return this._getOption("alignment")},set:function(e){this._setOption("alignment",e)}},{key:"customizeHint",get:function(){return this._getOption("customizeHint")},set:function(e){this._setOption("customizeHint",e)}},{key:"displayMode",get:function(){return this._getOption("displayMode")},set:function(e){this._setOption("displayMode",e)}},{key:"indentFromAxis",get:function(){return this._getOption("indentFromAxis")},set:function(e){this._setOption("indentFromAxis",e)}},{key:"overlappingBehavior",get:function(){return this._getOption("overlappingBehavior")},set:function(e){this._setOption("overlappingBehavior",e)}},{key:"rotationAngle",get:function(){return this._getOption("rotationAngle")},set:function(e){this._setOption("rotationAngle",e)}},{key:"staggeringSpacing",get:function(){return this._getOption("staggeringSpacing")},set:function(e){this._setOption("staggeringSpacing",e)}},{key:"textOverflow",get:function(){return this._getOption("textOverflow")},set:function(e){this._setOption("textOverflow",e)}},{key:"wordWrap",get:function(){return this._getOption("wordWrap")},set:function(e){this._setOption("wordWrap",e)}},{key:"argumentFormat",get:function(){return this._getOption("argumentFormat")},set:function(e){this._setOption("argumentFormat",e)}},{key:"backgroundColor",get:function(){return this._getOption("backgroundColor")},set:function(e){this._setOption("backgroundColor",e)}},{key:"border",get:function(){return this._getOption("border")},set:function(e){this._setOption("border",e)}},{key:"connector",get:function(){return this._getOption("connector")},set:function(e){this._setOption("connector",e)}},{key:"horizontalOffset",get:function(){return this._getOption("horizontalOffset")},set:function(e){this._setOption("horizontalOffset",e)}},{key:"showForZeroValues",get:function(){return this._getOption("showForZeroValues")},set:function(e){this._setOption("showForZeroValues",e)}},{key:"verticalOffset",get:function(){return this._getOption("verticalOffset")},set:function(e){this._setOption("verticalOffset",e)}},{key:"hideFirstOrLast",get:function(){return this._getOption("hideFirstOrLast")},set:function(e){this._setOption("hideFirstOrLast",e)}},{key:"indentFromTick",get:function(){return this._getOption("indentFromTick")},set:function(e){this._setOption("indentFromTick",e)}},{key:"useRangeColors",get:function(){return this._getOption("useRangeColors")},set:function(e){this._setOption("useRangeColors",e)}},{key:"location",get:function(){return this._getOption("location")},set:function(e){this._setOption("location",e)}},{key:"showColon",get:function(){return this._getOption("showColon")},set:function(e){this._setOption("showColon",e)}},{key:"radialOffset",get:function(){return this._getOption("radialOffset")},set:function(e){this._setOption("radialOffset",e)}},{key:"topIndent",get:function(){return this._getOption("topIndent")},set:function(e){this._setOption("topIndent",e)}},{key:"shadow",get:function(){return this._getOption("shadow")},set:function(e){this._setOption("shadow",e)}},{key:"useNodeColors",get:function(){return this._getOption("useNodeColors")},set:function(e){this._setOption("useNodeColors",e)}},{key:"dataField",get:function(){return this._getOption("dataField")},set:function(e){this._setOption("dataField",e)}},{key:"enabled",get:function(){return this._getOption("enabled")},set:function(e){this._setOption("enabled",e)}},{key:"_optionPath",get:function(){return"label"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-label"]],inputs:{connectorColor:"connectorColor",connectorWidth:"connectorWidth",customizeText:"customizeText",font:"font",format:"format",indent:"indent",visible:"visible",horizontalAlignment:"horizontalAlignment",position:"position",text:"text",verticalAlignment:"verticalAlignment",alignment:"alignment",customizeHint:"customizeHint",displayMode:"displayMode",indentFromAxis:"indentFromAxis",overlappingBehavior:"overlappingBehavior",rotationAngle:"rotationAngle",staggeringSpacing:"staggeringSpacing",textOverflow:"textOverflow",wordWrap:"wordWrap",argumentFormat:"argumentFormat",backgroundColor:"backgroundColor",border:"border",connector:"connector",horizontalOffset:"horizontalOffset",showForZeroValues:"showForZeroValues",verticalOffset:"verticalOffset",hideFirstOrLast:"hideFirstOrLast",indentFromTick:"indentFromTick",useRangeColors:"useRangeColors",location:"location",showColon:"showColon",radialOffset:"radialOffset",topIndent:"topIndent",shadow:"shadow",useNodeColors:"useNodeColors",dataField:"dataField",enabled:"enabled"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Mn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),An=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"borderColor",get:function(){return this._getOption("borderColor")},set:function(e){this._setOption("borderColor",e)}},{key:"borderWidth",get:function(){return this._getOption("borderWidth")},set:function(e){this._setOption("borderWidth",e)}},{key:"color",get:function(){return this._getOption("color")},set:function(e){this._setOption("color",e)}},{key:"colorGroupingField",get:function(){return this._getOption("colorGroupingField")},set:function(e){this._setOption("colorGroupingField",e)}},{key:"colorGroups",get:function(){return this._getOption("colorGroups")},set:function(e){this._setOption("colorGroups",e)}},{key:"customize",get:function(){return this._getOption("customize")},set:function(e){this._setOption("customize",e)}},{key:"dataField",get:function(){return this._getOption("dataField")},set:function(e){this._setOption("dataField",e)}},{key:"dataSource",get:function(){return this._getOption("dataSource")},set:function(e){this._setOption("dataSource",e)}},{key:"elementType",get:function(){return this._getOption("elementType")},set:function(e){this._setOption("elementType",e)}},{key:"hoveredBorderColor",get:function(){return this._getOption("hoveredBorderColor")},set:function(e){this._setOption("hoveredBorderColor",e)}},{key:"hoveredBorderWidth",get:function(){return this._getOption("hoveredBorderWidth")},set:function(e){this._setOption("hoveredBorderWidth",e)}},{key:"hoveredColor",get:function(){return this._getOption("hoveredColor")},set:function(e){this._setOption("hoveredColor",e)}},{key:"hoverEnabled",get:function(){return this._getOption("hoverEnabled")},set:function(e){this._setOption("hoverEnabled",e)}},{key:"label",get:function(){return this._getOption("label")},set:function(e){this._setOption("label",e)}},{key:"maxSize",get:function(){return this._getOption("maxSize")},set:function(e){this._setOption("maxSize",e)}},{key:"minSize",get:function(){return this._getOption("minSize")},set:function(e){this._setOption("minSize",e)}},{key:"name",get:function(){return this._getOption("name")},set:function(e){this._setOption("name",e)}},{key:"opacity",get:function(){return this._getOption("opacity")},set:function(e){this._setOption("opacity",e)}},{key:"palette",get:function(){return this._getOption("palette")},set:function(e){this._setOption("palette",e)}},{key:"paletteSize",get:function(){return this._getOption("paletteSize")},set:function(e){this._setOption("paletteSize",e)}},{key:"selectedBorderColor",get:function(){return this._getOption("selectedBorderColor")},set:function(e){this._setOption("selectedBorderColor",e)}},{key:"selectedBorderWidth",get:function(){return this._getOption("selectedBorderWidth")},set:function(e){this._setOption("selectedBorderWidth",e)}},{key:"selectedColor",get:function(){return this._getOption("selectedColor")},set:function(e){this._setOption("selectedColor",e)}},{key:"selectionMode",get:function(){return this._getOption("selectionMode")},set:function(e){this._setOption("selectionMode",e)}},{key:"size",get:function(){return this._getOption("size")},set:function(e){this._setOption("size",e)}},{key:"sizeGroupingField",get:function(){return this._getOption("sizeGroupingField")},set:function(e){this._setOption("sizeGroupingField",e)}},{key:"sizeGroups",get:function(){return this._getOption("sizeGroups")},set:function(e){this._setOption("sizeGroups",e)}},{key:"type",get:function(){return this._getOption("type")},set:function(e){this._setOption("type",e)}},{key:"_optionPath",get:function(){return"layers"}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-layer"]],inputs:{borderColor:"borderColor",borderWidth:"borderWidth",color:"color",colorGroupingField:"colorGroupingField",colorGroups:"colorGroups",customize:"customize",dataField:"dataField",dataSource:"dataSource",elementType:"elementType",hoveredBorderColor:"hoveredBorderColor",hoveredBorderWidth:"hoveredBorderWidth",hoveredColor:"hoveredColor",hoverEnabled:"hoverEnabled",label:"label",maxSize:"maxSize",minSize:"minSize",name:"name",opacity:"opacity",palette:"palette",paletteSize:"paletteSize",selectedBorderColor:"selectedBorderColor",selectedBorderWidth:"selectedBorderWidth",selectedColor:"selectedColor",selectionMode:"selectionMode",size:"size",sizeGroupingField:"sizeGroupingField",sizeGroups:"sizeGroups",type:"type"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Pn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Ln=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"backgroundColor",get:function(){return this._getOption("backgroundColor")},set:function(e){this._setOption("backgroundColor",e)}},{key:"border",get:function(){return this._getOption("border")},set:function(e){this._setOption("border",e)}},{key:"columnCount",get:function(){return this._getOption("columnCount")},set:function(e){this._setOption("columnCount",e)}},{key:"columnItemSpacing",get:function(){return this._getOption("columnItemSpacing")},set:function(e){this._setOption("columnItemSpacing",e)}},{key:"customizeHint",get:function(){return this._getOption("customizeHint")},set:function(e){this._setOption("customizeHint",e)}},{key:"customizeItems",get:function(){return this._getOption("customizeItems")},set:function(e){this._setOption("customizeItems",e)}},{key:"customizeText",get:function(){return this._getOption("customizeText")},set:function(e){this._setOption("customizeText",e)}},{key:"font",get:function(){return this._getOption("font")},set:function(e){this._setOption("font",e)}},{key:"horizontalAlignment",get:function(){return this._getOption("horizontalAlignment")},set:function(e){this._setOption("horizontalAlignment",e)}},{key:"itemsAlignment",get:function(){return this._getOption("itemsAlignment")},set:function(e){this._setOption("itemsAlignment",e)}},{key:"itemTextPosition",get:function(){return this._getOption("itemTextPosition")},set:function(e){this._setOption("itemTextPosition",e)}},{key:"margin",get:function(){return this._getOption("margin")},set:function(e){this._setOption("margin",e)}},{key:"markerColor",get:function(){return this._getOption("markerColor")},set:function(e){this._setOption("markerColor",e)}},{key:"markerShape",get:function(){return this._getOption("markerShape")},set:function(e){this._setOption("markerShape",e)}},{key:"markerSize",get:function(){return this._getOption("markerSize")},set:function(e){this._setOption("markerSize",e)}},{key:"markerTemplate",get:function(){return this._getOption("markerTemplate")},set:function(e){this._setOption("markerTemplate",e)}},{key:"orientation",get:function(){return this._getOption("orientation")},set:function(e){this._setOption("orientation",e)}},{key:"paddingLeftRight",get:function(){return this._getOption("paddingLeftRight")},set:function(e){this._setOption("paddingLeftRight",e)}},{key:"paddingTopBottom",get:function(){return this._getOption("paddingTopBottom")},set:function(e){this._setOption("paddingTopBottom",e)}},{key:"rowCount",get:function(){return this._getOption("rowCount")},set:function(e){this._setOption("rowCount",e)}},{key:"rowItemSpacing",get:function(){return this._getOption("rowItemSpacing")},set:function(e){this._setOption("rowItemSpacing",e)}},{key:"source",get:function(){return this._getOption("source")},set:function(e){this._setOption("source",e)}},{key:"title",get:function(){return this._getOption("title")},set:function(e){this._setOption("title",e)}},{key:"verticalAlignment",get:function(){return this._getOption("verticalAlignment")},set:function(e){this._setOption("verticalAlignment",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"_optionPath",get:function(){return"legends"}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-legend"]],inputs:{backgroundColor:"backgroundColor",border:"border",columnCount:"columnCount",columnItemSpacing:"columnItemSpacing",customizeHint:"customizeHint",customizeItems:"customizeItems",customizeText:"customizeText",font:"font",horizontalAlignment:"horizontalAlignment",itemsAlignment:"itemsAlignment",itemTextPosition:"itemTextPosition",margin:"margin",markerColor:"markerColor",markerShape:"markerShape",markerSize:"markerSize",markerTemplate:"markerTemplate",orientation:"orientation",paddingLeftRight:"paddingLeftRight",paddingTopBottom:"paddingTopBottom",rowCount:"rowCount",rowItemSpacing:"rowItemSpacing",source:"source",title:"title",verticalAlignment:"verticalAlignment",visible:"visible"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Rn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),jn=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"backgroundColor",get:function(){return this._getOption("backgroundColor")},set:function(e){this._setOption("backgroundColor",e)}},{key:"border",get:function(){return this._getOption("border")},set:function(e){this._setOption("border",e)}},{key:"columnCount",get:function(){return this._getOption("columnCount")},set:function(e){this._setOption("columnCount",e)}},{key:"columnItemSpacing",get:function(){return this._getOption("columnItemSpacing")},set:function(e){this._setOption("columnItemSpacing",e)}},{key:"customizeHint",get:function(){return this._getOption("customizeHint")},set:function(e){this._setOption("customizeHint",e)}},{key:"customizeItems",get:function(){return this._getOption("customizeItems")},set:function(e){this._setOption("customizeItems",e)}},{key:"customizeText",get:function(){return this._getOption("customizeText")},set:function(e){this._setOption("customizeText",e)}},{key:"font",get:function(){return this._getOption("font")},set:function(e){this._setOption("font",e)}},{key:"horizontalAlignment",get:function(){return this._getOption("horizontalAlignment")},set:function(e){this._setOption("horizontalAlignment",e)}},{key:"itemsAlignment",get:function(){return this._getOption("itemsAlignment")},set:function(e){this._setOption("itemsAlignment",e)}},{key:"itemTextFormat",get:function(){return this._getOption("itemTextFormat")},set:function(e){this._setOption("itemTextFormat",e)}},{key:"itemTextPosition",get:function(){return this._getOption("itemTextPosition")},set:function(e){this._setOption("itemTextPosition",e)}},{key:"margin",get:function(){return this._getOption("margin")},set:function(e){this._setOption("margin",e)}},{key:"markerSize",get:function(){return this._getOption("markerSize")},set:function(e){this._setOption("markerSize",e)}},{key:"markerTemplate",get:function(){return this._getOption("markerTemplate")},set:function(e){this._setOption("markerTemplate",e)}},{key:"orientation",get:function(){return this._getOption("orientation")},set:function(e){this._setOption("orientation",e)}},{key:"paddingLeftRight",get:function(){return this._getOption("paddingLeftRight")},set:function(e){this._setOption("paddingLeftRight",e)}},{key:"paddingTopBottom",get:function(){return this._getOption("paddingTopBottom")},set:function(e){this._setOption("paddingTopBottom",e)}},{key:"rowCount",get:function(){return this._getOption("rowCount")},set:function(e){this._setOption("rowCount",e)}},{key:"rowItemSpacing",get:function(){return this._getOption("rowItemSpacing")},set:function(e){this._setOption("rowItemSpacing",e)}},{key:"title",get:function(){return this._getOption("title")},set:function(e){this._setOption("title",e)}},{key:"verticalAlignment",get:function(){return this._getOption("verticalAlignment")},set:function(e){this._setOption("verticalAlignment",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"hoverMode",get:function(){return this._getOption("hoverMode")},set:function(e){this._setOption("hoverMode",e)}},{key:"position",get:function(){return this._getOption("position")},set:function(e){this._setOption("position",e)}},{key:"_optionPath",get:function(){return"legend"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-legend"]],inputs:{backgroundColor:"backgroundColor",border:"border",columnCount:"columnCount",columnItemSpacing:"columnItemSpacing",customizeHint:"customizeHint",customizeItems:"customizeItems",customizeText:"customizeText",font:"font",horizontalAlignment:"horizontalAlignment",itemsAlignment:"itemsAlignment",itemTextFormat:"itemTextFormat",itemTextPosition:"itemTextPosition",margin:"margin",markerSize:"markerSize",markerTemplate:"markerTemplate",orientation:"orientation",paddingLeftRight:"paddingLeftRight",paddingTopBottom:"paddingTopBottom",rowCount:"rowCount",rowItemSpacing:"rowItemSpacing",title:"title",verticalAlignment:"verticalAlignment",visible:"visible",hoverMode:"hoverMode",position:"position"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Nn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Fn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Bn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Vn=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"enabled",get:function(){return this._getOption("enabled")},set:function(e){this._setOption("enabled",e)}},{key:"height",get:function(){return this._getOption("height")},set:function(e){this._setOption("height",e)}},{key:"indicatorSrc",get:function(){return this._getOption("indicatorSrc")},set:function(e){this._setOption("indicatorSrc",e)}},{key:"shading",get:function(){return this._getOption("shading")},set:function(e){this._setOption("shading",e)}},{key:"shadingColor",get:function(){return this._getOption("shadingColor")},set:function(e){this._setOption("shadingColor",e)}},{key:"showIndicator",get:function(){return this._getOption("showIndicator")},set:function(e){this._setOption("showIndicator",e)}},{key:"showPane",get:function(){return this._getOption("showPane")},set:function(e){this._setOption("showPane",e)}},{key:"text",get:function(){return this._getOption("text")},set:function(e){this._setOption("text",e)}},{key:"width",get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)}},{key:"_optionPath",get:function(){return"loadPanel"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-load-panel"]],inputs:{enabled:"enabled",height:"height",indicatorSrc:"indicatorSrc",shading:"shading",shadingColor:"shadingColor",showIndicator:"showIndicator",showPane:"showPane",text:"text",width:"width"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),$n=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Hn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Un=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"allowClearing",get:function(){return this._getOption("allowClearing")},set:function(e){this._setOption("allowClearing",e)}},{key:"dataSource",get:function(){return this._getOption("dataSource")},set:function(e){this._setOption("dataSource",e)}},{key:"displayExpr",get:function(){return this._getOption("displayExpr")},set:function(e){this._setOption("displayExpr",e)}},{key:"valueExpr",get:function(){return this._getOption("valueExpr")},set:function(e){this._setOption("valueExpr",e)}},{key:"_optionPath",get:function(){return"lookup"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-lookup"]],inputs:{allowClearing:"allowClearing",dataSource:"dataSource",displayExpr:"displayExpr",valueExpr:"valueExpr"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),zn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Wn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Yn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Gn=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"iconSrc",get:function(){return this._getOption("iconSrc")},set:function(e){this._setOption("iconSrc",e)}},{key:"location",get:function(){return this._getOption("location")},set:function(e){this._setOption("location",e)}},{key:"onClick",get:function(){return this._getOption("onClick")},set:function(e){this._setOption("onClick",e)}},{key:"tooltip",get:function(){return this._getOption("tooltip")},set:function(e){this._setOption("tooltip",e)}},{key:"_optionPath",get:function(){return"markers"}},{key:"locationChildren",get:function(){return this._getOption("location")},set:function(e){this.setChildren("location",e)}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-marker"]],contentQueries:function(e,t,n){var i;1&e&&d.Tb(n,ie,!1),2&e&&d.Ec(i=d.oc())&&(t.locationChildren=i)},inputs:{iconSrc:"iconSrc",location:"location",onClick:"onClick",tooltip:"tooltip"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),qn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Kn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Xn=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i,r,a,c,u){var l;return Object(o.a)(this,n),(l=t.call(this)).renderer=r,l.document=a,l.element=u,e.setNestedOption(Object(s.a)(l)),i.setHost(Object(s.a)(l),l._fullOptionPath.bind(Object(s.a)(l))),c.setHost(Object(s.a)(l)),l}return Object(a.a)(n,[{key:"autoExpandAll",get:function(){return this._getOption("autoExpandAll")},set:function(e){this._setOption("autoExpandAll",e)}},{key:"enabled",get:function(){return this._getOption("enabled")},set:function(e){this._setOption("enabled",e)}},{key:"template",get:function(){return this._getOption("template")},set:function(e){this._setOption("template",e)}},{key:"_optionPath",get:function(){return"masterDetail"}},{key:"setTemplate",value:function(e){this.template=e}},{key:"ngAfterViewInit",value:function(){Object(h.l)(this,this.element,this.renderer,this.document)}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1),d.ac(d.O),d.ac(f.e),d.ac(h.f,1),d.ac(d.q))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-master-detail"]],inputs:{autoExpandAll:"autoExpandAll",enabled:"enabled",template:"template"},features:[d.Nb([h.j,h.f]),d.Lb],ngContentSelectors:p,decls:1,vars:0,template:function(e,t){1&e&&(d.vc(),d.uc(0))},styles:["[_nghost-%COMP%] { display: block; }"]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__param)(3,Object(d.w)(f.e)),Object(l.__param)(4,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j,d.O,Object,h.f,d.q])],e)}(),Jn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Qn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Zn=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),ei=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"dataSource",get:function(){return this._getOption("dataSource")},set:function(e){this._setOption("dataSource",e)}},{key:"displayExpr",get:function(){return this._getOption("displayExpr")},set:function(e){this._setOption("displayExpr",e)}},{key:"itemTemplate",get:function(){return this._getOption("itemTemplate")},set:function(e){this._setOption("itemTemplate",e)}},{key:"marker",get:function(){return this._getOption("marker")},set:function(e){this._setOption("marker",e)}},{key:"minSearchLength",get:function(){return this._getOption("minSearchLength")},set:function(e){this._setOption("minSearchLength",e)}},{key:"searchExpr",get:function(){return this._getOption("searchExpr")},set:function(e){this._setOption("searchExpr",e)}},{key:"searchTimeout",get:function(){return this._getOption("searchTimeout")},set:function(e){this._setOption("searchTimeout",e)}},{key:"template",get:function(){return this._getOption("template")},set:function(e){this._setOption("template",e)}},{key:"valueExpr",get:function(){return this._getOption("valueExpr")},set:function(e){this._setOption("valueExpr",e)}}]),n}(h.a),ti=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"mentions"}}]),n}(ei);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-mention"]],inputs:{dataSource:"dataSource",displayExpr:"displayExpr",itemTemplate:"itemTemplate",marker:"marker",minSearchLength:"minSearchLength",searchExpr:"searchExpr",searchTimeout:"searchTimeout",template:"template",valueExpr:"valueExpr"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),ni=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),ii=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"action",get:function(){return this._getOption("action")},set:function(e){this._setOption("action",e)}},{key:"text",get:function(){return this._getOption("text")},set:function(e){this._setOption("text",e)}},{key:"_optionPath",get:function(){return"menuItems"}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-menu-item"]],inputs:{action:"action",text:"text"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),ri=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),oi=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),ai=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),si=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),ci=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),ui=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),li=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"x",get:function(){return this._getOption("x")},set:function(e){this._setOption("x",e)}},{key:"y",get:function(){return this._getOption("y")},set:function(e){this._setOption("y",e)}},{key:"_optionPath",get:function(){return"my"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-my"]],inputs:{x:"x",y:"y"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),di=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),hi=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),fi=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),pi=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"x",get:function(){return this._getOption("x")},set:function(e){this._setOption("x",e)}},{key:"y",get:function(){return this._getOption("y")},set:function(e){this._setOption("y",e)}},{key:"_optionPath",get:function(){return"offset"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-offset"]],inputs:{x:"x",y:"y"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),gi=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),mi=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"between",get:function(){return this._getOption("between")},set:function(e){this._setOption("between",e)}},{key:"contains",get:function(){return this._getOption("contains")},set:function(e){this._setOption("contains",e)}},{key:"endsWith",get:function(){return this._getOption("endsWith")},set:function(e){this._setOption("endsWith",e)}},{key:"equal",get:function(){return this._getOption("equal")},set:function(e){this._setOption("equal",e)}},{key:"greaterThan",get:function(){return this._getOption("greaterThan")},set:function(e){this._setOption("greaterThan",e)}},{key:"greaterThanOrEqual",get:function(){return this._getOption("greaterThanOrEqual")},set:function(e){this._setOption("greaterThanOrEqual",e)}},{key:"lessThan",get:function(){return this._getOption("lessThan")},set:function(e){this._setOption("lessThan",e)}},{key:"lessThanOrEqual",get:function(){return this._getOption("lessThanOrEqual")},set:function(e){this._setOption("lessThanOrEqual",e)}},{key:"notContains",get:function(){return this._getOption("notContains")},set:function(e){this._setOption("notContains",e)}},{key:"notEqual",get:function(){return this._getOption("notEqual")},set:function(e){this._setOption("notEqual",e)}},{key:"startsWith",get:function(){return this._getOption("startsWith")},set:function(e){this._setOption("startsWith",e)}},{key:"_optionPath",get:function(){return"operationDescriptions"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-operation-descriptions"]],inputs:{between:"between",contains:"contains",endsWith:"endsWith",equal:"equal",greaterThan:"greaterThan",greaterThanOrEqual:"greaterThanOrEqual",lessThan:"lessThan",lessThanOrEqual:"lessThanOrEqual",notContains:"notContains",notEqual:"notEqual",startsWith:"startsWith"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),vi=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),_i=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),yi=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),bi=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"allowedPageSizes",get:function(){return this._getOption("allowedPageSizes")},set:function(e){this._setOption("allowedPageSizes",e)}},{key:"infoText",get:function(){return this._getOption("infoText")},set:function(e){this._setOption("infoText",e)}},{key:"showInfo",get:function(){return this._getOption("showInfo")},set:function(e){this._setOption("showInfo",e)}},{key:"showNavigationButtons",get:function(){return this._getOption("showNavigationButtons")},set:function(e){this._setOption("showNavigationButtons",e)}},{key:"showPageSizeSelector",get:function(){return this._getOption("showPageSizeSelector")},set:function(e){this._setOption("showPageSizeSelector",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"_optionPath",get:function(){return"pager"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-pager"]],inputs:{allowedPageSizes:"allowedPageSizes",infoText:"infoText",showInfo:"showInfo",showNavigationButtons:"showNavigationButtons",showPageSizeSelector:"showPageSizeSelector",visible:"visible"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),wi=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Ci=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this))._createEventEmitters([{emit:"pageIndexChange"},{emit:"pageSizeChange"}]),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"enabled",get:function(){return this._getOption("enabled")},set:function(e){this._setOption("enabled",e)}},{key:"pageIndex",get:function(){return this._getOption("pageIndex")},set:function(e){this._setOption("pageIndex",e)}},{key:"pageSize",get:function(){return this._getOption("pageSize")},set:function(e){this._setOption("pageSize",e)}},{key:"_optionPath",get:function(){return"paging"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-paging"]],inputs:{enabled:"enabled",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Oi=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Si=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"backgroundColor",get:function(){return this._getOption("backgroundColor")},set:function(e){this._setOption("backgroundColor",e)}},{key:"border",get:function(){return this._getOption("border")},set:function(e){this._setOption("border",e)}},{key:"height",get:function(){return this._getOption("height")},set:function(e){this._setOption("height",e)}},{key:"name",get:function(){return this._getOption("name")},set:function(e){this._setOption("name",e)}},{key:"_optionPath",get:function(){return"panes"}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-pane"]],inputs:{backgroundColor:"backgroundColor",border:"border",height:"height",name:"name"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),ki=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),xi=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Ti=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Ei=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this))._createEventEmitters([{emit:"heightChange"},{emit:"positionChange"},{emit:"visibleChange"},{emit:"widthChange"}]),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"popup"}},{key:"toolbarItemsChildren",get:function(){return this._getOption("toolbarItems")},set:function(e){this.setChildren("toolbarItems",e)}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(gt);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-popup"]],contentQueries:function(e,t,n){var i;1&e&&d.Tb(n,mt,!1),2&e&&d.Ec(i=d.oc())&&(t.toolbarItemsChildren=i)},inputs:{accessKey:"accessKey",animation:"animation",closeOnOutsideClick:"closeOnOutsideClick",container:"container",contentTemplate:"contentTemplate",deferRendering:"deferRendering",disabled:"disabled",dragEnabled:"dragEnabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",fullScreen:"fullScreen",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",maxHeight:"maxHeight",maxWidth:"maxWidth",minHeight:"minHeight",minWidth:"minWidth",onContentReady:"onContentReady",onDisposing:"onDisposing",onHidden:"onHidden",onHiding:"onHiding",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onResize:"onResize",onResizeEnd:"onResizeEnd",onResizeStart:"onResizeStart",onShowing:"onShowing",onShown:"onShown",onTitleRendered:"onTitleRendered",position:"position",resizeEnabled:"resizeEnabled",rtlEnabled:"rtlEnabled",shading:"shading",shadingColor:"shadingColor",showCloseButton:"showCloseButton",showTitle:"showTitle",tabIndex:"tabIndex",title:"title",titleTemplate:"titleTemplate",toolbarItems:"toolbarItems",visible:"visible",width:"width"},outputs:{heightChange:"heightChange",positionChange:"positionChange",visibleChange:"visibleChange",widthChange:"widthChange"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Ii=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Di=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"at",get:function(){return this._getOption("at")},set:function(e){this._setOption("at",e)}},{key:"boundary",get:function(){return this._getOption("boundary")},set:function(e){this._setOption("boundary",e)}},{key:"boundaryOffset",get:function(){return this._getOption("boundaryOffset")},set:function(e){this._setOption("boundaryOffset",e)}},{key:"collision",get:function(){return this._getOption("collision")},set:function(e){this._setOption("collision",e)}},{key:"my",get:function(){return this._getOption("my")},set:function(e){this._setOption("my",e)}},{key:"of",get:function(){return this._getOption("of")},set:function(e){this._setOption("of",e)}},{key:"offset",get:function(){return this._getOption("offset")},set:function(e){this._setOption("offset",e)}}]),n}(h.i),Mi=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"position"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(Di);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-position"]],inputs:{at:"at",boundary:"boundary",boundaryOffset:"boundaryOffset",collision:"collision",my:"my",of:"of",offset:"offset"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Ai=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Pi=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Li=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Ri=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),ji=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Ni=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Fi=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Bi=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Vi=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"filtering",get:function(){return this._getOption("filtering")},set:function(e){this._setOption("filtering",e)}},{key:"grouping",get:function(){return this._getOption("grouping")},set:function(e){this._setOption("grouping",e)}},{key:"groupPaging",get:function(){return this._getOption("groupPaging")},set:function(e){this._setOption("groupPaging",e)}},{key:"paging",get:function(){return this._getOption("paging")},set:function(e){this._setOption("paging",e)}},{key:"sorting",get:function(){return this._getOption("sorting")},set:function(e){this._setOption("sorting",e)}},{key:"summary",get:function(){return this._getOption("summary")},set:function(e){this._setOption("summary",e)}},{key:"_optionPath",get:function(){return"remoteOperations"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-remote-operations"]],inputs:{filtering:"filtering",grouping:"grouping",groupPaging:"groupPaging",paging:"paging",sorting:"sorting",summary:"summary"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),$i=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Hi=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Ui=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"allowMultiple",get:function(){return this._getOption("allowMultiple")},set:function(e){this._setOption("allowMultiple",e)}},{key:"colorExpr",get:function(){return this._getOption("colorExpr")},set:function(e){this._setOption("colorExpr",e)}},{key:"dataSource",get:function(){return this._getOption("dataSource")},set:function(e){this._setOption("dataSource",e)}},{key:"displayExpr",get:function(){return this._getOption("displayExpr")},set:function(e){this._setOption("displayExpr",e)}},{key:"fieldExpr",get:function(){return this._getOption("fieldExpr")},set:function(e){this._setOption("fieldExpr",e)}},{key:"label",get:function(){return this._getOption("label")},set:function(e){this._setOption("label",e)}},{key:"useColorAsDefault",get:function(){return this._getOption("useColorAsDefault")},set:function(e){this._setOption("useColorAsDefault",e)}},{key:"valueExpr",get:function(){return this._getOption("valueExpr")},set:function(e){this._setOption("valueExpr",e)}},{key:"_optionPath",get:function(){return"resources"}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-resource"]],inputs:{allowMultiple:"allowMultiple",colorExpr:"colorExpr",dataSource:"dataSource",displayExpr:"displayExpr",fieldExpr:"fieldExpr",label:"label",useColorAsDefault:"useColorAsDefault",valueExpr:"valueExpr"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),zi=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Wi=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Yi=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"color",get:function(){return this._getOption("color")},set:function(e){this._setOption("color",e)}},{key:"locations",get:function(){return this._getOption("locations")},set:function(e){this._setOption("locations",e)}},{key:"mode",get:function(){return this._getOption("mode")},set:function(e){this._setOption("mode",e)}},{key:"opacity",get:function(){return this._getOption("opacity")},set:function(e){this._setOption("opacity",e)}},{key:"weight",get:function(){return this._getOption("weight")},set:function(e){this._setOption("weight",e)}},{key:"_optionPath",get:function(){return"routes"}},{key:"locationsChildren",get:function(){return this._getOption("locations")},set:function(e){this.setChildren("locations",e)}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-route"]],contentQueries:function(e,t,n){var i;1&e&&d.Tb(n,ie,!1),2&e&&d.Ec(i=d.oc())&&(t.locationsChildren=i)},inputs:{color:"color",locations:"locations",mode:"mode",opacity:"opacity",weight:"weight"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Gi=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),qi=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"allowDropInsideItem",get:function(){return this._getOption("allowDropInsideItem")},set:function(e){this._setOption("allowDropInsideItem",e)}},{key:"allowReordering",get:function(){return this._getOption("allowReordering")},set:function(e){this._setOption("allowReordering",e)}},{key:"autoScroll",get:function(){return this._getOption("autoScroll")},set:function(e){this._setOption("autoScroll",e)}},{key:"boundary",get:function(){return this._getOption("boundary")},set:function(e){this._setOption("boundary",e)}},{key:"container",get:function(){return this._getOption("container")},set:function(e){this._setOption("container",e)}},{key:"cursorOffset",get:function(){return this._getOption("cursorOffset")},set:function(e){this._setOption("cursorOffset",e)}},{key:"data",get:function(){return this._getOption("data")},set:function(e){this._setOption("data",e)}},{key:"dragDirection",get:function(){return this._getOption("dragDirection")},set:function(e){this._setOption("dragDirection",e)}},{key:"dragTemplate",get:function(){return this._getOption("dragTemplate")},set:function(e){this._setOption("dragTemplate",e)}},{key:"dropFeedbackMode",get:function(){return this._getOption("dropFeedbackMode")},set:function(e){this._setOption("dropFeedbackMode",e)}},{key:"filter",get:function(){return this._getOption("filter")},set:function(e){this._setOption("filter",e)}},{key:"group",get:function(){return this._getOption("group")},set:function(e){this._setOption("group",e)}},{key:"handle",get:function(){return this._getOption("handle")},set:function(e){this._setOption("handle",e)}},{key:"onAdd",get:function(){return this._getOption("onAdd")},set:function(e){this._setOption("onAdd",e)}},{key:"onDragChange",get:function(){return this._getOption("onDragChange")},set:function(e){this._setOption("onDragChange",e)}},{key:"onDragEnd",get:function(){return this._getOption("onDragEnd")},set:function(e){this._setOption("onDragEnd",e)}},{key:"onDragMove",get:function(){return this._getOption("onDragMove")},set:function(e){this._setOption("onDragMove",e)}},{key:"onDragStart",get:function(){return this._getOption("onDragStart")},set:function(e){this._setOption("onDragStart",e)}},{key:"onRemove",get:function(){return this._getOption("onRemove")},set:function(e){this._setOption("onRemove",e)}},{key:"onReorder",get:function(){return this._getOption("onReorder")},set:function(e){this._setOption("onReorder",e)}},{key:"scrollSensitivity",get:function(){return this._getOption("scrollSensitivity")},set:function(e){this._setOption("scrollSensitivity",e)}},{key:"scrollSpeed",get:function(){return this._getOption("scrollSpeed")},set:function(e){this._setOption("scrollSpeed",e)}},{key:"showDragIcons",get:function(){return this._getOption("showDragIcons")},set:function(e){this._setOption("showDragIcons",e)}},{key:"_optionPath",get:function(){return"rowDragging"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-row-dragging"]],inputs:{allowDropInsideItem:"allowDropInsideItem",allowReordering:"allowReordering",autoScroll:"autoScroll",boundary:"boundary",container:"container",cursorOffset:"cursorOffset",data:"data",dragDirection:"dragDirection",dragTemplate:"dragTemplate",dropFeedbackMode:"dropFeedbackMode",filter:"filter",group:"group",handle:"handle",onAdd:"onAdd",onDragChange:"onDragChange",onDragEnd:"onDragEnd",onDragMove:"onDragMove",onDragStart:"onDragStart",onRemove:"onRemove",onReorder:"onReorder",scrollSensitivity:"scrollSensitivity",scrollSpeed:"scrollSpeed",showDragIcons:"showDragIcons"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Ki=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Xi=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"baseSize",get:function(){return this._getOption("baseSize")},set:function(e){this._setOption("baseSize",e)}},{key:"ratio",get:function(){return this._getOption("ratio")},set:function(e){this._setOption("ratio",e)}},{key:"screen",get:function(){return this._getOption("screen")},set:function(e){this._setOption("screen",e)}},{key:"shrink",get:function(){return this._getOption("shrink")},set:function(e){this._setOption("shrink",e)}},{key:"_optionPath",get:function(){return"rows"}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-row"]],inputs:{baseSize:"baseSize",ratio:"ratio",screen:"screen",shrink:"shrink"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Ji=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Qi=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Zi=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),er=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),tr=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"columnRenderingMode",get:function(){return this._getOption("columnRenderingMode")},set:function(e){this._setOption("columnRenderingMode",e)}},{key:"mode",get:function(){return this._getOption("mode")},set:function(e){this._setOption("mode",e)}},{key:"preloadEnabled",get:function(){return this._getOption("preloadEnabled")},set:function(e){this._setOption("preloadEnabled",e)}},{key:"rowRenderingMode",get:function(){return this._getOption("rowRenderingMode")},set:function(e){this._setOption("rowRenderingMode",e)}},{key:"scrollByContent",get:function(){return this._getOption("scrollByContent")},set:function(e){this._setOption("scrollByContent",e)}},{key:"scrollByThumb",get:function(){return this._getOption("scrollByThumb")},set:function(e){this._setOption("scrollByThumb",e)}},{key:"showScrollbar",get:function(){return this._getOption("showScrollbar")},set:function(e){this._setOption("showScrollbar",e)}},{key:"useNative",get:function(){return this._getOption("useNative")},set:function(e){this._setOption("useNative",e)}},{key:"_optionPath",get:function(){return"scrolling"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-scrolling"]],inputs:{columnRenderingMode:"columnRenderingMode",mode:"mode",preloadEnabled:"preloadEnabled",rowRenderingMode:"rowRenderingMode",scrollByContent:"scrollByContent",scrollByThumb:"scrollByThumb",showScrollbar:"showScrollbar",useNative:"useNative"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),nr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),ir=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),rr=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this))._createEventEmitters([{emit:"textChange"}]),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"highlightCaseSensitive",get:function(){return this._getOption("highlightCaseSensitive")},set:function(e){this._setOption("highlightCaseSensitive",e)}},{key:"highlightSearchText",get:function(){return this._getOption("highlightSearchText")},set:function(e){this._setOption("highlightSearchText",e)}},{key:"placeholder",get:function(){return this._getOption("placeholder")},set:function(e){this._setOption("placeholder",e)}},{key:"searchVisibleColumnsOnly",get:function(){return this._getOption("searchVisibleColumnsOnly")},set:function(e){this._setOption("searchVisibleColumnsOnly",e)}},{key:"text",get:function(){return this._getOption("text")},set:function(e){this._setOption("text",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"width",get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)}},{key:"_optionPath",get:function(){return"searchPanel"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-search-panel"]],inputs:{highlightCaseSensitive:"highlightCaseSensitive",highlightSearchText:"highlightSearchText",placeholder:"placeholder",searchVisibleColumnsOnly:"searchVisibleColumnsOnly",text:"text",visible:"visible",width:"width"},outputs:{textChange:"textChange"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),or=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),ar=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),sr=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"allowSelectAll",get:function(){return this._getOption("allowSelectAll")},set:function(e){this._setOption("allowSelectAll",e)}},{key:"deferred",get:function(){return this._getOption("deferred")},set:function(e){this._setOption("deferred",e)}},{key:"mode",get:function(){return this._getOption("mode")},set:function(e){this._setOption("mode",e)}},{key:"selectAllMode",get:function(){return this._getOption("selectAllMode")},set:function(e){this._setOption("selectAllMode",e)}},{key:"showCheckBoxesMode",get:function(){return this._getOption("showCheckBoxesMode")},set:function(e){this._setOption("showCheckBoxesMode",e)}},{key:"recursive",get:function(){return this._getOption("recursive")},set:function(e){this._setOption("recursive",e)}},{key:"_optionPath",get:function(){return"selection"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-selection"]],inputs:{allowSelectAll:"allowSelectAll",deferred:"deferred",mode:"mode",selectAllMode:"selectAllMode",showCheckBoxesMode:"showCheckBoxesMode",recursive:"recursive"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),cr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),ur=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),lr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),dr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),hr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),fr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),pr=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"show"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(y);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-show"]],inputs:{complete:"complete",delay:"delay",direction:"direction",duration:"duration",easing:"easing",from:"from",staggerDelay:"staggerDelay",start:"start",to:"to",type:"type"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),gr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),mr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),vr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),_r=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),yr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),br=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),wr=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"groupColumn",get:function(){return this._getOption("groupColumn")},set:function(e){this._setOption("groupColumn",e)}},{key:"sortOrder",get:function(){return this._getOption("sortOrder")},set:function(e){this._setOption("sortOrder",e)}},{key:"summaryItem",get:function(){return this._getOption("summaryItem")},set:function(e){this._setOption("summaryItem",e)}},{key:"_optionPath",get:function(){return"sortByGroupSummaryInfo"}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-sort-by-group-summary-info"]],inputs:{groupColumn:"groupColumn",sortOrder:"sortOrder",summaryItem:"summaryItem"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Cr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Or=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"ascendingText",get:function(){return this._getOption("ascendingText")},set:function(e){this._setOption("ascendingText",e)}},{key:"clearText",get:function(){return this._getOption("clearText")},set:function(e){this._setOption("clearText",e)}},{key:"descendingText",get:function(){return this._getOption("descendingText")},set:function(e){this._setOption("descendingText",e)}},{key:"mode",get:function(){return this._getOption("mode")},set:function(e){this._setOption("mode",e)}},{key:"showSortIndexes",get:function(){return this._getOption("showSortIndexes")},set:function(e){this._setOption("showSortIndexes",e)}},{key:"_optionPath",get:function(){return"sorting"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-sorting"]],inputs:{ascendingText:"ascendingText",clearText:"clearText",descendingText:"descendingText",mode:"mode",showSortIndexes:"showSortIndexes"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Sr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),kr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),xr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Tr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Er=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Ir=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Dr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Mr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Ar=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Pr=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"customLoad",get:function(){return this._getOption("customLoad")},set:function(e){this._setOption("customLoad",e)}},{key:"customSave",get:function(){return this._getOption("customSave")},set:function(e){this._setOption("customSave",e)}},{key:"enabled",get:function(){return this._getOption("enabled")},set:function(e){this._setOption("enabled",e)}},{key:"savingTimeout",get:function(){return this._getOption("savingTimeout")},set:function(e){this._setOption("savingTimeout",e)}},{key:"storageKey",get:function(){return this._getOption("storageKey")},set:function(e){this._setOption("storageKey",e)}},{key:"type",get:function(){return this._getOption("type")},set:function(e){this._setOption("type",e)}},{key:"_optionPath",get:function(){return"stateStoring"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-state-storing"]],inputs:{customLoad:"customLoad",customSave:"customSave",enabled:"enabled",savingTimeout:"savingTimeout",storageKey:"storageKey",type:"type"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Lr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Rr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),jr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Nr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Fr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Br=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"cssClass",get:function(){return this._getOption("cssClass")},set:function(e){this._setOption("cssClass",e)}},{key:"end",get:function(){return this._getOption("end")},set:function(e){this._setOption("end",e)}},{key:"start",get:function(){return this._getOption("start")},set:function(e){this._setOption("start",e)}},{key:"title",get:function(){return this._getOption("title")},set:function(e){this._setOption("title",e)}}]),n}(h.a),Vr=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"stripLines"}}]),n}(Br);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-strip-line"]],inputs:{cssClass:"cssClass",end:"end",start:"start",title:"title"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),$r=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Hr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Ur=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),zr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Wr=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"alignment",get:function(){return this._getOption("alignment")},set:function(e){this._setOption("alignment",e)}},{key:"column",get:function(){return this._getOption("column")},set:function(e){this._setOption("column",e)}},{key:"cssClass",get:function(){return this._getOption("cssClass")},set:function(e){this._setOption("cssClass",e)}},{key:"customizeText",get:function(){return this._getOption("customizeText")},set:function(e){this._setOption("customizeText",e)}},{key:"displayFormat",get:function(){return this._getOption("displayFormat")},set:function(e){this._setOption("displayFormat",e)}},{key:"name",get:function(){return this._getOption("name")},set:function(e){this._setOption("name",e)}},{key:"showInColumn",get:function(){return this._getOption("showInColumn")},set:function(e){this._setOption("showInColumn",e)}},{key:"skipEmptyValues",get:function(){return this._getOption("skipEmptyValues")},set:function(e){this._setOption("skipEmptyValues",e)}},{key:"summaryType",get:function(){return this._getOption("summaryType")},set:function(e){this._setOption("summaryType",e)}},{key:"valueFormat",get:function(){return this._getOption("valueFormat")},set:function(e){this._setOption("valueFormat",e)}},{key:"_optionPath",get:function(){return"totalItems"}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-total-item"]],inputs:{alignment:"alignment",column:"column",cssClass:"cssClass",customizeText:"customizeText",displayFormat:"displayFormat",name:"name",showInColumn:"showInColumn",skipEmptyValues:"skipEmptyValues",summaryType:"summaryType",valueFormat:"valueFormat"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Yr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Gr=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"calculateCustomSummary",get:function(){return this._getOption("calculateCustomSummary")},set:function(e){this._setOption("calculateCustomSummary",e)}},{key:"groupItems",get:function(){return this._getOption("groupItems")},set:function(e){this._setOption("groupItems",e)}},{key:"recalculateWhileEditing",get:function(){return this._getOption("recalculateWhileEditing")},set:function(e){this._setOption("recalculateWhileEditing",e)}},{key:"skipEmptyValues",get:function(){return this._getOption("skipEmptyValues")},set:function(e){this._setOption("skipEmptyValues",e)}},{key:"texts",get:function(){return this._getOption("texts")},set:function(e){this._setOption("texts",e)}},{key:"totalItems",get:function(){return this._getOption("totalItems")},set:function(e){this._setOption("totalItems",e)}},{key:"_optionPath",get:function(){return"summary"}},{key:"groupItemsChildren",get:function(){return this._getOption("groupItems")},set:function(e){this.setChildren("groupItems",e)}},{key:"totalItemsChildren",get:function(){return this._getOption("totalItems")},set:function(e){this.setChildren("totalItems",e)}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-summary"]],contentQueries:function(e,t,n){var i;1&e&&(d.Tb(n,tn,!1),d.Tb(n,Wr,!1)),2&e&&(d.Ec(i=d.oc())&&(t.groupItemsChildren=i),d.Ec(i=d.oc())&&(t.totalItemsChildren=i))},inputs:{calculateCustomSummary:"calculateCustomSummary",groupItems:"groupItems",recalculateWhileEditing:"recalculateWhileEditing",skipEmptyValues:"skipEmptyValues",texts:"texts",totalItems:"totalItems"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),qr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Kr=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"accessKey",get:function(){return this._getOption("accessKey")},set:function(e){this._setOption("accessKey",e)}},{key:"activeStateEnabled",get:function(){return this._getOption("activeStateEnabled")},set:function(e){this._setOption("activeStateEnabled",e)}},{key:"animationEnabled",get:function(){return this._getOption("animationEnabled")},set:function(e){this._setOption("animationEnabled",e)}},{key:"dataSource",get:function(){return this._getOption("dataSource")},set:function(e){this._setOption("dataSource",e)}},{key:"deferRendering",get:function(){return this._getOption("deferRendering")},set:function(e){this._setOption("deferRendering",e)}},{key:"disabled",get:function(){return this._getOption("disabled")},set:function(e){this._setOption("disabled",e)}},{key:"elementAttr",get:function(){return this._getOption("elementAttr")},set:function(e){this._setOption("elementAttr",e)}},{key:"focusStateEnabled",get:function(){return this._getOption("focusStateEnabled")},set:function(e){this._setOption("focusStateEnabled",e)}},{key:"height",get:function(){return this._getOption("height")},set:function(e){this._setOption("height",e)}},{key:"hint",get:function(){return this._getOption("hint")},set:function(e){this._setOption("hint",e)}},{key:"hoverStateEnabled",get:function(){return this._getOption("hoverStateEnabled")},set:function(e){this._setOption("hoverStateEnabled",e)}},{key:"itemHoldTimeout",get:function(){return this._getOption("itemHoldTimeout")},set:function(e){this._setOption("itemHoldTimeout",e)}},{key:"items",get:function(){return this._getOption("items")},set:function(e){this._setOption("items",e)}},{key:"itemTemplate",get:function(){return this._getOption("itemTemplate")},set:function(e){this._setOption("itemTemplate",e)}},{key:"itemTitleTemplate",get:function(){return this._getOption("itemTitleTemplate")},set:function(e){this._setOption("itemTitleTemplate",e)}},{key:"loop",get:function(){return this._getOption("loop")},set:function(e){this._setOption("loop",e)}},{key:"noDataText",get:function(){return this._getOption("noDataText")},set:function(e){this._setOption("noDataText",e)}},{key:"onContentReady",get:function(){return this._getOption("onContentReady")},set:function(e){this._setOption("onContentReady",e)}},{key:"onDisposing",get:function(){return this._getOption("onDisposing")},set:function(e){this._setOption("onDisposing",e)}},{key:"onInitialized",get:function(){return this._getOption("onInitialized")},set:function(e){this._setOption("onInitialized",e)}},{key:"onItemClick",get:function(){return this._getOption("onItemClick")},set:function(e){this._setOption("onItemClick",e)}},{key:"onItemContextMenu",get:function(){return this._getOption("onItemContextMenu")},set:function(e){this._setOption("onItemContextMenu",e)}},{key:"onItemHold",get:function(){return this._getOption("onItemHold")},set:function(e){this._setOption("onItemHold",e)}},{key:"onItemRendered",get:function(){return this._getOption("onItemRendered")},set:function(e){this._setOption("onItemRendered",e)}},{key:"onOptionChanged",get:function(){return this._getOption("onOptionChanged")},set:function(e){this._setOption("onOptionChanged",e)}},{key:"onSelectionChanged",get:function(){return this._getOption("onSelectionChanged")},set:function(e){this._setOption("onSelectionChanged",e)}},{key:"onTitleClick",get:function(){return this._getOption("onTitleClick")},set:function(e){this._setOption("onTitleClick",e)}},{key:"onTitleHold",get:function(){return this._getOption("onTitleHold")},set:function(e){this._setOption("onTitleHold",e)}},{key:"onTitleRendered",get:function(){return this._getOption("onTitleRendered")},set:function(e){this._setOption("onTitleRendered",e)}},{key:"repaintChangesOnly",get:function(){return this._getOption("repaintChangesOnly")},set:function(e){this._setOption("repaintChangesOnly",e)}},{key:"rtlEnabled",get:function(){return this._getOption("rtlEnabled")},set:function(e){this._setOption("rtlEnabled",e)}},{key:"scrollByContent",get:function(){return this._getOption("scrollByContent")},set:function(e){this._setOption("scrollByContent",e)}},{key:"scrollingEnabled",get:function(){return this._getOption("scrollingEnabled")},set:function(e){this._setOption("scrollingEnabled",e)}},{key:"selectedIndex",get:function(){return this._getOption("selectedIndex")},set:function(e){this._setOption("selectedIndex",e)}},{key:"selectedItem",get:function(){return this._getOption("selectedItem")},set:function(e){this._setOption("selectedItem",e)}},{key:"showNavButtons",get:function(){return this._getOption("showNavButtons")},set:function(e){this._setOption("showNavButtons",e)}},{key:"swipeEnabled",get:function(){return this._getOption("swipeEnabled")},set:function(e){this._setOption("swipeEnabled",e)}},{key:"tabIndex",get:function(){return this._getOption("tabIndex")},set:function(e){this._setOption("tabIndex",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"width",get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)}}]),n}(h.i),Xr=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this))._createEventEmitters([{emit:"itemsChange"},{emit:"selectedIndexChange"},{emit:"selectedItemChange"}]),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"tabPanelOptions"}},{key:"itemsChildren",get:function(){return this._getOption("items")},set:function(e){this.setChildren("items",e)}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(Kr);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-tab-panel-options"]],contentQueries:function(e,t,n){var i;1&e&&d.Tb(n,oe,!1),2&e&&d.Ec(i=d.oc())&&(t.itemsChildren=i)},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",animationEnabled:"animationEnabled",dataSource:"dataSource",deferRendering:"deferRendering",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",itemHoldTimeout:"itemHoldTimeout",items:"items",itemTemplate:"itemTemplate",itemTitleTemplate:"itemTitleTemplate",loop:"loop",noDataText:"noDataText",onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onItemClick:"onItemClick",onItemContextMenu:"onItemContextMenu",onItemHold:"onItemHold",onItemRendered:"onItemRendered",onOptionChanged:"onOptionChanged",onSelectionChanged:"onSelectionChanged",onTitleClick:"onTitleClick",onTitleHold:"onTitleHold",onTitleRendered:"onTitleRendered",repaintChangesOnly:"repaintChangesOnly",rtlEnabled:"rtlEnabled",scrollByContent:"scrollByContent",scrollingEnabled:"scrollingEnabled",selectedIndex:"selectedIndex",selectedItem:"selectedItem",showNavButtons:"showNavButtons",swipeEnabled:"swipeEnabled",tabIndex:"tabIndex",visible:"visible",width:"width"},outputs:{itemsChange:"itemsChange",selectedIndexChange:"selectedIndexChange",selectedItemChange:"selectedItemChange"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Jr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Qr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Zr=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),eo=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"fix",get:function(){return this._getOption("fix")},set:function(e){this._setOption("fix",e)}},{key:"leftPosition",get:function(){return this._getOption("leftPosition")},set:function(e){this._setOption("leftPosition",e)}},{key:"rightPosition",get:function(){return this._getOption("rightPosition")},set:function(e){this._setOption("rightPosition",e)}},{key:"unfix",get:function(){return this._getOption("unfix")},set:function(e){this._setOption("unfix",e)}},{key:"addRow",get:function(){return this._getOption("addRow")},set:function(e){this._setOption("addRow",e)}},{key:"cancelAllChanges",get:function(){return this._getOption("cancelAllChanges")},set:function(e){this._setOption("cancelAllChanges",e)}},{key:"cancelRowChanges",get:function(){return this._getOption("cancelRowChanges")},set:function(e){this._setOption("cancelRowChanges",e)}},{key:"confirmDeleteMessage",get:function(){return this._getOption("confirmDeleteMessage")},set:function(e){this._setOption("confirmDeleteMessage",e)}},{key:"confirmDeleteTitle",get:function(){return this._getOption("confirmDeleteTitle")},set:function(e){this._setOption("confirmDeleteTitle",e)}},{key:"deleteRow",get:function(){return this._getOption("deleteRow")},set:function(e){this._setOption("deleteRow",e)}},{key:"editRow",get:function(){return this._getOption("editRow")},set:function(e){this._setOption("editRow",e)}},{key:"saveAllChanges",get:function(){return this._getOption("saveAllChanges")},set:function(e){this._setOption("saveAllChanges",e)}},{key:"saveRowChanges",get:function(){return this._getOption("saveRowChanges")},set:function(e){this._setOption("saveRowChanges",e)}},{key:"undeleteRow",get:function(){return this._getOption("undeleteRow")},set:function(e){this._setOption("undeleteRow",e)}},{key:"validationCancelChanges",get:function(){return this._getOption("validationCancelChanges")},set:function(e){this._setOption("validationCancelChanges",e)}},{key:"exportAll",get:function(){return this._getOption("exportAll")},set:function(e){this._setOption("exportAll",e)}},{key:"exportSelectedRows",get:function(){return this._getOption("exportSelectedRows")},set:function(e){this._setOption("exportSelectedRows",e)}},{key:"exportTo",get:function(){return this._getOption("exportTo")},set:function(e){this._setOption("exportTo",e)}},{key:"clearFilter",get:function(){return this._getOption("clearFilter")},set:function(e){this._setOption("clearFilter",e)}},{key:"createFilter",get:function(){return this._getOption("createFilter")},set:function(e){this._setOption("createFilter",e)}},{key:"filterEnabledHint",get:function(){return this._getOption("filterEnabledHint")},set:function(e){this._setOption("filterEnabledHint",e)}},{key:"groupByThisColumn",get:function(){return this._getOption("groupByThisColumn")},set:function(e){this._setOption("groupByThisColumn",e)}},{key:"groupContinuedMessage",get:function(){return this._getOption("groupContinuedMessage")},set:function(e){this._setOption("groupContinuedMessage",e)}},{key:"groupContinuesMessage",get:function(){return this._getOption("groupContinuesMessage")},set:function(e){this._setOption("groupContinuesMessage",e)}},{key:"ungroup",get:function(){return this._getOption("ungroup")},set:function(e){this._setOption("ungroup",e)}},{key:"ungroupAll",get:function(){return this._getOption("ungroupAll")},set:function(e){this._setOption("ungroupAll",e)}},{key:"cancel",get:function(){return this._getOption("cancel")},set:function(e){this._setOption("cancel",e)}},{key:"emptyValue",get:function(){return this._getOption("emptyValue")},set:function(e){this._setOption("emptyValue",e)}},{key:"ok",get:function(){return this._getOption("ok")},set:function(e){this._setOption("ok",e)}},{key:"avg",get:function(){return this._getOption("avg")},set:function(e){this._setOption("avg",e)}},{key:"avgOtherColumn",get:function(){return this._getOption("avgOtherColumn")},set:function(e){this._setOption("avgOtherColumn",e)}},{key:"count",get:function(){return this._getOption("count")},set:function(e){this._setOption("count",e)}},{key:"max",get:function(){return this._getOption("max")},set:function(e){this._setOption("max",e)}},{key:"maxOtherColumn",get:function(){return this._getOption("maxOtherColumn")},set:function(e){this._setOption("maxOtherColumn",e)}},{key:"min",get:function(){return this._getOption("min")},set:function(e){this._setOption("min",e)}},{key:"minOtherColumn",get:function(){return this._getOption("minOtherColumn")},set:function(e){this._setOption("minOtherColumn",e)}},{key:"sum",get:function(){return this._getOption("sum")},set:function(e){this._setOption("sum",e)}},{key:"sumOtherColumn",get:function(){return this._getOption("sumOtherColumn")},set:function(e){this._setOption("sumOtherColumn",e)}},{key:"allFields",get:function(){return this._getOption("allFields")},set:function(e){this._setOption("allFields",e)}},{key:"columnFields",get:function(){return this._getOption("columnFields")},set:function(e){this._setOption("columnFields",e)}},{key:"dataFields",get:function(){return this._getOption("dataFields")},set:function(e){this._setOption("dataFields",e)}},{key:"filterFields",get:function(){return this._getOption("filterFields")},set:function(e){this._setOption("filterFields",e)}},{key:"rowFields",get:function(){return this._getOption("rowFields")},set:function(e){this._setOption("rowFields",e)}},{key:"columnFieldArea",get:function(){return this._getOption("columnFieldArea")},set:function(e){this._setOption("columnFieldArea",e)}},{key:"dataFieldArea",get:function(){return this._getOption("dataFieldArea")},set:function(e){this._setOption("dataFieldArea",e)}},{key:"filterFieldArea",get:function(){return this._getOption("filterFieldArea")},set:function(e){this._setOption("filterFieldArea",e)}},{key:"rowFieldArea",get:function(){return this._getOption("rowFieldArea")},set:function(e){this._setOption("rowFieldArea",e)}},{key:"collapseAll",get:function(){return this._getOption("collapseAll")},set:function(e){this._setOption("collapseAll",e)}},{key:"dataNotAvailable",get:function(){return this._getOption("dataNotAvailable")},set:function(e){this._setOption("dataNotAvailable",e)}},{key:"expandAll",get:function(){return this._getOption("expandAll")},set:function(e){this._setOption("expandAll",e)}},{key:"exportToExcel",get:function(){return this._getOption("exportToExcel")},set:function(e){this._setOption("exportToExcel",e)}},{key:"grandTotal",get:function(){return this._getOption("grandTotal")},set:function(e){this._setOption("grandTotal",e)}},{key:"noData",get:function(){return this._getOption("noData")},set:function(e){this._setOption("noData",e)}},{key:"removeAllSorting",get:function(){return this._getOption("removeAllSorting")},set:function(e){this._setOption("removeAllSorting",e)}},{key:"showFieldChooser",get:function(){return this._getOption("showFieldChooser")},set:function(e){this._setOption("showFieldChooser",e)}},{key:"sortColumnBySummary",get:function(){return this._getOption("sortColumnBySummary")},set:function(e){this._setOption("sortColumnBySummary",e)}},{key:"sortRowBySummary",get:function(){return this._getOption("sortRowBySummary")},set:function(e){this._setOption("sortRowBySummary",e)}},{key:"total",get:function(){return this._getOption("total")},set:function(e){this._setOption("total",e)}},{key:"addRowToNode",get:function(){return this._getOption("addRowToNode")},set:function(e){this._setOption("addRowToNode",e)}},{key:"_optionPath",get:function(){return"texts"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(h.i);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-texts"]],inputs:{fix:"fix",leftPosition:"leftPosition",rightPosition:"rightPosition",unfix:"unfix",addRow:"addRow",cancelAllChanges:"cancelAllChanges",cancelRowChanges:"cancelRowChanges",confirmDeleteMessage:"confirmDeleteMessage",confirmDeleteTitle:"confirmDeleteTitle",deleteRow:"deleteRow",editRow:"editRow",saveAllChanges:"saveAllChanges",saveRowChanges:"saveRowChanges",undeleteRow:"undeleteRow",validationCancelChanges:"validationCancelChanges",exportAll:"exportAll",exportSelectedRows:"exportSelectedRows",exportTo:"exportTo",clearFilter:"clearFilter",createFilter:"createFilter",filterEnabledHint:"filterEnabledHint",groupByThisColumn:"groupByThisColumn",groupContinuedMessage:"groupContinuedMessage",groupContinuesMessage:"groupContinuesMessage",ungroup:"ungroup",ungroupAll:"ungroupAll",cancel:"cancel",emptyValue:"emptyValue",ok:"ok",avg:"avg",avgOtherColumn:"avgOtherColumn",count:"count",max:"max",maxOtherColumn:"maxOtherColumn",min:"min",minOtherColumn:"minOtherColumn",sum:"sum",sumOtherColumn:"sumOtherColumn",allFields:"allFields",columnFields:"columnFields",dataFields:"dataFields",filterFields:"filterFields",rowFields:"rowFields",columnFieldArea:"columnFieldArea",dataFieldArea:"dataFieldArea",filterFieldArea:"filterFieldArea",rowFieldArea:"rowFieldArea",collapseAll:"collapseAll",dataNotAvailable:"dataNotAvailable",expandAll:"expandAll",exportToExcel:"exportToExcel",grandTotal:"grandTotal",noData:"noData",removeAllSorting:"removeAllSorting",showFieldChooser:"showFieldChooser",sortColumnBySummary:"sortColumnBySummary",sortRowBySummary:"sortRowBySummary",total:"total",addRowToNode:"addRowToNode"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),to=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),no=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),io=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),ro=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),oo=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),ao=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),so=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),co=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),uo=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),lo=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),ho=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),fo=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this))._createEventEmitters([{emit:"visualRangeChange"}]),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"allowDecimals",get:function(){return this._getOption("allowDecimals")},set:function(e){this._setOption("allowDecimals",e)}},{key:"autoBreaksEnabled",get:function(){return this._getOption("autoBreaksEnabled")},set:function(e){this._setOption("autoBreaksEnabled",e)}},{key:"axisDivisionFactor",get:function(){return this._getOption("axisDivisionFactor")},set:function(e){this._setOption("axisDivisionFactor",e)}},{key:"breaks",get:function(){return this._getOption("breaks")},set:function(e){this._setOption("breaks",e)}},{key:"breakStyle",get:function(){return this._getOption("breakStyle")},set:function(e){this._setOption("breakStyle",e)}},{key:"categories",get:function(){return this._getOption("categories")},set:function(e){this._setOption("categories",e)}},{key:"color",get:function(){return this._getOption("color")},set:function(e){this._setOption("color",e)}},{key:"constantLines",get:function(){return this._getOption("constantLines")},set:function(e){this._setOption("constantLines",e)}},{key:"constantLineStyle",get:function(){return this._getOption("constantLineStyle")},set:function(e){this._setOption("constantLineStyle",e)}},{key:"customPosition",get:function(){return this._getOption("customPosition")},set:function(e){this._setOption("customPosition",e)}},{key:"discreteAxisDivisionMode",get:function(){return this._getOption("discreteAxisDivisionMode")},set:function(e){this._setOption("discreteAxisDivisionMode",e)}},{key:"endOnTick",get:function(){return this._getOption("endOnTick")},set:function(e){this._setOption("endOnTick",e)}},{key:"grid",get:function(){return this._getOption("grid")},set:function(e){this._setOption("grid",e)}},{key:"inverted",get:function(){return this._getOption("inverted")},set:function(e){this._setOption("inverted",e)}},{key:"label",get:function(){return this._getOption("label")},set:function(e){this._setOption("label",e)}},{key:"linearThreshold",get:function(){return this._getOption("linearThreshold")},set:function(e){this._setOption("linearThreshold",e)}},{key:"logarithmBase",get:function(){return this._getOption("logarithmBase")},set:function(e){this._setOption("logarithmBase",e)}},{key:"max",get:function(){return this._getOption("max")},set:function(e){this._setOption("max",e)}},{key:"maxAutoBreakCount",get:function(){return this._getOption("maxAutoBreakCount")},set:function(e){this._setOption("maxAutoBreakCount",e)}},{key:"maxValueMargin",get:function(){return this._getOption("maxValueMargin")},set:function(e){this._setOption("maxValueMargin",e)}},{key:"min",get:function(){return this._getOption("min")},set:function(e){this._setOption("min",e)}},{key:"minorGrid",get:function(){return this._getOption("minorGrid")},set:function(e){this._setOption("minorGrid",e)}},{key:"minorTick",get:function(){return this._getOption("minorTick")},set:function(e){this._setOption("minorTick",e)}},{key:"minorTickCount",get:function(){return this._getOption("minorTickCount")},set:function(e){this._setOption("minorTickCount",e)}},{key:"minorTickInterval",get:function(){return this._getOption("minorTickInterval")},set:function(e){this._setOption("minorTickInterval",e)}},{key:"minValueMargin",get:function(){return this._getOption("minValueMargin")},set:function(e){this._setOption("minValueMargin",e)}},{key:"minVisualRangeLength",get:function(){return this._getOption("minVisualRangeLength")},set:function(e){this._setOption("minVisualRangeLength",e)}},{key:"multipleAxesSpacing",get:function(){return this._getOption("multipleAxesSpacing")},set:function(e){this._setOption("multipleAxesSpacing",e)}},{key:"name",get:function(){return this._getOption("name")},set:function(e){this._setOption("name",e)}},{key:"offset",get:function(){return this._getOption("offset")},set:function(e){this._setOption("offset",e)}},{key:"opacity",get:function(){return this._getOption("opacity")},set:function(e){this._setOption("opacity",e)}},{key:"pane",get:function(){return this._getOption("pane")},set:function(e){this._setOption("pane",e)}},{key:"placeholderSize",get:function(){return this._getOption("placeholderSize")},set:function(e){this._setOption("placeholderSize",e)}},{key:"position",get:function(){return this._getOption("position")},set:function(e){this._setOption("position",e)}},{key:"showZero",get:function(){return this._getOption("showZero")},set:function(e){this._setOption("showZero",e)}},{key:"strips",get:function(){return this._getOption("strips")},set:function(e){this._setOption("strips",e)}},{key:"stripStyle",get:function(){return this._getOption("stripStyle")},set:function(e){this._setOption("stripStyle",e)}},{key:"synchronizedValue",get:function(){return this._getOption("synchronizedValue")},set:function(e){this._setOption("synchronizedValue",e)}},{key:"tick",get:function(){return this._getOption("tick")},set:function(e){this._setOption("tick",e)}},{key:"tickInterval",get:function(){return this._getOption("tickInterval")},set:function(e){this._setOption("tickInterval",e)}},{key:"title",get:function(){return this._getOption("title")},set:function(e){this._setOption("title",e)}},{key:"type",get:function(){return this._getOption("type")},set:function(e){this._setOption("type",e)}},{key:"valueMarginsEnabled",get:function(){return this._getOption("valueMarginsEnabled")},set:function(e){this._setOption("valueMarginsEnabled",e)}},{key:"valueType",get:function(){return this._getOption("valueType")},set:function(e){this._setOption("valueType",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"visualRange",get:function(){return this._getOption("visualRange")},set:function(e){this._setOption("visualRange",e)}},{key:"visualRangeUpdateMode",get:function(){return this._getOption("visualRangeUpdateMode")},set:function(e){this._setOption("visualRangeUpdateMode",e)}},{key:"wholeRange",get:function(){return this._getOption("wholeRange")},set:function(e){this._setOption("wholeRange",e)}},{key:"width",get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)}},{key:"_optionPath",get:function(){return"valueAxis"}},{key:"breaksChildren",get:function(){return this._getOption("breaks")},set:function(e){this.setChildren("breaks",e)}},{key:"constantLinesChildren",get:function(){return this._getOption("constantLines")},set:function(e){this.setChildren("constantLines",e)}},{key:"stripsChildren",get:function(){return this._getOption("strips")},set:function(e){this.setChildren("strips",e)}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-value-axis"]],contentQueries:function(e,t,n){var i;1&e&&(d.Tb(n,I,!1),d.Tb(n,M,!1),d.Tb(n,P,!1)),2&e&&(d.Ec(i=d.oc())&&(t.breaksChildren=i),d.Ec(i=d.oc())&&(t.constantLinesChildren=i),d.Ec(i=d.oc())&&(t.stripsChildren=i))},inputs:{allowDecimals:"allowDecimals",autoBreaksEnabled:"autoBreaksEnabled",axisDivisionFactor:"axisDivisionFactor",breaks:"breaks",breakStyle:"breakStyle",categories:"categories",color:"color",constantLines:"constantLines",constantLineStyle:"constantLineStyle",customPosition:"customPosition",discreteAxisDivisionMode:"discreteAxisDivisionMode",endOnTick:"endOnTick",grid:"grid",inverted:"inverted",label:"label",linearThreshold:"linearThreshold",logarithmBase:"logarithmBase",max:"max",maxAutoBreakCount:"maxAutoBreakCount",maxValueMargin:"maxValueMargin",min:"min",minorGrid:"minorGrid",minorTick:"minorTick",minorTickCount:"minorTickCount",minorTickInterval:"minorTickInterval",minValueMargin:"minValueMargin",minVisualRangeLength:"minVisualRangeLength",multipleAxesSpacing:"multipleAxesSpacing",name:"name",offset:"offset",opacity:"opacity",pane:"pane",placeholderSize:"placeholderSize",position:"position",showZero:"showZero",strips:"strips",stripStyle:"stripStyle",synchronizedValue:"synchronizedValue",tick:"tick",tickInterval:"tickInterval",title:"title",type:"type",valueMarginsEnabled:"valueMarginsEnabled",valueType:"valueType",visible:"visible",visualRange:"visualRange",visualRangeUpdateMode:"visualRangeUpdateMode",wholeRange:"wholeRange",width:"width"},outputs:{visualRangeChange:"visualRangeChange"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),po=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),go=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),mo=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),vo=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"_optionPath",get:function(){return"valueFormat"}},{key:"ngOnInit",value:function(){this._addRecreatedComponent()}},{key:"ngOnDestroy",value:function(){this._addRemovedOption(this._getOptionPath())}}]),n}(j);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxo-value-format"]],inputs:{currency:"currency",formatter:"formatter",parser:"parser",precision:"precision",type:"type"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),_o=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),yo=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),bo=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),wo=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),Co=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,i){var r;return Object(o.a)(this,n),r=t.call(this),e.setNestedOption(Object(s.a)(r)),i.setHost(Object(s.a)(r),r._fullOptionPath.bind(Object(s.a)(r))),r}return Object(a.a)(n,[{key:"agendaDuration",get:function(){return this._getOption("agendaDuration")},set:function(e){this._setOption("agendaDuration",e)}},{key:"appointmentCollectorTemplate",get:function(){return this._getOption("appointmentCollectorTemplate")},set:function(e){this._setOption("appointmentCollectorTemplate",e)}},{key:"appointmentTemplate",get:function(){return this._getOption("appointmentTemplate")},set:function(e){this._setOption("appointmentTemplate",e)}},{key:"appointmentTooltipTemplate",get:function(){return this._getOption("appointmentTooltipTemplate")},set:function(e){this._setOption("appointmentTooltipTemplate",e)}},{key:"cellDuration",get:function(){return this._getOption("cellDuration")},set:function(e){this._setOption("cellDuration",e)}},{key:"dataCellTemplate",get:function(){return this._getOption("dataCellTemplate")},set:function(e){this._setOption("dataCellTemplate",e)}},{key:"dateCellTemplate",get:function(){return this._getOption("dateCellTemplate")},set:function(e){this._setOption("dateCellTemplate",e)}},{key:"dropDownAppointmentTemplate",get:function(){return this._getOption("dropDownAppointmentTemplate")},set:function(e){this._setOption("dropDownAppointmentTemplate",e)}},{key:"endDayHour",get:function(){return this._getOption("endDayHour")},set:function(e){this._setOption("endDayHour",e)}},{key:"firstDayOfWeek",get:function(){return this._getOption("firstDayOfWeek")},set:function(e){this._setOption("firstDayOfWeek",e)}},{key:"groupByDate",get:function(){return this._getOption("groupByDate")},set:function(e){this._setOption("groupByDate",e)}},{key:"groupOrientation",get:function(){return this._getOption("groupOrientation")},set:function(e){this._setOption("groupOrientation",e)}},{key:"groups",get:function(){return this._getOption("groups")},set:function(e){this._setOption("groups",e)}},{key:"intervalCount",get:function(){return this._getOption("intervalCount")},set:function(e){this._setOption("intervalCount",e)}},{key:"maxAppointmentsPerCell",get:function(){return this._getOption("maxAppointmentsPerCell")},set:function(e){this._setOption("maxAppointmentsPerCell",e)}},{key:"name",get:function(){return this._getOption("name")},set:function(e){this._setOption("name",e)}},{key:"resourceCellTemplate",get:function(){return this._getOption("resourceCellTemplate")},set:function(e){this._setOption("resourceCellTemplate",e)}},{key:"startDate",get:function(){return this._getOption("startDate")},set:function(e){this._setOption("startDate",e)}},{key:"startDayHour",get:function(){return this._getOption("startDayHour")},set:function(e){this._setOption("startDayHour",e)}},{key:"timeCellTemplate",get:function(){return this._getOption("timeCellTemplate")},set:function(e){this._setOption("timeCellTemplate",e)}},{key:"type",get:function(){return this._getOption("type")},set:function(e){this._setOption("type",e)}},{key:"_optionPath",get:function(){return"views"}}]),n}(h.a);return e.\u0275fac=function(t){return new(t||e)(d.ac(h.j,5),d.ac(h.j,1))},e.\u0275cmp=d.Ub({type:e,selectors:[["dxi-view"]],inputs:{agendaDuration:"agendaDuration",appointmentCollectorTemplate:"appointmentCollectorTemplate",appointmentTemplate:"appointmentTemplate",appointmentTooltipTemplate:"appointmentTooltipTemplate",cellDuration:"cellDuration",dataCellTemplate:"dataCellTemplate",dateCellTemplate:"dateCellTemplate",dropDownAppointmentTemplate:"dropDownAppointmentTemplate",endDayHour:"endDayHour",firstDayOfWeek:"firstDayOfWeek",groupByDate:"groupByDate",groupOrientation:"groupOrientation",groups:"groups",intervalCount:"intervalCount",maxAppointmentsPerCell:"maxAppointmentsPerCell",name:"name",resourceCellTemplate:"resourceCellTemplate",startDate:"startDate",startDayHour:"startDayHour",timeCellTemplate:"timeCellTemplate",type:"type"},features:[d.Nb([h.j]),d.Lb],decls:0,vars:0,template:function(e,t){},styles:[""]}),e=Object(l.__decorate)([Object(l.__param)(0,Object(d.T)()),Object(l.__param)(0,Object(d.t)()),Object(l.__param)(1,Object(d.t)()),Object(l.__metadata)("design:paramtypes",[h.j,h.j])],e)}(),Oo=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),So=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),ko=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),xo=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}(),To=function(){var e=Object(a.a)(function e(){Object(o.a)(this,e)});return e.\u0275mod=d.Yb({type:e}),e.\u0275inj=d.Xb({factory:function(t){return new(t||e)}}),e}()},"7+OI":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("HDdC");function r(e){return!!e&&(e instanceof i.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)}},"7/nY":function(e,t,n){"use strict";n.d(t,"a",function(){return x});var i,r=n("c7TG"),o=n("aiMf"),a=n("ptfe"),s=n("OC8m"),c=n("4B79"),u=n("Vln1"),l=n("Xzt5"),d=n("mjQz"),h=n("LvDl"),f=n("fXoL"),p=(i=function(e,t){return(i=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(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},m=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0})}),[2]})})},t.prototype.showInstructions=function(){return I(this,void 0,void 0,function(){return D(this,function(e){switch(e.label){case 0:return this.task.instructions[0].instructions||this.task.instructions[0].instructionsWithValidity.Instructions?[4,this.modalController.create({component:u.a,componentProps:{isRoute:!0,stopList:this.stopList}})]:[3,3];case 1:return[4,e.sent().present()];case 2:e.sent(),e.label=3;case 3:return[2]}})})},t.prototype.dismiss=function(){this.activeRoute&&this.router.navigateByUrl("main-menu"),this.taskManagerService.dismissAllModals()},t.prototype.openCbag=function(){return I(this,void 0,void 0,function(){return D(this,function(e){switch(e.label){case 0:return[4,this.modalController.create({component:O.a,componentProps:new g.a({bagType:"cBag"})})];case 1:return e.sent().present(),[2]}})})},t.prototype.openMessages=function(){return I(this,void 0,void 0,function(){return D(this,function(e){switch(e.label){case 0:return[4,this.modalController.create({component:w.a,componentProps:{stopList:this.stopList}})];case 1:return e.sent().present(),[2]}})})},t.prototype.setFilters=function(e,t){var n=this;if(console.log(e),e){if(this.customFilters=e,this.initMenuItems(),1===e.length&&e[0].value&&0===e[0].value.length)return;if(0==e.length)return this.resetFilter();e.forEach(function(e){e.searchQuery?n.filterTasks(e.searchQuery):n.applyCustomeFilter(e)})}},t.prototype.handleScan=function(){return I(this,void 0,void 0,function(){var e,t=this;return D(this,function(n){switch(n.label){case 0:if(!this.barcode)return[3,18];switch(this.barcode.substring(0,2)){case p.a.QD:return[3,1];case p.a.VH:return[3,13]}return[3,17];case 1:return this.taskManagerService.checkLocation(this.barcode)?(this.locationBarcodeScanned=!0,0!==(e=this.getStopsByLocation(this.barcode)).length?[3,8]:this.onlineOfflineService.isOnline?[4,this.checkLocationOnline(this.barcode)]:[3,7]):[3,11];case 2:return n.sent()?[4,this.alertController.create({backdropDismiss:!1,header:"Add Stop",message:"The client associated to this location is not on the route sheet. Do you want to create a stop for the client?",buttons:[{text:"Cancel",role:"cancel",handler:function(){t.barcode="",t.locationBarcodeScanned=!1}},{text:"Ok",handler:function(){return I(t,void 0,void 0,function(){var e,t;return D(this,function(n){switch(n.label){case 0:return[4,this.modalController.create({component:d.a,componentProps:new g.a({barcode:this.barcode})})];case 1:return[4,(e=n.sent()).present()];case 2:return n.sent(),[4,e.onDidDismiss()];case 3:return t=n.sent().data,this.locationBarcodeScanned=!1,this.barcode=t||null,(this.customFilters.length||this.searchQuery||!this.barcode)&&(this.customFilters=[],this.searchQuery="",this.resetFilter(),this.initMenuItems()),[2]}})})}}]})]:[3,5];case 3:return[4,n.sent().present()];case 4:return n.sent(),[3,6];case 5:this.taskManagerService.showAlert("Location not found","No client found with pickup location barcode"),this.locationBarcodeScanned=!1,n.label=6;case 6:return[3,8];case 7:console.log("offline location not found"),this.taskManagerService.showAlert("Location not found","Scanned location is not found."),n.label=8;case 8:return 1!==e.length?[3,10]:[4,this.openStopLocation(e[0])];case 9:n.sent(),n.label=10;case 10:return e.length>1&&(this.pendingStopList=this.copyPendingStopList.filter(function(t){return e.some(function(e){return e._id===t._id})}),this.completedStopList=this.copyCompletedStopList.filter(function(t){return e.some(function(e){return e._id===t._id})})),[3,12];case 11:this.taskManagerService.showToast("Scanned barcode contains invalid characters. Scan again or enter manually"),this.barcode="",n.label=12;case 12:return[3,18];case 13:return this.taskManagerService.checkVehicle(this.barcode)?(this.openTransferSpecimenToCbag(),[3,16]):[3,14];case 14:return[4,this.openTransferComponent({title:"Transfer from RSR",mainPlaceholder:"Scan or enter Vehicle Barcode",dataSource:"vehicle",transferDirection:"from",vhbarcode:this.barcode})];case 15:n.sent(),n.label=16;case 16:return this.barcode="",[3,18];case 17:return this.taskManagerService.showToast("Barcode is not recognized."),this.barcode="",[3,18];case 18:return[2]}})})},t.prototype.moveStopToCompleted=function(e,t){var n=this.pendingStopList.map(function(e){return e._id.toString()}).indexOf(e),i=this.pendingStopList.splice(n,1)[0];i.status=t,this.completedStopList.unshift(i);var r=this.copyPendingStopList.map(function(e){return e._id.toString()}).indexOf(e);this.copyPendingStopList.splice(r,1),this.copyCompletedStopList.unshift(i)},t.prototype.addStopToPending=function(e){var t=parseInt(e.sequence),n=this.pendingStopList.map(function(e){return e.sequence}),i=n.filter(function(e){return e=3&&(this.completedStopList=this.completedStopList.filter(function(n){return t.filterTasksHelper(n,e)}),this.pendingStopList=this.pendingStopList.filter(function(n){return t.filterTasksHelper(n,e)})),[2]):(this.resetFilter(),[2])})})},t.prototype.filterTasksHelper=function(e,t){var n=e.properties.addressId&&e.properties.addressId.name?e.properties.addressId.name.toLowerCase():"",i=e.properties.customerId&&e.properties.customerId.code?e.properties.customerId.code.toLowerCase():"";return n.indexOf(t)>-1||i.indexOf(t)>-1},t.prototype.applyCustomeFilter=function(e){var t=this;this.pendingStopList=this.pendingStopList.filter(function(n){return e.value.includes(t.resolveValue(n,JSON.parse(e.location)))}),this.completedStopList=this.completedStopList.filter(function(n){return e.value.includes(t.resolveValue(n,JSON.parse(e.location)))})},t.prototype.resetFilter=function(){this.barcode&&(this.barcode=null,this.locationBarcodeScanned=!1),this.completedStopList=JSON.parse(JSON.stringify(this.copyCompletedStopList)),this.pendingStopList=JSON.parse(JSON.stringify(this.copyPendingStopList))},t.prototype.viewSubTask=function(e){return I(this,void 0,void 0,function(){return D(this,function(t){switch(t.label){case 0:return this.locationBarcodeScanned?[4,this.openStopLocation(e)]:[3,2];case 1:return t.sent(),[3,7];case 2:return this.completedStopList.length!==this.stopList.length?[3,5]:[4,this.modalController.create({component:u.a,componentProps:{isRoute:!0,stopList:this.stopList}})];case 3:return[4,t.sent().present()];case 4:t.sent(),t.label=5;case 5:return[4,this.openStop(e)];case 6:t.sent(),t.label=7;case 7:return[2]}})})},t.prototype.showMap=function(e){return I(this,void 0,void 0,function(){return D(this,function(t){switch(t.label){case 0:return[4,this.modalController.create({component:b.a,componentProps:{address:e.properties.addressId.street+", "+e.properties.addressId.city+", "+e.properties.addressId.state+" "+e.properties.addressId.postalCode}})];case 1:return[4,t.sent().present()];case 2:return t.sent(),[2]}})})},t.prototype.toggleSearchbarIsOpen=function(){this.isSearchbarOpened=!this.isSearchbarOpened},t.prototype.reopenStop=function(e){return I(this,void 0,void 0,function(){var t=this;return D(this,function(n){switch(n.label){case 0:return[4,this.alertController.create({header:"Re-open Stop",message:"This stop has already been completed, do you want to re-open it?",buttons:[{text:"Cancel",role:"cancel",cssClass:"secondary"},{text:"Re-Open",handler:function(){return I(t,void 0,void 0,function(){return D(this,function(t){switch(t.label){case 0:return[4,this.tasksService.changeStopStatus(e._id,p.e.inProgress)];case 1:return t.sent(),this.segment="not-completed",e.status=p.e.inProgress,this.moveStopToPending(e._id),this.locationBarcodeScanned?this.openStopLocation(e):this.openStop(e),[2]}})})}}]})];case 1:return[4,n.sent().present()];case 2:return[2,n.sent()]}})})},t.prototype.initMenuItems=function(){this.menuItems=[{name:"Filters",icon:"funnel",eventName:"filters",parameters:{customFilters:this.viewSettings.mainContent.filters.customFilters.value,task:this.stopList,appliedFilters:this.customFilters,customFiltersLength:this.customFilters.length},dataHandler:this.setFilters.bind(this)},{name:"Nested Bags",icon:"./assets/icon/add-nbag.svg",eventName:"nested-bags"},{name:"Transfer Bags",icon:"./assets/icon/cbag.svg",eventName:"manage-equipment",parameters:new g.a({bagType:"tBag"})},{name:"Transfer Specimen(s) to Cbag",icon:"./assets/icon/transfer_32.svg",eventName:"transfer-tBag-to-cbag",parameters:new g.a},{name:"View Instructions",icon:"./assets/icon/view-instruction.svg",eventName:"view-instructions",parameters:{isRoute:!0,stopList:this.stopList}},{name:"Add a Stop",icon:"./assets/icon/add-stop.svg",eventName:"add-a-stop",parameters:new g.a,disableWhenOffline:!0},{name:"Close Route",icon:"./assets/icon/end-route.svg",eventName:"close-route",parameters:new g.a({setupType:"post"}),actionBeforeCreateModal:this.validateRoute.bind(this),alertMessage:"Please complete all stops, drop all deliverables and read notifications first before closing the route.",disableWhenOffline:!0,disabled:!window.navigator.onLine},{name:"Change Vehicle",icon:"./assets/icon/change-vehicle.svg",eventName:"change-vehicle",disableWhenOffline:!0,disabled:!window.navigator.onLine,parameters:new g.a},{name:"Transfer from RSR",icon:"./assets/icon/rsr-from-rsr.svg",eventName:"rsr-from-rsr",parameters:new g.a({title:"Transfer from RSR",mainPlaceholder:"Scan or enter Vehicle Barcode",dataSource:"vehicle",transferDirection:"from"})},{name:"RSR from 3rd Party",icon:"./assets/icon/rsr-from-3rdparty.svg",eventName:"rsr-from-3rdparty",parameters:new g.a({title:"RSR from 3rd Party",mainPlaceholder:"3rd Party",dataSource:"subcontractor",transferDirection:"from"})},{name:"RSR to 3rd Party",icon:"./assets/icon/rsr-to-3rdparty.svg",eventName:"rsr-to-3rdparty",parameters:new g.a({title:"RSR to 3rd Party",mainPlaceholder:"3rd Party",dataSource:"subcontractor",transferDirection:"to"})},{name:"Approve or Reject Missing Reports",icon:"./assets/icon/rsr-to-3rdparty.svg",eventName:"missing-report"}],this.authService.checkRole(k.b.RSR_Shipments)&&this.menuItems.push({name:"Shipments",icon:"./assets/icon/rsr-to-3rdparty.svg",eventName:"rsr-shipments",disabled:this.taskManagerService.task.status===p.e.notStarted,parameters:new g.a}),this.showDeliveries&&this.menuItems.push({name:"Setup Delivery",icon:"./assets/icon/delivery.svg",eventName:"setup-delivery",parameters:{stops:this.stopList}}),(this.showUncheckRoute||this.taskManagerService.task.status===p.e.notStarted)&&this.menuItems.push({name:"Uncheck Route",icon:"./assets/icon/uncheck-route.svg",eventName:"uncheck-route",disableWhenOffline:!0,action:this.uncheckRoute.bind(this)})},t.prototype.uncheckRoute=function(){return I(this,void 0,void 0,function(){var e=this;return D(this,function(t){switch(t.label){case 0:return[4,this.taskManagerService.showConfirmation("","Are you sure you want to uncheckout your route?","Yes","No")];case 1:return t.sent()?(this.loader=!0,this.tasksService.updateTaskByType("updateRouteStatus",this.task._id,{status:p.e.notAssigned,users:[],sessionId:this.authService.sessionId}).subscribe(function(t){e.loader=!1,e.notificationService.resetNotifications(),e.dismiss()},function(t){e.loader=!1,e.taskManagerService.showAlert(e.taskManagerService.defaultErrorHeader,t.message||e.taskManagerService.defaultErrorMessage)}),[2]):[2]}})})},t.prototype.validateRoute=function(){return I(this,void 0,void 0,function(){return D(this,function(e){switch(e.label){case 0:return[4,this.tasksService.validateRoute()];case 1:return e.sent()?(this.notificationService.resetNotifications(),[2,!0]):[2,!1]}})})},t.prototype.ngOnDestroy=function(){this.subscriptions.forEach(function(e){e.unsubscribe()})},t.prototype.checkLocationOnline=function(e){return I(this,void 0,void 0,function(){var t=this;return D(this,function(n){switch(n.label){case 0:return e?(this.loader=!0,[4,this.staticsService.getAddressFromLocationBarcode("locations",[{key:"address",value:"true"}],e).toPromise().then(function(n){return t.loader=!1,!(!n||!n.length||!n.filter(function(t){return t.locations.find(function(t){return t.barcode===e&&t.isActive})}).length)}).catch(function(e){return t.loader=!1,!1})]):[3,2];case 1:return[2,n.sent()];case 2:return[2]}})})},t.prototype.validateFirstHubStop=function(e,t){return I(this,void 0,void 0,function(){var n;return D(this,function(i){switch(i.label){case 0:return(n=this.stopList.find(function(e){return 1===e.sequence&&e.properties.stopKind===p.f.HUB}))?(this.isFirstHubStopComplete=n.status===p.e.completed,n._id===e||n.status===p.e.completed||this.task.status===p.e.inProgress?[2,!0]:t?[4,this.taskManagerService.showAlert("Route is not started","Complete 1st HUB Stop before completing other Stops.")]:[3,2]):[3,3];case 1:i.sent(),i.label=2;case 2:return[2,!1];case 3:return[4,this.taskManagerService.showAlert("Incorrect route format","1st stop is not a Hub stop. Please contact supervisor.")];case 4:return i.sent(),[2,!1]}})})},t.\u0275fac=function(e){return new(e||t)(x.ac(S.a),x.ac(r.a),x.ac(o.Gb),x.ac(s.a),x.ac(o.a),x.ac(T.g),x.ac(l.a),x.ac(o.Hb),x.ac(o.Rb),x.ac(v.a),x.ac(_.a),x.ac(g.b),x.ac(y.a),x.ac(k.a))},t.\u0275cmp=x.Ub({type:t,selectors:[["app-process-task"]],inputs:{task:"task",activeRoute:"activeRoute"},features:[x.Lb],decls:29,vars:20,consts:[["title","Route","hideCloseButton","true",3,"menuItems","onDismiss"],[3,"click",4,"ngIf"],[3,"click"],["name","chatbubbles"],["name","briefcase"],[4,"ngIf"],[3,"ngModel","ngModelChange"],["value","not-completed",1,"font-small"],["value","completed",1,"font-small"],["showCancelButton","true","autocomplete","","placeholder","Search for stops",3,"ngModel","ngModelChange","ionCancel","ionChange",4,"ngIf"],["uppercase","","placeholder","Scan Barcode",2,"width","100%","padding","5px","border","1px solid #eee","border-radius","5px",3,"ngModel","ngModelChange"],["color","primary",3,"disabled","click"],["size","large","name","undo",3,"click"],[3,"ngStyle"],["lines","none"],["class","item-sliding-margin",4,"ngFor","ngForOf"],[3,"stop","click",4,"ngFor","ngForOf"],["src","./assets/icon/full-tbag.svg"],["showCancelButton","true","autocomplete","","placeholder","Search for stops",3,"ngModel","ngModelChange","ionCancel","ionChange"],[1,"item-sliding-margin"],[1,"action","ion-no-padding"],[3,"stop","click"],["class","item-sliding-option","color","primary",3,"click",4,"ngIf"],["color","primary",1,"item-sliding-option",3,"click"],["slot","end","name","map"]],template:function(e,t){1&e&&(x.gc(0,"base-modal",0),x.nc("onDismiss",function(){return t.dismiss()}),x.gc(1,"base-modal-header"),x.Pc(2,M,2,0,"ion-button",1),x.gc(3,"ion-button",2),x.nc("click",function(){return t.openMessages()}),x.bc(4,"ion-icon",3),x.fc(),x.gc(5,"ion-button",2),x.nc("click",function(){return t.openCbag()}),x.bc(6,"ion-icon",4),x.fc(),x.fc(),x.gc(7,"base-modal-content"),x.Pc(8,A,1,0,"route-card",5),x.gc(9,"ion-segment",6),x.nc("ngModelChange",function(e){return t.segment=e}),x.gc(10,"ion-segment-button",7),x.gc(11,"ion-label"),x.Rc(12),x.fc(),x.fc(),x.gc(13,"ion-segment-button",8),x.gc(14,"ion-label"),x.Rc(15),x.fc(),x.fc(),x.fc(),x.Pc(16,P,1,1,"ion-searchbar",9),x.gc(17,"ion-content"),x.gc(18,"ion-item"),x.gc(19,"ion-input",10),x.nc("ngModelChange",function(e){return t.barcode=e}),x.fc(),x.gc(20,"ion-button",11),x.nc("click",function(){return t.triggerScan(t.barcode)}),x.Rc(21,"Find"),x.fc(),x.gc(22,"ion-icon",12),x.nc("click",function(){return t.resetFilter()}),x.fc(),x.fc(),x.gc(23,"div",13),x.gc(24,"ion-list",14),x.Pc(25,R,5,2,"ion-item-sliding",15),x.fc(),x.fc(),x.gc(26,"div",13),x.Pc(27,j,1,1,"action-card",16),x.fc(),x.fc(),x.fc(),x.fc(),x.Pc(28,N,1,0,"cmx-loader",5)),2&e&&(x.wc("menuItems",t.menuItems),x.Ob(2),x.wc("ngIf",t.showTbag),x.Ob(6),x.wc("ngIf",t.task),x.Ob(1),x.wc("ngModel",t.segment),x.Ob(3),x.Uc(" Stops Remaining (",t.pendingStopList.length,"/",t.stopList.length,") "),x.Ob(3),x.Uc(" Completed (",t.completedStopList.length,"/",t.stopList.length,") "),x.Ob(1),x.wc("ngIf",t.isSearchbarOpened),x.Ob(3),x.wc("ngModel",t.barcode),x.Ob(1),x.wc("disabled",!t.barcode),x.Ob(3),x.wc("ngStyle","not-completed"==t.segment?x.Ac(16,F):x.Ac(17,B)),x.Ob(2),x.wc("ngForOf",t.pendingStopList),x.Ob(1),x.wc("ngStyle","completed"==t.segment?x.Ac(18,F):x.Ac(19,B)),x.Ob(1),x.wc("ngForOf",t.completedStopList),x.Ob(1),x.wc("ngIf",t.loader))},styles:["#notifications-badge[_ngcontent-%COMP%]{background-color:#b9c930;color:#000;position:absolute;top:1px;right:7px;border-radius:100%;padding:1px}action-card[_ngcontent-%COMP%]{width:100%}.action[_ngcontent-%COMP%]{--inner-padding-end:0;--inner-padding-start:0}.item-sliding-margin[_ngcontent-%COMP%]{margin-top:-.5em;margin-bottom:-.5em}.item-sliding-option[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:10px;border-radius:5px}"]}),t}(g.a)},"7HRe":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("HDdC"),r=n("quSY"),o=n("kJWO"),a=n("jZKg"),s=n("Lhse"),c=n("c2HN"),u=n("I55L");function l(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[o.a]}(e))return function(e,t){return new i.a(function(n){var i=new r.a;return i.add(t.schedule(function(){var r=e[o.a]();i.add(r.subscribe({next:function(e){i.add(t.schedule(function(){return n.next(e)}))},error:function(e){i.add(t.schedule(function(){return n.error(e)}))},complete:function(){i.add(t.schedule(function(){return n.complete()}))}}))})),i})}(e,t);if(Object(c.a)(e))return function(e,t){return new i.a(function(n){var i=new r.a;return i.add(t.schedule(function(){return e.then(function(e){i.add(t.schedule(function(){n.next(e),i.add(t.schedule(function(){return n.complete()}))}))},function(e){i.add(t.schedule(function(){return n.error(e)}))})})),i})}(e,t);if(Object(u.a)(e))return Object(a.a)(e,t);if(function(e){return e&&"function"==typeof e[s.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new i.a(function(n){var i,o=new r.a;return o.add(function(){i&&"function"==typeof i.return&&i.return()}),o.add(t.schedule(function(){i=e[s.a](),o.add(t.schedule(function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),o})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}},"7Hc7":function(e,t,n){"use strict";n.d(t,"b",function(){return m}),n.d(t,"a",function(){return v});var i=n("1OyB"),r=n("vuIU"),o=n("ReuC"),a=n("foSv"),s=n("Ji7U"),c=n("LK+K"),u=1,l=function(){return Promise.resolve()}(),d={};function h(e){return e in d&&(delete d[e],!0)}var f=function(e){var t=u++;return d[t]=!0,l.then(function(){return h(t)&&e()}),t},p=function(e){h(e)},g=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r){var o;return Object(i.a)(this,n),(o=t.call(this,e,r)).scheduler=e,o.work=r,o}return Object(r.a)(n,[{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?Object(o.a)(Object(a.a)(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=f(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return Object(o.a)(Object(a.a)(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(p(t),e.scheduled=void 0)}}]),n}(n("3N8a").a),m=new(function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(r.a)(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1] 40 characters."),t.label=7;case 7:return[3,17];case 8:return[4,this.tasksService.checkDoortag(e)];case 9:return t.sent()?(this.addDoortag(e),[3,12]):[3,10];case 10:return[4,this.taskManagerService.showAlert("Doortag Scanned",e+" is already in use on this Route")];case 11:t.sent(),t.label=12;case 12:return[3,17];case 13:return this.taskManagerService.checkSpecimen(e)?[4,this.createSpecimenOrTube(e)]:[3,15];case 14:return t.sent(),[3,16];case 15:this.taskManagerService.showToast("Barcode length exceeds a barcode > 40 characters."),t.label=16;case 16:return[3,17];case 17:return this.barcode="",[2]}})})},t.prototype.createSpecimenOrTube=function(e){return _(this,void 0,void 0,function(){return y(this,function(t){switch(t.label){case 0:return this.showcbags&&(this.virtualCbags&&!this.virtualCbags.length?(console.log("createSpecimenOrTube",this.scannedSpecimenBeforeCbag),this.scannedSpecimenBeforeCbag=e,this.createBag()):this.openVirtualCbagsList(e)),this.showspecimen?[4,this.createOrEnterSpecimen(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return this.showtubes?[4,this.createTube(e)]:[3,4];case 3:t.sent(),t.label=4;case 4:return[2]}})})},t.prototype.createTube=function(e){return _(this,void 0,void 0,function(){var t;return y(this,function(n){switch(n.label){case 0:return this.barcode=null,this.errorMessage=null,this.currentSpecimen.tubes.some(function(t){return t.barcode===e})?(this.errorMessage="Tube "+e+" already exists. Please scan another tube",[2]):[4,this.tasksService.addTube(this.cBag.barcode,this.currentSpecimen.id,{barcode:e,itemsCount:1},this.locationInfo.stopId,this.currentSpecimen.barcode,this.locationInfo.barcode)];case 1:return(t=n.sent()).new?(this.currentSpecimen.itemsCount=(this.currentSpecimen.itemsCount||0)+1,this.currentSpecimen.tubes.push(t)):this.currentSpecimen.tubes.find(function(e){return e.barcode===t.barcode}).itemsCount=t.itemsCount,[2]}})})},t.prototype.createOrEnterSpecimen=function(e){return _(this,void 0,void 0,function(){var t;return y(this,function(n){switch(n.label){case 0:return this.barcode=null,this.errorMessage=null,!(t=this.isSpecimenExists(e))||this.locationInfo.isLevel2TrackingRequired&&"Noforallbags"!==this.promptType?t?[3,2]:[4,this.createSpecimen(e)]:(this.errorMessage="Specimen "+e+" already exists. Please scan another specimen",this.taskManagerService.alarmPlay(),[2]);case 1:n.sent(),n.label=2;case 2:return this.locationInfo.isLevel2TrackingRequired&&!this.specialHandling&&this.cBag.specimen.some(function(t){return t.barcode===e})?this.promptType?[3,5]:[4,this.createTubePrompt()]:[3,6];case 3:return[4,n.sent().onDidDismiss()];case 4:return n.sent(),this.enterTubesView(e),[3,6];case 5:this.enterTubesView(e),n.label=6;case 6:return[2]}})})},t.prototype.createSpecimen=function(e){return _(this,void 0,void 0,function(){return y(this,function(t){switch(t.label){case 0:return this.specialHandling?[4,this.displaySpecialHandling(e)]:[3,2];case 1:return t.sent(),[3,4];case 2:return[4,this.addSpecimen({barcode:e,fromLocationBarcode:this.locationInfo.barcode})];case 3:t.sent(),t.label=4;case 4:return[2]}})})},t.prototype.isSpecimenExists=function(e){return this.stopSpecimens.some(function(t){return t===e})},t.prototype.addSpecimen=function(e){return _(this,void 0,void 0,function(){var t;return y(this,function(n){switch(n.label){case 0:return this.isSpecimenExists(e.barcode)?[2]:[4,this.tasksService.addSpecimen(this.cBag.barcode,this.locationInfo.barcode.toString(),e,this.locationInfo.stopId)];case 1:return t=n.sent(),this.stopSpecimens.push(t.barcode),this.cBag.specimen.unshift(t),++this.cBag.itemsCount,++this.locationInfo.totalSpecimenCount,++this.cBag.stops[this.locationInfo.stopId][this.locationInfo.barcode].itemsCount,this.currentSpecimen=t,[4,this.setStopStatusInProgress()];case 2:return n.sent(),[2]}})})},t.prototype.createTubePrompt=function(){return _(this,void 0,void 0,function(){var e,t=this;return y(this,function(n){switch(n.label){case 0:return[4,this.alertController.create({backdropDismiss:!1,header:"Scan Individual Tubes",message:"Select an option below",inputs:[{name:"",type:"radio",value:"Promptforeachbag",label:"Prompt for each bag",checked:!0},{name:"",type:"radio",value:"Yesforallbags",label:"Yes for all bags"},{name:"",type:"radio",value:"Noforallbags",label:"No for all bags"}],buttons:[{text:"OK",handler:function(e){return _(t,void 0,void 0,function(){return y(this,function(t){return this.promptType=e,[2]})})}}]})];case 1:return[4,(e=n.sent()).present()];case 2:return n.sent(),[2,e]}})})},t.prototype.subscribeFunc=function(){return _(this,void 0,void 0,function(){var e=this;return y(this,function(t){return this.subscription1=this.taskManagerService.update.subscribe(function(t){e.initTask()}),[2]})})},t.prototype.enterTubesView=function(e){return _(this,void 0,void 0,function(){var t=this;return y(this,function(n){switch(n.label){case 0:return this.cBag.type.isLevel1PatientTubeCountRequired?(this.errorMessage="This bag requires special handling. Cannot start batch process. Please scan another specimen",[2]):"Promptforeachbag"!==this.promptType?[3,2]:[4,this.alertController.create({backdropDismiss:!1,header:"Scan individual tubes",message:"Do you want to scan individual tubes for this bag?",buttons:[{text:"No",role:"cancel",handler:function(){t.errorMessage=""}},{text:"Yes",handler:function(){return _(t,void 0,void 0,function(){return y(this,function(t){return this.loadTubesView(e),[2]})})}}]})];case 1:return n.sent().present(),[3,3];case 2:"Yesforallbags"===this.promptType&&this.loadTubesView(e),n.label=3;case 3:return[2]}})})},t.prototype.displaySpecialHandling=function(e){return _(this,void 0,void 0,function(){var t,n;return y(this,function(i){switch(i.label){case 0:return[4,this.modalController.create({backdropDismiss:!1,component:c.a,componentProps:new g.a({specimenBarcode:e}),cssClass:"my-custom-modal-css"})];case 1:return[4,(t=i.sent()).present()];case 2:return i.sent(),[4,t.onDidDismiss()];case 3:return(n=i.sent().data)?(n.barcode=e,n.fromLocationBarcode=this.locationInfo.barcode,[4,this.addSpecimen(n)]):[3,5];case 4:i.sent(),i.label=5;case 5:return[2]}})})},t.prototype.loadSpecimenView=function(e){return _(this,void 0,void 0,function(){var t;return y(this,function(n){switch(n.label){case 0:return this.slidingList?[4,this.slidingList.closeSlidingItems()]:[3,2];case 1:n.sent(),n.label=2;case 2:return this.cBag=e,t=this.cBag,[4,this.tasksService.getSpecimens(e.barcode,this.locationInfo.stopId.toString(),this.locationInfo.barcode.toString())];case 3:return t.specimen=n.sent(),this.cBag.specimen=h.orderBy(this.cBag.specimen,"localTimestamp","desc"),this.specialHandling=this.cBag.specialHandling,this.showcbags=!1,this.showtubes=!1,this.showspecimen=!0,this.barcode=null,this.errorMessage=null,[2]}})})},t.prototype.loadCbagsView=function(){return _(this,void 0,void 0,function(){var e=this;return y(this,function(t){switch(t.label){case 0:return this.slidingList?[4,this.slidingList.closeSlidingItems()]:[3,2];case 1:t.sent(),t.label=2;case 2:return this.cbags.every(function(t){return e.cBag.barcode!==t.barcode||(t=Object.assign(t,e.cBag),!1)}),this.showcbags=!0,this.showtubes=!1,this.showspecimen=!1,this.barcode=null,this.errorMessage=null,this.promptType=null,[2]}})})},t.prototype.loadTubesView=function(e){return _(this,void 0,void 0,function(){var t;return y(this,function(n){switch(n.label){case 0:return this.currentSpecimen=this.cBag.specimen.find(function(t){return t.barcode===e}),t=this.currentSpecimen,[4,this.tasksService.getTubes(this.cBag.barcode,this.currentSpecimen.id)];case 1:return t.tubes=n.sent(),this.barcode=null,this.showcbags=!1,this.showspecimen=!1,this.showtubes=!0,[2]}})})},t.prototype.commentSpecimen=function(e){return _(this,void 0,void 0,function(){return y(this,function(t){switch(t.label){case 0:return this.slidingList?[4,this.slidingList.closeSlidingItems()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[4,this.modalController.create({component:u.a,cssClass:"my-custom-modal-css",componentProps:{bagBarcode:this.cBag.barcode,location:this.locationInfo.barcode,specimen:e}})];case 3:return[4,t.sent().present()];case 4:return t.sent(),[2]}})})},t.prototype.deleteSpecimen=function(e){return _(this,void 0,void 0,function(){var t=this;return y(this,function(n){switch(n.label){case 0:return this.canDeleteSpecimen?(this.canDeleteSpecimen=!1,this.slidingList?[4,this.slidingList.closeSlidingItems()]:[3,2]):[3,4];case 1:n.sent(),n.label=2;case 2:return[4,this.alertController.create({header:"Delete Specimen",message:"Do you want to delete specimen",buttons:[{text:"No",role:"cancel",handler:function(){t.barcode="",t.errorMessage=""}},{text:"Yes",handler:function(){return _(t,void 0,void 0,function(){var t,n;return y(this,function(i){switch(i.label){case 0:return this.loader?[3,2]:(this.loader=!0,[4,this.tasksService.deleteSpecimen(this.cBag.barcode,this.locationInfo.barcode,e.id,e.stopId,e.barcode)]);case 1:i.sent(),t=this.cBag.specimen.map(function(e){return e.barcode}).indexOf(e.barcode),this.cBag.specimen.splice(t,1),--this.cBag.itemsCount,--this.locationInfo.totalSpecimenCount,--this.cBag.stops[this.locationInfo.stopId][this.locationInfo.barcode].itemsCount,n=this.stopSpecimens.indexOf(e.barcode),this.stopSpecimens.splice(n,1),this.loader=!1,i.label=2;case 2:return[2]}})})}}]})];case 3:n.sent().present(),this.canDeleteSpecimen=!0,n.label=4;case 4:return[2]}})})},t.prototype.deleteTube=function(e){return _(this,void 0,void 0,function(){var t=this;return y(this,function(n){switch(n.label){case 0:return this.canDeleteSpecimen?(this.canDeleteSpecimen=!1,this.slidingList?[4,this.slidingList.closeSlidingItems()]:[3,2]):[3,4];case 1:n.sent(),n.label=2;case 2:return[4,this.alertController.create({header:"Delete Specimen",message:"Do you want to delete specimen",buttons:[{text:"No",role:"cancel",handler:function(){t.barcode="",t.errorMessage=""}},{text:"Yes",handler:function(){return _(t,void 0,void 0,function(){var t;return y(this,function(n){switch(n.label){case 0:return this.loader?[3,2]:(this.loader=!0,[4,this.tasksService.deleteTube(this.cBag.barcode,this.currentSpecimen.id,e.barcode)]);case 1:n.sent(),--this.currentSpecimen.itemsCount,t=this.currentSpecimen.tubes.map(function(e){return e.barcode}).indexOf(e.barcode),this.currentSpecimen.tubes.splice(t,1),this.loader=!1,n.label=2;case 2:return[2]}})})}}]})];case 3:n.sent().present(),this.canDeleteSpecimen=!0,n.label=4;case 4:return[2]}})})},t.prototype.commentTube=function(e){return _(this,void 0,void 0,function(){return y(this,function(e){return[2]})})},t.prototype.changeUnscannedCount=function(e,t){return _(this,void 0,void 0,function(){var n,i;return y(this,function(r){switch(r.label){case 0:return[4,this.modalController.create({component:l.a,cssClass:"addcount-custom-modal-css",componentProps:{bagLevel:e,bag:this.cBag,manualCount:(e?this.cBag.stops[this.locationInfo.stopId][this.locationInfo.barcode].unscanned:this.currentSpecimen.unscanned)||0,locationInfo:this.locationInfo,specimen:this.currentSpecimen,type:t}})];case 1:return[4,(n=r.sent()).present()];case 2:return r.sent(),[4,n.onDidDismiss()];case 3:return(i=r.sent().data)&&(e?(this.locationInfo.totalSpecimenCount+=i.delta,this.cBag.stops[this.locationInfo.stopId][this.locationInfo.barcode].unscanned=i.count,this.cBag.unscanned+=i.delta):this.currentSpecimen.unscanned=i.count),[2]}})})},t.prototype.dropdownChange=function(e){return _(this,void 0,void 0,function(){var t;return y(this,function(n){switch(n.label){case 0:return console.log("selectVirtualCbagsList"),e.component.value?[4,this.tasksService.addBagToLocation(this.locationInfo.stopId,this.locationInfo.barcode,e.component.value.barcode)]:[3,4];case 1:return t=n.sent(),this.cbags.some(function(e){return e.barcode===t.barcode})||this.cbags.push(t),this.orderBaglist(),[4,this.loadSpecimenView(t)];case 2:return n.sent(),this.canHandleScan=!0,this.scannedSpecimenBeforeCbag?(console.log("dropdownChange",this.scannedSpecimenBeforeCbag),[4,this.createSpecimenOrTube(this.scannedSpecimenBeforeCbag)]):[3,4];case 3:n.sent(),this.scannedSpecimenBeforeCbag="",n.label=4;case 4:return this.canHandleScan=!0,[2]}})})},t.prototype.selectBag=function(e){e&&e.target&&e.target.outerHTML&&e.target.outerHTML.indexOf('role="img"')>-1&&this.openVirtualCbagsList("")},t.prototype.selectFromBagView=function(e){e&&e.target&&e.target.outerHTML&&e.target.outerHTML.indexOf('aria-label="return left"')>-1&&this.loadCbagsView()},t.prototype.openVirtualCbagsList=function(e){this.canHandleScan=!1,console.log("openVirtualCbagsList",e),this.scannedSpecimenBeforeCbag=e,this.virtualCbagsList.searchText="",this.virtualCbagsList.open()},t.prototype.closeVirtualCbagsList=function(){console.log("closeVirtualCbagsList",this.scannedSpecimenBeforeCbag),this.scannedSpecimenBeforeCbag="",this.virtualCbagsList.close(),this.canHandleScan=!0},t.prototype.searchBagTypes=function(e){var t=e.text.trim().toLowerCase();e.component.items=this.virtualCbags.filter(function(e){return e.barcode&&e.barcode.toLowerCase().includes(t)||e.type.name&&e.type.name.toLowerCase().includes(t)})},t.prototype.setStopStatusInProgress=function(){return _(this,void 0,void 0,function(){return y(this,function(e){switch(e.label){case 0:return this.locationInfo.stopStatus!==p.e.notStarted?[3,2]:[4,this.tasksService.changeStopStatus(this.locationInfo.stopId,p.e.inProgress)];case 1:e.sent(),this.locationInfo.stopStatus=p.e.inProgress,e.label=2;case 2:return[2]}})})},t.prototype.checkLocationOnStop=function(e){return this.locationList.some(function(t){return t.barcode===e})},t.prototype.swichLocation=function(e){return _(this,void 0,void 0,function(){var t;return y(this,function(n){switch(n.label){case 0:return t=this.locationList.find(function(t){return t.barcode===e}),[4,this.completePickup(t)];case 1:return n.sent(),[2]}})})},t.prototype.addDoortag=function(e){return _(this,void 0,void 0,function(){var t,n,i;return y(this,function(r){switch(r.label){case 0:return[4,this.tasksService.getStopDetail(this.locationInfo.stopId)];case 1:return t=r.sent(),[4,this.modalController.create({component:d.a,componentProps:new g.a({barcode:e,stop:t})})];case 2:return[4,(n=r.sent()).present()];case 3:return r.sent(),[4,n.onDidDismiss()];case 4:return(i=r.sent().data)&&(this.locationInfo.stopStatus=i.status,this.dismiss()),[2]}})})},t.prototype.ngOnDestroy=function(){this.subscription1&&this.subscription1.unsubscribe(),this.subscriptions.forEach(function(e){e.unsubscribe()})},t.\u0275fac=function(e){return new(e||t)(m.ac(a.a),m.ac(r.Gb),m.ac(r.a),m.ac(o.a))},t.\u0275cmp=m.Ub({type:t,selectors:[["app-task-location"]],viewQuery:function(e,t){var n;1&e&&(m.Xc(b,!0),m.Xc(w,!0)),2&e&&(m.Ec(n=m.oc())&&(t.virtualCbagsList=n.first),m.Ec(n=m.oc())&&(t.slidingList=n.first))},features:[m.Lb],decls:29,vars:20,consts:[["title","Specimen Pickup","hideCloseButton","true",3,"menuItems","onDismiss"],["type","specimenPickup",3,"location","click"],[3,"bag","locationInfo","header","click",4,"ngIf"],["color","secondary",4,"ngIf"],["lines","none","type","number","clear","","color","item",4,"ngIf"],["size","1",2,"display","flex","justify-content","center","align-items","center"],["name","barcode",2,"font-size","20px"],["size","11"],["uppercase","",2,"width","100%","padding","5px","border","1px solid #eee","border-radius","5px",3,"placeholder","ngModel","ngModelChange","ionChange"],["id","error",4,"ngIf"],[2,"padding","0px","margin","0px"],[4,"ngIf"],["lines","none",2,"display","none"],["src","./assets/icon/cbag.svg"],[2,"padding-left","16px"],["itemValueField","barcode","itemTextField","barcode","placeholder","Select cbag","itemIconSlot","none",3,"isMultiple","items","canSearch","canClear","shouldFocusSearchbar","searchFailText","onClose","onSearch"],["virtualCbagsList",""],["ionicSelectableHeaderTemplate",""],["ionicSelectableItemTemplate",""],["expand","block",3,"click"],[3,"bag","locationInfo","header","click"],["color","secondary"],["size","2"],["type","block","color","primary",3,"click"],["name","return-left"],["size","1"],["src","./assets/icon/specimen.png",2,"width","25px","height","25px"],["size","8"],[2,"padding","0"],["lines","none","type","number","clear","","color","item"],["src","./assets/icon/unscanned.svg"],[3,"disabled","click"],[3,"click"],["id","error"],["slidingList",""],[3,"click",4,"ngFor","ngForOf"],[3,"bag","locationInfo"],[4,"ngFor","ngForOf"],["side","end"],["color","danger","expandable","",3,"click"],["name","trash",2,"padding-right","5px","width","35px","height","35px"],[3,"specimen","click"],["side","start"],["color","primary","expandable","",3,"click"],["name","text",2,"padding-right","5px","width","35px","height","35px"],["src","./assets/icon/specimen.png",2,"width","35px","height","35px"],["size","10"],[2,"padding","0%"],["color","primary"],["slot","start"],["name","arrow-back"],[1,"w-100",3,"bag","locationInfo","ngClass"]],template:function(e,t){1&e&&(m.gc(0,"base-modal",0),m.nc("onDismiss",function(){return t.dismiss()}),m.gc(1,"base-modal-content"),m.gc(2,"location-card",1),m.nc("click",function(e){return t.selectBag(e)}),m.fc(),m.Pc(3,C,1,3,"bag-view",2),m.Pc(4,O,16,3,"ion-item",3),m.Pc(5,S,8,1,"ion-item",4),m.Pc(6,k,8,1,"ion-item",4),m.gc(7,"ion-row"),m.gc(8,"ion-col",5),m.bc(9,"ion-icon",6),m.fc(),m.gc(10,"ion-col",7),m.gc(11,"ion-input",8),m.nc("ngModelChange",function(e){return t.barcode=e})("ionChange",function(){return t.handleScan(t.barcode)}),m.fc(),m.fc(),m.Pc(12,x,2,1,"div",9),m.fc(),m.gc(13,"ion-content",10),m.Pc(14,E,3,1,"ion-list",11),m.Pc(15,D,3,1,"ion-list",11),m.Pc(16,A,3,1,"ion-list",11),m.fc(),m.gc(17,"ion-footer"),m.gc(18,"ion-item",12),m.bc(19,"ion-icon",13),m.gc(20,"ion-label",14),m.Rc(21,"Select CBags"),m.fc(),m.gc(22,"ionic-selectable",15,16),m.nc("onClose",function(e){return t.dropdownChange(e)})("onSearch",function(e){return t.searchBagTypes(e)}),m.Pc(24,P,6,0,"ng-template",17),m.Pc(25,R,1,5,"ng-template",18),m.fc(),m.fc(),m.gc(26,"ion-button",19),m.nc("click",function(){return t.completePickup()}),m.Rc(27),m.fc(),m.fc(),m.fc(),m.fc(),m.Pc(28,j,1,0,"cmx-loader",11)),2&e&&(m.wc("menuItems",t.menuItems),m.Ob(2),m.wc("location",t.locationInfo),m.Ob(1),m.wc("ngIf",t.showspecimen),m.Ob(1),m.wc("ngIf",t.showtubes),m.Ob(1),m.wc("ngIf",t.showspecimen&&!t.specialHandling),m.Ob(1),m.wc("ngIf",t.showtubes),m.Ob(5),m.wc("placeholder",t.scanBarcodeText)("ngModel",t.barcode),m.Ob(1),m.wc("ngIf",t.errorMessage),m.Ob(2),m.wc("ngIf",t.showcbags),m.Ob(1),m.wc("ngIf",t.showspecimen&&(null==t.cBag||null==t.cBag.specimen?null:t.cBag.specimen.length)),m.Ob(1),m.wc("ngIf",t.showtubes),m.Ob(6),m.wc("isMultiple",!1)("items",t.virtualCbags)("canSearch",!0)("canClear",!1)("shouldFocusSearchbar",!1)("searchFailText","No data found."),m.Ob(5),m.Tc(" ",t.locationInfo.totalSpecimenCount?"Complete Location":"No Specimen"," "),m.Ob(1),m.wc("ngIf",t.loader))},styles:[""]}),t}(g.a)},"7OmB":function(e,t,n){"use strict";var i=m(n("FKN7")),r=m(n("jeLr")),o=n("ti0F"),a=n("1LL4"),s=n("GCD8"),c=m(n("zl3R")),u=m(n("GYHJ")),l=m(n("8S5z")),d=m(n("imRD")),h=m(n("Lci2")),f=m(n("uHSv")),p=m(n("q43h")),g=n("Yt8F");function m(e){return e&&e.__esModule?e:{default:e}}var v={"=":"filter-operation-equals","<>":"filter-operation-not-equals","<":"filter-operation-less","<=":"filter-operation-less-equal",">":"filter-operation-greater",">=":"filter-operation-greater-equal",default:"filter-operation-default",notcontains:"filter-operation-not-contains",contains:"filter-operation-contains",startswith:"filter-operation-starts-with",endswith:"filter-operation-ends-with",between:"filter-operation-between"},_={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",between:"between"},y="filter-row",b="filter-range-overlay",w="filter-range-start",C="dx-editor-with-menu",O="dx-highlight-outline",S="dx-filter-modified",k="input:not([type='hidden'])",x=["date","datetime","number"];function T(e){return"onClick"===e.option("filterRow.applyFilter")}var E=function(){var e=function(e){var t=e&&e.children(),n=t&&t.data("dxComponents"),i=n&&n.length&&t.data(n[0]);if(i instanceof h.default)return i},t=function(e,t){var i="",r="",a=n(e,t),s=l.default.getFormatOptionsByColumn(t,"filterRow");return Array.isArray(a)?(i=l.default.formatValue(a[0],s),""!==(r=l.default.formatValue(a[1],s))&&(i+=" - "+r)):(0,o.isDefined)(a)&&(i=l.default.formatValue(a,s)),i};function n(e,t){if(t)return T(e)&&void 0!==t.bufferedFilterValue?t.bufferedFilterValue:t.filterValue}var u=function(e,t){if(t)return T(e)&&void 0!==t.bufferedSelectedFilterOperation?t.bufferedSelectedFilterOperation:t.selectedFilterOperation},m=function(e,t,i){var r=e._columnsController.columnOption(t),o=n(e,r),a=i.closest("."+e.addWidgetPrefix(b)).length,s=i.hasClass(e.addWidgetPrefix(w));return o&&Array.isArray(o)&&"between"===u(e,r)?s?o[0]:o[1]:!a&&function(e,t){return!(t&&x.indexOf(t.dataType)>=0&&Array.isArray(e))&&void 0!==e}(o,r)?o:null};return{_updateEditorValue:function(t,n){var i=e(n);i&&i.option("value",m(this,t.index,n))},_columnOptionChanged:function(e){var n,r,o,a,s=this,c=e.optionNames;if(l.default.checkChanges(c,["filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation"])&&void 0!==e.columnIndex){var d=s._columnsController.getVisibleIndex(e.columnIndex),h=s._columnsController.columnOption(e.columnIndex);if(r=(n=s._getCellElement(s.element().find("."+s.addWidgetPrefix(y)).index(),d)||(0,i.default)()).find(".dx-editor-container").first(),c.filterValue||c.bufferedFilterValue){s._updateEditorValue(h,r);var f=n.find("."+s.addWidgetPrefix(b)).data("dxOverlay");f&&(o=f.$content().find(".dx-editor-container"),s._updateEditorValue(h,o.first()),s._updateEditorValue(h,o.last())),f&&f.option("visible")||s._updateFilterRangeContent(n,t(s,h))}(c.selectedFilterOperation||c.bufferedSelectedFilterOperation)&&d>=0&&h&&(a=n.find(".dx-menu")).length&&(s._updateFilterOperationChooser(a,h,r),"between"===u(s,h)?s._renderFilterRangeContent(n,h):r.find(".dx-filter-range-content").length&&(s._renderEditor(r,s._getEditorOptions(r,h)),s._hideFilterRange()))}else s.callBase(e)},_renderCore:function(){this._filterRangeOverlayInstance=null,this.callBase.apply(this,arguments)},_resizeCore:function(){this.callBase.apply(this,arguments),this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.repaint()},isFilterRowVisible:function(){return this._isElementVisible(this.option("filterRow"))},isVisible:function(){return this.callBase()||this.isFilterRowVisible()},init:function(){this.callBase(),this._applyFilterViewController=this.getController("applyFilter")},_initFilterRangeOverlay:function(e,n){var o=this,a={},c=e.find(".dx-editor-container"),l=(0,i.default)("
").addClass(o.addWidgetPrefix(b)).appendTo(e);return o._createComponent(l,f.default,{height:"auto",shading:!1,showTitle:!1,focusStateEnabled:!1,closeOnTargetScroll:!1,closeOnOutsideClick:!0,animation:!1,position:{my:"top",at:"top",of:c.length&&c||e,offset:"0 -1"},contentTemplate:function(t){var c,u=(0,i.default)("
").addClass("dx-editor-container "+o.addWidgetPrefix(w)).appendTo(t);return n=o._columnsController.columnOption(n.index),(c=o._getEditorOptions(u,n)).sharedData=a,o._renderEditor(u,c),r.default.on(u.find(k),"keydown",function(t){var n=e.find("[tabindex]").not(t.target).first();"tab"===(0,s.normalizeKeyName)(t)&&t.shiftKey&&(t.preventDefault(),o._hideFilterRange(),n.length||(n=e.prev().find("[tabindex]").last()),r.default.trigger(n,"focus"))}),u=(0,i.default)("
").addClass("dx-editor-container "+o.addWidgetPrefix("filter-range-end")).appendTo(t),(c=o._getEditorOptions(u,n)).sharedData=a,o._renderEditor(u,c),r.default.on(u.find(k),"keydown",function(t){"tab"!==(0,s.normalizeKeyName)(t)||t.shiftKey||(t.preventDefault(),o._hideFilterRange(),r.default.trigger(e.next().find("[tabindex]").first(),"focus"))}),(0,i.default)(t).addClass(o.getWidgetContainerClass())},onShown:function(e){var t=e.component.$content().find(".dx-editor-container").first();r.default.trigger(t.find(k),"focus")},onHidden:function(){n=o._columnsController.columnOption(n.index),e.find(".dx-menu").parent().addClass(C),"between"===u(o,n)&&(o._updateFilterRangeContent(e,t(o,n)),o.component.updateDimensions())}})},_updateFilterRangeOverlay:function(e){var t=this._filterRangeOverlayInstance;t&&t.option(e)},_showFilterRange:function(e,t){var n=this,i=e.children("."+n.addWidgetPrefix(b)),r=i.length&&i.data("dxOverlay");!r&&t&&(r=n._initFilterRangeOverlay(e,t)),r.option("visible")||(n._filterRangeOverlayInstance&&n._filterRangeOverlayInstance.hide(),n._filterRangeOverlayInstance=r,n._updateFilterRangeOverlay({width:e.outerWidth(!0)+1}),n._filterRangeOverlayInstance&&n._filterRangeOverlayInstance.show())},_hideFilterRange:function(){var e=this._filterRangeOverlayInstance;e&&e.hide()},getFilterRangeOverlayInstance:function(){return this._filterRangeOverlayInstance},_createRow:function(e){var t=this,n=this.callBase(e);return"filter"===e.rowType&&(n.addClass(this.addWidgetPrefix(y)),this.option("useLegacyKeyboardNavigation")||r.default.on(n,"keydown",function(e){return(0,g.selectView)("filterRow",t,e)})),n},_getRows:function(){var e=this.callBase();return this.isFilterRowVisible()&&e.push({rowType:"filter"}),e},_renderFilterCell:function(e,t){var n=this,r=t.column,o=(0,i.default)(e);n.component.option("showColumnHeaders")&&n.setAria("describedby",r.headerId,o),n.setAria("label",d.default.format("dxDataGrid-ariaFilterCell"),o),o.addClass("dx-editor-cell");var a=(0,i.default)("
").appendTo(o),s=(0,i.default)("
").addClass("dx-editor-container").appendTo(a);if("between"===u(n,r))n._renderFilterRangeContent(o,r);else{var c=n._getEditorOptions(s,r);n._renderEditor(s,c)}var l=r.alignment;l&&"center"!==l&&o.find(k).first().css("textAlign",r.alignment),r.filterOperations&&r.filterOperations.length&&n._renderFilterOperationChooser(a,r,s)},_renderCellContent:function(e,t){var n=this,i=t.column;if("filter"===t.rowType)if(i.command)e.html(" ");else if(i.allowFiltering)return void n.renderTemplate(e,n._renderFilterCell.bind(n),t).done(function(){n._updateCell(e,t)});n.callBase(e,t)},_getEditorOptions:function(e,t){var i=this,r={editorOptions:{inputAttr:i._getFilterInputAccessibilityAttributes(t)}},s=(0,a.extend)(r,t,{value:m(i,t.index,e),parentType:"filterRow",showAllText:i.option("filterRow.showAllText"),updateValueTimeout:"onClick"===i.option("filterRow.applyFilter")?0:700,width:null,setValue:function(r,a){!function(e,t){var i=""===t.value?null:t.value,r=t.container,a=e._columnsController.columnOption(t.column.index),s=m(e,a.index,r);((0,o.isDefined)(s)||(0,o.isDefined)(i))&&(e._applyFilterViewController.setHighLight(r,s!==i),e._columnsController.columnOption(a.index,T(e)?"bufferedFilterValue":"filterValue",function(e,t,i,r){if("between"===u(e,i)){var o=n(e,i);return r.hasClass(e.addWidgetPrefix(w))?[t,Array.isArray(o)?o[1]:void 0]:[Array.isArray(o)?o[0]:o,t]}return t}(e,i,a,r),t.notFireEvent))}(i,{column:t,value:r,container:e,notFireEvent:a})}});return"between"===u(i,t)&&(s.placeholder=e.hasClass(i.addWidgetPrefix(w))?i.option("filterRow.betweenStartText"):i.option("filterRow.betweenEndText")),s},_getFilterInputAccessibilityAttributes:function(e){var t=d.default.format("dxDataGrid-ariaFilterCell");return this.component.option("showColumnHeaders")?{"aria-label":t,"aria-describedby":e.headerId}:{"aria-label":t}},_renderEditor:function(e,t){return e.empty(),this.getController("editorFactory").createEditor((0,i.default)("
").appendTo(e),t)},_renderFilterRangeContent:function(e,n){var o=this,a=e.find(".dx-editor-container").first();a.empty();var s=(0,i.default)("
").addClass("dx-filter-range-content").attr("tabindex",this.option("tabIndex"));r.default.on(s,"focusin",function(){o._showFilterRange(e,n)}),s.appendTo(a),o._updateFilterRangeContent(e,t(o,n))},_updateFilterRangeContent:function(e,t){var n=e.find(".dx-filter-range-content");n.length&&(""===t?n.html(" "):n.text(t))},_updateFilterOperationChooser:function(t,n,i){var o,a=this,s=function(){var e=p.default.getInstance(t);e&&e.option("focusedElement",null),o&&a._focusEditor(i)};a._createComponent(t,p.default,{integrationOptions:{},activeStateEnabled:!1,selectionMode:"single",cssClass:a.getWidgetContainerClass()+" dx-cell-focus-disabled dx-filter-menu",showFirstSubmenuMode:"onHover",hideSubmenuOnMouseLeave:!0,items:[{disabled:!n.filterOperations||!n.filterOperations.length,icon:v[u(a,n)||"default"],selectable:!1,items:a._getFilterOperationMenuItems(n)}],onItemClick:function(t){var r=t.itemData.name,o=u(a,n),s=!1,c=T(a),l={};if(!(t.itemData.items||r&&r===o)){if(r?(l[c?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=r,"between"!==r&&"between"!==o||(s="between"===r,l[c?"bufferedFilterValue":"filterValue"]=null)):(l[c?"bufferedFilterValue":"filterValue"]=null,l[c?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=n.defaultSelectedFilterOperation||null),a._columnsController.columnOption(n.index,l),a._applyFilterViewController.setHighLight(i,!0),!r){var d=e(i);d&&"dxDateBox"===d.NAME&&!d.option("isValid")&&(d.reset(),d.option("isValid",!0))}s?a._showFilterRange(i.closest(".dx-editor-cell"),n):a._focusEditor(i)}},onSubmenuShown:function(){o=a._isEditorFocused(i),a.getController("editorFactory").loseFocus()},onSubmenuHiding:function(){r.default.trigger(t,"blur"),s()},onContentReady:function(e){r.default.on(t,"blur",function(){var t=e.component;t._hideSubmenu(t._visibleSubmenu),s()})},rtlEnabled:a.option("rtlEnabled")})},_isEditorFocused:function(e){return e.hasClass("dx-focused")||e.parents(".dx-focused").length},_focusEditor:function(e){this.getController("editorFactory").focus(e),r.default.trigger(e.find(k),"focus")},_renderFilterOperationChooser:function(e,t,n){var r;this.option("filterRow.showOperationChooser")&&(e.addClass(C),r=(0,i.default)("
").prependTo(e),this._updateFilterOperationChooser(r,t,n))},_getFilterOperationMenuItems:function(e){var t=this,n=[{}],i=t.option("filterRow"),r=i&&i.operationDescriptions||{};if(e.filterOperations&&e.filterOperations.length){var a=e.filterOperations.filter(function(e){return(0,o.isDefined)(_[e])});(n=c.default.map(a,function(n){var i=_[n];return{name:n,selected:(u(t,e)||e.defaultFilterOperation)===n,text:r[i],icon:v[n]}})).push({name:null,text:i&&i.resetOperationText,icon:v.default})}return n},optionChanged:function(e){switch(e.name){case"filterRow":case"showColumnLines":this._invalidate(!0,!0),e.handled=!0;break;default:this.callBase(e)}}}}(),I={skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var e=[this.callBase()],t=this._columnsController.getVisibleColumns(null,!0);return c.default.each(t,function(){if(this.allowFiltering&&this.calculateFilterExpression&&(0,o.isDefined)(this.filterValue)){var t=this.createFilterExpression(this.filterValue,this.selectedFilterOperation||this.defaultFilterOperation,"filterRow");e.push(t)}}),l.default.combineFilters(e)}};t.ApplyFilterViewController=u.default.ViewController.inherit({_getHeaderPanel:function(){return this._headerPanel||(this._headerPanel=this.getView("headerPanel")),this._headerPanel},setHighLight:function(e,t){T(this)&&(e&&e.toggleClass(O,t)&&e.closest(".dx-editor-cell").toggleClass(S,t),this._getHeaderPanel().enableApplyButton(t))},applyFilter:function(){var e=this.getController("columns"),t=e.getColumns();e.beginUpdate();for(var n=0;n11?n?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":n?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(n("wd/R"))},"7j00":function(e,t,n){"use strict";var i=n("jeLr"),r=n("v4HY"),o=n("tUd6"),a=n("5qrJ"),s=n("GBv4"),c=n("XCcL"),u=n("GCD8"),l="dxdblclick",d=u.addNamespace(c.name,"dxDblClick"),h=a.inherit({ctor:function(){this._handlerCount=0,this._forgetLastClick()},_forgetLastClick:function(){this._firstClickTarget=null,this._lastClickTimeStamp=-300},add:function(){this._handlerCount<=0&&i.on(o.getDocument(),d,this._clickHandler.bind(this)),this._handlerCount++},_clickHandler:function(e){var t=e.timeStamp||Date.now();t-this._lastClickTimeStamp<300?(u.fireEvent({type:l,target:r.closestCommonParent(this._firstClickTarget,e.target),originalEvent:e}),this._forgetLastClick()):(this._firstClickTarget=e.target,this._lastClickTimeStamp=t)},remove:function(){this._handlerCount--,this._handlerCount<=0&&(this._forgetLastClick(),i.off(o.getDocument(),d))}});s(l,new h),t.name=l},"7mnO":function(e,t,n){"use strict";var i=n("FKN7"),r=n("1LL4").extend;function o(e,t){var n=i("
").addClass("dx-filterbuilder-range-start"),o=i("
").addClass("dx-filterbuilder-range-end"),a=e.value||[],s=function(e){return e&&e.length>0?e[0]:null},c=function(e){return e&&2===e.length?e[1]:null};t.append(n),t.append(i("").addClass("dx-filterbuilder-range-separator").text("\u2013")),t.append(o),t.addClass("dx-filterbuilder-range"),this._editorFactory.createEditor.call(this,n,r({},e.field,e,{value:s(a),parentType:"filterBuilder",setValue:function(t){a=[t,c(a)],e.setValue(a)}})),this._editorFactory.createEditor.call(this,o,r({},e.field,e,{value:c(a),parentType:"filterBuilder",setValue:function(t){a=[s(a),t],e.setValue(a)}}))}t.getConfig=function(e,t){return{name:"between",caption:e,icon:"range",valueSeparator:"\u2013",dataTypes:["number","date","datetime"],editorTemplate:o.bind(t),notForLookup:!0}}},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",function(){return m});var i=n("1OyB"),r=n("vuIU"),o=n("JX7q"),a=n("ReuC"),s=n("foSv"),c=n("Ji7U"),u=n("LK+K"),l=n("n6bG"),d=n("gRHU"),h=n("quSY"),f=n("2QA8"),p=n("2fFW"),g=n("NJ4a"),m=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,r,a){var s;switch(Object(i.a)(this,n),(s=t.call(this)).syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=d.a;break;case 1:if(!e){s.destination=d.a;break}if("object"==typeof e){e instanceof n?(s.syncErrorThrowable=e.syncErrorThrowable,s.destination=e,e.add(Object(o.a)(s))):(s.syncErrorThrowable=!0,s.destination=new v(Object(o.a)(s),e));break}default:s.syncErrorThrowable=!0,s.destination=new v(Object(o.a)(s),e,r,a)}return s}return Object(r.a)(n,[{key:f.a,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,Object(a.a)(Object(s.a)(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,i){var r=new n(e,t,i);return r.syncErrorThrowable=!1,r}}]),n}(h.a),v=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,r,a,s){var c,u;Object(i.a)(this,n),(c=t.call(this))._parentSubscriber=e;var h=Object(o.a)(c);return Object(l.a)(r)?u=r:r&&(u=r.next,a=r.error,s=r.complete,r!==d.a&&(h=Object.create(r),Object(l.a)(h.unsubscribe)&&c.add(h.unsubscribe.bind(h)),h.unsubscribe=c.unsubscribe.bind(Object(o.a)(c)))),c._context=h,c._next=u,c._error=a,c._complete=s,c}return Object(r.a)(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;p.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=p.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(g.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(g.a)(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};p.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),p.a.useDeprecatedSynchronousErrorHandling)throw n;Object(g.a)(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!p.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return p.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(Object(g.a)(i),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(m)},"7w2k":function(e,t,n){"use strict";n.d(t,"a",function(){return O});var i,r=n("c7TG"),o=n("FbS+"),a=n("ptfe"),s=n("aiMf"),c=n("mjQz"),u=n("Xzt5"),l=n("fXoL"),d=(i=function(e,t){return(i=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(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},f=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=10?e:e+12:"\u0a38\u0a3c\u0a3e\u0a2e"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0a30\u0a3e\u0a24":e<10?"\u0a38\u0a35\u0a47\u0a30":e<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":e<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(n("wd/R"))},"8/JR":function(e,t,n){"use strict";var i=n("8T9/"),r=n("Ibf7");e.exports=function(e,t){var n=t||{},o={};return void 0===e&&(e={}),e.on=function(t,n){return o[t]?o[t].push(n):o[t]=[n],e},e.once=function(t,n){return n._once=!0,e.on(t,n),e},e.off=function(t,n){var i=arguments.length;if(1===i)delete o[t];else if(0===i)o={};else{var r=o[t];if(!r)return e;r.splice(r.indexOf(n),1)}return e},e.emit=function(){var t=i(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var a=(o[t]||[]).slice(0);return function(){var o=i(arguments),s=this||e;if("error"===t&&!1!==n.throws&&!a.length)throw 1===o.length?o[0]:o;return a.forEach(function(i){n.async?r(i,o,s):i.apply(s,o),i._once&&e.off(t,i)}),e}},e}},"85Zg":function(e,t,n){"use strict";var i=n("1LL4").extend;t.registry={},t.register=function(e,n,r){var o=t.registry,a={};a[e]=o[e]?o[e]:{},a[e][n]=r,o=i(o,a)}},"8Aqn":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("c7TG"),r=n("ptfe"),o=n("mjQz"),a=n("fXoL");function s(e,t){if(1&e){var n=a.hc();a.gc(0,"ion-item"),a.gc(1,"ion-label"),a.Rc(2),a.fc(),a.gc(3,"ion-radio",6),a.nc("checkedChange",function(e){return a.Ic(n),t.$implicit.checked=e})("ionSelect",function(){return a.Ic(n),a.qc().radioChecked()}),a.fc(),a.fc()}if(2&e){var i=t.$implicit;a.Ob(2),a.Sc(i.label),a.Ob(1),a.wc("value",i.value)("checked",i.checked)}}function c(e,t){if(1&e){var n=a.hc();a.gc(0,"ion-item"),a.gc(1,"ion-textarea",7),a.nc("ngModelChange",function(e){return a.Ic(n),a.qc().comment=e}),a.fc(),a.fc()}if(2&e){var i=a.qc();a.Ob(1),a.wc("ngModel",i.comment)}}var u=function(){function e(e,t){this.modalController=e,this.tasksService=t,this.variants=[{label:"Not Accessible",value:"Not Accessible",checked:!0},{label:"Location Does not Exist",value:"Location Does not Exist",checked:!1},{label:"Other",value:"Other",checked:!1}],this.selectedVariant=this.variants[0].value,this.comment=""}return e.prototype.ngOnInit=function(){console.log(this.location)},e.prototype.dismiss=function(){this.modalController.dismiss()},e.prototype.save=function(){return e=this,void 0,n=function(){return function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["items"])),{},{items:g(i,t-1,n)})})}(e,t,n):(0,a.map)(e,n):e},m=(t.mapDataRespectingGrouping=function(e,t,n){var i=n?(0,l.normalizeSortingInfo)(n).length:0;return g(e,i,t)},t.normalizeLoadResult=function(e,t){var n;return(null===(n=e)||void 0===n?void 0:n.data)&&(t=e,e=e.data),Array.isArray(e)||(e=[e]),{data:e,extra:t}},function(e,t){return new s.default({load:function(){return(0,i.sendRequest)({url:e,dataType:"json"})},loadMode:null==t?void 0:t.fromUrlLoadMode})});t.normalizeDataSourceOptions=function(e,t){var n,i,l;return"string"==typeof e&&(e={paginate:!1,store:m(e,t)}),void 0===e&&(e=[]),void 0===(e=Array.isArray(e)||e instanceof r.default?{store:e}:(0,c.extend)({},e)).store&&(e.store=[]),n=e.store,"load"in e?n=function(e){var t={};return(0,a.each)(["useDefaultSearch","key","load","loadMode","cacheRawData","byKey","lookup","totalCount","insert","update","remove"],function(){t[this]=e[this],delete e[this]}),new s.default(t)}(e):Array.isArray(n)?n=new o.default(n):(0,u.isPlainObject)(n)&&(l=(i=(0,c.extend)({},n)).type,delete i.type,n=r.default.create(l,i)),e.store=n,e}},"8K0q":function(e,t,n){"use strict";var i=n("KAnu"),r=n("ti0F"),o=r.isDefined,a=i.getKeyHash,s=n("Q7sy"),c=n("tJvG"),u=n("BAgR").SelectionFilterCreator,l=c.when,d=c.Deferred,h=n("D8Ap"),f=n("4Oz5");e.exports=f.inherit({ctor:function(e){this.callBase(e),this._initSelectedItemKeyHash()},_initSelectedItemKeyHash:function(){this._setOption("keyHashIndices",this.options.equalByReference?null:{})},getSelectedItemKeys:function(){return this.options.selectedItemKeys.slice(0)},getSelectedItems:function(){return this.options.selectedItems.slice(0)},_preserveSelectionUpdate:function(e,t){var n,i,r,o=this.options.keyOf;if(o){var a=t&&e.length>1&&!this.options.equalByReference;for(a&&(n={}),r=0;r=0&&(n[i]=!0)):this.addSelectedItem(c,s)}a&&this._batchRemoveSelectedItems(n)}},_batchRemoveSelectedItems:function(e){var t=this.options.selectedItemKeys.slice(0),n=this.options.selectedItems.slice(0);this.options.selectedItemKeys.length=0,this.options.selectedItems.length=0;for(var i=0;i1&&t&&(n=n.filter(function(e){return!t[e]})),n&&n[0]>=0?n[0]:-1},_indexOfSelectedItemKey:function(e,t){return this.options.equalByReference?this.options.selectedItemKeys.indexOf(e):r.isObject(e)?this._getSelectedIndexByKey(e,t):this._getSelectedIndexByHash(e,t)},_shiftSelectedKeyIndices:function(e){for(var t=e;te&&i[r]--}},removeSelectedItem:function(e,t){var n=this._getKeyHash(e),i=!!t,o=this._indexOfSelectedItemKey(n,t);if(o<0)return o;if(this.options.removedItemKeys.push(e),this.options.removedItems.push(this.options.selectedItems[o]),i)return o;if(this.options.selectedItemKeys.splice(o,1),this.options.selectedItems.splice(o,1),r.isObject(n)||!this.options.keyHashIndices)return o;var a=this.options.keyHashIndices[n];return a?(a.shift(),a.length||delete this.options.keyHashIndices[n],this._shiftSelectedKeyIndices(o),o):o},_updateAddedItemKeys:function(e,t){for(var n=0;n=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},"8Qeq":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e){for(;e;){var t=e.destination;if(e.closed||e.isStopped)return!1;e=t&&t instanceof i.a?t:null}return!0}},"8Qh0":function(e,t,n){"use strict";var i=n("FKN7"),r=n("5qrJ"),o=n("zl3R").each,a=n("Cc4C"),s=r.inherit({ctor:function(e,t,n){this._$element=e,this._options=t,this._rawData=n,a.attachInstanceToElement(e,this,this._dispose),this._render()},_render:function(){var e=i("
").addClass("dx-item-content-placeholder");this._$element.append(e),this._watchers=[],this._renderWatchers()},_renderWatchers:function(){this._startWatcher("disabled",this._renderDisabled.bind(this)),this._startWatcher("visible",this._renderVisible.bind(this))},_startWatcher:function(e,t){var n,i,r,o,a,s=this._rawData,c=this._options.fieldGetter(e),u=(n=this._options.watchMethod(),i=function(){return c(s)},r=(function(e,n){this._dirty=!0,t(e,n)}).bind(this),{dispose:n(i,a=function(e){o!==e&&(r(e,o),o=e)}),force:function(){a(i())}});this._watchers.push(u)},setDataField:function(){if(this._dirty=!1,o(this._watchers,function(e,t){t.force()}),this._dirty)return!0},_renderDisabled:function(e,t){this._$element.toggleClass("dx-state-disabled",!!e),this._updateOwnerFocus(e)},_updateOwnerFocus:function(e){var t=this._options.owner;t&&e&&t._resetItemFocus(this._$element)},_renderVisible:function(e,t){this._$element.toggleClass("dx-state-invisible",void 0!==e&&!e)},_dispose:function(){o(this._watchers,function(e,t){t.dispose()})}});s.getInstance=function(e){return a.getInstanceByElement(e,this)},e.exports=s},"8S5z":function(e,t,n){"use strict";var i=y(n("FKN7")),r=n("ti0F"),o=n("tJvG"),a=n("AJM7"),s=n("TssP"),c=n("zl3R"),u=n("1LL4"),l=n("XgSC"),d=n("yxXJ"),h=n("KAnu"),f=y(n("PbkZ")),p=n("IRs2"),g=y(n("D859")),m=n("3RoI"),v=n("cGv3"),_=y(n("jeLr"));function y(e){return e&&e.__esModule?e:{default:e}}var b={year:function(e){return e&&e.getFullYear()},month:function(e){return e&&e.getMonth()+1},day:function(e){return e&&e.getDate()},quarter:function(e){return e&&Math.floor(e.getMonth()/3)+1},hour:function(e){return e&&e.getHours()},minute:function(e){return e&&e.getMinutes()},second:function(e){return e&&e.getSeconds()}};e.exports=function(){var t=function(){var e=arguments[1],t=this.calculateCellValue(e);if(!(0,r.isDefined)(t))return null;if(n(this.dataType)){var i=arguments[0];return b[i](t)}if("number"===this.dataType){var o=arguments[0];return Math.floor(Number(t)/o)*o}};function n(e){return"date"===e||"datetime"===e}var y=function(e){e.get(0).textContent="\xa0"},w=function(e){var t=e.data&&e.data(),n=t&&t.dxComponents,i=n&&n[0];return i&&t[i]};return{renderNoDataText:function(e){if(e=e||this.element()){var t=this.addWidgetPrefix("nodata"),n=e.find("."+t).last(),r=this._dataController.isEmpty(),o=this._dataController.isLoading();n.length||(n=(0,i.default)("").addClass(t).appendTo(e)),r&&!o?n.removeClass("dx-hidden").text(this._getNoDataText()):n.addClass("dx-hidden")}},renderLoadPanel:function(e,t,n){var r,o=this;o._loadPanel&&o._loadPanel.$element().remove(),(r=o.option("loadPanel"))&&("auto"===r.enabled?!n:r.enabled)?(r=(0,u.extend)({shading:!1,message:r.text,position:function(){var t=(0,i.default)((0,v.getWindow)());return e.height()>t.height()?{of:t,boundary:e,collision:"fit"}:{of:e}},container:t},r),o._loadPanel=o._createComponent((0,i.default)("
").appendTo(t),f.default,r)):o._loadPanel=null},getIndexByKey:function(e,t,n){var i=-1;if(void 0!==e&&Array.isArray(t)){n=arguments.length<=2?"key":n;for(var o=0;o=0&&(0,r.isFunction)(n)&&n.columnIndex>=0?t.columnIndex===n.columnIndex&&(0,d.toComparable)(t.filterValue)===(0,d.toComparable)(n.filterValue):(0,d.toComparable)(t)==(0,d.toComparable)(n)},proxyMethod:function(e,t,n){e[t]||(e[t]=function(){var e=this._dataSource;return e?e[t].apply(e,arguments):n})},formatValue:function(e,t){var n=g.default.format(e,t.format)||e&&e.toString()||"",i={value:e,valueText:t.getDisplayFormat?t.getDisplayFormat(n):n,target:t.target||"row",groupInterval:t.groupInterval};return t.customizeText?t.customizeText.call(t,i):i.valueText},getFormatOptionsByColumn:function(e,t){return{format:e.format,getDisplayFormat:e.getDisplayFormat,customizeText:e.customizeText,target:t,trueText:e.trueText,falseText:e.falseText}},getDisplayValue:function(e,t,n,i){return e.displayValueMap&&void 0!==e.displayValueMap[t]?e.displayValueMap[t]:e.calculateDisplayValue&&n&&"group"!==i?e.calculateDisplayValue(n):!e.lookup||"group"===i&&(e.calculateGroupValue||e.calculateDisplayValue)?t:e.lookup.calculateCellValue(t)},getGroupRowSummaryText:function(t,n){for(var i="(",r=0;r0?", ":"")+e.exports.getSummaryText(t[r],n);return i+")"},getSummaryText:function(e,t){var n=e.displayFormat||e.columnCaption&&t[e.summaryType+"OtherColumn"]||t[e.summaryType];return this.formatValue(e.value,{format:e.valueFormat,getDisplayFormat:function(t){return n?(0,s.format)(n,t,e.columnCaption):t},customizeText:e.customizeText})},normalizeSortingInfo:function(e){for(var t=(0,p.normalizeSortingInfo)(e=e||[]),n=0;n0){var p=e.eq(h-1).offset();p.top").addClass(t.value?"dx-datagrid-group-opened":"dx-datagrid-group-closed").appendTo(n),o.setAria("label",o.localize(t.value?"dxDataGrid-ariaCollapse":"dxDataGrid-ariaExpand"),n)}}}},setEmptyText:y,isDateType:n,getSelectionRange:function(e){try{if(e)return{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}catch(t){}return{}},setSelectionRange:function(e,t){try{e&&e.setSelectionRange&&e.setSelectionRange(t.selectionStart,t.selectionEnd)}catch(n){}},focusAndSelectElement:function(e,t){_.default.trigger(t,"focus");var n=e.option("editing.selectTextOnEditStart"),i=e.getController("keyboardNavigation"),r=i&&i._isFastEditingStarted(),a=t.get(0);if(n&&!r&&t.is(".dx-texteditor-input")&&!t.is("[readonly]")){var s=w(t.closest(".dx-texteditor"));(0,o.when)(s&&s._loadItemDeferred).done(function(){a.select()})}},getWidgetInstance:w,getLastResizableColumnIndex:function(e,t){var n,i=e.some(function(e){return e&&!e.command&&!e.fixed&&!1!==e.allowResizing});for(n=e.length-1;e[n];n--){var r=e[n];if(!(r.command||r.fixed||"adaptiveHidden"===(t&&t[n])||i&&!1===r.allowResizing))break}return n},isElementInCurrentGrid:function(e,t){return!(!t||!t.length)&&t.closest("."+e.getWidgetContainerClass()).parent().is(e.component.$element())}}}()},"8T9/":function(e,t){e.exports=function(e,t){return Array.prototype.slice.call(e,t)}},"8VXM":function(e,t,n){"use strict";var i=n("XpgS").merge,r=n("tUd6"),o=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,a={default:{tagsCount:0,startTags:"",endTags:""},thead:{tagsCount:1,startTags:"",endTags:"
"},td:{tagsCount:3,startTags:"",endTags:"
"},col:{tagsCount:2,startTags:"",endTags:"
"},tr:{tagsCount:2,startTags:"",endTags:"
"}};a.tbody=a.colgroup=a.caption=a.tfoot=a.thead,a.th=a.td,t.parseHTML=function(e){if("string"!=typeof e)return null;var t=r.createDocumentFragment().appendChild(r.createElement("div")),n=o.exec(e),s=n&&n[1].toLowerCase(),c=a[s]||a.default;t.innerHTML=c.startTags+e+c.endTags;for(var u=0;u4;var e};var i,r=n("tUd6"),o=(i=n("LdFP"))&&i.__esModule?i:{default:i}},"8kKR":function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=n("FKN7"),o=n("cGv3"),a=n("jeLr"),s=n("0osO"),c=n("D6VQ"),u=n("KAnu"),l=n("ti0F"),d=n("1LL4").extend,h=n("XpgS").inArray,f=n("9Lc9"),p=n("I0Qj"),g=n("D8Ap"),m=n("GCD8"),v=n("LdFP"),_=n("Q7sy"),y=n("zl3R").each,b=n("e5PH"),w=n("imRD"),C=n("lBBa").ChildDefaultTemplate,O=n("tJvG").Deferred,S=n("B4+F").default,k=o.getWindow(),x="dx-skip-gesture-event",T=["startswith","contains","endwith","notcontains"],E=f.inherit({_supportedKeys:function(){var e=this.callBase();return d({},e,{tab:function(t){if(this._allowSelectItemByTab()){this._saveValueChangeEvent(t);var n=r(this._list.option("focusedElement"));n.length&&this._setSelectedElement(n)}e.tab.apply(this,arguments)},space:u.noop,home:u.noop,end:u.noop})},_allowSelectItemByTab:function(){return this.option("opened")&&"instantly"===this.option("applyValueMode")},_setSelectedElement:function(e){var t=this._valueGetter(this._list._getItemData(e));this._setValue(t)},_setValue:function(e){this.option("value",e)},_getDefaultOptions:function(){return d(this.callBase(),d(b._dataExpressionDefaultOptions(),{displayValue:void 0,searchEnabled:!1,searchMode:"contains",searchTimeout:500,minSearchLength:0,searchExpr:null,valueChangeEvent:"input change keyup",selectedItem:null,noDataText:w.format("dxCollectionWidget-noDataText"),onSelectionChanged:null,onItemClick:u.noop,showDataBeforeSearch:!1,grouped:!1,groupTemplate:"group",popupPosition:{my:"left top",at:"left bottom",offset:{h:0,v:0},collision:"flip"},wrapItemText:!1,popupWidthExtension:0}))},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{popupPosition:{offset:{v:-1}}}},{device:{platform:"generic"},options:{buttonsLocation:"bottom center"}}])},_setOptionsByReference:function(){this.callBase(),d(this._optionsByReference,{value:!0,selectedItem:!0,displayValue:!0})},_init:function(){this.callBase(),this._initDataExpressions(),this._initActions(),this._setListDataSource(),this._validateSearchMode(),this._clearSelectedItem(),this._initItems()},_setListFocusedElementOptionChange:function(){this._list._updateParentActiveDescendant=this._updateActiveDescendant.bind(this)},_initItems:function(){var e=this.option().items;e&&!e.length&&this._dataSource&&(this.option().items=this._dataSource.items())},_initActions:function(){this._initContentReadyAction(),this._initSelectionChangedAction(),this._initItemClickAction()},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new C("item")})},_saveFocusOnWidget:function(e){this._list&&this._list.initialOption("focusStateEnabled")&&this._focusInput()},_fitIntoRange:function(e,t,n){return e>n?t:e",!0).toArray()},_calcNextItem:function(e){var t=this._items();return t[this._fitIntoRange(this._getSelectedIndex()+e,0,t.length-1)]},_getSelectedIndex:function(){var e=this._items(),t=this.option("selectedItem"),n=-1;return y(e,(function(e,i){if(this._isValueEquals(i,t))return n=e,!1}).bind(this)),n},_createPopup:function(){this.callBase(),this._updateCustomBoundaryContainer(),this._popup._wrapper().addClass(this._popupWrapperClass());var e=this._popup.$content();a.off(e,"mouseup"),a.on(e,"mouseup",this._saveFocusOnWidget.bind(this));var t=this;this._popup.on({shown:function(){t.$element().addClass(x)},hidden:function(){t.$element().removeClass(x)}})},_updateCustomBoundaryContainer:function(){var e=this.option("dropDownOptions.container"),t=e&&r(e);if(t&&t.length&&!l.isWindow(t.get(0))){var n=[].slice.call(t.parents());n.unshift(t.get(0)),y(n,(function(e,t){return t!==r("body").get(0)&&("hidden"===k.getComputedStyle(t).overflowY?(this._$customBoundaryContainer=r(t),!1):void 0)}).bind(this))}},_popupWrapperClass:function(){return"dx-dropdownlist-popup-wrapper"},_renderInputValue:function(){var e=this._getCurrentValue();return this._loadInputValue(e,this._setSelectedItem.bind(this)).always(this.callBase.bind(this,e))},_loadInputValue:function(e,t){return this._loadItem(e).always(t)},_getItemFromPlain:function(e,t){var n,r;return t&&"object"!==i(e)&&(t.itemByValue||(t.itemByValue={},(n=this._getPlainItems()).forEach(function(e){t.itemByValue[this._valueGetter(e)]=e},this)),r=t.itemByValue[e]),r||(n=this._getPlainItems(),r=u.grep(n,(function(t){return this._isValueEquals(this._valueGetter(t),e)}).bind(this))[0]),r},_loadItem:function(e,t){var n=this._getItemFromPlain(e,t);return void 0!==n?(new O).resolve(n).promise():this._loadValue(e)},_getPlainItems:function(e){var t=[];e=e||this.option("items")||this._dataSource.items()||[];for(var n=0;n0;this.setAria({activedescendant:t&&i&&n||null})},_setSelectedItem:function(e){var t=this._displayValue(e);this.option("selectedItem",u.ensureDefined(e,null)),this.option("displayValue",t)},_displayValue:function(e){return this._displayGetter(e)},_refreshSelected:function(){var e={};this._listItemElements().each((function(t,n){var i=r(n),o=this._valueGetter(i.data("dxListItemData"));this._isSelectedValue(o,e)?this._list.selectItem(i):this._list.unselectItem(i)}).bind(this))},_popupShownHandler:function(){this.callBase(),this._setFocusPolicy()},_setFocusPolicy:function(){this.option("focusStateEnabled")&&this._list&&this._list.option("focusedElement",null)},_isSelectedValue:function(e){return this._isValueEquals(e,this.option("value"))},_validateSearchMode:function(){var e=this.option("searchMode"),t=e.toLowerCase();if(h(t,T)<0)throw g.Error("E1019",e)},_clearSelectedItem:function(){this.option("selectedItem",null)},_processDataSourceChanging:function(){this._setListDataSource(),this._renderInputValue().fail((function(){this._isCustomValueAllowed()||this._clearSelectedItem()}).bind(this))},_isCustomValueAllowed:function(){return this.option("displayCustomValue")},reset:function(){this.callBase(),this._clearFilter(),this._clearSelectedItem()},_listItemElements:function(){return this._$list?this._$list.find(".dx-list-item"):r()},_popupConfig:function(){return d(this.callBase(),{templatesRenderAsynchronously:!1,autoResizeEnabled:!1,maxHeight:this._getMaxHeight.bind(this),width:this._getInputWidth.bind(this)})},_getInputWidth:function(){return this.$element().outerWidth()},_renderPopupContent:function(){this.callBase(),this._renderList()},_getKeyboardListeners:function(){var e=this._canListHaveFocus();return this.callBase().concat([!e&&this._list])},_fireContentReadyAction:u.noop,_setAriaTargetForList:function(){this._list._getAriaTarget=this._getAriaTarget.bind(this)},_renderList:function(){this._listId="dx-"+(new s)._value;var e=this._$list=r("
").attr("id",this._listId).appendTo(this._popup.$content());this._list=this._createComponent(e,p,this._listConfig()),this._refreshList(),this._setAriaTargetForList(),this._list.option("_listAttributes",{role:"combobox"}),this._renderPreventBlur(this._$list),this._setListFocusedElementOptionChange()},_renderPreventBlur:function(e){var t=m.addNamespace("mousedown","dxDropDownList");a.off(e,t),a.on(e,t,(function(e){e.preventDefault()}).bind(this))},_renderOpenedState:function(){this.callBase(),this._list&&this._updateActiveDescendant(),this.setAria({controls:this._list&&this._listId,owns:this._popup&&this._popupContentId})},_setDefaultAria:function(){this.setAria({haspopup:"listbox",autocomplete:"list"})},_refreshList:function(){this._list&&this._shouldRefreshDataSource()&&this._setListDataSource()},_shouldRefreshDataSource:function(){var e,t=!!this._list.option("dataSource"),n=(null===(e=this.option("selectedItems"))||void 0===e?void 0:e.length)>0;return t!==this._needPassDataSourceToList()&&!n},_isDesktopDevice:function(){return"desktop"===v.real().deviceType},_listConfig:function(){var e={selectionMode:"single",_templates:this.option("_templates"),templateProvider:this.option("templateProvider"),noDataText:this.option("noDataText"),grouped:this.option("grouped"),wrapItemText:this.option("wrapItemText"),onContentReady:this._listContentReadyHandler.bind(this),itemTemplate:this.option("itemTemplate"),indicateLoading:!1,keyExpr:this._getCollectionKeyExpr(),displayExpr:this._displayGetterExpr(),groupTemplate:this.option("groupTemplate"),onItemClick:this._listItemClickAction.bind(this),dataSource:this._getDataSource(),hoverStateEnabled:!!this._isDesktopDevice()&&this.option("hoverStateEnabled"),focusStateEnabled:!!this._isDesktopDevice()&&this.option("focusStateEnabled")};return this._canListHaveFocus()||(e.tabIndex=null),e},_canListHaveFocus:function(){return!1},_getDataSource:function(){return this._needPassDataSourceToList()?this._dataSource:null},_dataSourceOptions:function(){return{paginate:!1}},_getGroupedOption:function(){return this.option("grouped")},_dataSourceFromUrlLoadMode:function(){return"raw"},_listContentReadyHandler:function(){this._list=this._list||this._$list.dxList("instance"),this.option("deferRendering")||this._refreshSelected(),this._dimensionChanged(),this._contentReadyAction()},_setListOption:function(e,t){this._setWidgetOption("_list",arguments)},_listItemClickAction:function(e){this._listItemClickHandler(e),this._itemClickAction(e)},_listItemClickHandler:u.noop,_setListDataSource:function(){this._list&&(this._setListOption("dataSource",this._getDataSource()),this._needPassDataSourceToList()||this._setListOption("items",[]))},_needPassDataSourceToList:function(){return this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded()},_isMinSearchLengthExceeded:function(){return this._searchValue().toString().length>=this.option("minSearchLength")},_needClearFilter:function(){return!this._canKeepDataSource()&&this._needPassDataSourceToList()},_canKeepDataSource:function(){var e,t=this._isMinSearchLengthExceeded();return(null===(e=this._dataSource)||void 0===e?void 0:e.isLoaded())&&this.option("showDataBeforeSearch")&&this.option("minSearchLength")&&!t&&!this._isLastMinSearchLengthExceeded},_searchValue:function(){return this._input().val()||""},_getSearchEvent:function(){return m.addNamespace("input",this.NAME+"Search")},_getSetFocusPolicyEvent:function(){return m.addNamespace("input",this.NAME+"FocusPolicy")},_renderEvents:function(){this.callBase(),a.on(this._input(),this._getSetFocusPolicyEvent(),this._setFocusPolicy.bind(this)),this._shouldRenderSearchEvent()&&a.on(this._input(),this._getSearchEvent(),this._searchHandler.bind(this))},_shouldRenderSearchEvent:function(){return this.option("searchEnabled")},_refreshEvents:function(){a.off(this._input(),this._getSearchEvent()),a.off(this._input(),this._getSetFocusPolicyEvent()),this.callBase()},_searchHandler:function(){if(this._isMinSearchLengthExceeded()){var e=this.option("searchTimeout");e?(this._clearSearchTimer(),this._searchTimer=setTimeout(this._searchDataSource.bind(this),e)):this._searchDataSource()}else this._searchCanceled()},_searchCanceled:function(){this._clearSearchTimer(),this._needClearFilter()&&this._filterDataSource(null),this._refreshList()},_searchDataSource:function(){this._filterDataSource(this._searchValue())},_filterDataSource:function(e){this._clearSearchTimer();var t=this._dataSource;t&&(t.searchExpr(this.option("searchExpr")||this._displayGetterExpr()),t.searchOperation(this.option("searchMode")),t.searchValue(e),t.load().done(this._dataSourceFiltered.bind(this,e)))},_clearFilter:function(){var e=this._dataSource;e&&e.searchValue()&&e.searchValue(null)},_dataSourceFiltered:function(){this._isLastMinSearchLengthExceeded=this._isMinSearchLengthExceeded(),this._refreshList(),this._refreshPopupVisibility()},_shouldOpenPopup:function(){return this._hasItemsToShow()},_refreshPopupVisibility:function(){if(!this.option("readOnly")&&this._searchValue()){var e=this._shouldOpenPopup();e&&!this._isFocused()||(this.option("opened",e),e&&this._dimensionChanged())}},_dataSourceChangedHandler:function(e){0===this._dataSource.pageIndex()?this.option().items=e:this.option().items=this.option().items.concat(e)},_hasItemsToShow:function(){var e=(this._dataSource&&this._dataSource.items()||[]).length;return!(!this._needPassDataSourceToList()||!e)},_clearSearchTimer:function(){clearTimeout(this._searchTimer),delete this._searchTimer},_updatePopupMinWidth:function(e){k&&this._popup&&(void 0===e&&(e=this.$element().outerWidth()),this._popup.overlayContent().css("minWidth",e))},_popupShowingHandler:function(){this._dimensionChanged()},_getPopupWidth:function(){var e=this.option("dropDownOptions.width");if(null!==e)return"function"==typeof e?e():e},_dimensionChanged:function(){var e=this._getPopupWidth(),t=this.option("dropDownOptions.minWidth");void 0===e&&this._setPopupOption("width",this._getInputWidth.bind(this)),l.isDefined(t)||this._updatePopupMinWidth(e),this._popup&&this._updatePopupDimensions()},_needPopupRepaint:function(){if(!this._dataSource)return!1;var e=this._dataSource.pageIndex(),t=l.isDefined(this._pageIndex)&&e<=this._pageIndex;return this._pageIndex=e,t},_updatePopupDimensions:function(){this._needPopupRepaint()&&this._popup.repaint(),this._list&&this._list.updateDimensions()},_getMaxHeight:function(){var e=this.$element(),t=this._$customBoundaryContainer,n=e.offset().top-(t?t.offset().top:0),i=r(k).outerHeight(),o=t?Math.min(t.outerHeight(),i):i,a=Math.max(n,o-n-e.outerHeight());return Math.min(.5*o,a)},_clean:function(){this._list&&delete this._list,delete this._isLastMinSearchLengthExceeded,this.callBase()},_dispose:function(){this._clearSearchTimer(),this.callBase()},_setCollectionWidgetOption:function(){this._setListOption.apply(this,arguments)},_setSubmitValue:function(){var e=this.option("value"),t=this._shouldUseDisplayValue(e)?this._displayGetter(e):e;this._getSubmitElement().val(t)},_shouldUseDisplayValue:function(e){return"this"===this.option("valueExpr")&&l.isObject(e)},_optionChanged:function(e){switch(this._dataExpressionOptionChanged(e),e.name){case"hoverStateEnabled":case"focusStateEnabled":this._isDesktopDevice()&&this._setListOption(e.name,e.value),this.callBase(e);break;case"dropDownOptions":"dropDownOptions.width"===e.fullName&&this._dimensionChanged(),this.callBase(e);break;case"items":this.option("dataSource")||this._processDataSourceChanging();break;case"dataSource":this._processDataSourceChanging();break;case"valueExpr":this._renderValue(),this._setListOption("keyExpr",this._getCollectionKeyExpr());break;case"displayExpr":this._renderValue(),this._setListOption("displayExpr",this._displayGetterExpr());break;case"searchMode":this._validateSearchMode();break;case"minSearchLength":this._refreshList();break;case"searchEnabled":case"showDataBeforeSearch":case"searchExpr":this._invalidate();break;case"onContentReady":this._initContentReadyAction();break;case"onSelectionChanged":this._initSelectionChangedAction();break;case"onItemClick":this._initItemClickAction();break;case"grouped":case"groupTemplate":case"wrapItemText":case"noDataText":this._setListOption(e.name);break;case"displayValue":this.option("text",e.value);break;case"itemTemplate":case"searchTimeout":case"popupWidthExtension":break;case"selectedItem":e.previousValue!==e.value&&this._selectionChangedAction({selectedItem:e.value});break;default:this.callBase(e)}}}).include(b,S);c("dxDropDownList",E),e.exports=E},"8mBD":function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},"8vzf":function(e,t,n){"use strict";n.d(t,"a",function(){return v}),n.d(t,"b",function(){return _});var i=n("1OyB"),r=n("vuIU"),o=n("JX7q"),a=n("ReuC"),s=n("foSv"),c=n("Ji7U"),u=n("LK+K"),l=n("mrSG"),d=n("jhN1"),h=n("fXoL"),f=n("ut1R"),p=n.n(f),g=n("PVOt"),m=n("6t9p"),v=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,r,a,s,c,u,l,d){var h;return Object(i.a)(this,n),(h=t.call(this,e,r,a,s,l,d))._watcherHelper=s,h._idh=c,h._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"itemContextMenu",emit:"onItemContextMenu"},{subscribe:"itemHold",emit:"onItemHold"},{subscribe:"itemRendered",emit:"onItemRendered"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"animationEnabledChange"},{emit:"dataSourceChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"itemHoldTimeoutChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"loopChange"},{emit:"noDataTextChange"},{emit:"rtlEnabledChange"},{emit:"selectedIndexChange"},{emit:"selectedItemChange"},{emit:"swipeEnabledChange"},{emit:"tabIndexChange"},{emit:"visibleChange"},{emit:"widthChange"}]),h._idh.setHost(Object(o.a)(h)),u.setHost(Object(o.a)(h)),h}return Object(r.a)(n,[{key:"accessKey",get:function(){return this._getOption("accessKey")},set:function(e){this._setOption("accessKey",e)}},{key:"activeStateEnabled",get:function(){return this._getOption("activeStateEnabled")},set:function(e){this._setOption("activeStateEnabled",e)}},{key:"animationEnabled",get:function(){return this._getOption("animationEnabled")},set:function(e){this._setOption("animationEnabled",e)}},{key:"dataSource",get:function(){return this._getOption("dataSource")},set:function(e){this._setOption("dataSource",e)}},{key:"deferRendering",get:function(){return this._getOption("deferRendering")},set:function(e){this._setOption("deferRendering",e)}},{key:"disabled",get:function(){return this._getOption("disabled")},set:function(e){this._setOption("disabled",e)}},{key:"elementAttr",get:function(){return this._getOption("elementAttr")},set:function(e){this._setOption("elementAttr",e)}},{key:"focusStateEnabled",get:function(){return this._getOption("focusStateEnabled")},set:function(e){this._setOption("focusStateEnabled",e)}},{key:"height",get:function(){return this._getOption("height")},set:function(e){this._setOption("height",e)}},{key:"hint",get:function(){return this._getOption("hint")},set:function(e){this._setOption("hint",e)}},{key:"hoverStateEnabled",get:function(){return this._getOption("hoverStateEnabled")},set:function(e){this._setOption("hoverStateEnabled",e)}},{key:"itemHoldTimeout",get:function(){return this._getOption("itemHoldTimeout")},set:function(e){this._setOption("itemHoldTimeout",e)}},{key:"items",get:function(){return this._getOption("items")},set:function(e){this._setOption("items",e)}},{key:"itemTemplate",get:function(){return this._getOption("itemTemplate")},set:function(e){this._setOption("itemTemplate",e)}},{key:"loop",get:function(){return this._getOption("loop")},set:function(e){this._setOption("loop",e)}},{key:"noDataText",get:function(){return this._getOption("noDataText")},set:function(e){this._setOption("noDataText",e)}},{key:"rtlEnabled",get:function(){return this._getOption("rtlEnabled")},set:function(e){this._setOption("rtlEnabled",e)}},{key:"selectedIndex",get:function(){return this._getOption("selectedIndex")},set:function(e){this._setOption("selectedIndex",e)}},{key:"selectedItem",get:function(){return this._getOption("selectedItem")},set:function(e){this._setOption("selectedItem",e)}},{key:"swipeEnabled",get:function(){return this._getOption("swipeEnabled")},set:function(e){this._setOption("swipeEnabled",e)}},{key:"tabIndex",get:function(){return this._getOption("tabIndex")},set:function(e){this._setOption("tabIndex",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"width",get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)}},{key:"itemsChildren",get:function(){return this._getOption("items")},set:function(e){this.setChildren("items",e)}},{key:"_createInstance",value:function(e,t){return new p.a(e,t)}},{key:"ngOnDestroy",value:function(){this._destroyWidget()}},{key:"ngOnChanges",value:function(e){Object(a.a)(Object(s.a)(n.prototype),"ngOnChanges",this).call(this,e),this.setupChanges("dataSource",e),this.setupChanges("items",e)}},{key:"setupChanges",value:function(e,t){e in this._optionsToUpdate||this._idh.setup(e,t)}},{key:"ngDoCheck",value:function(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._watcherHelper.checkWatchers(),Object(a.a)(Object(s.a)(n.prototype),"ngDoCheck",this).call(this),Object(a.a)(Object(s.a)(n.prototype),"clearChangedOptions",this).call(this)}},{key:"_setOption",value:function(e,t){var i=this._idh.setupSingle(e,t),r=null!==this._idh.getChanges(e,t);(i||r)&&Object(a.a)(Object(s.a)(n.prototype),"_setOption",this).call(this,e,t)}}]),n}(g.b);return e.\u0275fac=function(t){return new(t||e)(h.ac(h.q),h.ac(h.J),h.ac(g.f),h.ac(g.k),h.ac(g.h),h.ac(g.j),h.ac(d.d),h.ac(h.M))},e.\u0275cmp=h.Ub({type:e,selectors:[["dx-multi-view"]],contentQueries:function(e,t,n){var i;1&e&&h.Tb(n,m.y,!1),2&e&&h.Ec(i=h.oc())&&(t.itemsChildren=i)},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",animationEnabled:"animationEnabled",dataSource:"dataSource",deferRendering:"deferRendering",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",itemHoldTimeout:"itemHoldTimeout",items:"items",itemTemplate:"itemTemplate",loop:"loop",noDataText:"noDataText",rtlEnabled:"rtlEnabled",selectedIndex:"selectedIndex",selectedItem:"selectedItem",swipeEnabled:"swipeEnabled",tabIndex:"tabIndex",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onItemClick:"onItemClick",onItemContextMenu:"onItemContextMenu",onItemHold:"onItemHold",onItemRendered:"onItemRendered",onOptionChanged:"onOptionChanged",onSelectionChanged:"onSelectionChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",animationEnabledChange:"animationEnabledChange",dataSourceChange:"dataSourceChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",itemHoldTimeoutChange:"itemHoldTimeoutChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",loopChange:"loopChange",noDataTextChange:"noDataTextChange",rtlEnabledChange:"rtlEnabledChange",selectedIndexChange:"selectedIndexChange",selectedItemChange:"selectedItemChange",swipeEnabledChange:"swipeEnabledChange",tabIndexChange:"tabIndexChange",visibleChange:"visibleChange",widthChange:"widthChange"},features:[h.Nb([g.f,g.k,g.j,g.h]),h.Lb,h.Mb],decls:0,vars:0,template:function(e,t){},encapsulation:2}),e=Object(l.__decorate)([Object(l.__param)(7,Object(h.w)(h.M)),Object(l.__metadata)("design:paramtypes",[h.q,h.J,g.f,g.k,g.h,g.j,d.d,Object])],e)}(),_=function(){var e=Object(r.a)(function e(){Object(i.a)(this,e)});return e.\u0275mod=h.Yb({type:e}),e.\u0275inj=h.Xb({factory:function(t){return new(t||e)},imports:[[m.z,g.d,g.g,d.b],m.z,g.g]}),e}()},"8wSl":function(e,t,n){"use strict";var i=n("z7z0").fitIntoRange,r=n("KAnu").escapeRegExp,o=n("Bhoz"),a=function(e,t){if("string"==typeof t){var n=t.split(";"),i=o.getSign(e,t);n[1]=n[1]||"-"+n[0],t=(t=n[i<0?1:0]).replace(/'([^']*)'/g,function(e){return e.split("").map(function(){return" "}).join("").substr(2)});var r=/^[^#0.,]*/.exec(t)[0].length,a=/[^#0.,]*$/.exec(t)[0].length;return{start:r,end:e.length-a}}return{start:0,end:e.length}},s=function(e,t){var n=o.getDecimalSeparator(),i=new RegExp("[^0-9"+r(n)+"]","g");return t.slice(0,e).replace(i,"").length},c=function(e){return e.split("").reverse().join("")},u=function(e,t){if(!e)return-1;for(var n=/[0-9]/g,i=1,r=null,o=n.exec(t);o;){if(r=o.index,!e||i>=e)return r;i++,o=n.exec(t)}return null===r?t.length:r},l=function(e,t){return void 0===e.start&&(e={start:e,end:e}),{start:e.start+t,end:e.end+t}};function d(e,t,n){e=l(e,0);var r=a(t,n);return{start:i(e.start,r.start,r.end),end:i(e.end,r.start,r.end)}}t.getCaretBoundaries=a,t.isCaretInBoundaries=function(e,t,n){var i=d(e=l(e,0),t,n);return e.start>=i.start&&e.end<=i.end},t.getCaretWithOffset=l,t.getCaretInBoundaries=d,t.getCaretAfterFormat=function(e,t,n,i){n=l(n,0);var r=o.getDecimalSeparator(),a=function(e){return 1===e.length&&!!e.match(/^[,.][0-9]*$/g)}(e),h=a?0:e.indexOf(r),f=t.indexOf(r),p=e.split(a?e[h]:r),g=t.split(r);if(-1!==h&&n.start>h){var m=s(n.start-h-1,p[1]);return d(g[1]?f+1+u(m,g[1])+1:t.length,t,i)}var v=function(e){return e.replace(/[^0-9e]+$/,"")}(g[0]),_=s(p[0].length-n.start,c(p[0])),y=u(_,c(v));return d(v.length-(y+1),t,i)},t.getCaretOffset=function(e,t,n){var i=a(e,n);return a(t,n).start-i.start}},"91Oz":function(e,t,n){"use strict";e.exports={en:{Yes:"Yes",No:"No",Cancel:"Cancel",Clear:"Clear",Done:"Done",Loading:"Loading...",Select:"Select...",Search:"Search",Back:"Back",OK:"OK","dxCollectionWidget-noDataText":"No data to display","dxDropDownEditor-selectLabel":"Select","validation-required":"Required","validation-required-formatted":"{0} is required","validation-numeric":"Value must be a number","validation-numeric-formatted":"{0} must be a number","validation-range":"Value is out of range","validation-range-formatted":"{0} is out of range","validation-stringLength":"The length of the value is not correct","validation-stringLength-formatted":"The length of {0} is not correct","validation-custom":"Value is invalid","validation-custom-formatted":"{0} is invalid","validation-async":"Value is invalid","validation-async-formatted":"{0} is invalid","validation-compare":"Values do not match","validation-compare-formatted":"{0} does not match","validation-pattern":"Value does not match pattern","validation-pattern-formatted":"{0} does not match pattern","validation-email":"Email is invalid","validation-email-formatted":"{0} is invalid","validation-mask":"Value is invalid","dxLookup-searchPlaceholder":"Minimum character number: {0}","dxList-pullingDownText":"Pull down to refresh...","dxList-pulledDownText":"Release to refresh...","dxList-refreshingText":"Refreshing...","dxList-pageLoadingText":"Loading...","dxList-nextButtonText":"More","dxList-selectAll":"Select All","dxListEditDecorator-delete":"Delete","dxListEditDecorator-more":"More","dxScrollView-pullingDownText":"Pull down to refresh...","dxScrollView-pulledDownText":"Release to refresh...","dxScrollView-refreshingText":"Refreshing...","dxScrollView-reachBottomText":"Loading...","dxDateBox-simulatedDataPickerTitleTime":"Select time","dxDateBox-simulatedDataPickerTitleDate":"Select date","dxDateBox-simulatedDataPickerTitleDateTime":"Select date and time","dxDateBox-validation-datetime":"Value must be a date or time","dxFileUploader-selectFile":"Select file","dxFileUploader-dropFile":"or Drop file here","dxFileUploader-bytes":"bytes","dxFileUploader-kb":"kb","dxFileUploader-Mb":"Mb","dxFileUploader-Gb":"Gb","dxFileUploader-upload":"Upload","dxFileUploader-uploaded":"Uploaded","dxFileUploader-readyToUpload":"Ready to upload","dxFileUploader-uploadFailedMessage":"Upload failed","dxFileUploader-invalidFileExtension":"File type is not allowed","dxFileUploader-invalidMaxFileSize":"File is too large","dxFileUploader-invalidMinFileSize":"File is too small","dxRangeSlider-ariaFrom":"From","dxRangeSlider-ariaTill":"Till","dxSwitch-switchedOnText":"ON","dxSwitch-switchedOffText":"OFF","dxForm-optionalMark":"optional","dxForm-requiredMessage":"{0} is required","dxNumberBox-invalidValueMessage":"Value must be a number","dxNumberBox-noDataText":"No data","dxDataGrid-columnChooserTitle":"Column Chooser","dxDataGrid-columnChooserEmptyText":"Drag a column here to hide it","dxDataGrid-groupContinuesMessage":"Continues on the next page","dxDataGrid-groupContinuedMessage":"Continued from the previous page","dxDataGrid-groupHeaderText":"Group by This Column","dxDataGrid-ungroupHeaderText":"Ungroup","dxDataGrid-ungroupAllText":"Ungroup All","dxDataGrid-editingEditRow":"Edit","dxDataGrid-editingSaveRowChanges":"Save","dxDataGrid-editingCancelRowChanges":"Cancel","dxDataGrid-editingDeleteRow":"Delete","dxDataGrid-editingUndeleteRow":"Undelete","dxDataGrid-editingConfirmDeleteMessage":"Are you sure you want to delete this record?","dxDataGrid-validationCancelChanges":"Cancel changes","dxDataGrid-groupPanelEmptyText":"Drag a column header here to group by that column","dxDataGrid-noDataText":"No data","dxDataGrid-searchPanelPlaceholder":"Search...","dxDataGrid-filterRowShowAllText":"(All)","dxDataGrid-filterRowResetOperationText":"Reset","dxDataGrid-filterRowOperationEquals":"Equals","dxDataGrid-filterRowOperationNotEquals":"Does not equal","dxDataGrid-filterRowOperationLess":"Less than","dxDataGrid-filterRowOperationLessOrEquals":"Less than or equal to","dxDataGrid-filterRowOperationGreater":"Greater than","dxDataGrid-filterRowOperationGreaterOrEquals":"Greater than or equal to","dxDataGrid-filterRowOperationStartsWith":"Starts with","dxDataGrid-filterRowOperationContains":"Contains","dxDataGrid-filterRowOperationNotContains":"Does not contain","dxDataGrid-filterRowOperationEndsWith":"Ends with","dxDataGrid-filterRowOperationBetween":"Between","dxDataGrid-filterRowOperationBetweenStartText":"Start","dxDataGrid-filterRowOperationBetweenEndText":"End","dxDataGrid-applyFilterText":"Apply filter","dxDataGrid-trueText":"true","dxDataGrid-falseText":"false","dxDataGrid-sortingAscendingText":"Sort Ascending","dxDataGrid-sortingDescendingText":"Sort Descending","dxDataGrid-sortingClearText":"Clear Sorting","dxDataGrid-editingSaveAllChanges":"Save changes","dxDataGrid-editingCancelAllChanges":"Discard changes","dxDataGrid-editingAddRow":"Add a row","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Min of {1} is {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Max of {1} is {0}","dxDataGrid-summaryAvg":"Avg: {0}","dxDataGrid-summaryAvgOtherColumn":"Avg of {1} is {0}","dxDataGrid-summarySum":"Sum: {0}","dxDataGrid-summarySumOtherColumn":"Sum of {1} is {0}","dxDataGrid-summaryCount":"Count: {0}","dxDataGrid-columnFixingFix":"Fix","dxDataGrid-columnFixingUnfix":"Unfix","dxDataGrid-columnFixingLeftPosition":"To the left","dxDataGrid-columnFixingRightPosition":"To the right","dxDataGrid-exportTo":"Export","dxDataGrid-exportToExcel":"Export to Excel file","dxDataGrid-exporting":"Exporting...","dxDataGrid-excelFormat":"Excel file","dxDataGrid-selectedRows":"Selected rows","dxDataGrid-exportSelectedRows":"Export selected rows","dxDataGrid-exportAll":"Export all data","dxDataGrid-headerFilterEmptyValue":"(Blanks)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Cancel","dxDataGrid-ariaColumn":"Column","dxDataGrid-ariaValue":"Value","dxDataGrid-ariaFilterCell":"Filter cell","dxDataGrid-ariaCollapse":"Collapse","dxDataGrid-ariaExpand":"Expand","dxDataGrid-ariaDataGrid":"Data grid","dxDataGrid-ariaSearchInGrid":"Search in data grid","dxDataGrid-ariaSelectAll":"Select all","dxDataGrid-ariaSelectRow":"Select row","dxDataGrid-filterBuilderPopupTitle":"Filter Builder","dxDataGrid-filterPanelCreateFilter":"Create Filter","dxDataGrid-filterPanelClearFilter":"Clear","dxDataGrid-filterPanelFilterEnabledHint":"Enable the filter","dxTreeList-ariaTreeList":"Tree list","dxTreeList-editingAddRowToNode":"Add","dxPager-infoText":"Page {0} of {1} ({2} items)","dxPager-pagesCountText":"of","dxPivotGrid-grandTotal":"Grand Total","dxPivotGrid-total":"{0} Total","dxPivotGrid-fieldChooserTitle":"Field Chooser","dxPivotGrid-showFieldChooser":"Show Field Chooser","dxPivotGrid-expandAll":"Expand All","dxPivotGrid-collapseAll":"Collapse All","dxPivotGrid-sortColumnBySummary":'Sort "{0}" by This Column',"dxPivotGrid-sortRowBySummary":'Sort "{0}" by This Row',"dxPivotGrid-removeAllSorting":"Remove All Sorting","dxPivotGrid-dataNotAvailable":"N/A","dxPivotGrid-rowFields":"Row Fields","dxPivotGrid-columnFields":"Column Fields","dxPivotGrid-dataFields":"Data Fields","dxPivotGrid-filterFields":"Filter Fields","dxPivotGrid-allFields":"All Fields","dxPivotGrid-columnFieldArea":"Drop Column Fields Here","dxPivotGrid-dataFieldArea":"Drop Data Fields Here","dxPivotGrid-rowFieldArea":"Drop Row Fields Here","dxPivotGrid-filterFieldArea":"Drop Filter Fields Here","dxScheduler-editorLabelTitle":"Subject","dxScheduler-editorLabelStartDate":"Start Date","dxScheduler-editorLabelEndDate":"End Date","dxScheduler-editorLabelDescription":"Description","dxScheduler-editorLabelRecurrence":"Repeat","dxScheduler-openAppointment":"Open appointment","dxScheduler-recurrenceNever":"Never","dxScheduler-recurrenceMinutely":"Every minute","dxScheduler-recurrenceHourly":"Hourly","dxScheduler-recurrenceDaily":"Daily","dxScheduler-recurrenceWeekly":"Weekly","dxScheduler-recurrenceMonthly":"Monthly","dxScheduler-recurrenceYearly":"Yearly","dxScheduler-recurrenceRepeatEvery":"Repeat Every","dxScheduler-recurrenceRepeatOn":"Repeat On","dxScheduler-recurrenceEnd":"End repeat","dxScheduler-recurrenceAfter":"After","dxScheduler-recurrenceOn":"On","dxScheduler-recurrenceRepeatMinutely":"minute(s)","dxScheduler-recurrenceRepeatHourly":"hour(s)","dxScheduler-recurrenceRepeatDaily":"day(s)","dxScheduler-recurrenceRepeatWeekly":"week(s)","dxScheduler-recurrenceRepeatMonthly":"month(s)","dxScheduler-recurrenceRepeatYearly":"year(s)","dxScheduler-switcherDay":"Day","dxScheduler-switcherWeek":"Week","dxScheduler-switcherWorkWeek":"Work Week","dxScheduler-switcherMonth":"Month","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Timeline Day","dxScheduler-switcherTimelineWeek":"Timeline Week","dxScheduler-switcherTimelineWorkWeek":"Timeline Work Week","dxScheduler-switcherTimelineMonth":"Timeline Month","dxScheduler-recurrenceRepeatOnDate":"on date","dxScheduler-recurrenceRepeatCount":"occurrence(s)","dxScheduler-allDay":"All day","dxScheduler-confirmRecurrenceEditMessage":"Do you want to edit only this appointment or the whole series?","dxScheduler-confirmRecurrenceDeleteMessage":"Do you want to delete only this appointment or the whole series?","dxScheduler-confirmRecurrenceEditSeries":"Edit series","dxScheduler-confirmRecurrenceDeleteSeries":"Delete series","dxScheduler-confirmRecurrenceEditOccurrence":"Edit appointment","dxScheduler-confirmRecurrenceDeleteOccurrence":"Delete appointment","dxScheduler-noTimezoneTitle":"No timezone","dxScheduler-moreAppointments":"{0} more","dxCalendar-todayButtonText":"Today","dxCalendar-ariaWidgetName":"Calendar","dxColorView-ariaRed":"Red","dxColorView-ariaGreen":"Green","dxColorView-ariaBlue":"Blue","dxColorView-ariaAlpha":"Transparency","dxColorView-ariaHex":"Color code","dxTagBox-selected":"{0} selected","dxTagBox-allSelected":"All selected ({0})","dxTagBox-moreSelected":"{0} more","vizExport-printingButtonText":"Print","vizExport-titleMenuText":"Exporting/Printing","vizExport-exportButtonText":"{0} file","dxFilterBuilder-and":"And","dxFilterBuilder-or":"Or","dxFilterBuilder-notAnd":"Not And","dxFilterBuilder-notOr":"Not Or","dxFilterBuilder-addCondition":"Add Condition","dxFilterBuilder-addGroup":"Add Group","dxFilterBuilder-enterValueText":"","dxFilterBuilder-filterOperationEquals":"Equals","dxFilterBuilder-filterOperationNotEquals":"Does not equal","dxFilterBuilder-filterOperationLess":"Is less than","dxFilterBuilder-filterOperationLessOrEquals":"Is less than or equal to","dxFilterBuilder-filterOperationGreater":"Is greater than","dxFilterBuilder-filterOperationGreaterOrEquals":"Is greater than or equal to","dxFilterBuilder-filterOperationStartsWith":"Starts with","dxFilterBuilder-filterOperationContains":"Contains","dxFilterBuilder-filterOperationNotContains":"Does not contain","dxFilterBuilder-filterOperationEndsWith":"Ends with","dxFilterBuilder-filterOperationIsBlank":"Is blank","dxFilterBuilder-filterOperationIsNotBlank":"Is not blank","dxFilterBuilder-filterOperationBetween":"Is between","dxFilterBuilder-filterOperationAnyOf":"Is any of","dxFilterBuilder-filterOperationNoneOf":"Is none of","dxHtmlEditor-dialogColorCaption":"Change Font Color","dxHtmlEditor-dialogBackgroundCaption":"Change Background Color","dxHtmlEditor-dialogLinkCaption":"Add Link","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Text","dxHtmlEditor-dialogLinkTargetField":"Open link in new window","dxHtmlEditor-dialogImageCaption":"Add Image","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Alternate text","dxHtmlEditor-dialogImageWidthField":"Width (px)","dxHtmlEditor-dialogImageHeightField":"Height (px)","dxHtmlEditor-heading":"Heading","dxHtmlEditor-normalText":"Normal text","dxFileManager-newDirectoryName":"Untitled directory","dxFileManager-rootDirectoryName":"Files","dxFileManager-errorNoAccess":"Access Denied. Operation could not be completed.","dxFileManager-errorDirectoryExistsFormat":"Directory '{0}' already exists.","dxFileManager-errorFileExistsFormat":"File '{0}' already exists.","dxFileManager-errorFileNotFoundFormat":"File '{0}' not found.","dxFileManager-errorDirectoryNotFoundFormat":"Directory '{0}' not found.","dxFileManager-errorWrongFileExtension":"File extension is not allowed.","dxFileManager-errorMaxFileSizeExceeded":"File size exceeds the maximum allowed size.","dxFileManager-errorInvalidSymbols":"This name contains invalid characters.","dxFileManager-errorDefault":"Unspecified error.","dxFileManager-errorDirectoryOpenFailed":"The directory cannot be opened","dxFileManager-commandCreate":"New directory","dxFileManager-commandRename":"Rename","dxFileManager-commandMove":"Move to","dxFileManager-commandCopy":"Copy to","dxFileManager-commandDelete":"Delete","dxFileManager-commandDownload":"Download","dxFileManager-commandUpload":"Upload files","dxFileManager-commandRefresh":"Refresh","dxFileManager-commandThumbnails":"Thumbnails View","dxFileManager-commandDetails":"Details View","dxFileManager-commandClearSelection":"Clear selection","dxFileManager-commandShowNavPane":"Toggle navigation pane","dxFileManager-dialogDirectoryChooserMoveTitle":"Move to","dxFileManager-dialogDirectoryChooserMoveButtonText":"Move","dxFileManager-dialogDirectoryChooserCopyTitle":"Copy to","dxFileManager-dialogDirectoryChooserCopyButtonText":"Copy","dxFileManager-dialogRenameItemTitle":"Rename","dxFileManager-dialogRenameItemButtonText":"Save","dxFileManager-dialogCreateDirectoryTitle":"New directory","dxFileManager-dialogCreateDirectoryButtonText":"Create","dxFileManager-dialogDeleteItemTitle":"Delete","dxFileManager-dialogDeleteItemButtonText":"Delete","dxFileManager-dialogDeleteItemSingleItemConfirmation":"Are you sure you want to delete {0}?","dxFileManager-dialogDeleteItemMultipleItemsConfirmation":"Are you sure you want to delete {0} items?","dxFileManager-dialogButtonCancel":"Cancel","dxFileManager-editingCreateSingleItemProcessingMessage":"Creating a directory inside {0}","dxFileManager-editingCreateSingleItemSuccessMessage":"Created a directory inside {0}","dxFileManager-editingCreateSingleItemErrorMessage":"Directory was not created","dxFileManager-editingCreateCommonErrorMessage":"Directory was not created","dxFileManager-editingRenameSingleItemProcessingMessage":"Renaming an item inside {0}","dxFileManager-editingRenameSingleItemSuccessMessage":"Renamed an item inside {0}","dxFileManager-editingRenameSingleItemErrorMessage":"Item was not renamed","dxFileManager-editingRenameCommonErrorMessage":"Item was not renamed","dxFileManager-editingDeleteSingleItemProcessingMessage":"Deleting an item from {0}","dxFileManager-editingDeleteMultipleItemsProcessingMessage":"Deleting {0} items from {1}","dxFileManager-editingDeleteSingleItemSuccessMessage":"Deleted an item from {0}","dxFileManager-editingDeleteMultipleItemsSuccessMessage":"Deleted {0} items from {1}","dxFileManager-editingDeleteSingleItemErrorMessage":"Item was not deleted","dxFileManager-editingDeleteMultipleItemsErrorMessage":"{0} items were not deleted","dxFileManager-editingDeleteCommonErrorMessage":"Some items were not deleted","dxFileManager-editingMoveSingleItemProcessingMessage":"Moving an item to {0}","dxFileManager-editingMoveMultipleItemsProcessingMessage":"Moving {0} items to {1}","dxFileManager-editingMoveSingleItemSuccessMessage":"Moved an item to {0}","dxFileManager-editingMoveMultipleItemsSuccessMessage":"Moved {0} items to {1}","dxFileManager-editingMoveSingleItemErrorMessage":"Item was not moved","dxFileManager-editingMoveMultipleItemsErrorMessage":"{0} items were not moved","dxFileManager-editingMoveCommonErrorMessage":"Some items were not moved","dxFileManager-editingCopySingleItemProcessingMessage":"Copying an item to {0}","dxFileManager-editingCopyMultipleItemsProcessingMessage":"Copying {0} items to {1}","dxFileManager-editingCopySingleItemSuccessMessage":"Copied an item to {0}","dxFileManager-editingCopyMultipleItemsSuccessMessage":"Copied {0} items to {1}","dxFileManager-editingCopySingleItemErrorMessage":"Item was not copied","dxFileManager-editingCopyMultipleItemsErrorMessage":"{0} items were not copied","dxFileManager-editingCopyCommonErrorMessage":"Some items were not copied","dxFileManager-editingUploadSingleItemProcessingMessage":"Uploading an item to {0}","dxFileManager-editingUploadMultipleItemsProcessingMessage":"Uploading {0} items to {1}","dxFileManager-editingUploadSingleItemSuccessMessage":"Uploaded an item to {0}","dxFileManager-editingUploadMultipleItemsSuccessMessage":"Uploaded {0} items to {1}","dxFileManager-editingUploadSingleItemErrorMessage":"Item was not uploaded","dxFileManager-editingUploadMultipleItemsErrorMessage":"{0} items were not uploaded","dxFileManager-editingUploadCanceledMessage":"Canceled","dxFileManager-listDetailsColumnCaptionName":"Name","dxFileManager-listDetailsColumnCaptionDateModified":"Date Modified","dxFileManager-listDetailsColumnCaptionFileSize":"File Size","dxFileManager-listThumbnailsTooltipTextSize":"Size","dxFileManager-listThumbnailsTooltipTextDateModified":"Date Modified","dxFileManager-notificationProgressPanelTitle":"Progress","dxFileManager-notificationProgressPanelEmptyListText":"No operations","dxFileManager-notificationProgressPanelOperationCanceled":"Canceled","dxDiagram-categoryGeneral":"General","dxDiagram-categoryFlowchart":"Flowchart","dxDiagram-categoryOrgChart":"Org Chart","dxDiagram-categoryContainers":"Containers","dxDiagram-categoryCustom":"Custom","dxDiagram-commandExportToSvg":"Export to SVG","dxDiagram-commandExportToPng":"Export to PNG","dxDiagram-commandExportToJpg":"Export to JPEG","dxDiagram-commandUndo":"Undo","dxDiagram-commandRedo":"Redo","dxDiagram-commandFontName":"Font Name","dxDiagram-commandFontSize":"Font Size","dxDiagram-commandBold":"Bold","dxDiagram-commandItalic":"Italic","dxDiagram-commandUnderline":"Underline","dxDiagram-commandTextColor":"Font Color","dxDiagram-commandLineColor":"Line Color","dxDiagram-commandLineWidth":"Line Width","dxDiagram-commandLineStyle":"Line Style","dxDiagram-commandLineStyleSolid":"Solid","dxDiagram-commandLineStyleDotted":"Dotted","dxDiagram-commandLineStyleDashed":"Dashed","dxDiagram-commandFillColor":"Fill Color","dxDiagram-commandAlignLeft":"Align Left","dxDiagram-commandAlignCenter":"Align Center","dxDiagram-commandAlignRight":"Align Right","dxDiagram-commandConnectorLineType":"Connector Line Type","dxDiagram-commandConnectorLineStraight":"Straight","dxDiagram-commandConnectorLineOrthogonal":"Orthogonal","dxDiagram-commandConnectorLineStart":"Connector Line Start","dxDiagram-commandConnectorLineEnd":"Connector Line End","dxDiagram-commandConnectorLineNone":"None","dxDiagram-commandConnectorLineArrow":"Arrow","dxDiagram-commandFullscreen":"Full Screen","dxDiagram-commandUnits":"Units","dxDiagram-commandPageSize":"Page Size","dxDiagram-commandPageOrientation":"Page Orientation","dxDiagram-commandPageOrientationLandscape":"Landscape","dxDiagram-commandPageOrientationPortrait":"Portrait","dxDiagram-commandPageColor":"Page Color","dxDiagram-commandShowGrid":"Show Grid","dxDiagram-commandSnapToGrid":"Snap to Grid","dxDiagram-commandGridSize":"Grid Size","dxDiagram-commandZoomLevel":"Zoom Level","dxDiagram-commandAutoZoom":"Auto Zoom","dxDiagram-commandFitToContent":"Fit to Content","dxDiagram-commandFitToWidth":"Fit to Width","dxDiagram-commandAutoZoomByContent":"Auto Zoom by Content","dxDiagram-commandAutoZoomByWidth":"Auto Zoom by Width","dxDiagram-commandSimpleView":"Simple View","dxDiagram-commandCut":"Cut","dxDiagram-commandCopy":"Copy","dxDiagram-commandPaste":"Paste","dxDiagram-commandSelectAll":"Select All","dxDiagram-commandDelete":"Delete","dxDiagram-commandBringToFront":"Bring to Front","dxDiagram-commandSendToBack":"Send to Back","dxDiagram-commandLock":"Lock","dxDiagram-commandUnlock":"Unlock","dxDiagram-commandInsertShapeImage":"Insert Image...","dxDiagram-commandEditShapeImage":"Change Image...","dxDiagram-commandDeleteShapeImage":"Delete Image","dxDiagram-commandLayoutLeftToRight":"Left-to-right","dxDiagram-commandLayoutRightToLeft":"Right-to-left","dxDiagram-commandLayoutTopToBottom":"Top-to-bottom","dxDiagram-commandLayoutBottomToTop":"Bottom-to-top","dxDiagram-unitIn":"in","dxDiagram-unitCm":"cm","dxDiagram-unitPx":"px","dxDiagram-dialogButtonOK":"OK","dxDiagram-dialogButtonCancel":"Cancel","dxDiagram-dialogInsertShapeImageTitle":"Insert Image","dxDiagram-dialogEditShapeImageTitle":"Change Image","dxDiagram-dialogEditShapeImageSelectButton":"Select image","dxDiagram-dialogEditShapeImageLabelText":"or drop file here","dxDiagram-uiExport":"Export","dxDiagram-uiProperties":"Properties","dxDiagram-uiSettings":"Settings","dxDiagram-uiShowToolbox":"Show Toolbox","dxDiagram-uiSearch":"Search","dxDiagram-uiStyle":"Style","dxDiagram-uiLayout":"Layout","dxDiagram-uiLayoutTree":"Tree","dxDiagram-uiLayoutLayered":"Layered","dxDiagram-uiDiagram":"Diagram","dxDiagram-uiText":"Text","dxDiagram-uiObject":"Object","dxDiagram-uiConnector":"Connector","dxDiagram-uiPage":"Page","dxDiagram-shapeText":"Text","dxDiagram-shapeRectangle":"Rectangle","dxDiagram-shapeEllipse":"Ellipse","dxDiagram-shapeCross":"Cross","dxDiagram-shapeTriangle":"Triangle","dxDiagram-shapeDiamond":"Diamond","dxDiagram-shapeHeart":"Heart","dxDiagram-shapePentagon":"Pentagon","dxDiagram-shapeHexagon":"Hexagon","dxDiagram-shapeOctagon":"Octagon","dxDiagram-shapeStar":"Star","dxDiagram-shapeArrowLeft":"Left Arrow","dxDiagram-shapeArrowUp":"Up Arrow","dxDiagram-shapeArrowRight":"Right Arrow","dxDiagram-shapeArrowDown":"Down Arrow","dxDiagram-shapeArrowUpDown":"Up Down Arrow","dxDiagram-shapeArrowLeftRight":"Left Right Arrow","dxDiagram-shapeProcess":"Process","dxDiagram-shapeDecision":"Decision","dxDiagram-shapeTerminator":"Terminator","dxDiagram-shapePredefinedProcess":"Predefined Process","dxDiagram-shapeDocument":"Document","dxDiagram-shapeMultipleDocuments":"Multiple Documents","dxDiagram-shapeManualInput":"Manual Input","dxDiagram-shapePreparation":"Preparation","dxDiagram-shapeData":"Data","dxDiagram-shapeDatabase":"Database","dxDiagram-shapeHardDisk":"Hard Disk","dxDiagram-shapeInternalStorage":"Internal Storage","dxDiagram-shapePaperTape":"Paper Tape","dxDiagram-shapeManualOperation":"Manual Operation","dxDiagram-shapeDelay":"Delay","dxDiagram-shapeStoredData":"Stored Data","dxDiagram-shapeDisplay":"Display","dxDiagram-shapeMerge":"Merge","dxDiagram-shapeConnector":"Connector","dxDiagram-shapeOr":"Or","dxDiagram-shapeSummingJunction":"Summing Junction","dxDiagram-shapeContainerDefaultText":"Container","dxDiagram-shapeVerticalContainer":"Vertical Container","dxDiagram-shapeHorizontalContainer":"Horizontal Container","dxDiagram-shapeCardDefaultText":"Person's Name","dxDiagram-shapeCardWithImageOnLeft":"Card with Image on the Left","dxDiagram-shapeCardWithImageOnTop":"Card with Image on the Top","dxDiagram-shapeCardWithImageOnRight":"Card with Image on the Right","dxGantt-dialogTitle":"Title","dxGantt-dialogStartTitle":"Start","dxGantt-dialogEndTitle":"End","dxGantt-dialogProgressTitle":"Progress","dxGantt-dialogResourcesTitle":"Resources","dxGantt-dialogResourceManagerTitle":"Resource Manager","dxGantt-dialogTaskDetailsTitle":"Task Details","dxGantt-dialogEditResourceListHint":"Edit Resource List","dxGantt-dialogEditNoResources":"No resources","dxGantt-dialogButtonAdd":"Add","dxGantt-contextMenuNewTask":"New Task","dxGantt-contextMenuNewSubtask":"New Subtask","dxGantt-contextMenuDeleteTask":"Delete Task","dxGantt-contextMenuDeleteDependency":"Delete Dependency","dxGantt-dialogTaskDeleteConfirmation":"Deleting a task also deletes all its dependencies and subtasks. Are you sure you want to delete this task?","dxGantt-dialogDependencyDeleteConfirmation":"Are you sure you want to delete the dependency from the task?","dxGantt-dialogResourcesDeleteConfirmation":"Deleting a resource also deletes it from tasks to which this resource is assigned. Are you sure you want to delete these resources? Resource: {0}","dxGantt-dialogConstraintCriticalViolationMessage":"The task you are attempting to move is linked to a second task by a dependency relation. This change would conflict with dependency rules. How would you like to proceed?","dxGantt-dialogConstraintViolationMessage":"The task you are attempting to move is linked to a second task by a dependency relation. How would you like to proceed?","dxGantt-dialogCancelOperationMessage":"Cancel the operation","dxGantt-dialogDeleteDependencyMessage":"Delete the dependency","dxGantt-dialogMoveTaskAndKeepDependencyMessage":"Move the task and keep the dependency","dxGantt-undo":"Undo","dxGantt-redo":"Redo","dxGantt-expandAll":"Expand All","dxGantt-collapseAll":"Collapse All","dxGantt-addNewTask":"Add New Task","dxGantt-deleteSelectedTask":"Delete Selected Task","dxGantt-zoomIn":"Zoom In","dxGantt-zoomOut":"Zoom Out","dxGantt-fullScreen":"Full Screen"}}},"930v":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("HaE+"),r=n("+4pY");function o(){o=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function d(e,t,n,i){var o=Object.create((t&&t.prototype instanceof v?t:v).prototype),a=new D(i||[]);return r(o,"_invoke",{value:x(e,n,a)}),o}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f="suspendedStart",p="executing",g="completed",m={};function v(){}function _(){}function y(){}var b={};l(b,s,function(){return this});var w=Object.getPrototypeOf,C=w&&w(w(M([])));C&&C!==n&&i.call(C,s)&&(b=C);var O=y.prototype=v.prototype=Object.create(b);function S(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function k(e,t){function n(r,o,a,s){var c=h(e[r],e,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==typeof l&&i.call(l,"__await")?t.resolve(l.__await).then(function(e){n("next",e,a,s)},function(e){n("throw",e,a,s)}):t.resolve(l).then(function(e){u.value=e,a(u)},function(e){return n("throw",e,a,s)})}s(c.arg)}var o;r(this,"_invoke",{value:function(e,i){function r(){return new t(function(t,r){n(e,i,t,r)})}return o=o?o.then(r,r):r()}})}function x(t,n,i){var r=f;return function(o,a){if(r===p)throw new Error("Generator is already running");if(r===g){if("throw"===o)throw a;return{value:e,done:!0}}for(i.method=o,i.arg=a;;){var s=i.delegate;if(s){var c=T(s,i);if(c){if(c===m)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===f)throw r=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=p;var u=h(t,n,i);if("normal"===u.type){if(r=i.done?g:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=g,i.method="throw",i.arg=u.arg)}}}function T(t,n){var i=n.method,r=t.iterator[i];if(r===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m;var o=h(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function M(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;I(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:M(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),m}},t}var a=function(){return Object(r.a)().easing("cubic-bezier(0.0, 0.0, 0.2, 1)").duration(300)},s=function(e){var t,n,i=e.width+8,o=Object(r.a)(),s=Object(r.a)();return e.isEndSide?(t=i+"px",n="0px"):(t=-i+"px",n="0px"),o.addElement(e.menuInnerEl).fromTo("transform","translateX(".concat(t,")"),"translateX(".concat(n,")")),s.addElement(e.backdropEl).fromTo("opacity",.01,.32),a().addAnimation([o,s])},c=function(e){var t,n,i=e.width;e.isEndSide?(t=-i+"px",n=i+"px"):(t=i+"px",n=-i+"px");var o=Object(r.a)().addElement(e.menuInnerEl).fromTo("transform","translateX(".concat(n,")"),"translateX(0px)"),s=Object(r.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)","translateX(".concat(t,")")),c=Object(r.a)().addElement(e.backdropEl).fromTo("opacity",.01,.32);return a().addAnimation([o,c,s])},u=function(e){var t=e.width*(e.isEndSide?-1:1)+"px",n=Object(r.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)","translateX(".concat(t,")"));return a().addAnimation(n)},l=function(){var e=new Map,t=[],n=function(){var e=Object(i.a)(o().mark(function e(t){var n;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p(t);case 2:if(!(n=e.sent)){e.next=5;break}return e.abrupt("return",n.open());case 5:return e.abrupt("return",!1);case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),r=function(){var e=Object(i.a)(o().mark(function e(t){var n;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,void 0!==t?p(t):g();case 2:if(void 0===(n=e.sent)){e.next=5;break}return e.abrupt("return",n.close());case 5:return e.abrupt("return",!1);case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),a=function(){var e=Object(i.a)(o().mark(function e(t){var n;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p(t);case 2:if(!(n=e.sent)){e.next=5;break}return e.abrupt("return",n.toggle());case 5:return e.abrupt("return",!1);case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=Object(i.a)(o().mark(function e(t,n){var i;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p(n);case 2:return(i=e.sent)&&(i.disabled=!t),e.abrupt("return",i);case 5:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),d=function(){var e=Object(i.a)(o().mark(function e(t,n){var i;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p(n);case 2:return(i=e.sent)&&(i.swipeGesture=t),e.abrupt("return",i);case 5:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),h=function(){var e=Object(i.a)(o().mark(function e(t){var n;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null==t){e.next=7;break}return e.next=3,p(t);case 3:return e.abrupt("return",void 0!==(n=e.sent)&&n.isOpen());case 7:return e.next=9,g();case 9:return e.abrupt("return",void 0!==e.sent);case 11:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=Object(i.a)(o().mark(function e(t){var n;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p(t);case 2:if(!(n=e.sent)){e.next=5;break}return e.abrupt("return",!n.disabled);case 5:return e.abrupt("return",!1);case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=Object(i.a)(o().mark(function e(n){var i,r;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k();case 2:if("start"!==n&&"end"!==n){e.next=9;break}if(!(i=S(function(e){return e.side===n&&!e.disabled}))){e.next=6;break}return e.abrupt("return",i);case 6:return e.abrupt("return",S(function(e){return e.side===n}));case 9:if(null==n){e.next=11;break}return e.abrupt("return",S(function(e){return e.menuId===n}));case 11:if(!(r=S(function(e){return!e.disabled}))){e.next=14;break}return e.abrupt("return",r);case 14:return e.abrupt("return",t.length>0?t[0].el:void 0);case 15:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),g=function(){var e=Object(i.a)(o().mark(function e(){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k();case 2:return e.abrupt("return",w());case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),m=function(){var e=Object(i.a)(o().mark(function e(){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k();case 2:return e.abrupt("return",C());case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),v=function(){var e=Object(i.a)(o().mark(function e(){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k();case 2:return e.abrupt("return",O());case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),_=function(t,n){e.set(t,n)},y=function(e){var n=e.side;t.filter(function(t){return t.side===n&&t!==e}).forEach(function(e){return e.disabled=!0})},b=function(){var e=Object(i.a)(o().mark(function e(t,n,i){var r;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!O()){e.next=2;break}return e.abrupt("return",!1);case 2:if(!n){e.next=9;break}return e.next=5,g();case 5:if(!(r=e.sent)||t.el===r){e.next=9;break}return e.next=9,r.setOpen(!1,!1);case 9:return e.abrupt("return",t._setOpen(n,i));case 10:case"end":return e.stop()}},e)}));return function(t,n,i){return e.apply(this,arguments)}}(),w=function(){return S(function(e){return e._isOpen})},C=function(){return t.map(function(e){return e.el})},O=function(){return t.some(function(e){return e.isAnimating})},S=function(e){var n=t.find(e);if(void 0!==n)return n.el},k=function(){return Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(function(e){return e.componentOnReady()}))};return _("reveal",u),_("push",c),_("overlay",s),{registerAnimation:_,get:p,getMenus:m,getOpen:g,isEnabled:f,swipeGesture:d,isAnimating:v,isOpen:h,enable:l,toggle:a,close:r,open:n,_getOpenSync:w,_createAnimation:function(t,n){var i=e.get(t);if(!i)throw new Error("animation not registered");return i(n)},_register:function(e){t.indexOf(e)<0&&(e.disabled||y(e),t.push(e))},_unregister:function(e){var n=t.indexOf(e);n>-1&&t.splice(n,1)},_setOpen:b,_setActiveMenu:y}}()},"9Lc9":function(e,t,n){"use strict";var i=k(n("FKN7")),r=k(n("jeLr")),o=k(n("0osO")),a=k(n("D6VQ")),s=n("KAnu"),c=n("gpjr"),u=n("zl3R"),l=n("ti0F"),d=n("1LL4"),h=n("v4HY"),f=k(n("D8Ap")),p=n("vlix"),g=n("XgSC"),m=k(n("zTUP")),v=k(n("zBVi")),_=n("imRD"),y=n("GCD8"),b=k(n("ynD9")),w=k(n("XCcL")),C=k(n("LdFP")),O=n("eBB/"),S=k(n("IF55"));function k(e){return e&&e.__esModule?e:{default:e}}var x="ios"===C.default.current().platform,T=b.default.inherit({_supportedKeys:function(){return(0,d.extend)({},this.callBase(),{tab:function(e){if(this.option("opened"))if("instantly"!==this.option("applyValueMode")){var t=e.shiftKey?this._getLastPopupElement():this._getFirstPopupElement();t&&r.default.trigger(t,"focus"),e.preventDefault()}else this.close()},escape:function(e){return this.option("opened")&&e.preventDefault(),this.close(),!0},upArrow:function(e){return e.preventDefault(),e.stopPropagation(),!e.altKey||(this.close(),!1)},downArrow:function(e){return e.preventDefault(),e.stopPropagation(),!e.altKey||(this._validatedOpening(),!1)},enter:function(e){return this.option("opened")&&(e.preventDefault(),this._valueChangeEventHandler(e)),!0}})},_getDefaultButtons:function(){return this.callBase().concat([{name:"dropDown",Ctor:m.default}])},_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{value:null,onOpened:null,onClosed:null,opened:!1,acceptCustomValue:!0,applyValueMode:"instantly",deferRendering:!0,activeStateEnabled:!0,dropDownButtonTemplate:"dropDownButton",fieldTemplate:null,openOnFieldClick:!1,showDropDownButton:!0,buttons:void 0,dropDownOptions:{showTitle:!1},popupPosition:this._getDefaultPopupPosition(),onPopupInitialized:null,applyButtonText:(0,_.format)("OK"),cancelButtonText:(0,_.format)("Cancel"),buttonsLocation:"default",useHiddenSubmitElement:!1})},_getDefaultPopupPosition:function(e){var t=(0,g.getDefaultAlignment)(e);return{offset:{h:0,v:-1},my:t+" top",at:t+" bottom",collision:"flip flip"}},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"generic"===e.platform},options:{popupPosition:{offset:{v:0}}}}])},_inputWrapper:function(){return this.$element().find(".dx-dropdowneditor-input-wrapper")},_init:function(){this.callBase(),this._initVisibilityActions(),this._initPopupInitializedAction(),this._updatePopupPosition(this.option("rtlEnabled")),this._options.cache("dropDownOptions",this.option("dropDownOptions"))},_updatePopupPosition:function(e){var t=this._getDefaultPopupPosition(e),n=t.my,i=t.at,r=this.option("popupPosition");this.option("popupPosition",(0,d.extend)({},r,{my:n,at:i}))},_initVisibilityActions:function(){this._openAction=this._createActionByOption("onOpened",{excludeValidators:["disabled","readOnly"]}),this._closeAction=this._createActionByOption("onClosed",{excludeValidators:["disabled","readOnly"]})},_initPopupInitializedAction:function(){this._popupInitializedAction=this._createActionByOption("onPopupInitialized",{excludeValidators:["disabled","readOnly"]})},_initMarkup:function(){this._renderSubmitElement(),this.callBase(),this.$element().addClass("dx-dropdowneditor"),this.setAria("role","combobox")},_render:function(){this.callBase(),this._renderOpenHandler(),this._attachFocusOutHandler(),this._renderOpenedState()},_renderContentImpl:function(){this.option("deferRendering")||this._createPopup()},_renderInput:function(){this.callBase(),this.$element().wrapInner((0,i.default)("
").addClass("dx-dropdowneditor-input-wrapper")),this._$container=this.$element().children().eq(0),this._setDefaultAria()},_setDefaultAria:function(){this.setAria({haspopup:"true",autocomplete:"list"})},_readOnlyPropValue:function(){return!this.option("acceptCustomValue")||this.callBase()},_cleanFocusState:function(){this.callBase(),this.option("fieldTemplate")&&this._detachFocusEvents()},_getFieldTemplate:function(){return this.option("fieldTemplate")&&this._getTemplateByOption("fieldTemplate")},_renderMask:function(){this.option("fieldTemplate")||this.callBase()},_renderField:function(){var e=this._getFieldTemplate();e&&this._renderTemplatedField(e,this._fieldRenderData())},_renderPlaceholder:function(){this._getFieldTemplate()||this.callBase()},_renderValue:function(){this.option("useHiddenSubmitElement")&&this._setSubmitValue(),this.callBase().always(this._renderField.bind(this))},_renderTemplatedField:function(e,t){var n=this,o=(0,c.focused)(this._input()),a=this._$container;this._detachKeyboardEvents();var s=this._$beforeButtonsContainer&&this._$beforeButtonsContainer[0].parentNode,u=this._$afterButtonsContainer&&this._$afterButtonsContainer[0].parentNode;s&&s.removeChild(this._$beforeButtonsContainer[0]),u&&u.removeChild(this._$afterButtonsContainer[0]),this._detachFocusEvents(),a.empty();var l=(0,i.default)("
").addClass("dx-dropdowneditor-field-template-wrapper").appendTo(a);e.render({model:t,container:(0,h.getPublicElement)(l),onRendered:function(){var e=n._input();if(!e.length)throw f.default.Error("E1010");n._integrateInput(),o&&r.default.trigger(e,"focus")}}),a.prepend(this._$beforeButtonsContainer),a.append(this._$afterButtonsContainer)},_integrateInput:function(){this._refreshEvents(),this._refreshValueChangeEvent(),this._renderFocusState()},_refreshEmptinessEvent:function(){r.default.off(this._input(),"input blur",this._toggleEmptinessEventHandler),this._renderEmptinessEvent()},_fieldRenderData:function(){return this.option("value")},_initTemplates:function(){this._templateManager.addDefaultTemplates({dropDownButton:new O.FunctionTemplate(function(e){var t=(0,i.default)("
").addClass("dx-dropdowneditor-icon");(0,i.default)(e.container).append(t)})}),this.callBase()},_renderOpenHandler:function(){var e=this._inputWrapper(),t=(0,y.addNamespace)(w.default.name,this.NAME),n=this.option("openOnFieldClick");r.default.off(e,t),r.default.on(e,t,this._getInputClickHandler(n)),this.$element().toggleClass("dx-dropdowneditor-field-clickable",n),n&&(this._openOnFieldClickAction=this._createAction(this._openHandler.bind(this)))},_attachFocusOutHandler:function(){var e=this;x&&(this._detachFocusOutEvents(),r.default.on(this._inputWrapper(),(0,y.addNamespace)("focusout",this.NAME),function(t){var n=t.relatedTarget,r=e.content?(0,i.default)(e.content()).closest(".dx-dropdowneditor-overlay"):e._$popup;n&&e.option("opened")&&0===(0,i.default)(n).closest(".dx-dropdowneditor-overlay",r).length&&e.close()}))},_detachFocusOutEvents:function(){x&&r.default.off(this._inputWrapper(),(0,y.addNamespace)("focusout",this.NAME))},_getInputClickHandler:function(e){var t=this;return e?function(e){t._executeOpenAction(e)}:function(e){t._focusInput()}},_openHandler:function(){this._toggleOpenState()},_executeOpenAction:function(e){this._openOnFieldClickAction({event:e})},_keyboardEventBindingTarget:function(){return this._input()},_focusInput:function(){return!this.option("disabled")&&(this.option("focusStateEnabled")&&!(0,c.focused)(this._input())&&r.default.trigger(this._input(),"focus"),!0)},_toggleOpenState:function(e){this._focusInput()&&(this.option("readOnly")||(e=arguments.length?e:!this.option("opened"),this.option("opened",e)))},_renderOpenedState:function(){var e=this.option("opened");e&&this._createPopup(),this.$element().toggleClass("dx-dropdowneditor-active",e),this._setPopupOption("visible",e),this.setAria({expanded:e}),this.setAria("owns",e?this._popupContentId:void 0,this.$element())},_createPopup:function(){this._$popup||(this._$popup=(0,i.default)("
").addClass("dx-dropdowneditor-overlay").addClass(this.option("customOverlayCssClass")).appendTo(this.$element()),this._renderPopup(),this._renderPopupContent())},_renderPopupContent:s.noop,_renderPopup:function(){var e=(0,d.extend)(this._popupConfig(),this._options.cache("dropDownOptions"));this._popup=this._createComponent(this._$popup,S.default,e),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this),contentReady:this._contentReadyHandler.bind(this)}),this._contentReadyHandler(),this._setPopupContentId(this._popup.$content()),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_setPopupContentId:function(e){this._popupContentId="dx-"+new o.default,this.setAria("id",this._popupContentId,e)},_contentReadyHandler:s.noop,_popupConfig:function(){return{onInitialized:this._popupInitializedHandler(),position:(0,d.extend)(this.option("popupPosition"),{of:this.$element()}),showTitle:this.option("dropDownOptions.showTitle"),width:"auto",height:"auto",shading:!1,closeOnTargetScroll:!0,closeOnOutsideClick:this._closeOutsideDropDownHandler.bind(this),animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,toolbarItems:this._getPopupToolbarItems(),onPositioned:this._popupPositionedHandler.bind(this),fullScreen:!1,contentTemplate:null}},_popupInitializedHandler:function(){var e=this;if(this.option("onPopupInitialized"))return function(t){e._popupInitializedAction({popup:t.component})}},_popupPositionedHandler:function(e){e.position&&this._popup.overlayContent().toggleClass("dx-dropdowneditor-overlay-flipped",e.position.v.flip)},_popupShowingHandler:s.noop,_popupHidingHandler:function(){this.option("opened",!1)},_popupShownHandler:function(){this._openAction(),this._$validationMessage&&this._$validationMessage.dxOverlay("option","position",this._getValidationMessagePosition())},_popupHiddenHandler:function(){this._closeAction(),this._$validationMessage&&this._$validationMessage.dxOverlay("option","position",this._getValidationMessagePosition())},_getValidationMessagePosition:function(){var e="below";if(this._popup&&this._popup.option("visible")){var t=(0,p.setup)(this.$element()).top,n=(0,p.setup)(this._popup.$content()).top;e=t+this.option("popupPosition").offset.v>n?"below":"above"}return this.callBase(e)},_closeOutsideDropDownHandler:function(e){var t=(0,i.default)(e.target),n=this.getButton("dropDown"),r=n&&n.$element(),o=!!t.closest(this.$element()).length,a=!!t.closest(r).length;return!o&&!a},_clean:function(){delete this._openOnFieldClickAction,this._$popup&&(this._$popup.remove(),delete this._$popup,delete this._popup),this.callBase()},_setPopupOption:function(e,t){this._setWidgetOption("_popup",arguments)},_validatedOpening:function(){this.option("readOnly")||this._toggleOpenState(!0)},_getPopupToolbarItems:function(){return"useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[]},_getFirstPopupElement:function(){return this._popup._wrapper().find(".dx-popup-done.dx-button")},_getLastPopupElement:function(){return this._popup._wrapper().find(".dx-popup-cancel.dx-button")},_popupElementTabHandler:function(e){var t=(0,i.default)(e.currentTarget);(e.shiftKey&&t.is(this._getFirstPopupElement())||!e.shiftKey&&t.is(this._getLastPopupElement()))&&(r.default.trigger(this._input(),"focus"),e.preventDefault())},_popupElementEscHandler:function(){r.default.trigger(this._input(),"focus"),this.close()},_popupButtonInitializedHandler:function(e){e.component.registerKeyHandler("tab",this._popupElementTabHandler.bind(this)),e.component.registerKeyHandler("escape",this._popupElementEscHandler.bind(this))},_popupToolbarItemsConfig:function(){var e=[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}},{shortcut:"cancel",options:{onClick:this._cancelButtonHandler.bind(this),text:this.option("cancelButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}}];return this._applyButtonsLocation(e)},_applyButtonsLocation:function(e){var t=this.option("buttonsLocation"),n=e;if("default"!==t){var i=(0,s.splitPair)(t);(0,u.each)(n,function(e,t){(0,d.extend)(t,{toolbar:i[0],location:i[1]})})}return n},_applyButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_cancelButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_updatePopupWidth:s.noop,_popupOptionChanged:function(e){var t=v.default.getOptionsFromContainer(e);this._setPopupOption(t),-1!==Object.keys(t).indexOf("width")&&void 0===t.width&&this._updatePopupWidth()},_renderSubmitElement:function(){this.option("useHiddenSubmitElement")&&(this._$submitElement=(0,i.default)("").attr("type","hidden").appendTo(this.$element()))},_setSubmitValue:function(){this._getSubmitElement().val(this.option("value"))},_getSubmitElement:function(){return this.option("useHiddenSubmitElement")?this._$submitElement:this.callBase()},_dispose:function(){this._detachFocusOutEvents(),this.callBase()},_setDeprecatedOptions:function(){this.callBase(),(0,d.extend)(this._deprecatedOptions,{showPopupTitle:{since:"20.1",alias:"dropDownOptions.showTitle"}})},_optionChanged:function(e){switch(e.name){case"opened":this._renderOpenedState();break;case"onOpened":case"onClosed":this._initVisibilityActions();break;case"onPopupInitialized":this._initPopupInitializedAction();break;case"fieldTemplate":(0,l.isDefined)(e.value)?this._renderField():this._invalidate();break;case"acceptCustomValue":case"openOnFieldClick":this._invalidate();break;case"dropDownButtonTemplate":case"showDropDownButton":this._updateButtons(["dropDown"]);break;case"dropDownOptions":this._popupOptionChanged(e),this._options.cache("dropDownOptions",this.option("dropDownOptions"));break;case"popupPosition":case"deferRendering":break;case"applyValueMode":case"applyButtonText":case"cancelButtonText":case"buttonsLocation":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"showPopupTitle":this._setPopupOption("showTitle",e.value);break;case"useHiddenSubmitElement":this._$submitElement&&(this._$submitElement.remove(),this._$submitElement=void 0),this._renderSubmitElement();break;case"rtlEnabled":this._updatePopupPosition(e.value),this.callBase(e);break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)},field:function(){return(0,h.getPublicElement)(this._input())},content:function(){return this._popup?this._popup.content():null}});(0,a.default)("dxDropDownEditor",T),e.exports=T,e.exports.default=e.exports},"9ans":function(e,t,n){"use strict";n.d(t,"b",function(){return m}),n.d(t,"a",function(){return _});var i=n("tk/3"),r=n("6BQF"),o=n("JvtB"),a=n("c7tv"),s=n("z6cu"),c=n("3Lvj"),u=n("kiQV"),l=n("fXoL"),d=n("tyNb"),h=n("aECQ"),f=n("S/Aq"),p=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},g=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]-1&&i>-1}return n>-1}},e.prototype.checkRole=function(e){return!e||this.currentUser.accessRoles.permissions.indexOf(e)>-1},e.prototype.checkRoles=function(e){var t=this,n=!1;return e.every(function(e){return!(t.currentUser.accessRoles.permissions.indexOf(e)>-1&&(n=!0,1))}),n},e.prototype.getAccessRoute=function(){var e="/main-menu";return Object(c.y)()||this.currentUser.accessRoles.permissions.every(function(t){return v[t]?(e=v[t],!1):(e="/auth/login",!0)}),e},e.prototype.closeIndexedDbs=function(e){return p(this,void 0,void 0,function(){var t,n,i;return g(this,function(r){switch(r.label){case 0:for(t=[],n=function(n){var i=window.indexedDB.open(e[n].name,e[n].version),r=new Promise(function(e){i.onsuccess=function(){i.result.close(),e(!0)},i.onerror=function(){e(!1)},i.onblocked=function(){e(!1)}});t.push(r)},i=0;ie[t._sizeAttr]()}},{key:"_trySetScrollable",value:function(e,t){var n,i=this,r=o(e),a=i._component.option("scrollSensitivity"),s=i.isScrollable(r);return s&&(a>(n=i._calculateDistanceToBorders(r,t))[i._limitProps.start]?i._preventScroll||(i._scrollSpeed=-i._calculateScrollSpeed(n[i._limitProps.start]),i._$scrollableAtPointer=r):a>n[i._limitProps.end]?i._preventScroll||(i._scrollSpeed=i._calculateScrollSpeed(n[i._limitProps.end]),i._$scrollableAtPointer=r):(s=!1,i._preventScroll=!1)),s}},{key:"_calculateDistanceToBorders",value:function(e,t){var n,i=e.get(0);return i?(n=T(i),{left:t.x-n.left,top:t.y-n.top,right:n.right-t.x,bottom:n.bottom-t.y}):{}}},{key:"_calculateScrollSpeed",value:function(e){var t=this._component,n=t.option("scrollSensitivity"),i=t.option("scrollSpeed");return Math.ceil(Math.pow((n-e)/n,2)*i)}},{key:"scrollByStep",value:function(){var e,t=this;if(t._$scrollableAtPointer&&t._scrollSpeed){if(t._$scrollableAtPointer.hasClass("dx-scrollable-container")){var n=t._$scrollableAtPointer.closest(".dx-scrollable"),i=n.data("dxScrollable")||n.data("dxScrollView");i&&((e=i.scrollOffset())[t._limitProps.start]+=t._scrollSpeed,i.scrollTo(e))}else e=t._$scrollableAtPointer[t._scrollValue]()+t._scrollSpeed,t._$scrollableAtPointer[t._scrollValue](e);var r=t._component._dragMoveArgs;r&&t._component._dragMoveHandler(r)}}},{key:"reset",value:function(){this._$scrollableAtPointer=null,this._scrollSpeed=0,this._preventScroll=!0}},{key:"isOutsideScrollable",value:function(e,t){if(!e)return!1;var n=T(e.get(0)),i=n[this._limitProps.start],r=n[this._sizeAttr],o=B(t),a="width"===this._sizeAttr?o.x:o.y;return ai+r}}])&&function(e,t){for(var n=0;n"===n[0]&&(n=n.slice(1)),s.on(t,A,n,r,this._dragStartHandler.bind(this)),s.on(t,P,r,this._dragMoveHandler.bind(this)),s.on(t,L,r,this._dragEndHandler.bind(this)),s.on(t,R,r,this._dragEnterHandler.bind(this)),s.on(t,j,r,this._dragLeaveHandler.bind(this))}},_dragElementIsCloned:function(){return this._$dragElement&&this._$dragElement.hasClass(this._addWidgetPrefix(F))},_getDragTemplateArgs:function(e,t){return{container:m(t),model:{itemData:this.option("itemData"),itemElement:m(e)}}},_createDragElement:function(e){var t=e,n=this.option("clone"),i=this._getContainer(),r=this.option("dragTemplate");return r?(r=this._getTemplate(r),t=o("
").appendTo(i),r.render(this._getDragTemplateArgs(e,t))):n&&(t=o("
").appendTo(i),e.clone().css({width:e.css("width"),height:e.css("height")}).appendTo(t)),t.toggleClass(this._addWidgetPrefix(F),t.get(0)!==e.get(0)).toggleClass("dx-rtl",this.option("rtlEnabled"))},_resetDragElement:function(){this._dragElementIsCloned()?this._$dragElement.remove():this._toggleDraggingClass(!1),this._$dragElement=null},_resetSourceElement:function(){this._toggleDragSourceClass(!1),this._$sourceElement=null},_detachEventHandlers:function(){s.off(this._$content(),"."+M),s.off(this._getArea(),"."+M)},_move:function(e,t){l.move(t||this._$dragElement,e)},_getDraggableElement:function(e){var t=this._getSourceElement();if(t)return t;if(this.option("allowMoveByClick"))return this.$element();var n=o(e&&e.target),i=this._getItemsSelector();if(">"===i[0]){var r=this._$content().find(i);r.is(n)||(n=n.closest(r))}return n},_getSourceElement:function(){return this._getSourceDraggable()._$sourceElement},_pointerDownHandler:function(e){if(!v.needSkipEvent(e)){var t={},n=this.$element(),i=this.option("dragDirection");"horizontal"!==i&&"both"!==i||(t.left=e.pageX-n.offset().left+l.locate(n).left-n.width()/2),"vertical"!==i&&"both"!==i||(t.top=e.pageY-n.offset().top+l.locate(n).top-n.height()/2),this._move(t,n),this._getAction("onDragMove")(this._getEventArgs(e))}},_isValidElement:function(e,t){var n=this.option("handle"),i=o(e.originalEvent&&e.originalEvent.target);return!(n&&!i.closest(n).length||!t.length||t.is(".dx-state-disabled, .dx-state-disabled *"))},_dragStartHandler:function(e){var t=this._getDraggableElement(e);if(!this._$sourceElement)if(this._isValidElement(e,t)){var n=this._getDragStartArgs(e,t);if(this._getAction("onDragStart")(n),n.cancel)e.cancel=!0;else{this.option("itemData",n.itemData),this._setSourceDraggable(),this._$sourceElement=t;var i=t.offset(),r=this._$dragElement=this._createDragElement(t);this._toggleDraggingClass(!0),this._toggleDragSourceClass(!0);var o="fixed"===r.css("position");this._initPosition(p({},n,{dragElement:r.get(0),initialOffset:o&&i}));var a=this._getArea(),s=this._getAreaOffset(a),c=this._getBoundOffset(),u=a.outerWidth(),l=a.outerHeight(),d=r.width(),h=r.height(),f=r.offset().left-s.left,g=r.offset().top-s.top;a.length&&(e.maxLeftOffset=f-c.left,e.maxRightOffset=u-f-d-c.right,e.maxTopOffset=g-c.top,e.maxBottomOffset=l-g-h-c.bottom),this.option("autoScroll")&&this._startAnimator()}}else e.cancel=!0},_getAreaOffset:function(e){return e&&b.offset(e)||{left:0,top:0}},_toggleDraggingClass:function(e){this._$dragElement&&this._$dragElement.toggleClass(this._addWidgetPrefix("dragging"),e)},_toggleDragSourceClass:function(e,t){var n=t||this._$sourceElement;n&&n.toggleClass(this._addWidgetPrefix("source"),e)},_getBoundOffset:function(){var e=this.option("boundOffset");return w.isFunction(e)&&(e=e.call(this)),c.quadToObject(e)},_getArea:function(){var e=this.option("boundary");return w.isFunction(e)&&(e=e.call(this)),o(e)},_getContainer:function(){var e=this.option("container");return void 0===e&&(e=O.value()),o(e)},_dragMoveHandler:function(e){if(this._dragMoveArgs=e,this._$dragElement){var t=e.offset,n=this._startPosition;this._move({left:n.left+t.x,top:n.top+t.y}),this._updateScrollable(e);var i=this._getEventArgs(e);this._getAction("onDragMove")(i),!0!==i.cancel&&this._getTargetDraggable().dragMove(e)}else e.cancel=!0},_updateScrollable:function(e){var t=this;if(t.option("autoScroll")){var n=B(e),i=t.getElementsFromPoint(n);t._verticalScrollHelper.updateScrollable(i,n),t._horizontalScrollHelper.updateScrollable(i,n)}},getElementsFromPoint:function(e,t){var n=(t||this._$dragElement.get(0)).ownerDocument;if(h.msie){var i=n.msElementsFromPoint(e.x,e.y);return i?Array.prototype.slice.call(i):[]}return n.elementsFromPoint(e.x,e.y)},_getScrollable:function(e){var t,n=this;return e.parents().toArray().some(function(e){var i=o(e);if(n._horizontalScrollHelper.isScrollable(i)||n._verticalScrollHelper.isScrollable(i))return t=i,!0}),t},_defaultActionArgs:function(){var e=this.callBase.apply(this,arguments),t=this.option("component");return t&&(e.component=t,e.element=t.element()),e},_getEventArgs:function(e){var t=this._getSourceDraggable(),n=this._getTargetDraggable();return{event:e,itemData:t.option("itemData"),itemElement:m(t._$sourceElement),fromComponent:t.option("component")||t,toComponent:n.option("component")||n,fromData:t.option("data"),toData:n.option("data")}},_getDragStartArgs:function(e,t){var n=this._getEventArgs(e);return{event:n.event,itemData:n.itemData,itemElement:t,fromData:n.fromData}},_revertItemToInitialPosition:function(){!this._dragElementIsCloned()&&this._move(this._initialLocate,this._$sourceElement)},_dragEndHandler:function(e){var t=this,n=new D,i=this._getEventArgs(e),r=this._getEventArgs(e),o=this._getTargetDraggable(),a=!0;try{this._getAction("onDragEnd")(i)}finally{E(I(i.cancel)).done(function(e){if(!e&&(o!==t&&o._getAction("onDrop")(r),!r.cancel))return a=!1,void E(I(o.dragEnd(i))).always(n.resolve);n.resolve()}).fail(n.resolve),n.done(function(){a&&t._revertItemToInitialPosition(),t.reset(),o.reset(),t._stopAnimator(),t._horizontalScrollHelper.reset(),t._verticalScrollHelper.reset(),t._resetDragElement(),t._resetSourceElement(),t._resetTargetDraggable(),t._resetSourceDraggable()})}},_isTargetOverAnotherDraggable:function(e){var t=this,n=this._getSourceDraggable();if(this===n)return!1;var i=n._$dragElement,r=n.$element(),a=this.$element(),s=B(e),c=this.getElementsFromPoint(s,e.target).filter(function(e){var n=o(e);if(n.hasClass(t._addWidgetPrefix()))return!n.closest(i).length})[0],u=this._getSourceElement(),l=c===r.get(0),d=o(c).closest(u).length;return!c||c===a.get(0)&&!l&&!d},_dragEnterHandler:function(e){this._isTargetOverAnotherDraggable(e)&&this._setTargetDraggable(),this._getSourceDraggable().dragEnter(e)},_dragLeaveHandler:function(e){this._resetTargetDraggable(),this!==this._getSourceDraggable()&&this.reset(),this._getSourceDraggable().dragLeave(e)},_getAction:function(e){return this["_"+e+"Action"]||this._createActionByOption(e)},_getAnonymousTemplateName:function(){return"content"},_initTemplates:function(){this.option("contentTemplate")&&(this._templateManager.addDefaultTemplates({content:new k}),this.callBase.apply(this,arguments))},_render:function(){this.callBase(),this.$element().addClass(this._addWidgetPrefix());var e=this._templateManager.anonymousTemplateName===this.option("contentTemplate"),t=this._getTemplateByOption("contentTemplate");t&&o(t.render({container:this.element(),transclude:e}))},_optionChanged:function(e){var t=e.name;switch(t){case"onDragStart":case"onDragMove":case"onDragEnd":case"onDrop":this["_"+t+"Action"]=this._createActionByOption(t);break;case"dragTemplate":case"contentTemplate":case"container":case"clone":break;case"allowMoveByClick":case"dragDirection":case"disabled":case"boundary":case"filter":case"immediate":this._resetDragElement(),this._detachEventHandlers(),this._attachEventHandlers();break;case"autoScroll":this._verticalScrollHelper.reset(),this._horizontalScrollHelper.reset();break;case"scrollSensitivity":case"scrollSpeed":case"boundOffset":case"handle":case"group":case"data":case"itemData":break;default:this.callBase(e)}},_getTargetDraggable:function(){return i||this},_getSourceDraggable:function(){return r||this},_setTargetDraggable:function(){var e=this.option("group"),t=this._getSourceDraggable();e&&e===t.option("group")&&(i=this)},_setSourceDraggable:function(){r=this},_resetSourceDraggable:function(){r=null},_resetTargetDraggable:function(){i=null},_dispose:function(){this.callBase(),this._detachEventHandlers(),this._resetDragElement(),this._resetTargetDraggable(),this._resetSourceDraggable(),this._$sourceElement=null,this._stopAnimator()}});u(M,H),e.exports=H,e.exports.default=e.exports},"9ppp":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},"9rRi":function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n("wd/R"))},"A+xa":function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(e){return e+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(e)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(e)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(n("wd/R"))},"A8u/":function(e,t,n){"use strict";var i=a(n("eWCF")),r=a(n("qOm7")),o=a(n("VEhS"));function a(e){return e&&e.__esModule?e:{default:e}}var s,c="en";e.exports=(0,i.default)({locale:(s=c,function(e){if(!e)return s;s=e}),getValueByClosestLocale:function(e){for(var t,n=this.locale(),i=e(n);!i&&!t;)(n=(0,o.default)(r.default,n))?i=e(n):t=!0;return void 0===i&&n!==c?e(c):i}})},ABqa:function(e,t,n){"use strict";var i,r=(i=n("wj3C"))&&"object"==typeof i&&"default"in i?i.default:i,o=n("mrSG"),a=n("S+S0"),s={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},c=function(e){function t(n,i,r){var o=e.call(this,i)||this;return Object.setPrototypeOf(o,t.prototype),o.code=n,o.details=r,o}return o.__extends(t,e),t}(Error),u=function(){function e(e,t){var n=this;this.auth=null,this.messaging=null,this.auth=e.getImmediate({optional:!0}),this.messaging=t.getImmediate({optional:!0}),this.auth||e.get().then(function(e){return n.auth=e},function(){}),this.messaging||t.get().then(function(e){return n.messaging=e},function(){})}return e.prototype.getAuthToken=function(){return o.__awaiter(this,void 0,void 0,function(){var e;return o.__generator(this,function(t){switch(t.label){case 0:if(!this.auth)return[2,void 0];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.auth.getToken()];case 2:return(e=t.sent())?[2,e.accessToken]:[2,void 0];case 3:return t.sent(),[2,void 0];case 4:return[2]}})})},e.prototype.getInstanceIdToken=function(){return o.__awaiter(this,void 0,void 0,function(){var e;return o.__generator(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),this.messaging?[4,this.messaging.getToken()]:[2,void 0];case 1:return(e=t.sent())?[2,e]:[2,void 0];case 2:return t.sent(),[2,void 0];case 3:return[2]}})})},e.prototype.getContext=function(){return o.__awaiter(this,void 0,void 0,function(){var e,t;return o.__generator(this,function(n){switch(n.label){case 0:return[4,this.getAuthToken()];case 1:return e=n.sent(),[4,this.getInstanceIdToken()];case 2:return t=n.sent(),[2,{authToken:e,instanceIdToken:t}]}})})},e}();function l(e,t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=t(e[i]));return n}var d,h=function(){function e(){}return e.prototype.encode=function(e){var t=this;if(null==e)return null;if(e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&isFinite(e))return e;if(!0===e||!1===e)return e;if("[object String]"===Object.prototype.toString.call(e))return e;if(Array.isArray(e))return e.map(function(e){return t.encode(e)});if("function"==typeof e||"object"==typeof e)return l(e,function(e){return t.encode(e)});throw new Error("Data cannot be encoded in JSON: "+e)},e.prototype.decode=function(e){var t=this;if(null==e)return e;if(e["@type"])switch(e["@type"]){case"type.googleapis.com/google.protobuf.Int64Value":case"type.googleapis.com/google.protobuf.UInt64Value":var n=Number(e.value);if(isNaN(n))throw new Error("Data cannot be decoded from JSON: "+e);return n;default:throw new Error("Data cannot be decoded from JSON: "+e)}return Array.isArray(e)?e.map(function(e){return t.decode(e)}):"function"==typeof e||"object"==typeof e?l(e,function(e){return t.decode(e)}):e},e}(),f=function(){function e(e,t,n,i){var r=this;void 0===i&&(i="us-central1"),this.app_=e,this.region_=i,this.serializer=new h,this.emulatorOrigin=null,this.INTERNAL={delete:function(){return r.deleteService()}},this.contextProvider=new u(t,n),this.cancelAllRequests=new Promise(function(e){r.deleteService=function(){return e()}})}return Object.defineProperty(e.prototype,"app",{get:function(){return this.app_},enumerable:!0,configurable:!0}),e.prototype._url=function(e){var t=this.app_.options.projectId,n=this.region_;return null!==this.emulatorOrigin?this.emulatorOrigin+"/"+t+"/"+n+"/"+e:"https://"+n+"-"+t+".cloudfunctions.net/"+e},e.prototype.useFunctionsEmulator=function(e){this.emulatorOrigin=e},e.prototype.httpsCallable=function(e,t){var n=this;return function(i){return n.call(e,i,t||{})}},e.prototype.postJSON=function(e,t,n){return o.__awaiter(this,void 0,void 0,function(){var i,r;return o.__generator(this,function(o){switch(o.label){case 0:n.append("Content-Type","application/json"),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,fetch(e,{method:"POST",body:JSON.stringify(t),headers:n})];case 2:return i=o.sent(),[3,4];case 3:return o.sent(),[2,{status:0,json:null}];case 4:r=null,o.label=5;case 5:return o.trys.push([5,7,,8]),[4,i.json()];case 6:return r=o.sent(),[3,8];case 7:return o.sent(),[3,8];case 8:return[2,{status:i.status,json:r}]}})})},e.prototype.call=function(e,t,n){return o.__awaiter(this,void 0,void 0,function(){var i,r,a,u,l,d,h,f;return o.__generator(this,function(o){switch(o.label){case 0:return i=this._url(e),t=this.serializer.encode(t),r={data:t},a=new Headers,[4,this.contextProvider.getContext()];case 1:return(u=o.sent()).authToken&&a.append("Authorization","Bearer "+u.authToken),u.instanceIdToken&&a.append("Firebase-Instance-ID-Token",u.instanceIdToken),l=n.timeout||7e4,[4,Promise.race([this.postJSON(i,r,a),(p=l,new Promise(function(e,t){setTimeout(function(){t(new c("deadline-exceeded","deadline-exceeded"))},p)})),this.cancelAllRequests])];case 2:if(!(d=o.sent()))throw new c("cancelled","Firebase Functions instance was deleted.");if(h=function(e,t,n){var i=function(e){if(e>=200&&e<300)return"ok";switch(e){case 0:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 500:return"internal";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}(e),r=i,o=void 0;try{var a=t&&t.error;if(a){var u=a.status;if("string"==typeof u){if(!s[u])return new c("internal","internal");i=s[u],r=u}var l=a.message;"string"==typeof l&&(r=l),void 0!==(o=a.details)&&(o=n.decode(o))}}catch(d){}return"ok"===i?null:new c(i,r,o)}(d.status,d.json,this.serializer))throw h;if(!d.json)throw new c("internal","Response is not valid JSON object.");if(void 0===(f=d.json.data)&&(f=d.json.result),void 0===f)throw new c("internal","Response is missing data field.");return[2,{data:this.serializer.decode(f)}]}var p})})},e}();d={Functions:f},r.INTERNAL.registerComponent(new a.Component("functions",function(e,t){var n=e.getProvider("app").getImmediate(),i=e.getProvider("auth-internal"),r=e.getProvider("messaging");return new f(n,i,r,t)},"PUBLIC").setServiceProps(d).setMultipleInstances(!0)),r.registerVersion("@firebase/functions","0.4.28")},AJM7:function(e,t,n){"use strict";var i,r,o,a,s,c=n("ti0F"),u=n("XpgS").inArray,l=n("zl3R"),d=["year","month","day"],h=["year","month","day","hour","minute"];e.exports=(i=function(e,t){var n=e.dataField||e.selector;return"search"===t&&(n=e.displayField||e.calculateDisplayValue||n),n},r=function(e){return"date"===e||"datetime"===e},o=function(e,t){var n,o,a,s,u=this,l=i(u,t);if(Array.isArray(e)&&c.isDefined(e[0])&&c.isDefined(e[1]))return o=[l,">=",e[0]],a=[l,"<=",e[1]],r(u.dataType)&&(s=e[1]).getHours()+s.getMinutes()+s.getSeconds()+s.getMilliseconds()<1&&(n=new Date(e[1].getTime()),"date"===u.dataType&&n.setDate(e[1].getDate()+1),a=[l,"<",n]),[o,"and",a]},a=function(t,n,r){var o,a,s,u,d=this,h=c.isDate(u=t)?[u.getFullYear(),u.getMonth(),u.getDate(),u.getHours(),u.getMinutes(),u.getSeconds()]:l.map((""+u).split("/"),function(e,t){return 1===t?Number(e)-1:Number(e)}),f=i(d,r);switch("headerFilter"===r?s=e.exports.getGroupInterval(d)[h.length-1]:"datetime"===d.dataType&&(s="minute"),s){case"year":o=new Date(h[0],0,1),a=new Date(h[0]+1,0,1);break;case"month":o=new Date(h[0],h[1],1),a=new Date(h[0],h[1]+1,1);break;case"quarter":o=new Date(h[0],3*h[1],1),a=new Date(h[0],3*h[1]+3,1);break;case"hour":o=new Date(h[0],h[1],h[2],h[3]),a=new Date(h[0],h[1],h[2],h[3]+1);break;case"minute":o=new Date(h[0],h[1],h[2],h[3],h[4]),a=new Date(h[0],h[1],h[2],h[3],h[4]+1);break;case"second":o=new Date(h[0],h[1],h[2],h[3],h[4],h[5]),a=new Date(h[0],h[1],h[2],h[3],h[4],h[5]+1);break;default:o=new Date(h[0],h[1],h[2]),a=new Date(h[0],h[1],h[2]+1)}switch(n){case"<":return[f,"<",o];case"<=":return[f,"<",a];case">":return[f,">=",a];case">=":return[f,">=",o];case"<>":return[[f,"<",o],"or",[f,">=",a]];default:return[[f,">=",o],"and",[f,"<",a]]}},s=function(t,n,r){var o=i(this,r),a=e.exports.getGroupInterval(this);if("headerFilter"===r&&a&&c.isDefined(t)){var s=(""+t).split("/"),u=Number(s[s.length-1]);return[[o,">=",u],"and",[o,"<",u+a[s.length-1]]]}return[o,n||"=",t]},{defaultCalculateFilterExpression:function(e,t,n){var u=this,l=i(u,n),d=u.calculateDisplayValue&&"search"===n,h=d&&u.lookup&&u.lookup.dataType||u.dataType,f=null;if("headerFilter"!==n&&"filterBuilder"!==n||null!==e)if("string"!==h||u.lookup&&!d){if("between"===t)return o.apply(u,[e,n]);if(r(h)&&c.isDefined(e))return a.apply(u,arguments);if("number"===h)return s.apply(u,arguments);"object"!==h&&(f=[l,t||"=",e])}else f=[l,t||"contains",e];else f=[l,t||"=",null],"string"===h&&(f=[f,"="===t?"or":"and",[l,t||"=",""]]);return f},getGroupInterval:function(e){var t,n=[],i=["year","month","day","hour","minute","second"],o=e.headerFilter&&e.headerFilter.groupInterval,a="quarter"===o?"month":o;return r(e.dataType)&&null!==o?(n="datetime"===e.dataType?h:d,(t=u(a,i))>=0?((n=i.slice(0,t)).push(o),n):n):c.isDefined(o)?Array.isArray(o)?o:[o]:void 0}})},AKYK:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("vuIU"),r=n("1OyB"),o=n("fXoL"),a=function(){var e=Object(i.a)(function e(){Object(r.a)(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.Vb({type:e,selectors:[["","ionicSelectableTitleTemplate",""]]}),e}()},AQ68:function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n("wd/R"))},AQA1:function(e,t,n){"use strict";var i=v(n("FKN7")),r=v(n("+6qP")),o=v(n("KAnu")),a=n("ti0F"),s=v(n("D6VQ")),c=n("XpgS"),u=n("1LL4"),l=n("zl3R"),d=n("XgSC"),h=v(n("/JVm")),f=v(n("RwLY")),p=n("b1t7"),g=v(n("/7L9")),m=v(n("hMwJ"));function v(e){return e&&e.__esModule?e:{default:e}}var _="dx-toolbar-before",y="dx-toolbar-compact",b=".dx-toolbar-label",w="dx-toolbar-multiline",C=h.default.inherit({compactMode:!1,ctor:function(e,t){this._userOptions=t||{},this.callBase(e,t),"height"in this._userOptions&&g.default.log("W0001",this.NAME,"height","20.1","Functionality associated with this option is not intended for the Toolbar widget.")},_getSynchronizableOptionsForCreateComponent:function(){return this.callBase().filter(function(e){return"disabled"!==e})},_initTemplates:function(){this.callBase();var e=new p.BindableTemplate((function(e,t,n){(0,a.isPlainObject)(t)?(t.text&&e.text(t.text).wrapInner("
"),t.html&&e.html(t.html),"dxButton"===t.widget&&(this.option("useFlatButtons")&&(t.options=t.options||{},t.options.stylingMode=t.options.stylingMode||"text"),this.option("useDefaultButtons")&&(t.options=t.options||{},t.options.type=t.options.type||"default"))):e.text(String(t)),this._getTemplate("dx-polymorph-widget").render({container:e,model:n,parent:this})}).bind(this),["text","html","widget","options"],this.option("integrationOptions.watchMethod"));this._templateManager.addDefaultTemplates({item:e,menuItem:e})},_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{renderAs:"topToolbar",grouped:!1,useFlatButtons:!1,useDefaultButtons:!1,multiline:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return r.default.isMaterial()},options:{useFlatButtons:!0}}])},_itemContainer:function(){return this._$toolbarItemsContainer.find([".dx-toolbar-before",".dx-toolbar-center",".dx-toolbar-after"].join(","))},_itemClass:function(){return"dx-toolbar-item"},_itemDataKey:function(){return"dxToolbarItemDataKey"},_buttonClass:function(){return"dx-toolbar-button"},_dimensionChanged:function(){this._arrangeItems(),this._applyCompactMode()},_initMarkup:function(){this._renderToolbar(),this._renderSections(),this.callBase(),this.setAria("role","toolbar")},_waitParentAnimationFinished:function(){var e=this,t=this.$element();return new f.default(function(n){!function r(){clearTimeout(e._waitParentAnimationTimeout),e._waitParentAnimationTimeout=setTimeout(function(){return e=!0,t.parents().each(function(t,n){if(m.default.isAnimating((0,i.default)(n)))return e=!1,!1}),e&&n(),e||r();var e},15)}()})},_render:function(){this.callBase(),this._renderItemsAsync(),r.default.isMaterial()&&f.default.all([this._waitParentAnimationFinished(),this._checkWebFontForLabelsLoaded()]).then(this._dimensionChanged.bind(this))},_postProcessRenderItems:function(){this._arrangeItems()},_renderToolbar:function(){this.$element().addClass("dx-toolbar").toggleClass("dx-toolbar-bottom","bottomToolbar"===this.option("renderAs")).toggleClass(w,this.option("multiline")),this._$toolbarItemsContainer=(0,i.default)("
").addClass("dx-toolbar-items-container").appendTo(this.$element())},_renderSections:function(){var e=this._$toolbarItemsContainer,t=this;(0,l.each)(["before","center","after"],function(){var n="dx-toolbar-"+this,r=e.find("."+n);r.length||(t["_$"+this+"Section"]=r=(0,i.default)("
").addClass(n).appendTo(e))})},_checkWebFontForLabelsLoaded:function(){var e=this.$element().find(b),t=[];return e.each(function(e,n){var o=(0,i.default)(n).text(),a=(0,i.default)(n).css("fontWeight");t.push(r.default.waitWebFont(o,a))}),f.default.all(t)},_arrangeItems:function(e){e=e||this.$element().width(),this._$centerSection.css({margin:"0 auto",float:"none"});var t=(0,d.getBoundingRect)(this._$beforeSection.get(0)),n=(0,d.getBoundingRect)(this._$afterSection.get(0));this._alignCenterSection(t,n,e);var r=this._$toolbarItemsContainer.find(b).eq(0),o=r.parent();if(r.length){var a=t.width?t.width:r.position().left,s=o.hasClass(_)?0:a,c=o.hasClass("dx-toolbar-after")?0:n.width,u=0;o.children().not(b).each(function(){u+=(0,i.default)(this).outerWidth()});var l=Math.max(e-u-s-c,0);if(o.hasClass(_))this._alignSection(this._$beforeSection,l);else{var h=r.outerWidth()-r.width();r.css("maxWidth",l-h)}}},_alignCenterSection:function(e,t,n){this._alignSection(this._$centerSection,n-e.width-t.width);var i=this.option("rtlEnabled"),r=i?t:e,o=i?e:t,a=(0,d.getBoundingRect)(this._$centerSection.get(0));(r.right>a.left||a.right>o.left)&&this._$centerSection.css({marginLeft:r.width,marginRight:o.width,float:r.width>o.width?"none":"right"})},_alignSection:function(e,t){var n=e.find(b).toArray();t-=this._getCurrentLabelsPaddings(n);var i=this._getCurrentLabelsWidth(n),r=Math.abs(i-t);te.width()&&e.addClass(y)},_getCurrentLabelsWidth:function(e){var t=0;return e.forEach(function(e,n){t+=(0,i.default)(e).outerWidth()}),t},_getCurrentLabelsPaddings:function(e){var t=0;return e.forEach(function(e,n){t+=(0,i.default)(e).outerWidth()-(0,i.default)(e).width()}),t},_renderItem:function(e,t,n,i){var r=!(!t.text&&!t.html),o=this.callBase(e,t,n||this["_$"+(t.location||"center")+"Section"],i);return o.toggleClass(this._buttonClass(),!r).toggleClass("dx-toolbar-label",r).addClass(t.cssClass),o},_renderGroupedItems:function(){var e=this;(0,l.each)(this.option("items"),function(t,n){var r=n.items,o=(0,i.default)("
").addClass("dx-toolbar-group"),a=n.location||"center";r&&r.length&&((0,l.each)(r,function(t,n){e._renderItem(t,n,o,null)}),e._$toolbarItemsContainer.find(".dx-toolbar-"+a).append(o))})},_renderItems:function(e){this.option("grouped")&&e.length&&e[0].items?this._renderGroupedItems():this.callBase(e)},_getToolbarItems:function(){return this.option("items")||[]},_renderContentImpl:function(){var e=this._getToolbarItems();this.$element().toggleClass("dx-toolbar-mini",0===e.length),this._renderItems(this._renderedItemsCount?e.slice(this._renderedItemsCount):e),this._applyCompactMode()},_renderEmptyMessage:o.default.noop,_clean:function(){this._$toolbarItemsContainer.children().empty(),this.$element().empty()},_visibilityChanged:function(e){e&&this._arrangeItems()},_isVisible:function(){return this.$element().width()>0&&this.$element().height()>0},_getIndexByItem:function(e){return(0,c.inArray)(e,this._getToolbarItems())},_itemOptionChanged:function(e,t,n){this.callBase.apply(this,[e,t,n]),this._arrangeItems()},_optionChanged:function(e){var t=e.name;switch(t){case"width":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"multiline":this.$element().toggleClass(w,e.value);break;case"renderAs":case"useFlatButtons":case"useDefaultButtons":this._invalidate();break;case"compactMode":this._applyCompactMode();break;case"grouped":break;default:this.callBase.apply(this,arguments)}},_dispose:function(){this.callBase(),clearTimeout(this._waitParentAnimationTimeout)}});(0,s.default)("dxToolbarBase",C),e.exports=C},AQWU:function(e,t,n){"use strict";var i=n("FKN7"),r=n("jeLr"),o=n("KAnu").noop,a=n("5qrJ"),s=n("XWek"),c=n("GCD8"),u="dxListEditDecorator",l=c.addNamespace(s.start,u),d=c.addNamespace(s.swipe,u),h=c.addNamespace(s.end,u),f=a.inherit({ctor:function(e){this._list=e,this._init()},_init:o,_shouldHandleSwipe:!1,_attachSwipeEvent:function(e){var t={itemSizeFunc:(function(){return this._clearSwipeCache&&(this._itemWidthCache=this._list.$element().width(),this._clearSwipeCache=!1),this._itemWidthCache}).bind(this)};r.on(e.$itemElement,l,t,this._itemSwipeStartHandler.bind(this)),r.on(e.$itemElement,d,this._itemSwipeUpdateHandler.bind(this)),r.on(e.$itemElement,h,this._itemSwipeEndHandler.bind(this))},_itemSwipeStartHandler:function(e){var t=i(e.currentTarget);t.is(".dx-state-disabled, .dx-state-disabled *")?e.cancel=!0:(clearTimeout(this._list._inkRippleTimer),this._swipeStartHandler(t,e))},_itemSwipeUpdateHandler:function(e){var t=i(e.currentTarget);this._swipeUpdateHandler(t,e)},_itemSwipeEndHandler:function(e){var t=i(e.currentTarget);this._swipeEndHandler(t,e),this._clearSwipeCache=!0},beforeBag:o,afterBag:o,_commonOptions:function(){return{activeStateEnabled:this._list.option("activeStateEnabled"),hoverStateEnabled:this._list.option("hoverStateEnabled"),focusStateEnabled:this._list.option("focusStateEnabled")}},modifyElement:function(e){this._shouldHandleSwipe&&(this._attachSwipeEvent(e),this._clearSwipeCache=!0)},afterRender:o,handleClick:o,handleKeyboardEvents:o,handleEnterPressing:o,handleContextMenu:o,_swipeStartHandler:o,_swipeUpdateHandler:o,_swipeEndHandler:o,visibilityChange:o,getExcludedSelectors:o,dispose:o});e.exports=f},AYeB:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("vuIU"),r=n("1OyB"),o=n("fXoL"),a=function(){var e=Object(i.a)(function e(){Object(r.a)(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.Vb({type:e,selectors:[["","ionicSelectableGroupTemplate",""]]}),e}()},"AfW+":function(e,t,n){"use strict";n.d(t,"a",function(){return C}),n.d(t,"b",function(){return y}),n.d(t,"c",function(){return b}),n.d(t,"d",function(){return w}),n.d(t,"e",function(){return a}),n.d(t,"f",function(){return s}),n.d(t,"g",function(){return c});var i=n("ODXe"),r=n("1OyB"),o=n("vuIU"),a=function(e){return c(e)},s=function(e,t){return"string"==typeof e&&(t=e,e=void 0),a(e).includes(t)},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;e.Ionic=e.Ionic||{};var t=e.Ionic.platforms;return null==t&&(t=e.Ionic.platforms=u(e)).forEach(function(t){return e.document.documentElement.classList.add("plt-".concat(t))}),t},u=function(e){return Object.keys(_).filter(function(t){return _[t](e)})},l=function(e){return!!m(e,/iPad/i)||!(!m(e,/Macintosh/i)||!h(e))},d=function(e){return m(e,/android|sink/i)},h=function(e){return v(e,"(any-pointer:coarse)")},f=function(e){return p(e)||g(e)},p=function(e){return!!(e.cordova||e.phonegap||e.PhoneGap)},g=function(e){var t=e.Capacitor;return!(!t||!t.isNative)},m=function(e,t){return t.test(e.navigator.userAgent)},v=function(e,t){return e.matchMedia(t).matches},_={ipad:l,iphone:function(e){return m(e,/iPhone/i)},ios:function(e){return m(e,/iPhone|iPod/i)||l(e)},android:d,phablet:function(e){var t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),r=Math.max(t,n);return i>390&&i<520&&r>620&&r<800},tablet:function(e){var t=e.innerWidth,n=e.innerHeight,i=Math.min(t,n),r=Math.max(t,n);return l(e)||function(e){return d(e)&&!m(e,/mobile/i)}(e)||i>460&&i<820&&r>780&&r<1400},cordova:p,capacitor:g,electron:function(e){return m(e,/electron/i)},pwa:function(e){return!(!e.matchMedia("(display-mode: standalone)").matches&&!e.navigator.standalone)},mobile:h,mobileweb:function(e){return h(e)&&!f(e)},desktop:function(e){return!h(e)},hybrid:f},y=new(function(){function e(){Object(r.a)(this,e),this.m=new Map}return Object(o.a)(e,[{key:"reset",value:function(e){this.m=new Map(Object.entries(e))}},{key:"get",value:function(e,t){var n=this.m.get(e);return void 0!==n?n:t}},{key:"getBoolean",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.m.get(e);return void 0===n?t:"string"==typeof n?"true"===n:!!n}},{key:"getNumber",value:function(e,t){var n=parseFloat(this.m.get(e));return isNaN(n)?void 0!==t?t:NaN:n}},{key:"set",value:function(e,t){this.m.set(e,t)}}]),e}()),b=function(e){try{var t=e.sessionStorage.getItem(k);return null!==t?JSON.parse(t):{}}catch(n){return{}}},w=function(e,t){try{e.sessionStorage.setItem(k,JSON.stringify(t))}catch(n){return}},C=function(e){var t={};return e.location.search.slice(1).split("&").map(function(e){return e.split("=")}).map(function(e){var t=Object(i.a)(e,2),n=t[1];return[decodeURIComponent(t[0]),decodeURIComponent(n)]}).filter(function(e){var t=Object(i.a)(e,1);return O(t[0],S)}).map(function(e){var t=Object(i.a)(e,2),n=t[1];return[t[0].slice(S.length),n]}).forEach(function(e){var n=Object(i.a)(e,2);t[n[0]]=n[1]}),t},O=function(e,t){return e.substr(0,t.length)===t},S="ionic:",k="ionic-persist-config"},"Ait/":function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=m(n("FKN7")),o=m(n("tUd6")),a=m(n("jeLr")),s=m(n("xMpX")),c=m(n("YQNt")),u=m(n("zBVi")),l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=g();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n("GCD8")),d=m(n("KAnu")),h=n("ti0F"),f=n("1LL4"),p=m(n("T4bj"));function g(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return g=function(){return e},e}function m(e){return e&&e.__esModule?e:{default:e}}var v="dxScrollbar",_="dx-scrollable-scrollbar",y="".concat(_,"-active"),b="horizontal",w="onScroll",C="onHover",O="always",S="never",k=null,x=u.default.inherit({_getDefaultOptions:function(){return(0,f.extend)(this.callBase(),{direction:null,visible:!1,activeStateEnabled:!1,visibilityMode:w,containerSize:0,contentSize:0,expandable:!0,scaleRatio:1})},_init:function(){this.callBase(),this._isHovered=!1},_initMarkup:function(){this._renderThumb(),this.callBase()},_render:function(){this.callBase(),this._renderDirection(),this._update(),this._attachPointerDownHandler(),this.option("hoverStateEnabled",this._isHoverMode()),this.$element().toggleClass("dx-scrollbar-hoverable",this.option("hoverStateEnabled"))},_renderThumb:function(){this._$thumb=(0,r.default)("
").addClass("dx-scrollable-scroll"),(0,r.default)("
").addClass("dx-scrollable-scroll-content").appendTo(this._$thumb),this.$element().addClass(_).append(this._$thumb)},isThumb:function(e){return!!this.$element().find(e).length},_isHoverMode:function(){var e=this.option("visibilityMode");return(e===C||e===O)&&this.option("expandable")},_renderDirection:function(){var e=this.option("direction");this.$element().addClass("dx-scrollbar-"+e),this._dimension=e===b?"width":"height",this._prop=e===b?"left":"top"},_attachPointerDownHandler:function(){a.default.on(this._$thumb,l.addNamespace(p.default.down,v),this.feedbackOn.bind(this))},feedbackOn:function(){this.$element().addClass(y),k=this},feedbackOff:function(){this.$element().removeClass(y),k=null},cursorEnter:function(){this._isHovered=!0,this._needScrollbar()&&this.option("visible",!0)},cursorLeave:function(){this._isHovered=!1,this.option("visible",!1)},_renderDimensions:function(){this._$thumb.css({width:this.option("width"),height:this.option("height")})},_toggleVisibility:function(e){this.option("visibilityMode")===w&&this._$thumb.css("opacity"),e=this._adjustVisibility(e),this.option().visible=e,this._$thumb.toggleClass("dx-state-invisible",!e)},_adjustVisibility:function(e){if(this._baseContainerToContentRatio&&!this._needScrollbar())return!1;switch(this.option("visibilityMode")){case w:break;case C:e=e||!!this._isHovered;break;case S:e=!1;break;case O:e=!0}return e},moveTo:function(e){if(!this._isHidden()){(0,h.isPlainObject)(e)&&(e=e[this._prop]||0);var t={};t[this._prop]=this._calculateScrollBarPosition(e),c.default.move(this._$thumb,t)}},_calculateScrollBarPosition:function(e){return-e*this._thumbRatio},_update:function(){var e=Math.round(this.option("containerSize")),t=Math.round(this.option("contentSize")),n=Math.round(this.option("baseContainerSize")),i=Math.round(this.option("baseContentSize"));isNaN(n)&&(n=e,i=t),this._baseContainerToContentRatio=i?n/i:n,this._realContainerToContentRatio=t?e/t:e;var r=Math.round(Math.max(Math.round(e*this._realContainerToContentRatio),15));this._thumbRatio=(e-r)/(this.option("scaleRatio")*(t-e)),this.option(this._dimension,r/this.option("scaleRatio")),this.$element().css("display",this._needScrollbar()?"":"none")},_isHidden:function(){return this.option("visibilityMode")===S},_needScrollbar:function(){return!this._isHidden()&&this._baseContainerToContentRatio<1},containerToContentRatio:function(){return this._realContainerToContentRatio},_normalizeSize:function(e){return(0,h.isPlainObject)(e)?e[this._dimension]||0:e},_clean:function(){this.callBase(),this===k&&(k=null),a.default.off(this._$thumb,"."+v)},_optionChanged:function(e){if(!this._isHidden())switch(e.name){case"containerSize":case"contentSize":this.option()[e.name]=this._normalizeSize(e.value),this._update();break;case"baseContentSize":case"baseContainerSize":this._update();break;case"visibilityMode":case"direction":this._invalidate();break;case"scaleRatio":this._update();break;default:this.callBase.apply(this,arguments)}},update:d.default.deferRenderer(function(){this._adjustVisibility()&&this.option("visible",!0)})});s.default.add(function(){a.default.subscribeGlobal(o.default.getDocument(),l.addNamespace(p.default.up,v),function(){k&&k.feedbackOff()})}),e.exports=x},An2z:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Options=void 0;var i=n("ti0F"),r=n("KAnu"),o=n("o41S"),a=n("3RoI"),s=n("YXTF"),c=n("1LL4");t.Options=function(){function e(t,n,i,r){var a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._default=n,this._deprecated=r,this._deprecatedNames=[],this._initDeprecatedNames(),this._optionManager=new o.OptionManager(t,i),this._optionManager.onRelevantNamesPrepared(function(e,t,n,i){return a._setRelevantNames(e,t,n,i)}),this._cachedOptions={},this._rules=[]}var t;return(t=[{key:"_initDeprecatedNames",value:function(){for(var e in this._deprecated)this._deprecatedNames.push(e)}},{key:"_getByRules",value:function(e){return e=Array.isArray(e)?this._rules.concat(e):this._rules,(0,s.convertRulesToOptions)(e)}},{key:"_notifyDeprecated",value:function(e){var t=this._deprecated[e];t&&this._deprecatedCallback(e,t)}},{key:"_setRelevantNames",value:function(e,t,n,i){if(t){var r=this._normalizeName(t,i);r&&r!==t&&(this._setField(e,r,n),this._clearField(e,t))}}},{key:"_setField",value:function(e,t,n){var i="",r=null;do{i=i?".".concat(i):"",i=(0,s.getFieldName)(t)+i,r=(t=(0,s.getParentName)(t))?this._optionManager.get(e,t,!1):e}while(!r);r[i]=n}},{key:"_clearField",value:function(e,t){delete e[t];var n=(0,s.getParentName)(t),i=n?this._optionManager.get(e,n,!1):e;i&&delete i[(0,s.getFieldName)(t)]}},{key:"_normalizeName",value:function(e,t){if(this._deprecatedNames.length&&e)for(var n=0;n=12!=!!parseInt(t)&&e.setHours((n+12)%24)},d:function(e,t){t>h("dM",e).max&&e.setMonth(e.getMonth()+1),e.setDate(t)},h:function(e,t){var n=e.getHours()>=12;e.setHours(+t%12+(n?12:0))},M:c,L:c,E:function(e,t){t<0||e.setDate(e.getDate()-e.getDay()+parseInt(t))},y:function(e,t){var n=e.getFullYear(),i=String(t).length,r=String(h("y",e).max).length,o=parseInt(String(n).substr(0,r-i)+t);e.setFullYear(o)}}),d=function(e){return u[e]||function(){return e}},h=function(e,t,n){var i={y:{min:0,max:9999},M:{min:1,max:12},L:{min:1,max:12},d:{min:1,max:31},dM:{min:1,max:new Date(t.getFullYear(),t.getMonth()+1,0).getDate()},E:{min:0,max:6},H:{min:0,max:23},h:{min:0,max:23},m:{min:0,max:59},s:{min:0,max:59},S:{min:0,max:999},a:{min:0,max:1}};return i[n||e]||i.getAmPm};t.getDatePartIndexByPosition=function(e,t){for(var n=0;n=t)return n;return null},t.renderDateParts=function(e,t){for(var n=t.regexp.exec(e),i=0,r=0,o=[],s=1;s=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===t||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":e<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":e<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":e<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(n("wd/R"))},AytR:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i={production:!0,firebase:{apiKey:"AIzaSyBKTo1yZlcdCvH-HZMrUwgpGYWfq5L4wdA",authDomain:"lnc-live-dev-220418.firebaseapp.com",databaseURL:"https://lnc-live-dev-220418.firebaseio.com",projectId:"lnc-live-dev-220418",storageBucket:"lnc-live-dev-220418.appspot.com",messagingSenderId:"605062022737",appId:"1:605062022737:web:b6072838dd597882"},showSelectableList:!1,showUncheckRoute:!0,showDeliveries:!0,allowClickOnLocation:!0,versionDate:"",apiUrlCloudFunctions:"https://us-central1-lnc-live-dev-220418.cloudfunctions.net/",apiUrl:"https://saas-dev.api.lnc-live.com/api/"}},"B4+F":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("ti0F");t.default={_getSpecificDataSourceOption:function(){var e=this.option("dataSource"),t=!1,n={};return this._getGroupedOption()&&function(e){return Array.isArray(e)&&e.every(function(e){return 2===Object.keys(e).length&&"key"in e&&"items"in e&&Array.isArray(e.items)})}(e)&&(n=e.reduce(function(e,n){var r=n.items.map(function(e){return(0,i.isObject)(e)||(e={text:e},t=!0),"key"in e||(e.key=n.key),e});return e.concat(r)},[]),e={store:{type:"array",data:n},group:{selector:"key",keepInitialKeyOrder:!0}},t&&(e.searchExpr="text")),e}}},B55N:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(e,t){return"\u5143"===t[1]?1:parseInt(t[1]||e,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(e){return"\u5348\u5f8c"===e},meridiem:function(e,t,n){return e<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(e){return e.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(e){return this.week()!==e.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(e,t){switch(t){case"y":return 1===e?"\u5143\u5e74":e+"\u5e74";case"d":case"D":case"DDD":return e+"\u65e5";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(n("wd/R"))},BAgR:function(e,t,n){"use strict";var i=n("KAnu").getKeyHash,r=n("KAnu").equalByValue,o=n("ti0F");t.SelectionFilterCreator=function(e,t){var n;function a(r,a,s,c,u){var l,d,h=a(u);if(!s&&(l=i(h),!o.isObject(l)))return function(e){if(!n){n={};for(var t=0;t":"=",n]}this.getLocalFilter=function(e,t,n,i){return a.bind(this,t=void 0===t?r:t,e,n,i)},this.getExpr=function(n){var i;if(n)return e.forEach(function(e,r){var a;i=i||[],r>0&&i.push(t?"and":"or"),a=o.isString(n)?s(n,e):function(e,n){for(var i=[],r=0,o=e.length;r0&&i.push(t?"or":"and"),i.push(c)}return i}(n,e),i.push(a)}),i&&1===i.length&&(i=i[0]),i},this.getCombinedFilter=function(e,n){var i=this.getExpr(e),r=i;return t&&n&&(i?((r=[]).push(i),r.push(n)):r=n),r}}},BFxc:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("7o/Q"),c=n("4I5i"),u=n("EY2u");function l(e){return function(t){return 0===e?Object(u.b)():t.lift(new d(e))}}var d=function(){function e(t){if(Object(o.a)(this,e),this.total=t,this.total<0)throw new c.a}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new h(e,this.total))}}]),e}(),h=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return Object(a.a)(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;re.length)&&(t=e.length);for(var n=0,i=new Array(t);n-1?t.formatType=n:n in _&&(t.power=_[n])}),t.power&&!t.formatType&&(t.formatType="fixedpoint"),t.formatType?t:void 0}},_calculateNumberPower:function(e,t,n,i){var r=Math.abs(e),o=0;if(r>1)for(;r&&r>=t&&(void 0===i||o0&&r<1)for(;r<1&&(void 0===n||o>n);)o--,r*=t;return o},_getNumberByPower:function(e,t,n){for(var i=e;t>0;)i/=n,t--;for(;t<0;)i*=n,t++;return i},_formatNumber:function(e,t,n){"auto"===t.power&&(t.power=this._calculateNumberPower(e,1e3,0,4)),t.power&&(e=this._getNumberByPower(e,t.power,1e3));var i=this.defaultLargeNumberFormatPostfixes[t.power]||"";return this._formatNumberCore(e,t.formatType,n).replace(/(\d|.$)(\D*)$/,"$1"+i+"$2")},_formatNumberExponential:function(e,t){var n=this._calculateNumberPower(e,10),i=this._getNumberByPower(e,n,10);void 0===t.precision&&(t.precision=1),i.toFixed(t.precision||0)>=10&&(n++,i/=10);var r=(n>=0?"+":"")+n.toString();return this._formatNumberCore(i,"fixedpoint",t)+"E"+r},_addZeroes:function(e,t){for(var n=Math.pow(10,t),i=e<0?"-":"",r=(e=(Math.abs(e)*n>>>0)/n).toString();r.length15?NaN:+r*this.getSign(e,t)}},_calcSignificantDigits:function(e){var t,n=(2,function(e){if(Array.isArray(e))return e}(t=e.split("."))||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),2!==n.length);i=!0);}catch(c){r=!0,o=c}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}(t)||function(e,t){if(e){if("string"==typeof e)return g(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=n[0],r=n[1],o=function(e){for(var t=-1,n=0;n-1?e.length-t:0},a=0;return i&&(a+=o(i.split(""))),r&&(a+=o(r.split("").reverse())),a}});y.inject(h.default),m&&y.inject(f.default),e.exports=y},Bm0k:function(e,t,n){"use strict";var i=c(n("FKN7")),r=n("1LL4"),o=c(n("0M3q")),a=n("8S5z"),s=c(n("uHaw"));function c(e){return e&&e.__esModule?e:{default:e}}var u="dx-command-drag",l="dx-sortable-without-handle";e.exports={defaultOptions:function(){return{rowDragging:{showDragIcons:!0,dropFeedbackMode:"indicate",allowReordering:!1,allowDropInsideItem:!1}}},extenders:{views:{rowsView:{init:function(){this.callBase.apply(this,arguments),this._updateHandleColumn()},_allowReordering:function(){var e=this.option("rowDragging");return!(!e||!(e.allowReordering||e.allowDropInsideItem||e.group))},_updateHandleColumn:function(){var e=this.option("rowDragging"),t=this._allowReordering(),n=this._columnsController,i=t&&e.showDragIcons;n&&n.addCommandColumn({type:"drag",command:"drag",visibleIndex:-2,alignment:"center",cssClass:u,width:"auto",cellTemplate:this._getHandleTemplate(),visible:i}),n.columnOption("type:drag","visible",i)},_renderContent:function(){var e=this,t=this.option("rowDragging"),n=this._allowReordering(),i=this.callBase.apply(this,arguments),a=this._isFixedTableRendering,c="_sortable",d="_sortableFixed",h=a?d:c,f=a?c:d;return n&&i.length&&(this[h]=this._createComponent(i,o.default,(0,r.extend)({component:this.component,contentTemplate:null,filter:"> table > tbody > .dx-row:not(.dx-freespace-row):not(.dx-virtual-row)",dragTemplate:this._getDraggableRowTemplate(),handle:t.showDragIcons&&".".concat(u),dropFeedbackMode:"indicate"},t,{onDragStart:function(e){var n,i=e.component.getVisibleRows()[e.fromIndex];e.itemData=i&&i.data,e.cancel=!(i&&"data"===i.rowType),null===(n=t.onDragStart)||void 0===n||n.call(t,e)},dropFeedbackMode:s.default.msie?"indicate":t.dropFeedbackMode,onOptionChanged:function(t){e[d]&&("fromIndex"!==t.name&&"toIndex"!==t.name||e[f].option(t.name,t.value))}})),i.toggleClass(l,!t.showDragIcons)),i},_getDraggableGridOptions:function(e){var t=this.option(),n=this.getColumns(),r=(0,i.default)(this.getRowElement(e.rowIndex));return{dataSource:[{id:1,parentId:0}],showBorders:!0,showColumnHeaders:!1,scrolling:{useNative:!1,showScrollbar:!1},pager:{visible:!1},loadingTimeout:void 0,columnFixing:t.columnFixing,columnAutoWidth:t.columnAutoWidth,showColumnLines:t.showColumnLines,columns:n.map(function(e){return{width:e.width||e.visibleWidth,fixed:e.fixed,fixedPosition:e.fixedPosition}}),onRowPrepared:function(e){var t=e.component.getView("rowsView");(0,i.default)(e.rowElement).replaceWith(r.eq(t._isFixedTableRendering?1:0).clone())}}},_getDraggableRowTemplate:function(){var e=this;return function(t){var n=e.component.$element(),r=(0,i.default)("
").width(n.width()),o=e._dataController.items(),a=e._getDraggableGridOptions(o&&o[t.fromIndex]);return e._createComponent(r,e.component.NAME,a),r.find(".dx-gridbase-container").children(":not(.".concat(e.addWidgetPrefix("rowsview"),")")).hide(),r}},_getHandleTemplate:function(){var e=this;return function(t,n){if("data"===n.rowType)return(0,i.default)(t).addClass("dx-cell-focus-disabled"),(0,i.default)("").addClass(e.addWidgetPrefix("drag-icon"));(0,a.setEmptyText)((0,i.default)(t))}},optionChanged:function(e){"rowDragging"===e.name&&(this._updateHandleColumn(),this._invalidate(!0,!0),e.handled=!0),this.callBase.apply(this,arguments)}}}}}},BqN7:function(e,t,n){"use strict";var i=n("tJvG").Deferred,r=n("tUd6"),o=n("3JVz"),a=n("cGv3"),s=a.getWindow(),c=n("1LL4").extendFromObject,u=n("ti0F").isDefined,l=n("RwLY"),d=n("eWCF"),h="success",f="error",p=function(e){var t=r.createElement("script");for(var n in e)t[n]=e[n];return t},g=function(e){e.parentNode.removeChild(e)},m=function(e){return r.getHead().appendChild(e)},v=function(e){var t=p({text:e});m(t),g(t)};function _(e){return(e.method||"GET").toUpperCase()}e.exports=d({sendRequest:function(e){var t,n=o.getXhr(),d=new i,y=d.promise(),b=!u(e.async)||e.async,w=e.dataType,C=e.timeout||0;e.crossDomain=function(e){if(!a.hasWindow())return!0;var t=!1,n=r.createElement("a"),i=r.createElement("a");n.href=s.location.href;try{i.href=e,i.href=i.href,t=n.protocol+"//"+n.host!=i.protocol+"//"+i.host}catch(o){t=!0}return t}(e.url);var O="jsonp"===w||"script"===w;void 0===e.cache&&(e.cache=!O);var S=function(e){if("jsonp"===e.dataType){var t=Math.random().toString().replace(/\D/g,""),n=e.jsonpCallback||"dxCallback"+Date.now()+"_"+t,i=e.jsonp||"callback";return e.data=e.data||{},e.data[i]=n,n}}(e),k=function(e){var t=e.headers||{};return t["Content-Type"]=t["Content-Type"]||function(e){var t;return e.data&&!e.upload&&"GET"!==_(e)&&(t="application/x-www-form-urlencoded;charset=utf-8"),e.contentType||t}(e),t.Accept=t.Accept||function(e){var t=e.dataType||"*",n="text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",i={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",jsonp:n,script:n};return c(i,e.accepts,!0),i[t]?i[t]+("*"!==t?", */*; q=0.01":""):i["*"]}(e),e.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t}(e),x=function(e,t){var n=e.data,i="string"==typeof n,r=e.url||s.location.href;return i||e.cache||((n=n||{})._=Date.now()),n&&!e.upload&&(i||(n=function(e){var t=[];for(var n in e){var i=e[n];void 0!==i&&(null===i&&(i=""),t.push(encodeURIComponent(n)+"="+encodeURIComponent(i)))}return t.join("&")}(n)),"GET"===_(e)?(""!==n&&(r+=(r.indexOf("?")>-1?"&":"?")+n),n=null):t["Content-Type"]&&t["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1&&(n=n.replace(/%20/g,"+"))),{url:r,parameters:n}}(e,k),T=x.url,E=x.parameters;if(S&&(s[S]=function(e){d.resolve(e,h,n)}),e.crossDomain&&O)return function(e){var t=p({src:e});return new l(function(e,n){var i={load:e,error:n},o=function(e){i[e.type](),g(t)};for(var a in i)r.listen(t,a,o);m(t)})}(T).then(function(){"jsonp"!==w&&d.resolve(null,h,n)},function(){d.reject(n,f)}),y;if(e.crossDomain&&!("withCredentials"in n))return d.reject(n,f),y;if(n.open(_(e),T,b,e.username,e.password),b&&(n.timeout=C,t=function(e,t){return e&&setTimeout(function(){t.customStatus="timeout",t.abort()},e)}(C,n)),n.onreadystatechange=function(e){var i;4===n.readyState&&(clearTimeout(t),200<=(i=n.status)&&i<300?function(e){return 204!==e}(n.status)?function(t,n,i){var r=function(e){return e.responseType&&"text"!==e.responseType||"string"!=typeof e.responseText?e.response:e.responseText}(n);switch(i){case"jsonp":v(r);break;case"script":v(r),t.resolve(r,h,n);break;case"json":try{t.resolve(JSON.parse(r),h,n)}catch(e){t.reject(n,"parsererror",e)}break;default:t.resolve(r,h,n)}}(d,n,w):d.resolve(null,"nocontent",n):d.reject(n,n.customStatus||f))},e.upload&&(n.upload.onprogress=e.upload.onprogress,n.upload.onloadstart=e.upload.onloadstart,n.upload.onabort=e.upload.onabort),e.xhrFields)for(var I in e.xhrFields)n[I]=e.xhrFields[I];for(var D in"arraybuffer"===e.responseType&&(n.responseType=e.responseType),k)Object.prototype.hasOwnProperty.call(k,D)&&u(k[D])&&n.setRequestHeader(D,k[D]);return e.beforeSend&&e.beforeSend(n),n.send(E),y.abort=function(){n.abort()},y}})},BsWD:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("a3WO");function r(e,t){if(e){if("string"==typeof e)return Object(i.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(i.a)(e,t):void 0}}},Bso4:function(e,t,n){"use strict";var i,r=n("wZ/z"),o=n("um7L"),a=n("1LL4").extend,s={dxpointerdown:"pointerdown",dxpointermove:"pointermove",dxpointerup:"pointerup",dxpointercancel:"pointercancel",dxpointerover:"pointerover",dxpointerout:"pointerout",dxpointerenter:"pointerenter",dxpointerleave:"pointerleave"},c=!1,u=function(){c||(i=new o(s,function(e,t){return e.pointerId===t.pointerId},function(e){e.isPrimary&&i.reset()}),c=!0)},l=r.inherit({ctor:function(){this.callBase.apply(this,arguments),u()},_fireEvent:function(e){return this.callBase(a({pointers:i.pointers(),pointerId:e.originalEvent.pointerId},e))}});l.map=s,l.resetObserver=function(){i.reset()},e.exports=l},Bw5F:function(e,t,n){"use strict";var i=n("FKN7"),r=n("cGv3").getWindow(),o=n("KAnu").noop,a=n("imRD"),s=n("D6VQ"),c=n("1LL4").extend,u=n("XPWh"),l=n("3wDN"),d=n("IF55"),h=n("wjBO"),f=n("b1t7").BindableTemplate,p=n("tJvG").Deferred,g=l.inherit({_getDefaultOptions:function(){return c(this.callBase(),{usePopover:!1,target:null,title:"",showTitle:!0,showCancelButton:!0,cancelText:a.format("Cancel"),onCancelClick:null,visible:!1,noDataText:"",focusStateEnabled:!1,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios",tablet:!0},options:{usePopover:!0}}])},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new f(function(e,t){var n=new u(i("
"),c({onClick:t&&t.click},t));e.append(n.$element())},["disabled","icon","text","type","onClick","click"],this.option("integrationOptions.watchMethod"))})},_itemContainer:function(){return this._$itemContainer},_itemClass:function(){return"dx-actionsheet-item"},_itemDataKey:function(){return"dxActionSheetItemData"},_toggleVisibility:o,_renderDimensions:o,_initMarkup:function(){this.callBase(),this.$element().addClass("dx-actionsheet"),this._createItemContainer()},_render:function(){this._renderPopup()},_createItemContainer:function(){this._$itemContainer=i("
").addClass("dx-actionsheet-container"),this._renderDisabled()},_renderDisabled:function(){this._$itemContainer.toggleClass("dx-state-disabled",this.option("disabled"))},_renderPopup:function(){this._$popup=i("
").appendTo(this.$element()),this._isPopoverMode()?this._createPopover():this._createPopup(),this._renderPopupTitle(),this._mapPopupOption("visible")},_mapPopupOption:function(e){this._popup&&this._popup.option(e,this.option(e))},_isPopoverMode:function(){return this.option("usePopover")&&this.option("target")},_renderPopupTitle:function(){this._mapPopupOption("showTitle"),this._popup&&this._popup._wrapper().toggleClass("dx-actionsheet-without-title",!this.option("showTitle"))},_clean:function(){this._$popup&&this._$popup.remove(),this.callBase()},_overlayConfig:function(){return{onInitialized:(function(e){this._popup=e.component}).bind(this),disabled:!1,showTitle:!0,title:this.option("title"),deferRendering:!r.angular,onContentReady:this._popupContentReadyAction.bind(this),onHidden:this.hide.bind(this)}},_createPopover:function(){this._createComponent(this._$popup,h,c(this._overlayConfig(),{width:this.option("width")||200,height:this.option("height")||"auto",target:this.option("target")})),this._popup._wrapper().addClass("dx-actionsheet-popover-wrapper")},_createPopup:function(){this._createComponent(this._$popup,d,c(this._overlayConfig(),{dragEnabled:!1,width:this.option("width")||"100%",height:this.option("height")||"auto",showCloseButton:!1,position:{my:"bottom",at:"bottom",of:r},animation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom",of:r}},to:{position:{my:"bottom",at:"bottom",of:r}}},hide:{type:"slide",duration:400,from:{position:{my:"bottom",at:"bottom",of:r}},to:{position:{my:"top",at:"bottom",of:r}}}}})),this._popup._wrapper().addClass("dx-actionsheet-popup-wrapper")},_popupContentReadyAction:function(){this._popup.$content().append(this._$itemContainer),this._attachClickEvent(),this._attachHoldEvent(),this._prepareContent(),this._renderContent(),this._renderCancelButton()},_renderCancelButton:function(){if(!this._isPopoverMode()&&(this._$cancelButton&&this._$cancelButton.remove(),this.option("showCancelButton"))){var e=this._createActionByOption("onCancelClick")||o,t=this;this._$cancelButton=i("
").addClass("dx-actionsheet-cancel").appendTo(this._popup&&this._popup.$content()),this._createComponent(this._$cancelButton,u,{disabled:!1,text:this.option("cancelText"),onClick:function(n){var i={event:n,cancel:!1};e(i),i.cancel||t.hide()},integrationOptions:{}})}},_attachItemClickEvent:o,_itemClickHandler:function(e){this.callBase(e),i(e.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_itemHoldHandler:function(e){this.callBase(e),i(e.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_optionChanged:function(e){switch(e.name){case"width":case"height":case"visible":case"title":this._mapPopupOption(e.name);break;case"disabled":this._renderDisabled();break;case"showTitle":this._renderPopupTitle();break;case"showCancelButton":case"onCancelClick":case"cancelText":this._renderCancelButton();break;case"target":case"usePopover":case"items":this._invalidate();break;default:this.callBase(e)}},toggle:function(e){var t=this,n=new p;return t._popup.toggle(e).done(function(){t.option("visible",e),n.resolveWith(t)}),n.promise()},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)}});s("dxActionSheet",g),e.exports=g,e.exports.default=e.exports},ByF4:function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},C4zk:function(e,t,n){"use strict";var i=_(n("FKN7")),r=n("KAnu"),o=n("ti0F"),a=n("zl3R"),s=n("1LL4"),c=n("yxXJ"),u=_(n("D8Ap")),l=_(n("BWGd")),d=_(n("imRD")),h=_(n("K4No")),f=_(n("HZnW")),p=_(n("/jMu")),g=_(n("Q7sy")),m=n("IEE5"),v=n("IRs2");function _(e){return e&&e.__esModule?e:{default:e}}var y="groupFooter",b=function(e,t){var n=(0,i.default)(e),r=t.column,o=t.summaryItems,a=[];if(!r.command&&o){for(var s=0;s").css("textAlign",c.alignment||r.alignment).addClass("dx-datagrid-summary-item").addClass("dx-datagrid-text-content").addClass(c.cssClass).toggleClass("dx-datagrid-group-text-content","group"===t.rowType).text(l.default.getSummaryText(c,t.summaryTexts)))}n.append(a)}},w=function(e,t){var n=e.option("summary.texts")||{};return{totalItem:t.row,summaryItems:t.row.summaryCells[t.columnIndex],summaryTexts:n}},C=function(e){return e.summary||e.aggregates||[]},O=function(e){return e.option("summary.recalculateWhileEditing")};t.FooterView=f.default.ColumnsView.inherit({_getRows:function(){return this._dataController.footerItems()},_getCellOptions:function(e){return(0,s.extend)(this.callBase(e),w(this,e))},_renderCellContent:function(e,t){b(e,t),this.callBase(e,t)},_renderCore:function(e){var t=this._dataController.footerItems()[0];e&&e.columnIndices||this.element().empty().addClass("dx-datagrid-total-footer").toggleClass("dx-datagrid-nowrap",!this.option("wordWrapEnabled")),t&&t.summaryCells&&t.summaryCells.length&&this._updateContent(this._renderTable({change:e}),e)},_updateContent:function(e,t){if(!t||"update"!==t.changeType||!t.columnIndices)return this.callBase.apply(this,arguments);var n=this._getTableElement().find(".dx-row"),i=e.find(".dx-row");this._updateCells(n,i,t.columnIndices[0])},_rowClick:function(e){var t=this._dataController.footerItems()[e.rowIndex]||{};this.executeAction("onRowClick",(0,s.extend)({},e,t))},_columnOptionChanged:function(e){var t=e.optionNames;e.changeTypes.grouping||(t.width||t.visibleWidth)&&this.callBase(e)},_handleDataChanged:function(e){var t=e.changeType;"update"===e.changeType&&e.repaintChangesOnly?e.totalColumnIndices?e.totalColumnIndices.length&&this.render(null,{changeType:"update",columnIndices:[e.totalColumnIndices]}):this.render():"refresh"!==t&&"append"!==t&&"prepend"!==t||this.render()},getHeight:function(){return this.getElementHeight()},isVisible:function(){return!!this._dataController.footerItems().length}});var S,k,x,T,E,I=function(){function e(t,n,i,r){r=r||[];for(var o=0;o0&&"expand"===t.visibleColumns[n-1].command&&"expand"!==this.command&&(r=this.index)}),e.summaryCells=this._calculateSummaryCells(t.summaryGroupItems,C(e.data),t.visibleColumns,function(e,t){return e.showInGroupFooter?-1:e.alignByColumn&&t&&!(0,o.isDefined)(t.groupIndex)&&t.index!==r?t.index:i})}return e.rowType===y&&(e.summaryCells=this._calculateSummaryCells(t.summaryGroupItems,C(e.data),t.visibleColumns,function(e,t){return e.showInGroupFooter&&n._isDataColumn(t)?t.index:-1})),e},_calculateSummaryCells:function(e,t,n,i){var r=this,c=[],u={};return(0,a.each)(e,function(e,n){var a=r._columnsController.columnOption(n.column),c=n.showInColumn&&r._columnsController.columnOption(n.showInColumn)||a,d=i(n,c);if(d>=0){u[d]||(u[d]=[]);var h,f=t[e];f==f&&((0,o.isDefined)(n.valueFormat)?h=n.valueFormat:"count"!==n.summaryType&&(h=l.default.getFormatByDataType(a&&a.dataType)),u[d].push((0,s.extend)({},n,{value:(0,o.isString)(f)&&a&&a.deserializeValue?a.deserializeValue(f):f,valueFormat:h,columnCaption:a&&a.index!==d?a.caption:void 0})))}}),(0,o.isEmptyObject)(u)||(0,a.each)(n,function(){c.push(u[this.index]||[])}),c},_getSummaryCells:function(e,t){var n=this;return n._calculateSummaryCells(e,t,n._columnsController.getVisibleColumns(),function(e,t){return n._isDataColumn(t)?t.index:-1})},_updateItemsCore:function(e){var t,n=this,i=n._dataSource,r=n._footerItems,o=r&&r[0]&&r[0].summaryCells,a=n.option("summary.totalItems");if(n._footerItems=[],i&&a&&a.length){var s=i.totalAggregates();t=n._getSummaryCells(a,s),e&&e.repaintChangesOnly&&o&&(e.totalColumnIndices=t.map(function(e,t){return JSON.stringify(e)!==JSON.stringify(o[t])?t:-1}).filter(function(e){return e>=0})),t.length&&n._footerItems.push({rowType:"totalFooter",summaryCells:t})}n.callBase(e)},_prepareUnsavedDataSelector:function(e){if(O(this)){var t=this.getController("editing");if(t)return function(n){return n=t.getUpdatedData(n),e(n)}}return e},_prepareAggregateSelector:function(e,t){return e=this._prepareUnsavedDataSelector(e),"avg"===t||"sum"===t?function(t){var n=e(t);return(0,o.isDefined)(n)?Number(n):n}:e},_getAggregates:function(e,t){var n=this,i=n.getController("columns"),r=n.option("summary.calculateCustomSummary"),s=n.option("summary.skipEmptyValues");return(0,a.map)(e||[],function(e){var a,l=i.columnOption(e.column),d=l&&l.calculateCellValue?l.calculateCellValue.bind(l):(0,c.compileGetter)(l?l.dataField:e.column),h=e.summaryType||"count",f=(0,o.isDefined)(e.skipEmptyValues)?e.skipEmptyValues:s;if(t)return{selector:e.column,summaryType:h};if(a=n._prepareAggregateSelector(d,h),"custom"===h){r||(u.default.log("E1026"),r=function(){});var p={component:n.component,name:e.name};r(p),p.summaryProcess="calculate",h={seed:function(e){return p.summaryProcess="start",p.totalValue=void 0,p.groupIndex=e,delete p.value,r(p),p.totalValue},step:function(e,t){return p.summaryProcess="calculate",p.totalValue=e,p.value=t,r(p),p.totalValue},finalize:function(e){return p.summaryProcess="finalize",p.totalValue=e,delete p.value,r(p),p.totalValue}}}return{selector:a,aggregator:h,skipEmptyValues:f}})},_addSortInfo:function(e,t,n,i){if(t){var r=t.groupIndex;i=i||t.sortOrder,(0,o.isDefined)(r)&&(e[r]=e[r]||[],e[r].push({selector:n,desc:"desc"===i}))}},_findSummaryItem:function(e,t){var n=-1;return(0,o.isDefined)(t)&&(0,a.each)(e||[],function(e){if(this.name===t||e===t||this.summaryType===t||this.column===t||(r=this.column,((i=this.summaryType)&&r&&i+"_"+r)===t))return n=e,!1;var i,r}),n},_getSummarySortByGroups:function(e,t){var n=this,i=n._columnsController,r=i.getGroupColumns(),s=[];if(t&&t.length)return(0,a.each)(e||[],function(){var e=this.sortOrder,c=this.groupColumn,u=n._findSummaryItem(t,this.summaryItem);if(!(u<0)){var l=function(e){return C(e)[u]};(0,o.isDefined)(c)?(c=i.columnOption(c),n._addSortInfo(s,c,l,e)):(0,a.each)(r,function(t,i){n._addSortInfo(s,i,l,e)})}}),s},_createDataSourceAdapterCore:function(e,t){var n=this,i=this.callBase(e,t);return i.summaryGetter(function(e){return n._getSummaryOptions(e||t)}),i},_getSummaryOptions:function(e){var t=this,n=t.option("summary.groupItems"),i=t.option("summary.totalItems"),r=t.option("sortByGroupSummaryInfo"),o=t._getAggregates(n,e&&e.grouping&&e.summary),a=t._getAggregates(i,e&&e.summary);if(o.length||a.length)return{groupAggregates:o,totalAggregates:a,sortByGroups:function(){return t._getSummarySortByGroups(r,n)}}},publicMethods:function(){var e=this.callBase();return e.push("getTotalSummaryValue"),e},getTotalSummaryValue:function(e){var t=this._findSummaryItem(this.option("summary.totalItems"),e),n=this._dataSource.totalAggregates();if(n.length&&t>-1)return n[t]},optionChanged:function(e){"summary"!==e.name&&"sortByGroupSummaryInfo"!==e.name||(e.name="dataSource"),this.callBase(e)},init:function(){this._footerItems=[],this.callBase()},footerItems:function(){return this._footerItems}},editing:{_refreshSummary:function(){O(this)&&!this.isSaving()&&this._dataController.refresh({load:!0,changesOnly:!0})},_addEditData:function(e){var t=this.callBase.apply(this,arguments);return e.type&&this._refreshSummary(),t},_removeEditDataItem:function(){var e=this.callBase.apply(this,arguments);return this._refreshSummary(),e},cancelEditData:function(){var e=this.callBase.apply(this,arguments);return this._refreshSummary(),e}}},views:{rowsView:{_createRow:function(e){var t=this.callBase(e);return e&&t.addClass(e.rowType===y?"dx-datagrid-group-footer":""),t},_renderCells:function(e,t){this.callBase.apply(this,arguments),"group"===t.row.rowType&&t.row.summaryCells&&t.row.summaryCells.length&&this._renderGroupSummaryCells(e,t)},_hasAlignByColumnSummaryItems:function(e,t){return!(0,o.isDefined)(t.columns[e].groupIndex)&&t.row.summaryCells[e].length},_getAlignByColumnCellCount:function(e,t){for(var n=0,i=1;i0){e.attr("colSpan",n-i);for(var r=0;r0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0),c.Ob(1),c.wc("ngIf",!(null!=n&&n.flights&&null!=n&&n.flights.length))}}function w(e,t){if(1&e){var n=c.hc();c.gc(0,"ion-card"),c.gc(1,"ion-card-header",3),c.nc("click",function(){c.Ic(n);var e=t.index;return c.qc().toggleGroup(e)}),c.gc(2,"ion-toolbar"),c.gc(3,"div",4),c.gc(4,"ion-label",5),c.Rc(5),c.rc(6,"uppercase"),c.fc(),c.fc(),c.Pc(7,h,1,0,"ion-icon",6),c.Pc(8,f,1,0,"ion-icon",7),c.fc(),c.fc(),c.Pc(9,b,4,5,"ion-card-content",8),c.fc()}if(2&e){var i=t.$implicit;c.Sb("hide",0==(null==i||null==i.flights?null:i.flights.length)),c.Ob(5),c.Uc(" ",c.sc(6,7,null==i?null:i.name)," (",null==i||null==i.flights?null:i.flights.length,") "),c.Ob(2),c.wc("ngIf",!(null!=i&&i.isOpen)),c.Ob(1),c.wc("ngIf",null==i?null:i.isOpen),c.Ob(1),c.wc("ngIf",null==i?null:i.isOpen)}}function C(e,t){1&e&&(c.gc(0,"ion-item",13),c.Rc(1,"No data found"),c.fc())}var O=function(e){function t(t,n){var i=e.call(this)||this;return i.modalController=t,i.tsoService=n,i.groupedFlights=[],i.cardHeight=105,i}return u(t,e),t.prototype.ngOnInit=function(){this.groupContentMaxHeight=window.innerHeight-290;var e=s.groupBy(this.flights||[],"noOfStops");e[0]&&this.groupedFlights.push({name:"NONSTOP FLIGHTS",flights:s.orderBy(e[0],["departureTime"],["asc"])}),e[1]&&this.groupedFlights.push({name:"FLIGHTS WITH 1 STOP",flights:s.orderBy(e[1],["departureTime"],["asc"])})},t.prototype.selectFlight=function(e){return l(this,void 0,void 0,function(){return d(this,function(t){switch(t.label){case 0:return[4,this.dismiss(e)];case 1:return t.sent(),[2]}})})},t.prototype.dismiss=function(e){return void 0===e&&(e=null),l(this,void 0,void 0,function(){return d(this,function(t){switch(t.label){case 0:return[4,this.modalController.dismiss(e)];case 1:return t.sent(),[2]}})})},t.prototype.toggleGroup=function(e){return l(this,void 0,void 0,function(){return d(this,function(t){return this.groupedFlights[e].isOpen=!this.groupedFlights[e].isOpen,this.groupedFlights[e].isOpen&&this.calculateGroupContentHeight(this.groupedFlights[e]),[2]})})},t.prototype.calculateGroupContentHeight=function(e){if(e.flights.length){var t=Math.min(this.groupContentMaxHeight,e.flights.length*this.cardHeight);t=Math.max(t,this.cardHeight),e.height=t+"px"}else e.height="30px"},t.\u0275fac=function(e){return new(e||t)(c.ac(r.Gb),c.ac(o.a))},t.\u0275cmp=c.Ub({type:t,selectors:[["app-flight-search-card"]],inputs:{flights:"flights"},features:[c.Lb],decls:5,vars:2,consts:[["title","Flight search","hideCloseButton","true",3,"onDismiss"],[3,"hide",4,"ngFor","ngForOf"],["lines","none",4,"ngIf"],[3,"click"],["slot","start",1,"toolbar-div"],[1,"route-title"],["name","arrow-dropdown","slot","end",4,"ngIf"],["name","arrow-dropup","slot","end",4,"ngIf"],["style","padding: 0",3,"ngStyle",4,"ngIf"],["name","arrow-dropdown","slot","end"],["name","arrow-dropup","slot","end"],[2,"padding","0",3,"ngStyle"],["class","no-data",4,"ngIf"],["lines","none"],["class","m-y-4px",3,"click",4,"ngFor","ngForOf"],[1,"m-y-4px",3,"click"],[1,"padding-0"],[1,"flex","flex-column","flex-justify-center","align-items-center","padding-0",3,"size"],[1,"font-12vw","flex","flex-column","color-dark"],["src","./assets/icon/cube.svg"],[1,"padding-0",3,"size"],[1,"color-dark","font-bold","font-18px"],[1,"flex-auto","width-auto","padding-0"],[4,"ngIf"],[1,"color-dark"],[1,"flex-auto","width-auto","padding-0","padding-left-10"],["name","calendar"],[1,"no-data"]],template:function(e,t){1&e&&(c.gc(0,"base-modal",0),c.nc("onDismiss",function(){return t.dismiss()}),c.gc(1,"base-modal-content"),c.gc(2,"ion-content"),c.Pc(3,w,10,9,"ion-card",1),c.Pc(4,C,2,0,"ion-item",2),c.fc(),c.fc(),c.fc()),2&e&&(c.Ob(3),c.wc("ngForOf",t.groupedFlights),c.Ob(1),c.wc("ngIf",!(null!=t.groupedFlights&&t.groupedFlights.length)))},styles:[".color-dark[_ngcontent-%COMP%]{color:#333!important}.flex-auto[_ngcontent-%COMP%]{flex:0 0 auto}.width-auto[_ngcontent-%COMP%]{width:auto}.font-12vw[_ngcontent-%COMP%]{font-size:12vw}.stop-bg[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:green;border-radius:50px;color:#fff;padding:10px;height:25px;width:25px;margin:5px}ion-card[_ngcontent-%COMP%]{color:#333;padding:0 0 0 5px;margin:5px;border-radius:2px;border:1px solid #bbb;box-shadow:0 5px 15px -14px rgba(0,0,0,.75)}ion-card[_ngcontent-%COMP%] ion-card-header[_ngcontent-%COMP%]{font-size:18px;padding:0}ion-card[_ngcontent-%COMP%] ion-card-content[_ngcontent-%COMP%]{padding:0}.toolbar-div[_ngcontent-%COMP%]{color:#333;display:flex;align-items:center}.route-title[_ngcontent-%COMP%]{font-weight:700}"]}),t}(a.a)},CBR9:function(e,t,n){"use strict";var i,r=(i=n("FKN7"))&&i.__esModule?i:{default:i},o="dx-icon",a=function(e){return!(!e||"string"!=typeof e)&&(/^\s*]*>(.|\r\n|\r|\n)*?<\/svg>\s*$/i.test(e)?"svg":/data:.*base64|\.|[^<\s]\//.test(e)?"image":/^[\w-_]+$/.test(e)?"dxIcon":!!/^\s?([\w-_]\s?)+$/.test(e)&&"fontIcon")};t.getImageSourceType=a,t.getImageContainer=function(e){switch(a(e)){case"image":return(0,r.default)("").attr("src",e).addClass(o);case"fontIcon":return(0,r.default)("").addClass("".concat(o," ").concat(e));case"dxIcon":return(0,r.default)("").addClass("".concat(o," ").concat(o,"-").concat(e));case"svg":return(0,r.default)("").addClass("".concat(o," ").concat("dx-svg-icon")).append(e);default:return null}}},CCnk:function(e,t,n){"use strict";var i=C(n("FKN7")),r=C(n("jeLr")),o=C(n("LdFP")),a=C(n("D6VQ")),s=C(n("XPWh")),c=C(n("yUp2")),u=n("GCD8"),l=n("1LL4"),d=n("ti0F"),h=C(n("T4bj")),f=n("zl3R"),p=C(n("alGs")),g=C(n("+6qP")),m=C(n("0Ms2")),v=C(n("ZA3g")),_=C(n("a/39")),y=n("CBR9"),b=n("b1t7"),w=n("tJvG");function C(e){return e&&e.__esModule?e:{default:e}}var O="dx-tabs-expanded",S="dx-tabs-stretched",k="dx-tabs-nav-buttons",x="dx-overflow-hidden",T="chevronnext",E="chevronprev",I=_.default.inherit({_activeStateUnit:".dx-tab",_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{hoverStateEnabled:!0,showNavButtons:!0,scrollByContent:!0,scrollingEnabled:!0,selectionMode:"single",activeStateEnabled:!0,selectionRequired:!1,selectOnFocus:!0,loopItemFocus:!1,useInkRipple:!1,badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){var e=g.default.current();return this.callBase().concat([{device:function(){return"desktop"!==o.default.real().deviceType},options:{showNavButtons:!1}},{device:{deviceType:"desktop"},options:{scrollByContent:!1}},{device:function(){return"desktop"===o.default.real().deviceType&&!o.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return g.default.isMaterial(e)},options:{useInkRipple:!0,selectOnFocus:!1}}])},_init:function(){this.callBase(),this.setAria("role","tablist"),this.$element().addClass("dx-tabs"),this._renderWrapper(),this._renderMultiple(),this._feedbackHideTimeout=100},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new b.BindableTemplate((function(e,t){(0,d.isPlainObject)(t)?this._prepareDefaultItemTemplate(t,e):e.text(String(t));var n=(0,y.getImageContainer)(t.icon);n&&n.prependTo(e),e.wrapInner((0,i.default)("").addClass("dx-tab-text"))}).bind(this),["text","html","icon"],this.option("integrationOptions.watchMethod"))})},_createItemByTemplate:function(e,t){var n=this,i=t.itemData,r=t.container,o=t.index;return this._deferredTemplates[o]=new w.Deferred,e.render({model:i,container:r,index:o,onRendered:function(){return n._deferredTemplates[o].resolve()}})},_itemClass:function(){return"dx-tab"},_selectedItemClass:function(){return"dx-tab-selected"},_itemDataKey:function(){return"dxTabData"},_initMarkup:function(){this._deferredTemplates=[],this.callBase(),this.setAria("role","tab",this.itemElements()),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass(x)},_render:function(){this.callBase(),this._deferRenderScrolling()},_deferRenderScrolling:function(){var e=this;w.when.apply(this,this._deferredTemplates).done(function(){return e._renderScrolling()})},_renderScrolling:function(){var e=[S,O,x];this.$element().removeClass(e.join(" ")),this.option("scrollingEnabled")&&this._isItemsWidthExceeded()&&(this._scrollable||(this._renderScrollable(),this._renderNavButtons()),this._scrollable.update(),this._updateNavButtonsVisibility(),this.option("rtlEnabled")&&this._scrollable.scrollTo({left:this._scrollable.scrollWidth()-this._scrollable.clientWidth()}),this._scrollToItem(this.option("selectedItem"))),this.option("scrollingEnabled")&&this._isItemsWidthExceeded()||(this._cleanScrolling(),this._needStretchItems()&&!this._isItemsWidthExceeded()&&this.$element().addClass(S),this.$element().removeClass(k).addClass(O))},_isItemsWidthExceeded:function(){return this._getSummaryItemsWidth(this._getVisibleItems(),!0)-1>this.$element().width()},_needStretchItems:function(){var e=this._getVisibleItems(),t=this.$element().width(),n=[];return(0,f.each)(e,function(e,t){n.push((0,i.default)(t).outerWidth(!0))}),Math.max.apply(null,n)>t/e.length},_cleanNavButtons:function(){this._leftButton&&this._rightButton&&(this._leftButton.$element().remove(),this._rightButton.$element().remove(),this._leftButton=null,this._rightButton=null)},_cleanScrolling:function(){this._scrollable&&(this._$wrapper.appendTo(this.$element()),this._scrollable.$element().remove(),this._scrollable=null,this._cleanNavButtons())},_renderInkRipple:function(){this._inkRipple=c.default.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:e,event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_renderMultiple:function(){"multiple"===this.option("selectionMode")&&this.option("selectOnFocus",!1)},_renderWrapper:function(){this._$wrapper=(0,i.default)("
").addClass("dx-tabs-wrapper"),this.$element().append(this._$wrapper)},_itemContainer:function(){return this._$wrapper},_renderScrollable:function(){var e=this.$element().wrapInner((0,i.default)("
").addClass("dx-tabs-scrollable")).children();this._scrollable=this._createComponent(e,v.default,{direction:"horizontal",showScrollbar:!1,useKeyboard:!1,useNative:!1,scrollByContent:this.option("scrollByContent"),onScroll:this._updateNavButtonsVisibility.bind(this)}),this.$element().append(this._scrollable.$element())},_scrollToItem:function(e){if(this._scrollable){var t=this._editStrategy.getItemElement(e);this._scrollable.scrollToElement(t)}},_renderNavButtons:function(){if(this.$element().toggleClass(k,this.option("showNavButtons")),this.option("showNavButtons")){var e=this.option("rtlEnabled");this._leftButton=this._createNavButton(-30,e?T:E);var t=this._leftButton.$element();t.addClass("dx-tabs-nav-button-left"),this.$element().prepend(t),this._rightButton=this._createNavButton(30,e?E:T);var n=this._rightButton.$element();n.addClass("dx-tabs-nav-button-right"),this.$element().append(n)}},_updateNavButtonsVisibility:function(){this._leftButton&&this._leftButton.option("disabled",this._scrollable.scrollLeft()<=0),this._rightButton&&this._rightButton.option("disabled",this._scrollable.scrollLeft()>=Math.round(this._scrollable.scrollWidth()-this._scrollable.clientWidth()))},_updateScrollPosition:function(e,t){this._scrollable.update(),this._scrollable.scrollBy(e/t)},_createNavButton:function(e,t){var n=this,o=n._createAction(function(){n._holdInterval=setInterval(function(){n._updateScrollPosition(e,5)},5)}),a=(0,u.addNamespace)(m.default.name,"dxNavButton"),c=(0,u.addNamespace)(h.default.up,"dxNavButton"),l=(0,u.addNamespace)(h.default.out,"dxNavButton"),d=this._createComponent((0,i.default)("
").addClass("dx-tabs-nav-button"),s.default,{focusStateEnabled:!1,icon:t,onClick:function(){n._updateScrollPosition(e,1)},integrationOptions:{}}),f=d.$element();return r.default.on(f,a,{timeout:300},(function(e){o({event:e})}).bind(this)),r.default.on(f,c,function(){n._clearInterval()}),r.default.on(f,l,function(){n._clearInterval()}),d},_clearInterval:function(){this._holdInterval&&clearInterval(this._holdInterval)},_updateSelection:function(e){this._scrollable&&this._scrollable.scrollToElement(this.itemElements().eq(e[0]),{left:1,right:1})},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._renderScrolling()},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)},_clean:function(){this._deferredTemplates=[],this._cleanScrolling(),this.callBase()},_optionChanged:function(e){switch(e.name){case"useInkRipple":case"scrollingEnabled":case"showNavButtons":this._invalidate();break;case"scrollByContent":this._scrollable&&this._scrollable.option(e.name,e.value);break;case"width":this.callBase(e),this._dimensionChanged();break;case"selectionMode":this._renderMultiple(),this.callBase(e);break;case"badgeExpr":this._invalidate();break;default:this.callBase(e)}},_afterItemElementInserted:function(){this.callBase(),this._deferRenderScrolling()},_afterItemElementDeleted:function(e,t){this.callBase(e,t),this._renderScrolling()}});I.ItemClass=p.default,(0,a.default)("dxTabs",I),e.exports=I,e.exports.getTabsExpandedClass=O,e.exports.default=e.exports},CEub:function(e,t,n){"use strict";var i=c(n("GYHJ")),r=c(n("3xIi")),o=n("XpgS"),a=n("ti0F"),s=n("cGv3");function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return 1+(parseInt(e.pageIndex())||0)},l=i.default.View.inherit({init:function(){var e=this,t=e.getController("data");e._isVisible=!1,t.changed.add(function(n){if(n&&n.repaintChangesOnly){var i=e._getPager();i?i.option({pageIndex:u(t),pageSize:t.pageSize(),pageCount:t.pageCount(),totalCount:t.totalCount(),hasKnownLastPage:t.hasKnownLastPage()}):e.render()}else(!n||"update"!==n.changeType&&"updateSelection"!==n.changeType)&&e.render()})},_getPager:function(){var e=this.element();return e&&e.data("dxPager")},_renderCore:function(){var e=this,t=e.element().addClass(e.addWidgetPrefix("pager")),n=e.option("pager")||{},i=e.getController("data"),o=e.getController("keyboardNavigation"),s={maxPagesCount:10,pageIndex:u(i),pageCount:i.pageCount(),pageSize:i.pageSize(),showPageSizes:n.showPageSizeSelector,showInfo:n.showInfo,pagesNavigatorVisible:n.visible,showNavigationButtons:n.showNavigationButtons,pageSizes:e.getPageSizes(),totalCount:i.totalCount(),hasKnownLastPage:i.hasKnownLastPage(),pageIndexChanged:function(e){i.pageIndex()!==e-1&&setTimeout(function(){i.pageIndex(e-1)})},pageSizeChanged:function(e){setTimeout(function(){i.pageSize(e)})},onKeyDown:function(e){return o&&o.executeAction("onKeyDown",e)},useLegacyKeyboardNavigation:this.option("useLegacyKeyboardNavigation"),useKeyboard:this.option("keyboardNavigation.enabled")};(0,a.isDefined)(n.infoText)&&(s.infoText=n.infoText),e._createComponent(t,r.default,s)},getPageSizes:function(){var e=this,t=e.getController("data"),n=e.option("pager"),i=n&&n.allowedPageSizes,r=t.pageSize();return(0,a.isDefined)(e._pageSizes)&&-1!==(0,o.inArray)(r,e._pageSizes)||(e._pageSizes=[],n&&(Array.isArray(i)?e._pageSizes=i:i&&r>1&&(e._pageSizes=[Math.floor(r/2),r,2*r]))),e._pageSizes},isVisible:function(){var e=this,t=e.getController("data"),n=e.option("pager"),i=n&&n.visible,r=e.option("scrolling");return!!e._isVisible||("auto"===i&&(i=(!r||"virtual"!==r.mode&&"infinite"!==r.mode)&&(t.pageCount()>1||t.isLoaded()&&!t.hasKnownLastPage())),e._isVisible=i,i)},getHeight:function(){return this.getElementHeight()},optionChanged:function(e){var t=this,n=e.name,i="pager"===n,r="paging"===n,o="dataSource"===n,a="scrolling"===n,c=t.getController("data");if(i||r||a||o){if(e.handled=!0,c.skipProcessingPagingChange(e.fullName))return;(i||r)&&(t._pageSizes=null),(i||r||a)&&(t._isVisible=!1),o||(t._invalidate(),(0,s.hasWindow)()&&i&&t.component&&t.component.resize())}}});e.exports={defaultOptions:function(){return{pager:{visible:"auto",showPageSizeSelector:!1,allowedPageSizes:"auto"}}},views:{pagerView:l}}},"CH/f":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("vuIU"),r=n("1OyB"),o=n("ofXK"),a=n("3Pt+"),s=n("c7TG"),c=(n("TnqW"),n("J7sm"),n("Ys55"),n("VqCF"),n("AYeB"),n("FdPp"),n("R7F3"),n("8Vd6"),n("j+ev"),n("t6yK"),n("1aR6"),n("kNd2"),n("GL5m"),n("AKYK"),n("qPfB"),n("UY7p"),n("JmBq"),n("fXoL")),u=function(){var e=Object(i.a)(function e(){Object(r.a)(this,e)});return e.\u0275mod=c.Yb({type:e}),e.\u0275inj=c.Xb({factory:function(t){return new(t||e)},imports:[[o.c,a.l,s.Db]]}),e}()},CWM8:function(e,t,n){"use strict";var i,r=n("FKN7"),o=n("xMpX").add,a=n("cYys")(),s=r(),c=function(e){if(!arguments.length)return i;var t=r(e);s=t;var n=!!t.length,o=c();i=n?t:r("body"),a.fire(n?c():r(),o)};o(function(){c(".dx-viewport")}),t.value=c,t.changeCallback=a,t.originalViewPort=function(){return s}},Cc4C:function(e,t,n){"use strict";var i=n("1B4V"),r=n("jeLr"),o=n("OaJ3"),a=n("ti0F").isDefined,s=n("fGF2"),c=new o,u=0,l=t.name=function(e,t){if(!a(t)){if(!c.has(e)){var n="dxPrivateComponent"+u++;return c.set(e,n),n}return c.get(e)}c.set(e,t)};t.attachInstanceToElement=function(e,t,n){var o=i.data(e.get(0)),a=l(t.constructor);o[a]=t,n&&r.one(e,s,function(){n.call(t)}),o.dxComponents||(o.dxComponents=[]),o.dxComponents.push(a)},t.getInstanceByElement=function(e,t){var n=l(t);return i.data(e.get(0),n)}},Cfvw:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("HDdC"),r=n("SeVD"),o=n("7HRe");function a(e,t){return t?Object(o.a)(e,t):e instanceof i.a?e:new i.a(Object(r.a)(e))}},CjzT:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},CoRJ:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:6,doy:12}})}(n("wd/R"))},Czum:function(e,t,n){"use strict";n.d(t,"c",function(){return h}),n.d(t,"b",function(){return f}),n.d(t,"d",function(){return m}),n.d(t,"a",function(){return _});var i,r=n("vuIU"),o=n("1OyB"),a=n("fXoL"),s=n("Wcq6"),c=n.n(s),u=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=new a.y("angularfire2.app.options"),d=new a.y("angularfire2.app.nameOrConfig"),h=l,f=d,p=Object(r.a)(function e(){Object(o.a)(this,e)}),g=new a.Z("5.4.2");function m(e,t,n){var i="object"==typeof n&&n||{};return i.name=i.name||"string"==typeof n&&n||"[DEFAULT]",c.a.apps.filter(function(e){return e&&e.name===i.name})[0]||t.runOutsideAngular(function(){return c.a.initializeApp(e,i)})}var v={provide:p,useFactory:m,deps:[h,a.J,[new a.K,f]]},_=function(){var e,t=i=function(){function e(t){Object(o.a)(this,e),c.a.registerVersion&&(c.a.registerVersion("angularfire",g.full,t.toString()),c.a.registerVersion("angular",a.Y.full))}return Object(r.a)(e,null,[{key:"initializeApp",value:function(e,t){return{ngModule:i,providers:[{provide:h,useValue:e},{provide:f,useValue:t}]}}}]),e}();return t.\u0275mod=a.Yb({type:t}),t.\u0275inj=a.Xb({factory:function(e){return new(e||t)(a.kc(a.M))},providers:[v]}),t=i=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}([(0,e=Object(a.w)(a.M),function(t,n){e(t,n,0)}),u("design:paramtypes",[Object])],t)}()},"D/JM":function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},D0XW:function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o});var i=n("3N8a"),r=new(n("IjjT").a)(i.a),o=r},D6VQ:function(e,t,n){"use strict";var i=s(n("FKN7")),r=s(n("/orT")),o=s(n("/7L9")),a=s(n("Cc4C"));function s(e){return e&&e.__esModule?e:{default:e}}r.default.add(function(e,t){i.default.fn[e]=function(n){var i,r="string"==typeof n;if(r){var a=n,s=[].slice.call(arguments).slice(1);this.each(function(){var n=t.getInstance(this);if(!n)throw o.default.Error("E0009",e);var r=n[a].apply(n,s);void 0===i&&(i=r)})}else this.each(function(){var e=t.getInstance(this);e?e.option(n):new t(this,n)}),i=this;return i}}),e.exports=function(e,t,n){n?t[e]=n:n=t,a.default.name(n,e),r.default.fire(e,n)},e.exports.default=e.exports},D7jP:function(e,t,n){"use strict";n.d(t,"a",function(){return f});var i=n("ptfe"),r=n("c7TG"),o=n("aiMf"),a=n("fXoL"),s=n("ofXK"),c=n("3Pt+"),u=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},l=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]1)for(t=r.getDatesDifferences(e[0],e[1]),i=1;i0,minute:e[0].getMinutes()>0,second:e[0].getSeconds()>0,millisecond:e[0].getMilliseconds()>0};return this.getDateFormatByDifferences(t)},getDateFormatByTickInterval:function(e,t,n){var o,a=function(e,t,n){switch(t){case"year":case"quarter":e.month=n;case"month":e.day=n;case"week":case"day":e.hour=n;case"hour":e.minute=n;case"minute":e.second=n;case"second":e.millisecond=n}};n=i.isString(n)?n.toLowerCase():n;var s,c,u,l=r.getDatesDifferences(e,t);return e!==t&&(s=l,c=e>t?t:e,!(u=e>t?e:t).getMilliseconds()&&u.getSeconds()?u.getSeconds()-c.getSeconds()==1&&(s.millisecond=!0,s.second=!1):!u.getSeconds()&&u.getMinutes()?u.getMinutes()-c.getMinutes()==1&&(s.second=!0,s.minute=!1):!u.getMinutes()&&u.getHours()?u.getHours()-c.getHours()==1&&(s.minute=!0,s.hour=!1):!u.getHours()&&u.getDate()>1?u.getDate()-c.getDate()==1&&(s.hour=!0,s.day=!1):1===u.getDate()&&u.getMonth()?u.getMonth()-c.getMonth()==1&&(s.day=!0,s.month=!1):!u.getMonth()&&u.getFullYear()&&u.getFullYear()-c.getFullYear()==1&&(s.month=!0,s.year=!1)),a(l,r.getDateUnitInterval(l),!0),a(l,o=r.getDateUnitInterval(n||"second"),!1),l[{week:"day"}[o]||o]=!0,this.getDateFormatByDifferences(l)}})},D8Ap:function(e,t,n){"use strict";var i=n("IWKj"),r=n("/7L9");e.exports=i(r.ERROR_MESSAGES,{E1001:"Module '{0}'. Controller '{1}' is already registered",E1002:"Module '{0}'. Controller '{1}' does not inherit from DevExpress.ui.dxDataGrid.Controller",E1003:"Module '{0}'. View '{1}' is already registered",E1004:"Module '{0}'. View '{1}' does not inherit from DevExpress.ui.dxDataGrid.View",E1005:"Public method '{0}' is already registered",E1006:"Public method '{0}.{1}' does not exist",E1007:"State storing cannot be provided due to the restrictions of the browser",E1010:"The template does not contain the TextBox widget",E1011:'Items cannot be deleted from the List. Implement the "remove" function in the data store',E1012:"Editing type '{0}' with the name '{1}' is unsupported",E1016:"Unexpected type of data source is provided for a lookup column",E1018:"The 'collapseAll' method cannot be called if you use a remote data source",E1019:"Search mode '{0}' is unavailable",E1020:"The type cannot be changed after initialization",E1021:"{0} '{1}' you are trying to remove does not exist",E1022:'The "markers" option is given an invalid value. Assign an array instead',E1023:'The "routes" option is given an invalid value. Assign an array instead',E1025:"This layout is too complex to render",E1026:'The "calculateCustomSummary" function is missing from a field whose "summaryType" option is set to "custom"',E1030:"Unknown ScrollView refresh strategy: '{0}'",E1031:"Unknown subscription in the Scheduler widget: '{0}'",E1032:"Unknown start date in an appointment: '{0}'",E1033:"Unknown step in the date navigator: '{0}'",E1034:"The browser does not implement an API for saving files",E1035:"The editor cannot be created because of an internal error: {0}",E1037:"Invalid structure of grouped data",E1038:"The browser does not support local storages for local web pages",E1039:"A cell's position cannot be calculated",E1040:"The '{0}' key value is not unique within the data array",E1041:"The '{0}' script is referenced after the DevExtreme scripts or not referenced at all",E1042:"{0} requires the key field to be specified",E1043:"Changes cannot be processed due to the incorrectly set key",E1044:"The key field specified by the keyExpr option does not match the key field specified in the data store",E1045:"Editing requires the key field to be specified in the data store",E1046:"The '{0}' key field is not found in data objects",E1047:'The "{0}" field is not found in the fields array',E1048:'The "{0}" operation is not found in the filterOperations array',E1049:"Column '{0}': filtering is allowed but the 'dataField' or 'name' option is not specified",E1050:"The validationRules option does not apply to third-party editors defined in the editCellTemplate",E1051:'HtmlEditor\'s valueType is "{0}", but the {0} converter was not imported.',E1052:'{0} should have the "dataSource" option specified',E1053:'The "buttons" option accepts an array that contains only objects or string values',E1054:"All text editor buttons must have names",E1055:'One or several text editor buttons have invalid or non-unique "name" values',E1056:'The {0} widget does not support buttons of the "{1}" type',E1058:'The "startDayHour" must be earlier than the "endDayHour"',W1001:'The "key" option cannot be modified after initialization',W1002:"An item with the key '{0}' does not exist",W1003:"A group with the key '{0}' in which you are trying to select items does not exist",W1004:"The item '{0}' you are trying to select in the group '{1}' does not exist",W1005:"Due to column data types being unspecified, data has been loaded twice in order to apply initial filter settings. To resolve this issue, specify data types for all grid columns.",W1006:"The map service returned the following error: '{0}'",W1007:"No item with key {0} was found in the data source, but this key was used as the parent key for item {1}",W1008:"Cannot scroll to the '{0}' date because it does not exist on the current view",W1009:"Searching works only if data is specified using the dataSource option",W1010:"The capability to select all items works with source data of plain structure only",W1011:'The "keyExpr" option is not applied when dataSource is not an array',W1012:"The '{0}' key field is not found in data objects",W1013:'The "message" field in the dialog component was renamed to "messageHtml". Change your code correspondingly. In addition, if you used HTML code in the message, make sure that it is secure',W1014:"The Floating Action Button exceeds the recommended speed dial action count. If you need to display more speed dial actions, increase the maxSpeedDialActionCount option value in the global config.",W1015:'The "cellDuration" should divide the range from the "startDayHour" to the "endDayHour" into even intervals'})},DDHz:function(e,t,n){"use strict";var i=n("FKN7"),r=n("jeLr"),o=n("KAnu").noop,a=n("AQWU"),s=a.abstract,c=n("GCD8"),u=n("T4bj"),l=n("hMAE"),d="dxListEditDecorator",h=c.addNamespace(u.down,d),f=c.addNamespace(l.active,d),p="dx-list-switchable-delete-ready",g="dx-list-switchable-menu-item-shield-positioning",m=a.inherit({_init:function(){this._$topShield=i("
").addClass("dx-list-switchable-delete-top-shield"),this._$bottomShield=i("
").addClass("dx-list-switchable-delete-bottom-shield"),this._$itemContentShield=i("
").addClass("dx-list-switchable-delete-item-content-shield"),r.on(this._$topShield,h,this._cancelDeleteReadyItem.bind(this)),r.on(this._$bottomShield,h,this._cancelDeleteReadyItem.bind(this)),this._list.$element().append(this._$topShield.toggle(!1)).append(this._$bottomShield.toggle(!1))},handleClick:function(){return this._cancelDeleteReadyItem()},_cancelDeleteReadyItem:function(){return!!this._$readyToDeleteItem&&(this._cancelDelete(this._$readyToDeleteItem),!0)},_cancelDelete:function(e){this._toggleDeleteReady(e,!1)},_toggleDeleteReady:function(e,t){void 0===t&&(t=!this._isReadyToDelete(e)),this._toggleShields(e,t),this._toggleScrolling(t),this._cacheReadyToDeleteItem(e,t),this._animateToggleDelete(e,t)},_isReadyToDelete:function(e){return e.hasClass(p)},_toggleShields:function(e,t){this._list.$element().toggleClass("dx-list-switchable-menu-shield-positioning",t),this._$topShield.toggle(t),this._$bottomShield.toggle(t),t&&this._updateShieldsHeight(e),this._toggleContentShield(e,t)},_updateShieldsHeight:function(e){var t=this._list.$element(),n=t.offset().top,i=t.outerHeight(),r=e.offset().top-n,o=i-e.outerHeight()-r;this._$topShield.height(Math.max(r,0)),this._$bottomShield.height(Math.max(o,0))},_toggleContentShield:function(e,t){t?e.find(".dx-list-item-content").first().append(this._$itemContentShield):this._$itemContentShield.detach()},_toggleScrolling:function(e){var t=this._list.$element().dxScrollView("instance");e?t.on("start",this._cancelScrolling):t.off("start",this._cancelScrolling)},_cancelScrolling:function(e){e.event.cancel=!0},_cacheReadyToDeleteItem:function(e,t){t?this._$readyToDeleteItem=e:delete this._$readyToDeleteItem},_animateToggleDelete:function(e,t){t?(this._enablePositioning(e),this._prepareDeleteReady(e),this._animatePrepareDeleteReady(e),r.off(e,u.up)):(this._forgetDeleteReady(e),this._animateForgetDeleteReady(e).done(this._disablePositioning.bind(this,e)))},_enablePositioning:function(e){e.addClass(g),r.on(e,f,o),r.one(e,u.up,this._disablePositioning.bind(this,e))},_disablePositioning:function(e){e.removeClass(g),r.off(e,f)},_prepareDeleteReady:function(e){e.addClass(p)},_forgetDeleteReady:function(e){e.removeClass(p)},_animatePrepareDeleteReady:s,_animateForgetDeleteReady:s,_getDeleteButtonContainer:function(e){return(e=e||this._$readyToDeleteItem).children(".dx-list-switchable-delete-button-container")},_deleteItem:function(e){this._getDeleteButtonContainer(e=e||this._$readyToDeleteItem).detach(),e.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(e).always(this._cancelDelete.bind(this,e))},_isRtlEnabled:function(){return this._list.option("rtlEnabled")},dispose:function(){this._$topShield&&this._$topShield.remove(),this._$bottomShield&&this._$bottomShield.remove(),this.callBase.apply(this,arguments)}});e.exports=m},DH7j:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}()},DHwc:function(e,t,n){"use strict";var i=C(n("FKN7")),r=C(n("tUd6")),o=C(n("jeLr")),a=C(n("0osO")),s=C(n("D6VQ")),c=n("KAnu"),u=n("ti0F"),l=n("v4HY"),d=n("zl3R"),h=n("XpgS"),f=n("1LL4"),p=n("cGv3"),g=C(n("hMwJ")),m=n("vlix"),v=C(n("LdFP")),_=n("GCD8"),y=C(n("uHSv")),b=C(n("iTdP")),w=n("tJvG");function C(e){return e&&e.__esModule?e:{default:e}}function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t,n){return(k="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=E(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(e,t){return!t||"object"!==O(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I="dx-menu-item",D="dx-menu-item-expanded",M="dx-menu-items-container",A="dx-menu-item-wrapper",P="dx-submenu",L="dx-state-hover",R="down",j="first",N="last",F=["onShowing","onShown","onSubmenuCreated","onHiding","onHidden","onPositioning","onLeftFirstItem","onLeftLastItem","onCloseRootSubmenu","onExpandLastSubmenu"],B=["up",R,j,N],V="dxcontextmenu",$=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(C,e);var t,n,s,b=(n=C,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=E(n);if(s){var i=E(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return T(this,e)});function C(){return S(this,C),b.apply(this,arguments)}return(t=[{key:"getShowEvent",value:function(e){var t=null;return(0,u.isObject)(e)?null!==e.name&&(t=e.name||V):t=e,t}},{key:"getShowDelay",value:function(e){return(0,u.isObject)(e)&&e.delay}},{key:"_getDefaultOptions",value:function(){return(0,f.extend)(k(E(C.prototype),"_getDefaultOptions",this).call(this),{showEvent:V,closeOnOutsideClick:!0,position:{at:"top left",my:"top left"},onShowing:null,onShown:null,onSubmenuCreated:null,onHiding:null,onHidden:null,onPositioning:null,submenuDirection:"auto",visible:!1,target:void 0,onLeftFirstItem:null,onLeftLastItem:null,onCloseRootSubmenu:null,onExpandLastSubmenu:null})}},{key:"_defaultOptionsRules",value:function(){return k(E(C.prototype),"_defaultOptionsRules",this).call(this).concat([{device:function(){return!(0,p.hasWindow)()},options:{animation:null}}])}},{key:"_initActions",value:function(){var e=this;this._actions={},(0,d.each)(F,function(t,n){e._actions[n]=e._createActionByOption(n)||c.noop})}},{key:"_setOptionsByReference",value:function(){k(E(C.prototype),"_setOptionsByReference",this).call(this),(0,f.extend)(this._optionsByReference,{animation:!0,selectedItem:!0})}},{key:"_focusInHandler",value:function(){}},{key:"_itemContainer",value:function(){return this._overlay?this._overlay.$content():(0,i.default)()}},{key:"_eventBindingTarget",value:function(){return this._itemContainer()}},{key:"itemsContainer",value:function(){return this._overlay?this._overlay.$content():void 0}},{key:"_supportedKeys",value:function(){var e=this;return(0,f.extend)(k(E(C.prototype),"_supportedKeys",this).call(this),{space:function(){var t=(0,i.default)(e.option("focusedElement"));e.hide(),t.length&&e._isSelectionEnabled()&&e.selectItem(t[0])},esc:this.hide})}},{key:"_getActiveItem",value:function(){var e=this._getAvailableItems(),t=e.filter(".".concat("dx-state-focused")),n=e.filter(".".concat(L));return n.closest(".".concat(M)).find(".".concat(I)).index(t)>=0?t:n.length?n:k(E(C.prototype),"_getActiveItem",this).call(this)}},{key:"_moveFocus",value:function(e){var t,n=this._getItemsByLocation(e),r=this._getActiveItem(!0),o=this.itemsContainer().find(".".concat(L)),a=!(!(0,i.default)(this.option("focusedElement")).length&&!o.length);switch(e){case"up":t=a?this._prevItem(n):r,r.is(n.first())&&this._actions.onLeftFirstItem(r);break;case R:t=a?this._nextItem(n):r,r.is(n.last())&&this._actions.onLeftLastItem(r);break;case"right":t=this.option("rtlEnabled")?this._hideSubmenuHandler():this._expandSubmenuHandler(n,e);break;case"left":t=this.option("rtlEnabled")?this._expandSubmenuHandler(n,e):this._hideSubmenuHandler();break;case j:t=n.first();break;case N:t=n.last();break;default:return k(E(C.prototype),"_moveFocus",this).call(this,e)}0!==t.length&&this.option("focusedElement",(0,l.getPublicElement)(t))}},{key:"_getItemsByLocation",value:function(e){var t,n=this._getActiveItem(!0);return(0,h.inArray)(e,B)>=0&&(t=n.closest(".".concat(M)).children().children()),this._getAvailableItems(t)}},{key:"_getAriaTarget",value:function(){return this.$element()}},{key:"_refreshActiveDescendant",value:function(){if((0,u.isDefined)(this._overlay)){var e=this._overlay.$content();k(E(C.prototype),"_refreshActiveDescendant",this).call(this,e)}}},{key:"_hideSubmenuHandler",value:function(){var e=this._getActiveItem(!0),t=e.parents(".".concat(D)).first();return t.length?(this._hideSubmenusOnSameLevel(t),this._hideSubmenu(e.closest(".".concat(P))),t):(this._actions.onCloseRootSubmenu(e),e)}},{key:"_expandSubmenuHandler",value:function(e,t){var n=this._getActiveItem(!0),i=this._getItemData(n),r=this._dataAdapter.getNodeByItem(i),o=this._hasSubmenu(r),a=n.children(".".concat(P));return o&&!n.hasClass("dx-state-disabled")?(a.length&&"hidden"!==a.css("visibility")||this._showSubmenu(n),this._nextItem(this._getItemsByLocation(t))):(this._actions.onExpandLastSubmenu(n),n)}},{key:"_clean",value:function(){this._overlay&&(this._overlay.$element().remove(),this._overlay=null),this._detachShowContextMenuEvents(this._getTarget()),k(E(C.prototype),"_clean",this).call(this)}},{key:"_initMarkup",value:function(){this.$element().addClass("dx-has-context-menu"),k(E(C.prototype),"_initMarkup",this).call(this)}},{key:"_render",value:function(){k(E(C.prototype),"_render",this).call(this),this._renderVisibility(this.option("visible")),this._addWidgetClass()}},{key:"_renderContentImpl",value:function(){this._detachShowContextMenuEvents(this._getTarget()),this._attachShowContextMenuEvents()}},{key:"_attachKeyboardEvents",value:function(){!this._keyboardListenerId&&this._focusTarget().length&&k(E(C.prototype),"_attachKeyboardEvents",this).call(this)}},{key:"_renderContextMenuOverlay",value:function(){if(!this._overlay){var e=this._getOverlayOptions();this._overlay=this._createComponent((0,i.default)("
").appendTo(this._$element),y.default,e);var t=this._overlay.$content();t.addClass("dx-context-menu"),this._addCustomCssClass(t),this._addPlatformDependentClass(t),this._attachContextMenuEvent()}}},{key:"_itemContextMenuHandler",value:function(e){k(E(C.prototype),"_itemContextMenuHandler",this).call(this,e),e.stopPropagation()}},{key:"_addPlatformDependentClass",value:function(e){v.default.current().phone&&e.addClass("dx-menu-phone-overlay")}},{key:"_detachShowContextMenuEvents",value:function(e){var t=this.getShowEvent(this.option("showEvent"));if(t){var n=(0,_.addNamespace)(t,this.NAME);this._showContextMenuEventHandler?o.default.off(r.default.getDocument(),n,e,this._showContextMenuEventHandler):o.default.off((0,i.default)(e),n)}}},{key:"_attachShowContextMenuEvents",value:function(){var e=this,t=this._getTarget(),n=this.getShowEvent(this.option("showEvent"));if(n){var a=(0,_.addNamespace)(n,this.NAME),s=this._createAction(function(t){var n=e.getShowDelay(e.option("showEvent"));n?setTimeout(function(){return e._show(t.event)},n):e._show(t.event)},{validatingTargetName:"target"}),c=function(e){return s({event:e,target:(0,i.default)(e.currentTarget)})};s=this._createAction(s),(0,u.isRenderer)(t)||t.nodeType||(0,u.isWindow)(t)?(this._showContextMenuEventHandler=void 0,o.default.on(t,a,c)):(this._showContextMenuEventHandler=c,o.default.on(r.default.getDocument(),a,t,this._showContextMenuEventHandler))}}},{key:"_hoverEndHandler",value:function(e){k(E(C.prototype),"_hoverEndHandler",this).call(this,e),e.stopPropagation()}},{key:"_renderDimensions",value:function(){}},{key:"_renderContainer",value:function(e,t){var n=t||this._itemContainer();(e=(0,i.default)("
")).appendTo(n).addClass(P).css("visibility",t?"hidden":"visible");var r=k(E(C.prototype),"_renderContainer",this).call(this,e);return t?r:this.option("width")?r.css("minWidth",this.option("width")):this.option("height")?r.css("minHeight",this.option("height")):r}},{key:"_renderSubmenuItems",value:function(e,t){this._renderItems(this._getChildNodes(e),t),this._actions.onSubmenuCreated({itemElement:(0,l.getPublicElement)(t),itemData:e.internalFields.item,submenuElement:(0,l.getPublicElement)(t.children(".".concat(P)))})}},{key:"_getOverlayOptions",value:function(){var e=this.option("position");return{focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),innerOverlay:!0,closeOnOutsideClick:this._closeOnOutsideClickHandler.bind(this),propagateOutsideClick:!0,closeOnTargetScroll:!0,deferRendering:!1,position:{at:e.at,my:e.my,of:this._getTarget(),collision:"flipfit"},shading:!1,showTitle:!1,height:"auto",width:"auto",onShown:this._overlayShownActionHandler.bind(this),onHiding:this._overlayHidingActionHandler.bind(this),onHidden:this._overlayHiddenActionHandler.bind(this)}}},{key:"_overlayShownActionHandler",value:function(e){this._actions.onShown(e)}},{key:"_overlayHidingActionHandler",value:function(e){this._actions.onHiding(e),e.cancel||(this._hideAllShownSubmenus(),this._setOptionWithoutOptionChange("visible",!1))}},{key:"_overlayHiddenActionHandler",value:function(e){this._actions.onHidden(e)}},{key:"_closeOnOutsideClickHandler",value:function(e){var t=this.option("closeOnOutsideClick");if((0,u.isFunction)(t))return t(e);if(!t)return!1;if(r.default.isDocument(e.target))return!0;var n=this._getActiveItemsContainer(e.target),i=this._getItemsContainers(),o=this._searchActiveItem(e.target),a=this.$element().parents(".".concat(I)),s=o[0]===a[0]&&o.length&&a.length;return!(this._isIncludeOverlay(n,i)&&o.length)&&!s||("onClick"===this._getShowSubmenuMode()&&this._hideAllShownChildSubmenus(o),!1)}},{key:"_getActiveItemsContainer",value:function(e){return(0,i.default)(e).closest(".".concat(M))}},{key:"_getItemsContainers",value:function(){return this._overlay._$content.find(".".concat(M))}},{key:"_searchActiveItem",value:function(e){return(0,i.default)(e).closest(".".concat(I)).eq(0)}},{key:"_isIncludeOverlay",value:function(e,t){var n=!1;return(0,d.each)(t,function(t,i){e.is(i)&&!n&&(n=!0)}),n}},{key:"_hideAllShownChildSubmenus",value:function(e){var t=this,n=e.find(".".concat(P)),i=(0,f.extend)([],this._shownSubmenus);n.length>0&&(0,d.each)(i,function(n,i){var r=t._searchActiveItem(i.context).parent();r.parent().is(e.parent().parent())&&!r.is(e.parent())&&t._hideSubmenu(i)})}},{key:"_showSubmenu",value:function(e){var t=this._dataAdapter.getNodeByItem(this._getItemData(e));if(this._hideSubmenusOnSameLevel(e),this._hasSubmenu(t)){var n=e.children(".".concat(P)),i=n.length;k(E(C.prototype),"_showSubmenu",this).call(this,e),i||this._renderSubmenuItems(t,e),this._isSubmenuVisible(n)||this._drawSubmenu(e)}}},{key:"_hideSubmenusOnSameLevel",value:function(e){var t=e.parent(".".concat(A)).siblings().find(".".concat(D));t.length&&(t.removeClass(D),this._hideSubmenu(t.find(".".concat(P))))}},{key:"_hideSubmenuGroup",value:function(e){this._isSubmenuVisible(e)&&this._hideSubmenuCore(e)}},{key:"_isSubmenuVisible",value:function(e){return"visible"===e.css("visibility")}},{key:"_drawSubmenu",value:function(e){var t=this.option("animation")?this.option("animation").show:{},n=e.children(".".concat(P)),i=this._getSubmenuPosition(e);this._overlay&&this._overlay.option("visible")&&((0,u.isDefined)(this._shownSubmenus)||(this._shownSubmenus=[]),(0,h.inArray)(n,this._shownSubmenus)&&this._shownSubmenus.push(n),t&&g.default.stop(n),(0,m.setup)(n,i),t&&((0,u.isPlainObject)(t.to)&&(t.to.position=i),this._animate(n,t)),n.css("visibility","visible"))}},{key:"_animate",value:function(e,t){g.default.animate(e,t)}},{key:"_getSubmenuPosition",value:function(e){var t=this.option("submenuDirection").toLowerCase(),n={collision:"flip",of:e.parent(".".concat(A)),offset:{h:0,v:-1}};switch(t){case"left":n.at="left top",n.my="right top";break;case"right":n.at="right top",n.my="left top";break;default:this.option("rtlEnabled")?(n.at="left top",n.my="right top"):(n.at="right top",n.my="left top")}return n}},{key:"_updateSubmenuVisibilityOnClick",value:function(e){if(e.args.length){var t=e.args[0].itemData,n=this._dataAdapter.getNodeByItem(t);if(n){var r=(0,i.default)(e.args[0].itemElement),o=r.find(".".concat(P));if(this._hasSubmenu(n)&&!o.length&&(this._renderSubmenuItems(n,r),o=r.find(".".concat(P))),(r.context!==o.context||"visible"!==o.css("visibility"))&&t&&!t.disabled&&(!t||!1!==t.closeMenuOnClick))if(this._updateSelectedItemOnClick(e),0===o.length){var a=(0,i.default)(r.parents(".".concat(P))[0]);this._hideSubmenu(a),!e.canceled&&this._overlay&&this._overlay.option("visible")&&this.option("visible",!1)}else this._shownSubmenus&&this._shownSubmenus.length>0&&this._shownSubmenus[0].is(o)&&this._hideSubmenu(o),this._showSubmenu(r)}}}},{key:"_hideSubmenu",value:function(e){var t=this,n=(0,f.extend)([],this._shownSubmenus);(0,d.each)(n,function(n,i){(e.is(i)||(0,l.contains)(e[0],i[0]))&&(i.parent().removeClass(D),t._hideSubmenuCore(i))})}},{key:"_hideSubmenuCore",value:function(e){var t=(0,h.inArray)(e,this._shownSubmenus),n=this.option("animation")?this.option("animation").hide:null;t>=0&&this._shownSubmenus.splice(t,1),this._stopAnimate(e),n&&this._animate(e,n),e.css("visibility","hidden")}},{key:"_stopAnimate",value:function(e){g.default.stop(e,!0)}},{key:"_hideAllShownSubmenus",value:function(){var e=this,t=(0,f.extend)([],this._shownSubmenus);this._overlay.$content().find(".".concat(D)).removeClass(D),(0,d.each)(t,function(t,n){e._hideSubmenu(n)})}},{key:"_visibilityChanged",value:function(e){e&&this._renderContentImpl()}},{key:"_optionChanged",value:function(e){if((0,h.inArray)(e.name,F)>-1)this._initActions();else switch(e.name){case"visible":this._renderVisibility(e.value);break;case"showEvent":case"position":case"submenuDirection":this._invalidate();break;case"target":e.previousValue&&this._detachShowContextMenuEvents(e.previousValue),this._invalidate();break;case"closeOnOutsideClick":break;default:k(E(C.prototype),"_optionChanged",this).call(this,e)}}},{key:"_renderVisibility",value:function(e){return e?this._show():this._hide()}},{key:"_toggleVisibility",value:function(){}},{key:"_show",value:function(e){var t={jQEvent:e},n=(new w.Deferred).reject().promise();if(this._actions.onShowing(t),t.cancel)return n;var i=this._positionContextMenu(e);return i&&(this._overlay||(this._renderContextMenuOverlay(),this._overlay.$content().addClass(this._widgetClass()),this._renderFocusState(),this._attachHoverEvents(),this._attachClickEvent(),this._renderItems(this._dataAdapter.getRootNodes())),this._setOptionWithoutOptionChange("visible",!0),this._overlay.option("position",i),n=this._overlay.show(),e&&e.stopPropagation(),this._setAriaAttributes()),n}},{key:"_setAriaAttributes",value:function(){this._overlayContentId="dx-".concat(new a.default),this.setAria("owns",this._overlayContentId),this.setAria({id:this._overlayContentId,role:"menu"},this._overlay.$content())}},{key:"_cleanAriaAttributes",value:function(){this._overlay&&this.setAria("id",null,this._overlay.$content()),this.setAria("owns",void 0)}},{key:"_getTarget",value:function(){return this.option("target")||this.option("position").of||(0,i.default)(r.default.getDocument())}},{key:"_getContextMenuPosition",value:function(){return(0,f.extend)({},this.option("position"),{of:this._getTarget()})}},{key:"_positionContextMenu",value:function(e){var t=this._getContextMenuPosition(),n=this._isInitialOptionValue("position"),i=this._createActionByOption("onPositioning",r);e&&e.preventDefault&&n&&(t.of=e);var r={position:t,event:e};return i(r),r.cancel?t=null:r.event&&(r.event.cancel=!0,e.preventDefault()),t}},{key:"_refresh",value:function(){if((0,p.hasWindow)())if(this._overlay){var e=this._overlay.option("position");k(E(C.prototype),"_refresh",this).call(this),this._overlay&&this._overlay.option("position",e)}else k(E(C.prototype),"_refresh",this).call(this);else k(E(C.prototype),"_refresh",this).call(this)}},{key:"_hide",value:function(){var e;return this._overlay&&(e=this._overlay.hide(),this._setOptionWithoutOptionChange("visible",!1)),this._cleanAriaAttributes(),this.option("focusedElement",null),e||(new w.Deferred).reject().promise()}},{key:"toggle",value:function(e){var t=this.option("visible");return this._renderVisibility(e=void 0===e?!t:e)}},{key:"show",value:function(){return this.toggle(!0)}},{key:"hide",value:function(){return this.toggle(!1)}}])&&function(e,t){for(var n=0;n12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n("wd/R"))},DLVy:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventsStrategy=void 0;var i,r=(i=n("cYys"))&&i.__esModule?i:{default:i},o=n("zl3R"),a=n("ti0F");function s(e,t){for(var n=0;n0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0?(n.deliveryForm.controls[e.id].clearValidators(),n.deliveryForm.controls[e.id].updateValueAndValidity()):(n.deliveryForm.controls[e.id].setValidators([o.D.requiredTrue]),n.deliveryForm.controls[e.id].updateValueAndValidity()))})})];case 3:return i.sent(),[2]}})})},e.\u0275fac=function(t){return new(t||e)(u.ac(s.Gb),u.ac(s.Mb),u.ac(i.a),u.ac(r.a),u.ac(o.f))},e.\u0275cmp=u.Ub({type:e,selectors:[["app-stop-delivery"]],inputs:{stop:"stop"},decls:18,vars:4,consts:[["title","Stop Delivery","hideCloseButton","true",3,"onDismiss"],[3,"formGroup"],[4,"ngFor","ngForOf"],["expand","full",1,"btnDanger",3,"click"],["name","close-circle"],["expand","full",3,"disabled","click"],["name","save"],[4,"ngIf"],[1,"w-100"],["size","9"],["padding",""],["size","2",1,"ion-align-self-center"],["fill","clear",3,"click"],["slot","icon-only","name","chatbubbles"],["size","1"],[3,"ngModel","formControlName","ngModelChange"],[1,"notifications-badge"]],template:function(e,t){1&e&&(u.gc(0,"base-modal",0),u.nc("onDismiss",function(){return t.dismiss()}),u.gc(1,"base-modal-content"),u.gc(2,"ion-content"),u.gc(3,"form",1),u.gc(4,"ion-list"),u.Pc(5,f,11,4,"ion-item",2),u.fc(),u.fc(),u.fc(),u.fc(),u.fc(),u.gc(6,"ion-footer"),u.gc(7,"ion-grid"),u.gc(8,"ion-row"),u.gc(9,"ion-col"),u.gc(10,"ion-button",3),u.nc("click",function(){return t.dismiss()}),u.bc(11,"ion-icon",4),u.Rc(12," CANCEL "),u.fc(),u.fc(),u.gc(13,"ion-col"),u.gc(14,"ion-button",5),u.nc("click",function(){return t.save()}),u.bc(15,"ion-icon",6),u.Rc(16," SAVE "),u.fc(),u.fc(),u.fc(),u.fc(),u.fc(),u.Pc(17,p,1,0,"cmx-loader",7)),2&e&&(u.Ob(3),u.wc("formGroup",t.deliveryForm),u.Ob(2),u.wc("ngForOf",t.deliverObj),u.Ob(9),u.wc("disabled",t.deliveryForm.invalid),u.Ob(3),u.wc("ngIf",t.loader))},styles:[".notifications-badge[_ngcontent-%COMP%]{background-color:#b9c930;color:#000;position:absolute;top:1px;right:7px;border-radius:100%;padding:1px}ion-col[_ngcontent-%COMP%]{align-self:center}"]}),e}()},DiwR:function(e,t,n){"use strict";n.d(t,"a",function(){return v}),n.d(t,"b",function(){return _});var i=n("1OyB"),r=n("vuIU"),o=n("JX7q"),a=n("ReuC"),s=n("foSv"),c=n("Ji7U"),u=n("LK+K"),l=n("mrSG"),d=n("jhN1"),h=n("fXoL"),f=n("ZbT9"),p=n.n(f),g=n("PVOt"),m=n("6t9p"),v=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,r,a,s,c,u,l,d,h){var f;return Object(i.a)(this,n),(f=t.call(this,e,r,a,s,d,h))._watcherHelper=s,f._idh=c,f._createEventEmitters([{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"validated",emit:"onValidated"},{emit:"adapterChange"},{emit:"elementAttrChange"},{emit:"heightChange"},{emit:"nameChange"},{emit:"validationGroupChange"},{emit:"validationRulesChange"},{emit:"widthChange"}]),f.parentElement=f.getParentElement(u),f._idh.setHost(Object(o.a)(f)),l.setHost(Object(o.a)(f)),f}return Object(r.a)(n,[{key:"adapter",get:function(){return this._getOption("adapter")},set:function(e){this._setOption("adapter",e)}},{key:"elementAttr",get:function(){return this._getOption("elementAttr")},set:function(e){this._setOption("elementAttr",e)}},{key:"height",get:function(){return this._getOption("height")},set:function(e){this._setOption("height",e)}},{key:"name",get:function(){return this._getOption("name")},set:function(e){this._setOption("name",e)}},{key:"validationGroup",get:function(){return this._getOption("validationGroup")},set:function(e){this._setOption("validationGroup",e)}},{key:"validationRules",get:function(){return this._getOption("validationRules")},set:function(e){this._setOption("validationRules",e)}},{key:"width",get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)}},{key:"validationRulesChildren",get:function(){return this._getOption("validationRules")},set:function(e){this.setChildren("validationRules",e)}},{key:"_createInstance",value:function(e,t){return new p.a(this.parentElement?this.parentElement:e,t)}},{key:"getParentElement",value:function(e){if(e)return e.getHost().element.nativeElement}},{key:"ngOnDestroy",value:function(){this._destroyWidget()}},{key:"ngOnChanges",value:function(e){Object(a.a)(Object(s.a)(n.prototype),"ngOnChanges",this).call(this,e),this.setupChanges("validationRules",e)}},{key:"setupChanges",value:function(e,t){e in this._optionsToUpdate||this._idh.setup(e,t)}},{key:"ngDoCheck",value:function(){this._idh.doCheck("validationRules"),this._watcherHelper.checkWatchers(),Object(a.a)(Object(s.a)(n.prototype),"ngDoCheck",this).call(this),Object(a.a)(Object(s.a)(n.prototype),"clearChangedOptions",this).call(this)}},{key:"_setOption",value:function(e,t){var i=this._idh.setupSingle(e,t),r=null!==this._idh.getChanges(e,t);(i||r)&&Object(a.a)(Object(s.a)(n.prototype),"_setOption",this).call(this,e,t)}}]),n}(g.c);return e.\u0275fac=function(t){return new(t||e)(h.ac(h.q),h.ac(h.J),h.ac(g.f),h.ac(g.k),h.ac(g.h),h.ac(g.j,13),h.ac(g.j),h.ac(d.d),h.ac(h.M))},e.\u0275cmp=h.Ub({type:e,selectors:[["dx-validator"]],contentQueries:function(e,t,n){var i;1&e&&h.Tb(n,m.hb,!1),2&e&&h.Ec(i=h.oc())&&(t.validationRulesChildren=i)},inputs:{adapter:"adapter",elementAttr:"elementAttr",height:"height",name:"name",validationGroup:"validationGroup",validationRules:"validationRules",width:"width"},outputs:{onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValidated:"onValidated",adapterChange:"adapterChange",elementAttrChange:"elementAttrChange",heightChange:"heightChange",nameChange:"nameChange",validationGroupChange:"validationGroupChange",validationRulesChange:"validationRulesChange",widthChange:"widthChange"},features:[h.Nb([g.f,g.k,g.j,g.h]),h.Lb,h.Mb],decls:0,vars:0,template:function(e,t){},encapsulation:2}),e=Object(l.__decorate)([Object(l.__param)(5,Object(h.T)()),Object(l.__param)(5,Object(h.K)()),Object(l.__param)(5,Object(h.t)()),Object(l.__param)(8,Object(h.w)(h.M)),Object(l.__metadata)("design:paramtypes",[h.q,h.J,g.f,g.k,g.h,g.j,g.j,d.d,Object])],e)}(),_=function(){var e=Object(r.a)(function e(){Object(i.a)(this,e)});return e.\u0275mod=h.Yb({type:e}),e.\u0275inj=h.Xb({factory:function(t){return new(t||e)},imports:[[m.nb,m.ib,g.d,g.g,d.b],m.nb,m.ib,g.g]}),e}()},Dkky:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n("wd/R"))},Dmvi:function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(n("wd/R"))},DoHr:function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};e.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"\xf6\xf6":"\xd6\xd6":n?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(e){return"\xf6s"===e||"\xd6S"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'\u0131nc\u0131";var i=e%10;return e+(t[i]||t[e%100-i]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n("wd/R"))},Dwac:function(e,t,n){"use strict";var i=b(n("FKN7")),r=n("cGv3"),o=b(n("jeLr")),a=n("KAnu"),s=b(n("m6TM")),c=n("ti0F"),u=n("zl3R"),l=n("1LL4"),d=n("XgSC"),h=n("TssP"),f=n("yxXJ"),p=n("8S5z"),g=b(n("HZnW")),m=b(n("ZA3g")),v=b(n("fGF2")),_=b(n("imRD")),y=b(n("uHaw"));function b(e){return e&&e.__esModule?e:{default:e}}var w,C="dx-group-row",O="dx-column-lines",S="dx-row-alt",k="dx-last-row-border";e.exports={defaultOptions:function(){return{hoverStateEnabled:!1,scrolling:{useNative:"auto"},loadPanel:{enabled:"auto",text:_.default.format("Loading"),width:200,height:90,showIndicator:!0,indicatorSrc:"",showPane:!0},rowTemplate:null,columnAutoWidth:!1,noDataText:_.default.format("dxDataGrid-noDataText"),wordWrapEnabled:!1,showColumnLines:!0,showRowLines:!1,rowAlternationEnabled:!1,activeStateEnabled:!1,twoWayBindingEnabled:!0}},views:{rowsView:g.default.ColumnsView.inherit((w=function(e,t){var n=(0,h.isEmpty)(t.text)&&"data"===t.rowType,i=t.text,r=e.get(0);n?(0,p.setEmptyText)(e):t.column.encodeHtml?r.textContent=i:r.innerHTML=i},{_getDefaultTemplate:function(e){switch(e.command){case"empty":return function(e){e.html(" ")};default:return w}},_getDefaultGroupTemplate:function(e){var t=this.option("summary.texts");return function(n,i){var r=i.data,o=i.column.caption+": "+i.text,a=n.get(0);i.summaryItems&&i.summaryItems.length&&(o+=" "+(0,p.getGroupRowSummaryText)(i.summaryItems,t)),r&&(i.groupContinuedMessage&&i.groupContinuesMessage?o+=" ("+i.groupContinuedMessage+". "+i.groupContinuesMessage+")":i.groupContinuesMessage?o+=" ("+i.groupContinuesMessage+")":i.groupContinuedMessage&&(o+=" ("+i.groupContinuedMessage+")")),n.addClass("dx-group-cell"),e.encodeHtml?a.textContent=o:a.innerHTML=o}},_update:function(){},_getCellTemplate:function(e){var t=e.column;return"group"!==e.rowType||!(0,c.isDefined)(t.groupIndex)||t.showWhenGrouped||t.command?("data"===e.rowType||t.command)&&t.cellTemplate?t.cellTemplate:{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(t)}:t.groupCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultGroupTemplate(t)}},_createRow:function(e){var t=this.callBase(e);if(e){var n="group"===e.rowType,i="data"===e.rowType;if(i&&t.addClass("dx-data-row"),i&&this.option("showRowLines")&&t.addClass("dx-row-lines"),this.option("showColumnLines")&&t.addClass(O),!1===e.visible&&t.hide(),n){t.addClass(C);var r=e.isExpanded;this.setAria("role","row",t),this.setAria("expanded",(0,c.isDefined)(r)&&r.toString(),t)}}return t},_rowPrepared:function(e,t,n){var i=this;"data"===t.rowType&&(this.option("rowAlternationEnabled")&&(this._isAltRow(n)&&e.addClass(S),t.watch&&t.watch(function(){return i._isAltRow(n)},function(t){e.toggleClass(S,t)})),this._setAriaRowIndex(t,e),t.watch&&t.watch(function(){return t.rowIndex},function(){return i._setAriaRowIndex(t,e)})),this.callBase.apply(this,arguments)},_setAriaRowIndex:function(e,t){var n=this.component,i="standard"===n.option("scrolling.mode")&&"virtual"!==n.option("scrolling.rowRenderingMode"),r=e.rowIndex+1;i?r=n.pageIndex()*n.pageSize()+r:r+=this._dataController.getRowIndexOffset(),this.setAria("rowindex",r,t)},_afterRowPrepared:function(e){var t=this,n=e.args[0],i=this._dataController,r=i.getVisibleRows()[n.rowIndex],a=this.option("integrationOptions.watchMethod");if(n.data&&"data"===n.rowType&&!n.isNewRow&&this.option("twoWayBindingEnabled")&&a&&r){var s=a(function(){return i.generateDataValues(n.data,n.columns)},function(){i.repaintRows([r.rowIndex],t.option("repaintChangesOnly"))},{deep:!0,skipImmediate:!0});o.default.on(n.rowElement,v.default,s)}},_renderScrollable:function(e){var t=this,n=t.element();if(n.children().length||n.append("
"),!e&&t._loadPanel||t._renderLoadPanel(n,n.parent(),t._dataController.isLocalStore()),(e||!t.getScrollable())&&t._dataController.isLoaded()){for(var i=t.getColumns(),r=!0,o=0;o0&&!this._rowHeight},_getRowsHeight:function(e){return e.children("tbody").children().not(".dx-virtual-row").not(".dx-freespace-row").toArray().reduce(function(e,t){return e+(0,d.getBoundingRect)(t).height},0)},_updateRowHeight:function(){var e=this,t=e._getTableElement(),n=e._dataController.items().length;if(t&&e._needUpdateRowHeight(n)){var i=e._getRowsHeight(t);e._rowHeight=i/n}},_findContentElement:function(){var e=this.element(),t=this.getScrollable();if(e)return t&&(e=t.$content()),e.children().first()},_getRowElements:function(e){var t=this.callBase(e);return t&&t.not(".dx-freespace-row")},_getFreeSpaceRowElements:function(e){var t=e||this.getTableElements();return t&&t.children("tbody").children(".dx-freespace-row")},_getNoDataText:function(){return this.option("noDataText")},_rowClick:function(e){var t=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowClick",(0,l.extend)({evaluate:function(e){return(0,f.compileGetter)(e)(t.data)}},e,t))},_rowDblClick:function(e){var t=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowDblClick",(0,l.extend)({},e,t))},_getColumnsCountBeforeGroups:function(e){for(var t=0;t1&&(h.colspan=s.colspan),this._renderCell(e,{value:r.values[r.groupIndex],row:r,rowIndex:a,column:h,columnIndex:s.columnIndex})},_renderRows:function(e,t){var n=this,i=n.option("scrolling.mode");n.callBase(e,(0,l.extend)({scrollingMode:i},t)),n._checkRowKeys(t.change),n._renderFreeSpaceRow(e),n._hasHeight||n.updateFreeSpaceRowHeight(e)},_renderRow:function(e,t){var n=this,i=t.row,r=n.option("rowTemplate");"data"!==i.rowType&&"group"!==i.rowType||(0,c.isDefined)(i.groupIndex)||!r?n.callBase(e,t):n.renderTemplate(e,r,(0,l.extend)({columns:t.columns},i),!0)},_renderTable:function(e){var t=this,n=t.callBase(e);return(0,c.isDefined)(t._getTableElement())?t._renderScrollable():(t._setTableElement(n),t._renderScrollable(!0),t.resizeCompleted.add(function e(){var n=t.getScrollable();n&&t.element().closest((0,r.getWindow)().document).length&&(t.resizeCompleted.remove(e),n._visibilityChanged(!0))})),n},_createTable:function(){var e=this.callBase.apply(this,arguments);return this.option("rowTemplate")&&e.appendTo(this.component.$element()),e},_renderCore:function(e){var t=this,n=t.element();n.addClass(t.addWidgetPrefix("rowsview")).toggleClass(t.addWidgetPrefix("nowrap"),!t.option("wordWrapEnabled")),n.toggleClass("dx-empty",0===t._dataController.items().length),t.setAria("role","presentation",n);var i=t._renderTable({change:e});t._updateContent(i,e),t.callBase(e),t._lastColumnWidths=null},_getRows:function(e){return e&&e.items||this._dataController.items()},_getCellOptions:function(e){var t=e.column,n=e.row,i=n.data,r=n&&n.summaryCells,o=e.value,a=(0,p.getDisplayValue)(t,o,i,n.rowType),s=this.callBase(e);if(s.value=o,s.oldValue=e.oldValue,s.displayValue=a,s.row=n,s.key=n.key,s.data=i,s.rowType=n.rowType,s.values=n.values,s.text=t.command?"":(0,p.formatValue)(a,t),s.rowIndex=n.rowIndex,s.summaryItems=r&&r[e.columnIndex],s.resized=t.resizedCallbacks,(0,c.isDefined)(t.groupIndex)&&!t.command){var u=this.option("grouping.texts"),l=this.option("scrolling.mode");"virtual"!==l&&"infinite"!==l&&(s.groupContinuesMessage=i&&i.isContinuationOnNextPage&&u&&u.groupContinuesMessage,s.groupContinuedMessage=i&&i.isContinuation&&u&&u.groupContinuedMessage)}return s},_setRowsOpacityCore:function(e,t,n,r){var o=this._columnsController,a=o.getColumns(),s=a&&a[n],l=s&&s.isBand&&s.index;(0,u.each)(e,function(a,s){if(!(0,i.default)(s).hasClass(C))for(var u=0;u=0){var t=this._getRowElements();if(t.length>e)return(0,i.default)(t[e])}},updateFreeSpaceRowHeight:function(e){var t=this,n=this._dataController,i=n.items(!0).length,r=this._findContentElement(),o=this._getFreeSpaceRowElements(e);if(o&&r&&n.totalCount()>=0){var c=!1;if(i>0)if(this._hasHeight)o.hide(),(0,a.deferUpdate)(function(){var n=t.getScrollbarWidth(!0),i=t.element().height()-n,s=i-r.outerHeight()>0,u=t._getRowsHeight(r.children().first()),l=e||t.getTableElements(),d=i-u-Math.ceil(parseFloat(l.css("borderTopWidth")))-t._getHeightCorrection();s&&(0,a.deferRender)(function(){o.css("height",d),c=!0,o.show()}),(0,a.deferRender)(function(){return t._updateLastRowBorder(c)})});else{var u=n.pageSize()-i,l=this.option("scrolling.mode");u>0&&n.pageCount()>1&&"virtual"!==l&&"infinite"!==l&&(s.default.setHeight(o,u*this._rowHeight),c=!0),!c&&e?s.default.setHeight(o,0):o.toggle(c),this._updateLastRowBorder(c)}else o.css("height",0),o.show(),this._updateLastRowBorder(!0)}},_getHeightCorrection:function(){var e=y.default.webkit&&this._getDevicePixelRatio()>=2,t=y.default.mozilla&&y.default.version>=70&&!this.option("showRowLines");return e||t?1:0},_columnOptionChanged:function(e){var t=e.optionNames;e.changeTypes.grouping||(t.width||t.visibleWidth)&&(this.callBase(e),this._fireColumnResizedCallbacks())},getScrollable:function(){return this._scrollable},init:function(){var e=this,t=e.getController("data");e.callBase(),e._editorFactoryController=e.getController("editorFactory"),e._rowHeight=0,e._scrollTop=0,e._scrollLeft=-1,e._hasHeight=!1,t.loadingChanged.add(function(t,n){e.setLoading(t,n)}),t.dataSourceChanged.add(function(){e._scrollLeft>=0&&e._handleScroll({scrollOffset:{top:e._scrollTop,left:e._scrollLeft}})})},_handleDataChanged:function(e){switch(e.changeType){case"refresh":case"prepend":case"append":case"update":this.render(null,e);break;default:this._update(e)}},publicMethods:function(){return["isScrollbarVisible","getTopVisibleRowData","getScrollbarWidth","getCellElement","getRowElement","getScrollable"]},contentWidth:function(){return this.element().width()-this.getScrollbarWidth()},getScrollbarWidth:function(e){var t,n=this._scrollableContainer&&this._scrollableContainer.get(0),i=0;return n&&(e?(i=n.clientHeight?n.offsetHeight-n.clientHeight:0,i+=(t=this.getScrollable())?Math.ceil(parseFloat(t.$content().css("paddingBottom"))):0):i=n.clientWidth?n.offsetWidth-n.clientWidth:0),i>0?i:0},_fireColumnResizedCallbacks:function(){for(var e=this,t=e._lastColumnWidths||[],n=[],i=e.getColumns(),r=0;r=0&&t!==this._scrollLeft&&e.scrollTo({x:this._scrollLeft})},_resizeCore:function(){var e=this;e._fireColumnResizedCallbacks(),e._updateRowHeight(),(0,a.deferRender)(function(){e._renderScrollable(),e.renderNoDataText(),e.updateFreeSpaceRowHeight(),(0,a.deferUpdate)(function(){e._updateScrollable()})})},scrollTo:function(e){var t=this.element(),n=t&&m.default.getInstance(t);n&&n.scrollTo(e)},height:function(e,t){var n=this,i=this.element();if(0===arguments.length)return i?i.outerHeight(!0):0;n._hasHeight=void 0===t?"auto"!==e:t,(0,c.isDefined)(e)&&i&&s.default.setHeight(i,e)},setLoading:function(e,t){var n=this,i=n._loadPanel,o=n._dataController,a=n.option("loadPanel")||{},s=o.isLoaded()?a.animation:null,c=n.element();if((0,r.hasWindow)()&&(!i&&void 0!==t&&o.isLocalStore()&&"auto"===a.enabled&&c&&(n._renderLoadPanel(c,c.parent()),i=n._loadPanel),i)){var u={message:t||a.text,animation:s,visible:e};clearTimeout(n._hideLoadingTimeoutID),i.option("visible")&&!e?n._hideLoadingTimeoutID=setTimeout(function(){i.option(u)},200):i.option(u)}},setRowsOpacity:function(e,t){var n=this._getRowElements().not(".dx-group-row")||[];this._setRowsOpacityCore(n,this.getColumns(),e,t)},_getCellElementsCore:function(e){var t=this.callBase(e);if(t){var n=t.filter(".dx-group-cell").index();if(n>=0&&t.length>n+1)return t.slice(0,n+1)}return t},getTopVisibleItemIndex:function(e){var t=this,n=0,i=0,r=0,o=t._scrollTop,a=t._findContentElement(),s=a&&a.offset().top,c=t._dataController.items(),u=t._getTableElement();if(c.length&&u){var l=t._getRowElements(u).filter(":visible");for(n=0;no){n&&(e||2*o=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"\u0434\u0430\u043d",dd:t.translate,M:"\u043c\u0435\u0441\u0435\u0446",MM:t.translate,y:"\u0433\u043e\u0434\u0438\u043d\u0443",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},E1hK:function(e,t,n){"use strict";n.d(t,"a",function(){return g});var i=n("+Jrw"),r=n("fXoL"),o=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},a=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1] td, .dx-row > tr"),n=o.parent();var a=i.getRowIndex(n),d=o[0]&&o[0].cellIndex,h=n.data("options"),f={event:e,targetElement:(0,r.getPublicElement)(u),target:l[this],rowIndex:a,row:i._getRows()[a],columnIndex:d,column:h&&h.cells[d].column};if(f.items=i.getContextMenuItems&&i.getContextMenuItems(f),c.executeAction("onContextMenuPreparing",f),c._contextMenuPrepared(f),s=f.items)return!1}}),s},_contextMenuPrepared:o.noop}),f=s.default.View.inherit({_renderCore:function(){var e=this,t=e.element().addClass("dx-context-menu");this.setAria("role","presentation",t),this._createComponent(t,c.default,{onPositioning:function(t){var n=t.event,i=t.component,r=e.getController("contextMenu").getContextMenuItems(n);r?(i.option("items",r),n.stopPropagation()):t.cancel=!0},onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:e.getWidgetContainerClass(),target:e.component.$element()})}});e.exports={defaultOptions:function(){return{onContextMenuPreparing:null}},controllers:{contextMenu:h},views:{contextMenuView:f}}},E7yo:function(e,t,n){"use strict";n.d(t,"a",function(){return x});var i,r=n("c7TG"),o=n("aiMf"),a=n("mjQz"),s=n("Xzt5"),c=n("LvDl"),u=n("Zhhz"),l=n("+Jrw"),d=n("fXoL"),h=(i=function(e,t){return(i=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(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},p=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]a.b.SHIPMENT_BARCODE_LENGTH)return this.taskManagerService.alarmPlay(),this.taskManagerService.showToast("Shipment Barcode exceeds maximum defined limit ("+a.b.SHIPMENT_BARCODE_LENGTH+" characters)"),this.barcode="",[2];this.scanShipment(e);break;default:this.taskManagerService.alarmPlay(),this.taskManagerService.showToast("Invalid Barcode"),this.barcode=""}return[2]})})},t.prototype.dismiss=function(){this.modalController.dismiss(this.hasTransferedShipments)},t.prototype.scanShipment=function(e){return f(this,void 0,void 0,function(){var t,n,i,r=this;return p(this,function(o){switch(o.label){case 0:return t=this.shipments.find(function(t){return t.barcode===e}),n=this.selectedShipments.find(function(t){return t.barcode===e}),t||n?[3,2]:[4,this.taskManagerService.showAlert("","Shipment "+e+" cannot be droped")];case 1:return o.sent(),this.barcode=null,[2];case 2:return n?n.parent?[4,this.taskManagerService.showAlert("","Shipment "+e+" is part of consolidation")]:[3,4]:[3,8];case 3:return o.sent(),[3,7];case 4:return[4,this.alertController.create({header:"Undo the shipment "+e,buttons:[{text:"Cancel",role:"cancel",cssClass:"secondary"},{text:"Ok",handler:function(){return f(r,void 0,void 0,function(){return p(this,function(e){return n.type===this.shipmentTypes.consolidation?this.removeConsolidationFromSelectedList(n):this.removeShipmentFromSelectedList(n),[2]})})}}]})];case 5:return[4,o.sent().present()];case 6:o.sent(),o.label=7;case 7:return this.barcode=null,[2];case 8:return t.parent?(i=this.shipments.find(function(e){return e.barcode===t.parent}))?[4,this.alertController.create({header:e+" is part of Consolidation "+i.barcode,message:"Do you want to break the shipment to complete the transfer?",buttons:[{text:"Cancel",role:"cancel",cssClass:"secondary"},{text:"Ok",handler:function(){return f(r,void 0,void 0,function(){var n,r=this;return p(this,function(o){switch(o.label){case 0:return[4,this.tsoService.breakConsolidation(i)];case 1:return o.sent(),n=this,[4,this.tsoService.getRSRShipmentsAvailableToDrop(this.taskManagerService.task._id,this.selectedAirport,this.selectedAirline)];case 2:return n.shipments=o.sent(),this.shipments=this.shipments.filter(function(e){return!r.selectedShipments.find(function(t){return t.barcode===e.barcode})}),t=this.shipments.find(function(t){return t.barcode===e}),this.addShipmentToSelectedList(t),[2]}})})}}]})]:[3,11]:[3,12];case 9:return[4,o.sent().present()];case 10:o.sent(),o.label=11;case 11:return this.barcode=null,[2];case 12:return t.type===this.shipmentTypes.consolidation?(this.addConsolidationToSelectedList(t),this.barcode=null,[2]):(this.addShipmentToSelectedList(t),this.barcode=null,[2])}})})},t.prototype.addShipmentToSelectedList=function(e){var t=this.shipments.findIndex(function(t){return t.barcode===e.barcode});this.shipments.splice(t,1),this.selectedShipments.push(e)},t.prototype.addConsolidationToSelectedList=function(e){if(e.children&&e.children.length){var t=this.shipments.filter(function(t){return e.children.find(function(e){return e===t.barcode})});this.shipments=JSON.parse(JSON.stringify(this.shipments.filter(function(t){return t.barcode!==e.barcode&&!e.children.find(function(e){return e===t.barcode})}))),this.selectedShipments=c.uniq(this.selectedShipments.concat(g(t,[e])))}else this.shipments=JSON.parse(JSON.stringify(this.shipments.filter(function(t){return t.barcode!==e.barcode}))),this.selectedShipments=c.uniq(this.selectedShipments.concat([e]))},t.prototype.removeShipmentFromSelectedList=function(e){var t=this.selectedShipments.findIndex(function(t){return t.barcode===e.barcode});this.selectedShipments.splice(t,1),this.shipments.push(e)},t.prototype.removeConsolidationFromSelectedList=function(e){if(e.children&&e.children.length){var t=this.selectedShipments.filter(function(t){return e.children.find(function(e){return e===t.barcode})});this.selectedShipments=JSON.parse(JSON.stringify(this.selectedShipments.filter(function(t){return t.barcode!==e.barcode&&!e.children.find(function(e){return e===t.barcode})}))),this.shipments=c.uniq(this.shipments.concat(g(t,[e])))}else this.selectedShipments=JSON.parse(JSON.stringify(this.selectedShipments.filter(function(t){return t.barcode!==e.barcode}))),this.shipments=c.uniq(this.shipments.concat([e]))},t.prototype.transfer=function(){return f(this,void 0,void 0,function(){return p(this,function(e){switch(e.label){case 0:return this.canTransfer=!1,this.loader=!0,[4,this.tsoService.dropShipmentsToAirport(this.selectedShipments,this.selectedAirport,this.selectedAirline,"Quest Air"===this.selectedShippingMethod,this.comment)];case 1:return e.sent(),this.hasTransferedShipments=!0,this.loader=!1,[4,this.taskManagerService.showToast(this.selectedShipments.length+" shipments successfully droped to airport")];case 2:return e.sent(),this.dismiss(),[2]}})})},t.prototype.getShipmentAirportDropInfo=function(){return f(this,void 0,void 0,function(){var e;return p(this,function(t){switch(t.label){case 0:return[4,this.tsoService.getShipmentAirportDropInfo(this.taskManagerService.task._id,this.selectedShippingMethodType)];case 1:return e=t.sent(),this.airlinesFiltered=e.carriers,"Commercial Air"===this.selectedShippingMethod&&(this.commercialAirportsFiltered=e.airports),"Quest Air"===this.selectedShippingMethod&&(this.questAirportsFiltered=e.airports),this.selectedAirport=e.airports.length?e.airports[0]:null,this.selectedAirline=e.carriers.length?e.carriers[0]:null,[4,this.getShipments()];case 2:return t.sent(),[2]}})})},t.prototype.getShipments=function(){return f(this,void 0,void 0,function(){var e;return p(this,function(t){switch(t.label){case 0:return this.shipments=[],this.selectedShipments=[],this.selectedAirport?(e=this,[4,this.tsoService.getRSRShipmentsAvailableToDrop(this.taskManagerService.task._id,this.selectedAirport,this.selectedAirline)]):[3,2];case 1:e.shipments=t.sent(),this.showShipments=!0,t.label=2;case 2:return[2]}})})},t.prototype.toggleList=function(e){"airport"===e&&(this.isAirportsFiltered=!this.isAirportsFiltered),"airline"===e&&(this.isAirlinesFiltered=!this.isAirlinesFiltered)},t.prototype.getList=function(e){var t;return"airport"===e&&("Commercial Air"===this.selectedShippingMethod&&(t=this.isAirportsFiltered?this.commercialAirportsFiltered:this.commercialAirports),"Quest Air"===this.selectedShippingMethod&&(t=this.isAirportsFiltered?this.questAirportsFiltered:this.questAirports)),"airline"===e&&(t=this.isAirlinesFiltered?this.airlinesFiltered:this.airlines),t},t.prototype.getMoreFromSelectableList=function(e,t){var n=(e.text||"").trim().toLowerCase(),i=this.getList(t),r="airport"===t?"code-name-city":"code-name";this.pagedList=n?i.filter(function(e){return e[r].toLowerCase().indexOf(n.toLowerCase())>-1}).slice(0,15*this.page):i.slice(0,15*this.page),e.component.items=this.pagedList,e.component.endInfiniteScroll(),this.page++},t.prototype.searchSelectableList=function(e,t){var n=e.text.trim().toLowerCase(),i=this.getList(t);if(e.component.startSearch(),!n)return e.component.items=i.slice(0,15),this.page=2,e.component.endSearch(),void e.component.enableInfiniteScroll();this.getMoreFromSelectableList(e,t),e.component.endSearch()},t.prototype.shippingMethodChange=function(e){this.shipments=[],this.selectedShipments=[],"Quest Air"===this.selectedShippingMethod&&(this.selectedShippingMethodType=this.shippingMethodTypes.questAirline),"Commercial Air"===this.selectedShippingMethod&&(this.selectedShippingMethodType=this.shippingMethodTypes.commercialAirline),this.getShipmentAirportDropInfo()},t.prototype.closeShippingMethodList=function(){return f(this,void 0,void 0,function(){return p(this,function(e){switch(e.label){case 0:return[4,this.shippingMethodSelectable.close()];case 1:return e.sent(),[2]}})})},t.prototype.closeAirportList=function(){return f(this,void 0,void 0,function(){return p(this,function(e){switch(e.label){case 0:return[4,this.airportSelectable.close()];case 1:return e.sent(),[2]}})})},t.prototype.closeAirlineList=function(){return f(this,void 0,void 0,function(){return p(this,function(e){switch(e.label){case 0:return[4,this.airlineSelectable.close()];case 1:return e.sent(),[2]}})})},t.\u0275fac=function(e){return new(e||t)(d.ac(l.a),d.ac(r.Gb),d.ac(r.a),d.ac(o.a))},t.\u0275cmp=d.Ub({type:t,selectors:[["app-drop-shipment-to-airport"]],viewQuery:function(e,t){var n;1&e&&(d.Xc(m,!0),d.Xc(v,!0),d.Xc(_,!0)),2&e&&(d.Ec(n=d.oc())&&(t.shippingMethodSelectable=n.first),d.Ec(n=d.oc())&&(t.airportSelectable=n.first),d.Ec(n=d.oc())&&(t.airlineSelectable=n.first))},features:[d.Lb],decls:48,vars:26,consts:[["title","Transfer to Airport","hideCloseButton","true",3,"menuItems","onDismiss"],[1,"required"],["placeholder","Shipping Method",3,"ngModel","items","canSearch","searchFailText","ngModelChange","onChange"],["shippingMethodSelectable",""],["ionicSelectableHeaderTemplate",""],["itemValueField","fs","itemTextField","code-name-city","placeholder","Airport",3,"ngModel","items","hasInfiniteScroll","disabled","canSearch","searchFailText","ngModelChange","onInfiniteScroll","onSearch","onChange"],["airportSelectable",""],["slot","end",3,"name","click"],["itemValueField","fs","itemTextField","code-name","placeholder","Airline",3,"ngModel","items","hasInfiniteScroll","disabled","canSearch","searchFailText","ngModelChange","onInfiniteScroll","onSearch","onChange"],["airlineSelectable",""],["placeholder","Comment",3,"ngModel","ngModelChange"],[1,"scanner-input-container"],["size","1",1,"d-flex-center"],["name","barcode",2,"font-size","20px"],["size","10"],["placeholder","Scan or Enter Shipment Barcode","uppercase","",1,"barcode",3,"ngModel","ngModelChange","ionChange"],[1,"flex","flex-column","flex-justify-center","align-items-flex-end","padding-0","color-dark",3,"size"],[1,"flex-auto","width-auto"],[1,"itemRow"],[2,"padding","0px","margin","0px"],["class","shipments-list","lines","none",4,"ngIf"],["text-center",""],[1,"btnDanger",3,"click"],[3,"disabled","click"],[4,"ngIf"],["color","primary"],["slot","start"],[3,"click"],["name","arrow-back"],["lines","none",1,"shipments-list"],["class","ion-no-padding ion-no-inner-padding",4,"ngFor","ngForOf"],["class","message",4,"ngIf"],[1,"ion-no-padding","ion-no-inner-padding"],[2,"width","100%",3,"shipment"],[1,"message"]],template:function(e,t){1&e&&(d.gc(0,"base-modal",0),d.nc("onDismiss",function(){return t.dismiss()}),d.gc(1,"base-modal-content"),d.gc(2,"ion-header"),d.gc(3,"ion-item"),d.gc(4,"ion-label"),d.Rc(5,"Shipping Method"),d.gc(6,"abbr",1),d.Rc(7,"\xa0*"),d.fc(),d.fc(),d.gc(8,"ionic-selectable",2,3),d.nc("ngModelChange",function(e){return t.selectedShippingMethod=e})("onChange",function(e){return t.shippingMethodChange(e)}),d.Pc(10,y,6,0,"ng-template",4),d.fc(),d.fc(),d.gc(11,"ion-item"),d.gc(12,"ion-label"),d.Rc(13,"Airport"),d.gc(14,"abbr",1),d.Rc(15,"\xa0*"),d.fc(),d.fc(),d.gc(16,"ionic-selectable",5,6),d.nc("ngModelChange",function(e){return t.selectedAirport=e})("onInfiniteScroll",function(e){return t.getMoreFromSelectableList(e,"airport")})("onSearch",function(e){return t.searchSelectableList(e,"airport")})("onChange",function(){return t.getShipments()}),d.Pc(18,b,6,0,"ng-template",4),d.fc(),d.gc(19,"ion-icon",7),d.nc("click",function(){return t.toggleList("airport")}),d.fc(),d.fc(),d.gc(20,"ion-item"),d.gc(21,"ion-label"),d.Rc(22,"Airline"),d.fc(),d.gc(23,"ionic-selectable",8,9),d.nc("ngModelChange",function(e){return t.selectedAirline=e})("onInfiniteScroll",function(e){return t.getMoreFromSelectableList(e,"airline")})("onSearch",function(e){return t.searchSelectableList(e,"airline")})("onChange",function(){return t.getShipments()}),d.Pc(25,w,6,0,"ng-template",4),d.fc(),d.gc(26,"ion-icon",7),d.nc("click",function(){return t.toggleList("airline")}),d.fc(),d.fc(),d.gc(27,"ion-item"),d.gc(28,"ion-input",10),d.nc("ngModelChange",function(e){return t.comment=e}),d.fc(),d.fc(),d.gc(29,"ion-row",11),d.gc(30,"ion-col",12),d.bc(31,"ion-icon",13),d.fc(),d.gc(32,"ion-col",14),d.gc(33,"ion-input",15),d.nc("ngModelChange",function(e){return t.barcode=e})("ionChange",function(){return t.handleScan(t.barcode)}),d.fc(),d.fc(),d.gc(34,"ion-col",16),d.gc(35,"ion-row",17),d.gc(36,"ion-label"),d.gc(37,"span",18),d.Rc(38),d.fc(),d.fc(),d.fc(),d.fc(),d.fc(),d.fc(),d.gc(39,"ion-content",19),d.Pc(40,S,3,2,"ion-list",20),d.fc(),d.gc(41,"ion-footer",21),d.gc(42,"ion-toolbar"),d.gc(43,"ion-button",22),d.nc("click",function(){return t.dismiss()}),d.Rc(44," Cancel "),d.fc(),d.gc(45,"ion-button",23),d.nc("click",function(){return t.transfer()}),d.Rc(46," Transfer "),d.fc(),d.fc(),d.fc(),d.fc(),d.fc(),d.Pc(47,k,1,0,"cmx-loader",24)),2&e&&(d.wc("menuItems",t.menuItems),d.Ob(8),d.wc("ngModel",t.selectedShippingMethod)("items",t.shippingMethods)("canSearch",!0)("searchFailText","No data found."),d.Ob(8),d.wc("ngModel",t.selectedAirport)("items",t.pagedList)("hasInfiniteScroll",!0)("disabled",!t.selectedShippingMethod)("canSearch",!0)("searchFailText","No data found."),d.Ob(3),d.wc("name",t.isAirportsFiltered?"add":"remove"),d.Ob(4),d.wc("ngModel",t.selectedAirline)("items",t.pagedList)("hasInfiniteScroll",!0)("disabled",!t.selectedShippingMethod)("canSearch",!0)("searchFailText","No data found."),d.Ob(3),d.wc("name",t.isAirlinesFiltered?"add":"remove"),d.Ob(2),d.wc("ngModel",t.comment),d.Ob(5),d.wc("ngModel",t.barcode),d.Ob(1),d.wc("size",1),d.Ob(4),d.Sc(t.selectedShipments.length),d.Ob(2),d.wc("ngIf",t.showShipments),d.Ob(5),d.wc("disabled",!t.canTransfer||!t.selectedShipments.length),d.Ob(2),d.wc("ngIf",t.loader))},styles:["abbr.required{color:#a71111}.itemRow[_ngcontent-%COMP%]{background:#4a7637;border-radius:25%;padding:0 7px;line-height:22px;text-align:center;align-items:center;display:inline-block;color:#fff;font-size:12px}"]}),t}(s.a)},EJAH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a(n("gU7H")),r=n("GCD8"),o=a(n("RwLY"));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n").addClass("dx-list-static-delete-button");this._list._createComponent(o,r,{icon:"remove",onClick:(function(e){e.event.stopPropagation(),this._deleteItem(t)}).bind(this),integrationOptions:{}}),n.addClass("dx-list-static-delete-button-container").append(o)},_deleteItem:function(e){e.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(e)}}))},EQ5u:function(e,t,n){"use strict";n.d(t,"a",function(){return f}),n.d(t,"b",function(){return p});var i=n("ReuC"),r=n("foSv"),o=n("1OyB"),a=n("vuIU"),s=n("Ji7U"),c=n("LK+K"),u=n("XNiG"),l=n("HDdC"),d=(n("7o/Q"),n("quSY")),h=n("x+ZX"),f=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this)).source=e,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return Object(a.a)(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new d.a).add(this.source.subscribe(new g(this.getSubject(),this))),e.closed&&(this._connection=null,e=d.a.EMPTY)),e}},{key:"refCount",value:function(){return Object(h.a)()(this)}}]),n}(l.a),p=function(){var e=f.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),g=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this,e)).connectable=i,r}return Object(a.a)(n,[{key:"_error",value:function(e){this._unsubscribe(),Object(i.a)(Object(r.a)(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),Object(i.a)(Object(r.a)(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(u.b)},EY2u:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i=n("HDdC"),r=new i.a(function(e){return e.complete()});function o(e){return e?function(e){return new i.a(function(t){return e.schedule(function(){return t.complete()})})}(e):r}},"Ec/t":function(e,t,n){"use strict";var i,r,o,a,s=h(n("FKN7")),c=h(n("5qrJ")),u=h(n("BWGd")),l=n("IRs2"),d=n("tJvG");function h(e){return e&&e.__esModule?e:{default:e}}t.createOffsetFilter=function(e,t){for(var n=(0,l.normalizeSortingInfo)(t.group),i=[],r=0;r":"<":"=",e[a]];o.push("<"===c[1]?[c,"or",[s,"=",null]]:c)}else!1===e[a]?o.push([s,"=",!!n[a].desc||null]):(e[a]?!n[a].desc:n[a].desc)?o.push([s,"<>",e[a]]):(o.push([s,"<>",null]),o.push([s,"=",null]))}i.push(u.default.combineFilters(o))}return i=u.default.combineFilters(i,"or"),u.default.combineFilters([i,t.filter])},t.GroupingHelper=c.default.inherit((i=function(e,t){var n=e.hash;return n&&n[JSON.stringify(t)]},r=function(e,t){var n,i=0,r=e.length-1;if(!e.length)return 0;do{var o=r+i>>1;e[o].offset>t?r=o:i=o}while(r-i>1);for(n=i;n<=r&&!(e[n].offset>t);n++);return n},o=function e(t,n,i){for(var r=0;r=i?t[r].children=[]:e(t[r].children,n+1,i)},a=function e(t,n,i){var r=0;if(n)if(i)for(var o=0;o0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]o.b.SHIPMENT_BARCODE_LENGTH?(this.taskManagerService.alarmPlay(),this.taskManagerService.showToast("Shipment Barcode exceeds maximum defined limit ("+o.b.SHIPMENT_BARCODE_LENGTH+" characters)"),this.barcode="",[2]):[4,this.tsoService.getShipmentByBarcode(e,null,null)];case 2:return(t=i.sent())?[4,this.dismiss(t)]:[3,4];case 3:return i.sent(),[3,6];case 4:return(t=new c.c).barcode=e,[4,this.dismiss(t)];case 5:i.sent(),i.label=6;case 6:return[2];case 7:return this.shipmentFrozen?[2]:this.hasShippingMethod?[3,9]:(this.taskManagerService.alarmPlay(),[4,this.taskManagerService.showToast("PLEASE SELECT SHIPPING METHOD BEFORE SCANNING SHIPPING CONTENT")]);case 8:return i.sent(),this.barcode="",[2];case 9:return e.length>o.b.SHIPMENT_ITEM_BARCODE_LENGTH?(this.taskManagerService.alarmPlay(),[4,this.taskManagerService.showToast("Shipment Item Barcode exceeds maximum defined limit ("+o.b.SHIPMENT_ITEM_BARCODE_LENGTH+" characters)")]):[3,11];case 10:return i.sent(),this.barcode="",[2];case 11:if(!(this.items.indexOf(e)<0))return[3,16];i.label=12;case 12:return i.trys.push([12,14,,15]),[4,this.tsoService.addItems(this.shipment.barcode,[e])];case 13:return i.sent()&&(this.items=u.uniq([e].concat(this.items||[])),this.shipment.itemsCount=this.items.length),[3,15];case 14:return n=i.sent(),this.taskManagerService.showAlert("",n.message),[3,15];case 15:return[3,18];case 16:return this.taskManagerService.alarmPlay(),[4,this.taskManagerService.showToast("Duplicate Shipping Item "+e)];case 17:i.sent(),this.barcode="",i.label=18;case 18:return[3,19];case 19:return[2]}})})},t.prototype.reset=function(){this.barcode=""},t.prototype.dismiss=function(e){return void 0===e&&(e=null),g(this,void 0,void 0,function(){return m(this,function(t){switch(t.label){case 0:return[4,this.modalController.dismiss(e)];case 1:return t.sent(),[2]}})})},t.prototype.showActionMenu=function(e){return g(this,void 0,void 0,function(){var t,n;return m(this,function(i){switch(i.label){case 0:return[4,this.popoverController.create({component:l.a,componentProps:{menuItems:this.menusToDisplay},event:e,backdropDismiss:!0,showBackdrop:!0})];case 1:return[4,(t=i.sent()).present()];case 2:return i.sent(),[4,t.onDidDismiss()];case 3:if(!(n=i.sent().data))return[2];switch(n.eventName){case"edit-shipment":return[3,4];case"delete-shipment":return[3,5]}return[3,7];case 4:return this.dismiss(),[3,7];case 5:return[4,this.deleteShipment(this.shipment)];case 6:return i.sent(),[3,7];case 7:return[2]}})})},t.prototype.deleteShipment=function(e){return g(this,void 0,void 0,function(){return m(this,function(t){switch(t.label){case 0:return e.status===c.e.Created||e.status===c.e.InProcess?[3,3]:[4,this.alertController.create({message:"In transit or delivered shipment cannot be deleted.",buttons:[{text:"Cancel",role:"cancel"}]})];case 1:return[4,t.sent().present()];case 2:return t.sent(),[2];case 3:return[4,this.taskManagerService.showConfirmation("","DO YOU WANT TO DELETE "+e.barcode+"? SHIPMENT INFORMATION WITH SHIPMENT ITEM/S WILL BE DELETED.","YES","NO")];case 4:return t.sent()?[4,this.tsoService.deleteShipment([e.barcode])]:[3,6];case 5:t.sent(),this.dismiss("close-shipment"),t.label=6;case 6:return[2]}})})},t.prototype.delete=function(e){return g(this,void 0,void 0,function(){var t,n;return m(this,function(i){switch(i.label){case 0:return[4,this.tsoService.deleteItem(this.shipment.barcode,e)];case 1:return t=i.sent(),n=this.items.findIndex(function(t){return t===e}),t&&n>-1&&(this.items.splice(n,1),this.shipment.itemsCount=this.items.length),[2]}})})},t.prototype.goToShipping=function(){return g(this,void 0,void 0,function(){return m(this,function(e){switch(e.label){case 0:return[4,this.dismiss("navigate-to-shipping")];case 1:return e.sent(),[2]}})})},t.prototype.save=function(){return g(this,void 0,void 0,function(){var e,t,n;return m(this,function(i){switch(i.label){case 0:return i.trys.push([0,5,6,7]),this.loader=!0,this.isRSR?(e=this,[4,this.tsoService.createRSRShipment(this.shipment,this.taskManagerService.task._id,!1)]):[3,2];case 1:return e.shipment=i.sent(),[3,4];case 2:return t=this,[4,this.tsoService.createTSOShipment(this.shipment,!1)];case 3:t.shipment=i.sent(),i.label=4;case 4:return[3,7];case 5:return n=i.sent(),console.log(n),[3,7];case 6:return this.loader=!1,[7];case 7:return[2]}})})},t.prototype.closeSpecimenTypesList=function(){this.specimenSelectable.close()},t.\u0275fac=function(e){return new(e||t)(f.ac(r.Gb),f.ac(s.a),f.ac(r.Mb),f.ac(r.a),f.ac(d.a))},t.\u0275cmp=f.Ub({type:t,selectors:[["app-tso-shipment"]],viewQuery:function(e,t){var n;1&e&&f.Xc(v,!0),2&e&&f.Ec(n=f.oc())&&(t.specimenSelectable=n.first)},inputs:{shipment:"shipment",isRSR:"isRSR"},features:[f.Lb],decls:34,vars:17,consts:[["title","Shipment","hideCloseButton","true",3,"onDismiss"],[3,"click"],["src","./assets/icon/track-plane.svg"],[3,"click",4,"ngIf"],[3,"shipment"],["placeholder","Type of Specimen",3,"isMultiple","ngModel","items","disabled","canSearch","searchFailText","ngModelChange"],["specimenSelectable",""],["ionicSelectableHeaderTemplate",""],[3,"ngModel","disabled","ngModelChange"],["name","barcode"],["clear-input","true","uppercase","","placeholder","Scan barcode","appDelayedInput","","invalid-characters","",2,"margin-left","10px","margin-right","5px","padding-left","5px !important","border","1px solid #eee","border-radius","5px",3,"ngModel","disabled","delayTime","ngModelChange","delayedInput"],["id","error",4,"ngIf"],[4,"ngFor","ngForOf"],["justify-content-center",""],[1,"btnDanger",3,"click"],["name","close-circle"],["name","save"],[4,"ngIf"],["name","more"],["color","primary"],["slot","start"],["name","arrow-back"],["id","error"],["side","end",4,"ngIf"],["side","end"],["color","danger",3,"click"]],template:function(e,t){1&e&&(f.gc(0,"base-modal",0),f.nc("onDismiss",function(){return t.dismiss()}),f.gc(1,"base-modal-header"),f.gc(2,"ion-button",1),f.nc("click",function(){return t.goToShipping()}),f.bc(3,"ion-icon",2),f.fc(),f.Pc(4,_,2,0,"ion-button",3),f.fc(),f.gc(5,"base-modal-content"),f.gc(6,"ion-header"),f.bc(7,"app-tso-card",4),f.fc(),f.gc(8,"ion-content"),f.gc(9,"ion-item"),f.gc(10,"ion-label"),f.Rc(11,"Type of Specimen"),f.fc(),f.gc(12,"ionic-selectable",5,6),f.nc("ngModelChange",function(e){return t.shipment.typeOfSpecimens=e}),f.Pc(14,y,6,0,"ng-template",7),f.fc(),f.fc(),f.gc(15,"ion-item"),f.gc(16,"ion-label"),f.Rc(17,"Irreplaceable"),f.fc(),f.gc(18,"ion-toggle",8),f.nc("ngModelChange",function(e){return t.shipment.irreplaceable=e}),f.fc(),f.fc(),f.gc(19,"ion-item"),f.bc(20,"ion-icon",9),f.gc(21,"ion-input",10),f.nc("ngModelChange",function(e){return t.barcode=e})("delayedInput",function(){return t.handleScan(t.barcode)}),f.fc(),f.fc(),f.Pc(22,b,2,0,"div",11),f.Pc(23,w,2,1,"div",11),f.Pc(24,O,5,2,"ion-item-sliding",12),f.fc(),f.gc(25,"ion-footer"),f.gc(26,"ion-row",13),f.gc(27,"ion-button",14),f.nc("click",function(){return t.dismiss("close-shipment")}),f.bc(28,"ion-icon",15),f.Rc(29," Close "),f.fc(),f.gc(30,"ion-button",1),f.nc("click",function(){return t.save()}),f.bc(31,"ion-icon",16),f.Rc(32," Save "),f.fc(),f.fc(),f.fc(),f.fc(),f.fc(),f.Pc(33,S,1,0,"cmx-loader",17)),2&e&&(f.Ob(4),f.wc("ngIf",t.menusToDisplay.length),f.Ob(3),f.wc("shipment",t.shipment),f.Ob(5),f.wc("isMultiple",!1)("ngModel",t.shipment.typeOfSpecimens)("items",t.specimenTypes)("disabled",t.shipmentFrozen||!t.items.length)("canSearch",!0)("searchFailText","No data found."),f.Ob(6),f.wc("ngModel",t.shipment.irreplaceable)("disabled",t.shipmentFrozen||!t.items.length),f.Ob(3),f.wc("ngModel",t.barcode)("disabled",t.shipmentFrozen||!t.hasShippingMethod)("delayTime",500),f.Ob(1),f.wc("ngIf",t.shipment&&t.shipment.createdAt&&!t.hasShippingMethod),f.Ob(1),f.wc("ngIf",t.errorMessage),f.Ob(1),f.wc("ngForOf",t.items),f.Ob(9),f.wc("ngIf",t.loader))},styles:[""]}),t}(a.a)},EjLx:function(e,t,n){"use strict";var i=n("FKN7"),r=n("ti0F").isNumeric,o=n("zl3R").each,a=n("IEE5").queryByOptions,s=n("Q7sy"),c=n("Uhe+"),u=function(e){return(e.group<<20)+e.item},l=function(e){return{group:e>>20,item:2303&e}},d=c.inherit({_groupElements:function(){return this._collectionWidget._itemContainer().find(".dx-list-group")},_groupItemElements:function(e){return e.find(".dx-list-item")},getIndexByItemData:function(e){var t=this._collectionWidget.option("items"),n=!1;return!!e&&(e.items&&e.items.length&&(e=e.items[0]),o(t,function(t,i){return!!i.items&&(o(i.items,function(i,r){return r!==e||(n={group:t,item:i},!1)}),!n&&void 0)}),n)},getItemDataByIndex:function(e){var t=this._collectionWidget.option("items");return r(e)?this.itemsGetter()[e]:e&&t[e.group]&&t[e.group].items[e.item]||null},itemsGetter:function(){for(var e=[],t=this._collectionWidget.option("items"),n=0;n").addClass(this._controlClass);new this._controlWidget(r,a(this._commonOptions(),{value:this._isSelected(t),focusStateEnabled:!1,hoverStateEnabled:!1,onValueChanged:(function(e){this._processCheckedState(t,e.value),e.event&&e.event.stopPropagation()}).bind(this)})),n.addClass(this._containerClass),n.append(r)},modifyElement:function(e){this.callBase.apply(this,arguments);var t=e.$itemElement,n=this._controlWidget.getInstance(t.find("."+this._controlClass));r.on(t,"stateChanged",(function(e,t){n.option("value",t)}).bind(this))},_updateSelectAllState:function(){this._$selectAll&&this._selectAllCheckBox.option("value",this._list.isSelectAll())},afterRender:function(){"all"===this._list.option("selectionMode")&&(this._$selectAll?this._updateSelectAllState():this._renderSelectAll())},handleKeyboardEvents:function(e,t){var n=!t,i=this._list,r=this._$selectAll,o=i._getLastItemIndex();return!(!r||!(t&&0===e||n&&e===o)||(i.option("focusedElement",r),i.scrollToItem(i.option("focusedElement")),0))},handleEnterPressing:function(){if(this._$selectAll&&this._$selectAll.hasClass("dx-state-focused"))return this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value")),!0},_renderSelectAll:function(){var e=this._$selectAll=i("
").addClass("dx-list-select-all"),t=this._list,n=t._supportedKeys().downArrow.bind(t);this._selectAllCheckBox=t._createComponent(i("
").addClass("dx-list-select-all-checkbox").appendTo(e),c,{focusStateEnabled:!1,hoverStateEnabled:!1}),this._selectAllCheckBox.registerKeyHandler("downArrow",n),i("
").addClass("dx-list-select-all-label").text(this._list.option("selectAllText")).appendTo(e),this._list.itemsContainer().prepend(e),this._updateSelectAllState(),this._attachSelectAllHandler()},_attachSelectAllHandler:function(){this._selectAllCheckBox.option("onValueChanged",this._selectAllHandler.bind(this)),r.off(this._$selectAll,_),r.on(this._$selectAll,_,this._selectAllClickHandler.bind(this))},_selectAllHandler:function(e){e.event&&e.event.stopPropagation();var t=this._selectAllCheckBox.option("value");!1!==this._list._createActionByOption("onSelectAllValueChanged")({value:t})&&(!0===t?this._selectAllItems():!1===t&&this._unselectAllItems())},_checkSelectAllCapability:function(){var e=this._list,t=e.getDataSource();return!!("allPages"!==e.option("selectAllMode")||!e.option("grouped")||t&&t.group())||(s.log("W1010"),!1)},_selectAllItems:function(){this._checkSelectAllCapability()&&this._list._selection.selectAll("page"===this._list.option("selectAllMode"))},_unselectAllItems:function(){this._checkSelectAllCapability()&&this._list._selection.deselectAll("page"===this._list.option("selectAllMode"))},_selectAllClickHandler:function(){this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value"))},_isSelected:function(e){return this._list.isItemSelected(e)},_processCheckedState:function(e,t){t?this._list.selectItem(e):this._list.unselectItem(e)},dispose:function(){this._disposeSelectAll(),this._list.$element().removeClass(f),this.callBase.apply(this,arguments)},_disposeSelectAll:function(){this._$selectAll&&(this._$selectAll.remove(),this._$selectAll=null)}}))},FKN7:function(e,t,n){"use strict";var i=n("NFpX");e.exports=i.get()},FYXg:function(e,t,n){"use strict";var i,r=(i=n("6F5R"))&&i.__esModule?i:{default:i};n("fHlW"),n("4lf7"),n("Qkad"),n("yFBy"),n("QXfY"),n("jBL4"),n("7Ncy"),n("q94W"),n("s3Y/"),n("x8kf"),n("3Nus"),n("+wj7"),n("4xE8"),n("KYaq"),n("7Bb+"),n("vwfw"),n("IPIx"),n("C4zk"),n("/wwX"),n("6mLu"),n("3HbM"),n("5x2u"),n("NLYV"),n("fnJn"),e.exports=r.default},"FbS+":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("2Vo4"),r=n("fXoL"),o=function(){function e(){this.size=new i.a("")}return e.prototype.setSize=function(e){this.size.next(e)},e.\u0275prov=r.Wb({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e}()},FdPp:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("vuIU"),r=n("1OyB"),o=n("fXoL"),a=function(){var e=Object(i.a)(function e(){Object(r.a)(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.Vb({type:e,selectors:[["","ionicSelectableHeaderTemplate",""]]}),e}()},FlNM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("ti0F"),r=u(n("OZWN")),o=u(n("6MIN")),a=u(n("kOkc")),s=u(n("GMo6")),c=u(n("UJab"));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var n=0;n0){var e=this._numberFormatTags.map(function(e){return c.default.toXml(e)});return r.default.toXml("numFmts",{count:e.length},e.join(""))}return""}}])&&l(t.prototype,n),u&&l(t,u),e}();t.default=d,e.exports=d},Fnuy:function(e,t,n){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n("wd/R"))},FqPI:function(e,t,n){"use strict";var i=m(n("FKN7")),r=m(n("tUd6")),o=m(n("jeLr")),a=m(n("GYHJ")),s=m(n("XCcL")),c=m(n("T4bj")),u=m(n("vlix")),l=n("GCD8"),d=m(n("uHaw")),h=n("1LL4"),f=n("XgSC"),p=m(n("kaGW")),g=n("8S5z");function m(e){return e&&e.__esModule?e:{default:e}}var v="dx-cell-focus-disabled",_="focus-overlay",y="dx-focused",b="dxDataGridEditorFactory",w=(0,l.addNamespace)([c.default.down,"focusin",s.default.name].join(" "),b),C="dx-pointer-events-target",O="dx-hidden",S=a.default.ViewController.inherit({_getFocusedElement:function(e){var t=this.option("focusedRowEnabled")?"tr[tabindex]:focus":"tr[tabindex]:not(.dx-data-row):focus",n="td[tabindex]:focus, ".concat(t,", input:focus, textarea:focus, .dx-lookup-field:focus, .dx-checkbox:focus, .dx-switch:focus");return e.find(n)},_getFocusCellSelector:function(){return".dx-row > td"},_updateFocusCore:function(){var e,t,n=this._$focusedElement,i=this.component&&this.component.$element();i&&(n=this._getFocusedElement(i)).length&&(n.hasClass(v)||n.hasClass("dx-row")||(t=(e=n.closest(this._getFocusCellSelector()+", ."+v)).get(0)!==n.get(0)&&e.hasClass("dx-editor-inline-block"),n=e),n.length&&!n.hasClass(v))?this.focus(n,t):this.loseFocus()},_updateFocus:function(e){var t=this,n=e&&e.event&&(0,i.default)(e.event.target).hasClass(t.addWidgetPrefix(_));t._isFocusOverlay=t._isFocusOverlay||n,clearTimeout(t._updateFocusTimeoutID),t._updateFocusTimeoutID=setTimeout(function(){delete t._updateFocusTimeoutID,t._isFocusOverlay||t._updateFocusCore(),t._isFocusOverlay=!1})},_updateFocusOverlaySize:function(e,t){e.hide();var n=u.default.calculate(e,(0,h.extend)({collision:"fit"},t));n.h.oversize>0&&e.outerWidth(e.outerWidth()-n.h.oversize),n.v.oversize>0&&e.outerHeight(e.outerHeight()-n.v.oversize),e.show()},callbackNames:function(){return["focused"]},focus:function(e,t){var n=this;if(void 0===e)return n._$focusedElement;e&&(e.is(n._$focusedElement)||n._$focusedElement&&n._$focusedElement.removeClass(y),n._$focusedElement=e,clearTimeout(n._focusTimeoutID),n._focusTimeoutID=setTimeout(function(){delete n._focusTimeoutID,n.renderFocusOverlay(e,t),e.addClass(y),n.focused.fire(e)}))},refocus:function(){var e=this.focus();this.focus(e)},renderFocusOverlay:function(e,t){var n=this;if((0,g.isElementInCurrentGrid)(this,e))if(n._$focusOverlay||(n._$focusOverlay=(0,i.default)("
").addClass(n.addWidgetPrefix(_)+" "+C)),t)n._$focusOverlay.addClass(O);else if(e.length){var r=d.default.msie?"left bottom":d.default.mozilla?"right bottom":"left top",o=e.closest("."+n.addWidgetPrefix("content")),a=(0,f.getBoundingRect)(e.get(0));n._$focusOverlay.removeClass(O).appendTo(o).outerWidth(a.right-a.left+1).outerHeight(a.bottom-a.top+1);var s={precise:!0,my:r,at:r,of:e,boundary:o.length&&o};n._updateFocusOverlaySize(n._$focusOverlay,s),u.default.setup(n._$focusOverlay,s),n._$focusOverlay.css("visibility","visible")}},resize:function(){var e=this._$focusedElement;e&&this.focus(e)},loseFocus:function(){this._$focusedElement&&this._$focusedElement.removeClass(y),this._$focusedElement=null,this._$focusOverlay&&this._$focusOverlay.addClass(O)},init:function(){this.createAction("onEditorPreparing",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this.createAction("onEditorPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this._updateFocusHandler=this._updateFocusHandler||this.createAction(this._updateFocus.bind(this)),o.default.on(r.default.getDocument(),w,this._updateFocusHandler),this._attachContainerEventHandlers()},_attachContainerEventHandlers:function(){var e=this,t=e.component&&e.component.$element();t&&o.default.on(t,(0,l.addNamespace)("keydown",b),function(t){"tab"===(0,l.normalizeKeyName)(t)&&e._updateFocusHandler(t)})},_focusOverlayEventProxy:function(e){var t=(0,i.default)(e.target),n=(0,i.default)(e.currentTarget);if((t.hasClass(C)||t.hasClass("dx-pointer-events-none"))&&!n.hasClass(O)){n.addClass(O);var r=t.get(0).ownerDocument.elementFromPoint(e.clientX,e.clientY);(0,l.fireEvent)({originalEvent:e,target:r}),e.stopPropagation(),n.removeClass(O),e.type===s.default.name&&"INPUT"===r.tagName&&o.default.trigger((0,i.default)(r),"focus")}},dispose:function(){clearTimeout(this._focusTimeoutID),clearTimeout(this._updateFocusTimeoutID),o.default.off(r.default.getDocument(),w,this._updateFocusHandler)}}).include(p.default);e.exports={defaultOptions:function(){return{}},controllers:{editorFactory:S}}},FwU7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n("8Qh0"))&&i.__esModule?i:{default:i},o=n("KAnu");function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t,n){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(a,e);var t,n,i,r=(n=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=d(n);if(i){var r=d(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return l(this,e)});function a(){return s(this,a),r.apply(this,arguments)}return(t=[{key:"_renderWatchers",value:function(){return this._startWatcher("badge",o.noop),c(d(a.prototype),"_renderWatchers",this).call(this)}}])&&function(e,t){for(var n=0;n2?Object.keys(r).map(function(e){return["format","standalone"].map(function(n){return t.getMonthNames(r[e],n).join("|")}).join("|")}).join("|"):"0?[1-9]|1[012]"},a={y:function(e){return"[0-9]+"},M:o,L:o,Q:function(e,t){return e>2?t.getQuarterNames(r[e],"format").join("|"):"0?[1-4]"},E:function(e,t){return"\\D*"},a:function(e,t){return t.getPeriodNames(r[e<3?3:e],"format").join("|")},d:function(e){return"0?[1-9]|[12][0-9]|3[01]"},H:function(e){return"0?[0-9]|1[0-9]|2[0-3]"},h:function(e){return"0?[1-9]|1[012]"},m:function(e){return"0?[0-9]|[1-5][0-9]"},s:function(e){return"0?[0-9]|[1-5][0-9]"},S:function(e){return"[0-9]{1,"+e+"}"},w:function(e){return"0?[0-9]|[1-5][0-9]"}},s=Number,c=function(e,t){return e.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())},u=function(e,t,n){return t>2?["format","standalone"].map(function(t){return Object.keys(r).map(function(i){var o=n.getMonthNames(r[i],t);return c(o,e)})}).reduce(function(e,t){return e.concat(t)}).filter(function(e){return e>=0})[0]:s(e)-1},l={y:function(e,t){var n=s(e);return 2===t?n<30?2e3+n:1900+n:n},M:u,L:u,Q:function(e,t,n){return t>2?n.getQuarterNames(r[t],"format").indexOf(e):s(e)-1},E:function(e,t,n){var i=n.getDayNames(r[t<3?3:t],"format");return c(i,e)},a:function(e,t,n){var i=n.getPeriodNames(r[t<3?3:t],"format");return c(i,e)},d:s,H:s,h:s,m:s,s:s,S:function(e,t){for(t=Math.max(t,3),e=e.slice(0,3);t<3;)e+="0",t++;return s(e)}},d=["y","M","d","h","m","s","S"],h={y:"setFullYear",M:"setMonth",L:"setMonth",a:function(e,t,n){var i=e.getHours(),r=n.h;void 0!==r&&r!==i&&i--,t||12!==i?t&&12!==i&&(i+=12):i=0,e.setHours(i)},d:"setDate",H:"setHours",h:"setHours",m:"setMinutes",s:"setSeconds",S:"setMilliseconds"},f=function(e,t){var n=e[t],i=0;do{t++,i++}while(e[t]===n);return i},p=function(e,t){for(var n="",i=0;ic)){var u=s.indexOf(e);u>=0?function(e,t,n,i,r){var o=t[0],a=h[o],s=l[o];if(a&&s){var c=s(n,t.length,i);r[t]=c,e[a]?e[a](c):a(e,c,r)}}(a,n.patterns[u],r[u+1],t,f):function(e,t,n){var i=h[t],r=n["g"+i.substr(1)]();e[i](r)}(a,e,o)}}),a}return null}},t.getRegExpInfo=g,t.getPatternSetters=function(){return h}},G0Uy:function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},GBv4:function(e,t,n){"use strict";var i,r=n("zl3R"),o=(i=n("NNGq"))&&i.__esModule?i:{default:i},a=function(e,t){var n={};"noBubble"in t&&(n.noBubble=t.noBubble),"bindType"in t&&(n.bindType=t.bindType),"delegateType"in t&&(n.delegateType=t.delegateType),(0,r.each)(["setup","teardown","add","remove","trigger","handle","_default","dispose"],function(e,i){t[i]&&(n[i]=function(){var e=[].slice.call(arguments);return e.unshift(this),t[i].apply(t,e)})}),o.default.fire(e,n)};a.callbacks=o.default,e.exports=a},GC31:function(e,t,n){"use strict";var i=n("tUd6"),r=n("cGv3").getWindow(),o=n("FKN7");t.getSvgMarkup=function(e,t){return n=function(e,t){var n=i.createElement("div"),r=e.cloneNode(!0);return t&&o(r).css("backgroundColor",t),n.appendChild(r),n.innerHTML}(e,t).replace(/"/gi,""").replace(/&/gi,"&").replace(/'/gi,"'").replace(/</gi,"<").replace(/>/gi,">").replace(/ /gi," ").replace(/­/gi,"­"),r=!0,-1===n.indexOf("xmlns:xlink")&&(n=n.replace("1:w(e)?r&&(0,u.focused)(n):void 0)},t.setEventFixMethod=function(e){return p=e},t.createEvent=function(e,t){var n=function(e){return p((0,o.Event)(e,e),e)}(e);return t&&(0,c.extend)(n,t),n});t.fireEvent=function(e){var t=e.delegateTarget,n=O(e.originalEvent,e);return a.default.trigger(t||n.target,n),n},t.normalizeKeyName=function(e){var t=e.key,n=!!t;if(t=n?t:e.which)return n?d[t.toLowerCase()]||t:h[t]||String.fromCharCode(t)},t.getChar=function(e){return e.key||String.fromCharCode(e.which)},t.addNamespace=r.default},GEWs:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=(i=n("15ve"))&&i.__esModule?i:{default:i},o=n("1B4V"),a=n("1LL4"),s=n("Qs8D");function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n=0)return e.option((0,s.getFullOptionName)("items[".concat(r,"]"),n),i),!0}return!1}}]),n}(r.default),y=function(e){h(n,e);var t=p(n);function n(){return u(this,n),t.apply(this,arguments)}return d(n,[{key:"tryExecute",value:function(){var e=this.findInstance();return!!e&&(e.option("dataSource",this._options.value),!0)}}]),n}(r.default),b=function(e){h(n,e);var t=p(n);function n(){return u(this,n),t.apply(this,arguments)}return d(n,[{key:"tryExecute",value:function(){var e=this._options.item,t=this.findInstance(),n=t&&(0,o.data)(t.$element()[0],"dxValidator");if(n&&e){var i=function(e){return"required"===e.type},r=(n.option("validationRules")||[]).some(i),a=(e.validationRules||[]).some(i);if(!r&&!a||r&&a)return n.option("validationRules",e.validationRules),!0}return!1}}]),n}(r.default),w=function(e){h(n,e);var t=p(n);function n(){return u(this,n),t.apply(this,arguments)}return d(n,[{key:"tryExecute",value:function(){var e=this.findItemContainer(),t=this._options,n=t.value;return!!e&&(e.removeClass(t.previousValue).addClass(n),!0)}}]),n}(r.default);t.default=function(e,t){switch(e){case"editorOptions":case"buttonOptions":return new v(t);case"validationRules":return new b(t);case"cssClass":return new w(t);case"badge":case"disabled":case"icon":case"template":case"tabTemplate":case"title":return new _((0,a.extend)(t,{optionName:e}));case"tabs":return new y(t);default:return null}}},"GH/3":function(e,t,n){"use strict";n.d(t,"a",function(){return f});var i=n("c7TG"),r=n("c480"),o=n("9ans"),a=n("fXoL"),s=n("ofXK"),c=n("tyNb");function u(e,t){if(1&e&&(a.gc(0,"a",9),a.Rc(1),a.fc()),2&e){var n=a.qc().$implicit;a.wc("routerLink",n.link),a.Ob(1),a.Sc(n.name)}}function l(e,t){if(1&e&&(a.gc(0,"a",9),a.Rc(1),a.fc()),2&e){var n=t.$implicit;a.wc("routerLink",n.link),a.Ob(1),a.Sc(n.name)}}function d(e,t){if(1&e&&(a.gc(0,"div",10),a.gc(1,"button",11),a.Rc(2),a.bc(3,"ion-icon",12),a.fc(),a.gc(4,"div",13),a.Pc(5,l,2,2,"a",14),a.fc(),a.fc()),2&e){var n=a.qc().$implicit;a.Ob(2),a.Tc("",n.name," "),a.Ob(3),a.wc("ngForOf",n.subMenu)}}function h(e,t){if(1&e&&(a.ec(0),a.Pc(1,u,2,2,"a",7),a.Pc(2,d,6,2,"div",8),a.dc()),2&e){var n=t.$implicit;a.Ob(1),a.wc("ngIf",!n.subMenu),a.Ob(1),a.wc("ngIf",n.subMenu)}}var f=function(){function e(e,t){this.authService=e,this.popoverController=t,this.shortcuts=[{name:"Admin Tools",link:"/admin"},{name:"Log Viewer",link:"/logger"},{name:"Monitoring",link:"/monitoring"},{name:"TSO Configuration",link:"/tso-configuration/shipping-size"}]}return e.prototype.ngOnInit=function(){console.log(this.authService.currentUser)},e.prototype.showUserInfoPopover=function(e){return t=this,void 0,i=function(){return function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0&&(this._updateLockCount--,this._updateLockCount||this._endUpdateCore())},option:function(e){var t=this.component,n=t._optionCache;return 1===arguments.length&&n?(e in n||(n[e]=t.option(e)),n[e]):t.option.apply(t,arguments)},localize:function(e){var t=this.component._optionCache;return t?(e in t||(t[e]=h.default.format(e)),t[e]):h.default.format(e)},on:function(){return this.component.on.apply(this.component,arguments)},off:function(){return this.component.off.apply(this.component,arguments)},optionChanged:function(e){e.name in this._actions&&(this.createAction(e.name,this._actionConfigs[e.name]),e.handled=!0)},getAction:function(e){return this._actions[e]},setAria:function(e,t,n){var i=n.get(0),r="role"!==e&&"id"!==e?"aria-":"";i.setAttribute?i.setAttribute(r+e,t):n.attr(r+e,t)},_createComponent:function(){return this.component._createComponent.apply(this.component,arguments)},getController:function(e){return this.component._controllers[e]},createAction:function(e,t){if((0,c.isFunction)(e)){var n=this.component._createAction(e.bind(this),t);return function(e){n({event:e})}}this._actions[e]=this.component._createActionByOption(e,t),this._actionConfigs[e]=t},executeAction:function(e,t){var n=this._actions[e];return n&&n(t)},dispose:function(){var e=this;(0,l.each)(e.callbackNames()||[],function(){e[this].empty()})},addWidgetPrefix:function(e){return"dx-"+this.component.NAME.slice(2).toLowerCase()+(e?"-"+e:"")},getWidgetContainerClass:function(){return this.addWidgetPrefix("dxDataGrid"===this.component.NAME?null:"container")}}),m=g,v=m.inherit({getView:function(e){return this.component._views[e]},getViews:function(){return this.component._views}}),_=g.inherit({_isReady:function(){return this.component.isReady()},_endUpdateCore:function(){this.callBase(),!this._isReady()&&this._requireReady&&(this._requireRender=!1,this.component._requireResize=!1),this._requireRender&&(this._requireRender=!1,this.render(this._$parent))},_invalidate:function(e,t){this._requireRender=!0,this.component._requireResize=(0,f.hasWindow)()&&(this.component._requireResize||e),this._requireReady=this._requireReady||t},_renderCore:function(){},_resizeCore:function(){},_afterRender:function(){},_parentElement:function(){return this._$parent},ctor:function(e){this.callBase(e),this.renderCompleted=(0,a.default)(),this.resizeCompleted=(0,a.default)()},element:function(){return this._$element},getElementHeight:function(){var e=this.element();if(!e)return 0;var t=parseFloat(e.css("marginTop"))||0,n=parseFloat(e.css("marginBottom"))||0;return e.get(0).offsetHeight+t+n},isVisible:function(){return!0},getTemplate:function(e){return this.component._getTemplate(e)},render:function(e,t){var n=this._$element,r=this.isVisible();(n||e)&&(this._requireReady=!1,n||(n=this._$element=(0,i.default)("
").appendTo(e),this._$parent=e),n.toggleClass("dx-hidden",!r),r&&(this.component._optionCache={},this._renderCore(t),this.component._optionCache=void 0,this._afterRender(e),this.renderCompleted.fire(t)))},resize:function(){this.isResizing=!0,this._resizeCore(),this.resizeCompleted.fire(),this.isResizing=!1},focus:function(){r.default.trigger(this.element(),"focus")}}),y=1e6;e.exports={modules:[],View:_,ViewController:v,Controller:m,registerModule:function(e,t){for(var n=this.modules,i=0;i"),a,{value:this.dateBoxValue(),_showClock:!this._isShrinkView(),use24HourFormat:this._is24HourFormat(),onValueChanged:this._valueChangedHandler.bind(this),stylingMode:this.dateBox.option("stylingMode")}),this._timeView.registerKeyHandler("escape",this._escapeHandler.bind(this))},renderOpenedState:function(){this.callBase();var e=this._getPopup();e&&e._wrapper().toggleClass("dx-datebox-adaptivity-mode",this._isSmallScreen()),clearTimeout(this._repaintTimer),this._repaintTimer=setTimeout((function(){this._getPopup()&&this._getPopup().repaint()}).bind(this),0)},isAdaptivityChanged:function(){var e=this._isShrinkView(),t=this._currentAdaptiveMode;return e!==t?(this._currentAdaptiveMode=e,void 0!==t):this.callBase()},_updateValue:function(e){var t=this.dateBoxValue();t||e||(t=new Date,l.normalizeTime(t)),this.callBase(),this._timeView&&(t&&this._timeView.option("value",t),this._timeView.option("use24HourFormat",this._is24HourFormat()))},_isSmallScreen:function(){return i(r).width()<=573},_isShrinkView:function(){return!this.dateBox.option("showAnalogClock")||this.dateBox.option("adaptivityEnabled")&&this._isSmallScreen()},_getBoxItems:function(){var e=[{ratio:0,shrink:0,baseSize:"auto",name:"calendar"}];return this._isShrinkView()||e.push({ratio:0,shrink:0,baseSize:"auto",name:"time"}),e},renderPopupContent:function(){this.callBase(),this._currentAdaptiveMode=this._isShrinkView();var e=this._getPopup().$content();this._box=this.dateBox._createComponent(i("
").appendTo(e),u,{direction:"row",crossAlign:"start",items:this._getBoxItems(),itemTemplate:(function(e){var t=i("
");switch(e.name){case"calendar":t.append(this._widget.$element()),this._isShrinkView()&&t.append(this._timeView.$element());break;case"time":t.append(this._timeView.$element())}return t}).bind(this)}),this._attachTabHandler()},popupConfig:function(e){var t=this.callBase(e);return c(t,{onShowing:(function(){if("fallback"===this._box.option("_layoutStrategy")){var e=this._getPopup().$content().find(".dx-timeview-clock").css("minWidth");this._timeView.$element().css("maxWidth",e)}}).bind(this)})},getFirstPopupElement:function(){return this._timeView._hourBox.$element().find("input")},_attachTabHandler:function(){var e=this.dateBox;this._timeView._hourBox.registerKeyHandler("tab",function(t){t.shiftKey&&(t.preventDefault(),e.focus())})},_preventFocusOnPopup:function(e){i(e.target).hasClass("dx-texteditor-input")||(this.callBase.apply(this,arguments),this.dateBox._hasFocusClass()||this.dateBox.focus())},getValue:function(){var e=this._widget.option("value"),t=this._timeView.option("value");return(e=e?new Date(e):new Date).setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},dispose:function(){clearTimeout(this._removeMinWidthTimer),clearTimeout(this._repaintTimer),this.callBase()}});e.exports=d},GrlX:function(e,t,n){var i=n("T016"),r=n("JRS9"),o={};for(var a in i)i.hasOwnProperty(a)&&(o[i[a]]=a);var s=e.exports={to:{},get:{}};function c(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}s.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=s.get.hsl(e),n="hsl";break;case"hwb":t=s.get.hwb(e),n="hwb";break;default:t=s.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},s.get.rgb=function(e){if(!e)return null;var t,n,r,o=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(r=t[2],t=t[1],n=0;n<3;n++){var a=2*n;o[n]=parseInt(t.slice(a,a+2),16)}r&&(o[3]=Math.round(parseInt(r,16)/255*100)/100)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(r=(t=t[1])[3],n=0;n<3;n++)o[n]=parseInt(t[n]+t[n],16);r&&(o[3]=Math.round(parseInt(r+r,16)/255*100)/100)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(n=0;n<3;n++)o[n]=parseInt(t[n+1],0);t[4]&&(o[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(t=e.match(/(\D+)/))?"transparent"===t[1]?[0,0,0,0]:(o=i[t[1]])?(o[3]=1,o):null:null;for(n=0;n<3;n++)o[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(o[3]=parseFloat(t[4]))}for(n=0;n<3;n++)o[n]=c(o[n],0,255);return o[3]=c(o[3],0,1),o},s.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},s.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},s.to.hex=function(){var e=r(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},s.to.rgb=function(){var e=r(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},s.to.rgb.percent=function(){var e=r(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+i+"%)":"rgba("+t+"%, "+n+"%, "+i+"%, "+e[3]+")"},s.to.hsl=function(){var e=r(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},s.to.hwb=function(){var e=r(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},s.to.keyword=function(e){return o[e.slice(0,3)]}},GyhO:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("LRne"),r=n("0EUg");function o(){return Object(r.a)()(i.a.apply(void 0,arguments))}},"H/Lu":function(e,t,n){"use strict";var i,r=n("cGv3"),o=n("l6YY"),a={_renderCore:function(){var e=this,t=e._scrollLeft;e.callBase.apply(e,arguments),e._columnsController.isVirtualMode()&&t>=0&&(e._scrollLeft=0,e.scrollTo({left:t}))}},s=(i=function(e){return e.map(function(e){return e.visibleWidth||parseFloat(e.width)||50})},{init:function(){var e=this;e.callBase(),e._beginPageIndex=0,e._endPageIndex=0,e._position=0,e._virtualVisibleColumns={}},resetColumnsCache:function(){this.callBase(),this._virtualVisibleColumns={}},getBeginPageIndex:function(e){for(var t=this.getVisibleColumns(void 0,!0),n=i(t),r=0,o=0;o=e)return Math.floor(o/this.getColumnPageSize());r+=n[o]}return 0},getTotalWidth:function(){var e=this.option("width");return"number"==typeof e?e:this.getController("resizing")._lastWidth||this.component.$element().outerWidth()},getEndPageIndex:function(e){var t=this.getVisibleColumns(void 0,!0),n=i(t),r=0;e+=this.getTotalWidth();for(var o=0;o=e)return Math.ceil(o/this.getColumnPageSize());r+=n[o]}return Math.ceil(n.length/this.getColumnPageSize())},getColumnPageSize:function(){return this.option("scrolling.columnPageSize")},_fireColumnsChanged:function(){var e=new Date;this.columnsChanged.fire({optionNames:{all:!0,length:1},changeTypes:{columns:!0,length:1}}),this._renderTime=new Date-e},setScrollPosition:function(e){var t=this,n=t.option("scrolling.columnRenderingThreshold");t._renderTime>n?(clearTimeout(t._changedTimeout),t._changedTimeout=setTimeout(function(){t._setScrollPositionCore(e)},t.option("scrolling.timeout"))):t._setScrollPositionCore(e)},isVirtualMode:function(){return(0,r.hasWindow)()&&"virtual"===this.option("scrolling.columnRenderingMode")},resize:function(){this._setScrollPositionCore(this._position)},_setScrollPositionCore:function(e){var t=this;if(t.isVirtualMode()){var n=t.getBeginPageIndex(e),i=t.getEndPageIndex(e),r=en:t._endPageIndex1&&"number"==typeof e){for(var C=[],O=0;O=0){var r=(0,i.default)(this.getView("rowsView").getRowElement(n));this.getController("keyboardNavigation")._fireFocusedRowChanged(r,t)}}},isAutoNavigateToFocusedRow:function(){return"infinite"!==this.option("scrolling.mode")&&this.option("autoNavigateToFocusedRow")},_focusRowByIndex:function(e){this.option("focusedRowEnabled")&&((e=void 0!==e?e:this.option("focusedRowIndex"))<0?this.isAutoNavigateToFocusedRow()&&this._resetFocusedRow():this._focusRowByIndexCore(e))},_focusRowByIndexCore:function(e){var t=this,n=this.getController("data"),i=n.pageSize(),r=function(){if(t._isValidFocusedRowIndex(e)){var i=e-n.getRowIndexOffset(),r=n._getLastItemIndex(),o=Math.min(i,r),a=n.getKeyByRowIndex(o);void 0===a||t.isRowFocused(a)||t.option("focusedRowKey",a)}};if(i>=0)if(this._isLocalRowIndex(e))r();else{var o=Math.floor(e/n.pageSize());(0,u.when)(n.pageIndex(o),n.waitReady()).done(function(){r()})}},_isLocalRowIndex:function(e){var t=this.getController("data");if(this.getController("keyboardNavigation")._isVirtualScrolling()){var n=Math.floor(e/t.pageSize()),i=t.virtualItemsCount(),r=i?i.begin:-1,o=t.getVisibleRows().length+t.getRowIndexOffset(),a=Math.ceil(o/t.pageSize());return r<=e&&a>n}return!0},_setFocusedRowKeyByIndex:function(e){var t=this.getController("data");if(this._isValidFocusedRowIndex(e)){var n=Math.min(e-t.getRowIndexOffset(),t.items().length-1),i=t.getKeyByRowIndex(n);void 0===i||this.isRowFocused(i)||this.option("focusedRowKey",i)}},_focusRowByKey:function(e){void 0===e?this._resetFocusedRow():this._navigateToRow(e,!0)},_resetFocusedRow:function(){if(!(void 0===this.option("focusedRowKey")&&this.option("focusedRowIndex")<0)){var e=this.getController("keyboardNavigation");this.option("focusedRowKey",void 0),e.setFocusedRowIndex(-1),this.option("focusedRowIndex",-1),this.getController("data").updateItems({changeType:"updateFocusedRow",focusedRowKey:void 0}),e._fireFocusedRowChanged(void 0,-1)}},_isValidFocusedRowIndex:function(e){var t=this.getController("data").getVisibleRows()[e];return!t||"data"===t.rowType||"group"===t.rowType},publicMethods:function(){return["navigateToRow","isRowFocused"]},navigateToRow:function(e){this.isAutoNavigateToFocusedRow()||this.option("focusedRowIndex",-1),this._navigateToRow(e)},_navigateToRow:function(e,t){var n=this,i=n.getController("data"),r=n.isAutoNavigateToFocusedRow(),o=new u.Deferred;if(void 0===e||!i.dataSource())return o.reject().promise();var a=n.getFocusedRowIndexByKey(e),s=i.getDataSource().paginate();return!r&&t||!s||a>=0?n._navigateTo(e,o,t):i.getPageIndexByKey(e).done(function(r){r<0?o.resolve(-1):r===i.pageIndex()?i.reload().done(function(){n.isRowFocused(e)?o.resolve(n.getFocusedRowIndexByKey(e)):n._navigateTo(e,o,t)}).fail(o.reject):i.pageIndex(r).done(function(){n._navigateTo(e,o,t)}).fail(o.reject)}).fail(o.reject),o.promise()},_navigateTo:function(e,t,n){var i=this.getController("data").getRowIndexByKey(e),r="virtual"===this.option("scrolling.rowRenderingMode");this.isAutoNavigateToFocusedRow()&&r&&i<0?this._navigateToVirtualRow(e,t,n):this._navigateToVisibleRow(e,t,n)},_navigateToVisibleRow:function(e,t,n){n?this._triggerUpdateFocusedRow(e,t):this.getView("rowsView").scrollToRowElement(e)},_navigateToVirtualRow:function(e,t,n){var i=this,r=this.getController("data"),o=r._rowsScrollController,s=(0,a.getIndexByKey)(e,r.items(!0)),c=i.getView("rowsView").getScrollable();if(o&&c&&s>=0){var u=s+r.getRowIndexOffset()-r.getRowIndexDelta(),l=o.getItemOffset(u);n&&i.component.on("contentReady",function n(){i.component.off("contentReady",n),i._triggerUpdateFocusedRow(e,t)}),c.scrollTo({y:l})}},_triggerUpdateFocusedRow:function(e,t){var n=this.getController("data"),i=this.getFocusedRowIndexByKey(e);this._isValidFocusedRowIndex(i)?(this.option("focusedRowEnabled")?n.updateItems({changeType:"updateFocusedRow",focusedRowKey:e}):this.getView("rowsView").scrollToRowElement(e),this.getController("keyboardNavigation").setFocusedRowIndex(i),t&&t.resolve(i)):t&&t.resolve(-1)},getFocusedRowIndexByKey:function(e){var t=this.getController("data"),n=t.getRowIndexByKey(e);return n>=0?n+t.getRowIndexOffset():-1},_focusRowByKeyOrIndex:function(){var e=this,t=this.option("focusedRowKey"),n=this.option("focusedRowIndex"),i=this.getController("keyboardNavigation"),r=this.getController("data");if(void 0!==t){var o=r.getRowIndexByKey(t);o>=0?(i._isVirtualScrolling()&&(n=o+r.getRowIndexOffset()),i.setFocusedRowIndex(n),this._triggerUpdateFocusedRow(t)):this._navigateToRow(t,!0).done(function(t){n>=0&&t<0&&e._focusRowByIndex()})}else n>=0&&this.getController("focus")._focusRowByIndex(n)},isRowFocused:function(e){if(void 0!==this.option("focusedRowKey"))return(0,s.equalByValue)(e,this.option("focusedRowKey"))},updateFocusedRow:function(e){var t,n=this,r=n._dataController.getRowIndexByKey(e.focusedRowKey),a=n.getView("rowsView");(0,o.each)(a.getTableElements(),function(o,a){var s=0===o;t=(0,i.default)(a),n._clearPreviousFocusedRow(t,r),n._prepareFocusedRow({changedItem:e.items[r],$tableElement:t,focusedRowIndex:r,isMainTable:s})})},_clearPreviousFocusedRow:function(e,t){var n=this,r=e.find(".dx-row.dx-row-focused").filter(function(t,r){var o=(0,i.default)(r).closest(".".concat(n.addWidgetPrefix("table")));return e.is(o)});r.removeClass(d).removeClass(h).removeAttr("tabindex"),r.children("td").removeAttr("tabindex"),0!==t&&(0,i.default)(this.getView("rowsView").getRowElement(0)).removeClass(h).removeAttr("tabIndex")},_prepareFocusedRow:function(e){var t,n=e.changedItem;if(n&&("data"===n.rowType||"group"===n.rowType)){var r=e.focusedRowIndex,o=e.$tableElement,a=e.isMainTable,s=this.option("tabindex")||0,c=this.getView("rowsView");(t=(0,i.default)(c._getRowElements(o).eq(r))).addClass(d).attr("tabindex",s),a&&c.scrollToElementVertically(t)}return t}}),e.exports={defaultOptions:function(){return{focusedRowEnabled:!1,autoNavigateToFocusedRow:!0,focusedRowKey:void 0,focusedRowIndex:-1,focusedColumnIndex:-1}},controllers:{focus:t.FocusController},extenders:{controllers:{keyboardNavigation:{init:function(){var e=this.option("focusedRowIndex"),t=this.option("focusedColumnIndex");this.createAction("onFocusedRowChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedRowChanged",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanged",{excludeValidators:["disabled","readOnly"]}),this.callBase(),this.setRowFocusType(),this._focusedCellPosition={},(0,c.isDefined)(e)&&(this._focusedCellPosition.rowIndex=this.option("focusedRowIndex")),(0,c.isDefined)(t)&&(this._focusedCellPosition.columnIndex=this.option("focusedColumnIndex"))},setFocusedRowIndex:function(e){this.callBase(e);var t=this.getController("data").getVisibleRows()[e];t&&t.isNewRow||this.option("focusedRowIndex",e)},setFocusedColumnIndex:function(e){this.callBase(e),this.option("focusedColumnIndex",e)},_escapeKeyHandler:function(e,t){!t&&this.option("focusedRowEnabled")?this.isCellFocusType()&&(this.setRowFocusType(),this._focus(this._getCellElementFromTarget(e.originalEvent.target),!0)):this.callBase(e,t)},_updateFocusedCellPosition:function(e,t){var n=this.option("focusedRowIndex"),i=this.option("focusedColumnIndex"),r=this.callBase(e,t);r&&r.columnIndex>=0&&this._fireFocusedCellChanged(e,i,n)}},editorFactory:{renderFocusOverlay:function(e,t){var n,i=this.getController("keyboardNavigation"),r=this.option("focusedRowEnabled"),o=this.getController("editing"),a="row"===i._getElementType(e);r&&i.isRowFocusType()&&!o.isEditing()?r&&a&&!e.hasClass(d)&&(n=i.getFirstValidCellInRow(e),i.focus(n)):this.callBase(e,t)}},columns:{getSortDataSourceParameters:function(e,t){var n=this,i=this.callBase.apply(this,arguments),r=this.getController("data"),o=r._dataSource,a=r.store(),s=a&&a.key(),c=o&&o.remoteOperations()||{},u=Object.keys(c).every(function(e){return!c[e]});if(s&&(this.option("focusedRowEnabled")&&!1!==this.getController("focus").isAutoNavigateToFocusedRow()||t)){var l=(s=Array.isArray(s)?s:[s]).filter(function(e){return!n.columnOption(e,"sortOrder")});l.length&&(i=i||[],u?i.push({selector:o.getDataIndexGetter(),desc:!1}):l.forEach(function(e){return i.push({selector:e,desc:!1})}))}return i}},data:{_applyChange:function(e){if(!e||"updateFocusedRow"!==e.changeType)return this.callBase.apply(this,arguments)},_fireChanged:function(e){if(this.callBase(e),this.option("focusedRowEnabled")&&this._dataSource){var t="update"===e.changeType&&e.repaintChangesOnly&&e.changeTypes&&e.changeTypes.indexOf("remove")>=0;"refresh"===e.changeType&&e.items.length||t?(this._updatePageIndexes(),this.processUpdateFocusedRow(e)):"append"!==e.changeType&&"prepend"!==e.changeType||this._updatePageIndexes()}},_updatePageIndexes:function(){var e=this._lastRenderingPageIndex||0,t=this._rowsScrollController?this._rowsScrollController.pageIndex():0;this._lastRenderingPageIndex=t,this._isPagingByRendering=t!==e},isPagingByRendering:function(){return this._isPagingByRendering},processUpdateFocusedRow:function(e){var t=e.operationTypes||{},n=this.getController("focus"),i=t.reload,r=t.fullReload,o=this.getController("keyboardNavigation")._isVirtualScrolling(),a=this.option("focusedRowKey"),s=n.isAutoNavigateToFocusedRow();if(i&&!r&&void 0!==a)n._navigateToRow(a,!0).done(function(e){e<0&&n._focusRowByIndex()});else if(t.paging&&!o)if(s){var c=this.getRowIndexByKey(a),u=c>=0,l=this.option("focusedRowIndex");l>=0&&(l===c||!u)&&n._focusRowByIndex()}else this.getRowIndexByKey(a)<0&&this.option("focusedRowIndex",-1);else t.fullReload&&n._focusRowByKeyOrIndex()},getPageIndexByKey:function(e){var t=this,n=new u.Deferred;return t.getGlobalRowIndexByKey(e).done(function(e){n.resolve(e>=0?Math.floor(e/t.pageSize()):-1)}).fail(n.reject),n.promise()},getGlobalRowIndexByKey:function(e){return this._dataSource.group()?this._calculateGlobalRowIndexByGroupedData(e):this._calculateGlobalRowIndexByFlatData(e)},_calculateGlobalRowIndexByFlatData:function(e,t,n){var i=this,r=new u.Deferred,o=i._dataSource,a=i._generateFilterByKey(e);return o.load({filter:i._concatWithCombinedFilter(a),skip:0,take:1}).done(function(s){s.length>0?(a=i._generateOperationFilterByKey(e,s[0],n),o.load({filter:i._concatWithCombinedFilter(a,t),skip:0,take:1,requireTotalCount:!0}).done(function(e,t){r.resolve(t.totalCount)})):r.resolve(-1)}),r.promise()},_concatWithCombinedFilter:function(e,t){var n=this.getCombinedFilter();return(0,a.combineFilters)([e,n,t])},_generateBooleanFilter:function(e,t,n){var i;return!1===t?i=[e,"=",!!n.desc||null]:(!0===t?!n.desc:n.desc)&&(i=[e,"<>",t]),i},_generateOperationFilterByKey:function(e,t,n){var i=this,r=i._dataSource,o=i._generateFilterByKey(e,"<"),a=i._columnsController.getSortDataSourceParameters(!r.remoteOperations().filtering,!0);if(n){var s=i._columnsController.getGroupDataSourceParameters(!r.remoteOperations().filtering);s&&(a=a?s.concat(a):s)}return a&&a.slice().reverse().forEach(function(e){var n,r=e.selector,a=(n="function"==typeof r?r:i._columnsController.columnOption(r,"selector"))?n(t):t[r];if(o=[[r,"=",a],"and",o],null===a||(0,c.isBoolean)(a)){var s=i._generateBooleanFilter(r,a,e);s&&(o=[s,"or",o])}else o=[[r,e.desc?">":"<",a],"or",o]}),o},_generateFilterByKey:function(e,t){var n=this._dataSource.key(),i=[];if(t||(t="="),Array.isArray(n))for(var r=0;r0&&i.push("and"),i.push([n[r],t,o]))}else i=[n,t,e];return i},_getLastItemIndex:function(){return this.items(!0).length-1}}},views:{rowsView:{_createRow:function(e){var t=this.callBase(e);return this.option("focusedRowEnabled")&&e&&this.getController("focus").isRowFocused(e.key)&&t.addClass(d),t},_checkRowKeys:function(e){if(this.callBase.apply(this,arguments),this.option("focusedRowEnabled")&&this.option("dataSource")){var t=this._dataController.store();t&&!t.key()&&this._dataController.fireError("E1042","Row focusing")}},_update:function(e){"updateFocusedRow"===e.changeType?this.option("focusedRowEnabled")&&this.getController("focus").updateFocusedRow(e):this.callBase(e)},updateFocusElementTabIndex:function(e){this.option("focusedRowEnabled")?this._setFocusedRowElementTabIndex():this.callBase(e)},_setFocusedRowElementTabIndex:function(){var e=this,t=e.option("focusedRowKey"),n=e.option("tabIndex")||0,i=e._dataController,r=i.getRowIndexByKey(t),o=e.option("focusedColumnIndex"),a=e._findRowElementForTabIndex();if(e._scrollToFocusOnResize=e._scrollToFocusOnResize||function(){e.scrollToElementVertically(e._findRowElementForTabIndex()),e.resizeCompleted.remove(e._scrollToFocusOnResize)},a.attr("tabIndex",n),r>=0){o<0&&(o=0),r+=i.getRowIndexOffset(),e.getController("keyboardNavigation").setFocusedCellPosition(r,o);var s=i.dataSource(),c=s&&s.operationTypes();!c||c.paging||i.isPagingByRendering()||(e.resizeCompleted.remove(e._scrollToFocusOnResize),e.resizeCompleted.add(e._scrollToFocusOnResize))}},_findRowElementForTabIndex:function(){var e=this.option("focusedRowKey"),t=this._dataController.getRowIndexByKey(e);return(0,i.default)(this.getRowElement(t>=0?t:0))},scrollToRowElement:function(e){var t=this.getController("data").getRowIndexByKey(e),n=(0,i.default)(this.getRow(t));this.scrollToElementVertically(n)},scrollToElementVertically:function(e){var t=this.getScrollable();if(t){var n=t.getScrollElementPosition(e,"vertical");t.scrollTo({top:n})}}}}}}},H8ED:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===n?t?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":e+" "+(i=+e,r={ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:t?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2]);var i,r}e.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:t,mm:t,h:t,hh:t,d:"\u0434\u0437\u0435\u043d\u044c",dd:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u044b":e<12?"\u0440\u0430\u043d\u0456\u0446\u044b":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-\u044b":e+"-\u0456";case"D":return e+"-\u0433\u0430";default:return e}},week:{dow:1,doy:7}})}(n("wd/R"))},HBNF:function(e,t,n){"use strict";var i=n("FKN7"),r=n("cYys"),o=n("YQNt"),a=n("GCD8"),s=n("Ovs1"),c=n("XWCB"),u=n("tJvG").Deferred,l="dx-scrollview-pull-down-loading",d=s.inherit({_init:function(e){this.callBase(e),this._$topPocket=e._$topPocket,this._$bottomPocket=e._$bottomPocket,this._$pullDown=e._$pullDown,this._$scrollViewContent=e.content(),this._initCallbacks(),this._location=0},_initCallbacks:function(){this.pullDownCallbacks=r(),this.releaseCallbacks=r(),this.reachBottomCallbacks=r()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var e=i("
").addClass("dx-scrollview-pull-down-indicator"),t=new c(i("
")).$element();this._$icon=i("
").addClass("dx-icon-pulldown"),this._$pullDown.empty().append(this._$icon).append(e.append(t))},_releaseState:function(){this._state=0,this._releasePullDown(),this._updateDimensions()},_releasePullDown:function(){this._$pullDown.css({opacity:0})},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.height(),this._bottomPocketSize=this._$bottomPocket.height(),this._scrollOffset=this._$container.height()-this._$content.height()},_allowedDirections:function(){var e=this.callBase();return e.vertical=e.vertical||this._pullDownEnabled,e},handleInit:function(e){this.callBase(e),0===this._state&&0===this._location&&(this._startClientY=a.eventData(e.originalEvent).y,this._state=4)},handleMove:function(e){this.callBase(e),this._deltaY=a.eventData(e.originalEvent).y-this._startClientY,4===this._state&&(this._pullDownEnabled&&this._deltaY>0?this._state=5:this._complete()),5===this._state&&(e.preventDefault(),this._movePullDown())},_movePullDown:function(){var e=this._getPullDownHeight(),t=Math.min(3*e,this._deltaY+this._getPullDownStartPosition()),n=180*t/e/3;this._$pullDown.css({opacity:1}).toggleClass("dx-scrollview-pull-down-refreshing",t=this._getPullDownHeight()-this._getPullDownStartPosition()},_getPullDownHeight:function(){return Math.round(.05*this._$element.outerHeight())},_getPullDownStartPosition:function(){return-Math.round(1.5*this._$pullDown.outerHeight())},handleEnd:function(){this._isPullDown()&&this._pullDownRefreshing(),this._complete()},handleStop:function(){this._complete()},_complete:function(){4!==this._state&&5!==this._state||this._releaseState()},handleScroll:function(e){if(this.callBase(e),2!==this._state){var t=this.location().top,n=this._location-t;this._location=t,n>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isReachBottom:function(){return this._reachBottomEnabled&&this._location<=this._scrollOffset+this._bottomPocketSize},_reachBottom:function(){this.reachBottomCallbacks.fire()},_stateReleased:function(){0!==this._state&&(this._$pullDown.removeClass(l),this._releaseState())},_pullDownRefreshing:function(){this._state=2,this._pullDownRefreshHandler()},_pullDownRefreshHandler:function(){this._refreshPullDown(),this.pullDownCallbacks.fire()},_refreshPullDown:function(){this._$pullDown.addClass(l),o.move(this._$pullDown,{top:this._getPullDownHeight()})},pullDownEnable:function(e){this._$topPocket.toggle(e),this._pullDownEnabled=e},reachBottomEnable:function(e){this._reachBottomEnabled=e},pendingRelease:function(){this._state=1},release:function(){var e=new u;return this._updateDimensions(),clearTimeout(this._releaseTimeout),this._releaseTimeout=setTimeout((function(){this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),e.resolve()}).bind(this),800),e.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});e.exports=d},HD7q:function(e,t,n){},HDdC:function(e,t,n){"use strict";n.d(t,"a",function(){return h});var i=n("1OyB"),r=n("vuIU"),o=n("8Qeq"),a=n("7o/Q"),s=n("2QA8"),c=n("gRHU"),u=n("kJWO"),l=n("mCNh"),d=n("2fFW"),h=function(){var e=function(){function e(t){Object(i.a)(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return Object(r.a)(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var i=this.operator,r=function(e,t,n){if(e){if(e instanceof a.a)return e;if(e[s.a])return e[s.a]()}return e||t||n?new a.a(e,t,n):new a.a(c.a)}(e,t,n);if(r.add(i?i.call(r,this.source):this.source||d.a.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),d.a.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){d.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),Object(o.a)(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=f(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}},i,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:u.a,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n=3&&e%100<=10?3:e%100>=11?4:5},i={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},r=function(e){return function(t,r,o,a){var s=n(t),c=i[e][n(t)];return 2===s&&(c=c[r?0:1]),c.replace(/%d/i,t)}},o=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-ly",{months:o,monthsShort:o,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n("wd/R"))},HZnW:function(e,t,n){"use strict";var i=O(n("FKN7")),r=O(n("tUd6")),o=n("cGv3"),a=O(n("jeLr")),s=O(n("1B4V")),c=O(n("T4bj")),u=O(n("XCcL")),l=O(n("7j00")),d=O(n("uHaw")),h=n("KAnu"),f=O(n("m6TM")),p=n("v4HY"),g=O(n("ti0F")),m=n("XgSC"),v=O(n("zl3R")),_=n("1LL4"),y=O(n("GYHJ")),b=n("8S5z"),w=O(n("oyr6")),C=n("tJvG");function O(e){return e&&e.__esModule?e:{default:e}}var S="scroll-container",k="dx-master-detail-row",x="0.0001px",T="dxCellHintVisible",E={render:function(e){e.container.append(e.content)}},I=function(e){return"auto"===e?"":g.default.isNumeric(e)?e+"px":e},D=function(e,t,n){e.style.width=e.style.maxWidth="auto"===t.width?"":n};t.ColumnsView=y.default.View.inherit(w.default).inherit({_createScrollableOptions:function(){var e=this.option("scrolling"),t=this.option("scrolling.useNative"),n=(0,_.extend)({pushBackValue:0},e,{direction:"both",bounceEnabled:!1,useKeyboard:!1});return void 0===t&&(t=!0),"auto"===t?(delete n.useNative,delete n.useSimulatedScrollbar):(n.useNative=!!t,n.useSimulatedScrollbar=!t),n},_updateCell:function(e,t){t.rowType&&this._cellPrepared(e,t)},_createCell:function(e){var t=e.column,n=t.alignment||(0,m.getDefaultAlignment)(this.option("rtlEnabled")),o=r.default.createElement("td");o.style.textAlign=n;var a=(0,i.default)(o);return"data"===e.rowType&&t.headerId&&!t.type&&this.component.option("showColumnHeaders")&&this.setAria("describedby",t.headerId,a),t.cssClass&&a.addClass(t.cssClass),"expand"===t.command&&(a.addClass(t.cssClass),a.addClass(this.addWidgetPrefix("group-space"))),t.colspan>1?a.attr("colSpan",t.colspan):t.isBand||"auto"===t.visibleWidth||this.option("legacyRendering")||!this.option("columnAutoWidth")||((t.width||t.minWidth)&&(o.style.minWidth=I(t.minWidth||t.width)),t.width&&D(o,t,I(t.width))),a},_createRow:function(e){var t=(0,i.default)("").addClass("dx-row");return this.setAria("role","row",t),t},_isAltRow:function(e){return e&&e.dataIndex%2==1},_createTable:function(e,t){var n=this,r=(0,i.default)("").addClass(n.addWidgetPrefix("table")).addClass(n.addWidgetPrefix("table-fixed"));if(e&&!t?(r.append(n._createColGroup(e)),d.default.safari&&r.append((0,i.default)("").append("")),n.setAria("role","presentation",r)):n.setAria("hidden",!0,r),this.setAria("role","presentation",(0,i.default)("").appendTo(r)),t)return r;d.default.mozilla&&a.default.on(r,"mousedown","td",function(e){e.ctrlKey&&e.preventDefault()}),n.option("cellHintEnabled")&&a.default.on(r,"mousemove",".dx-row > td",this.createAction(function(e){var t=e.event,r=(0,i.default)(t.target),o=(0,i.default)(t.currentTarget),a=o.parent(),s=a.hasClass("dx-data-row"),c=a.hasClass("dx-header-row"),u=a.hasClass("dx-group-row"),l=a.hasClass(k),h=a.hasClass(n.addWidgetPrefix("filter-row")),f=n._columnsController.getVisibleColumns(),p=a.data("options"),m=o.index(),v=p&&p.cells&&p.cells[m],_=v?v.column:f[m],y=d.default.msie?1:0;l||h||s&&(!s||!_||_.cellTemplate)||c&&(!c||!_||_.headerCellTemplate)||u&&(!u||!_||void 0!==_.groupIndex&&_.groupCellTemplate)||(r.data(T)&&(r.removeAttr("title"),r.data(T,!1)),r[0].scrollWidth-r[0].clientWidth-y>0&&!g.default.isDefined(r.attr("title"))&&(r.attr("title",r.text()),r.data(T,!0)))}));var o=function(e){var t=(0,i.default)(e.currentTarget),r=(0,i.default)(e.target).closest(".dx-field-item-content"),o=t.parent().data("options"),a=o&&o.cells&&o.cells[t.index()];if(t.closest("table").is(e.delegateTarget)){var s=(0,_.extend)({},a,{cellElement:(0,p.getPublicElement)(t),event:e,eventType:e.type});if(r.length){var c=r.data("dx-form-item");c.column&&(s.column=c.column,s.columnIndex=n._columnsController.getVisibleIndex(s.column.index))}return s}};return a.default.on(r,"mouseover",".dx-row > td",function(e){var t=o(e);t&&n.executeAction("onCellHoverChanged",t)}),a.default.on(r,"mouseout",".dx-row > td",function(e){var t=o(e);t&&n.executeAction("onCellHoverChanged",t)}),a.default.on(r,u.default.name,".dx-row > td",function(e){var t=o(e);t&&n.executeAction("onCellClick",t)}),a.default.on(r,l.default.name,".dx-row > td",function(e){var t=o(e);t&&n.executeAction("onCellDblClick",t)}),function(e,t){var n,r,o;function s(e){return setTimeout(function(){n=r=null},e)}a.default.on(t,"touchstart touchend",".dx-row",function(e){clearTimeout(o),"touchstart"===e.type?(n=e.target,r=e.currentTarget,o=s(1e3)):o=s()}),a.default.on(t,[u.default.name,l.default.name,c.default.down].join(" "),".dx-row",{useNative:e._isNativeClick()},e.createAction(function(t){var o=t.event;n&&(o.target=n,o.currentTarget=r),(0,i.default)(o.target).closest("a").length||(t.rowIndex=e.getRowIndex(o.currentTarget),t.rowIndex>=0&&(t.rowElement=(0,p.getPublicElement)((0,i.default)(o.currentTarget)),t.columns=e.getColumns(),o.type===c.default.down?e._rowPointerDown(t):o.type===u.default.name?e._rowClick(t):e._rowDblClick(t)))}))}(n,r),r},_isNativeClick:h.noop,_rowPointerDown:h.noop,_rowClick:h.noop,_rowDblClick:h.noop,_createColGroup:function(e){for(var t=(0,i.default)(""),n=0;n");return f.default.setWidth(n,t),n},renderDelayedTemplates:function(){var e=this._delayedTemplates,t=e.filter(function(e){return!e.async}),n=e.filter(function(e){return e.async});this._delayedTemplates=[],this._renderDelayedTemplatesCore(t),this._renderDelayedTemplatesCoreAsync(n)},_renderDelayedTemplatesCoreAsync:function(e){var t=this;e.length&&(0,o.getWindow)().setTimeout(function(){t._renderDelayedTemplatesCore(e,!0)})},_renderDelayedTemplatesCore:function(e,t){for(var n=new Date;e.length;){var o=e.shift(),a=o.options,s=r.default.getDocument();if(t&&!(0,i.default)(a.container).closest(s).length||o.template.render(a),t&&new Date-n>30){this._renderDelayedTemplatesCoreAsync(e);break}}!e.length&&this._delayedTemplates.length&&this.renderDelayedTemplates()},_processTemplate:function(e){var t,n=this;if(e&&e.render&&!g.default.isRenderer(e))t={allowRenderToDetachedContainer:e.allowRenderToDetachedContainer,render:function(t){e.render(t.container,t.model),t.deferred&&t.deferred.resolve()}};else if(g.default.isFunction(e))t={render:function(t){var n=e((0,p.getPublicElement)(t.container),t.model);n&&(n.nodeType||g.default.isRenderer(n))&&t.container.append(n),t.deferred&&t.deferred.resolve()}};else{var r=g.default.isString(e)?e:(0,i.default)(e).attr("id");r?(n._templatesCache[r]||(n._templatesCache[r]=n.getTemplate(e)),t=n._templatesCache[r]):t=n.getTemplate(e)}return t},renderTemplate:function(e,t,n,i){var r=this,o=r._processTemplate(t,n),a=n.column,s="data"===n.rowType,c=new C.Deferred,u={container:e,model:n,deferred:c,onRendered:function(){c.resolve()}};if(o){n.component=r.component;var l=a&&(a.renderAsync&&s||r.option("renderAsync")&&(!1!==a.renderAsync&&(a.command||a.showEditorAlways)&&s||"filter"===n.rowType));!o.allowRenderToDetachedContainer&&!i||l?r._delayedTemplates.push({template:o,options:u,async:l}):o.render(u)}else c.reject();return c.promise()},_getBodies:function(e){return(0,i.default)(e).children("tbody").not(".dx-header").not(".dx-footer")},_wrapRowIfNeed:function(e,t){var n=this.option("rowTemplate")&&this._getBodies(this._tableElement||e);if(n&&n.filter(".dx-row").length){var r=(0,i.default)("").addClass(t.attr("class"));return this.setAria("role","presentation",r),r.append(t)}return t},_appendRow:function(e,t,n){(n=n||E).render({content:t,container:e})},_resizeCore:function(){var e=this._scrollLeft;e>=0&&(this._scrollLeft=0,this.scrollTo({left:e}))},_renderCore:function(e){var t=this.element().parent();t&&!t.parent().length||this.renderDelayedTemplates(e)},_renderTable:function(e){(e=e||{}).columns=this._columnsController.getVisibleColumns();var t=e.change&&e.change.changeType,n=this._createTable(e.columns,"append"===t||"prepend"===t||"update"===t);return this._renderRows(n,e),n},_renderRows:function(e,t){for(var n=this._getRows(t.change),i=t.change&&t.change.columnIndices||[],r=t.change&&t.change.changeTypes||[],o=0;o=0},_renderCells:function(e,t){for(var n=0,i=t.row,r=t.columns,o=0;o1?n+=r[o].colspan:n++},_updateCells:function(e,t,n){var i=e.children(),r=t.children(),o=this.option("highlightChanges"),a=this.addWidgetPrefix("cell-updated-animation");n.forEach(function(e,t){var n=i.eq(e),s=r.eq(t);n.replaceWith(s),o&&!s.hasClass("dx-command-expand")&&s.addClass(a)}),function(e,t){if(e&&t){var n,i=e.attributes,r=t.attributes;for(n=0;n=0&&n.splice(e,1)}},t.update=t.update||function(t){t&&(this.data=e.data=t.data,this.rowIndex=e.rowIndex=t.rowIndex,this.dataIndex=e.dataIndex=t.dataIndex,this.isExpanded=e.isExpanded=t.isExpanded,e.row&&(e.row=t)),n.forEach(function(e){e(t)})},t!==e&&(e.watch=t.watch.bind(t)),e}},_cellPrepared:function(e,t){t.cellElement=(0,p.getPublicElement)((0,i.default)(e)),this.executeAction("onCellPrepared",t)},_rowPrepared:function(e,t){s.default.data(e.get(0),"options",t),t.rowElement=(0,p.getPublicElement)(e),this.executeAction("onRowPrepared",t)},_columnOptionChanged:function(e){var t=e.optionNames;if((0,b.checkChanges)(t,["width","visibleWidth"])){var n=this._columnsController.getVisibleColumns(),i=v.default.map(n,function(e){var t=e.visibleWidth||e.width;return g.default.isDefined(t)?t:"auto"});this.setColumnWidths({widths:i,optionNames:t})}else this._requireReady||this.render()},getCellIndex:function(e){return e.length?e[0].cellIndex:-1},getTableElements:function(){return this._tableElement||(0,i.default)()},_getTableElement:function(){return this._tableElement},_setTableElement:function(e){this._tableElement=e},optionChanged:function(e){switch(this.callBase(e),e.name){case"cellHintEnabled":case"onCellPrepared":case"onRowPrepared":case"onCellHoverChanged":this._invalidate(!0,!0),e.handled=!0}},init:function(){var e=this;e._scrollLeft=-1,e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._delayedTemplates=[],e._templatesCache={},e.createAction("onCellClick"),e.createAction("onRowClick"),e.createAction("onCellDblClick"),e.createAction("onRowDblClick"),e.createAction("onCellHoverChanged",{excludeValidators:["disabled","readOnly"]}),e.createAction("onCellPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),e.createAction("onRowPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering",afterExecute:function(t){e._afterRowPrepared(t)}}),e._columnsController.columnsChanged.add(e._columnOptionChanged.bind(e)),e._dataController&&e._dataController.changed.add(e._handleDataChanged.bind(e))},_afterRowPrepared:h.noop,_handleDataChanged:function(){},callbackNames:function(){return["scrollChanged"]},scrollTo:function(e){var t=this.element(),n=t&&t.children("."+this.addWidgetPrefix(S)).not("."+this.addWidgetPrefix("content-fixed"));g.default.isDefined(e)&&g.default.isDefined(e.left)&&this._scrollLeft!==e.left&&(this._scrollLeft=e.left,n&&n.scrollLeft(e.left))},_wrapTableInScrollContainer:function(e){var t=this,n=(0,i.default)("
");return a.default.on(n,"scroll",function(){var e=n.scrollLeft();e!==t._scrollLeft&&t.scrollChanged.fire({left:e},t.name)}),n.addClass(this.addWidgetPrefix("content")).addClass(this.addWidgetPrefix(S)).append(e).appendTo(this.element()),this.setAria("role","presentation",n),n},_updateContent:function(e){this._setTableElement(e),this._wrapTableInScrollContainer(e)},_findContentElement:h.noop,_getWidths:function(e){var t,n=[],i=this.option("legacyRendering");return e&&v.default.each(e,function(e,r){if(t=r.offsetWidth,r.getBoundingClientRect){var o=(0,m.getBoundingRect)(r);o.width>t-1&&(t=i?Math.ceil(o.width):o.width)}n.push(t)}),n},getColumnWidths:function(e){var t,n,i=[];if((this.option("forceApplyBindings")||h.noop)(),e=e||this._getTableElement()){t=e.children("tbody").children();for(var r=0;r=0&&(n=i.eq(r)),n&&n.length)return n},_getRowElement:function(e){var t=this,n=(0,i.default)(),r=t.getTableElements();if(v.default.each(r,function(r,o){n=n.add(t._getRowElements((0,i.default)(o)).eq(e))}),n.length)return n},getCellElement:function(e,t){return(0,p.getPublicElement)(this._getCellElement(e,t))},getRowElement:function(e){var t=this._getRowElement(e),n=[];if(t&&!(0,p.getPublicElement)(t).get)for(var i=0;i0&&e.rowIndex>=0&&("virtual"!==this.option("scrolling.mode")&&(e.rowIndex=e.rowIndex0))return n.eq(n.length>e.columnIndex?e.columnIndex:n.length-1)},getRowsCount:function(){var e=this._getTableElement();return e&&1===e.length?e[0].rows.length:0},_getRowElementsCore:function(e){if(e=e||this._getTableElement()){var t=this.option("rowTemplate")&&e.find("> tbody.dx-row");return t&&t.length?t:e.find("> tbody > .dx-row, > .dx-row")}return(0,i.default)()},_getRowElements:function(e){return this._getRowElementsCore(e)},getRowIndex:function(e){return this._getRowElements().index(e)},getBoundingRect:function(){},getName:function(){},setScrollerSpacing:function(e){var t=this.element(),n=this.option("rtlEnabled");t&&t.css({paddingLeft:n?e:"",paddingRight:n?"":e})},isScrollbarVisible:function(e){var t=this.element(),n=this._tableElement;return!(!t||!n)&&(e?n.outerWidth()-t.width()>0:n.outerHeight()-t.height()>0)}})},"HaE+":function(e,t,n){"use strict";function i(e,t,n,i,r,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,c,"next",e)}function c(e){i(a,r,o,s,c,"throw",e)}s(void 0)})}}n.d(t,"a",function(){return r})},HeEo:function(e,t,n){"use strict";n.d(t,"a",function(){return y});var i=n("c7TG"),r=n("aiMf"),o=n("ptfe"),a=n("hRco"),s=n("fXoL"),c=n("ofXK"),u=n("3Pt+"),l=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},d=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]-1)}}function _(e,t){if(1&e){var n=s.hc();s.gc(0,"div"),s.gc(1,"ion-item"),s.gc(2,"ion-searchbar",11),s.nc("ngModelChange",function(e){return s.Ic(n),s.qc().searchQuery=e}),s.fc(),s.gc(3,"ion-button",12),s.nc("click",function(){return s.Ic(n),s.qc().toggleShowAddComment()}),s.bc(4,"ion-icon",13),s.fc(),s.fc(),s.gc(5,"ion-list",null,14),s.Pc(7,v,2,1,"ng-container",15),s.fc(),s.fc()}if(2&e){var i=s.qc();s.Ob(2),s.wc("ngModel",i.searchQuery),s.Ob(5),s.wc("ngForOf",i.comments)}}var y=function(){function e(e,t,n,i,r){this.modalController=e,this.tasksService=t,this.taskManagerService=n,this.alrtContrl=i,this.popoverCtrl=r,this.specimens=[],this.comments=[],this.hasComment=!1,this.showAddComment=!1,this.specimenCommentTypes=this.taskManagerService.task.specimenCommentTypes,this.specialCommentType="OTHER",this.searchQuery=""}return e.prototype.ngOnInit=function(){console.log(this.specimen),this.showComments()},e.prototype.dismiss=function(){this.modalController.dismiss(),this.slidingList&&this.slidingList.closeSlidingItems()},e.prototype.editComment=function(e){return l(this,void 0,void 0,function(){var t;return d(this,function(n){switch(n.label){case 0:return[4,this.slidingList.closeSlidingItems()];case 1:return n.sent(),[4,this.popoverCtrl.create({component:a.a,componentProps:{comment:e,specimenId:this.specimen.id,location:this.location,bagBarcode:this.specimen.bagBarcode},backdropDismiss:!0,cssClass:"specimen-comment-alert"})];case 2:return[4,(t=n.sent()).present()];case 3:return n.sent(),[4,t.onDidDismiss()];case 4:return n.sent(),this.dismiss(),[2]}})})},e.prototype.deleteComment=function(e,t){return l(this,void 0,void 0,function(){var n=this;return d(this,function(i){switch(i.label){case 0:return[4,this.slidingList.closeSlidingItems()];case 1:return i.sent(),[4,this.alrtContrl.create({header:"Delete Comment",message:"Do you want to delete comment?",buttons:[{text:"Cancel",role:"cancel"},{text:"Ok",handler:function(){return l(n,void 0,void 0,function(){return d(this,function(n){switch(n.label){case 0:return[4,this.tasksService.deleteSpecimenComment(this.specimen.bagBarcode,this.specimen.id,e)];case 1:return n.sent(),this.specimen.comments.splice(t,1),this.dismiss(),[2]}})})}}]})];case 2:return i.sent().present(),[2]}})})},e.prototype.toggleShowAddComment=function(){this.showAddComment=!this.showAddComment,this.commentType="",this.comment=""},e.prototype.saveComment=function(e,t){return l(this,void 0,void 0,function(){var n;return d(this,function(i){switch(i.label){case 0:return[4,this.tasksService.addSpecimenComment(this.specimen.bagBarcode,this.specimen.id,e,t)];case 1:return n=i.sent(),this.toggleShowAddComment(),this.specimen.comments||(this.specimen.comments=[]),this.specimen.comments.push(n),this.dismiss(),[2]}})})},e.prototype.showComments=function(){return l(this,void 0,void 0,function(){return d(this,function(e){return this.specimen&&this.specimen.comments&&(this.comments=this.specimen.comments),[2]})})},e.prototype.checkValue=function(){this.comment=this.comment.trim()},e.\u0275fac=function(t){return new(t||e)(s.ac(i.Gb),s.ac(o.a),s.ac(r.a),s.ac(i.a),s.ac(i.Mb))},e.\u0275cmp=s.Ub({type:e,selectors:[["app-edit-specimen"]],viewQuery:function(e,t){var n;1&e&&s.Xc(h,!0),2&e&&s.Ec(n=s.oc())&&(t.slidingList=n.first)},inputs:{specimen:"specimen"},decls:11,vars:3,consts:[["slot","end",3,"click"],["name","close-circle"],["src","./assets/icon/specimen.png",2,"padding-left","3px","padding-right","3px"],[4,"ngIf"],["placeholder","Select Comment Type","okText","Okay","cancelText","Dismiss",3,"ngModel","interfaceOptions","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["slot","start","name","text"],["placeholder","Enter Comment...","clearOnEdit","true",3,"disabled","ngModel","ionChange","ngModelChange"],["expand","block",3,"disabled","click"],["expand","block",1,"btnDanger",3,"click"],[3,"value"],["placeholder","Search Comments","debounce","300",3,"ngModel","ngModelChange"],["icon-only","","slot","end",3,"click"],["name","add"],["slidingList",""],[4,"ngFor","ngForOf"],["class","slidingItem",4,"ngIf"],[1,"slidingItem"],[1,"w-100"],["size","2",1,"ion-align-self-center"],["src","./assets/icon/person.svg","color","primary","size","large",1,"avatar"],["size","10"],[2,"font-weight","bold"],["no-padding","",2,"margin-bottom","-50px"],["readonly",""],["side","end",3,"ionDrag"],[1,"edit",3,"click"],["name","create"],[1,"delete",3,"click"],["name","trash"]],template:function(e,t){1&e&&(s.gc(0,"ion-header"),s.gc(1,"ion-toolbar"),s.gc(2,"ion-button",0),s.nc("click",function(){return t.dismiss()}),s.bc(3,"ion-icon",1),s.fc(),s.gc(4,"ion-item"),s.bc(5,"ion-img",2),s.gc(6,"ion-label"),s.Rc(7),s.fc(),s.fc(),s.fc(),s.fc(),s.gc(8,"ion-content"),s.Pc(9,g,16,7,"div",3),s.Pc(10,_,8,2,"div",3),s.fc()),2&e&&(s.Ob(7),s.Tc(" Specimen# ",t.specimen.barcode,""),s.Ob(2),s.wc("ngIf",t.showAddComment),s.Ob(1),s.wc("ngIf",!t.showAddComment))},directives:[i.A,i.Bb,i.j,i.B,i.G,i.C,i.M,i.t,c.t,i.mb,i.Pb,u.p,u.s,c.s,i.xb,i.Qb,i.ib,i.s,i.nb,i.jb,i.N,i.L,i.c,i.K],styles:[".item-lines-full[_nghost-%COMP%]{--border-width:0 0 0 0}.slidingItem[_ngcontent-%COMP%]{padding:10px}button[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:10px;margin-right:2px}.edit[_ngcontent-%COMP%]{background-color:#4caf50}.delete[_ngcontent-%COMP%], .edit[_ngcontent-%COMP%]{color:#fff;font-size:1.1em}.delete[_ngcontent-%COMP%]{background-color:red}.avatar[_ngcontent-%COMP%]{border:1px solid #000;border-radius:50%}"]}),e}()},HeVg:function(e,t,n){"use strict";var i,r=n("ti0F"),o=(i=n("FKN7"))&&i.__esModule?i:{default:i},a="dx-sort-index-icon";e.exports={_applyColumnState:function(e){var t,n,i=this,s=i.option("sorting.mode"),c=e.rootElement,u=e.column,l=i._getIndicatorContainer(c);if("sort"===e.name){c.find(".dx-sort").remove(),!l.children().length&&l.remove();var d=("single"===s||"multiple"===s)&&u.allowSorting;return(0,r.isDefined)(u.groupIndex)||!d&&!(0,r.isDefined)(u.sortOrder)||(t="asc"===u.sortOrder?"ascending":"descending",n=i.callBase(e).toggleClass("dx-sort-up","asc"===u.sortOrder).toggleClass("dx-sort-down","desc"===u.sortOrder),i.getController&&!!i.getController("columns").columnOption("sortIndex:1")&&i.option("sorting.showSortIndexes")&&u.sortIndex>=0&&((0,o.default)("").addClass(a).text(u.sortIndex+1).appendTo(n),n.addClass("dx-sort-index")),e.rootElement.addClass(i.addWidgetPrefix("action"))),(0,r.isDefined)(u.sortOrder)?i.setAria("sort",t,c):i.setAria("sort","none",c),n}return i.callBase(e)},_getIndicatorClassName:function(e){return"sort"===e?"dx-sort":"sortIndex"===e?a:this.callBase(e)},_renderIndicator:function(e){var t=e.column,n=e.container,i=e.indicator;if("sort"===e.name){var o=this.option("rtlEnabled");if((0,r.isDefined)(t.sortOrder)||i&&i.addClass("dx-sort-none"),n.children().length&&(!o&&"left"===e.columnAlignment||o&&"right"===e.columnAlignment))return void n.prepend(i)}this.callBase(e)},_updateIndicator:function(e,t,n){if("sort"!==n||!(0,r.isDefined)(t.groupIndex))return this.callBase.apply(this,arguments)},_getIndicatorElements:function(e,t){var n=this.callBase(e);return t?n:n&&n.not(".dx-sort-none")}}},HlXZ:function(e,t,n){"use strict";var i=u(n("D6VQ")),r=u(n("jeLr")),o=n("KAnu"),a=n("1LL4"),s=u(n("zl3R")),c=u(n("cGV2"));function u(e){return e&&e.__esModule?e:{default:e}}var l=u(n("3wDN")).default.inherit({_getDefaultOptions:function(){return(0,a.extend)(this.callBase(),{focusStateEnabled:!1,noDataText:null})},_setOptionsByReference:function(){this.callBase(),(0,a.extend)(this._optionsByReference,{validationGroup:!0})},_init:function(){this.callBase(),this._initGroupRegistration()},_initGroupRegistration:function(){var e=this.$element(),t=this.option("validationGroup")||c.default.findGroup(e,this._modelByElement(e)),n=c.default.addGroup(t);this._unsubscribeGroup(),this._groupWasInit=!0,this._validationGroup=t,this.groupSubscription=this._groupValidationHandler.bind(this),n.on("validated",this.groupSubscription)},_unsubscribeGroup:function(){var e=c.default.getGroupConfig(this._validationGroup);e&&e.off("validated",this.groupSubscription)},_getOrderedItems:function(e,t){var n=[];return s.default.each(e,function(e,i){var r=(0,o.grep)(t,function(e){if(e.validator===i)return!0});r.length&&(n=n.concat(r))}),n},_groupValidationHandler:function(e){var t=this,n=this._getOrderedItems(e.validators,s.default.map(e.brokenRules,function(e){return{text:e.message,validator:e.validator,index:e.index}}));this.validators=e.validators,s.default.each(this.validators,function(e,n){if(n._validationSummary!==t){var i=t._itemValidationHandler.bind(t);n.on("validated",i),n.on("disposing",function(){n.off("validated",i),n._validationSummary=null,i=null}),n._validationSummary=t}}),this.option("items",n)},_itemValidationHandler:function(e){for(var t=e.isValid,n=e.validator,i=e.brokenRules,r=this.option("items"),a=!1,c=0,u=function(){var e=r[c];if(e.validator===n){var s=(0,o.grep)(i||[],function(t){return t.index===e.index})[0];if(t||!s)return r.splice(c,1),a=!0,"continue";s.message!==e.text&&(e.text=s.message,a=!0)}c++};c").addClass("dx-checkbox-container"),this.setAria("role","checkbox"),this.$element().addClass("dx-checkbox"),this._renderValue(),this._renderIcon(),this._renderText(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().append(this._$container),this.callBase()},_render:function(){this._renderClick(),this.callBase()},_renderSubmitElement:function(){this._$submitElement=i("").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:2.5,useHoldAnimation:!1,wavesNumber:2,isCentered:!0})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var r={element:e,event:t,wave:i};n?this._inkRipple.showWave(r):this._inkRipple.hideWave(r)}},_updateFocusState:function(e,t){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,e,t,0)},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,n,t,1)},_renderIcon:function(){this._$icon=i("").addClass("dx-checkbox-icon").prependTo(this._$container)},_renderText:function(){var e=this.option("text");e?(this._$text||(this._$text=i("").addClass("dx-checkbox-text")),this._$text.text(e),this._$container.append(this._$text),this.$element().addClass(h)):this._$text&&(this._$text.remove(),this.$element().removeClass(h))},_renderClick:function(){var e=this,t=l.addNamespace(d.name,e.NAME);e._clickAction=e._createAction(e._clickHandler),r.off(e.$element(),t),r.on(e.$element(),t,function(t){e._clickAction({event:t})})},_clickHandler:function(e){var t=e.component;t._saveValueChangeEvent(e.event),t.option("value",!t.option("value"))},_renderValue:function(){var e=this.$element(),t=this.option("value"),n=void 0===t;e.toggleClass("dx-checkbox-checked",Boolean(t)),e.toggleClass("dx-checkbox-indeterminate",n),this._getSubmitElement().val(t),this.setAria("checked",n?"mixed":t||"false")},_optionChanged:function(e){switch(e.name){case"useInkRipple":this._invalidate();break;case"value":this._renderValue(),this.callBase(e);break;case"text":this._renderText(),this._renderDimensions();break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});u("dxCheckBox",f),e.exports=f,e.exports.default=e.exports},"I+t8":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("9ans"),r=n("c7TG"),o=n("fXoL"),a=function(){function e(e,t){this.authService=e,this.popoverController=t}return e.prototype.ngOnInit=function(){},e.prototype.setStatus=function(e){var t=this.authService.currentUser;t.userStatus.onlineStatus=e,console.log(t),this.authService.currentUser=t,console.log(this.authService.currentUser),this.popoverController.dismiss()},e.\u0275fac=function(t){return new(t||e)(o.ac(i.a),o.ac(r.Mb))},e.\u0275cmp=o.Ub({type:e,selectors:[["app-status-popover"]],decls:19,vars:0,consts:[[3,"click"],["name","checkmark-circle","color","success",2,"padding-right","5px"],["name","checkmark-circle","color","warning",2,"padding-right","5px"],["name","close-circle","color","warning",2,"padding-right","5px"],["name","close-circle","color","danger",2,"padding-right","5px"]],template:function(e,t){1&e&&(o.gc(0,"ion-list"),o.gc(1,"ion-list-header"),o.Rc(2," Select Status: "),o.fc(),o.gc(3,"ion-item",0),o.nc("click",function(){return t.setStatus("online")}),o.bc(4,"ion-icon",1),o.gc(5,"ion-label"),o.Rc(6,"Online"),o.fc(),o.fc(),o.gc(7,"ion-item",0),o.nc("click",function(){return t.setStatus("away")}),o.bc(8,"ion-icon",2),o.gc(9,"ion-label"),o.Rc(10,"Away"),o.fc(),o.fc(),o.gc(11,"ion-item",0),o.nc("click",function(){return t.setStatus("busy")}),o.bc(12,"ion-icon",3),o.gc(13,"ion-label"),o.Rc(14,"Busy"),o.fc(),o.fc(),o.gc(15,"ion-item",0),o.nc("click",function(){return t.setStatus("offline")}),o.bc(16,"ion-icon",4),o.gc(17,"ion-label"),o.Rc(18,"Offline"),o.fc(),o.fc(),o.fc())},directives:[r.N,r.O,r.G,r.B,r.M],styles:[""]}),e}()},I0Qj:function(e,t,n){"use strict";var i=n("+XMB");n("D6VQ")("dxList",i),e.exports=i,e.exports.default=e.exports},I1je:function(e,t,n){"use strict";e.exports=n("MPiI"),e.exports.default=e.exports},I2ZF:function(e,t){for(var n=[],i=0;i<256;++i)n[i]=(i+256).toString(16).substr(1);e.exports=function(e,t){var i=t||0;return[n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]]].join("")}},I55L:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},IBtZ:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(e,t,n){return"\u10d8"===n?t+"\u10e8\u10d8":t+n+"\u10e8\u10d8"})},past:function(e){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(e)?e.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(e)?e.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):e},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(e){return 0===e?e:1===e?e+"-\u10da\u10d8":e<20||e<=100&&e%20==0||e%100==0?"\u10db\u10d4-"+e:e+"-\u10d4"},week:{dow:1,doy:7}})}(n("wd/R"))},IEE5:function(e,t,n){"use strict";var i=n("KAnu").grep,r=n("1LL4").extend,o=n("zl3R").each,a=n("Nxdf"),s=n("IRs2").normalizeSortingInfo;function c(e,t){return e=e.groupBy(t[0].selector),t.length>1&&(e=e.select(function(e){return r({},e,{items:c(a(e.items),t.slice(1)).toArray()})})),e}function u(e,t){var n=[];return o(e,function(e,r){i(t,function(e){return r.selector===e.selector}).length<1&&n.push(r)}),n.concat(t)}e.exports={multiLevelGroup:c,arrangeSortingInfo:u,queryByOptions:function(e,t,n){var i=(t=t||{}).filter;if(i&&(e=e.filter(i)),n)return e;var r=t.sort,a=t.select,l=t.group,d=t.skip,h=t.take;return l&&((l=s(l)).keepInitialKeyOrder=!!t.group.keepInitialKeyOrder),(r||l)&&(r=s(r||[]),l&&!l.keepInitialKeyOrder&&(r=u(l,r)),o(r,function(t){e=e[t?"thenBy":"sortBy"](this.selector,this.desc,this.compare)})),a&&(e=e.select(a)),l&&(e=c(e,l)),(h||d)&&(e=e.slice(d||0,h)),e}}},IF55:function(e,t,n){"use strict";var i=k(n("YQNt")),r=k(n("D6VQ")),o=k(n("LdFP")),a=n("v4HY"),s=k(a),c=k(n("FKN7")),u=n("RG5Y"),l=n("XpgS"),d=k(n("uHaw")),h=n("KAnu"),f=n("1LL4"),p=n("xZEH"),g=n("zl3R"),m=k(n("c44P")),v=n("XgSC"),_=n("ti0F"),y=n("XWmc"),b=k(n("cGv3")),w=k(n("imRD")),C=k(n("XPWh")),O=k(n("uHSv")),S=k(n("+6qP"));function k(e){return e&&e.__esModule?e:{default:e}}var x=b.default.getWindow();n("AQA1");var T="dx-popup-title",E="dx-popup-bottom",I=["cancel","clear","done"],D=d.default.msie&&11===parseInt(d.default.version),M=d.default.safari&&(0,y.compare)(d.default.version,[11])<0,A={static:"",inherit:"dx-popup-inherit-height",flex:"dx-popup-flex-height"},P=O.default.inherit({_getDefaultOptions:function(){return(0,f.extend)(this.callBase(),{fullScreen:!1,title:"",showTitle:!0,titleTemplate:"title",onTitleRendered:null,dragEnabled:!1,toolbarItems:[],showCloseButton:!1,bottomTemplate:"bottom",useDefaultToolbarButtons:!1,useFlatToolbarButtons:!1,autoResizeEnabled:!0})},_defaultOptionsRules:function(){var e=S.default.current();return this.callBase().concat([{device:{platform:"ios"},options:{animation:this._iosAnimation}},{device:{platform:"android"},options:{animation:this._androidAnimation}},{device:{platform:"generic"},options:{showCloseButton:!0}},{device:function(e){return"desktop"===o.default.real().deviceType&&"generic"===e.platform},options:{dragEnabled:!0}},{device:function(){return"desktop"===o.default.real().deviceType&&!o.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return S.default.isMaterial(e)},options:{useDefaultToolbarButtons:!0,useFlatToolbarButtons:!0}}])},_iosAnimation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom"}},to:{position:{my:"center",at:"center"}}},hide:{type:"slide",duration:400,from:{opacity:1,position:{my:"center",at:"center"}},to:{opacity:1,position:{my:"top",at:"bottom"}}}},_androidAnimation:function(){return this.option("fullScreen")?{show:{type:"slide",duration:300,from:{top:"30%",opacity:0},to:{top:0,opacity:1}},hide:{type:"slide",duration:300,from:{top:0,opacity:1},to:{top:"30%",opacity:0}}}:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}}},_init:function(){this.callBase(),this.$element().addClass("dx-popup"),this._wrapper().addClass("dx-popup-wrapper"),this._$popupContent=this._$content.wrapInner((0,c.default)("
").addClass("dx-popup-content")).children().eq(0)},_render:function(){var e=this.option("fullScreen");this._toggleFullScreenClass(e),this.callBase()},_toggleFullScreenClass:function(e){this._$content.toggleClass("dx-popup-fullscreen",e).toggleClass("dx-popup-normal",!e)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new u.EmptyTemplate,bottom:new u.EmptyTemplate})},_renderContentImpl:function(){this._renderTitle(),this.callBase(),this._renderBottom()},_renderTitle:function(){var e=this._getToolbarItems("top"),t=this.option("title"),n=this.option("showTitle");if(n&&t&&e.unshift({location:o.default.current().ios?"center":"before",text:t}),n||e.length>0){this._$title&&this._$title.remove();var i=(0,c.default)("
").addClass(T).insertBefore(this.$content());this._$title=this._renderTemplateByType("titleTemplate",e,i).addClass(T),this._renderDrag(),this._executeTitleRenderAction(this._$title)}else this._$title&&this._$title.detach()},_renderTemplateByType:function(e,t,n,i){var r=this._getTemplateByOption(e);if(r instanceof u.EmptyTemplate){var o=(0,f.extend)({},this.option("integrationOptions"),{skipTemplates:["content","title"]}),s=(0,f.extend)(i,{items:t,rtlEnabled:this.option("rtlEnabled"),useDefaultButtons:this.option("useDefaultToolbarButtons"),useFlatButtons:this.option("useFlatToolbarButtons"),integrationOptions:o});this._getTemplate("dx-polymorph-widget").render({container:n,model:{widget:"dxToolbarBase",options:s}});var l=n.children("div");return n.replaceWith(l),l}var d=(0,c.default)(r.render({container:(0,a.getPublicElement)(n)}));return d.hasClass("dx-template-wrapper")&&(n.replaceWith(d),n=d),n},_executeTitleRenderAction:function(e){this._getTitleRenderAction()({titleElement:(0,a.getPublicElement)(e)})},_getTitleRenderAction:function(){return this._titleRenderAction||this._createTitleRenderAction()},_createTitleRenderAction:function(){return this._titleRenderAction=this._createActionByOption("onTitleRendered",{element:this.element(),excludeValidators:["disabled","readOnly"]})},_getCloseButton:function(){return{toolbar:"top",location:"after",template:this._getCloseButtonRenderer()}},_getCloseButtonRenderer:function(){return(function(e,t,n){var i=(0,c.default)("
").addClass("dx-closebutton");this._createComponent(i,C.default,{icon:"close",onClick:this._createToolbarItemAction(void 0),integrationOptions:{}}),(0,c.default)(n).append(i)}).bind(this)},_getToolbarItems:function(e){var t=this.option("toolbarItems"),n=[];this._toolbarItemClasses=[];var i=o.default.current().platform,r=0;return(0,g.each)(t,(function(t,a){var s=(0,_.isDefined)(a.shortcut),c=s?function(e){var t=o.default.current(),n=t.platform,i="bottom",r="before";if("ios"===n)switch(e){case"cancel":i="top";break;case"clear":i="top",r="after";break;case"done":r="after"}else if("android"===n&&t.version&&parseInt(t.version[0])>4)switch(e){case"cancel":r="after";break;case"done":r="after"}else"android"===n&&(r="center");return{toolbar:i,location:r}}(a.shortcut):a;if(s&&"ios"===i&&r<2&&(c.toolbar="top",r++),c.toolbar=a.toolbar||c.toolbar||"top",c&&c.toolbar===e){s&&(0,f.extend)(c,{location:a.location},this._getToolbarItemByAlias(a));var u="generic"===i;"done"===a.shortcut&&u||"cancel"===a.shortcut&&!u?n.unshift(c):n.push(c)}}).bind(this)),"top"===e&&this.option("showCloseButton")&&this.option("showTitle")&&n.push(this._getCloseButton()),n},_getLocalizationKey:function(e){return"done"===e.toLowerCase()?"OK":(0,p.camelize)(e,!0)},_getToolbarItemByAlias:function(e){var t=this,n=e.shortcut;if((0,l.inArray)(n,I)<0)return!1;var i=(0,f.extend)({text:w.default.format(this._getLocalizationKey(n)),onClick:this._createToolbarItemAction(e.onClick),integrationOptions:{},type:t.option("useDefaultToolbarButtons")?"default":"normal",stylingMode:t.option("useFlatToolbarButtons")?"text":"contained"},e.options||{}),r="dx-popup-"+n;return this._toolbarItemClasses.push(r),{template:function(e,n,o){var a=(0,c.default)("
").addClass(r).appendTo(o);t._createComponent(a,C.default,i)}}},_createToolbarItemAction:function(e){return this._createAction(e,{afterExecute:function(e){e.component.hide()}})},_renderBottom:function(){var e=this._getToolbarItems("bottom");if(e.length){this._$bottom&&this._$bottom.remove();var t=(0,c.default)("
").addClass(E).insertAfter(this.$content());this._$bottom=this._renderTemplateByType("bottomTemplate",e,t,{compactMode:!0}).addClass(E),this._toggleClasses()}else this._$bottom&&this._$bottom.detach()},_toggleClasses:function(){(0,g.each)(I,(function(e,t){var n="dx-popup-"+t;(0,l.inArray)(n,this._toolbarItemClasses)>=0?(this._wrapper().addClass(n+"-visible"),this._$bottom.addClass(n)):(this._wrapper().removeClass(n+"-visible"),this._$bottom.removeClass(n))}).bind(this))},_getContainer:function(){return this.option("fullScreen")?(0,c.default)(x):this.callBase()},_getDragTarget:function(){return this.topToolbar()},_renderGeometryImpl:function(e){e||this._resetContentHeight(),this.callBase.apply(this,arguments),this._setContentHeight()},_resetContentHeight:function(){this._$popupContent.css({height:"auto",maxHeight:"none"})},_renderDrag:function(){this.callBase(),this._$content.toggleClass("dx-popup-draggable",this.option("dragEnabled"))},_renderResize:function(){this.callBase(),this._resizable.option("onResize",(function(){this._setContentHeight(),this._actions.onResize(arguments)}).bind(this))},_setContentHeight:function(){(this.option("forceApplyBindings")||h.noop)();var e=this.overlayContent().get(0),t=this._chooseHeightStrategy(e);this.$content().css(this._getHeightCssStyles(t,e)),this._setHeightClasses(this.overlayContent(),t)},_heightStrategyChangeOffset:function(e,t){return e===A.flex?-t:0},_chooseHeightStrategy:function(e){var t="auto"===e.style.width||""===e.style.width,n=A.static;return this._isAutoHeight()&&this.option("autoResizeEnabled")&&(t||M?D||(n=A.inherit):n=A.flex),n},_getHeightCssStyles:function(e,t){var n={},i=this._getOptionValue("maxHeight",t),r=this._getOptionValue("minHeight",t),o=this._splitPopupHeight(),a=o.header+o.footer+o.contentVerticalOffsets+o.popupVerticalOffsets+this._heightStrategyChangeOffset(e,o.popupVerticalPaddings);if(e===A.static){if(!this._isAutoHeight()||i||r){var s=this.option("fullScreen")?Math.min((0,v.getBoundingRect)(t).height,b.default.getWindow().innerHeight):(0,v.getBoundingRect)(t).height;n={height:Math.max(0,s-a),minHeight:"auto",maxHeight:"auto"}}}else{var u=(0,c.default)(this._getContainer()).get(0),l=m.default.addOffsetToMaxHeight(i,-a,u);n={height:"auto",minHeight:m.default.addOffsetToMinHeight(r,-a,u),maxHeight:l}}return n},_setHeightClasses:function(e,t){var n="";for(var i in A)A[i]!==t&&(n+=" "+A[i]);e.removeClass(n).addClass(t)},_isAutoHeight:function(){return"auto"===this.overlayContent().get(0).style.height},_splitPopupHeight:function(){var e=this.topToolbar(),t=this.bottomToolbar();return{header:m.default.getVisibleHeight(e&&e.get(0)),footer:m.default.getVisibleHeight(t&&t.get(0)),contentVerticalOffsets:m.default.getVerticalOffsets(this.overlayContent().get(0),!0),popupVerticalOffsets:m.default.getVerticalOffsets(this.$content().get(0),!0),popupVerticalPaddings:m.default.getVerticalOffsets(this.$content().get(0),!1)}},_useFixedPosition:function(){return this.callBase()||this.option("fullScreen")},_toggleSafariFullScreen:function(e){this._useFixedPosition()&&e&&!this._isShown?this._bodyScrollTop=e?x.pageYOffset:void 0:this._toggleSafariScrolling(!e)},_renderDimensions:function(){this.option("fullScreen")?this._$content.css({width:"100%",height:"100%"}):this.callBase.apply(this,arguments),b.default.hasWindow()&&this._renderFullscreenWidthClass()},_renderFullscreenWidthClass:function(){this.overlayContent().toggleClass("dx-popup-fullscreen-width",this.overlayContent().outerWidth()===(0,c.default)(x).width())},refreshPosition:function(){this._renderPosition()},_renderPosition:function(){if(!this.option("fullScreen"))return(this.option("forceApplyBindings")||h.noop)(),this.callBase.apply(this,arguments);i.default.move(this._$content,{top:0,left:0})},_optionChanged:function(e){switch(e.name){case"showTitle":case"title":case"titleTemplate":this._renderTitle(),this._renderGeometry();break;case"bottomTemplate":this._renderBottom(),this._renderGeometry();break;case"onTitleRendered":this._createTitleRenderAction(e.value);break;case"toolbarItems":case"useDefaultToolbarButtons":case"useFlatToolbarButtons":var t=!e.fullName.match(/^toolbarItems((\[\d+\])(\.(options|visible).*)?)?$/);this._renderTitle(),this._renderBottom(),t&&this._renderGeometry();break;case"dragEnabled":this._renderDrag();break;case"autoResizeEnabled":this._renderGeometry(),s.default.triggerResizeEvent(this._$content);break;case"fullScreen":this._toggleFullScreenClass(e.value),this._toggleSafariFullScreen(e.value),this._renderGeometry(),s.default.triggerResizeEvent(this._$content);break;case"showCloseButton":this._renderTitle();break;default:this.callBase(e)}},bottomToolbar:function(){return this._$bottom},topToolbar:function(){return this._$title},$content:function(){return this._$popupContent},content:function(){return(0,a.getPublicElement)(this._$popupContent)},overlayContent:function(){return this._$content}});(0,r.default)("dxPopup",P),e.exports=P,e.exports.default=e.exports},IPIx:function(e,t,n){"use strict";var i=o(n("BWGd")),r=o(n("tF6Q"));function o(e){return e&&e.__esModule?e:{default:e}}i.default.registerModule("keyboardNavigation",r.default)},IRs2:function(e,t,n){"use strict";var i=n("ti0F"),r=d(i),o=d(n("tUd6")),a=n("xMpX"),s=n("cGv3"),c=n("zl3R"),u=n("tJvG"),l=n("KAnu");function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);ne?t:e}},avg:{seed:[0,0],step:function(e,t){return[e[0]+t,e[1]+1]},finalize:function(e){return e[1]?e[0]/e[1]:NaN}}},keysEqual:function(e,t,n){if(Array.isArray(e)){for(var i,r=(0,c.map)(t,function(e,t){return t}),o=0;o>6),128+(63&t)):t<65536?i.push(224+(t>>12),128+(t>>6&63),128+(63&t)):t<2097152&&i.push(240+(t>>18),128+(t>>12&63),128+(t>>6&63),128+(63&t));return i}(String(e)));var t="";function n(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)}for(var i=0;i>2,(3&r)<<4|o>>4,isNaN(o)?64:(15&o)<<2|a>>6,isNaN(a)?64:63&a],n).join("")}return t}}},IWKj:function(e,t,n){"use strict";var i=n("1LL4").extend,r=n("ccQb"),o=n("TssP"),a="http://js.devexpress.com/error/"+n("PE2r").split(".").slice(0,2).join("_")+"/";e.exports=function(e,t){var n={ERROR_MESSAGES:i(t,e),Error:function(){return l([].slice.call(arguments))},log:function(e){var t="log";/^E\d+$/.test(e)?t="error":/^W\d+$/.test(e)&&(t="warn"),r.logger[t]("log"===t?e:s([].slice.call(arguments)))}};function s(e){var t=e[0];return u(t,c(t,e=e.slice(1)))}function c(e,t){return t=[n.ERROR_MESSAGES[e]].concat(t),o.format.apply(this,t).replace(/\.*\s*?$/,"")}function u(e,t){return o.format.apply(this,["{0} - {1}. See:\n{2}",e,t,d(e)])}function l(e){var t=e[0],n=c(t,e=e.slice(1)),r=d(t),o=u(t,n);return i(new Error(o),{__id:t,__details:n,url:r})}function d(e){return a+e}return n}},IbXD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=(i=n("/7L9"))&&i.__esModule?i:{default:i};t.default=function e(t,n){if(!n)throw r.default.Error("E0017");return Array.isArray(t)?t.map(function(t){return e(t,n)}).join(" "):-1!==t.indexOf(" ")?e(t.split(/\s+/g),n):"".concat(t,".").concat(n)}},Ibf7:function(e,t,n){"use strict";var i=n("Gjsa");e.exports=function(e,t,n){e&&i(function(){e.apply(n||null,t||[])})}},IjjT:function(e,t,n){"use strict";n.d(t,"a",function(){return d});var i=n("1OyB"),r=n("vuIU"),o=n("JX7q"),a=n("ReuC"),s=n("foSv"),c=n("Ji7U"),u=n("LK+K"),l=n("Y/cZ"),d=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.a.now;return Object(i.a)(this,n),(r=t.call(this,e,function(){return n.delegate&&n.delegate!==Object(o.a)(r)?n.delegate.now():a()})).actions=[],r.active=!1,r.scheduled=void 0,r}return Object(r.a)(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):Object(a.a)(Object(s.a)(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(l.a)},IlOo:function(e,t,n){"use strict";var i=n("ti0F"),r=l(n("2Fn2")),o=l(n("0osO")),a=n("1LL4"),s=n("YyLj"),c=l(n("3RoI")),u=n("IRs2");function l(e){return e&&e.__esModule?e:{default:e}}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t,n,i){var r;if(i){for(var o=0;o=0)return t}function f(e,t,n,i){return i?h(e,t,n,i)||[]:t}function p(e,t,n,i,o){var a,l=e.key();if(l){if(function(e,t){for(var n="string"==typeof t?t.split():t.slice();n.length;)if(n.shift()in e)return!0;return!1}(i,l)&&!(0,u.keysEqual)(l,n,e.keyOf(i)))return!o&&(0,u.rejectedPromise)(s.errors.Error("E4017"));if(!(a=function(e,t){if(e._dataByKeyMap)return e._dataByKeyMap[JSON.stringify(t)]}(t,n))){var d=v(e,t,n);if(d<0)return!o&&(0,u.rejectedPromise)(s.errors.Error("E4009"));a=t[d]}}else a=n;if(c.default.deepExtendArraySafe(a,i,!0),!o)return(0,r.default)().useLegacyStoreResult?(0,u.trivialPromise)(n,i):(0,u.trivialPromise)(a,n)}function g(e,t,n,c,l){var h,f=e.key(),p=(0,i.isPlainObject)(n)?(0,a.extend)({},n):n;if(f){if(void 0===(h=e.keyOf(p))||"object"===d(h)&&(0,i.isEmptyObject)(h)){if(Array.isArray(f))throw s.errors.Error("E4007");h=p[f]=String(new o.default)}else if(void 0!==t[v(e,t,h)])return!l&&(0,u.rejectedPromise)(s.errors.Error("E4008"))}else h=p;if(c>=0?t.splice(c,0,p):t.push(p),function(e,t,n){e._dataByKeyMap&&(e._dataByKeyMap[JSON.stringify(t)]=n)}(t,h,p),!l)return(0,u.trivialPromise)((0,r.default)().useLegacyStoreResult?n:p,h)}function m(e,t,n,i){var r=v(e,t,n);if(r>-1&&t.splice(r,1),!i)return(0,u.trivialPromise)(n)}function v(e,t,n){var i=e.key();if(!function(e,t){return!e._dataByKeyMap||e._dataByKeyMap[JSON.stringify(t)]}(t,n))return-1;for(var r=0,o=t.length;r0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0}},{key:"_hasOnSaveItem",value:function(){return this.canSaveItem&&this.onSaveItem.observers.length>0}},{key:"_hasOnAddItem",value:function(){return this.canAddItem&&this.onAddItem.observers.length>0}},{key:"_hasOnDeleteItem",value:function(){return this.canDeleteItem&&this.onDeleteItem.observers.length>0}},{key:"_emitValueChange",value:function(){this.propagateOnChange(this.value),this.onChange.emit({component:this,value:this.value})}},{key:"_emitSearch",value:function(){this.canSearch&&this.onSearch.emit({component:this,text:this._searchText})}},{key:"_emitOnSelect",value:function(e,t){this.onSelect.emit({component:this,item:e,isSelected:t})}},{key:"_emitOnClear",value:function(e){this.onClear.emit({component:this,items:e})}},{key:"_emitOnSearchSuccessOrFail",value:function(e){var t={component:this,text:this._searchText};e?this.onSearchSuccess.emit(t):this.onSearchFail.emit(t)}},{key:"_formatItem",value:function(e){return this._isNullOrWhiteSpace(e)?null:this.itemTextField?e[this.itemTextField]:e.toString()}},{key:"_formatValueItem",value:function(e){var t=this;if(this._shouldStoreItemValue){var n=this.items.find(function(n){return n[t.itemValueField]===e});return this._formatItem(n)}return this._formatItem(e)}},{key:"_getItemValue",value:function(e){return this._hasObjects?e[this.itemValueField]:e}},{key:"_getStoredItemValue",value:function(e){return this._hasObjects?this._shouldStoreItemValue?e:e[this.itemValueField]:e}},{key:"_onSearchbarClear",value:function(){this._searchText=""}},{key:"_filterItems",value:function(){var e=this;if(this._setHasSearchText(),this._hasOnSearch())this._emitSearch();else{var t=[];if(this._searchText&&this._searchText.trim()){var n=this._searchText.trim().toLowerCase();this._groups.forEach(function(i){var r=i.items.filter(function(t){return-1!==(e.itemTextField?t[e.itemTextField]:t).toString().toLowerCase().indexOf(n)});r.length&&t.push({value:i.value,text:i.text,items:r})}),t.length||t.push({items:[]})}else t=this._groups;this._filteredGroups=t,this._hasFilteredItems=!this._areGroupsEmpty(t),this._emitOnSearchSuccessOrFail(this._hasFilteredItems)}}},{key:"_isItemDisabled",value:function(e){var t=this;if(this.disabledItems)return this.disabledItems.some(function(n){return t._getItemValue(n)===t._getItemValue(e)})}},{key:"_isItemSelected",value:function(e){var t=this;return void 0!==this._selectedItems.find(function(n){return t._getItemValue(e)===t._getStoredItemValue(n)})}},{key:"_addSelectedItem",value:function(e){this._selectedItems.push(this._shouldStoreItemValue?this._getItemValue(e):e)}},{key:"_deleteSelectedItem",value:function(e){var t,n=this;this._selectedItems.forEach(function(i,r){n._getItemValue(e)===n._getStoredItemValue(i)&&(t=r)}),this._selectedItems.splice(t,1)}},{key:"_click",value:function(){var e=this;this.isEnabled&&(this._label=this._getLabelText(),this.open().then(function(){e.onOpen.emit({component:e})}))}},{key:"_saveItem",value:function(e,t){e.stopPropagation(),this._itemToAdd=t,this._hasOnSaveItem()?this.onSaveItem.emit({component:this,item:this._itemToAdd}):this.showAddItemTemplate()}},{key:"_deleteItemClick",value:function(e,t){e.stopPropagation(),this._itemToAdd=t,this._hasOnDeleteItem()?this.onDeleteItem.emit({component:this,item:this._itemToAdd}):this.deleteItem(this._itemToAdd)}},{key:"_addItemClick",value:function(){this._hasOnAddItem()?this.onAddItem.emit({component:this}):this.showAddItemTemplate()}},{key:"_positionAddItemTemplate",value:function(){var e=this;setTimeout(function(){var t=e._modalComponent._element.nativeElement.querySelector(".ionic-selectable-add-item-template ion-footer");e._addItemTemplateFooterHeight=t?"calc(100% - ".concat(t.offsetHeight,"px)"):"100%"},100)}},{key:"_close",value:function(){var e=this;this.close().then(function(){e.onClose.emit({component:e})}),this._hasOnSearch()||(this._searchText="",this._setHasSearchText())}},{key:"_clear",value:function(){var e=this,t=this._selectedItems;this.clear(),this._emitValueChange(),this._emitOnClear(t),this.close().then(function(){e.onClose.emit({component:e})})}},{key:"_getMoreItems",value:function(){this.onInfiniteScroll.emit({component:this,text:this._searchText})}},{key:"_setItemsToConfirm",value:function(e){this._itemsToConfirm=[].concat(e)}},{key:"_doSelect",value:function(e){this.value=e,this._emitValueChange()}},{key:"_select",value:function(e){var t=this._isItemSelected(e);this.isMultiple?(t?this._deleteSelectedItem(e):this._addSelectedItem(e),this._setItemsToConfirm(this._selectedItems),this._emitOnSelect(e,!t)):this.hasConfirmButton||this.footerTemplate?(this._selectedItems=[],t?this._deleteSelectedItem(e):this._addSelectedItem(e),this._setItemsToConfirm(this._selectedItems),this._emitOnSelect(e,!t)):(t||(this._selectedItems=[],this._addSelectedItem(e),this._emitOnSelect(e,!0),this._doSelect(this._shouldStoreItemValue?this._getItemValue(e):e)),this._close())}},{key:"_confirm",value:function(){this.confirm(),this._close()}},{key:"_getLabelText",value:function(){return this._ionLabelElement?this._ionLabelElement.textContent:null}},{key:"_areGroupsEmpty",value:function(e){return 0===e.length||e.every(function(e){return!e.items||0===e.items.length})}},{key:"_countFooterButtons",value:function(){var e=0;this.canClear&&e++,(this.isMultiple||this._hasConfirmButton)&&e++,this.canAddItem&&e++,this._footerButtonsCount=e}},{key:"_setItems",value:function(e){var t=this,n=[{items:e||[]}];e&&e.length&&this._hasGroups&&(n=[],e.forEach(function(e){var i=t._getPropertyValue(e,t.groupValueField),r=n.find(function(e){return e.value===i});r?r.items.push(e):n.push({value:i,text:t._getPropertyValue(e,t.groupTextField),items:[e]})})),this._groups=n,this._filteredGroups=this._groups,this._hasFilteredItems=!this._areGroupsEmpty(this._filteredGroups)}},{key:"_getPropertyValue",value:function(e,t){return t?t.split(".").reduce(function(e,t){return e?e[t]:null},e):null}},{key:"_setIonItemHasFocus",value:function(e){this.ionItem&&this._setIonItemCssClass("item-has-focus",e)}},{key:"_setIonItemHasValue",value:function(){this.ionItem&&this._setIonItemCssClass("item-has-value",this.hasValue())}},{key:"_setHasPlaceholder",value:function(){this._hasPlaceholder=!(this.hasValue()||this._isNullOrWhiteSpace(this.placeholder)&&!this.placeholderTemplate)}},{key:"_setIonItemCssClass",value:function(e,t){this._ionItemElement&&(t?this._renderer.addClass(this._ionItemElement,e):this._renderer.removeClass(this._ionItemElement,e))}},{key:"_toggleAddItemTemplate",value:function(e){this.addItemTemplate&&(this._isAddItemTemplateVisible=e,this._isFooterVisible=!e)}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this.propagateOnChange=e}},{key:"registerOnTouched",value:function(e){this.propagateOnTouched=e}},{key:"setDisabledState",value:function(e){this.isEnabled=!e}},{key:"ngOnInit",value:function(){this._isIos=this._platform.is("ios"),this._isMD=!this._isIos,this._hasObjects=!this._isNullOrWhiteSpace(this.itemValueField),this._hasGroups=Boolean(this._hasObjects&&this.groupValueField&&!this.hasVirtualScroll),this.ionItem&&(this._ionItemElement=this._element.nativeElement.closest("ion-item"),this._setIonItemCssClass("item-interactive",!0),this._setIonItemCssClass("item-ionic-selectable",!0),this._ionItemElement&&(this._ionLabelElement=this._ionItemElement.querySelector("ion-label"),this._ionLabelElement&&(this._hasIonLabel=!0,this._ionLabelPosition=this._ionLabelElement.getAttribute("position")||"default"))),this.enableIonItem(this.isEnabled)}},{key:"ngDoCheck",value:function(){this._itemsDiffer.diff(this.items)&&(this._setItems(this.items),this.value=this.value,this.onItemsChange.emit({component:this}))}},{key:"addItem",value:function(e){var t=this;return this.items.unshift(e),this._addItemObservable&&this._addItemObservable.unsubscribe(),new Promise(function(e,n){t._addItemObservable=t.onItemsChange.asObservable().subscribe(function(){t._addItemObservable.unsubscribe(),e()},function(){t._addItemObservable.unsubscribe(),n()})})}},{key:"deleteItem",value:function(e){var t=this,n=this,i=!1;if(this._selectedItems&&(this._selectedItems=this._selectedItems.filter(function(n){return t._getItemValue(e)!==t._getStoredItemValue(n)})),this.value)if(this.isMultiple){var r=this.value.filter(function(t){return t.id!==e.id});r.length!==this.value.length&&(this.value=r,i=!0)}else e===this.value&&(this.value=null,i=!0);i&&this._emitValueChange();var o=this.items.filter(function(t){return t.id!==e.id});return this.itemsChange.emit(o),this._setItems(o),this.onItemsChange.emit({component:this}),this._deleteItemObservable&&this._deleteItemObservable.unsubscribe(),new Promise(function(e,t){n._deleteItemObservable=n.onItemsChange.asObservable().subscribe(function(){n._deleteItemObservable.unsubscribe(),e()},function(){n._deleteItemObservable.unsubscribe(),t()})})}},{key:"hasValue",value:function(){return this.isMultiple?0!==this._valueItems.length:0!==this._valueItems.length&&!this._isNullOrWhiteSpace(this._valueItems[0])}},{key:"open",value:function(){var e=this;return new Promise(function(t,n){if(e._isEnabled&&!e._isOpened){e._filterItems(),e._isOpened=!0;var i={component:_.a,componentProps:{selectComponent:e},backdropDismiss:e._shouldBackdropClose};e.modalCssClass&&(i.cssClass=e.modalCssClass),e.modalEnterAnimation&&(i.enterAnimation=e.modalEnterAnimation),e.modalLeaveAnimation&&(i.leaveAnimation=e.modalLeaveAnimation),e._modalController.create(i).then(function(n){e._modal=n,n.present().then(function(){e._setIonItemHasFocus(!0),t()}),n.onWillDismiss().then(function(){e._setIonItemHasFocus(!1)}),n.onDidDismiss().then(function(t){e._isOpened=!1,e._itemsToConfirm=[],"backdrop"===t.role&&e.onClose.emit({component:e})})})}else n("IonicSelectable is disabled or already opened.")})}},{key:"close",value:function(){var e=this;return new Promise(function(t,n){e._isEnabled&&e._isOpened?(e.propagateOnTouched(),e._isOpened=!1,e._itemToAdd=null,e._modal.dismiss().then(function(){e._setIonItemHasFocus(!1),e.hideAddItemTemplate(),t()})):n("IonicSelectable is disabled or already closed.")})}},{key:"clear",value:function(){this.value=this.isMultiple?[]:null,this._itemsToConfirm=[],this.propagateOnChange(this.value)}},{key:"confirm",value:function(){this.isMultiple?this._doSelect(this._selectedItems):(this.hasConfirmButton||this.footerTemplate)&&this._doSelect(this._selectedItems[0]||null)}},{key:"toggleItems",value:function(e,t){var n=this;if(e){var i=t&&t.length,r=this._groups.reduce(function(e,t){return e.concat(t.items)},[]);this.isMultiple||i||(r=[]),i&&(r=r.filter(function(e){return void 0!==t.find(function(t){return n._getItemValue(e)===n._getItemValue(t)})}),this.isMultiple||r.splice(0,1)),r.forEach(function(e){n._addSelectedItem(e)})}else this._selectedItems=[];this._setItemsToConfirm(this._selectedItems)}},{key:"scrollToTop",value:function(){var e=this;return new Promise(function(t,n){e._isOpened?e._modalComponent._content.scrollToTop().then(function(){t()}):n("IonicSelectable content cannot be scrolled.")})}},{key:"scrollToBottom",value:function(){var e=this;return new Promise(function(t,n){e._isOpened?e._modalComponent._content.scrollToBottom().then(function(){t()}):n("IonicSelectable content cannot be scrolled.")})}},{key:"startSearch",value:function(){this._isEnabled&&this.showLoading()}},{key:"endSearch",value:function(){this._isEnabled&&(this.hideLoading(),this._setItems(this.items),this._emitOnSearchSuccessOrFail(this._hasFilteredItems))}},{key:"enableInfiniteScroll",value:function(){this._hasInfiniteScroll&&(this._modalComponent._infiniteScroll.disabled=!1)}},{key:"disableInfiniteScroll",value:function(){this._hasInfiniteScroll&&(this._modalComponent._infiniteScroll.disabled=!0)}},{key:"endInfiniteScroll",value:function(){this._hasInfiniteScroll&&(this._modalComponent._infiniteScroll.complete(),this._setItems(this.items))}},{key:"search",value:function(e){this._isEnabled&&this._isOpened&&this.canSearch&&(this._searchText=e,this._setHasSearchText(),this._filterItems())}},{key:"showLoading",value:function(){this._isEnabled&&(this._isSearching=!0)}},{key:"hideLoading",value:function(){this._isEnabled&&(this._isSearching=!1)}},{key:"showAddItemTemplate",value:function(){this._toggleAddItemTemplate(!0),this._positionAddItemTemplate()}},{key:"hideAddItemTemplate",value:function(){this._itemToAdd=null,this._toggleAddItemTemplate(!1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.ac(s.Gb),o.ac(s.Lb),o.ac(s.G,8),o.ac(o.B),o.ac(o.q),o.ac(o.O))},e.\u0275cmp=o.Ub({type:e,selectors:[["ionic-selectable"]],contentQueries:function(e,t,n){var i;1&e&&(o.Tb(n,C.a,!0,o.V),o.Tb(n,m.a,!0,o.V),o.Tb(n,p.a,!0,o.V),o.Tb(n,w.a,!0,o.V),o.Tb(n,y.a,!0,o.V),o.Tb(n,v.a,!0,o.V),o.Tb(n,h.a,!0,o.V),o.Tb(n,d.a,!0,o.V),o.Tb(n,u.a,!0,o.V),o.Tb(n,b.a,!0,o.V),o.Tb(n,c.a,!0,o.V),o.Tb(n,l.a,!0,o.V),o.Tb(n,f.a,!0,o.V),o.Tb(n,g.a,!0,o.V),o.Tb(n,O.a,!0,o.V)),2&e&&(o.Ec(i=o.oc())&&(t.valueTemplate=i.first),o.Ec(i=o.oc())&&(t.itemTemplate=i.first),o.Ec(i=o.oc())&&(t.itemEndTemplate=i.first),o.Ec(i=o.oc())&&(t.titleTemplate=i.first),o.Ec(i=o.oc())&&(t.placeholderTemplate=i.first),o.Ec(i=o.oc())&&(t.messageTemplate=i.first),o.Ec(i=o.oc())&&(t.groupTemplate=i.first),o.Ec(i=o.oc())&&(t.groupEndTemplate=i.first),o.Ec(i=o.oc())&&(t.closeButtonTemplate=i.first),o.Ec(i=o.oc())&&(t.searchFailTemplate=i.first),o.Ec(i=o.oc())&&(t.addItemTemplate=i.first),o.Ec(i=o.oc())&&(t.footerTemplate=i.first),o.Ec(i=o.oc())&&(t.headerTemplate=i.first),o.Ec(i=o.oc())&&(t.itemIconTemplate=i.first),o.Ec(i=o.oc())&&(t.iconTemplate=i.first))},hostVars:26,hostBindings:function(e,t){2&e&&o.Sb("ionic-selectable",t._cssClass)("ionic-selectable-is-multiple",t._isMultipleCssClass)("ionic-selectable-has-value",t._hasValueCssClass)("ionic-selectable-has-placeholder",t._hasPlaceholderCssClass)("ionic-selectable-has-label",t._hasIonLabelCssClass)("ionic-selectable-label-default",t._hasDefaultIonLabelCssClass)("ionic-selectable-label-fixed",t._hasFixedIonLabelCssClass)("ionic-selectable-label-stacked",t._hasStackedIonLabelCssClass)("ionic-selectable-label-floating",t._hasFloatingIonLabelCssClass)("ionic-selectable-is-enabled",t.isEnabled)("ionic-selectable-can-clear",t.canClear)("ionic-selectable-ios",t._isIos)("ionic-selectable-md",t._isMD)},inputs:{items:"items",modalCssClass:"modalCssClass",modalEnterAnimation:"modalEnterAnimation",modalLeaveAnimation:"modalLeaveAnimation",isConfirmButtonEnabled:"isConfirmButtonEnabled",itemValueField:"itemValueField",itemTextField:"itemTextField",groupValueField:"groupValueField",groupTextField:"groupTextField",canSearch:"canSearch",hasInfiniteScroll:"hasInfiniteScroll",hasVirtualScroll:"hasVirtualScroll",virtualScrollApproxItemHeight:"virtualScrollApproxItemHeight",searchPlaceholder:"searchPlaceholder",placeholder:"placeholder",searchFailText:"searchFailText",clearButtonText:"clearButtonText",addButtonText:"addButtonText",confirmButtonText:"confirmButtonText",closeButtonText:"closeButtonText",shouldFocusSearchbar:"shouldFocusSearchbar",headerColor:"headerColor",groupColor:"groupColor",closeButtonSlot:"closeButtonSlot",itemIconSlot:"itemIconSlot",searchDebounce:"searchDebounce",disabledItems:"disabledItems",shouldStoreItemValue:"shouldStoreItemValue",canSaveItem:"canSaveItem",canDeleteItem:"canDeleteItem",virtualScrollHeaderFn:"virtualScrollHeaderFn",isEnabled:"isEnabled",shouldBackdropClose:"shouldBackdropClose",hasConfirmButton:"hasConfirmButton",isOnSearchEnabled:"isOnSearchEnabled",canClear:"canClear",isMultiple:"isMultiple",canAddItem:"canAddItem"},outputs:{itemsChange:"itemsChange",onChange:"onChange",onSearch:"onSearch",onSearchFail:"onSearchFail",onSearchSuccess:"onSearchSuccess",onInfiniteScroll:"onInfiniteScroll",onOpen:"onOpen",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onSaveItem:"onSaveItem",onDeleteItem:"onDeleteItem",onAddItem:"onAddItem"},features:[o.Nb([{provide:a.o,useExisting:Object(o.hb)(function(){return e}),multi:!0}])],decls:11,vars:9,consts:[[1,"ionic-selectable-inner"],[1,"ionic-selectable-value"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["class","ionic-selectable-value-item",4,"ngIf"],[4,"ngIf"],["class","ionic-selectable-icon-template",4,"ngIf"],["class","ionic-selectable-icon",4,"ngIf"],["type","button",1,"ionic-selectable-cover",3,"disabled","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ionic-selectable-value-item"],["class","ionic-selectable-value-item",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],[1,"ionic-selectable-icon-template"],[1,"ionic-selectable-icon"],[1,"ionic-selectable-icon-inner"]],template:function(e,t){1&e&&(o.gc(0,"div",0),o.gc(1,"div",1),o.Pc(2,x,1,4,"div",2),o.Pc(3,T,2,4,"div",3),o.Pc(4,I,2,1,"span",4),o.Pc(5,D,2,1,"div",3),o.Pc(6,M,2,1,"div",3),o.Pc(7,A,2,0,"span",4),o.fc(),o.Pc(8,P,2,1,"div",5),o.Pc(9,L,2,0,"div",6),o.gc(10,"button",7),o.nc("click",function(){return t._click()}),o.fc(),o.fc()),2&e&&(o.Ob(2),o.wc("ngIf",t.valueTemplate&&t._valueItems.length&&t.isMultiple),o.Ob(1),o.wc("ngIf",t.valueTemplate&&t._valueItems.length&&!t.isMultiple),o.Ob(1),o.wc("ngIf",!t.valueTemplate&&t._valueItems.length),o.Ob(1),o.wc("ngIf",t._hasPlaceholder&&t.placeholderTemplate),o.Ob(1),o.wc("ngIf",t._hasPlaceholder&&!t.placeholderTemplate),o.Ob(1),o.wc("ngIf",!t._valueItems.length&&!t._hasPlaceholder),o.Ob(1),o.wc("ngIf",t.iconTemplate),o.Ob(1),o.wc("ngIf",!t.iconTemplate),o.Ob(1),o.wc("disabled",!t.isEnabled))},directives:[S.t,S.A,S.s],styles:[".item-ionic-selectable .item-inner .input-wrapper{align-items:normal}.item-ionic-selectable ion-label{flex:1;max-width:initial}.ionic-selectable{display:block;max-width:45%}.ionic-selectable-inner{display:flex;flex-wrap:wrap;flex-direction:row;justify-content:flex-end}.ionic-selectable-has-placeholder .ionic-selectable-value-item{color:var(--placeholder-color,#999)}.ionic-selectable-value{flex:1;padding-top:13px;padding-bottom:13px;overflow:hidden}.ionic-selectable-value-item{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ionic-selectable-value-item:not(:last-child){margin-bottom:5px}.ionic-selectable-icon{position:relative;width:20px}.ionic-selectable-icon-inner{position:absolute;top:20px;left:5px;border-top:5px solid;border-right:5px solid transparent;border-left:5px solid transparent;pointer-events:none;color:var(--icon-color,#999)}.ionic-selectable-icon-template{-ms-grid-row-align:center;align-self:center;margin-left:5px}.ionic-selectable-ios .ionic-selectable-value{padding-top:11px;padding-bottom:11px}.ionic-selectable-ios .ionic-selectable-icon-inner{top:19px}.ionic-selectable-spinner{position:fixed;bottom:0;top:0;left:0;right:0;z-index:1}.ionic-selectable-spinner-background{top:0;bottom:0;left:0;right:0;position:absolute;background-color:#000;opacity:.05}.ionic-selectable-spinner ion-spinner{position:absolute;top:50%;left:50%;z-index:10;margin-top:-14px;margin-left:-14px}.ionic-selectable-cover{left:0;top:0;margin:0;position:absolute;width:100%;height:100%;border:0;background:0 0;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0}.ionic-selectable-add-item-template{position:fixed;bottom:0;left:0;right:0;background-color:#fff}.ionic-selectable-add-item-template-inner{overflow-y:auto}.ionic-selectable-add-item-template-inner>ion-footer{bottom:0;position:absolute}.ionic-selectable:not(.ionic-selectable-has-label){max-width:100%;width:100%}.ionic-selectable:not(.ionic-selectable-has-label)-value-item{text-align:right}.ionic-selectable-label-floating,.ionic-selectable-label-stacked{-ms-grid-row-align:stretch;align-self:stretch;max-width:100%;padding-left:0;padding-top:8px;padding-bottom:8px}.ionic-selectable-label-floating .ionic-selectable-value,.ionic-selectable-label-stacked .ionic-selectable-value{padding-top:0;padding-bottom:0;min-height:19px}.ionic-selectable-label-floating .ionic-selectable-icon-inner,.ionic-selectable-label-stacked .ionic-selectable-icon-inner{top:7px}.ionic-selectable-label-floating.ionic-selectable-ios .ionic-selectable-value,.ionic-selectable-label-stacked.ionic-selectable-ios .ionic-selectable-value{padding-top:0;padding-bottom:0;min-height:20px}.ionic-selectable-label-floating.ionic-selectable-ios .ionic-selectable-icon-inner,.ionic-selectable-label-stacked.ionic-selectable-ios .ionic-selectable-icon-inner{top:8px}.ionic-selectable-label-default .ionic-selectable-value,.ionic-selectable-label-fixed .ionic-selectable-value{padding-left:var(--padding-start,16px)}.ionic-selectable-label-fixed:not(.ionic-selectable-has-value) .ionic-selectable-value{padding-left:calc(var(--padding-start,$padding) + 11px)}.ionic-selectable-modal .ionic-selectable-group ion-item-divider{padding-right:16px}.ionic-selectable-modal .ionic-selectable-item-button{margin-left:8px;margin-right:8px}.ionic-selectable-modal-ios .ionic-selectable-message{padding:8px}.ionic-selectable-modal-ios .ionic-selectable-group ion-item-divider{padding-right:8px}.ionic-selectable-modal-md .ionic-selectable-message{padding:8px 12px}.ionic-selectable-modal.ionic-selectable-modal-can-clear.ionic-selectable-modal-is-multiple .footer .col:first-child{padding-right:8px}.ionic-selectable-modal.ionic-selectable-modal-can-clear.ionic-selectable-modal-is-multiple .footer .col:last-child{padding-left:8px}.ionic-selectable-modal.ionic-selectable-modal-is-add-item-template-visible>.content>.scroll-content,.ionic-selectable-modal.ionic-selectable-modal-is-searching .scroll-content{overflow-y:hidden}.ionic-selectable-modal ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top,0)}"],encapsulation:2}),e}()},JpqT:function(e,t,n){"use strict";var i=d(n("FKN7")),r=d(n("jeLr")),o=d(n("HZnW")),a=d(n("imRD")),s=n("ti0F"),c=n("zl3R"),u=n("1LL4"),l=n("WWN2");function d(e){return e&&e.__esModule?e:{default:e}}var h="text-content",f="headers",p="nowrap",g="dx-text-content-alignment-",m="dx-header-multi-row";e.exports={defaultOptions:function(){return{showColumnHeaders:!0,cellHintEnabled:!0}},views:{columnHeadersView:o.default.ColumnsView.inherit(function(){var e=function(e,n,r){var o=(0,i.default)("
").addClass(e.addWidgetPrefix(h));e.setAria("role","presentation",o),t(e,n,r.column,o);var a=e.option("showColumnLines"),s=e.getController("columns").getHeaderContentAlignment(r.column.alignment);return o[a||"right"===s?"appendTo":"prependTo"](n)};function t(e,t,n,i){var r=e._getIndicatorElements(t,!0),o=e._getIndicatorElements(t),a=r&&r.length,s=e._getColumnAlignment(n.alignment),c=".".concat(e._getIndicatorClassName("sort")),u=".".concat(e._getIndicatorClassName("sortIndex")),l=o.filter(c),d=o.children().filter(u);(i=i||t.children("."+e.addWidgetPrefix(h))).toggleClass(g+s,a>0).toggleClass(g+("left"===s?"right":"left"),a>0&&"center"===n.alignment).toggleClass("dx-sort-indicator",!!l.length).toggleClass("dx-sort-index-indicator",!!d.length).toggleClass("dx-header-filter-indicator",!!o.filter("."+e._getIndicatorClassName("headerFilter")).length)}return{_createTable:function(){var e=this.callBase.apply(this,arguments);return r.default.on(e,"mousedown selectstart",this.createAction(function(e){var t=e.event;t.shiftKey&&t.preventDefault()})),e},_isLegacyKeyboardNavigation:function(){return this.option("useLegacyKeyboardNavigation")},_getDefaultTemplate:function(t){var n=this;return function(i,r){var o=t.command?i:e(n,i,r),a="expand"!==t.command&&t.caption;a?o.text(a):t.command&&i.html(" ")}},_getHeaderTemplate:function(e){return e.headerCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(e)}},_processTemplate:function(t,n){var i=this,r=n.column,o=i.callBase(t);return"header"===n.rowType&&o&&r.headerCellTemplate&&!r.command?{render:function(t){var n=e(i,t.container,t.model);o.render((0,u.extend)({},t,{container:n}))}}:o},_handleDataChanged:function(e){"refresh"===e.changeType&&(this._isGroupingChanged||this._requireReady)&&(this._isGroupingChanged=!1,this.render())},_renderCell:function(e,t){var n=this.callBase(e,t);return"header"===t.row.rowType&&(n.addClass("dx-cell-focus-disabled"),this._isLegacyKeyboardNavigation()||t.column&&!t.column.type&&n.attr("tabindex",this.option("tabindex")||0)),n},_setCellAriaAttributes:function(e,t){this.callBase(e,t),"header"===t.rowType&&(this.setAria("role","columnheader",e),!t.column||t.column.command||t.column.isBand||(e.attr("id",t.column.headerId),this.setAria("label",a.default.format("dxDataGrid-ariaColumn")+" "+t.column.caption,e)))},_createRow:function(e){var t=this.callBase(e).toggleClass("dx-column-lines",this.option("showColumnLines"));return"header"===e.rowType&&(t.addClass("dx-header-row"),this._isLegacyKeyboardNavigation()||(0,l.registerKeyboardAction)("columnHeaders",this,t,"td",this._handleActionKeyDown.bind(this))),t},_handleActionKeyDown:function(e){var t=e.event,n=(0,i.default)(t.target);if(this._lastActionElement=t.target,n.is(".dx-header-filter")){var r=this.getController("headerFilter"),o=n.closest("td"),a=this.getColumnIndexByElement(o);a>=0&&r.showHeaderFilterMenu(a,!1)}else{var s=n.closest(".dx-row");this._processHeaderAction(t,s)}t.preventDefault()},_renderCore:function(){var e=this,t=e.element();(!e._tableElement||e._dataController.isLoaded()||e._hasRowElements)&&(t.addClass(e.addWidgetPrefix(f)).toggleClass(e.addWidgetPrefix(p),!e.option("wordWrapEnabled")).empty(),e.setAria("role","presentation",t),e._updateContent(e._renderTable()),e.getRowCount()>1&&t.addClass(m),e.callBase.apply(e,arguments))},_renderRows:function(){var e=this;(e._dataController.isLoaded()||e._hasRowElements)&&(e.callBase.apply(e,arguments),e._hasRowElements=!0)},_getRowVisibleColumns:function(e){return this._columnsController.getVisibleColumns(e)},_renderRow:function(e,t){t.columns=this._getRowVisibleColumns(t.row.rowIndex),this.callBase(e,t)},_createCell:function(e){var t=e.column,n=this.callBase.apply(this,arguments);return t.rowspan>1&&"header"===e.rowType&&n.attr("rowSpan",t.rowspan),n},_getRows:function(){var e=[],t=this.getRowCount();if(this.option("showColumnHeaders"))for(var n=0;n1&&(!(0,s.isDefined)(e)||(0,s.isDefined)(t))){var u=[],l=(0,s.isDefined)(t)?o.getChildrenByBandColumn(t,!0):o.getVisibleColumns();return(0,c.each)(l,function(t,i){var a=(0,s.isDefined)(e)?e:o.getRowIndex(i.index);(n=r._getCellElement(a,o.getVisibleIndex(i.index,a)))&&u.push(n.get(0))}),(0,i.default)(u)}if(!e||e1,c=function(e){return e.allowReordering||e.allowGrouping||e.allowHiding};for(i=0;i10&&e<20}function r(e){return t[e].split("_")}function o(e,t,o,a){var s=e+" ";return 1===e?s+n(0,t,o[0],a):t?s+(i(e)?r(o)[1]:r(o)[0]):a?s+r(o)[1]:s+(i(e)?r(o)[1]:r(o)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function(e,t,n,i){return t?"kelios sekund\u0117s":i?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:o,m:n,mm:o,h:n,hh:o,d:n,dd:o,M:n,MM:o,y:n,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n("wd/R"))},JvtB:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("AytR"),r=n("fXoL"),o=function(){function e(){this.appConfig=i.a,this.appConfig.versionDate="03/06/25"}return e.\u0275prov=r.Wb({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e}()},Jw9j:function(e,t,n){"use strict";n.d(t,"a",function(){return v}),n.d(t,"b",function(){return _});var i=n("1OyB"),r=n("vuIU"),o=n("JX7q"),a=n("ReuC"),s=n("foSv"),c=n("Ji7U"),u=n("LK+K"),l=n("mrSG"),d=n("jhN1"),h=n("fXoL"),f=n("q43h"),p=n.n(f),g=n("PVOt"),m=n("6t9p"),v=function(){var e=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,r,a,s,c,u,l,d){var h;return Object(i.a)(this,n),(h=t.call(this,e,r,a,s,l,d))._watcherHelper=s,h._idh=c,h._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"itemContextMenu",emit:"onItemContextMenu"},{subscribe:"itemRendered",emit:"onItemRendered"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{subscribe:"submenuHidden",emit:"onSubmenuHidden"},{subscribe:"submenuHiding",emit:"onSubmenuHiding"},{subscribe:"submenuShowing",emit:"onSubmenuShowing"},{subscribe:"submenuShown",emit:"onSubmenuShown"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"adaptivityEnabledChange"},{emit:"animationChange"},{emit:"cssClassChange"},{emit:"dataSourceChange"},{emit:"disabledChange"},{emit:"disabledExprChange"},{emit:"displayExprChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hideSubmenuOnMouseLeaveChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"itemsChange"},{emit:"itemsExprChange"},{emit:"itemTemplateChange"},{emit:"orientationChange"},{emit:"rtlEnabledChange"},{emit:"selectByClickChange"},{emit:"selectedExprChange"},{emit:"selectedItemChange"},{emit:"selectionModeChange"},{emit:"showFirstSubmenuModeChange"},{emit:"showSubmenuModeChange"},{emit:"submenuDirectionChange"},{emit:"tabIndexChange"},{emit:"visibleChange"},{emit:"widthChange"}]),h._idh.setHost(Object(o.a)(h)),u.setHost(Object(o.a)(h)),h}return Object(r.a)(n,[{key:"accessKey",get:function(){return this._getOption("accessKey")},set:function(e){this._setOption("accessKey",e)}},{key:"activeStateEnabled",get:function(){return this._getOption("activeStateEnabled")},set:function(e){this._setOption("activeStateEnabled",e)}},{key:"adaptivityEnabled",get:function(){return this._getOption("adaptivityEnabled")},set:function(e){this._setOption("adaptivityEnabled",e)}},{key:"animation",get:function(){return this._getOption("animation")},set:function(e){this._setOption("animation",e)}},{key:"cssClass",get:function(){return this._getOption("cssClass")},set:function(e){this._setOption("cssClass",e)}},{key:"dataSource",get:function(){return this._getOption("dataSource")},set:function(e){this._setOption("dataSource",e)}},{key:"disabled",get:function(){return this._getOption("disabled")},set:function(e){this._setOption("disabled",e)}},{key:"disabledExpr",get:function(){return this._getOption("disabledExpr")},set:function(e){this._setOption("disabledExpr",e)}},{key:"displayExpr",get:function(){return this._getOption("displayExpr")},set:function(e){this._setOption("displayExpr",e)}},{key:"elementAttr",get:function(){return this._getOption("elementAttr")},set:function(e){this._setOption("elementAttr",e)}},{key:"focusStateEnabled",get:function(){return this._getOption("focusStateEnabled")},set:function(e){this._setOption("focusStateEnabled",e)}},{key:"height",get:function(){return this._getOption("height")},set:function(e){this._setOption("height",e)}},{key:"hideSubmenuOnMouseLeave",get:function(){return this._getOption("hideSubmenuOnMouseLeave")},set:function(e){this._setOption("hideSubmenuOnMouseLeave",e)}},{key:"hint",get:function(){return this._getOption("hint")},set:function(e){this._setOption("hint",e)}},{key:"hoverStateEnabled",get:function(){return this._getOption("hoverStateEnabled")},set:function(e){this._setOption("hoverStateEnabled",e)}},{key:"items",get:function(){return this._getOption("items")},set:function(e){this._setOption("items",e)}},{key:"itemsExpr",get:function(){return this._getOption("itemsExpr")},set:function(e){this._setOption("itemsExpr",e)}},{key:"itemTemplate",get:function(){return this._getOption("itemTemplate")},set:function(e){this._setOption("itemTemplate",e)}},{key:"orientation",get:function(){return this._getOption("orientation")},set:function(e){this._setOption("orientation",e)}},{key:"rtlEnabled",get:function(){return this._getOption("rtlEnabled")},set:function(e){this._setOption("rtlEnabled",e)}},{key:"selectByClick",get:function(){return this._getOption("selectByClick")},set:function(e){this._setOption("selectByClick",e)}},{key:"selectedExpr",get:function(){return this._getOption("selectedExpr")},set:function(e){this._setOption("selectedExpr",e)}},{key:"selectedItem",get:function(){return this._getOption("selectedItem")},set:function(e){this._setOption("selectedItem",e)}},{key:"selectionMode",get:function(){return this._getOption("selectionMode")},set:function(e){this._setOption("selectionMode",e)}},{key:"showFirstSubmenuMode",get:function(){return this._getOption("showFirstSubmenuMode")},set:function(e){this._setOption("showFirstSubmenuMode",e)}},{key:"showSubmenuMode",get:function(){return this._getOption("showSubmenuMode")},set:function(e){this._setOption("showSubmenuMode",e)}},{key:"submenuDirection",get:function(){return this._getOption("submenuDirection")},set:function(e){this._setOption("submenuDirection",e)}},{key:"tabIndex",get:function(){return this._getOption("tabIndex")},set:function(e){this._setOption("tabIndex",e)}},{key:"visible",get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)}},{key:"width",get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)}},{key:"itemsChildren",get:function(){return this._getOption("items")},set:function(e){this.setChildren("items",e)}},{key:"_createInstance",value:function(e,t){return new p.a(e,t)}},{key:"ngOnDestroy",value:function(){this._destroyWidget()}},{key:"ngOnChanges",value:function(e){Object(a.a)(Object(s.a)(n.prototype),"ngOnChanges",this).call(this,e),this.setupChanges("dataSource",e),this.setupChanges("items",e)}},{key:"setupChanges",value:function(e,t){e in this._optionsToUpdate||this._idh.setup(e,t)}},{key:"ngDoCheck",value:function(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._watcherHelper.checkWatchers(),Object(a.a)(Object(s.a)(n.prototype),"ngDoCheck",this).call(this),Object(a.a)(Object(s.a)(n.prototype),"clearChangedOptions",this).call(this)}},{key:"_setOption",value:function(e,t){var i=this._idh.setupSingle(e,t),r=null!==this._idh.getChanges(e,t);(i||r)&&Object(a.a)(Object(s.a)(n.prototype),"_setOption",this).call(this,e,t)}}]),n}(g.b);return e.\u0275fac=function(t){return new(t||e)(h.ac(h.q),h.ac(h.J),h.ac(g.f),h.ac(g.k),h.ac(g.h),h.ac(g.j),h.ac(d.d),h.ac(h.M))},e.\u0275cmp=h.Ub({type:e,selectors:[["dx-menu"]],contentQueries:function(e,t,n){var i;1&e&&h.Tb(n,m.y,!1),2&e&&h.Ec(i=h.oc())&&(t.itemsChildren=i)},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",adaptivityEnabled:"adaptivityEnabled",animation:"animation",cssClass:"cssClass",dataSource:"dataSource",disabled:"disabled",disabledExpr:"disabledExpr",displayExpr:"displayExpr",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hideSubmenuOnMouseLeave:"hideSubmenuOnMouseLeave",hint:"hint",hoverStateEnabled:"hoverStateEnabled",items:"items",itemsExpr:"itemsExpr",itemTemplate:"itemTemplate",orientation:"orientation",rtlEnabled:"rtlEnabled",selectByClick:"selectByClick",selectedExpr:"selectedExpr",selectedItem:"selectedItem",selectionMode:"selectionMode",showFirstSubmenuMode:"showFirstSubmenuMode",showSubmenuMode:"showSubmenuMode",submenuDirection:"submenuDirection",tabIndex:"tabIndex",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onItemClick:"onItemClick",onItemContextMenu:"onItemContextMenu",onItemRendered:"onItemRendered",onOptionChanged:"onOptionChanged",onSelectionChanged:"onSelectionChanged",onSubmenuHidden:"onSubmenuHidden",onSubmenuHiding:"onSubmenuHiding",onSubmenuShowing:"onSubmenuShowing",onSubmenuShown:"onSubmenuShown",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",adaptivityEnabledChange:"adaptivityEnabledChange",animationChange:"animationChange",cssClassChange:"cssClassChange",dataSourceChange:"dataSourceChange",disabledChange:"disabledChange",disabledExprChange:"disabledExprChange",displayExprChange:"displayExprChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hideSubmenuOnMouseLeaveChange:"hideSubmenuOnMouseLeaveChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",itemsChange:"itemsChange",itemsExprChange:"itemsExprChange",itemTemplateChange:"itemTemplateChange",orientationChange:"orientationChange",rtlEnabledChange:"rtlEnabledChange",selectByClickChange:"selectByClickChange",selectedExprChange:"selectedExprChange",selectedItemChange:"selectedItemChange",selectionModeChange:"selectionModeChange",showFirstSubmenuModeChange:"showFirstSubmenuModeChange",showSubmenuModeChange:"showSubmenuModeChange",submenuDirectionChange:"submenuDirectionChange",tabIndexChange:"tabIndexChange",visibleChange:"visibleChange",widthChange:"widthChange"},features:[h.Nb([g.f,g.k,g.j,g.h]),h.Lb,h.Mb],decls:0,vars:0,template:function(e,t){},encapsulation:2}),e=Object(l.__decorate)([Object(l.__param)(7,Object(h.w)(h.M)),Object(l.__metadata)("design:paramtypes",[h.q,h.J,g.f,g.k,g.h,g.j,d.d,Object])],e)}(),_=function(){var e=Object(r.a)(function e(){Object(i.a)(this,e)});return e.\u0275mod=h.Yb({type:e}),e.\u0275inj=h.Xb({factory:function(t){return new(t||e)},imports:[[m.sb,m.md,m.Se,m.z,m.Re,m.nc,m.Te,g.d,g.g,d.b],m.sb,m.md,m.Se,m.z,m.Re,m.nc,m.Te,g.g]}),e}()},JyGs:function(e,t,n){"use strict";var i=y(n("FKN7")),r=y(n("tUd6")),o=y(n("5qrJ")),a=y(n("jeLr")),s=y(n("zBVi")),c=y(n("D6VQ")),u=n("1LL4"),l=y(n("imRD")),d=y(n("uhpr")),h=y(n("tJvG")),f=n("ti0F"),p=y(n("23xU")),g=y(n("IF55")),m=n("Q5pv"),v=y(n("kaGW")),_=n("GCD8");function y(e){return e&&e.__esModule?e:{default:e}}var b="dx-filterbuilder-group",w="dx-filterbuilder-group-item",C="dx-filterbuilder-action",O="dx-filterbuilder-action-icon",S="dx-filterbuilder-text",k="dx-state-active",x="filterBuilder",T="enter",E="escape",I=[{name:"onEditorPreparing",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onEditorPrepared",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onValueChanged",config:{excludeValidators:["disabled","readOnly"]}}],D={and:"and",or:"or",notAnd:"!and",notOr:"!or"},M=o.default.inherit(v.default),A=function(e,t,n){if(Array.isArray(t)){var r=t.length-1;e.empty(),t.forEach(function(t,o){(0,i.default)("").addClass("dx-filterbuilder-text-part").text(t).appendTo(e),o!==r&&(0,i.default)("").addClass("dx-filterbuilder-text-separator").text(n&&n.valueSeparator?n.valueSeparator:"|").addClass("dx-filterbuilder-text-separator-empty").appendTo(e)})}else e.text(t||l.default.format("dxFilterBuilder-enterValueText"))},P=s.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{onEditorPreparing:null,onEditorPrepared:null,onValueChanged:null,fields:[],defaultGroupOperation:"and",groupOperations:["and","or","notAnd","notOr"],maxGroupLevel:void 0,value:null,allowHierarchicalFields:!1,groupOperationDescriptions:{and:l.default.format("dxFilterBuilder-and"),or:l.default.format("dxFilterBuilder-or"),notAnd:l.default.format("dxFilterBuilder-notAnd"),notOr:l.default.format("dxFilterBuilder-notOr")},customOperations:[],closePopupOnTargetScroll:!0,filterOperationDescriptions:{between:l.default.format("dxFilterBuilder-filterOperationBetween"),equal:l.default.format("dxFilterBuilder-filterOperationEquals"),notEqual:l.default.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:l.default.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:l.default.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:l.default.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:l.default.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:l.default.format("dxFilterBuilder-filterOperationStartsWith"),contains:l.default.format("dxFilterBuilder-filterOperationContains"),notContains:l.default.format("dxFilterBuilder-filterOperationNotContains"),endsWith:l.default.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:l.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:l.default.format("dxFilterBuilder-filterOperationIsNotBlank")}})},_optionChanged:function(e){switch(e.name){case"closePopupOnTargetScroll":break;case"onEditorPreparing":case"onEditorPrepared":case"onValueChanged":this._initActions();break;case"customOperations":this._initCustomOperations(),this._invalidate();break;case"fields":case"defaultGroupOperation":case"maxGroupLevel":case"groupOperations":case"allowHierarchicalFields":case"groupOperationDescriptions":case"filterOperationDescriptions":this._invalidate();break;case"value":if(e.value!==e.previousValue){var t=this._disableInvalidateForValue;t||(this._initModel(),this._invalidate()),this._disableInvalidateForValue=!1,this.executeAction("onValueChanged",{value:e.value,previousValue:e.previousValue}),this._disableInvalidateForValue=t}break;default:this.callBase(e)}},getFilterExpression:function(){var e=this._getNormalizedFields(),t=(0,u.extend)(!0,[],this._model);return d.default.getFilterExpression(d.default.getNormalizedFilter(t),e,this._customOperations,x)},_getNormalizedFields:function(){return d.default.getNormalizedFields(this.option("fields"))},_updateFilter:function(){this._disableInvalidateForValue=!0;var e=(0,u.extend)(!0,[],this._model),t=d.default.getNormalizedFilter(e),n=d.default.getNormalizedFilter(this._getModel(this.option("value")));JSON.stringify(n)!==JSON.stringify(t)&&this.option("value",t),this._disableInvalidateForValue=!1,this._fireContentReadyAction()},_init:function(){this._initCustomOperations(),this._initModel(),this._initEditorFactory(),this._initActions(),this.callBase()},_initEditorFactory:function(){this._editorFactory=new M},_initCustomOperations:function(){this._customOperations=d.default.getMergedOperations(this.option("customOperations"),this.option("filterOperationDescriptions.between"),this)},_getModel:function(e){return d.default.convertToInnerStructure(e,this._customOperations)},_initModel:function(){this._model=this._getModel(this.option("value"))},_initActions:function(){var e=this;e._actions={},I.forEach(function(t){e._actions[t.name]=e._createActionByOption(t.name,t.config)})},executeAction:function(e,t){var n=this._actions[e];return n&&n(t)},_initMarkup:function(){this.$element().addClass("dx-filterbuilder"),this.callBase(),this._createGroupElementByCriteria(this._model).appendTo(this.$element())},_createConditionElement:function(e,t){return(0,i.default)("
").addClass(b).append(this._createConditionItem(e,t))},_createGroupElementByCriteria:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=this._createGroupElement(e,t,n),r=i.find(".dx-filterbuilder-group-content"),o=d.default.getGroupCriteria(e),a=0;a").addClass(w),a=(0,i.default)("
").addClass("dx-filterbuilder-group-content"),s=(0,i.default)("
").addClass(b).append(o).append(a);return null!=t&&this._createRemoveButton(function(){d.default.removeItem(t,e),s.remove(),r._updateFilter()}).appendTo(o),this._createGroupOperationButton(e).appendTo(o),this._createAddButton(function(){var t=d.default.createEmptyGroup(r.option("defaultGroupOperation"));d.default.addItem(t,e),r._createGroupElement(t,e,n+1).appendTo(a),r._updateFilter()},function(){var t=r.option("fields")[0],n=d.default.createCondition(t,r._customOperations);d.default.addItem(n,e),r._createConditionElement(n,e).appendTo(a),r._updateFilter()},n).appendTo(o),s},_createButton:function(e){return(0,i.default)("
").text(e)},_createGroupOperationButton:function(e){var t=this,n=this._getGroupOperations(e),i=d.default.getGroupMenuItem(e,n),r=i.text,o=n&&n.length<2?this._createButton(r).addClass("dx-state-disabled"):this._createButtonWithMenu({caption:r,menu:{items:n,displayExpr:"text",keyExpr:"value",onItemClick:function(n){i!==n.itemData&&(d.default.setGroupValue(e,n.itemData.value),o.html(n.itemData.text),i=n.itemData,t._updateFilter())},onContentReady:function(e){e.component.selectItem(i)},cssClass:"dx-filterbuilder-group-operations"}});return o.addClass(S).addClass("dx-filterbuilder-group-operation").attr("tabindex",0)},_createButtonWithMenu:function(e){var t,n=this,r=function(){n.$element().find("."+k).removeClass(k),n.$element().find(".dx-overlay .dx-treeview").remove(),n.$element().find(".dx-overlay").remove()},o=this.option("rtlEnabled"),s=o?"right":"left",c=this._createButton(e.caption);return(0,u.extend)(e.menu,{focusStateEnabled:!0,selectionMode:"single",onItemClick:(t=e.menu.onItemClick,function(e){t(e),"dxclick"===e.event.type&&r()}),onHiding:function(e){c.removeClass(k)},position:{my:s+" top",at:s+" bottom",offset:"0 1",of:c,collision:"flip"},animation:null,onHidden:function(){r()},cssClass:"dx-filterbuilder-overlay "+e.menu.cssClass,rtlEnabled:o}),e.popup={onShown:function(t){var n=(0,i.default)(t.component.content()).find(".dx-treeview"),r=n.dxTreeView("instance");a.default.on(n,"keyup keydown",function(n){var i=(0,_.normalizeKeyName)(n);("keydown"===n.type&&"tab"===i||"keyup"===n.type&&(i===E||i===T))&&(t.component.hide(),a.default.trigger(e.menu.position.of,"focus"))}),r.focus(),r.option("focusedElement",null)}},this._subscribeOnClickAndEnterKey(c,function(){r(),n._createPopupWithTreeView(e,n.$element()),c.addClass(k)}),c},_hasValueButton:function(e){var t=d.default.getCustomOperation(this._customOperations,e[1]);return t?!1!==t.hasValue:null!==e[2]},_createOperationButtonWithMenu:function(e,t){var n=this,r=this,o=d.default.getAvailableOperations(t,this.option("filterOperationDescriptions"),this._customOperations),a=d.default.getOperationFromAvailable(d.default.getOperationValue(e),o),s=this._createButtonWithMenu({caption:a.text,menu:{items:o,displayExpr:"text",onItemRendered:function(e){e.itemData.isCustom&&(0,i.default)(e.itemElement).addClass("dx-filterbuilder-menu-custom-operation")},onContentReady:function(e){e.component.selectItem(a)},onItemClick:function(i){if(a!==i.itemData){d.default.updateConditionByOperation(e,(a=i.itemData).value,r._customOperations);var o=s.siblings().filter(".dx-filterbuilder-item-value");r._hasValueButton(e)?(0!==o.length&&o.remove(),r._createValueButton(e,t).appendTo(s.parent())):o.remove(),s.html(a.text),n._updateFilter()}},cssClass:"dx-filterbuilder-operations"}}).addClass(S).addClass("dx-filterbuilder-item-operation").attr("tabindex",0);return s},_createOperationAndValueButtons:function(e,t,n){this._createOperationButtonWithMenu(e,t).appendTo(n),this._hasValueButton(e)&&this._createValueButton(e,t).appendTo(n)},_createFieldButtonWithMenu:function(e,t,n){var i=this,r=this,o=this.option("allowHierarchicalFields"),a=d.default.getItems(e,o),s=d.default.getField(n.name||n.dataField,a),c=function(e,t){return o?d.default.getCaptionWithParents(e,t):e.caption},u=this._createButtonWithMenu({caption:c(s,a),menu:{items:a,dataStructure:"plain",keyExpr:"id",parentId:"parentId",displayExpr:"caption",onItemClick:function(e){if(s!==e.itemData){t[0]=(s=e.itemData).name||s.dataField,t[2]="object"===s.dataType?null:"",d.default.updateConditionByOperation(t,d.default.getDefaultOperation(s),r._customOperations),u.siblings().filter(".dx-filterbuilder-text").remove(),r._createOperationAndValueButtons(t,s,u.parent());var n=c(s,e.component.option("items"));u.html(n),i._updateFilter()}},onContentReady:function(e){e.component.selectItem(s)},cssClass:"dx-filterbuilder-fields"}}).addClass(S).addClass("dx-filterbuilder-item-field").attr("tabindex",0);return u},_createConditionItem:function(e,t){var n=this,r=(0,i.default)("
").addClass(w),o=this._getNormalizedFields(),a=d.default.getField(e[0],o);return this._createRemoveButton(function(){d.default.removeItem(t,e),1===r.parent().children().length?r.parent().remove():r.remove(),n._updateFilter()}).appendTo(r),this._createFieldButtonWithMenu(o,e,a).appendTo(r),this._createOperationAndValueButtons(e,a,r),r},_getGroupOperations:function(e){var t=this.option("groupOperations"),n=this.option("groupOperationDescriptions");return t&&t.length||(t=[d.default.getGroupValue(e).replace("!","not")]),t.map(function(e){return{text:n[e],value:D[e]}})},_createRemoveButton:function(e){var t=(0,i.default)("
").addClass(O).addClass("dx-icon-remove").addClass(C).attr("tabindex",0);return this._subscribeOnClickAndEnterKey(t,e),t},_createAddButton:function(e,t,n){var i,r=this.option("maxGroupLevel");return(0,f.isDefined)(r)&&n>=r?(i=this._createButton(),this._subscribeOnClickAndEnterKey(i,t)):i=this._createButtonWithMenu({menu:{items:[{caption:l.default.format("dxFilterBuilder-addCondition"),click:t},{caption:l.default.format("dxFilterBuilder-addGroup"),click:e}],displayExpr:"caption",onItemClick:function(e){e.itemData.click()},cssClass:"dx-filterbuilder-add-condition"}}),i.addClass(O).addClass("dx-icon-plus").addClass(C).attr("tabindex",0)},_createValueText:function(e,t,n){var r=this,o=(0,i.default)("
").html(" ").addClass("dx-filterbuilder-item-value-text").attr("tabindex",0).appendTo(n),a=e[2],s=d.default.getCustomOperation(r._customOperations,e[1]);return!s&&t.lookup?d.default.getCurrentLookupValueText(t,a,function(e){A(o,e)}):h.default.when(d.default.getCurrentValueText(t,a,s)).done(function(e){A(o,e,s)}),r._subscribeOnClickAndEnterKey(o,function(i){"keyup"===i.type&&i.stopPropagation(),r._createValueEditorWithEvents(e,t,n)}),o},_updateConditionValue:function(e,t,n){e[2]!==t&&(e[2]=t),n(),this._updateFilter()},_addDocumentKeyUp:function(e,t){var n=!1,i=!1,o=r.default.getDocument(),s=function(e){n||i?i=!1:t(e)};a.default.on(o,"keyup",s);var c=e.find("input");a.default.on(c,"compositionstart",function(){n=!0}),a.default.on(c,"compositionend",function(){n=!1,i=!0}),a.default.on(c,"keydown",function(e){229!==e.which&&(i=!1)}),this._documentKeyUpHandler=s},_addDocumentClick:function(e,t){var n=this,i=r.default.getDocument(),o=function(i){n._isFocusOnEditorParts(e,i.target)||(a.default.trigger(e.find("input"),"change"),t())};a.default.on(i,"dxpointerdown",o),this._documentClickHandler=o},_isFocusOnEditorParts:function(e,t){var n=t||r.default.getActiveElement();return(0,i.default)(n).closest(e.children()).length||(0,i.default)(n).closest(".dx-dropdowneditor-overlay").length},_removeEvents:function(){var e=r.default.getDocument();(0,f.isDefined)(this._documentKeyUpHandler)&&a.default.off(e,"keyup",this._documentKeyUpHandler),(0,f.isDefined)(this._documentClickHandler)&&a.default.off(e,"dxpointerdown",this._documentClickHandler)},_dispose:function(){this._removeEvents(),this.callBase()},_createValueEditorWithEvents:function(e,t,n){var i=this,r=e[2],o=function(){return n.empty(),i._removeEvents(),i._createValueText(e,t,n)},s=function(){i._updateConditionValue(e,r,function(){o()})},c={value:""===r?null:r,filterOperation:d.default.getOperationValue(e),setValue:function(e){r=null===e?"":e},closeEditor:s,text:n.text()};n.empty();var u=this._createValueEditor(n,t,c);a.default.trigger(u.find("input").not(":hidden").eq(0),"focus"),this._removeEvents(),this._addDocumentClick(u,s),this._addDocumentKeyUp(u,function(t){var s=(0,_.normalizeKeyName)(t);if("tab"===s){if(i._isFocusOnEditorParts(u))return;i._updateConditionValue(e,r,function(){o(),t.shiftKey&&a.default.trigger(n.prev(),"focus")})}s===E&&a.default.trigger(o(),"focus"),s===T&&i._updateConditionValue(e,r,function(){a.default.trigger(o(),"focus")})}),this._fireContentReadyAction()},_createValueButton:function(e,t){var n=(0,i.default)("
").addClass(S).addClass("dx-filterbuilder-item-value");return this._createValueText(e,t,n),n},_createValueEditor:function(e,t,n){var r=(0,i.default)("
").attr("tabindex",0).appendTo(e),o=d.default.getCustomOperation(this._customOperations,n.filterOperation),a=o&&o.editorTemplate?o.editorTemplate:t.editorTemplate;return a?this._getTemplate(a).render({model:(0,u.extend)({field:t},n),container:r}):this._editorFactory.createEditor.call(this,r,(0,u.extend)({},t,n,{parentType:x})),r},_createPopupWithTreeView:function(e,t){var n=this,r=(0,i.default)("
").addClass(e.menu.cssClass).appendTo(t);this._createComponent(r,g.default,{onHiding:e.menu.onHiding,onHidden:e.menu.onHidden,rtlEnabled:e.menu.rtlEnabled,position:e.menu.position,animation:e.menu.animation,contentTemplate:function(t){var r=(0,i.default)("
").appendTo(t);n._createComponent(r,p.default,e.menu),this.repaint()},maxHeight:function(){return(0,m.getElementMaxHeightByWindow)(e.menu.position.of)},visible:!0,focusStateEnabled:!1,closeOnTargetScroll:this.option("closePopupOnTargetScroll"),closeOnOutsideClick:!0,onShown:e.popup.onShown,shading:!1,width:"auto",height:"auto",showTitle:!1})},_subscribeOnClickAndEnterKey:function(e,t){a.default.on(e,"dxclick",t),a.default.on(e,"keyup",function(e){(0,_.normalizeKeyName)(e)===T&&t(e)})}});(0,c.default)("dxFilterBuilder",P),e.exports=P,e.exports.renderValueText=A},"K/tc":function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},K4No:function(e,t,n){"use strict";var i,r=((i=n("M2vE"))&&i.__esModule?i:{default:i}).default;e.exports={extend:function(e){r=r.inherit(e)},create:function(e){return new r(e)}}},KAnu:function(e,t,n){"use strict";var i=u(n("2Fn2")),r=u(n("0osO")),o=n("tJvG"),a=n("yxXJ"),s=n("zl3R"),c=n("ti0F");function u(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var d,h=[],f=[],p=[],g=function(e,t,n){if(d&&d!==e)return h.push(t),f.push(e),n=n||new o.Deferred,p.push(n),n;var i=d,r=p.length;d=e;var a=t();return a||(p.length>r?a=o.when.apply(this,p.slice(r)):n&&n.resolve()),d=i,n&&a&&a.done&&a.done(n.resolve).fail(n.reject),!d&&h.length&&("render"===f.shift()?m:v)(h.shift(),p.shift()),a||(0,o.when)()},m=function(e,t){return g("render",e,t)},v=function(e,t){return g("update",e,t)},_=function(e){switch(l(e)){case"string":return e.split(/\s+/,2);case"object":return[e.x||e.h,e.y||e.v];case"number":return[e];default:return e}},y=function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];e=(0,a.toComparable)(e,!0),t=(0,a.toComparable)(t,!0);var r=i?e===t:e==t;return!!(r||n>=3)||((0,c.isObject)(e)&&(0,c.isObject)(t)?b(e,t,n,i):!(!Array.isArray(e)||!Array.isArray(t))&&y(e,t,n))};t.ensureDefined=function(e,t){return(0,c.isDefined)(e)?e:t},t.executeAsync=function(e,t){var n=new o.Deferred,i=t||this,r={promise:n.promise(),abort:function(){clearTimeout(s),n.rejectWith(i)}},a=function(){var t=e.call(i);t&&t.done&&(0,c.isFunction)(t.done)?t.done(function(){n.resolveWith(i)}):n.resolveWith(i)},s=(arguments[2]||setTimeout)(a,"number"==typeof t?t:0);return r},t.deferRender=m,t.deferRenderer=function(e){return function(){var t=this;return g("render",function(){return e.call(t)})}},t.deferUpdate=v,t.deferUpdater=function(e){return function(){var t=this;return g("update",function(){return e.call(t)})}},t.pairToObject=function(e,t){var n=_(e),i=t?parseFloat(n&&n[0]):parseInt(n&&n[0],10),r=t?parseFloat(n&&n[1]):parseInt(n&&n[1],10);return isFinite(i)||(i=0),isFinite(r)||(r=i),{h:i,v:r}},t.splitPair=_,t.findBestMatches=function(e,t,n){var i=[],r=0;return(0,s.each)(t,function(t,o){var a=0,c=n?n(o):o;(0,s.each)(e,function(e,t){var n=c[e];if(void 0!==n){if(!function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var n=!1;return(0,s.each)(e,function(e,i){if(i!==t[e])return n=!0,!1}),!n}return e===t}(n,t))return a=-1,!1;a++}}),ar&&(i.length=0,r=a),i.push(o))}),i},t.normalizeKey=function(e){var t=(0,c.isString)(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9_]/g);return n&&(0,s.each)(n,function(e,n){t=t.replace(n,"__"+n.charCodeAt()+"__")}),t},t.denormalizeKey=function(e){var t=e.match(/__\d+__/g);return t&&t.forEach(function(t){var n=parseInt(t.replace("__",""));e=e.replace(t,String.fromCharCode(n))}),e},t.getKeyHash=function(e){if(e instanceof r.default)return e.toString();if((0,c.isObject)(e)||Array.isArray(e))try{var t=JSON.stringify(e);return"{}"===t?e:t}catch(n){return e}return e},t.escapeRegExp=function(e){return e.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},t.applyServerDecimalSeparator=function(e){var t=(0,i.default)().serverDecimalSeparator;return(0,c.isDefined)(e)&&(e=e.toString().replace(".",t)),e},t.noop=function(){},t.asyncNoop=function(){return(new o.Deferred).resolve().promise()},t.grep=function(e,t,n){for(var i=[],r=!n,o=0;o=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},KYaq:function(e,t,n){"use strict";var i=o(n("BWGd")),r=o(n("f94d"));function o(e){return e&&e.__esModule?e:{default:e}}i.default.registerModule("search",r.default)},Kksw:function(e,t,n){"use strict";var i=f(n("FKN7")),r=n("cGv3"),o=f(n("jeLr")),a=f(n("uHaw")),s=n("ti0F"),c=f(n("vlix")),u=n("zl3R"),l=f(n("5qrJ")),d=n("tJvG"),h=f(n("cYys"));function f(e){return e&&e.__esModule?e:{default:e}}var p=function(e){return"virtual"===e.option("scrolling.mode")||e._isVirtual},g=function(e){return"infinite"===e.option("scrolling.mode")&&!e._isVirtual};t.getPixelRatio=function(e){return e.devicePixelRatio||1},t.getContentHeightLimit=function(e){return e.msie?4e6:e.mozilla?8e6:15e6/t.getPixelRatio((0,r.getWindow)())},t.subscribeToExternalScrollers=function(e,t,n){var a,s=[],l=[],d=[];function h(t){var n=t.element?t.$element():t,i=c.default.offset(n);return i?t.scrollTop()-(i.top-e.offset().top):e.offset().top}var f={on:function(e,t,n){e.on("scroll",n)},off:function(e,t,n){e.off("scroll",n)}};function p(e){var n="#document"===e.get(0).nodeName,a=e.data("dxScrollable"),c=f;if(a||(a=n&&(0,i.default)((0,r.getWindow)())||"auto"===e.css("overflowY")&&e,c=o.default,a)){var u=function(e){return function(){var n=e.scrollTop()-h(e);t(n=n>0?n:0)}}(a);c.on(a,"scroll",u),l.push(function(e){var t=h(a);e-t>=0&&a[a.scrollTo?"scrollTo":"scrollTop"](e+t)}),s.push(a),d.push(function(){c.off(a,"scroll",u)})}}for(a=(n=n||e).parent();a.length;a=a.parent())p(a);return{scrollTo:function(e){(0,u.each)(l,function(t,n){n(e)})},dispose:function(){(0,u.each)(d,function(e,t){t()})}}},t.VirtualScrollController=l.default.inherit(function(){var e=function(e,t){var n=e.option("scrolling.preloadEnabled"),i=function(e){var t=e._dataSource.pageSize();if(e.option("scrolling.preventPreload"))return 0;var n=e._viewportSize;if(p(e)&&!e.option("legacyRendering")&&e.option("scrolling.removeInvisiblePages")){n=0;for(var i=e._viewportSize*e._viewportItemSize,r=e.getContentOffset(),o=e._position||0,a=e.virtualItemsCount(),s=e._dataSource.totalItemsCount(),c=a.begin;c=o+i);c++)(r+=e._itemSizes[c]||e._viewportItemSize)>=o&&n++}return t&&n>0?Math.ceil(n/t):1}(e);return i&&(t?i=n?1:0:(n&&i++,g(e)&&i--)),i};function n(e){return e._cache.length?e._cache[0].pageIndex:-1}function i(e){return e._cache.length?e._cache[e._cache.length-1].pageIndex:-1}var r=function(e,t,n){e._isChangedFiring=!0,t(n),e._isChangedFiring=!1},o=function(e,t,n){if(e._isDelayChanged)return e._isDelayChanged=!1,r(e,t,n),!0},c=function(e,t,n,i,o){var a=e._dataSource,c=a.items().slice(),u=(0,s.isObject)(n)?n:void 0,l="prepend"===n,d=a.viewportItems();n&&(0,s.isString)(n)&&!e._isDelayChanged&&(u={changeType:n,items:c},o&&(u.removeCount=o.itemsCount,u.removeCount&&a.correctCount&&(u.removeCount=a.correctCount(d,u.removeCount,l))));var h=o?o.itemsLength:0;h&&a.correctCount&&(h=a.correctCount(d,h,l)),"append"===n?(d.push.apply(d,c),o&&d.splice(0,h)):l?(d.unshift.apply(d,c),o&&d.splice(-h)):e._dataSource.viewportItems(c),a.updateLoading(),e._lastPageIndex=e.pageIndex(),e._isDelayChanged=i,i||r(e,t,u)};return{ctor:function(e,t,n){var i=this;i._dataSource=t,i.component=e,i._pageIndex=i._lastPageIndex=t.pageIndex(),i._viewportSize=0,i._viewportItemSize=20,i._viewportItemIndex=-1,i._itemSizes={},i._sizeRatio=1,i._items=[],i._cache=[],i._isVirtual=n,i._loadingPageIndexes={},i.positionChanged=(0,h.default)()},getItemSizes:function(){return this._itemSizes},option:function(){return this.component.option.apply(this.component,arguments)},virtualItemsCount:function(){var e,t=this,i=0;if(p(t)){(e=n(t))<0&&(e=t._dataSource.pageIndex());var r=e*t._dataSource.pageSize();return i=t._cache.length*t._dataSource.pageSize(),{begin:r,end:Math.max(0,t._dataSource.totalItemsCount()-i-r)}}},setViewportPosition:function(e){var t=this,n=new d.Deferred,i=Math.min(t.option("scrolling.timeout")||0,t._dataSource.changingDuration());return i0?t._scrollTimeoutID=setTimeout(function(){t._setViewportPositionCore(e),n.resolve()},i):(t._setViewportPositionCore(e),n.resolve()),n.promise()},getViewportPosition:function(){return this._position||0},getItemIndexByPosition:function(){for(var e=this,t=e._position,n=e.getItemSize(),i=0,r=0,o=Object.keys(e._itemSizes).concat(-1),a=0;as?s/o:1}},getItemSize:function(){return this._viewportItemSize*this._sizeRatio},getItemOffset:function(e,t){var n=this,i=n.virtualItemsCount(),r=e;if(!i)return 0;var o=0,a=n._dataSource.totalItemsCount();return Object.keys(n._itemSizes).forEach(function(i){r&&(t?i>=a-e:i=0){if(n._viewportSize&&e+n._viewportSize>=s&&!n._isVirtual)if(n._dataSource.hasKnownLastPage()){var c=s%i;(t=r-1)>0&&c>0&&c0?e:this._lastPageIndex},pageSize:function(){return this._dataSource.pageSize()},load:function(){var t,r=this,o=r._dataSource;if(p(r)||g(r)){var a=function(t){var r=-1,o=n(t),a=t._dataSource;return o<0?r=t._pageIndex:t._cache[t._pageIndex-o]?o>=0&&t._viewportSize>=0&&(o>0&&(i(t)+1===a.pageCount()&&t._cache.length=0){var s=function(e,t){var n=e._dataSource;if(t===e.pageIndex()||!n.isLoading()&&t0?e._setViewportPositionCore(t):e.load()}},handleDataChanged:function(t,a){var s,u,l=this,d=l._dataSource,h=l._cache.length;if(a&&a.changes)r(l,t,a);else if(p(l)||g(l)){var f=n(l);if(f>=0&&(p(l)&&f+l._cache.length!==d.pageIndex()&&f-1!==d.pageIndex()&&(h=0,l._cache=[]),g(l)))if(0===d.pageIndex())l._cache=[];else if(d.pageIndex()Math.max(e(this)+(l.option("scrolling.preloadEnabled")?1:0),2):o(l,t,{isDelayed:!0}),f===d.pageIndex()+1?(u&&(m=l._cache.pop()),s="prepend",l._cache.unshift(v)):(u&&(m=l._cache.shift()),s="append",l._cache.push(v));var _=p(l)&&0===h;c(l,t,l._cache.length>1?s:void 0,_,m),l._delayDeferred=l.load().done(function(){o(l,t)&&l.load()})}else c(l,t,a)},itemsCount:function(e){var t=0;return!e&&p(this)?(0,u.each)(this._cache,function(){t+=this.itemsCount}):t=this._dataSource.itemsCount(),t},reset:function(e){this._loadingPageIndexes={},this._cache=[],e||(this._itemSizes={})},subscribeToWindowScrollEvents:function(e){var n=this;n._windowScroll=n._windowScroll||t.subscribeToExternalScrollers(e,function(e){n.viewportItemSize()&&n.setViewportPosition(e)})},dispose:function(){clearTimeout(this._scrollTimeoutID),this._windowScroll&&this._windowScroll.dispose(),this._windowScroll=null},scrollTo:function(e){this._windowScroll&&this._windowScroll.scrollTo(e)}}}())},Kqap:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("Ji7U"),r=n("LK+K"),o=n("1OyB"),a=n("vuIU"),s=n("7o/Q");function c(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new u(e,t,n))}}var u=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Object(o.a)(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return Object(a.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),l=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i,r,a){var s;return Object(o.a)(this,n),(s=t.call(this,e)).accumulator=i,s._seed=r,s.hasSeed=a,s.index=0,s}return Object(a.a)(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}]),n}(s.a)},KqfI:function(e,t,n){"use strict";function i(){}n.d(t,"a",function(){return i})},KrLa:function(e,t,n){"use strict";var i=n("FKN7"),r=n("1B4V"),o=n("XpgS").wrapToArray,a=n("XpgS").inArray,s=n("zl3R"),c=n("v4HY").contains,u=n("GBv4"),l=n("GCD8"),d=n("3gJo"),h=n("Z/aR"),f="dxdragstart",p="dxdrag",g="dxdragend",m="dxdragenter",v="dxdragleave",_="dxdrop",y="dxDragEventsCount",b=[],w=[],C=[],O={setup:function(e,t){-1!==a(e,b)||(b.push(e),w.push([]),C.push(t||{}))},add:function(e,t){var n=a(e,b);this.updateEventsCounter(e,t.type,1);var i=t.selector;-1===a(i,w[n])&&w[n].push(i)},updateEventsCounter:function(e,t,n){if([m,v,_].indexOf(t)>-1){var i=r.data(e,y)||0;r.data(e,y,Math.max(0,i+n))}},remove:function(e,t){this.updateEventsCounter(e,t.type,-1)},teardown:function(e){if(!r.data(e,y)){var t=a(e,b);b.splice(t,1),w.splice(t,1),C.splice(t,1),r.removeData(e,y)}}};u(m,O),u(v,O),u(_,O),h({emitter:d.inherit({ctor:function(e){this.callBase(e),this.direction="both"},_init:function(e){this._initEvent=e},_start:function(e){e=this._fireEvent(f,this._initEvent),this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset;var t=o(e.targetElements||(null===e.targetElements?[]:b));this._dropTargets=s.map(t,function(e){return i(e).get(0)})},_move:function(e){var t=l.eventData(e),n=this._calculateOffset(t);e=this._fireEvent(p,e,{offset:n}),this._processDropTargets(e),e._cancelPreventDefault||e.preventDefault()},_calculateOffset:function(e){return{x:this._calculateXOffset(e),y:this._calculateYOffset(e)}},_calculateXOffset:function(e){return"vertical"!==this.direction?this._fitOffset(e.x-this._startEventData.x,this._maxLeftOffset,this._maxRightOffset):0},_calculateYOffset:function(e){return"horizontal"!==this.direction?this._fitOffset(e.y-this._startEventData.y,this._maxTopOffset,this._maxBottomOffset):0},_fitOffset:function(e,t,n){return null!=t&&(e=Math.max(e,-t)),null!=n&&(e=Math.min(e,n)),e},_processDropTargets:function(e){var t=this._findDropTarget(e);t===this._currentDropTarget||(this._fireDropTargetEvent(e,v),this._currentDropTarget=t,this._fireDropTargetEvent(e,m))},_fireDropTargetEvent:function(e,t){if(this._currentDropTarget){var n={type:t,originalEvent:e,draggingElement:this._$element.get(0),target:this._currentDropTarget};l.fireEvent(n)}},_findDropTarget:function(e){var t,n=this;return s.each(b,function(r,o){if(n._checkDropTargetActive(o)){var c,u,l,d,h=i(o);s.each((u=a((c=h).get(0),b),l=w[u].filter(function(e){return e}),d=c.find(l.join(", ")),-1!==a(void 0,w[u])&&(d=d.add(c)),d),function(r,o){var s=i(o);n._checkDropTarget(function(e){var t=a(e.get(0),b);return C[t]}(h),s,i(t),e)&&(t=o)})}}),t},_checkDropTargetActive:function(e){var t=!1;return s.each(this._dropTargets,function(n,i){return!(t=t||i===e||c(i,e))}),t},_checkDropTarget:function(e,t,n,r){if(t.get(0)===i(r.target).get(0))return!1;var o,a,s=(a=t,(o=e).itemPositionFunc?o.itemPositionFunc(a):a.offset());if(r.pageXs.left+c.width)&&!(r.pageY>s.top+c.height)&&(!n.length||!n.closest(t).length)&&!(e.checkDropTarget&&!e.checkDropTarget(t,r))&&t},_end:function(e){var t=l.eventData(e);this._fireEvent(g,e,{offset:this._calculateOffset(t)}),this._fireDropTargetEvent(e,_),delete this._currentDropTarget}}),events:[f,p,g]}),t.move=p,t.start=f,t.end=g,t.enter=m,t.leave=v,t.drop=_},"L+Gw":function(e,t,n){"use strict";var i,r=n("5qrJ"),o=r.abstract,a=n("DLVy").EventsStrategy,s=n("zl3R").each,c=n("YyLj"),u=n("IRs2"),l=n("yxXJ").compileGetter,d=n("IEE5").queryByOptions,h=n("tJvG").Deferred,f=n("KAnu").noop,p={},g=r.inherit({ctor:function(e){var t=this;e=e||{},this._eventsStrategy=new a(this),s(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onPush","onRemoved","onRemoving","onModified","onModifying"],function(n,i){i in e&&t.on(i.slice(2).toLowerCase(),e[i])}),this._key=e.key,this._errorHandler=e.errorHandler,this._useDefaultSearch=!0},_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(e){return this._keyGetter||(this._keyGetter=l(this.key())),this._keyGetter(e)},_requireKey:function(){if(!this.key())throw c.errors.Error("E4005")},load:function(e){var t=this;return this._eventsStrategy.fireEvent("loading",[e=e||{}]),this._withLock(this._loadImpl(e)).done(function(n){t._eventsStrategy.fireEvent("loaded",[n,e])})},_loadImpl:function(e){return d(this.createQuery(e),e).enumerate()},_withLock:function(e){var t=new h;return e.done(function(){var e=this,n=arguments;u.processRequestResultLock.promise().done(function(){t.resolveWith(e,n)})}).fail(function(){t.rejectWith(this,arguments)}),t},createQuery:o,totalCount:function(e){return this._totalCountImpl(e)},_totalCountImpl:function(e){return d(this.createQuery(e),e,!0).count()},byKey:function(e,t){return this._addFailHandlers(this._withLock(this._byKeyImpl(e,t)))},_byKeyImpl:o,insert:function(e){var t=this;return t._eventsStrategy.fireEvent("modifying"),t._eventsStrategy.fireEvent("inserting",[e]),t._addFailHandlers(t._insertImpl(e).done(function(e,n){t._eventsStrategy.fireEvent("inserted",[e,n]),t._eventsStrategy.fireEvent("modified")}))},_insertImpl:o,update:function(e,t){var n=this;return n._eventsStrategy.fireEvent("modifying"),n._eventsStrategy.fireEvent("updating",[e,t]),n._addFailHandlers(n._updateImpl(e,t).done(function(){n._eventsStrategy.fireEvent("updated",[e,t]),n._eventsStrategy.fireEvent("modified")}))},_updateImpl:o,push:function(e){this._pushImpl(e),this._eventsStrategy.fireEvent("push",[e])},_pushImpl:f,remove:function(e){var t=this;return t._eventsStrategy.fireEvent("modifying"),t._eventsStrategy.fireEvent("removing",[e]),t._addFailHandlers(t._removeImpl(e).done(function(e){t._eventsStrategy.fireEvent("removed",[e]),t._eventsStrategy.fireEvent("modified")}))},_removeImpl:o,_addFailHandlers:function(e){return e.fail(this._errorHandler).fail(c._errorHandler)},on:function(e,t){return this._eventsStrategy.on(e,t),this},off:function(e,t){return this._eventsStrategy.off(e,t),this}});g.create=function(e,t){if(!(e in p))throw c.errors.Error("E4020",e);return new p[e](t)},g.registerClass=function(e,t){return t&&(p[t]=e),e},g.inherit=(i=g.inherit,function(e,t){var n=i.apply(this,[e]);return g.registerClass(n,t),n}),e.exports=g},LI0J:function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r,o=n("FKN7"),a=n("3IPI"),s=n("ti0F").isDate,c=n("zl3R").each,u=n("dYUP"),l={SUPPORTED_FORMATS:["date","time","datetime"],DATE_COMPONENT_TEXT_FORMATTER:function(e,t){var n=o("
").addClass("dx-dateview-formatter-container");return o("").text(e).addClass("dx-dateview-value-formatter").appendTo(n),o("").text(t).addClass("dx-dateview-name-formatter").appendTo(n),n},ONE_MINUTE:6e4,ONE_DAY:864e5,ONE_YEAR:31536e6,MIN_DATEVIEW_DEFAULT_DATE:new Date(1900,0,1),MAX_DATEVIEW_DEFAULT_DATE:(r=new Date,new Date(r.getFullYear()+50,r.getMonth(),r.getDate(),23,59,59)),FORMATS_INFO:{date:{getStandardPattern:function(){return"yyyy-MM-dd"},components:["year","day","month","day"]},time:{getStandardPattern:function(){return"HH:mm"},components:["hours","minutes","seconds","milliseconds"]},datetime:{getStandardPattern:function(){var e,t;return(t=o("").attr("type","datetime")).val("2000-01-01T01:01Z"),t.val()&&(e="yyyy-MM-ddTHH:mmZ"),e||(e="yyyy-MM-ddTHH:mm:ssZ"),l.FORMATS_INFO.datetime.getStandardPattern=function(){return e},e},components:["year","day","month","day"].concat(["hours","minutes","seconds","milliseconds"])},"datetime-local":{getStandardPattern:function(){return"yyyy-MM-ddTHH:mm:ss"},components:["year","day","month","day"].concat(["hours","minutes","seconds"])}},FORMATS_MAP:{date:"shortdate",time:"shorttime",datetime:"shortdateshorttime"},SUBMIT_FORMATS_MAP:{date:"date",time:"time",datetime:"datetime-local"},toStandardDateFormat:function(e,t){var n=l.FORMATS_INFO[t].getStandardPattern();return a.serializeDate(e,n)},fromStandardDateFormat:function(e){var t=a.dateParser(e);return s(t)?t:void 0},getMaxMonthDay:function(e,t){return new Date(e,t+1,0).getDate()},mergeDates:function(e,t,n){if(!t)return t||null;if(!e||isNaN(e.getTime())){var i=new Date(null);e=new Date(i.getFullYear(),i.getMonth(),i.getDate())}var r=new Date(e.valueOf());return c(l.FORMATS_INFO[n].components,function(){var e=l.DATE_COMPONENTS_INFO[this];r[e.setter](t[e.getter]())}),r},getLongestCaptionIndex:function(e){var t,n=0,i=0;for(t=0;ti&&(n=t,i=e[t].length);return n},formatUsesMonthName:function(e){return u.formatUsesMonthName(e)},formatUsesDayName:function(e){return u.formatUsesDayName(e)},getLongestDate:function(e,t,n){var r=function(e){var t=i(e);return"string"===t?"format":"object"===t&&void 0!==e.type?e.type:null}(e),o=9;r&&!l.formatUsesMonthName(r)||(o=l.getLongestCaptionIndex(t));var a=new Date(1888,o,21,23,59,59,999);if(!r||l.formatUsesDayName(r)){var s=a.getDate()-a.getDay()+l.getLongestCaptionIndex(n);a.setDate(s)}return a},normalizeTime:function(e){e.setSeconds(0),e.setMilliseconds(0)}};l.DATE_COMPONENTS_INFO={year:{getter:"getFullYear",setter:"setFullYear",formatter:function(e,t){var n=new Date(t.getTime());return n.setFullYear(e),u.format(n,"yyyy")},startValue:void 0,endValue:void 0},day:{getter:"getDate",setter:"setDate",formatter:function(e,t){var n=new Date(t.getTime());return n.setDate(e),u.format(n,"d")},startValue:1,endValue:void 0},month:{getter:"getMonth",setter:"setMonth",formatter:function(e){return u.getMonthNames()[e]},startValue:0,endValue:11},hours:{getter:"getHours",setter:"setHours",formatter:function(e){return u.format(new Date(0,0,0,e),"hour")},startValue:0,endValue:23},minutes:{getter:"getMinutes",setter:"setMinutes",formatter:function(e){return u.format(new Date(0,0,0,0,e),"minute")},startValue:0,endValue:59},seconds:{getter:"getSeconds",setter:"setSeconds",formatter:function(e){return u.format(new Date(0,0,0,0,0,e),"second")},startValue:0,endValue:59},milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",formatter:function(e){return u.format(new Date(0,0,0,0,0,0,e),"millisecond")},startValue:0,endValue:999}},e.exports=l},"LK+K":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("foSv"),r=n("2WcH"),o=n("md7G");function a(e){var t=Object(r.a)();return function(){var n,r=Object(i.a)(e);if(t){var a=Object(i.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(o.a)(this,n)}}},LPGq:function(e,t,n){"use strict";var i=s(n("2Fn2")),r=n("A8u/"),o=s(n("vkUy")),a=s(n("i1ou"));function s(e){return e&&e.__esModule?e:{default:e}}var c=/([^\s0]+)?(\s*)0*[.,]*0*(\s*)([^\s0]+)?/,u={},l=function(e){var t=(0,r.locale)()+"/"+JSON.stringify(e);return u[t]||(u[t]=new Intl.NumberFormat((0,r.locale)(),e).format),u[t]};e.exports={engine:function(){return"intl"},_formatNumberCore:function(e,t,n){return"exponential"===t?this.callBase.apply(this,arguments):l(this._normalizeFormatConfig(t,n))(e)},_normalizeFormatConfig:function(e,t,n){var r;return r="decimal"===e?{minimumIntegerDigits:t.precision||void 0,useGrouping:!1,maximumFractionDigits:String(n).length,round:n<0?"ceil":"floor"}:this._getPrecisionConfig(t.precision),"percent"===e?r.style="percent":"currency"===e&&(r.style="currency",r.currency=t.currency||(0,i.default)().defaultCurrency),r},_getPrecisionConfig:function(e){return null===e?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:e||0,maximumFractionDigits:e||0}},format:function(e,t){return"number"!=typeof e?e:("default"===(t=this._normalizeFormat(t)).currency&&(t.currency=(0,i.default)().defaultCurrency),t&&("function"==typeof t||t.type||t.formatter)?this.callBase.apply(this,arguments):l(t)(e))},_getCurrencySymbolInfo:function(e){var t=function(e){return new Intl.NumberFormat((0,r.locale)(),{style:"currency",currency:e})}(e);return this._extractCurrencySymbolInfo(t.format(0))},_extractCurrencySymbolInfo:function(e){var t=c.exec(e)||[];return{position:t[1]?"before":"after",symbol:t[1]||t[4]||"",delimiter:t[2]||t[3]||""}},getCurrencySymbol:function(e){return e||(e=(0,i.default)().defaultCurrency),{symbol:this._getCurrencySymbolInfo(e).symbol}},getOpenXmlCurrencyFormat:function(e){var t=e||(0,i.default)().defaultCurrency,n=this._getCurrencySymbolInfo(t).symbol,s=(0,r.getValueByClosestLocale)(function(e){return a.default[e]});return(0,o.default)(n,s)}}},LQDf:function(e,t,n){"use strict";var i=n("mdej"),r=n("l9EA"),o=n("5u+F"),a=n("KAnu"),s=n("ti0F"),c=n("1LL4").extend,u=n("imRD"),l=r.inherit({NAME:"Calendar",supportedKeys:function(){var e=function(e){return!!this.option("opened")&&(e.preventDefault(),!0)};return{rightArrow:function(){if(this.option("opened"))return!0},leftArrow:function(){if(this.option("opened"))return!0},enter:(function(e){if(this.dateBox.option("opened")){if(e.preventDefault(),this._widget.option("zoomLevel")!==this._widget.option("maxZoomLevel"))return!0;var t=this._widget._view.option("contouredDate");t&&"calendar"===this._lastActionElement&&this.dateBoxValue(t,e),this.dateBox.close(),this.dateBox._valueChangeEventHandler(e)}else this.dateBox._valueChangeEventHandler(e)}).bind(this),home:e,end:e}},getDisplayFormat:function(e){return e||"shortdate"},_getWidgetName:function(){return i},getKeyboardListener:function(){return this._widget},_getWidgetOptions:function(){var e=this.dateBox.option("disabledDates");return c(this.dateBox.option("calendarOptions"),{value:this.dateBoxValue()||null,dateSerializationFormat:null,min:this.dateBox.dateOption("min"),max:this.dateBox.dateOption("max"),onValueChanged:this._valueChangedHandler.bind(this),onCellClick:this._cellClickHandler.bind(this),tabIndex:null,disabledDates:s.isFunction(e)?this._injectComponent(e.bind(this.dateBox)):e,onContouredChanged:this._refreshActiveDescendant.bind(this),hasFocus:function(){return!0}})},_injectComponent:function(e){var t=this;return function(n){return c(n,{component:t.dateBox}),e(n)}},_refreshActiveDescendant:function(e){this._lastActionElement="calendar",this.dateBox.setAria("activedescendant",e.actionValue)},popupConfig:function(e){var t,n=e.toolbarItems,i=this.dateBox.option("buttonsLocation");return t="default"!==i?a.splitPair(i):["bottom","center"],"useButtons"===this.dateBox.option("applyValueMode")&&this._isCalendarVisible()&&n.unshift({widget:"dxButton",toolbar:t[0],location:"after"===t[1]?"before":t[1],options:{onInitialized:(function(e){e.component.registerKeyHandler("escape",this._escapeHandler.bind(this))}).bind(this),onClick:(function(){this._widget._toTodayView()}).bind(this),text:u.format("dxCalendar-todayButtonText"),type:"today"}}),c(!0,e,{toolbarItems:n,position:{collision:"flipfit flip"}})},_isCalendarVisible:function(){return s.isEmptyObject(this.dateBox.option("calendarOptions"))||!1!==this.dateBox.option("calendarOptions.visible")},_escapeHandler:function(){this.dateBox.close(),this.dateBox.focus()},_valueChangedHandler:function(e){var t=this.dateBox;o.sameDate(e.value,e.previousValue)||"instantly"===t.option("applyValueMode")&&this.dateBoxValue(this.getValue(),e.event)},_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},textChangedHandler:function(){this._lastActionElement="input",this.dateBox.option("opened")&&this._widget&&this._updateValue(!0)},_cellClickHandler:function(e){var t=this.dateBox;"instantly"===t.option("applyValueMode")&&(t.option("opened",!1),this.dateBoxValue(this.getValue(),e.event))}});e.exports=l},LRne:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("z+Ro"),r=n("yCtX"),o=n("jZKg");function a(){for(var e=arguments.length,t=new Array(e),n=0;n":"")+(0,g.encodeHtml)(e.message))}),t}(r);if(!e&&o){this._$validationMessage=(0,i.default)("
").addClass("dx-invalid-message").html(o).appendTo(n);var s=this._getValidationMessageTarget();this._validationMessage=this._createComponent(this._$validationMessage,h.default,(0,u.extend)({integrationOptions:{},templatesRenderAsynchronously:!1,target:s,shading:!1,width:"auto",height:"auto",container:n,position:this._getValidationMessagePosition("below"),closeOnOutsideClick:!1,closeOnTargetScroll:!1,animation:null,visible:!0,propagateOutsideClick:!0,_checkParentVisibility:!1},this._options.cache("validationTooltipOptions"))),this._$validationMessage.toggleClass(v,"auto"===t).toggleClass("dx-invalid-message-always","always"===t);var c="dx-"+new l.default;this._validationMessage.$content().addClass("dx-invalid-message-content").attr("id",c),this.setAria("describedby",c),this._setValidationMessageMaxWidth(),this._bindInnerWidgetOptions(this._validationMessage,"validationTooltipOptions")}}},_setValidationMessageMaxWidth:function(){if(this._validationMessage)if(0!==this._getValidationMessageTarget().outerWidth()){var e=Math.max(100,this._getValidationMessageTarget().outerWidth());this._validationMessage.option("maxWidth",e)}else this._validationMessage.option("maxWidth","100%")},_getValidationMessageTarget:function(){return this.$element()},_getValidationMessagePosition:function(e){var t=this.option("rtlEnabled"),n=(0,c.getDefaultAlignment)(t),i=this.option("validationMessageOffset"),r={h:i.h,v:i.v},o="below"===e?[" top"," bottom"]:[" bottom"," top"];return t&&(r.h=-r.h),"below"!==e&&(r.v=-r.v),{offset:r,boundary:this.option("validationBoundary"),my:n+o[0],at:n+o[1],collision:"none flip"}},_toggleReadOnlyState:function(){var e=this.option("readOnly");this._toggleBackspaceHandler(e),this.$element().toggleClass("dx-state-readonly",!!e),this.setAria("readonly",e||void 0)},_toggleBackspaceHandler:function(e){var t=this._keyboardEventBindingTarget(),n=(0,s.addNamespace)("keydown","editorReadOnly");p.default.off(t,n),e&&p.default.on(t,n,function(e){"backspace"===(0,s.normalizeKeyName)(e)&&e.preventDefault()})},_dispose:function(){var e=this.$element()[0];r.default.data(e,_,null),clearTimeout(this.showValidationMessageTimeout),this.callBase()},_setSubmitElementName:function(e){var t=this._getSubmitElement();t&&(e.length>0?t.attr("name",e):t.removeAttr("name"))},_getSubmitElement:function(){return null},_optionChanged:function(e){switch(e.name){case"onValueChanged":this._createValueChangeAction();break;case"isValid":case"validationError":this.option(f.default.synchronizeValidationOptions(e,this.option()));break;case"validationErrors":case"validationStatus":this.option(f.default.synchronizeValidationOptions(e,this.option())),this._renderValidationState();break;case"validationBoundary":case"validationMessageMode":this._renderValidationState();break;case"validationTooltipOptions":this._innerWidgetOptionChanged(this._validationMessage,e);break;case"readOnly":this._toggleReadOnlyState(),this._refreshFocusState();break;case"value":e.value!=e.previousValue&&this.validationRequest.fire({value:e.value,editor:this}),this._valueChangeActionSuppressed||(this._raiseValueChangeAction(e.value,e.previousValue),this._saveValueChangeEvent(void 0));break;case"width":this.callBase(e),this._setValidationMessageMaxWidth();break;case"name":this._setSubmitElementName(e.value);break;default:this.callBase(e)}},reset:function(){var e=this._getDefaultOptions();this.option("value",e.value)}});e.exports=b},LdFP:function(e,t,n){"use strict";var i=m(n("FKN7")),r=m(n("cGv3")),o=n("1LL4"),a=n("ti0F"),s=n("zl3R"),c=m(n("/7L9")),u=m(n("cYys")),l=m(n("xMpX")),d=m(n("/q2h")),h=n("DLVy"),f=n("yxpO"),p=m(n("CWM8")),g=m(n("2Fn2"));function m(e){return e&&e.__esModule?e:{default:e}}var v=r.default.getNavigator(),_=r.default.getWindow(),y={iPhone:"iPhone",iPhone5:"iPhone",iPhone6:"iPhone",iPhone6plus:"iPhone",iPad:"iPad",iPadMini:"iPad Mini",androidPhone:"Android Mobile",androidTablet:"Android",msSurface:"Windows ARM Tablet PC",desktop:"desktop"},b={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,generic:!0,grade:"A",mac:!1},w={generic:function(e){var t=/windows phone/i.test(e)||e.match(/WPDesktop/),n=!t&&/Windows(.*)arm(.*)Tablet PC/i.test(e),i=!t&&!n&&/msapphost/i.test(e),r=/((intel|ppc) mac os x)/.test(e.toLowerCase());if(t||n||i||r)return{deviceType:t?"phone":n?"tablet":"desktop",platform:"generic",version:[],grade:"A",mac:r}},ios:function(e){if(/ip(hone|od|ad)/i.test(e)){var t=/ip(hone|od)/i.test(e),n=e.match(/os (\d+)_(\d+)_?(\d+)?/i);return{deviceType:t?"phone":"tablet",platform:"ios",version:n?[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3]||0,10)]:[],grade:480===_.screen.height?"B":"A"}}},android:function(e){if(/android|htc_|silk/i.test(e)){var t=/mobile/i.test(e),n=e.match(/android (\d+)\.?(\d+)?\.?(\d+)?/i),i=n?[parseInt(n[1],10),parseInt(n[2]||0,10),parseInt(n[3]||0,10)]:[];return{deviceType:t?"phone":"tablet",platform:"android",version:i,grade:i.length>1&&(i[0]<4||4===i[0]&&i[1]<4)?"B":"A"}}}},C=new(function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._window=(null==t?void 0:t.window)||_,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this._eventsStrategy=new h.EventsStrategy(this),this.changed=(0,u.default)(),r.default.hasWindow()&&(l.default.add(this._recalculateOrientation.bind(this)),d.default.add(this._recalculateOrientation.bind(this)))}var t;return(t=[{key:"current",value:function(e){if(e)return this._currentDevice=this._getDevice(e),this._forced=!0,void this.changed.fire();if(!this._currentDevice){e=void 0;try{e=this._getDeviceOrNameFromWindowScope()}catch(t){e=this._getDeviceNameFromSessionStorage()}finally{e||(e=this._getDeviceNameFromSessionStorage()),e&&(this._forced=!0)}this._currentDevice=this._getDevice(e)}return this._currentDevice}},{key:"real",value:function(e){return(0,o.extend)({},this._realDevice)}},{key:"orientation",value:function(){return this._currentOrientation}},{key:"isForced",value:function(){return this._forced}},{key:"isRippleEmulator",value:function(){return!!this._window.tinyHippos}},{key:"_getCssClasses",value:function(e){var t=[],n=this._realDevice;return(e=e||this.current()).deviceType&&(t.push("dx-device-".concat(e.deviceType)),"desktop"!==e.deviceType&&t.push("dx-device-mobile")),t.push("dx-device-".concat(n.platform)),n.version&&n.version.length&&t.push("dx-device-".concat(n.platform,"-").concat(n.version[0])),this.isSimulator()&&t.push("dx-simulator"),(0,g.default)().rtlEnabled&&t.push("dx-rtl"),t}},{key:"attachCssClasses",value:function(e,t){this._deviceClasses=this._getCssClasses(t).join(" "),(0,i.default)(e).addClass(this._deviceClasses)}},{key:"detachCssClasses",value:function(e){(0,i.default)(e).removeClass(this._deviceClasses)}},{key:"isSimulator",value:function(){try{return this._isSimulator||r.default.hasWindow()&&this._window.top!==this._window.self&&this._window.top["dx-force-device"]||this.isRippleEmulator()}catch(e){return!1}}},{key:"forceSimulator",value:function(){this._isSimulator=!0}},{key:"_getDevice",value:function(e){if("genericPhone"===e&&(e={deviceType:"phone",platform:"generic",generic:!0}),(0,a.isPlainObject)(e))return this._fromConfig(e);var t;if(e){if(!(t=y[e]))throw c.default.Error("E0005")}else t=v.userAgent;return this._fromUA(t)}},{key:"_getDeviceOrNameFromWindowScope",value:function(){var e;return r.default.hasWindow()&&(this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"])&&(e=this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"]),e}},{key:"_getDeviceNameFromSessionStorage",value:function(){var e=(0,f.sessionStorage)();if(e){var t=e.getItem("dx-force-device");try{return JSON.parse(t)}catch(n){return t}}}},{key:"_fromConfig",value:function(e){var t=(0,o.extend)({},b,this._currentDevice,e);return(0,o.extend)(t,{phone:"phone"===t.deviceType,tablet:"tablet"===t.deviceType,android:"android"===t.platform,ios:"ios"===t.platform,generic:"generic"===t.platform})}},{key:"_fromUA",value:function(e){var t;return(0,s.each)(w,function(n,i){return!(t=i(e))}),t?this._fromConfig(t):b}},{key:"_changeOrientation",value:function(){var e=(0,i.default)(this._window),t=e.height()>e.width()?"portrait":"landscape";this._currentOrientation!==t&&(this._currentOrientation=t,this._eventsStrategy.fireEvent("orientationChanged",[{orientation:t}]))}},{key:"_recalculateOrientation",value:function(){var e=(0,i.default)(this._window).width();this._currentWidth!==e&&(this._currentWidth=e,this._changeOrientation())}},{key:"on",value:function(e,t){return this._eventsStrategy.on(e,t),this}},{key:"off",value:function(e,t){return this._eventsStrategy.off(e,t),this}}])&&function(e,t){for(var n=0;n>6,128|63&i);else if(55296==(64512&i))if(n>18,128|i>>12&63,128|i>>6&63,128|63&i)}else t.push(239,191,189);else 56320==(64512&i)?t.push(239,191,189):t.push(224|i>>12,128|i>>6&63,128|63&i)}return new Uint8Array(t)}function S(e,t){switch(e){case y.BASE64:var n=-1!==t.indexOf("-"),i=-1!==t.indexOf("_");if(n||i)throw v(e,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case y.BASE64URL:var r=-1!==t.indexOf("+"),o=-1!==t.indexOf("/");if(r||o)throw v(e,"Invalid character '"+(r?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/")}var a;try{a=atob(t)}catch(u){throw v(e,"Invalid character found")}for(var s=new Uint8Array(a.length),c=0;c][;base64],");var n,i,r=t[1]||null;null!=r&&(this.base64=(n=r).length>=(i=";base64").length&&n.substring(n.length-i.length)===i,this.contentType=this.base64?r.substring(0,r.length-";base64".length):r),this.rest=e.substring(e.indexOf(",")+1)}}(),x={STATE_CHANGED:"state_changed"},T="running",E="pausing",I="paused",D="success",M="canceling",A="canceled",P="error",L={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function R(e){switch(e){case T:case E:case M:return L.RUNNING;case I:return L.PAUSED;case D:return L.SUCCESS;case A:return L.CANCELED;case P:default:return L.ERROR}}function j(e){return null!=e}function N(e){return void 0!==e}function F(e){return"function"==typeof e}function B(e){return"object"==typeof e}function V(e){return B(e)&&null!==e}function $(e){return"string"==typeof e||e instanceof String}function H(e){return U(e)&&Number.isInteger(e)}function U(e){return"number"==typeof e||e instanceof Number}function z(e){return W()&&e instanceof Blob}function W(){return"undefined"!=typeof Blob}var Y=function(e){return e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT",e}({}),G=function(){function e(){var e=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=Y.NO_ERROR,this.sendPromise_=new Promise(function(t){e.xhr_.addEventListener("abort",function(){e.errorCode_=Y.ABORT,t(e)}),e.xhr_.addEventListener("error",function(){e.errorCode_=Y.NETWORK_ERROR,t(e)}),e.xhr_.addEventListener("load",function(){t(e)})})}return e.prototype.send=function(e,t,n,i){if(this.sent_)throw _("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(t,e,!0),j(i))for(var r in i)i.hasOwnProperty(r)&&this.xhr_.setRequestHeader(r,i[r].toString());return j(n)?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_},e.prototype.getErrorCode=function(){if(!this.sent_)throw _("cannot .getErrorCode() before sending");return this.errorCode_},e.prototype.getStatus=function(){if(!this.sent_)throw _("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return-1}},e.prototype.getResponseText=function(){if(!this.sent_)throw _("cannot .getResponseText() before sending");return this.xhr_.responseText},e.prototype.abort=function(){this.xhr_.abort()},e.prototype.getResponseHeader=function(e){return this.xhr_.getResponseHeader(e)},e.prototype.addUploadProgressListener=function(e){j(this.xhr_.upload)&&this.xhr_.upload.addEventListener("progress",e)},e.prototype.removeUploadProgressListener=function(e){j(this.xhr_.upload)&&this.xhr_.upload.removeEventListener("progress",e)},e}(),q=function(){function e(){}return e.prototype.createXhrIo=function(){return new G},e}();function K(){return"undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function X(){for(var e=[],t=0;t0}).join("/");return 0===e.length?n:e+"/"+n}function te(e){var t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}function ne(e){return"https://"+s+"/v0"+e}function ie(e){var t=encodeURIComponent,n="?";for(var i in e)e.hasOwnProperty(i)&&(n=n+(t(i)+"=")+t(e[i])+"&");return n.slice(0,-1)}function re(e,t){return t}var oe=function(){return function(e,t,n,i){this.server=e,this.local=t||e,this.writable=!!n,this.xform=i||re}}(),ae=null;function se(e,t,n){var i=Z(t);return null===i?null:function(e,t,n){for(var i={type:"file"},r=n.length,o=0;o1e3)throw"Expected maxResults to be less than or equal to 1000."}else{if("pageToken"!==t)throw"Unknown option: "+t;if(e.pageToken&&!$(e.pageToken))throw"Expected pageToken to be string."}}var de=function(){return function(e,t,n,i){this.url=e,this.method=t,this.handler=n,this.timeout=i,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}();function he(e){if(!e)throw d()}function fe(e,t){return function(n,i){var r=se(e,i,t);return he(null!==r),r}}function pe(e){return function(t,n){var i;return(i=401===t.getStatus()?new c("unauthenticated","User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?new c("quota-exceeded","Quota for bucket '"+e.bucket+"' exceeded, please view quota on https://firebase.google.com/pricing/."):403===t.getStatus()?new c("unauthorized","User does not have permission to access '"+e.path+"'."):n).setServerResponseProp(n.serverResponseProp()),i}}function ge(e){var t=pe(e);return function(n,i){var r=t(n,i);return 404===n.getStatus()&&(r=new c("object-not-found","Object '"+e.path+"' does not exist.")),r.setServerResponseProp(i.serverResponseProp()),r}}function me(e,t,n){var i=ne(t.fullServerUrl()),r=e.maxOperationRetryTime(),o=new de(i,"GET",fe(e,n),r);return o.errorHandler=ge(t),o}function ve(e,t,n,i,r){var o={};o.prefix=t.isRoot?"":t.path+"/",n&&n.length>0&&(o.delimiter=n),i&&(o.pageToken=i),r&&(o.maxResults=r);var a=ne(t.bucketOnlyServerUrl()),s=e.maxOperationRetryTime(),u=new de(a,"GET",function(e){return function(t,n){var i=function(e,t){var n=Z(t);return null===n?null:function(e,t){var n={prefixes:[],items:[],nextPageToken:t.nextPageToken},i=e.bucket();if(null===i)throw new c("no-default-bucket","No default bucket found. Did you set the 'storageBucket' property when initializing the app?");if(t.prefixes)for(var r=0,o=t.prefixes;r=0))throw"Expected a number 0 or greater."})}function Le(e,t){return new Ee(function(t){if(!(null===t||j(t)&&t instanceof Object))throw"Expected an Object.";null!=e&&e(t)},t)}function Re(e){return new Ee(function(e){if(null!==e&&!F(e))throw"Expected a Function."},e)}function je(e){return function(){for(var t=[],n=0;n262144},e.prototype.start_=function(){this.state_===T&&null===this.request_&&(this.resumable_?null===this.uploadUrl_?this.createResumable_():this.needToFetchStatus_?this.fetchStatus_():this.needToFetchMetadata_?this.fetchMetadata_():this.continueUpload_():this.oneShotUpload_())},e.prototype.resolveToken_=function(e){var t=this;this.authWrapper_.getAuthToken().then(function(n){switch(t.state_){case T:e(n);break;case M:t.transition_(A);break;case E:t.transition_(I)}})},e.prototype.createResumable_=function(){var e=this;this.resolveToken_(function(t){var n=function(e,t,n,i,r){var o=t.bucketOnlyServerUrl(),a=we(t,i,r),s={name:a.fullPath},c=ne(o),u={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":i.size(),"X-Goog-Upload-Header-Content-Type":a.contentType,"Content-Type":"application/json; charset=utf-8"},l=ce(a,n),d=e.maxUploadRetryTime(),h=new de(c,"POST",function(e){var t;Oe(e);try{t=e.getResponseHeader("X-Goog-Upload-URL")}catch(n){he(!1)}return he($(t)),t},d);return h.urlParams=s,h.headers=u,h.body=l,h.errorHandler=pe(t),h}(e.authWrapper_,e.location_,e.mappings_,e.blob_,e.metadata_),i=e.authWrapper_.makeRequest(n,t);e.request_=i,i.getPromise().then(function(t){e.request_=null,e.uploadUrl_=t,e.needToFetchStatus_=!1,e.completeTransitions_()},e.errorHandler_)})},e.prototype.fetchStatus_=function(){var e=this,t=this.uploadUrl_;this.resolveToken_(function(n){var i=function(e,t,n,i){var r=e.maxUploadRetryTime(),o=new de(n,"POST",function(e){var t=Oe(e,["active","final"]),n=null;try{n=e.getResponseHeader("X-Goog-Upload-Size-Received")}catch(o){he(!1)}n||he(!1);var r=Number(n);return he(!isNaN(r)),new Ce(r,i.size(),"final"===t)},r);return o.headers={"X-Goog-Upload-Command":"query"},o.errorHandler=pe(t),o}(e.authWrapper_,e.location_,t,e.blob_),r=e.authWrapper_.makeRequest(i,n);e.request_=r,r.getPromise().then(function(t){t=t,e.request_=null,e.updateProgress_(t.current),e.needToFetchStatus_=!1,t.finalized&&(e.needToFetchMetadata_=!0),e.completeTransitions_()},e.errorHandler_)})},e.prototype.continueUpload_=function(){var e=this,t=Se*this.chunkMultiplier_,n=new Ce(this.transferred_,this.blob_.size()),i=this.uploadUrl_;this.resolveToken_(function(r){var o;try{o=function(e,t,n,i,r,o,a,s){var u=new Ce(0,0);if(a?(u.current=a.current,u.total=a.total):(u.current=0,u.total=i.size()),i.size()!==u.total)throw new c("server-file-wrong-size","Server recorded incorrect upload file size, please retry the upload.");var l=u.total-u.current,d=l;r>0&&(d=Math.min(d,r));var h=u.current,p={"X-Goog-Upload-Command":d===l?"upload, finalize":"upload","X-Goog-Upload-Offset":u.current},g=i.slice(h,h+d);if(null===g)throw f();var m=t.maxUploadRetryTime(),v=new de(n,"POST",function(e,n){var r,a=Oe(e,["active","final"]),s=u.current+d,c=i.size();return r="final"===a?fe(t,o)(e,n):null,new Ce(s,c,"final"===a,r)},m);return v.headers=p,v.body=g.uploadData(),v.progressCallback=s||null,v.errorHandler=pe(e),v}(e.location_,e.authWrapper_,i,e.blob_,t,e.mappings_,n,e.makeProgressCallback_())}catch(s){return e.error_=s,void e.transition_(P)}var a=e.authWrapper_.makeRequest(o,r);e.request_=a,a.getPromise().then(function(t){e.increaseMultiplier_(),e.request_=null,e.updateProgress_(t.current),t.finalized?(e.metadata_=t.metadata,e.transition_(D)):e.completeTransitions_()},e.errorHandler_)})},e.prototype.increaseMultiplier_=function(){Se*this.chunkMultiplier_<33554432&&(this.chunkMultiplier_*=2)},e.prototype.fetchMetadata_=function(){var e=this;this.resolveToken_(function(t){var n=me(e.authWrapper_,e.location_,e.mappings_),i=e.authWrapper_.makeRequest(n,t);e.request_=i,i.getPromise().then(function(t){e.request_=null,e.metadata_=t,e.transition_(D)},e.metadataErrorHandler_)})},e.prototype.oneShotUpload_=function(){var e=this;this.resolveToken_(function(t){var n=function(e,t,n,i,r){var o=t.bucketOnlyServerUrl(),a={"X-Goog-Upload-Protocol":"multipart"},s=function(){for(var e="",t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();a["Content-Type"]="multipart/related; boundary="+s;var c=we(t,i,r),u=ce(c,n),l=J.getBlob("--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+u+"\r\n--"+s+"\r\nContent-Type: "+c.contentType+"\r\n\r\n",i,"\r\n--"+s+"--");if(null===l)throw f();var d={name:c.fullPath},h=ne(o),p=e.maxUploadRetryTime(),g=new de(h,"POST",fe(e,n),p);return g.urlParams=d,g.headers=a,g.body=l.uploadData(),g.errorHandler=pe(t),g}(e.authWrapper_,e.location_,e.mappings_,e.blob_,e.metadata_),i=e.authWrapper_.makeRequest(n,t);e.request_=i,i.getPromise().then(function(t){e.request_=null,e.metadata_=t,e.updateProgress_(e.blob_.size()),e.transition_(D)},e.errorHandler_)})},e.prototype.updateProgress_=function(e){var t=this.transferred_;this.transferred_=e,this.transferred_!==t&&this.notifyObservers_()},e.prototype.transition_=function(e){if(this.state_!==e)switch(e){case M:case E:this.state_=e,null!==this.request_&&this.request_.cancel();break;case T:var t=this.state_===I;this.state_=e,t&&(this.notifyObservers_(),this.start_());break;case I:this.state_=e,this.notifyObservers_();break;case A:this.error_=h(),this.state_=e,this.notifyObservers_();break;case P:case D:this.state_=e,this.notifyObservers_()}},e.prototype.completeTransitions_=function(){switch(this.state_){case E:this.transition_(I);break;case M:this.transition_(A);break;case T:this.start_()}},Object.defineProperty(e.prototype,"snapshot",{get:function(){var e=R(this.state_);return new xe(this.transferred_,this.blob_.size(),e,this.metadata_,this,this.ref_)},enumerable:!0,configurable:!0}),e.prototype.on=function(e,t,n,i){function r(){if(e!==x.STATE_CHANGED)throw"Expected one of the event types: ["+x.STATE_CHANGED+"]."}var o="Expected a function or an Object with one of `next`, `error`, `complete` properties.",a=Re(!0).validator,s=Le(null,!0).validator;function c(e){try{return void a(e)}catch(t){}try{if(s(e),!(N(e.next)||N(e.error)||N(e.complete)))throw"";return}catch(t){throw o}}var u=[Ie(r),Le(c,!0),Re(!0),Re(!0)];Te("on",u,arguments);var l=this;function d(e){return function(t,n,r){null!==e&&Te("on",e,arguments);var o=new ke(t,n,i);return l.addObserver_(o),function(){l.removeObserver_(o)}}}function h(e){if(null===e)throw o;c(e)}var f=[Le(h),Re(!0),Re(!0)],p=!(N(t)||N(n)||N(i));return p?d(f):d(null)(t,n,i)},e.prototype.then=function(e,t){return this.promise_.then(e,t)},e.prototype.catch=function(e){return this.then(null,e)},e.prototype.addObserver_=function(e){this.observers_.push(e),this.notifyObserver_(e)},e.prototype.removeObserver_=function(e){var t=this.observers_.indexOf(e);-1!==t&&this.observers_.splice(t,1)},e.prototype.notifyObservers_=function(){var e=this;this.finishPromise_(),this.observers_.slice().forEach(function(t){e.notifyObserver_(t)})},e.prototype.finishPromise_=function(){if(null!==this.resolve_){var e=!0;switch(R(this.state_)){case L.SUCCESS:je(this.resolve_.bind(null,this.snapshot))();break;case L.CANCELED:case L.ERROR:je(this.reject_.bind(null,this.error_))();break;default:e=!1}e&&(this.resolve_=null,this.reject_=null)}},e.prototype.notifyObserver_=function(e){switch(R(this.state_)){case L.RUNNING:case L.PAUSED:e.next&&je(e.next.bind(e,this.snapshot))();break;case L.SUCCESS:e.complete&&je(e.complete.bind(e))();break;case L.CANCELED:case L.ERROR:e.error&&je(e.error.bind(e,this.error_))();break;default:e.error&&je(e.error.bind(e,this.error_))()}},e.prototype.resume=function(){Te("resume",[],arguments);var e=this.state_===I||this.state_===E;return e&&this.transition_(T),e},e.prototype.pause=function(){Te("pause",[],arguments);var e=this.state_===T;return e&&this.transition_(E),e},e.prototype.cancel=function(){Te("cancel",[],arguments);var e=this.state_===T||this.state_===E;return e&&this.transition_(M),e},e}(),Fe=function(){function e(e,t){this.authWrapper=e,this.location=t instanceof Q?t:Q.makeFromUrl(t)}return e.prototype.toString=function(){return Te("toString",[],arguments),"gs://"+this.location.bucket+"/"+this.location.path},e.prototype.newRef=function(t,n){return new e(t,n)},e.prototype.mappings=function(){return function(){if(ae)return ae;var e=[];e.push(new oe("bucket")),e.push(new oe("generation")),e.push(new oe("metageneration")),e.push(new oe("name","fullPath",!0));var t=new oe("name");t.xform=function(e,t){return function(e){return!$(e)||e.length<2?e:te(e)}(t)},e.push(t);var n=new oe("size");return n.xform=function(e,t){return j(t)?Number(t):t},e.push(n),e.push(new oe("timeCreated")),e.push(new oe("updated")),e.push(new oe("md5Hash",null,!0)),e.push(new oe("cacheControl",null,!0)),e.push(new oe("contentDisposition",null,!0)),e.push(new oe("contentEncoding",null,!0)),e.push(new oe("contentLanguage",null,!0)),e.push(new oe("contentType",null,!0)),e.push(new oe("metadata","customMetadata",!0)),ae=e}()},e.prototype.child=function(e){Te("child",[Ie()],arguments);var t=ee(this.location.path,e),n=new Q(this.location.bucket,t);return this.newRef(this.authWrapper,n)},Object.defineProperty(e.prototype,"parent",{get:function(){var e=function(e){if(0===e.length)return null;var t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}(this.location.path);if(null===e)return null;var t=new Q(this.location.bucket,e);return this.newRef(this.authWrapper,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){var e=new Q(this.location.bucket,"");return this.newRef(this.authWrapper,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bucket",{get:function(){return this.location.bucket},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullPath",{get:function(){return this.location.path},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return te(this.location.path)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"storage",{get:function(){return this.authWrapper.service()},enumerable:!0,configurable:!0}),e.prototype.put=function(e,t){return void 0===t&&(t=null),Te("put",[De(),Me(!0)],arguments),this.throwIfRoot_("put"),new Ne(this,this.authWrapper,this.location,this.mappings(),new J(e),t)},e.prototype.putString=function(e,t,n){void 0===t&&(t=y.RAW),Te("putString",[Ie(),Ie(b,!0),Me(!0)],arguments),this.throwIfRoot_("putString");var i=C(t,e),r=Object.assign({},n);return!j(r.contentType)&&j(i.contentType)&&(r.contentType=i.contentType),new Ne(this,this.authWrapper,this.location,this.mappings(),new J(i.data,!0),r)},e.prototype.delete=function(){var e=this;return Te("delete",[],arguments),this.throwIfRoot_("delete"),this.authWrapper.getAuthToken().then(function(t){var n=be(e.authWrapper,e.location);return e.authWrapper.makeRequest(n,t).getPromise()})},e.prototype.listAll=function(){Te("listAll",[],arguments);var e={prefixes:[],items:[]};return this.listAllHelper(e).then(function(){return e})},e.prototype.listAllHelper=function(e,t){return Object(o.__awaiter)(this,void 0,void 0,function(){var n,i,r;return Object(o.__generator)(this,function(o){switch(o.label){case 0:return[4,this.list({pageToken:t})];case 1:return n=o.sent(),(i=e.prefixes).push.apply(i,n.prefixes),(r=e.items).push.apply(r,n.items),null==n.nextPageToken?[3,3]:[4,this.listAllHelper(e,n.nextPageToken)];case 2:o.sent(),o.label=3;case 3:return[2]}})})},e.prototype.list=function(e){Te("list",[Ae(!0)],arguments);var t=this;return this.authWrapper.getAuthToken().then(function(n){var i=e||{},r=ve(t.authWrapper,t.location,"/",i.pageToken,i.maxResults);return t.authWrapper.makeRequest(r,n).getPromise()})},e.prototype.getMetadata=function(){var e=this;return Te("getMetadata",[],arguments),this.throwIfRoot_("getMetadata"),this.authWrapper.getAuthToken().then(function(t){var n=me(e.authWrapper,e.location,e.mappings());return e.authWrapper.makeRequest(n,t).getPromise()})},e.prototype.updateMetadata=function(e){var t=this;return Te("updateMetadata",[Me()],arguments),this.throwIfRoot_("updateMetadata"),this.authWrapper.getAuthToken().then(function(n){var i=ye(t.authWrapper,t.location,e,t.mappings());return t.authWrapper.makeRequest(i,n).getPromise()})},e.prototype.getDownloadURL=function(){var e=this;return Te("getDownloadURL",[],arguments),this.throwIfRoot_("getDownloadURL"),this.authWrapper.getAuthToken().then(function(t){var n=_e(e.authWrapper,e.location,e.mappings());return e.authWrapper.makeRequest(n,t).getPromise().then(function(e){if(null===e)throw p();return e})})},e.prototype.throwIfRoot_=function(e){if(""===this.location.path)throw function(e){return new c("invalid-root-operation","The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(e)},e}(),Be=function(){function e(e){this.promise_=Promise.reject(e)}return e.prototype.getPromise=function(){return this.promise_},e.prototype.cancel=function(e){},e}(),Ve=function(){function e(){this.map=new Map,this.id=-9007199254740991}return e.prototype.addRequest=function(e){var t=this,n=this.id;this.id++,this.map.set(n,e),e.getPromise().then(function(){return t.map.delete(n)},function(){return t.map.delete(n)})},e.prototype.clear=function(){this.map.forEach(function(e){e&&e.cancel(!0)}),this.map.clear()},e}(),$e=function(){function e(t,n,i,r,o,a){if(this.bucket_=null,this.deleted_=!1,this.app_=t,null!==this.app_){var s=this.app_.options;j(s)&&(this.bucket_=e.extractBucket_(s))}this.authProvider_=n,this.storageRefMaker_=i,this.requestMaker_=r,this.pool_=a,this.service_=o,this.maxOperationRetryTime_=12e4,this.maxUploadRetryTime_=6e5,this.requestMap_=new Ve}return e.extractBucket_=function(e){var t=e.storageBucket||null;return null==t?null:Q.makeFromBucketSpec(t).bucket},e.prototype.getAuthToken=function(){var e=this.authProvider_.getImmediate({optional:!0});return e?e.getToken().then(function(e){return null!==e?e.accessToken:null},function(){return null}):Promise.resolve(null)},e.prototype.bucket=function(){if(this.deleted_)throw m();return this.bucket_},e.prototype.service=function(){return this.service_},e.prototype.makeStorageReference=function(e){return this.storageRefMaker_(this,e)},e.prototype.makeRequest=function(e,t){if(this.deleted_)return new Be(m());var n=this.requestMaker_(e,t,this.pool_);return this.requestMap_.addRequest(n),n},e.prototype.deleteApp=function(){this.deleted_=!0,this.app_=null,this.requestMap_.clear()},e.prototype.maxUploadRetryTime=function(){return this.maxUploadRetryTime_},e.prototype.setMaxUploadRetryTime=function(e){this.maxUploadRetryTime_=e},e.prototype.maxOperationRetryTime=function(){return this.maxOperationRetryTime_},e.prototype.setMaxOperationRetryTime=function(e){this.maxOperationRetryTime_=e},e}(),He=function(){function e(e,t,n,i,r,o,a,s,c,u,l){var d=this;this.pendingXhr_=null,this.backoffId_=null,this.resolve_=null,this.reject_=null,this.canceled_=!1,this.appDelete_=!1,this.url_=e,this.method_=t,this.headers_=n,this.body_=i,this.successCodes_=r.slice(),this.additionalRetryCodes_=o.slice(),this.callback_=a,this.errorCallback_=s,this.progressCallback_=u,this.timeout_=c,this.pool_=l,this.promise_=new Promise(function(e,t){d.resolve_=e,d.reject_=t,d.start_()})}return e.prototype.start_=function(){var e=this;function t(t,n){var i,r=e.resolve_,o=e.reject_,a=n.xhr;if(n.wasSuccessCode)try{var s=e.callback_(a,a.getResponseText());N(s)?r(s):r()}catch(u){o(u)}else null!==a?((i=d()).setServerResponseProp(a.getResponseText()),o(e.errorCallback_?e.errorCallback_(a,i):i)):o(i=n.canceled?e.appDelete_?m():h():new c("retry-limit-exceeded","Max retry time for operation exceeded, please try again."))}this.canceled_?t(0,new Ue(!1,null,!0)):this.backoffId_=function(t,n,i){var r=1,a=null,s=!1,c=0;function u(){return 2===c}var l=!1;function d(){for(var e=[],t=0;t=500&&e<600,n=-1!==[408,429].indexOf(e),i=-1!==this.additionalRetryCodes_.indexOf(e);return t||n||i},e}(),Ue=function(){return function(e,t,n){this.wasSuccessCode=e,this.xhr=t,this.canceled=!!n}}();function ze(e,t,n){var i=ie(e.urlParams),o=e.url+i,a=Object.assign({},e.headers);return function(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}(a,t),function(e){e["X-Firebase-Storage-Version"]="webjs/"+(void 0!==r.a?r.a.SDK_VERSION:"AppManager")}(a),new He(o,e.method,a,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,n)}var We=function(){function e(e,t,n,i){if(this.bucket_=null,this.authWrapper_=new $e(e,t,function(e,t){return new Fe(e,t)},ze,this,n),this.app_=e,null!=i)this.bucket_=Q.makeFromBucketSpec(i);else{var r=this.authWrapper_.bucket();null!=r&&(this.bucket_=new Q(r,""))}this.internals_=new Ye(this)}return e.prototype.ref=function(e){function t(e){if("string"!=typeof e)throw"Path is not a string.";if(/^[A-Za-z]+:\/\//.test(e))throw"Expected child path but got a URL, use refFromURL instead."}if(Te("ref",[Ie(t,!0)],arguments),null==this.bucket_)throw new Error("No Storage Bucket defined in Firebase Options.");var n=new Fe(this.authWrapper_,this.bucket_);return null!=e?n.child(e):n},e.prototype.refFromURL=function(e){function t(e){if("string"!=typeof e)throw"Path is not a string.";if(!/^[A-Za-z]+:\/\//.test(e))throw"Expected full URL but got a child path, use ref instead.";try{Q.makeFromUrl(e)}catch(t){throw"Expected valid full URL but got an invalid one."}}return Te("refFromURL",[Ie(t,!1)],arguments),new Fe(this.authWrapper_,e)},Object.defineProperty(e.prototype,"maxUploadRetryTime",{get:function(){return this.authWrapper_.maxUploadRetryTime()},enumerable:!0,configurable:!0}),e.prototype.setMaxUploadRetryTime=function(e){Te("setMaxUploadRetryTime",[Pe()],arguments),this.authWrapper_.setMaxUploadRetryTime(e)},e.prototype.setMaxOperationRetryTime=function(e){Te("setMaxOperationRetryTime",[Pe()],arguments),this.authWrapper_.setMaxOperationRetryTime(e)},Object.defineProperty(e.prototype,"app",{get:function(){return this.app_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"INTERNAL",{get:function(){return this.internals_},enumerable:!0,configurable:!0}),e}(),Ye=function(){function e(e){this.service_=e}return e.prototype.delete=function(){return this.service_.authWrapper_.deleteApp(),Promise.resolve()},e}();function Ge(e,t){var n=e.getProvider("app").getImmediate(),i=e.getProvider("auth-internal");return new We(n,i,new q,t)}function qe(e){var t={TaskState:L,TaskEvent:x,StringFormat:y,Storage:We,Reference:Fe};e.INTERNAL.registerComponent(new a.Component("storage",Ge,"PUBLIC").setServiceProps(t).setMultipleInstances(!0)),e.registerVersion("@firebase/storage","0.3.22")}qe(r.a)},Loxo:function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(n("wd/R"))},LtN7:function(e,t,n){"use strict";var i=b(n("jeLr")),r=b(n("GYHJ")),o=b(n("AJM7")),a=b(n("8S5z")),s=n("iWOQ"),c=b(n("imRD")),u=b(n("XCcL")),l=n("yxXJ"),d=n("zl3R"),h=n("ti0F"),f=n("XgSC"),p=n("1LL4"),g=n("8Cge"),m=b(n("dYUP")),v=n("XDlg"),_=n("tJvG"),y=n("Yt8F");function b(e){return e&&e.__esModule?e:{default:e}}var w={month:function(e){return m.default.getMonthNames()[e-1]},quarter:function(e){return m.default.format(new Date(2e3,3*e-1),"quarter")}},C=r.default.ViewController.inherit({init:function(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._headerFilterView=this.getView("headerFilterView")},_updateSelectedState:function(e,t){for(var n=e.length,i="exclude"===t.filterType;n--;){var r=e[n];"items"in e[n]&&this._updateSelectedState(e[n].items,t),(0,s.updateHeaderFilterItemSelectionState)(r,a.default.getIndexByKey(e[n].value,t.filterValues,null)>-1,i)}},_normalizeGroupItem:function(e,t,n){var i,r,o=n.path,a=n.valueSelector,s=n.displaySelector,c=n.column;return a&&s?(i=a(e),r=s(e)):r=i=e.key,e=(0,h.isObject)(e)?(0,p.extend)({},e):{},o.push(i),e.value=1===o.length?o[0]:o.join("/"),e.text=this.getHeaderItemText(r,c,t,n.headerFilterOptions),e},getHeaderItemText:function(e,t,n,i){var r=a.default.formatValue(e,function(e,t,n){var i=o.default.getGroupInterval(t),r=a.default.getFormatOptionsByColumn(t,"headerFilter");return i&&(r.groupInterval=i[n],a.default.isDateType(t.dataType)?r.format=w[i[n]]:"number"===t.dataType&&(r.getDisplayFormat=function(){var r={format:t.format,target:"headerFilter"},o=a.default.formatValue(e,r),s=a.default.formatValue(e+i[n],r);return o&&s?o+" - "+s:""})),r}(e,t,n));return r||(r=i.texts.emptyValue),r},_processGroupItems:function(e,t,n,i){var r,o,a=i.column.lookup,s=i.level;n=n||[],t=t||0,a&&(r=(0,l.compileGetter)(a.displayExpr),o=(0,l.compileGetter)(a.valueExpr));for(var c=0;c1?"tree":"list",remoteFiltering:s,onShowing:function(t){var i=t.component.overlayContent().dxResizable("instance");i&&i.option("onResizeEnd",function(t){var i=n.getController("columns"),r=i.columnOption(e.dataField,"headerFilter");(r=r||{}).width=t.width,r.height=t.height,i.columnOption(e.dataField,"headerFilter",r,!0)})},onHidden:function(){return(0,y.restoreFocus)(t)}}),e.dataSource=n.getDataSource(e),e.isFilterBuilder&&(e.dataSource.filter=null,e.alignment="right"),n._headerFilterView.showHeaderFilterMenu(e.columnElement,e)}},hideHeaderFilterMenu:function(){this._headerFilterView.hideHeaderFilterMenu()}}),O=(0,p.extend)({},s.headerFilterMixin,{_renderCellContent:function(e,t){var n,i=this,r=t.column;!r.command&&(0,s.allowHeaderFiltering)(r)&&i.option("headerFilter.visible")&&"header"===t.rowType&&(n=i._applyColumnState({name:"headerFilter",rootElement:e,column:r,showColumnLines:i.option("showColumnLines")}))&&i._subscribeToIndicatorEvent(n,r,"headerFilter"),i.callBase(e,t)},_subscribeToIndicatorEvent:function(e,t,n){var r=this;"headerFilter"===n&&i.default.on(e,u.default.name,r.createAction(function(e){e.event.stopPropagation(),r.getController("headerFilter").showHeaderFilterMenu(t.index,!1)}))},_updateIndicator:function(e,t,n){var i=this.callBase(e,t,n);i&&this._subscribeToIndicatorEvent(i,t,n)},_updateHeaderFilterIndicators:function(){this.option("headerFilter.visible")&&this._updateIndicators("headerFilter")},_needUpdateFilterIndicators:function(){return!0},_columnOptionChanged:function(e){a.default.checkChanges(e.optionNames,["filterValues","filterType"])?this._needUpdateFilterIndicators()&&this._updateHeaderFilterIndicators():this.callBase(e)}}),S=(0,p.extend)({},s.headerFilterMixin,{_createGroupPanelItem:function(e,t){var n,r=this,o=r.callBase.apply(r,arguments);return!t.command&&(0,s.allowHeaderFiltering)(t)&&r.option("headerFilter.visible")&&(n=r._applyColumnState({name:"headerFilter",rootElement:o,column:{alignment:(0,f.getDefaultAlignment)(r.option("rtlEnabled")),filterValues:t.filterValues,allowHeaderFiltering:!0},showColumnLines:!0}))&&i.default.on(n,u.default.name,r.createAction(function(e){e.event.stopPropagation(),r.getController("headerFilter").showHeaderFilterMenu(t.index,!0)})),o}});e.exports={invertFilterExpression:function(e){return["!",e]},defaultOptions:function(){return{headerFilter:{visible:!1,width:252,height:325,allowSearch:!1,searchTimeout:500,texts:{emptyValue:c.default.format("dxDataGrid-headerFilterEmptyValue"),ok:c.default.format("dxDataGrid-headerFilterOK"),cancel:c.default.format("dxDataGrid-headerFilterCancel")}}}},controllers:{headerFilter:C},views:{headerFilterView:s.HeaderFilterView},extenders:{controllers:{data:{skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var e=this,t=[e.callBase()],n=e._columnsController.getVisibleColumns(null,!0),i=e.getController("headerFilter").getCurrentColumn();return(0,d.each)(n,function(e,n){var r;if((!i||i.index!==n.index)&&(0,s.allowHeaderFiltering)(n)&&n.calculateFilterExpression&&Array.isArray(n.filterValues)&&n.filterValues.length){var o=[];(0,d.each)(n.filterValues,function(e,t){Array.isArray(t)?r=t:(n.deserializeValue&&!a.default.isDateType(n.dataType)&&"number"!==n.dataType&&(t=n.deserializeValue(t)),r=n.createFilterExpression(t,"=","headerFilter")),r&&(r.columnIndex=n.index),o.push(r)}),o=a.default.combineFilters(o,"or"),t.push("exclude"===n.filterType?["!",o]:o)}}),a.default.combineFilters(t)}}},views:{columnHeadersView:O,headerPanel:S}}}},LvDl:function(e,t,n){(function(e){var i;(function(){var r,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",c=32,u=128,l=1/0,d=9007199254740991,h=NaN,f=4294967295,p=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",c],["partialRight",64],["rearg",256]],g="[object Arguments]",m="[object Array]",v="[object Boolean]",_="[object Date]",y="[object Error]",b="[object Function]",w="[object GeneratorFunction]",C="[object Map]",O="[object Number]",S="[object Object]",k="[object Promise]",x="[object RegExp]",T="[object Set]",E="[object String]",I="[object Symbol]",D="[object WeakMap]",M="[object ArrayBuffer]",A="[object DataView]",P="[object Float32Array]",L="[object Float64Array]",R="[object Int8Array]",j="[object Int16Array]",N="[object Int32Array]",F="[object Uint8Array]",B="[object Uint8ClampedArray]",V="[object Uint16Array]",$="[object Uint32Array]",H=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,G=RegExp(W.source),q=RegExp(Y.source),K=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),ie=/^\s+|\s+$/g,re=/^\s+/,oe=/\s+$/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,le=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,_e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ye=/($^)/,be=/['\n\r\u2028\u2029\\]/g,we="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",Oe="A-Z\\xc0-\\xd6\\xd8-\\xde",Se="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ke="["+Se+"]",xe="["+we+"]",Te="\\d+",Ee="["+Ce+"]",Ie="[^\\ud800-\\udfff"+Se+Te+"\\u2700-\\u27bf"+Ce+Oe+"]",De="\\ud83c[\\udffb-\\udfff]",Me="[^\\ud800-\\udfff]",Ae="(?:\\ud83c[\\udde6-\\uddff]){2}",Pe="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="["+Oe+"]",Re="(?:"+Ee+"|"+Ie+")",je="(?:"+Le+"|"+Ie+")",Ne="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Fe="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Be="(?:"+xe+"|"+De+")?",Ve="[\\ufe0e\\ufe0f]?",$e=Ve+Be+"(?:\\u200d(?:"+[Me,Ae,Pe].join("|")+")"+Ve+Be+")*",He="(?:"+["[\\u2700-\\u27bf]",Ae,Pe].join("|")+")"+$e,Ue="(?:"+[Me+xe+"?",xe,Ae,Pe,"[\\ud800-\\udfff]"].join("|")+")",ze=RegExp("['\u2019]","g"),We=RegExp(xe,"g"),Ye=RegExp(De+"(?="+De+")|"+Ue+$e,"g"),Ge=RegExp([Le+"?"+Ee+"+"+Ne+"(?="+[ke,Le,"$"].join("|")+")",je+"+"+Fe+"(?="+[ke,Le+Re,"$"].join("|")+")",Le+"?"+Re+"+"+Ne,Le+"+"+Fe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Te,He].join("|"),"g"),qe=RegExp("[\\u200d\\ud800-\\udfff"+we+"\\ufe0e\\ufe0f]"),Ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Je=-1,Qe={};Qe[P]=Qe[L]=Qe[R]=Qe[j]=Qe[N]=Qe[F]=Qe[B]=Qe[V]=Qe[$]=!0,Qe[g]=Qe[m]=Qe[M]=Qe[v]=Qe[A]=Qe[_]=Qe[y]=Qe[b]=Qe[C]=Qe[O]=Qe[S]=Qe[x]=Qe[T]=Qe[E]=Qe[D]=!1;var Ze={};Ze[g]=Ze[m]=Ze[M]=Ze[A]=Ze[v]=Ze[_]=Ze[P]=Ze[L]=Ze[R]=Ze[j]=Ze[N]=Ze[C]=Ze[O]=Ze[S]=Ze[x]=Ze[T]=Ze[E]=Ze[I]=Ze[F]=Ze[B]=Ze[V]=Ze[$]=!0,Ze[y]=Ze[b]=Ze[D]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,it="object"==typeof global&&global&&global.Object===Object&&global,rt="object"==typeof self&&self&&self.Object===Object&&self,ot=it||rt||Function("return this")(),at=t&&!t.nodeType&&t,st=at&&"object"==typeof e&&e&&!e.nodeType&&e,ct=st&&st.exports===at,ut=ct&&it.process,lt=function(){try{return st&&st.require&&st.require("util").types||ut&&ut.binding&&ut.binding("util")}catch(e){}}(),dt=lt&<.isArrayBuffer,ht=lt&<.isDate,ft=lt&<.isMap,pt=lt&<.isRegExp,gt=lt&<.isSet,mt=lt&<.isTypedArray;function vt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function _t(e,t,n,i){for(var r=-1,o=null==e?0:e.length;++r-1}function St(e,t,n){for(var i=-1,r=null==e?0:e.length;++i-1;);return n}function Yt(e,t){for(var n=e.length;n--&&Pt(t,e[n],0)>-1;);return n}function Gt(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}var qt=Ft({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Kt=Ft({"&":"&","<":"<",">":">",'"':""","'":"'"});function Xt(e){return"\\"+et[e]}function Jt(e){return qe.test(e)}function Qt(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function Zt(e,t){return function(n){return e(t(n))}}function en(e,t){for(var n=-1,i=e.length,r=0,o=[];++n",""":'"',"'":"'"}),sn=function e(t){var n,i=(t=null==t?ot:sn.defaults(ot.Object(),t,sn.pick(ot,Xe))).Array,we=t.Date,Ce=t.Error,Oe=t.Function,Se=t.Math,ke=t.Object,xe=t.RegExp,Te=t.String,Ee=t.TypeError,Ie=i.prototype,De=ke.prototype,Me=t["__core-js_shared__"],Ae=Oe.prototype.toString,Pe=De.hasOwnProperty,Le=0,Re=(n=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",je=De.toString,Ne=Ae.call(ke),Fe=ot._,Be=xe("^"+Ae.call(Pe).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=ct?t.Buffer:r,$e=t.Symbol,He=t.Uint8Array,Ue=Ve?Ve.allocUnsafe:r,Ye=Zt(ke.getPrototypeOf,ke),qe=ke.create,et=De.propertyIsEnumerable,it=Ie.splice,rt=$e?$e.isConcatSpreadable:r,at=$e?$e.iterator:r,st=$e?$e.toStringTag:r,ut=function(){try{var e=so(ke,"defineProperty");return e({},"",{}),e}catch(t){}}(),lt=t.clearTimeout!==ot.clearTimeout&&t.clearTimeout,Dt=we&&we.now!==ot.Date.now&&we.now,Ft=t.setTimeout!==ot.setTimeout&&t.setTimeout,cn=Se.ceil,un=Se.floor,ln=ke.getOwnPropertySymbols,dn=Ve?Ve.isBuffer:r,hn=t.isFinite,fn=Ie.join,pn=Zt(ke.keys,ke),gn=Se.max,mn=Se.min,vn=we.now,_n=t.parseInt,yn=Se.random,bn=Ie.reverse,wn=so(t,"DataView"),Cn=so(t,"Map"),On=so(t,"Promise"),Sn=so(t,"Set"),kn=so(t,"WeakMap"),xn=so(ke,"create"),Tn=kn&&new kn,En={},In=No(wn),Dn=No(Cn),Mn=No(On),An=No(Sn),Pn=No(kn),Ln=$e?$e.prototype:r,Rn=Ln?Ln.valueOf:r,jn=Ln?Ln.toString:r;function Nn(e){if(es(e)&&!Ua(e)&&!(e instanceof $n)){if(e instanceof Vn)return e;if(Pe.call(e,"__wrapped__"))return Fo(e)}return new Vn(e)}var Fn=function(){function e(){}return function(t){if(!Za(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Bn(){}function Vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function $n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function oi(e,t,n,i,o,a){var s,c=1&t,u=2&t,l=4&t;if(n&&(s=o?n(e,i,o,a):n(e)),s!==r)return s;if(!Za(e))return e;var d=Ua(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Pe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return kr(e,s)}else{var h=lo(e),f=h==b||h==w;if(Ga(e))return yr(e,c);if(h==S||h==g||f&&!o){if(s=u||f?{}:fo(e),!c)return u?function(e,t){return xr(e,uo(e),t)}(e,function(e,t){return e&&xr(t,Ms(t),e)}(s,e)):function(e,t){return xr(e,co(e),t)}(e,ti(s,e))}else{if(!Ze[h])return o?e:{};s=function(e,t,n){var i=e.constructor;switch(t){case M:return br(e);case v:case _:return new i(+e);case A:return function(e,t){var n=t?br(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case P:case L:case R:case j:case N:case F:case B:case V:case $:return wr(e,n);case C:return new i;case O:case E:return new i(e);case x:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new i;case I:return Rn?ke(Rn.call(e)):{}}}(e,h,c)}}a||(a=new Yn);var p=a.get(e);if(p)return p;a.set(e,s),os(e)?e.forEach(function(i){s.add(oi(i,t,n,i,e,a))}):ts(e)&&e.forEach(function(i,r){s.set(r,oi(i,t,n,r,e,a))});var m=d?r:(l?u?eo:Zr:u?Ms:Ds)(e);return yt(m||e,function(i,r){m&&(i=e[r=i]),Qn(s,r,oi(i,t,n,r,e,a))}),s}function ai(e,t,n){var i=n.length;if(null==e)return!i;for(e=ke(e);i--;){var o=n[i],a=e[o];if(a===r&&!(o in e)||!(0,t[o])(a))return!1}return!0}function si(e,t,n){if("function"!=typeof e)throw new Ee(o);return Eo(function(){e.apply(r,n)},t)}function ci(e,t,n,i){var r=-1,o=Ot,a=!0,s=e.length,c=[],u=t.length;if(!s)return c;n&&(t=kt(t,Ht(n))),i?(o=St,a=!1):t.length>=200&&(o=zt,a=!1,t=new Wn(t));e:for(;++r-1},Un.prototype.set=function(e,t){var n=this.__data__,i=Zn(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},zn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(Cn||Un),string:new Hn}},zn.prototype.delete=function(e){var t=oo(this,e).delete(e);return this.size-=t?1:0,t},zn.prototype.get=function(e){return oo(this,e).get(e)},zn.prototype.has=function(e){return oo(this,e).has(e)},zn.prototype.set=function(e,t){var n=oo(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Wn.prototype.add=Wn.prototype.push=function(e){return this.__data__.set(e,a),this},Wn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new Un,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Un){var i=n.__data__;if(!Cn||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new zn(i)}return n.set(e,t),this.size=n.size,this};var ui=Ir(vi),li=Ir(_i,!0);function di(e,t){var n=!0;return ui(e,function(e,i,r){return n=!!t(e,i,r)}),n}function hi(e,t,n){for(var i=-1,o=e.length;++i0&&n(s)?t>1?pi(s,t-1,n,i,r):xt(r,s):i||(r[r.length]=s)}return r}var gi=Dr(),mi=Dr(!0);function vi(e,t){return e&&gi(e,t,Ds)}function _i(e,t){return e&&mi(e,t,Ds)}function yi(e,t){return Ct(t,function(t){return Xa(e[t])})}function bi(e,t){for(var n=0,i=(t=gr(t,e)).length;null!=e&&nt}function Si(e,t){return null!=e&&Pe.call(e,t)}function ki(e,t){return null!=e&&t in ke(e)}function xi(e,t,n){for(var o=n?St:Ot,a=e[0].length,s=e.length,c=s,u=i(s),l=1/0,d=[];c--;){var h=e[c];c&&t&&(h=kt(h,Ht(t))),l=mn(h.length,l),u[c]=!n&&(t||a>=120&&h.length>=120)?new Wn(c&&h):r}h=e[0];var f=-1,p=u[0];e:for(;++f=s?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)});i--;)e[i]=e[i].value;return e}(Ri(e,function(e,n,r){return{criteria:kt(t,function(t){return t(e)}),index:++i,value:e}}))}function $i(e,t,n){for(var i=-1,r=t.length,o={};++i-1;)s!==e&&it.call(s,c,1),it.call(e,c,1);return e}function Ui(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==o){var o=r;go(r)?it.call(e,r,1):sr(e,r)}}return e}function zi(e,t){return e+un(yn()*(t-e+1))}function Wi(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=un(t/2))&&(e+=e)}while(t);return n}function Yi(e,t){return Io(Oo(e,t,nc),e+"")}function Gi(e){return qn(Bs(e))}function qi(e,t){var n=Bs(e);return Ao(n,ri(t,0,n.length))}function Ki(e,t,n,i){if(!Za(e))return e;for(var o=-1,a=(t=gr(t,e)).length,s=a-1,c=e;null!=c&&++oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=i(o);++r>>1,a=e[o];null!==a&&!ss(a)&&(n?a<=t:a=200){var u=t?null:Wr(e);if(u)return tn(u);a=!1,r=zt,c=new Wn}else c=t?[]:s;e:for(;++i=i?e:Zi(e,t,n)}var _r=lt||function(e){return ot.clearTimeout(e)};function yr(e,t){if(t)return e.slice();var n=e.length,i=Ue?Ue(n):new e.constructor(n);return e.copy(i),i}function br(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function wr(e,t){var n=t?br(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Cr(e,t){if(e!==t){var n=e!==r,i=null===e,o=e==e,a=ss(e),s=t!==r,c=null===t,u=t==t,l=ss(t);if(!c&&!l&&!a&&e>t||a&&s&&u&&!c&&!l||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!l&&e1?n[o-1]:r,s=o>2?n[2]:r;for(a=e.length>3&&"function"==typeof a?(o--,a):r,s&&mo(n[0],n[1],s)&&(a=o<3?r:a,o=1),t=ke(t);++i-1?o[a?t[s]:s]:r}}function Rr(e){return Qr(function(t){var n=t.length,i=n,a=Vn.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if("function"!=typeof s)throw new Ee(o);if(a&&!c&&"wrapper"==no(s))var c=new Vn([],!0)}for(i=c?i:n;++i1&&y.reverse(),f&&dc))return!1;var l=a.get(e),d=a.get(t);if(l&&d)return l==t&&d==e;var h=-1,f=!0,p=2&n?new Wn:r;for(a.set(e,t),a.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(ae,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return yt(p,function(n){var i="_."+n[0];t&n[1]&&!Ot(e,i)&&e.push(i)}),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ce):[]}(i),n)))}function Mo(e){var t=0,n=0;return function(){var i=vn(),o=16-(i-n);if(n=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Ao(e,t){var n=-1,i=e.length,o=i-1;for(t=t===r?i:t;++n1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,ra(e,n)});function da(e){var t=Nn(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var fa=Qr(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,o=function(t){return ii(t,e)};return!(t>1||this.__actions__.length)&&i instanceof $n&&go(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[o],thisArg:r}),new Vn(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(r),e})):this.thru(o)}),pa=Tr(function(e,t,n){Pe.call(e,n)?++e[n]:ni(e,n,1)}),ga=Lr(Ho),ma=Lr(Uo);function va(e,t){return(Ua(e)?yt:ui)(e,ro(t,3))}function _a(e,t){return(Ua(e)?bt:li)(e,ro(t,3))}var ya=Tr(function(e,t,n){Pe.call(e,n)?e[n].push(t):ni(e,n,[t])}),ba=Yi(function(e,t,n){var r=-1,o="function"==typeof t,a=Wa(e)?i(e.length):[];return ui(e,function(e){a[++r]=o?vt(t,e,n):Ti(e,t,n)}),a}),wa=Tr(function(e,t,n){ni(e,n,t)});function Ca(e,t){return(Ua(e)?kt:Ri)(e,ro(t,3))}var Oa=Tr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Sa=Yi(function(e,t){if(null==e)return[];var n=t.length;return n>1&&mo(e,t[0],t[1])?t=[]:n>2&&mo(t[0],t[1],t[2])&&(t=[t[0]]),Vi(e,pi(t,1),[])}),ka=Dt||function(){return ot.Date.now()};function xa(e,t,n){return t=n?r:t,Gr(e,u,r,r,r,r,t=e&&null==t?e.length:t)}function Ta(e,t){var n;if("function"!=typeof t)throw new Ee(o);return e=fs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Ea=Yi(function(e,t,n){var i=1;if(n.length){var r=en(n,io(Ea));i|=c}return Gr(e,i,t,n,r)}),Ia=Yi(function(e,t,n){var i=3;if(n.length){var r=en(n,io(Ia));i|=c}return Gr(t,i,e,n,r)});function Da(e,t,n){var i,a,s,c,u,l,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new Ee(o);function g(t){var n=i,o=a;return i=a=r,d=t,c=e.apply(o,n)}function m(e){return d=e,u=Eo(_,t),h?g(e):c}function v(e){var n=e-l;return l===r||n>=t||n<0||f&&e-d>=s}function _(){var e=ka();if(v(e))return y(e);u=Eo(_,function(e){var n=t-(e-l);return f?mn(n,s-(e-d)):n}(e))}function y(e){return u=r,p&&i?g(e):(i=a=r,c)}function b(){var e=ka(),n=v(e);if(i=arguments,a=this,l=e,n){if(u===r)return m(l);if(f)return _r(u),u=Eo(_,t),g(l)}return u===r&&(u=Eo(_,t)),c}return t=gs(t)||0,Za(n)&&(h=!!n.leading,s=(f="maxWait"in n)?gn(gs(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),b.cancel=function(){u!==r&&_r(u),d=0,i=l=a=u=r},b.flush=function(){return u===r?c:y(ka())},b}var Ma=Yi(function(e,t){return si(e,1,t)}),Aa=Yi(function(e,t,n){return si(e,gs(t)||0,n)});function Pa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ee(o);var n=function n(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=e.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(Pa.Cache||zn),n}function La(e){if("function"!=typeof e)throw new Ee(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Pa.Cache=zn;var Ra=mr(function(e,t){var n=(t=1==t.length&&Ua(t[0])?kt(t[0],Ht(ro())):kt(pi(t,1),Ht(ro()))).length;return Yi(function(i){for(var r=-1,o=mn(i.length,n);++r=t}),Ha=Ei(function(){return arguments}())?Ei:function(e){return es(e)&&Pe.call(e,"callee")&&!et.call(e,"callee")},Ua=i.isArray,za=dt?Ht(dt):function(e){return es(e)&&Ci(e)==M};function Wa(e){return null!=e&&Qa(e.length)&&!Xa(e)}function Ya(e){return es(e)&&Wa(e)}var Ga=dn||gc,qa=ht?Ht(ht):function(e){return es(e)&&Ci(e)==_};function Ka(e){if(!es(e))return!1;var t=Ci(e);return t==y||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Xa(e){if(!Za(e))return!1;var t=Ci(e);return t==b||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==fs(e)}function Qa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function Za(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=ft?Ht(ft):function(e){return es(e)&&lo(e)==C};function ns(e){return"number"==typeof e||es(e)&&Ci(e)==O}function is(e){if(!es(e)||Ci(e)!=S)return!1;var t=Ye(e);if(null===t)return!0;var n=Pe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ae.call(n)==Ne}var rs=pt?Ht(pt):function(e){return es(e)&&Ci(e)==x},os=gt?Ht(gt):function(e){return es(e)&&lo(e)==T};function as(e){return"string"==typeof e||!Ua(e)&&es(e)&&Ci(e)==E}function ss(e){return"symbol"==typeof e||es(e)&&Ci(e)==I}var cs=mt?Ht(mt):function(e){return es(e)&&Qa(e.length)&&!!Qe[Ci(e)]},us=Hr(Li),ls=Hr(function(e,t){return e<=t});function ds(e){if(!e)return[];if(Wa(e))return as(e)?on(e):kr(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=lo(e);return(t==C?Qt:t==T?tn:Bs)(e)}function hs(e){return e?(e=gs(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fs(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function ps(e){return e?ri(fs(e),0,f):0}function gs(e){if("number"==typeof e)return e;if(ss(e))return h;if(Za(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Za(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ie,"");var n=pe.test(e);return n||me.test(e)?nt(e.slice(2),n?2:8):fe.test(e)?h:+e}function ms(e){return xr(e,Ms(e))}function vs(e){return null==e?"":or(e)}var _s=Er(function(e,t){if(bo(t)||Wa(t))xr(t,Ds(t),e);else for(var n in t)Pe.call(t,n)&&Qn(e,n,t[n])}),ys=Er(function(e,t){xr(t,Ms(t),e)}),bs=Er(function(e,t,n,i){xr(t,Ms(t),e,i)}),ws=Er(function(e,t,n,i){xr(t,Ds(t),e,i)}),Cs=Qr(ii),Os=Yi(function(e,t){e=ke(e);var n=-1,i=t.length,o=i>2?t[2]:r;for(o&&mo(t[0],t[1],o)&&(i=1);++n1),t}),xr(e,eo(e),n),i&&(n=oi(n,7,Xr));for(var r=t.length;r--;)sr(n,t[r]);return n}),Rs=Qr(function(e,t){return null==e?{}:function(e,t){return $i(e,t,function(t,n){return xs(e,n)})}(e,t)});function js(e,t){if(null==e)return{};var n=kt(eo(e),function(e){return[e]});return t=ro(t),$i(e,n,function(e,n){return t(e,n[0])})}var Ns=Yr(Ds),Fs=Yr(Ms);function Bs(e){return null==e?[]:Ut(e,Ds(e))}var Vs=Ar(function(e,t,n){return t=t.toLowerCase(),e+(n?$s(t):t)});function $s(e){return Ks(vs(e).toLowerCase())}function Hs(e){return(e=vs(e))&&e.replace(_e,qt).replace(We,"")}var Us=Ar(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),zs=Ar(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Ws=Mr("toLowerCase"),Ys=Ar(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Gs=Ar(function(e,t,n){return e+(n?" ":"")+Ks(t)}),qs=Ar(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ks=Mr("toUpperCase");function Xs(e,t,n){return e=vs(e),(t=n?r:t)===r?function(e){return Ke.test(e)}(e)?function(e){return e.match(Ge)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Js=Yi(function(e,t){try{return vt(e,r,t)}catch(n){return Ka(n)?n:new Ce(n)}}),Qs=Qr(function(e,t){return yt(t,function(t){t=jo(t),ni(e,t,Ea(e[t],e))}),e});function Zs(e){return function(){return e}}var ec=Rr(),tc=Rr(!0);function nc(e){return e}function ic(e){return Ai("function"==typeof e?e:oi(e,1))}var rc=Yi(function(e,t){return function(n){return Ti(n,e,t)}}),oc=Yi(function(e,t){return function(n){return Ti(e,n,t)}});function ac(e,t,n){var i=Ds(t),r=yi(t,i);null!=n||Za(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=yi(t,Ds(t)));var o=!(Za(n)&&"chain"in n&&!n.chain),a=Xa(e);return yt(r,function(n){var i=t[n];e[n]=i,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),r=n.__actions__=kr(this.__actions__);return r.push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,xt([this.value()],arguments))})}),e}function sc(){}var cc=Br(kt),uc=Br(wt),lc=Br(It);function dc(e){return vo(e)?Nt(jo(e)):function(e){return function(t){return bi(t,e)}}(e)}var hc=$r(),fc=$r(!0);function pc(){return[]}function gc(){return!1}var mc,vc=Fr(function(e,t){return e+t},0),_c=zr("ceil"),yc=Fr(function(e,t){return e/t},1),bc=zr("floor"),wc=Fr(function(e,t){return e*t},1),Cc=zr("round"),Oc=Fr(function(e,t){return e-t},0);return Nn.after=function(e,t){if("function"!=typeof t)throw new Ee(o);return e=fs(e),function(){if(--e<1)return t.apply(this,arguments)}},Nn.ary=xa,Nn.assign=_s,Nn.assignIn=ys,Nn.assignInWith=bs,Nn.assignWith=ws,Nn.at=Cs,Nn.before=Ta,Nn.bind=Ea,Nn.bindAll=Qs,Nn.bindKey=Ia,Nn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ua(e)?e:[e]},Nn.chain=da,Nn.chunk=function(e,t,n){t=(n?mo(e,t,n):t===r)?1:gn(fs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,c=i(cn(o/t));ao?0:o+n),(i=i===r||i>o?o:fs(i))<0&&(i+=o),i=n>i?0:ps(i);n>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!rs(t))&&!(t=or(t))&&Jt(e)?vr(on(e),0,n):e.split(t,n):[]},Nn.spread=function(e,t){if("function"!=typeof e)throw new Ee(o);return t=null==t?0:gn(fs(t),0),Yi(function(n){var i=n[t],r=vr(n,0,t);return i&&xt(r,i),vt(e,this,r)})},Nn.tail=function(e){var t=null==e?0:e.length;return t?Zi(e,1,t):[]},Nn.take=function(e,t,n){return e&&e.length?Zi(e,0,(t=n||t===r?1:fs(t))<0?0:t):[]},Nn.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?Zi(e,(t=i-(t=n||t===r?1:fs(t)))<0?0:t,i):[]},Nn.takeRightWhile=function(e,t){return e&&e.length?ur(e,ro(t,3),!1,!0):[]},Nn.takeWhile=function(e,t){return e&&e.length?ur(e,ro(t,3)):[]},Nn.tap=function(e,t){return t(e),e},Nn.throttle=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new Ee(o);return Za(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Da(e,t,{leading:i,maxWait:t,trailing:r})},Nn.thru=ha,Nn.toArray=ds,Nn.toPairs=Ns,Nn.toPairsIn=Fs,Nn.toPath=function(e){return Ua(e)?kt(e,jo):ss(e)?[e]:kr(Ro(vs(e)))},Nn.toPlainObject=ms,Nn.transform=function(e,t,n){var i=Ua(e),r=i||Ga(e)||cs(e);if(t=ro(t,4),null==n){var o=e&&e.constructor;n=r?i?new o:[]:Za(e)&&Xa(o)?Fn(Ye(e)):{}}return(r?yt:vi)(e,function(e,i,r){return t(n,e,i,r)}),n},Nn.unary=function(e){return xa(e,1)},Nn.union=ea,Nn.unionBy=ta,Nn.unionWith=na,Nn.uniq=function(e){return e&&e.length?ar(e):[]},Nn.uniqBy=function(e,t){return e&&e.length?ar(e,ro(t,2)):[]},Nn.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?ar(e,r,t):[]},Nn.unset=function(e,t){return null==e||sr(e,t)},Nn.unzip=ia,Nn.unzipWith=ra,Nn.update=function(e,t,n){return null==e?e:cr(e,t,pr(n))},Nn.updateWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:cr(e,t,pr(n),i)},Nn.values=Bs,Nn.valuesIn=function(e){return null==e?[]:Ut(e,Ms(e))},Nn.without=oa,Nn.words=Xs,Nn.wrap=function(e,t){return ja(pr(t),e)},Nn.xor=aa,Nn.xorBy=sa,Nn.xorWith=ca,Nn.zip=ua,Nn.zipObject=function(e,t){return hr(e||[],t||[],Qn)},Nn.zipObjectDeep=function(e,t){return hr(e||[],t||[],Ki)},Nn.zipWith=la,Nn.entries=Ns,Nn.entriesIn=Fs,Nn.extend=ys,Nn.extendWith=bs,ac(Nn,Nn),Nn.add=vc,Nn.attempt=Js,Nn.camelCase=Vs,Nn.capitalize=$s,Nn.ceil=_c,Nn.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=gs(n))==n?n:0),t!==r&&(t=(t=gs(t))==t?t:0),ri(gs(e),t,n)},Nn.clone=function(e){return oi(e,4)},Nn.cloneDeep=function(e){return oi(e,5)},Nn.cloneDeepWith=function(e,t){return oi(e,5,t="function"==typeof t?t:r)},Nn.cloneWith=function(e,t){return oi(e,4,t="function"==typeof t?t:r)},Nn.conformsTo=function(e,t){return null==t||ai(e,t,Ds(t))},Nn.deburr=Hs,Nn.defaultTo=function(e,t){return null==e||e!=e?t:e},Nn.divide=yc,Nn.endsWith=function(e,t,n){e=vs(e),t=or(t);var i=e.length,o=n=n===r?i:ri(fs(n),0,i);return(n-=t.length)>=0&&e.slice(n,o)==t},Nn.eq=Ba,Nn.escape=function(e){return(e=vs(e))&&q.test(e)?e.replace(Y,Kt):e},Nn.escapeRegExp=function(e){return(e=vs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Nn.every=function(e,t,n){var i=Ua(e)?wt:di;return n&&mo(e,t,n)&&(t=r),i(e,ro(t,3))},Nn.find=ga,Nn.findIndex=Ho,Nn.findKey=function(e,t){return Mt(e,ro(t,3),vi)},Nn.findLast=ma,Nn.findLastIndex=Uo,Nn.findLastKey=function(e,t){return Mt(e,ro(t,3),_i)},Nn.floor=bc,Nn.forEach=va,Nn.forEachRight=_a,Nn.forIn=function(e,t){return null==e?e:gi(e,ro(t,3),Ms)},Nn.forInRight=function(e,t){return null==e?e:mi(e,ro(t,3),Ms)},Nn.forOwn=function(e,t){return e&&vi(e,ro(t,3))},Nn.forOwnRight=function(e,t){return e&&_i(e,ro(t,3))},Nn.get=ks,Nn.gt=Va,Nn.gte=$a,Nn.has=function(e,t){return null!=e&&ho(e,t,Si)},Nn.hasIn=xs,Nn.head=Wo,Nn.identity=nc,Nn.includes=function(e,t,n,i){e=Wa(e)?e:Bs(e),n=n&&!i?fs(n):0;var r=e.length;return n<0&&(n=gn(r+n,0)),as(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&Pt(e,t,n)>-1},Nn.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:fs(n);return r<0&&(r=gn(i+r,0)),Pt(e,t,r)},Nn.inRange=function(e,t,n){return t=hs(t),n===r?(n=t,t=0):n=hs(n),function(e,t,n){return e>=mn(t,n)&&e=-9007199254740991&&e<=d},Nn.isSet=os,Nn.isString=as,Nn.isSymbol=ss,Nn.isTypedArray=cs,Nn.isUndefined=function(e){return e===r},Nn.isWeakMap=function(e){return es(e)&&lo(e)==D},Nn.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==Ci(e)},Nn.join=function(e,t){return null==e?"":fn.call(e,t)},Nn.kebabCase=Us,Nn.last=Ko,Nn.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=i;return n!==r&&(o=(o=fs(n))<0?gn(i+o,0):mn(o,i-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,o):At(e,Rt,o,!0)},Nn.lowerCase=zs,Nn.lowerFirst=Ws,Nn.lt=us,Nn.lte=ls,Nn.max=function(e){return e&&e.length?hi(e,nc,Oi):r},Nn.maxBy=function(e,t){return e&&e.length?hi(e,ro(t,2),Oi):r},Nn.mean=function(e){return jt(e,nc)},Nn.meanBy=function(e,t){return jt(e,ro(t,2))},Nn.min=function(e){return e&&e.length?hi(e,nc,Li):r},Nn.minBy=function(e,t){return e&&e.length?hi(e,ro(t,2),Li):r},Nn.stubArray=pc,Nn.stubFalse=gc,Nn.stubObject=function(){return{}},Nn.stubString=function(){return""},Nn.stubTrue=function(){return!0},Nn.multiply=wc,Nn.nth=function(e,t){return e&&e.length?Bi(e,fs(t)):r},Nn.noConflict=function(){return ot._===this&&(ot._=Fe),this},Nn.noop=sc,Nn.now=ka,Nn.pad=function(e,t,n){e=vs(e);var i=(t=fs(t))?rn(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return Vr(un(r),n)+e+Vr(cn(r),n)},Nn.padEnd=function(e,t,n){e=vs(e);var i=(t=fs(t))?rn(e):0;return t&&it){var i=e;e=t,t=i}if(n||e%1||t%1){var o=yn();return mn(e+o*(t-e+tt("1e-"+((o+"").length-1))),t)}return zi(e,t)},Nn.reduce=function(e,t,n){var i=Ua(e)?Tt:Bt,r=arguments.length<3;return i(e,ro(t,4),n,r,ui)},Nn.reduceRight=function(e,t,n){var i=Ua(e)?Et:Bt,r=arguments.length<3;return i(e,ro(t,4),n,r,li)},Nn.repeat=function(e,t,n){return t=(n?mo(e,t,n):t===r)?1:fs(t),Wi(vs(e),t)},Nn.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Nn.result=function(e,t,n){var i=-1,o=(t=gr(t,e)).length;for(o||(o=1,e=r);++id)return[];var n=f,i=mn(e,f);t=ro(t),e-=f;for(var r=$t(i,t);++n=a)return e;var c=n-rn(i);if(c<1)return i;var u=s?vr(s,0,c).join(""):e.slice(0,c);if(o===r)return u+i;if(s&&(c+=u.length-c),rs(o)){if(e.slice(c).search(o)){var l,d=u;for(o.global||(o=xe(o.source,vs(he.exec(o))+"g")),o.lastIndex=0;l=o.exec(d);)var h=l.index;u=u.slice(0,h===r?c:h)}}else if(e.indexOf(or(o),c)!=c){var f=u.lastIndexOf(o);f>-1&&(u=u.slice(0,f))}return u+i},Nn.unescape=function(e){return(e=vs(e))&&G.test(e)?e.replace(W,an):e},Nn.uniqueId=function(e){var t=++Le;return vs(e)+t},Nn.upperCase=qs,Nn.upperFirst=Ks,Nn.each=va,Nn.eachRight=_a,Nn.first=Wo,ac(Nn,(mc={},vi(Nn,function(e,t){Pe.call(Nn.prototype,t)||(mc[t]=e)}),mc),{chain:!1}),Nn.VERSION="4.17.20",yt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Nn[e].placeholder=Nn}),yt(["drop","take"],function(e,t){$n.prototype[e]=function(n){n=n===r?1:gn(fs(n),0);var i=this.__filtered__&&!t?new $n(this):this.clone();return i.__filtered__?i.__takeCount__=mn(n,i.__takeCount__):i.__views__.push({size:mn(n,f),type:e+(i.__dir__<0?"Right":"")}),i},$n.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),yt(["filter","map","takeWhile"],function(e,t){var n=t+1,i=1==n||3==n;$n.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ro(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}}),yt(["head","last"],function(e,t){var n="take"+(t?"Right":"");$n.prototype[e]=function(){return this[n](1).value()[0]}}),yt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");$n.prototype[e]=function(){return this.__filtered__?new $n(this):this[n](1)}}),$n.prototype.compact=function(){return this.filter(nc)},$n.prototype.find=function(e){return this.filter(e).head()},$n.prototype.findLast=function(e){return this.reverse().find(e)},$n.prototype.invokeMap=Yi(function(e,t){return"function"==typeof e?new $n(this):this.map(function(n){return Ti(n,e,t)})}),$n.prototype.reject=function(e){return this.filter(La(ro(e)))},$n.prototype.slice=function(e,t){e=fs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new $n(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=fs(t))<0?n.dropRight(-t):n.take(t-e)),n)},$n.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$n.prototype.toArray=function(){return this.take(f)},vi($n.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=Nn[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);o&&(Nn.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof $n,u=s[0],l=c||Ua(t),d=function(e){var t=o.apply(Nn,xt([e],s));return i&&h?t[0]:t};l&&n&&"function"==typeof u&&1!=u.length&&(c=l=!1);var h=this.__chain__,f=!!this.__actions__.length,p=a&&!h,g=c&&!f;if(!a&&l){t=g?t:new $n(this);var m=e.apply(t,s);return m.__actions__.push({func:ha,args:[d],thisArg:r}),new Vn(m,h)}return p&&g?e.apply(this,s):(m=this.thru(d),p?i?m.value()[0]:m.value():m)})}),yt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ie[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);Nn.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(Ua(r)?r:[],e)}return this[n](function(n){return t.apply(Ua(n)?n:[],e)})}}),vi($n.prototype,function(e,t){var n=Nn[t];if(n){var i=n.name+"";Pe.call(En,i)||(En[i]=[]),En[i].push({name:t,func:n})}}),En[jr(r,2).name]=[{name:"wrapper",func:r}],$n.prototype.clone=function(){var e=new $n(this.__wrapped__);return e.__actions__=kr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=kr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=kr(this.__views__),e},$n.prototype.reverse=function(){if(this.__filtered__){var e=new $n(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},$n.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ua(e),i=t<0,r=n?e.length:0,o=function(e,t,n){for(var i=-1,r=n.length;++i=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},Nn.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var i=Fo(n);i.__index__=0,i.__values__=r,t?o.__wrapped__=i:t=i;var o=i;n=n.__wrapped__}return o.__wrapped__=e,t},Nn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof $n){var t=e;return this.__actions__.length&&(t=new $n(this)),(t=t.reverse()).__actions__.push({func:ha,args:[Zo],thisArg:r}),new Vn(t,this.__chain__)}return this.thru(Zo)},Nn.prototype.toJSON=Nn.prototype.valueOf=Nn.prototype.value=function(){return lr(this.__wrapped__,this.__actions__)},Nn.prototype.first=Nn.prototype.head,at&&(Nn.prototype[at]=function(){return this}),Nn}();ot._=sn,(i=(function(){return sn}).call(t,n,t,e))===r||(e.exports=i)}).call(this)}).call(this,n("YuTi")(e))},LxBO:function(e,t,n){"use strict";n.d(t,"a",function(){return x});var i,r=n("c7TG"),o=n("mjQz"),a=n("Xzt5"),s=n("Zhhz"),c=n("aiMf"),u=n("+Jrw"),l=n("9ans"),d=n("z04I"),h=n("5Yhv"),f=n("MwwC"),p=n("y3WU"),g=n("fXoL"),m=(i=function(e,t){return(i=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(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},_=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]o.b.SHIPMENT_BARCODE_LENGTH?(this.taskManagerService.alarmPlay(),this.taskManagerService.showToast("Shipment Barcode exceeds maximum defined limit ("+o.b.SHIPMENT_BARCODE_LENGTH+" characters)"),[2]):(t=this.shipments.find(function(t){return t.barcode===e}))?t.type!==s.h.shipment?[3,3]:[4,this.createShipmentModal(t)]:[3,6];case 2:n.sent(),n.label=3;case 3:return t.type!==s.h.consolidation?[3,5]:[4,this.createConsolidationModal(t)];case 4:n.sent(),n.label=5;case 5:return[3,8];case 6:return(t=new s.c).barcode=e,[4,this.createShipmentModal(t)];case 7:n.sent(),n.label=8;case 8:case 9:return[3,10];case 10:return[2]}})})},t.prototype.createShipmentModal=function(e){return void 0===e&&(e=null),v(this,void 0,void 0,function(){var t,n;return _(this,function(i){switch(i.label){case 0:return[4,this.modalController.create({component:d.a,componentProps:new a.a({shipment:JSON.parse(JSON.stringify(e)),title:"Create Shipment",isRSR:!0})})];case 1:return[4,(t=i.sent()).present()];case 2:return i.sent(),[4,t.onDidDismiss()];case 3:return n=i.sent().data,this.dataReceived(n,""),[2]}})})},t.prototype.createConsolidationModal=function(e){return v(this,void 0,void 0,function(){var t,n;return _(this,function(i){switch(i.label){case 0:return[4,this.modalController.create({component:h.a,componentProps:new a.a({consolidationShipment:JSON.parse(JSON.stringify(e)),isRSR:!0})})];case 1:return[4,(t=i.sent()).present()];case 2:return i.sent(),[4,t.onDidDismiss()];case 3:return n=i.sent().data,this.dataReceived(n,""),[2]}})})},t.prototype.dismiss=function(){this.modalController.dismiss()},t.prototype.initMenuItems=function(){return v(this,void 0,void 0,function(){var e,t,n;return _(this,function(i){switch(i.label){case 0:return n={isRSR:!0,title:"Pickup from 3rd Party"},[4,this.tsoService.getLocations()];case 1:return n.locations=i.sent(),e=n,t={isRSR:!0,title:"Transfer to 3rd Party"},this.menuItems=[{name:"Create Shipment",icon:"./assets/icon/add-stop.svg",eventName:"create_shipment",parameters:new a.a({title:"Create Shipment",isRSR:!0}),dataHandler:this.dataReceived.bind(this)},{name:"Consolidation Shipment",icon:"./assets/icon/add-stop.svg",eventName:"create-consolidation-shipment",parameters:new a.a({title:"Consolidation Shipment",isRSR:!0}),dataHandler:this.dataReceived.bind(this)},{name:"Pickup from Lab / Hub",icon:"./assets/icon/add-stop.svg",eventName:"pickup-shipment-from-lab",parameters:new a.a,dataHandler:this.dataReceived.bind(this)},{name:"Pickup from Airport",icon:"./assets/icon/add-stop.svg",eventName:"pickup-shipment-from-airport",parameters:new a.a,dataHandler:this.dataReceived.bind(this)},{name:"Pickup from 3rd Party",icon:"./assets/icon/add-stop.svg",eventName:"pickup-shipment-from-3rdParty",parameters:new a.a(e),dataHandler:this.dataReceived.bind(this)},{name:"Pickup from RSR",icon:"./assets/icon/add-stop.svg",eventName:"pickup-shipment-from-rsr",parameters:new a.a,dataHandler:this.dataReceived.bind(this)},{name:"Transfer to Airport",icon:"./assets/icon/add-stop.svg",eventName:"drop-shipment-to-airport",parameters:new a.a,dataHandler:this.dataReceived.bind(this)},{name:"Transfer to Hub",icon:"./assets/icon/add-stop.svg",eventName:"drop-shipment-to-hub-lab",parameters:new a.a({title:"Transfer to Hub",isLab:!1}),dataHandler:this.dataReceived.bind(this)},{name:"Transfer to 3rd Party",icon:"./assets/icon/add-stop.svg",eventName:"drop-shipment-to-3rdParty",parameters:new a.a(t),dataHandler:this.dataReceived.bind(this)},{name:"Drop to Lab",icon:"./assets/icon/add-stop.svg",eventName:"drop-shipment-to-hub-lab",parameters:new a.a({title:"Drop to Lab",isLab:!0,isAirport:!1}),dataHandler:this.dataReceived.bind(this)}],[2]}})})},t.prototype.getShipments=function(){return v(this,void 0,void 0,function(){var e;return _(this,function(t){switch(t.label){case 0:return e=this,[4,this.tsoService.getRSRShipmentsWithoutParent(this.taskManagerService.task._id,null,this.isConsolidationsOnly)];case 1:return e.shipments=t.sent(),[2]}})})},t.prototype.dataReceived=function(e,t){return v(this,void 0,void 0,function(){return _(this,function(t){switch(t.label){case 0:return[4,this.getShipments()];case 1:return t.sent(),e.type!==s.h.shipment?[3,3]:[4,this.createShipmentModal(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},t.prototype.delete=function(e){return v(this,void 0,void 0,function(){return _(this,function(t){switch(t.label){case 0:return[4,this.slidingList.closeSlidingItems()];case 1:return t.sent(),e.status===s.e.Created||e.status===s.e.InProcess?[3,4]:[4,this.alertController.create({message:"In transit or delivered shipment cannot be deleted.",buttons:[{text:"Cancel",role:"cancel"}]})];case 2:return[4,t.sent().present()];case 3:return t.sent(),[2];case 4:return[4,this.taskManagerService.showConfirmation("","Do you want to delete shipment? Provide shipment and shipment item/s will be deleted","Yes","Cancel")];case 5:return t.sent()?[4,this.tsoService.deleteShipment([e.barcode])]:[3,7];case 6:t.sent(),this.getShipments(),t.label=7;case 7:return[2]}})})},t.prototype.refresh=function(){this.getShipments()},t.prototype.breakConsolidation=function(e){return v(this,void 0,void 0,function(){return _(this,function(t){switch(t.label){case 0:return[4,this.slidingList.closeSlidingItems()];case 1:return t.sent(),e.status!==s.e.Delivered&&e.status!==s.e.DeliveredBy3rdParty&&e.status!==s.e.DeliveredBySystem?[3,4]:[4,this.alertController.create({message:"Delivered shipment cannot be broken.",buttons:[{text:"Cancel",role:"cancel"}]})];case 2:return[4,t.sent().present()];case 3:return t.sent(),[2];case 4:return[4,this.taskManagerService.showConfirmation("","Do you want to break consolidation?","Yes","Cancel")];case 5:return t.sent()?[4,this.tsoService.breakConsolidation(e)]:[3,7];case 6:t.sent(),this.getShipments(),t.label=7;case 7:return[2]}})})},t.prototype.editConsolidation=function(e){return v(this,void 0,void 0,function(){var t,n;return _(this,function(i){switch(i.label){case 0:return[4,this.slidingList.closeSlidingItems()];case 1:return i.sent(),[4,this.modalController.create({component:f.a,componentProps:new a.a({shipment:this.tsoService.deepCopy(e)})})];case 2:return[4,(t=i.sent()).present()];case 3:return i.sent(),[4,t.onDidDismiss()];case 4:return n=i.sent().data,this.dataReceived(n,""),[2]}})})},t.prototype.toggleFilterType=function(){this.isConsolidationsOnly=!this.isConsolidationsOnly,this.refresh()},t.\u0275fac=function(e){return new(e||t)(g.ac(u.a),g.ac(c.a),g.ac(r.Gb),g.ac(r.a),g.ac(p.a),g.ac(l.a))},t.\u0275cmp=g.Ub({type:t,selectors:[["app-rsr-shipments"]],viewQuery:function(e,t){var n;1&e&&g.Xc(y,!0),2&e&&g.Ec(n=g.oc())&&(t.slidingList=n.first)},features:[g.Lb],decls:14,vars:5,consts:[["title","Shipments","hideCloseButton","true",3,"menuItems","onDismiss"],["fill","clear",3,"color","click"],[3,"click"],["src","./assets/icon/refresh.svg","size","large"],["color","warning"],["class","message",4,"ngIf"],["lines","none","class","shipments-list",4,"ngIf"],[1,"message"],["lines","none",1,"shipments-list"],["slidingList",""],[4,"ngFor","ngForOf"],["side","start"],["color","primary",3,"click",4,"ngIf"],[1,"ion-no-padding","ion-no-inner-padding"],[2,"width","100%",3,"shipment","click"],["side","end"],["color","danger",3,"click",4,"ngIf"],["color","primary",3,"click"],["color","danger",3,"click"]],template:function(e,t){1&e&&(g.gc(0,"base-modal",0),g.nc("onDismiss",function(){return t.dismiss()}),g.gc(1,"base-modal-header"),g.gc(2,"ion-button",1),g.nc("click",function(){return t.toggleFilterType()}),g.Rc(3," C "),g.fc(),g.gc(4,"ion-button",2),g.nc("click",function(){return t.refresh()}),g.bc(5,"ion-icon",3),g.fc(),g.gc(6,"ion-button"),g.gc(7,"ion-badge",4),g.Rc(8),g.fc(),g.fc(),g.fc(),g.gc(9,"base-modal-content"),g.bc(10,"route-card"),g.gc(11,"ion-content"),g.Pc(12,b,2,0,"ion-label",5),g.Pc(13,k,3,1,"ion-list",6),g.fc(),g.fc(),g.fc()),2&e&&(g.wc("menuItems",t.menuItems),g.Ob(2),g.wc("color",t.isConsolidationsOnly?"success":"light"),g.Ob(6),g.Sc(t.shipments.length||0),g.Ob(4),g.wc("ngIf",0==(null==t.shipments?null:t.shipments.length)),g.Ob(1),g.wc("ngIf",(null==t.shipments?null:t.shipments.length)>0))},styles:[""]}),t}(a.a)},M2vE:function(e,t,n){"use strict";var i=h(n("cYys")),r=h(n("BWGd")),o=n("KAnu"),a=h(n("ti0F")),s=n("zl3R"),c=n("1LL4"),u=h(n("V2fm")),l=h(n("IlOo")),d=n("tJvG");function h(e){return e&&e.__esModule?e:{default:e}}e.exports=r.default.Controller.inherit(function(){function e(t,n){if(t&&(t=t.slice(0),n))for(var i=0;i0&&(this._skipCorrection+=a()-s),e.splice(0,e.length)},_handlePush:function(e){this.push(e,!0)},_handleChanging:function(e){this.changing.fire(e),this._applyBatch(e.changes)},_needCleanCacheByOperation:function(e,t){var n=["filtering","sorting","paging"],i=n.indexOf(e);return(i>=0?n.slice(i):[e]).some(function(e){return t[e]})},_customizeRemoteOperations:function(e,t){var n=this,i=n._cachedStoreData,r=n._cachedPagingData,o=n._cachedPagesData;(e.storeLoadOptions.filter&&!e.remoteOperations.filtering||e.storeLoadOptions.sort&&!e.remoteOperations.sorting)&&(e.remoteOperations={filtering:e.remoteOperations.filtering}),t.fullReload?(i=void 0,r=void 0,o={pages:{}}):(t.reload?(r=void 0,o={pages:{}}):(t.take||t.groupExpanding)&&(o={pages:{}}),(0,s.each)(t,function(t,o){o&&n._needCleanCacheByOperation(t,e.remoteOperations)&&(i=void 0,r=void 0)})),r&&(e.remoteOperations.paging=!1),e.cachedStoreData=i,e.cachedPagingData=r,e.cachedPagesData=o,e.isCustomLoading||(n._cachedStoreData=i,n._cachedPagingData=r,n._cachedPagesData=o)},_handleDataLoading:function(e){var n=this,i=n._dataSource,r=n._lastLoadOptions;n.customizeStoreLoadOptions.fire(e),e.delay=this.option("loadingTimeout"),e.originalStoreLoadOptions=e.storeLoadOptions,e.remoteOperations=(0,c.extend)({},this.remoteOperations());var o=!n.isLoaded()&&!n._isRefreshing;n.option("integrationOptions.renderedOnServer")&&!n.isLoaded()&&(e.delay=void 0);var a=(0,c.extend)({pageIndex:n.pageIndex()},e.storeLoadOptions),s=t(a,r,o);if(n._customizeRemoteOperations(e,s),!e.isCustomLoading){var u=n._isRefreshing;e.pageIndex=i.pageIndex(),e.lastLoadOptions=a,e.operationTypes=s,n._loadingOperationTypes=s,n._isRefreshing=!0,(0,d.when)(u||n._isRefreshed||n.refresh(e,s)).done(function(){n._lastOperationId===e.operationId&&(n._isRefreshed=!0,n.load().always(function(){n._isRefreshed=!1}))}).fail(function(){i.cancel(e.operationId)}).always(function(){n._isRefreshing=!1}),i.cancel(n._lastOperationId),n._lastOperationId=e.operationId,n._isRefreshing&&i.cancel(n._lastOperationId)}this._handleDataLoadingCore(e)},_handleDataLoadingCore:function(e){var t=e.remoteOperations;e.loadOptions={};var i=e.cachedPagesData.extra,r={filter:!t.filtering,sort:!t.sorting,group:!t.grouping,summary:!t.summary,skip:!t.paging,take:!t.paging,requireTotalCount:i&&"totalCount"in i||!t.paging};(0,s.each)(e.storeLoadOptions,function(t,n){r[t]&&(e.loadOptions[t]=n,delete e.storeLoadOptions[t])}),i&&(e.extra=i),e.data=n(e)||e.cachedStoreData},_handleDataLoaded:function(t){var i=this,o=t.loadOptions,s=t.remoteOperations&&!t.remoteOperations.paging,l=t.cachedPagesData,h=t.storeLoadOptions,f=!1!==this.option("cacheEnabled")&&h,p=f&&!t.isCustomLoading&&l&&(!s||h.group)&&!this.option("legacyRendering"),g=f&&s,m=g&&!t.isCustomLoading;if(o){t.lastLoadOptions&&(this._lastLoadOptions=t.lastLoadOptions,Object.keys(t.operationTypes).forEach(function(e){i._lastOperationTypes[e]=i._lastOperationTypes[e]||t.operationTypes[e]})),s&&(t.skip=o.skip,t.take=o.take,delete o.skip,delete o.take),o.group&&(o.group=t.group||o.group);var v=r.default.normalizeSortingInfo(h.group||o.group).length;p&&n(t)||(g&&t.cachedPagingData?t.data=e(t.cachedPagingData,v):(m&&(this._cachedStoreData?t.mergeStoreLoadData&&(t.data=this._cachedStoreData=this._cachedStoreData.concat(t.data)):this._cachedStoreData=e(t.data,r.default.normalizeSortingInfo(h.group).length)),new u.default(t.data).load(o).done(function(n){t.data=n,m&&(i._cachedPagingData=e(t.data,v))}).fail(function(e){t.data=(new d.Deferred).reject(e)})),o.requireTotalCount&&s&&(t.extra=a.default.isPlainObject(t.extra)?t.extra:{},t.extra.totalCount=t.data.length),t.extra&&t.extra.totalCount>=0&&(!1===h.requireTotalCount||!1===o.requireTotalCount)&&(t.extra.totalCount=-1),this._handleDataLoadedCore(t),p&&(l.extra=l.extra||(0,c.extend)({},t.extra),(0,d.when)(t.data).done(function(n){!function(e,t){var n=e.pageIndex;void 0!==n&&(e.cachedPagesData.pages[n]=t)}(t,e(n,v))}))),t.storeLoadOptions=t.originalStoreLoadOptions}else this._dataSource.cancel(t.operationId)},_handleDataLoadedCore:function(e){e.remoteOperations&&!e.remoteOperations.paging&&Array.isArray(e.data)&&(void 0!==e.skip&&(e.data=e.data.slice(e.skip)),void 0!==e.take&&(e.data=e.data.slice(0,e.take)))},_handleLoadingChanged:function(e){this.loadingChanged.fire(e)},_handleLoadError:function(e){this.loadError.fire(e),this.changed.fire({changeType:"loadError",error:e})},_handleDataChanged:function(e){var t,n=this,i=n._dataSource,r=!1,o=n.itemsCount();n._isLastPage=!o||!n.pageSize()||o=0?i.pageIndex()>=n.pageCount()&&(i.pageIndex(n.pageCount()-1),n.pageIndex(i.pageIndex()),n.resetPagesCache(),i.load(),r=!0):(t=i.pageIndex()*n.pageSize()+o,n._currentTotalCount=Math.max(n._currentTotalCount,t),0===o&&i.pageIndex()>=n.pageCount()&&(i.pageIndex(n.pageCount()-1),"infinite"!==n.option("scrolling.mode")&&(i.load(),r=!0))),r||(n._operationTypes=n._lastOperationTypes,n._lastOperationTypes={},n.component._optionCache={},n.changed.fire(e),n.component._optionCache=void 0)},_scheduleCustomLoadCallbacks:function(e){var t=this;t._isCustomLoading=!0,e.always(function(){t._isCustomLoading=!1})},loadingOperationTypes:function(){return this._loadingOperationTypes},operationTypes:function(){return this._operationTypes},lastLoadOptions:function(){return this._lastLoadOptions||{}},isLastPage:function(){return this._isLastPage},totalCount:function(){return parseInt(this._currentTotalCount+this._skipCorrection||this._dataSource.totalCount())},itemsCount:function(){return this._dataSource.items().length},totalItemsCount:function(){return this.totalCount()},pageSize:function(){var e=this._dataSource;return arguments.length||e.paginate()?e.pageSize.apply(e,arguments):0},pageCount:function(){var e=this,t=e.totalItemsCount()-e._skipCorrection,n=e.pageSize();return n&&t>0?Math.max(1,Math.ceil(t/n)):1},hasKnownLastPage:function(){return this._hasLastPage||this._dataSource.totalCount()>=0},loadFromStore:function(e,t){var n=this._dataSource,i=new d.Deferred;if(n)return(t=t||n.store()).load(e).done(function(e,t){e&&!Array.isArray(e)&&Array.isArray(e.data)&&(t=e,e=e.data),i.resolve(e,t)}).fail(i.reject),i},isCustomLoading:function(){return!!this._isCustomLoading},load:function(e){var t,n,i=this,r=this,c=r._dataSource,u=new d.Deferred;if(e){var l=c.store(),h=c.loadOptions(),f={storeLoadOptions:e,isCustomLoading:!0};return(0,s.each)(l._customLoadOptions()||[],function(e,t){t in f.storeLoadOptions||(f.storeLoadOptions[t]=h[t])}),this._isLoadingAll=e.isLoadingAll,r._scheduleCustomLoadCallbacks(u),c._scheduleLoadCallbacks(u),r._handleDataLoading(f),t=function(){if(!c.store())return u.reject("canceled");(0,d.when)(f.data||r.loadFromStore(f.storeLoadOptions)).done(function(t,n){f.data=t,f.extra=n||{},r._handleDataLoaded(f),e.requireTotalCount&&void 0===f.extra.totalCount&&(f.extra.totalCount=l.totalCount(f.storeLoadOptions)),(0,d.when)(f.data,f.extra.totalCount).done(function(e,t){f.extra.totalCount=t,u.resolve(e,f.extra)}).fail(u.reject)}).fail(u.reject)},n=r.option("loadingTimeout"),a.default.isDefined(n)?(0,o.executeAsync)(t,n):t(),u.fail(function(){r._eventsStrategy.fireEvent("loadError",arguments)}).always(function(){i._isLoadingAll=!1}).promise()}return c.load()},reload:function(e){return e?this._dataSource.reload():this._dataSource.load()},getCachedStoreData:function(){return this._cachedStoreData}}}())},MPiI:function(e,t,n){"use strict";var i=T(n("FKN7")),r=T(n("jeLr")),o=T(n("D6VQ")),a=T(n("0osO")),s=n("KAnu"),c=n("ti0F"),u=n("zl3R"),l=n("XpgS"),d=n("1LL4"),h=n("TssP"),f=T(n("uHaw")),p=n("v4HY"),g=T(n("imRD")),m=T(n("zBVi")),v=T(n("Lci2")),_=n("cGv3"),y=T(n("cGV2")),b=(T(n("wvdA")),T(n("Vg8w"))),w=T(n("o09w")),C=T(n("ZA3g")),O=n("tJvG"),S=T(n("+6qP")),k=T(n("GEWs")),x=n("Qs8D");function T(e){return e&&e.__esModule?e:{default:e}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n").addClass("dx-widget").addClass("dx-layout-manager-hidden-label").appendTo("body");var t=e._renderLabel({text:" ",location:this._labelLocation()}).appendTo(this._$hiddenElement);this._hiddenLabelText=t.find(".dx-field-item-label-text")[0]},_removeHiddenElement:function(){this._$hiddenElement.remove(),this._hiddenLabelText=null},_getLabelWidthByText:function(e){return this._hiddenLabelText.innerHTML=e,this._hiddenLabelText.offsetWidth},_getLabelsSelectorByCol:function(e,t){return"."+((t=t||{}).inOneColumn?"dx-field-item":"dx-col-"+e)+(t.excludeTabbed?":not(.dx-field-item-tab)":"")+"> .dx-field-item-label > .dx-field-item-label-content"},_getLabelText:function(e){var t,n,i=e.children.length,r="";for(n=0;ns&&(s=i);for(r=0;r .dx-field-item-content > ."+I+i)},_applyLabelsWidthWithGroups:function(e,t,n){if(this.option("alignItemLabelsInAllGroups"))this._applyLabelsWidthWithNestedGroups(e,t,n);else{var i,r=this.$element().find(".dx-form-group");for(i=0;i0&&e.remove(),this.option("showValidationSummary")){var t=(0,i.default)("
").addClass(M).appendTo(this._getContent());this._validationSummary=t.dxValidationSummary({validationGroup:this._getValidationGroup()}).dxValidationSummary("instance")}},_prepareItems:function(e,t,n,i){if(e){for(var r=[],o=0;o").appendTo(n),c=(0,d.extend)({},e.tabPanelOptions,{dataSource:e.tabs,onItemRendered:function(e){return(0,p.triggerShownEvent)(e.itemElement)},itemTemplate:function(e,t,n){var r=(0,i.default)(n),a=(0,s.ensureDefined)(e.alignItemLabels,!0),c=o._renderLayoutManager(o._tryGetItemsForTemplate(e),r,{colCount:e.colCount,alignItemLabels:a,screenByWidth:o.option("screenByWidth"),colCountByScreen:e.colCountByScreen,cssItemClass:e.cssItemClass,onLayoutChanged:function(t){o._alignLabelsInColumn({$container:r,layoutManager:c,items:e.items,inOneColumn:t})}});o._itemsRunTimeInfo&&o._itemsRunTimeInfo.extendRunTimeItemInfoByKey(e.guid,{layoutManager:c}),a&&o._alignLabelsInColumn({$container:r,layoutManager:c,items:e.items,inOneColumn:c.isSingleColumnMode()})}}),u=function(e,t){Array.isArray(e)&&e.forEach(function(e){return o._itemsRunTimeInfo.extendRunTimeItemInfoByKey(e.guid,{widgetInstance:t})})},l=this._createComponent(a,w.default,c);l.on("optionChanged",function(e){"dataSource"===e.fullName&&u(e.value,e.component)}),u([{guid:e.guid}].concat(function(e){if(Array.isArray(e))return E(e)}(r=e.tabs)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l)},_itemGroupTemplate:function(e,t,n){var r,o,a=(0,i.default)("
").toggleClass("dx-form-group-with-caption",(0,c.isDefined)(e.caption)&&e.caption.length).addClass(I).appendTo(n);e.caption&&(0,i.default)("").addClass("dx-form-group-caption").text(e.caption).appendTo(a);var s=(0,i.default)("
").addClass("dx-form-group-content").appendTo(a);if(e.groupContentTemplate){var u={formData:this.option("formData"),component:this};e.groupContentTemplate.render({model:u,container:(0,p.getPublicElement)(s)})}else o=this._renderLayoutManager(this._tryGetItemsForTemplate(e),s,{colCount:e.colCount,colCountByScreen:e.colCountByScreen,alignItemLabels:e.alignItemLabels,cssItemClass:e.cssItemClass}),this._itemsRunTimeInfo&&this._itemsRunTimeInfo.extendRunTimeItemInfoByKey(e.guid,{layoutManager:o}),r=o._getColCount(),-1===(0,l.inArray)(r,this._groupsColCount)&&this._groupsColCount.push(r),a.addClass("dx-group-colcount-"+r),a.attr(D,r)},_renderLayoutManager:function(e,t,n){var r=(0,i.default)("
"),o=this,a=o._getLayoutManagerConfig(e,n);o._cachedColCountOptions.push({colCountByScreen:(0,d.extend)({lg:n.colCount,md:n.colCount,sm:n.colCount,xs:1},n.colCountByScreen)}),r.appendTo(t);var s=o._createComponent(r,"dxLayoutManager",a);return s.on("autoColCountChanged",function(){o._refresh()}),o._cachedLayoutManagers.push(s),s},_getValidationGroup:function(){return this.option("validationGroup")||this},_getLayoutManagerConfig:function(e,t){var n=this,i={form:this,validationGroup:this._getValidationGroup(),showRequiredMark:this.option("showRequiredMark"),showOptionalMark:this.option("showOptionalMark"),requiredMark:this.option("requiredMark"),optionalMark:this.option("optionalMark"),requiredMessage:this.option("requiredMessage"),screenByWidth:this.option("screenByWidth"),layoutData:this.option("formData"),labelLocation:this.option("labelLocation"),customizeItem:this.option("customizeItem"),minColWidth:this.option("minColWidth"),showColonAfterLabel:this.option("showColonAfterLabel"),onEditorEnterKey:this.option("onEditorEnterKey"),onFieldDataChanged:function(e){n._isDataUpdating||n._triggerOnFieldDataChanged(e)},validationBoundary:this.option("scrollingEnabled")?this.$element():void 0};return(0,d.extend)(i,{items:e,onContentReady:function(e){n._itemsRunTimeInfo.addItemsOrExtendFrom(e.component._itemsRunTimeInfo),t.onContentReady&&t.onContentReady(e)},onDisposing:function(e){var t=e.component.getItemsRunTimeInfo();n._itemsRunTimeInfo.removeItemsByItems(t)},colCount:t.colCount,alignItemLabels:t.alignItemLabels,cssItemClass:t.cssItemClass,colCountByScreen:t.colCountByScreen,onLayoutChanged:t.onLayoutChanged,width:t.width})},_createComponent:function(e,t,n){var i=this;return i._extendConfig(n=n||{},{readOnly:i.option("readOnly")}),i.callBase(e,t,n)},_attachSyncSubscriptions:function(){var e=this;e.on("optionChanged",function(t){var n=t.fullName;"formData"===n&&((0,c.isDefined)(t.value)||e._options.silent("formData",t.value={}),e._triggerOnFieldDataChangedByDataSet(t.value)),e._cachedLayoutManagers.length&&(0,u.each)(e._cachedLayoutManagers,function(i,r){"formData"===n&&(e._isDataUpdating=!0,r.option("layoutData",t.value),e._isDataUpdating=!1),"readOnly"!==t.name&&"disabled"!==t.name||r.option(n,t.value)})})},_optionChanged:function(e){var t=this._getRootLevelOfExpectedComplexOption(e.fullName,["formData","items"]);if(t)this._customHandlerOfComplexOption(e,t);else switch(e.name){case"formData":this.option("items")?(0,c.isEmptyObject)(e.value)&&this._resetValues():this._invalidate();break;case"items":case"colCount":case"onFieldDataChanged":case"onEditorEnterKey":case"labelLocation":case"alignItemLabels":case"showColonAfterLabel":case"customizeItem":case"alignItemLabelsInAllGroups":case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":case"requiredMessage":case"scrollingEnabled":case"formID":case"colCountByScreen":case"screenByWidth":case"stylingMode":this._invalidate();break;case"showValidationSummary":this._renderValidationSummary();break;case"minColWidth":"auto"===this.option("colCount")&&this._invalidate();break;case"readOnly":break;case"width":this.callBase(e),this._rootLayoutManager.option(e.name,e.value),this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode());break;case"visible":this.callBase(e),e.value&&(0,p.triggerShownEvent)(this.$element());break;case"validationGroup":y.default.removeGroup(e.previousValue||this),this._invalidate();break;default:this.callBase(e)}},_getRootLevelOfExpectedComplexOption:function(e,t){var n,i=e.split(".");if(i.length>1){var r,o=i[0];for(r=0;r-1&&(y.default.addGroup(this._getValidationGroup()),this.option("showValidationSummary")&&this._validationSummary&&this._validationSummary._initGroupRegistration())},_setLayoutManagerItemOption:function(e,t,n,i){var r=this;if(this._updateLockCount>0){!e._updateLockCount&&e.beginUpdate();var o=this._itemsRunTimeInfo.getKeyByPath(i);this.postponedOperations.add(o,function(){return!e._disposed&&e.endUpdate(),(new O.Deferred).resolve()})}e.on("contentReady",function e(t){if(t.component.off("contentReady",e),(0,x.isFullPathContainsTabs)(i)){var n=(0,x.tryGetTabPath)(i),o=r._itemsRunTimeInfo.getGroupOrTabLayoutManagerByPath(n);r._alignLabelsInColumn({items:o.option("items"),layoutManager:o,$container:o.$element(),inOneColumn:o.isSingleColumnMode()})}else r._alignLabels(r._rootLayoutManager,r._rootLayoutManager.isSingleColumnMode())}),e.option(t,n),this._updateValidationGroupAndSummaryIfNeeded(t)},_tryChangeLayoutManagerItemOption:function(e,t){var n=e.split("."),i=(0,x.getOptionNameFromFullName)(e);if("items"===i&&n.length>1){var r=this._getItemPath(n),o=this._itemsRunTimeInfo.getGroupOrTabLayoutManagerByPath(r);if(o){this._itemsRunTimeInfo.removeItemsByItems(o.getItemsRunTimeInfo());var a=this._prepareItems(t,!1,r);return this._setLayoutManagerItemOption(o,i,a,r),!0}}else if(n.length>2){var s=n.length-2,c=this._getItemPath(n.slice(0,s)),u=this._itemsRunTimeInfo.getGroupOrTabLayoutManagerByPath(c);if(u){var l=(0,x.getFullOptionName)(n[s],i);if("editorType"===i&&u.option(l)!==t)return!1;if("visible"===i){var d=this.option((0,x.getFullOptionName)(c,"items"));if(d&&d.length){var h=u.option("items");d.forEach(function(e,t){h[t].visibleIndex=e.visibleIndex})}}return this._setLayoutManagerItemOption(u,l,t,c),!0}}return!1},_tryChangeLayoutManagerItemOptions:function(e,t){var n,i=this;return this.beginUpdate(),(0,u.each)(t,function(t,r){if(!(n=i._tryChangeLayoutManagerItemOption((0,x.getFullOptionName)(e,t),r)))return!1}),this.endUpdate(),n},_customHandlerOfComplexOption:function(e,t){var n=e.fullName.split("."),i=e.value;if("items"===t){var r=this._getItemPath(n),o=this.option(r),a=e.fullName.replace(r+".",""),s=a.split(".")[0].replace(/\[\d+]/,""),c=this._tryCreateItemOptionAction(s,o,o[s],e.previousValue,r);if(!this._tryExecuteItemOptionAction(c)&&!this._tryChangeLayoutManagerItemOption(e.fullName,i)&&o){this._changeItemOption(o,a,i);var u=this._generateItemsFromData(this.option("items"));this.option("items",u)}}if("formData"===t){var l=n.slice(1).join("."),d=this.getEditor(l);d?d.option("value",i):this._triggerOnFieldDataChanged({dataField:l,value:i})}},_getItemPath:function(e){var t,n=e[0];for(t=1;t0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]u.b.TRACKING_NUMBER_BARCODE_LENGTH&&(o.taskManagerService.alarmPlay(),o.taskManagerService.showToast("Tracking number barcode exceeds maximum defined limit ("+u.b.TRACKING_NUMBER_BARCODE_LENGTH+" characters)"),o.shipment.transport.trackingNumber="",1))},o}return p(t,e),t.prototype.ngOnInit=function(){return m(this,void 0,void 0,function(){var e,t=this;return v(this,function(n){switch(n.label){case 0:return this.copyOfShipment=JSON.parse(JSON.stringify(this.shipment)),this.shipmentFrozen=this.shipment.status===s.e.Delivered||this.shipment.status===s.e.DeliveredBy3rdParty||!!this.shipment.parent,this.subscriptions.push(this.barcodeScanEvent.subscribe(function(e){return m(t,void 0,void 0,function(){return v(this,function(t){switch(t.label){case 0:return[4,this.handleScan(e)];case 1:return t.sent(),[2]}})})})),console.log("this.shippingMethodList: ",this.shippingMethodList),[4,this.initViaFlights()];case 1:return n.sent(),[4,Promise.all([this.tsoService.getOriginLabs(null,null,this.shipment.isException),this.tsoService.getDestinationLabs(null,null)])];case 2:return e=n.sent(),this.originLabsList=e[0],this.destinationLabsList=e[1],this.shipmentShippingMethod=this.shipment.shipmentMethod?this.shipment.shipmentMethod._id:"",this.shipmentTruckingNumber=this.shipment.transport&&this.shipment.transport.trackingNumber?this.shipment.transport.trackingNumber:"",[2]}})})},t.prototype.ngOnDestroy=function(){this.subscriptions.forEach(function(e){e.unsubscribe()})},t.prototype.searchInAirports=function(e,t){return void 0===t&&(t=!1),m(this,void 0,void 0,function(){var n,i,r,o;return v(this,function(a){switch(a.label){case 0:return n=[],i=e.text,r={orderBy:"code-name-city",pageSize:this.pageSize,page:t?0:this.pageSize*Math.ceil(e.component.items.length/this.pageSize)},o=i?[{property:"code-name-city",operator:"like",value:i}]:[],e.component.startSearch(),e.component.enableInfiniteScroll(),this.shipment.shipmentMethod.kind!==this.shippingMethodTypes.questAirline?[3,2]:[4,this.tsoService.getQuestAirports(o,r)];case 1:return n=a.sent(),[3,4];case 2:return[4,this.tsoService.getComertialAirports(o,r)];case 3:n=a.sent(),a.label=4;case 4:return this.pagedList=t?n:e.component.items.concat(n),e.component.endInfiniteScroll(),e.component.endSearch(),[2]}})})},t.prototype.searchInCarriers=function(e,t){return void 0===t&&(t=!1),m(this,void 0,void 0,function(){var n,i,r,o;return v(this,function(a){switch(a.label){case 0:return n=[],i=e.text,r={orderBy:"code-name-city",pageSize:this.pageSize,page:t?0:this.pageSize*Math.ceil(e.component.items.length/this.pageSize)},o=i?[{property:"fs",operator:"==",value:i}]:[],e.component.startSearch(),e.component.enableInfiniteScroll(),[4,this.tsoService.getCarriers(o,r)];case 1:return n=a.sent(),this.pagedList=t?n:e.component.items.concat(n),e.component.endInfiniteScroll(),e.component.endSearch(),[2]}})})},t.prototype.handleScan=function(e){return m(this,void 0,void 0,function(){return v(this,function(t){switch(t.label){case 0:if(!e)return[2];switch(e.substring(0,2)){case u.a.SC:return[3,1]}return[3,3];case 1:return e.length>u.b.SHIPMENT_BARCODE_LENGTH?(this.taskManagerService.alarmPlay(),this.taskManagerService.showToast("Shipment Barcode exceeds maximum defined limit ("+u.b.SHIPMENT_BARCODE_LENGTH+" characters)"),[2]):[4,this.dismiss(e)];case 2:return t.sent(),[3,4];case 3:return this.shipment.shipmentMethod.kind===this.shippingMethodTypes.commercialAirline||this.shipment.shipmentMethod.kind===this.shippingMethodTypes.overnight?this.validateTrackingNumber(e)?(this.shipment.transport.trackingNumber=e,[2]):[2]:(this.taskManagerService.alarmPlay(),this.taskManagerService.showToast("Invalid Barcode"),[3,4]);case 4:return[2]}})})},t.prototype.carrierChange=function(){this.carrierSelectable.confirm(),this.carrierSelectable.close()},t.prototype.shippingMethodChange=function(e){return m(this,void 0,void 0,function(){var t,n,i,r,o,a,s,c,u=this;return v(this,function(l){switch(l.label){case 0:return this.shipment.shipmentMethod=e.value,this.shipment.transport={etd:this.shipment.transport.etd||(new Date).toISOString(),viaFlight:[]},this.viaFlights=[],t={orderBy:"code-name-city",pageSize:1,page:0},this.shipment.shipmentMethod.kind!==this.shippingMethodTypes.questAirline?[3,7]:(n=this.shipment.transport,[4,this.tsoService.getCarriers([{property:"fs",operator:"==",value:"LBQ"}],t)]);case 1:return n.carrier=l.sent()[0],this.shipment.transport.originAirport?[3,3]:(o=this.originLabsList.find(function(e){return e.addressId===u.shipment.originLab.addressId}))&&o.airport?(i=this.shipment.transport,[4,this.tsoService.getQuestAirports([{property:"fs",operator:"==",value:o.airport}],t)]):[3,3];case 2:i.originAirport=l.sent()[0],l.label=3;case 3:return this.shipment.transport.destinationAirport?[3,5]:(s=this.destinationLabsList.find(function(e){return e.addressId===u.shipment.destinationLab.addressId}))&&s.airport?(r=this.shipment.transport,[4,this.tsoService.getQuestAirports([{property:"fs",operator:"==",value:s.airport}],t)]):[3,5];case 4:r.destinationAirport=l.sent()[0],l.label=5;case 5:return[4,this.getQuestAirFlights({},!1)];case 6:return l.sent(),[3,12];case 7:return this.shipment.shipmentMethod.kind!==this.shippingMethodTypes.commercialAirline?[3,12]:this.shipment.transport.originAirport?[3,9]:(o=this.originLabsList.find(function(e){return e.addressId===u.shipment.originLab.addressId}))&&o.commercialAirport?(a=this.shipment.transport,[4,this.tsoService.getComertialAirports([{property:"fs",operator:"==",value:o.commercialAirport}],t)]):[3,9];case 8:a.originAirport=l.sent()[0],l.label=9;case 9:return this.shipment.transport.destinationAirport?[3,11]:(s=this.destinationLabsList.find(function(e){return e.addressId===u.shipment.destinationLab.addressId}))&&s.commercialAirport?(c=this.shipment.transport,[4,this.tsoService.getComertialAirports([{property:"fs",operator:"==",value:s.commercialAirport}],t)]):[3,11];case 10:c.destinationAirport=l.sent()[0],l.label=11;case 11:return[3,12];case 12:return console.log(e),[2]}})})},t.prototype.closeMethodList=function(){return m(this,void 0,void 0,function(){return v(this,function(e){switch(e.label){case 0:return console.log("close"),[4,this.methodSelectable.close()];case 1:return e.sent(),[2]}})})},t.prototype.closeCarrierList=function(){return m(this,void 0,void 0,function(){return v(this,function(e){switch(e.label){case 0:return[4,this.carrierSelectable.close()];case 1:return e.sent(),[2]}})})},t.prototype.closeOriginAirport=function(){return m(this,void 0,void 0,function(){return v(this,function(e){switch(e.label){case 0:return[4,this.originAirportSelectable.close()];case 1:return e.sent(),[2]}})})},t.prototype.closeDestinationAirport=function(){return m(this,void 0,void 0,function(){return v(this,function(e){switch(e.label){case 0:return[4,this.destinationAirportSelectable.close()];case 1:return e.sent(),[2]}})})},t.prototype.closeFlightNo=function(){return m(this,void 0,void 0,function(){return v(this,function(e){switch(e.label){case 0:return[4,this.flightNoSelectable.close()];case 1:return e.sent(),[2]}})})},t.prototype.mapQuestAirFlights=function(e){var t=this;return e.map(function(e){e.routeNumber=e.routeNumber.toString();var n=e.stops.find(function(e){return e.legStart}),i=new Date(0);i.setUTCSeconds(n.eTD?n.eTD.seconds:0);var r=i.toString().substr(16,5),o=e.stops.find(function(e){return e.legEnd});(i=new Date(0)).setUTCSeconds(o.eTA?o.eTA.seconds:0);var a=i.toString().substr(16,5);return e.displayName=e.routeNumber+" (ORG: "+n.airportCode+" DST: "+o.airportCode+" ETD: "+r+" ETA: "+a+" STOPS: "+e.stops.length+")",e.viaFlights&&e.viaFlights.length&&(e.viaFlights=t.mapQuestAirFlights(e.viaFlights)),e.etd=r,e.eta=a,e})},t.prototype.getQuestAirFlights=function(e,t){return m(this,void 0,void 0,function(){var n;return v(this,function(i){switch(i.label){case 0:return this.isViaFlightsInited||t?(console.log("event",e),t||(this.viaFlights=[],this.shipment.transport.viaFlight=[],this.shipment.transport.flightNo=""),this.shipment.transport.etd&&this.shipment.transport.originAirport&&this.shipment.transport.destinationAirport?[4,this.tsoService.calculateRoutes(this.shipment.transport.etd,this.shipment.transport.originAirport.fs,this.shipment.transport.destinationAirport.fs)]:[3,2]):[2];case 1:n=i.sent(),this.questAirFlights=this.mapQuestAirFlights(n),console.log("calculateRoutes",this.questAirFlights),1===this.questAirFlights.length&&(this.shipment.transport.flightNo=this.questAirFlights[0].routeNumber,this.onQuestAirFlightNoChange({},!1)),i.label=2;case 2:return[2]}})})},t.prototype.onDepartureDateChanged=function(e){return m(this,void 0,void 0,function(){return v(this,function(t){switch(t.label){case 0:return this.shipment.transport.etd=e,[4,this.getQuestAirFlights({},!1)];case 1:return t.sent(),[2]}})})},t.prototype.onQuestAirFlightNoChange=function(e,t){if(this.isViaFlightsInited||t){var n=e&&e.detail?e.detail.value:this.shipment.transport.flightNo||"",i=this.questAirFlights.find(function(e){return e.routeNumber.toString()===n.toString()});this.viaFlights=[],t||(this.shipment.transport.viaFlight=[]),i&&i.viaFlights&&i.viaFlights.length&&(this.viaFlights.push({flights:i.viaFlights}),t||(this.shipment.transport.viaFlight.push({destinationAirport:null,flightNo:1===i.viaFlights.length?i.viaFlights[0].routeNumber:null,originAirport:null,sequence:null}),1===i.viaFlights.length&&this.viaFlightNumberChanged({detail:{value:i.viaFlights[0].routeNumber}},!1))),this.questAirSelectedFlight=i}},t.prototype.initViaFlights=function(){return m(this,void 0,void 0,function(){var e,t;return v(this,function(n){switch(n.label){case 0:return[4,this.getQuestAirFlights({},!0)];case 1:n.sent(),this.onQuestAirFlightNoChange({},!0),this.shipment.transport.viaFlight=this.shipment.transport.viaFlight||[],e=0,n.label=2;case 2:return e-1&&(i=this.viaFlights[n].flights.find(function(t){return t.routeNumber.toString()===e.detail.value.toString()}))?(r={orderBy:"code-name-city",pageSize:1,page:0},o=i.stops.find(function(e){return e.legStart}).airportCode,a=i.stops.find(function(e){return e.legEnd}).airportCode,s=a?[{property:"fs",operator:"==",value:a}]:[],c=this.shipment.transport.viaFlight[n],[4,this.tsoService.getQuestAirports(o?[{property:"fs",operator:"==",value:o}]:[],r)]):[3,3];case 1:return c.originAirport=l.sent()[0],u=this.shipment.transport.viaFlight[n],[4,this.tsoService.getQuestAirports(s,r)];case 2:u.destinationAirport=l.sent()[0],this.viaFlights.length=n+1,t||(this.shipment.transport.viaFlight.length=n+1),i.viaFlights&&i.viaFlights.length&&(this.viaFlights.push({flights:i.viaFlights}),t||(this.shipment.transport.viaFlight.push({destinationAirport:null,flightNo:1===i.viaFlights.length?i.viaFlights[0].routeNumber:null,originAirport:null,sequence:null}),1===i.viaFlights.length&&this.viaFlightNumberChanged({detail:{value:i.viaFlights[0].routeNumber}},!1))),this.questAirLastViaFlight=i,l.label=3;case 3:return[2]}})})},t.prototype.onSubmit=function(){return m(this,void 0,void 0,function(){var e,t,n,i,r,o,a;return v(this,function(s){switch(s.label){case 0:this.loader=!0,s.label=1;case 1:return s.trys.push([1,7,,9]),e=!1,this.shipmentTruckingNumber&&this.shipmentTruckingNumber!==this.shipment.transport.trackingNumber&&this.shipmentShippingMethod===this.shipment.shipmentMethod._id?[4,this.tsoService.findShipmentsByTrackingNumberAndShippingMethod(this.shipmentTruckingNumber,this.shipmentShippingMethod)]:[3,4];case 2:return t=s.sent(),this.loader=!1,t&&t.length>1?[4,this.taskManagerService.showMultiVariantConfirmation("TRACKING NUMBER CHANGE","IS TRACKING NUMBER CHANGE ASSOCIATED WITH ALL SHIPMENT WITH "+this.shipmentTruckingNumber,[{text:"Yes",value:"yes"},{text:"No",value:"no"},{text:"Cancel",value:"cancel"}])]:[3,4];case 3:switch(s.sent()){case"yes":e=!0;break;case"no":e=!1;break;case"cancel":default:return[2]}s.label=4;case 4:return this.loader=!0,this.shipment.shipmentMethod.kind===this.shippingMethodTypes.questAirline&&this.questAirSelectedFlight&&(n=this.shipment.transport.etd.toString().substr(0,10),this.shipment.transport.etd=new Date(n+" "+this.questAirSelectedFlight.etd),this.shipment.transport.eta&&(i=this.questAirLastViaFlight||this.questAirSelectedFlight,r=this.shipment.transport.eta.toString().substr(0,10),this.shipment.transport.eta=new Date(r+" "+i.eta))),o=this,[4,this.tsoService.createTSOShipment(this.shipment,!1,e)];case 5:return o.shipment=s.sent(),this.loader=!1,this.copyOfShipment=JSON.parse(JSON.stringify(this.shipment)),this.shipmentShippingMethod=this.shipment.shipmentMethod?this.shipment.shipmentMethod._id:"",this.shipmentTruckingNumber=this.shipment.transport&&this.shipment.transport.trackingNumber?this.shipment.transport.trackingNumber:"",[4,this.dismiss("navigate-to-items")];case 6:return s.sent(),[3,9];case 7:return a=s.sent(),this.loader=!1,[4,this.taskManagerService.showAlert("",a.message)];case 8:return s.sent(),[3,9];case 9:return[2]}})})},t.prototype.dismiss=function(e){return void 0===e&&(e=null),m(this,void 0,void 0,function(){return v(this,function(t){switch(t.label){case 0:return this.shipment.shipmentMethod=this.copyOfShipment.shipmentMethod,this.shipment.transport=this.copyOfShipment.transport,[4,this.modalController.dismiss(e)];case 1:return t.sent(),[2]}})})},t.prototype.searchFlights=function(){var e;return m(this,void 0,void 0,function(){var t,n,i,r=this;return v(this,function(a){return t={orderBy:"code-name-city",pageSize:1,page:0},n=d(this.shipment.transport.etd),this.shipment.shipmentMethod.kind===this.shippingMethodTypes.commercialAirline&&(i={departureAirport:this.shipment.transport.originAirport.fs,arrivalAirport:this.shipment.transport.destinationAirport.fs,carrier:null===(e=this.shipment.transport.carrier)||void 0===e?void 0:e.fs,flightNo:this.shipment.transport.flightNo,year:n.year(),month:n.month()+1,day:n.date(),offset:-n.utcOffset()},this.loader=!0,this.privateApiCaller.get("tso/flightstats/schedule",i).subscribe(function(e){return m(r,void 0,void 0,function(){var n,i,r;return v(this,function(a){switch(a.label){case 0:return this.loader=!1,[4,this.modalController.create({component:c.a,componentProps:new o.a({flights:e})})];case 1:return[4,(n=a.sent()).present()];case 2:return a.sent(),[4,n.onDidDismiss()];case 3:return(i=a.sent().data)?(this.shipment.transport.etd=i.departureTime,this.shipment.transport.eta=i.arrivalTime,this.shipment.transport.flightNo=i.flightNumber,this.shipment.transport.comercialViaStop={flightNumber:i.connectingFlightNumber,airport:i.stops.join()},r=this.shipment.transport,[4,this.tsoService.getCarriers(i.carrierFsCode?[{property:"fs",operator:"==",value:i.carrierFsCode}]:[],t)]):[2];case 4:return r.carrier=a.sent()[0],[2]}})})},function(e){r.loader=!1})),[2]})})},t.prototype.resetCarrier=function(){this.shipment.transport.carrier=null,this.carrierSelectable.clear(),this.carrierSelectable.close()},t.\u0275fac=function(e){return new(e||t)(h.ac(r.Gb),h.ac(a.a),h.ac(f.v),h.ac(l.a))},t.\u0275cmp=h.Ub({type:t,selectors:[["app-tso-shipping"]],viewQuery:function(e,t){var n;1&e&&(h.Xc(_,!0),h.Xc(y,!0),h.Xc(b,!0),h.Xc(w,!0),h.Xc(C,!0)),2&e&&(h.Ec(n=h.oc())&&(t.carrierSelectable=n.first),h.Ec(n=h.oc())&&(t.originAirportSelectable=n.first),h.Ec(n=h.oc())&&(t.destinationAirportSelectable=n.first),h.Ec(n=h.oc())&&(t.methodSelectable=n.first),h.Ec(n=h.oc())&&(t.flightNoSelectable=n.first))},inputs:{shipment:"shipment",shippingMethodList:"shippingMethodList"},features:[h.Lb],decls:22,vars:10,consts:[["title","Shipping","hideCloseButton","true",3,"onDismiss"],["itemValueField","_id","itemTextField","name","placeholder","Shipping Method",3,"disabled","ngModel","items","canSearch","searchFailText","ngModelChange","onChange"],["methodSelectable",""],["ionicSelectableHeaderTemplate",""],["ionicSelectableItemTemplate",""],[4,"ngIf"],["justify-content-center",""],[1,"btnDanger",3,"click"],["name","close-circle"],[3,"disabled","click"],["name","save"],["color","primary"],["slot","start"],[3,"click"],["name","arrow-back"],[2,"height","30px","width","30px","margin-right","1rem",3,"src"],["position","floating"],["type","date","max","3000-12-31",3,"disabled","ngModel","ngModelChange"],["itemValueField","fs","itemTextField","code-name","placeholder","Carrier: *",3,"ngModel","items","hasInfiniteScroll","disabled","canSearch","searchFailText","ngModelChange","onInfiniteScroll","onSearch","onSelect"],["carrierSelectable",""],["ionicSelectableFooterTemplate",""],["itemValueField","fs","itemTextField","code-name-city","placeholder","Origin Airport: *",3,"ngModel","items","disabled","hasInfiniteScroll","canSearch","searchFailText","ngModelChange","onInfiniteScroll","onSearch","onChange"],["originAirportSelectable",""],["itemValueField","fs","itemTextField","code-name-city","placeholder","Destination Airport: *",3,"ngModel","items","disabled","hasInfiniteScroll","canSearch","searchFailText","ngModelChange","onInfiniteScroll","onSearch","onChange"],["destinationAirportSelectable",""],["type","date","max","3000-12-31",3,"ngModel","disabled","ngModelChange"],["placeholder","Select Flight Number",3,"ngModel","disabled","ngModelChange","ionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[4,"ngFor","ngForOf"],["placeholder","Select Via Flight Number",3,"ngModel","disabled","ngModelChange","ionChange"],[3,"ngModel","disabled"],["type","text","invalid-characters","",3,"ngModel","disabled","ngModelChange","ionChange"],["itemValueField","fs","itemTextField","code-name-city","placeholder","Origin Airport: *",3,"ngModel","items","hasInfiniteScroll","disabled","canSearch","searchFailText","ngModelChange","onInfiniteScroll","onSearch"],["itemValueField","fs","itemTextField","code-name-city","placeholder","Destination Airport: *",3,"ngModel","items","hasInfiniteScroll","disabled","canSearch","searchFailText","ngModelChange","onInfiniteScroll","onSearch"],["itemValueField","fs","itemTextField","code-name","placeholder","Carrier: ",3,"ngModel","items","hasInfiniteScroll","disabled","canSearch","searchFailText","ngModelChange","onInfiniteScroll","onSearch","onSelect"],["type","text","maxlength","20","invalid-characters","",3,"ngModel","disabled","ngModelChange"]],template:function(e,t){1&e&&(h.gc(0,"base-modal",0),h.nc("onDismiss",function(){return t.dismiss("navigate-to-items")}),h.gc(1,"base-modal-content"),h.gc(2,"ion-content"),h.gc(3,"ion-item"),h.gc(4,"ion-label"),h.Rc(5,"Shipping Method *"),h.fc(),h.gc(6,"ionic-selectable",1,2),h.nc("ngModelChange",function(e){return t.shipment.shipmentMethod=e})("onChange",function(e){return t.shippingMethodChange(e)}),h.Pc(8,O,6,0,"ng-template",3),h.Pc(9,S,2,2,"ng-template",4),h.fc(),h.fc(),h.Pc(10,L,32,31,"ng-container",5),h.Pc(11,B,41,33,"ng-container",5),h.Pc(12,V,5,2,"ng-container",5),h.fc(),h.gc(13,"ion-footer"),h.gc(14,"ion-row",6),h.gc(15,"ion-button",7),h.nc("click",function(){return t.dismiss("navigate-to-items")}),h.bc(16,"ion-icon",8),h.Rc(17," Cancel "),h.fc(),h.gc(18,"ion-button",9),h.nc("click",function(){return t.onSubmit()}),h.bc(19,"ion-icon",10),h.Rc(20," Save "),h.fc(),h.fc(),h.fc(),h.fc(),h.fc(),h.Pc(21,$,1,0,"cmx-loader",5)),2&e&&(h.Ob(6),h.wc("disabled",t.shipmentFrozen||t.shipment.type===t.shipmentTypes.consolidation)("ngModel",t.shipment.shipmentMethod)("items",t.shippingMethodList)("canSearch",!0)("searchFailText","No data found."),h.Ob(4),h.wc("ngIf",t.shipment.shipmentMethod.kind===t.shippingMethodTypes.questAirline),h.Ob(1),h.wc("ngIf",t.shipment.shipmentMethod.kind===t.shippingMethodTypes.commercialAirline),h.Ob(1),h.wc("ngIf",t.shipment.shipmentMethod.kind===t.shippingMethodTypes.overnight),h.Ob(6),h.wc("disabled",t.shipmentFrozen||!t.shipment.shipmentMethod.kind||(t.shipment.shipmentMethod.kind===t.shippingMethodTypes.commercialAirline||t.shipment.shipmentMethod.kind===t.shippingMethodTypes.questAirline)&&(t.shipment.shipmentMethod.kind===t.shippingMethodTypes.commercialAirline&&!(null!=t.shipment&&null!=t.shipment.transport&&t.shipment.transport.trackingNumber)||!(null!=t.shipment&&null!=t.shipment.transport&&t.shipment.transport.etd)||t.shipment.shipmentMethod.kind===t.shippingMethodTypes.questAirline&&(!(null!=t.shipment&&null!=t.shipment.transport&&t.shipment.transport.carrier)||!(null!=t.shipment&&null!=t.shipment.transport&&t.shipment.transport.flightNo)||t.viaFlights.length&&!(null!=t.shipment&&null!=t.shipment.transport&&null!=t.shipment.transport.viaFlight[t.viaFlights.length-1]&&t.shipment.transport.viaFlight[t.viaFlights.length-1].flightNo))||!(null!=t.shipment&&null!=t.shipment.transport&&t.shipment.transport.originAirport)||!(null!=t.shipment&&null!=t.shipment.transport&&t.shipment.transport.destinationAirport))||t.shipment.shipmentMethod.kind===t.shippingMethodTypes.overnight&&!(null!=t.shipment&&null!=t.shipment.transport&&t.shipment.transport.trackingNumber)),h.Ob(3),h.wc("ngIf",t.loader))},styles:[""]}),t}(o.a)},"N+b8":function(e,t,n){"use strict";var i=y(n("YQNt")),r=y(n("D6VQ")),o=y(n("TEOj")),a=y(n("FKN7")),s=n("XpgS"),c=y(n("KAnu")),u=n("1LL4"),l=n("zl3R"),d=n("z7z0"),h=y(n("ti0F")),f=y(n("cGv3")),p=y(n("jeLr")),g=y(n("KrLa")),m=n("XgSC"),v=n("GCD8"),_=y(n("v4HY"));function y(e){return e&&e.__esModule?e:{default:e}}var b=h.default.isPlainObject,w=h.default.isFunction,C="dxResizable",O=(0,v.addNamespace)(g.default.start,C),S=(0,v.addNamespace)(g.default.move,C),k=(0,v.addNamespace)(g.default.end,C),x={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},T=o.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{handles:"all",step:"1",stepPrecision:"simple",area:void 0,minWidth:30,maxWidth:1/0,minHeight:30,maxHeight:1/0,onResizeStart:null,onResize:null,onResizeEnd:null,roundStepValue:!0})},_init:function(){this.callBase(),this.$element().addClass("dx-resizable")},_initMarkup:function(){this.callBase(),this._renderHandles()},_render:function(){this.callBase(),this._renderActions()},_renderActions:function(){this._resizeStartAction=this._createActionByOption("onResizeStart"),this._resizeEndAction=this._createActionByOption("onResizeEnd"),this._resizeAction=this._createActionByOption("onResize")},_renderHandles:function(){this._handles=[];var e=this.option("handles");if("none"!==e){var t="all"===e?["top","bottom","left","right"]:e.split(" ");(0,l.each)(t,(function(e,t){this._renderHandle(t)}).bind(this)),(0,s.inArray)("bottom",t)+1&&(0,s.inArray)("right",t)+1&&this._renderHandle("corner-bottom-right"),(0,s.inArray)("bottom",t)+1&&(0,s.inArray)("left",t)+1&&this._renderHandle("corner-bottom-left"),(0,s.inArray)("top",t)+1&&(0,s.inArray)("right",t)+1&&this._renderHandle("corner-top-right"),(0,s.inArray)("top",t)+1&&(0,s.inArray)("left",t)+1&&this._renderHandle("corner-top-left"),this._attachEventHandlers()}},_renderHandle:function(e){var t=(0,a.default)("
").addClass("dx-resizable-handle").addClass("dx-resizable-handle-"+e).appendTo(this.$element());this._handles.push(t)},_attachEventHandlers:function(){if(!this.option("disabled")){var e={};e[O]=this._dragStartHandler.bind(this),e[S]=this._dragHandler.bind(this),e[k]=this._dragEndHandler.bind(this),this._handles.forEach(function(t){p.default.on(t,e,{direction:"both",immediate:!0})})}},_detachEventHandlers:function(){this._handles.forEach(function(e){p.default.off(e)})},_toggleEventHandlers:function(e){e?this._attachEventHandlers():this._detachEventHandlers()},_dragStartHandler:function(e){var t=this.$element();if(t.is(".dx-state-disabled, .dx-state-disabled *"))e.cancel=!0;else{this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(e),this._elementLocation=i.default.locate(t);var n=(0,m.getBoundingRect)(t.get(0));this._elementSize={width:n.width,height:n.height},this._renderDragOffsets(e),this._resizeStartAction({event:e,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),e.targetElements=null}},_toggleResizingClass:function(e){this.$element().toggleClass("dx-resizable-resizing",e)},_renderDragOffsets:function(e){var t=this._getArea();if(t){var n=(0,a.default)(e.target).closest(".dx-resizable-handle"),i=n.outerWidth(),r=n.outerHeight(),o=n.offset(),s=t.offset,c=this._getAreaScrollOffset();e.maxLeftOffset=o.left-s.left-c.scrollX,e.maxRightOffset=s.left+t.width-o.left-i+c.scrollX,e.maxTopOffset=o.top-s.top-c.scrollY,e.maxBottomOffset=s.top+t.height-o.top-r+c.scrollY}},_getBorderWidth:function(e,t){if(h.default.isWindow(e.get(0)))return 0;var n=e.css(x[t]);return parseInt(n)||0},_dragHandler:function(e){var t=this.$element(),n=this._movingSides,r=this._elementLocation,o=this._elementSize,a=this._getOffset(e),s=o.width+a.x*(n.left?-1:1),c=o.height+a.y*(n.top?-1:1);(a.x||"strict"===this.option("stepPrecision"))&&this._renderWidth(s),(a.y||"strict"===this.option("stepPrecision"))&&this._renderHeight(c);var u=(0,m.getBoundingRect)(t.get(0));i.default.move(t,{top:r.top+(n.top?a.y-((u.height||c)-c):0),left:r.left+(n.left?a.x-((u.width||s)-s):0)}),this._resizeAction({event:e,width:this.option("width")||s,height:this.option("height")||c,handles:this._movingSides}),_.default.triggerResizeEvent(t)},_getOffset:function(e){var t=e.offset,n=c.default.pairToObject(this.option("step"),!this.option("roundStepValue")),i=this._getMovingSides(e),r="strict"===this.option("stepPrecision");return i.left||i.right||(t.x=0),i.top||i.bottom||(t.y=0),r?this._getStrictOffset(t,n,i):this._getSimpleOffset(t,n)},_getSimpleOffset:function(e,t){return{x:e.x-e.x%t.h,y:e.y-e.y%t.v}},_getStrictOffset:function(e,t,n){var i=this._elementLocation,r=this._elementSize,o=((n.left?i.left:i.left+r.width)+e.x)%t.h,a=((n.top?i.top:i.top+r.height)+e.y)%t.v,s=Math.sign||function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},c=function(e,t){return(1+.2*s(t))%1*e},u=function(e,t){return Math.abs(e)<.2*t},l=e.x-o,d=e.y-a;return o>c(t.h,e.x)&&(l+=t.h),a>c(t.v,e.y)&&(d+=t.v),{x:!n.left&&!n.right||u(e.x,t.h)?0:l,y:!n.top&&!n.bottom||u(e.y,t.v)?0:d}},_getMovingSides:function(e){var t=(0,a.default)(e.target),n=t.hasClass("dx-resizable-handle-corner-top-left"),i=t.hasClass("dx-resizable-handle-corner-top-right"),r=t.hasClass("dx-resizable-handle-corner-bottom-left"),o=t.hasClass("dx-resizable-handle-corner-bottom-right");return{top:t.hasClass("dx-resizable-handle-top")||n||i,left:t.hasClass("dx-resizable-handle-left")||n||r,bottom:t.hasClass("dx-resizable-handle-bottom")||r||o,right:t.hasClass("dx-resizable-handle-right")||i||o}},_getArea:function(){var e=this.option("area");return w(e)&&(e=e.call(this)),b(e)?this._getAreaFromObject(e):this._getAreaFromElement(e)},_getAreaScrollOffset:function(){var e=this.option("area"),t={scrollY:0,scrollX:0};if(!w(e)&&!b(e)){var n=(0,a.default)(e)[0];h.default.isWindow(n)&&(t.scrollX=n.pageXOffset,t.scrollY=n.pageYOffset)}return t},_getAreaFromObject:function(e){var t={width:e.right-e.left,height:e.bottom-e.top,offset:{left:e.left,top:e.top}};return this._correctAreaGeometry(t),t},_getAreaFromElement:function(e){var t,n=(0,a.default)(e);return n.length&&(t={width:n.innerWidth(),height:n.innerHeight(),offset:(0,u.extend)({top:0,left:0},h.default.isWindow(n[0])?{}:n.offset())},this._correctAreaGeometry(t,n)),t},_correctAreaGeometry:function(e,t){var n=t?this._getBorderWidth(t,"left"):0,i=t?this._getBorderWidth(t,"top"):0;e.offset.left+=n+this._getBorderWidth(this.$element(),"left"),e.offset.top+=i+this._getBorderWidth(this.$element(),"top"),e.width-=this.$element().outerWidth()-this.$element().innerWidth(),e.height-=this.$element().outerHeight()-this.$element().innerHeight()},_dragEndHandler:function(e){var t=this.$element();this._resizeEndAction({event:e,width:t.outerWidth(),height:t.outerHeight(),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(e){this.option("width",(0,d.fitIntoRange)(e,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(e){this.option("height",(0,d.fitIntoRange)(e,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(e){switch(e.name){case"disabled":this._toggleEventHandlers(!e.value),this.callBase(e);break;case"handles":this._invalidate();break;case"minWidth":case"maxWidth":f.default.hasWindow()&&this._renderWidth(this.$element().outerWidth());break;case"minHeight":case"maxHeight":f.default.hasWindow()&&this._renderHeight(this.$element().outerHeight());break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":case"roundStepValue":break;default:this.callBase(e)}},_clean:function(){this.$element().find(".dx-resizable-handle").remove()},_useTemplates:function(){return!1}});(0,r.default)(C,T),e.exports=T,e.exports.default=e.exports},"N+wa":function(e,t,n){"use strict";n.d(t,"b",function(){return Y}),n.d(t,"a",function(){return G});var i=n("fXoL"),r=n("c7TG"),o=n("OC8m"),a=n("QMeS"),s=n("Oa+a"),c=n("7/nY"),u=n("Zcen"),l=n("Vln1"),d=n("P3ZC"),h=n("6jrf"),f=n("+csE"),p=n("630O"),g=n("2HW/"),m=n("7w2k"),v=n("+5iT"),_=n("xez0"),y=n("oRFw"),b=n("NIgE"),w=n("Dbm3"),C=n("Rdf6"),O=n("hKvK"),S=n("LxBO"),k=n("yQcJ"),x=n("qk8n"),T=n("sRWM"),E=n("bwlZ"),I=n("gu9j"),D=n("ZyP4"),M=n("E7yo"),A=n("y3WU"),P=n("k4nY"),L=n("z04I"),R=n("5Yhv"),j=n("tyNb"),N=n("ofXK"),F=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},B=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=96&&t<=105||t>=48&&t<=57||e.preventDefault()}}return e.\u0275fac=function(t){return new(t||e)(i.ac(i.q))},e.\u0275dir=i.Vb({type:e,selectors:[["","numbers",""]]}),e}()},NDTZ:function(e,t,n){"use strict";var i=n("FKN7"),r=n("cYys"),o=n("zl3R").each,a=n("KAnu"),s=n("1LL4").extend,c=Math,u=n("bMtV"),l=n("XWCB"),d="dx-scrollview-pull-down-loading",h="dx-scrollview-pull-down-ready",f=u.Scroller.inherit({ctor:function(){this._topPocketSize=0,this.callBase.apply(this,arguments),this._initCallbacks(),this._releaseState()},_releaseState:function(){this._state=0,this._refreshPullDownText()},_refreshPullDownText:function(){var e=this;o([{element:this._$pullingDownText,visibleState:0},{element:this._$pulledDownText,visibleState:1},{element:this._$refreshingText,visibleState:2}],function(t,n){n.element[e._state===n.visibleState?"addClass":"removeClass"]("dx-scrollview-pull-down-text-visible")})},_initCallbacks:function(){this.pullDownCallbacks=r(),this.releaseCallbacks=r(),this.reachBottomCallbacks=r()},_updateBounds:function(){var e="horizontal"!==this._direction;this._topPocketSize=e?Math.round(this._$topPocket[this._dimension]()):0,this._bottomPocketSize=e?Math.round(this._$bottomPocket[this._dimension]()):0,this.callBase(),this._bottomBound=this._minOffset+this._bottomPocketSize},_updateScrollbar:function(){this._scrollbar.option({containerSize:this._containerSize(),contentSize:this._contentSize()-this._topPocketSize-this._bottomPocketSize,scaleRatio:this._getScaleRatio()})},_moveContent:function(){this.callBase(),this._isPullDown()?this._pullDownReady():this._isReachBottom()?this._reachBottomReady():0!==this._state&&this._stateReleased()},_moveScrollbar:function(){this._scrollbar.moveTo(this._topPocketSize+this._location)},_isPullDown:function(){return this._pullDownEnabled&&this._location>=0},_isReachBottom:function(){return this._reachBottomEnabled&&this._location-this._bottomBound<=.5},_scrollComplete:function(){this._inBounds()&&1===this._state?this._pullDownRefreshing():this._inBounds()&&3===this._state?this._reachBottomLoading():this.callBase()},_reachBottomReady:function(){3!==this._state&&(this._state=3,this._minOffset=this._getMinOffset())},_getMaxOffset:function(){return-this._topPocketSize},_getMinOffset:function(){return c.min(this.callBase(),-this._topPocketSize)},_reachBottomLoading:function(){this.reachBottomCallbacks.fire()},_pullDownReady:function(){1!==this._state&&(this._state=1,this._maxOffset=0,this._$pullDown.addClass(h),this._refreshPullDownText())},_stateReleased:function(){0!==this._state&&(this._releaseState(),this._updateBounds(),this._$pullDown.removeClass(d).removeClass(h),this.releaseCallbacks.fire())},_pullDownRefreshing:function(){2!==this._state&&(this._state=2,this._$pullDown.addClass(d).removeClass(h),this._refreshPullDownText(),this.pullDownCallbacks.fire())},_releaseHandler:function(){return 0===this._state&&this._moveToBounds(),this._update(),this._releaseTask&&this._releaseTask.abort(),this._releaseTask=a.executeAsync(this._release.bind(this)),this._releaseTask.promise},_release:function(){this._stateReleased(),this._scrollComplete()},_reachBottomEnablingHandler:function(e){this._reachBottomEnabled!==e&&(this._reachBottomEnabled=e,this._updateBounds())},_pullDownEnablingHandler:function(e){this._pullDownEnabled!==e&&(this._pullDownEnabled=e,this._considerTopPocketChange(),this._updateHandler())},_considerTopPocketChange:function(){this._location-=this._$topPocket.height()||-this._topPocketSize,this._maxOffset=0,this._move()},_pendingReleaseHandler:function(){this._state=1},dispose:function(){this._releaseTask&&this._releaseTask.abort(),this.callBase()}}),p=u.SimulatedStrategy.inherit({_init:function(e){this.callBase(e),this._$pullDown=e._$pullDown,this._$topPocket=e._$topPocket,this._$bottomPocket=e._$bottomPocket,this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=r(),this.releaseCallbacks=r(),this.reachBottomCallbacks=r()},render:function(){this._renderPullDown(),this.callBase()},_renderPullDown:function(){var e=i("
").addClass("dx-scrollview-pull-down-image"),t=i("
").addClass("dx-scrollview-pull-down-indicator"),n=new l(i("
")).$element(),r=this._$pullDownText=i("
").addClass("dx-scrollview-pull-down-text");this._$pullingDownText=i("
").text(this.option("pullingDownText")).appendTo(r),this._$pulledDownText=i("
").text(this.option("pulledDownText")).appendTo(r),this._$refreshingText=i("
").text(this.option("refreshingText")).appendTo(r),this._$pullDown.empty().append(e).append(t.append(n)).append(r)},pullDownEnable:function(e){this._eventHandler("pullDownEnabling",e)},reachBottomEnable:function(e){this._eventHandler("reachBottomEnabling",e)},_createScroller:function(e){var t=this,n=t._scrollers[e]=new f(t._scrollerOptions(e));n.pullDownCallbacks.add(function(){t.pullDownCallbacks.fire()}),n.releaseCallbacks.add(function(){t.releaseCallbacks.fire()}),n.reachBottomCallbacks.add(function(){t.reachBottomCallbacks.fire()})},_scrollerOptions:function(e){return s(this.callBase(e),{$topPocket:this._$topPocket,$bottomPocket:this._$bottomPocket,$pullDown:this._$pullDown,$pullDownText:this._$pullDownText,$pullingDownText:this._$pullingDownText,$pulledDownText:this._$pulledDownText,$refreshingText:this._$refreshingText})},pendingRelease:function(){this._eventHandler("pendingRelease")},release:function(){return this._eventHandler("release").done(this._updateAction)},location:function(){var e=this.callBase();return e.top+=this._$topPocket.height(),e},dispose:function(){o(this._scrollers,function(){this.dispose()}),this.callBase()}});e.exports=p},NFpX:function(e,t,n){"use strict";var i,r=n("1B4V"),o=n("tUd6"),a=n("cGv3").getWindow(),s=n("ti0F"),c=n("m6TM"),u=n("c44P"),l=n("8VXM"),d=function(e,t){return e?"string"==typeof e?"body"===e?(this[0]=t?t.body:o.getBody(),this.length=1,this):(t=t||o.getDocument(),"<"===e[0]?(this[0]=o.createElement(e.slice(1,-1),t),this.length=1,this):([].push.apply(this,o.querySelectorAll(t,e)),this)):o.isNode(e)||s.isWindow(e)?(this[0]=e,this.length=1,this):Array.isArray(e)?([].push.apply(this,e),this):i(e.toArray?e.toArray():[e]):(this.length=0,this)};(i=function(e,t){return new d(e,t)}).fn={dxRenderer:!0};var h=function(e,t){for(var n=0;n1&&arguments.length>1)return h.call(this,"attr",arguments);if(!this[0])return s.isObject(e)||void 0!==t?this:void 0;if(!this[0].getAttribute)return this.prop(e,t);if("string"==typeof e&&1===arguments.length){var n=this[0].getAttribute(e);return null==n?void 0:n}if(s.isPlainObject(e))for(var i in e)this.attr(i,e[i]);else f(this[0],e,t);return this},d.prototype.removeAttr=function(e){return this[0]&&o.removeAttribute(this[0],e),this},d.prototype.prop=function(e,t){if(!this[0])return this;if("string"==typeof e&&1===arguments.length)return this[0][e];if(s.isPlainObject(e))for(var n in e)this.prop(n,e[n]);else o.setProperty(this[0],e,t);return this},d.prototype.addClass=function(e){return this.toggleClass(e,!0)},d.prototype.removeClass=function(e){return this.toggleClass(e,!1)},d.prototype.hasClass=function(e){if(!this[0]||void 0===this[0].className)return!1;for(var t=e.split(" "),n=0;n=0)return!0;return!1},d.prototype.toggleClass=function(e,t){if(this.length>1)return h.call(this,"toggleClass",arguments);if(!this[0]||!e)return this;t=void 0===t?!this.hasClass(e):t;for(var n=e.split(" "),i=0;i=0?"Width":"Height",n=t.toLowerCase(),i=0===e.indexOf("outer"),r=0===e.indexOf("inner");d.prototype[e]=function(c){if(this.length>1&&arguments.length>0)return h.call(this,e,arguments);var l=this[0];if(l){if(s.isWindow(l))return i?l["inner"+t]:o.getDocumentElement()["client"+t];if(o.isDocument(l)){var d=o.getDocumentElement(),f=o.getBody();return Math.max(f["scroll"+t],f["offset"+t],d["scroll"+t],d["offset"+t],d["client"+t])}if(0===arguments.length||"boolean"==typeof c){var p={paddings:r||i,borders:i,margins:c};return u.getSize(l,n,p)}if(null==c)return this;if(s.isNumeric(c)){var g=a.getComputedStyle(l),m=u.getElementBoxParams(n,g),v="border-box"===g.boxSizing;c=Number(c),i?c-=v?0:m.border+m.padding:r?c+=v?m.border:-m.padding:v&&(c+=m.border+m.padding)}return c+=s.isNumeric(c)?"px":"",o.setStyle(l,n,c),this}}}),d.prototype.html=function(e){return arguments.length?(this.empty(),"string"==typeof e&&!l.isTablePart(e)||"number"==typeof e?(this[0].innerHTML=e,this):this.append(l.parseHTML(e))):this[0].innerHTML};var p=function(e,t){if(this[0]&&e){"string"==typeof e?e=l.parseHTML(e):e.nodeType?e=[e]:s.isNumeric(e)&&(e=[o.createTextNode(e)]);for(var n=0;n1){for(var t=0;t1){for(var t=0;t1){for(var t=this.length-1;t>=0;t--)i(this[t]).prependTo(e);return this}return(e=i(e))[0]&&o.insertElement(e[0],this[0],e[0].firstChild),this},d.prototype.appendTo=function(e){return this.length>1?h.call(this,"appendTo",arguments):(o.insertElement(i(e)[0],this[0]),this)},d.prototype.insertBefore=function(e){return e&&e[0]&&o.insertElement(e[0].parentNode,this[0],e[0]),this},d.prototype.insertAfter=function(e){return e&&e[0]&&o.insertElement(e[0].parentNode,this[0],e[0].nextSibling),this},d.prototype.before=function(e){return this[0]&&o.insertElement(this[0].parentNode,e[0],this[0]),this},d.prototype.after=function(e){return this[0]&&o.insertElement(this[0].parentNode,e[0],this[0].nextSibling),this},d.prototype.wrap=function(e){if(this[0]){var t=i(e);t.insertBefore(this),t.append(this)}return this},d.prototype.wrapInner=function(e){var t=this.contents();return t.length?t.wrap(e):this.append(e),this},d.prototype.replaceWith=function(e){if(e&&e[0])return e.is(this)?this:(e.insertBefore(this),this.remove(),e)},d.prototype.remove=function(){return this.length>1?h.call(this,"remove",arguments):(r.cleanDataRecursive(this[0],!0),o.removeElement(this[0]),this)},d.prototype.detach=function(){return this.length>1?h.call(this,"detach",arguments):(o.removeElement(this[0]),this)},d.prototype.empty=function(){return this.length>1?h.call(this,"empty",arguments):(r.cleanDataRecursive(this[0]),o.setText(this[0],""),this)},d.prototype.clone=function(){for(var e=[],t=0;t0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=3&&(this.deliveriesStopList=this.copyStops.filter(function(t){return t.properties.addressId&&t.properties.addressId.name&&t.properties.addressId.name.toLowerCase().indexOf(e.searchQuery.trim().toLowerCase())>-1||t.properties.customerId&&t.properties.customerId.code&&t.properties.customerId.code.toLowerCase().indexOf(e.searchQuery.trim().toLowerCase())>-1})):this.resetFilter()},t.prototype.resetFilter=function(){this.deliveriesStopList=this.copyStops},t.prototype.checkDisableSaveButton=function(){var e=this,t=!0;return this.delivery.length===this.copyDelivery.length?(this.delivery.forEach(function(n){e.copyDelivery.some(function(e){return e.type===n.type})||(t=!1)}),this.copyDelivery.forEach(function(n){e.delivery.some(function(e){return e.type===n.type})||(t=!1)})):t=!1,t},t.prototype.reset=function(){this.deliveriesStopList.length?(this.showStopsView=!0,this.stop=null,this.delivery=[],this.disableSaveButton=!0,this.resetFilter()):this.dismiss()},t.\u0275fac=function(e){return new(e||t)(l.ac(a.a),l.ac(r.Gb),l.ac(o.a),l.ac(l.B))},t.\u0275cmp=l.Ub({type:t,selectors:[["app-setup-delivery"]],inputs:{stops:"stops",stop:"stop"},features:[l.Lb],decls:7,vars:5,consts:[["title","Setup Delivery","hideCloseButton","true",3,"menuItems","onDismiss"],[4,"ngIf"],[3,"fullScreen",4,"ngIf"],["showCancelButton","true","autocomplete","","placeholder","Search for stops","debounce","300",3,"ngModel","ngModelChange","ionCancel","ionChange"],[3,"stop","click",4,"ngFor","ngForOf"],[3,"stop","click"],[3,"stop"],[1,"inline-flex"],[1,"font-bold"],[1,"padding-0"],["lines","none",4,"ngFor","ngForOf"],["lines","none"],["slot","start",3,"ngModel","ionChange","ngModelChange"],["size","6"],["expand","block",1,"btnDanger",3,"click"],["name","close-circle"],["expand","block",3,"disabled","click"],["name","save"],[3,"fullScreen"]],template:function(e,t){1&e&&(l.gc(0,"base-modal",0),l.nc("onDismiss",function(){return t.dismiss()}),l.gc(1,"base-modal-content"),l.gc(2,"ion-content"),l.Pc(3,m,3,2,"ng-container",1),l.Pc(4,_,9,2,"ng-container",1),l.fc(),l.Pc(5,y,10,1,"ion-footer",1),l.fc(),l.fc(),l.Pc(6,b,1,1,"cmx-loader",2)),2&e&&(l.wc("menuItems",t.menuItems),l.Ob(3),l.wc("ngIf",!t.stop&&t.showStopsView),l.Ob(1),l.wc("ngIf",t.stop&&!t.showStopsView),l.Ob(1),l.wc("ngIf",t.stop&&!t.showStopsView),l.Ob(1),l.wc("ngIf",t.loader))},styles:["action-card[_ngcontent-%COMP%]{width:100%}"]}),t}(c.a)},NJ4a:function(e,t,n){"use strict";function i(e){setTimeout(function(){throw e},0)}n.d(t,"a",function(){return i})},NLYV:function(e,t,n){"use strict";var i=d(n("BWGd")),r=d(n("H3YS")),o=n("tJvG"),a=n("ti0F"),s=n("KAnu"),c=n("fZgB"),u=n("yxXJ"),l=n("1LL4");function d(e){return e&&e.__esModule?e:{default:e}}var h=Number.MAX_SAFE_INTEGER||9007199254740991;i.default.registerModule("focus",(0,l.extend)(!0,{},r.default,{extenders:{controllers:{data:{changeRowExpand:function(e,t){if(this.option("focusedRowEnabled")&&Array.isArray(e)&&this.isRowExpanded(e)){var n=this.getController("keyboardNavigation");t&&n.isKeyboardEnabled()||!this._isFocusedRowInsideGroup(e)||this.option("focusedRowKey",e)}return this.callBase.apply(this,arguments)},_isFocusedRowInsideGroup:function(e){var t=this.getController("columns"),n=this.option("focusedRowKey"),i=this.getRowIndexByKey(n),r=i>=0&&this.getVisibleRows()[i],o=t.getGroupDataSourceParameters(!0);if(r)for(var a=0;an?n:r+t));return i};function R(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])}var j,N,F,B,V,$,H,U,z,W,Y=function(e){var t,n,i,r,o,a,c;for(s.assert(!T(e),"Invalid JSON number"),0===e?(n=0,i=0,t=1/e==-1/0?1:0):(t=e<0,(e=Math.abs(e))>=Math.pow(2,-1022)?(n=(r=Math.min(Math.floor(Math.log(e)/Math.LN2),1023))+1023,i=Math.round(e*Math.pow(2,52-r)-Math.pow(2,52))):(n=0,i=Math.round(e/Math.pow(2,-1074)))),a=[],o=52;o;o-=1)a.push(i%2?1:0),i=Math.floor(i/2);for(o=11;o;o-=1)a.push(n%2?1:0),n=Math.floor(n/2);a.push(t?1:0),a.reverse(),c=a.join("");var u="";for(o=0;o<64;o+=8){var l=parseInt(c.substr(o,8),2).toString(16);1===l.length&&(l="0"+l),u+=l}return u.toLowerCase()},G=new RegExp("^-?(0*)\\d{1,10}$"),q=function(e){if(G.test(e)){var t=Number(e);if(t>=-2147483648&&t<=2147483647)return t}return null},K=function(e){try{e()}catch(t){setTimeout(function(){throw x("Exception was thrown by user callback.",t.stack||""),t},Math.floor(0))}},X=function(e,t){var n=setTimeout(e,t);return"object"==typeof n&&n.unref&&n.unref(),n},J=function(){function e(e,t){if(void 0===t){this.pieces_=e.split("/");for(var n=0,i=0;i0&&(this.pieces_[n]=this.pieces_[i],n++);this.pieces_.length=n,this.pieceNum_=0}else this.pieces_=e,this.pieceNum_=t}return Object.defineProperty(e,"Empty",{get:function(){return new e("")},enumerable:!0,configurable:!0}),e.prototype.getFront=function(){return this.pieceNum_>=this.pieces_.length?null:this.pieces_[this.pieceNum_]},e.prototype.getLength=function(){return this.pieces_.length-this.pieceNum_},e.prototype.popFront=function(){var t=this.pieceNum_;return t=this.pieces_.length)return null;for(var t=[],n=this.pieceNum_;n0&&n.push(r[i])}return new e(n,0)},e.prototype.isEmpty=function(){return this.pieceNum_>=this.pieces_.length},e.relativePath=function(t,n){var i=t.getFront(),r=n.getFront();if(null===i)return n;if(i===r)return e.relativePath(t.popFront(),n.popFront());throw new Error("INTERNAL ERROR: innerPath ("+n+") is not within outerPath ("+t+")")},e.comparePaths=function(e,t){for(var n=e.slice(),i=t.slice(),r=0;re.getLength())return!1;for(;t0&&(this.byteLength_+=1),this.parts_.push(e),this.byteLength_+=s.stringLength(e),this.checkValid_()},e.prototype.pop=function(){var e=this.parts_.pop();this.byteLength_-=s.stringLength(e),this.parts_.length>0&&(this.byteLength_-=1)},e.prototype.checkValid_=function(){if(this.byteLength_>e.MAX_PATH_LENGTH_BYTES)throw new Error(this.errorPrefix_+"has a key path longer than "+e.MAX_PATH_LENGTH_BYTES+" bytes ("+this.byteLength_+").");if(this.parts_.length>e.MAX_PATH_DEPTH)throw new Error(this.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+e.MAX_PATH_DEPTH+") or object contains a cycle "+this.toErrorString())},e.prototype.toErrorString=function(){return 0==this.parts_.length?"":"in property '"+this.parts_.join(".")+"'"},e}(),Z="firebaseio.com",ee="websocket",te="long_polling",ne=function(){function e(e,t,n,i,r,o){void 0===r&&(r=""),void 0===o&&(o=!1),this.secure=t,this.namespace=n,this.webSocketOnly=i,this.persistenceKey=r,this.includeNamespaceInQueryParams=o,this.host=e.toLowerCase(),this.domain=this.host.substr(this.host.indexOf(".")+1),this.internalHost=f.get("host:"+e)||this.host}return e.prototype.needsQueryParam=function(){return this.host!==this.internalHost||this.isCustomHost()||this.includeNamespaceInQueryParams},e.prototype.isCacheableHost=function(){return"s-"===this.internalHost.substr(0,2)},e.prototype.isDemoHost=function(){return"firebaseio-demo.com"===this.domain},e.prototype.isCustomHost=function(){return"firebaseio.com"!==this.domain&&"firebaseio-demo.com"!==this.domain},e.prototype.updateHost=function(e){e!==this.internalHost&&(this.internalHost=e,this.isCacheableHost()&&f.set("host:"+this.host,this.internalHost))},e.prototype.connectionURL=function(e,t){var n;if(s.assert("string"==typeof e,"typeof type must == string"),s.assert("object"==typeof t,"typeof params must == object"),e===ee)n=(this.secure?"wss://":"ws://")+this.internalHost+"/.ws?";else{if(e!==te)throw new Error("Unknown connection type: "+e);n=(this.secure?"https://":"http://")+this.internalHost+"/.lp?"}this.needsQueryParam()&&(t.ns=this.namespace);var i=[];return R(t,function(e,t){i.push(e+"="+t)}),n+i.join("&")},e.prototype.toString=function(){var e=this.toURLString();return this.persistenceKey&&(e+="<"+this.persistenceKey+">"),e},e.prototype.toURLString=function(){return(this.secure?"https://":"http://")+this.host},e}(),ie=function(e){var t=re(e),n=t.namespace;return"firebase"===t.domain&&k(t.host+" is no longer supported. Please use .firebaseio.com instead"),n&&"undefined"!=n||"localhost"===t.domain||k("Cannot parse Firebase url. Please use https://.firebaseio.com"),t.secure||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&x("Insecure Firebase access from a secure page. Please use https in calls to new Firebase()."),{repoInfo:new ne(t.host,t.secure,n,"ws"===t.scheme||"wss"===t.scheme,"",n!=t.subdomain),path:new J(t.pathString)}},re=function(e){var t="",n="",i="",r="",o="",s=!0,c="https",u=443;if("string"==typeof e){var l=e.indexOf("//");l>=0&&(c=e.substring(0,l-1),e=e.substring(l+2));var d=e.indexOf("/");-1===d&&(d=e.length);var h=e.indexOf("?");-1===h&&(h=e.length),t=e.substring(0,Math.min(d,h)),d0){var r=n[i];try{r=decodeURIComponent(r.replace(/\+/g," "))}catch(o){}t+="/"+r}return t}(e.substring(d,h)));var f=function(e){var t,n,i={};"?"===e.charAt(0)&&(e=e.substring(1));try{for(var r=a.__values(e.split("&")),o=r.next();!o.done;o=r.next()){var s=o.value;if(0!==s.length){var c=s.split("=");2===c.length?i[decodeURIComponent(c[0])]=decodeURIComponent(c[1]):x("Invalid query segment '"+s+"' in query '"+e+"'")}}}catch(u){t={error:u}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return i}(e.substring(Math.min(e.length,h)));(l=t.indexOf(":"))>=0?(s="https"===c||"wss"===c,u=parseInt(t.substring(l+1),10)):l=e.length;var p=t.split(".");3===p.length?(n=p[1],o=i=p[0].toLowerCase()):2===p.length?n=p[0]:"localhost"===p[0].slice(0,l).toLowerCase()&&(n="localhost"),"ns"in f&&(o=f.ns)}return{host:t,port:u,domain:n,subdomain:i,secure:s,scheme:c,pathString:r,namespace:o}},oe=/[\[\].#$\/\u0000-\u001F\u007F]/,ae=/[\[\].#$\u0000-\u001F\u007F]/,se=10485760,ce=function(e){return"string"==typeof e&&0!==e.length&&!oe.test(e)},ue=function(e){return"string"==typeof e&&0!==e.length&&!ae.test(e)},le=function(e){return null===e||"string"==typeof e||"number"==typeof e&&!T(e)||e&&"object"==typeof e&&s.contains(e,".sv")},de=function(e,t,n,i,r){r&&void 0===n||he(s.errorPrefix(e,t,r),n,i)},he=function(e,t,n){var i=n instanceof J?new Q(n,e):n;if(void 0===t)throw new Error(e+"contains undefined "+i.toErrorString());if("function"==typeof t)throw new Error(e+"contains a function "+i.toErrorString()+" with contents = "+t.toString());if(T(t))throw new Error(e+"contains "+t.toString()+" "+i.toErrorString());if("string"==typeof t&&t.length>se/3&&s.stringLength(t)>se)throw new Error(e+"contains a string greater than 10485760 utf8 bytes "+i.toErrorString()+" ('"+t.substring(0,50)+"...')");if(t&&"object"==typeof t){var r=!1,o=!1;if(R(t,function(t,n){if(".value"===t)r=!0;else if(".priority"!==t&&".sv"!==t&&(o=!0,!ce(t)))throw new Error(e+" contains an invalid key ("+t+") "+i.toErrorString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');i.push(t),he(e,n,i),i.pop()}),r&&o)throw new Error(e+' contains ".value" child '+i.toErrorString()+" in addition to actual children.")}},fe=function(e,t,n,i,r){if(!r||void 0!==n){var o=s.errorPrefix(e,t,r);if(!n||"object"!=typeof n||Array.isArray(n))throw new Error(o+" must be an object containing the children to replace.");var a=[];R(n,function(e,t){var n=new J(e);if(he(o,t,i.child(n)),".priority"===n.getBack()&&!le(t))throw new Error(o+"contains an invalid value for '"+n.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");a.push(n)}),function(e,t){var n,i;for(n=0;n=0;t--)i[t]=j.charAt(e%64),e=Math.floor(e/64);s.assert(0===e,"Cannot push at time == 0");var r=i.join("");if(n){for(t=11;t>=0&&63===F[t];t--)F[t]=0;F[t]++}else for(t=0;t<12;t++)F[t]=Math.floor(64*Math.random());for(t=0;t<12;t++)r+=j.charAt(F[t]);return s.assert(20===r.length,"nextPushId: Length should be 20."),r}),ke=function(){function e(e,t){this.name=e,this.node=t}return e.Wrap=function(t,n){return new e(t,n)},e}(),xe=function(){function e(){}return e.prototype.getCompare=function(){return this.compare.bind(this)},e.prototype.indexedValueChanged=function(e,t){var n=new ke(E,e),i=new ke(E,t);return 0!==this.compare(n,i)},e.prototype.minPost=function(){return ke.MIN},e}(),Te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),Object.defineProperty(t,"__EMPTY_NODE",{get:function(){return B},set:function(e){B=e},enumerable:!0,configurable:!0}),t.prototype.compare=function(e,t){return D(e.name,t.name)},t.prototype.isDefinedOn=function(e){throw s.assertionError("KeyIndex.isDefinedOn not expected to be called.")},t.prototype.indexedValueChanged=function(e,t){return!1},t.prototype.minPost=function(){return ke.MIN},t.prototype.maxPost=function(){return new ke(I,B)},t.prototype.makePost=function(e,t){return s.assert("string"==typeof e,"KeyIndex indexValue must always be a string."),new ke(e,B)},t.prototype.toString=function(){return".key"},t}(xe),Ee=new Te,Ie=function(e){return"number"==typeof e?"number:"+Y(e):"string:"+e},De=function(e){if(e.isLeafNode()){var t=e.val();s.assert("string"==typeof t||"number"==typeof t||"object"==typeof t&&s.contains(t,".sv"),"Priority must be a string or number.")}else s.assert(e===V||e.isEmpty(),"priority of unexpected type.");s.assert(e===V||e.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")},Me=function(){function e(t,n){void 0===n&&(n=e.__childrenNodeConstructor.EMPTY_NODE),this.value_=t,this.priorityNode_=n,this.lazyHash_=null,s.assert(null!=this.value_,"LeafNode shouldn't be created with null/undefined value."),De(this.priorityNode_)}return Object.defineProperty(e,"__childrenNodeConstructor",{get:function(){return $},set:function(e){$=e},enumerable:!0,configurable:!0}),e.prototype.isLeafNode=function(){return!0},e.prototype.getPriority=function(){return this.priorityNode_},e.prototype.updatePriority=function(t){return new e(this.value_,t)},e.prototype.getImmediateChild=function(t){return".priority"===t?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE},e.prototype.getChild=function(t){return t.isEmpty()?this:".priority"===t.getFront()?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE},e.prototype.hasChild=function(){return!1},e.prototype.getPredecessorChildName=function(e,t){return null},e.prototype.updateImmediateChild=function(t,n){return".priority"===t?this.updatePriority(n):n.isEmpty()&&".priority"!==t?this:e.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(t,n).updatePriority(this.priorityNode_)},e.prototype.updateChild=function(t,n){var i=t.getFront();return null===i?n:n.isEmpty()&&".priority"!==i?this:(s.assert(".priority"!==i||1===t.getLength(),".priority must be the last token in a path"),this.updateImmediateChild(i,e.__childrenNodeConstructor.EMPTY_NODE.updateChild(t.popFront(),n)))},e.prototype.isEmpty=function(){return!1},e.prototype.numChildren=function(){return 0},e.prototype.forEachChild=function(e,t){return!1},e.prototype.val=function(e){return e&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()},e.prototype.hash=function(){if(null===this.lazyHash_){var e="";this.priorityNode_.isEmpty()||(e+="priority:"+Ie(this.priorityNode_.val())+":");var t=typeof this.value_;e+=t+":",e+="number"===t?Y(this.value_):this.value_,this.lazyHash_=v(e)}return this.lazyHash_},e.prototype.getValue=function(){return this.value_},e.prototype.compareTo=function(t){return t===e.__childrenNodeConstructor.EMPTY_NODE?1:t instanceof e.__childrenNodeConstructor?-1:(s.assert(t.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(t))},e.prototype.compareToLeafNode_=function(t){var n=typeof t.value_,i=typeof this.value_,r=e.VALUE_TYPE_ORDER.indexOf(n),o=e.VALUE_TYPE_ORDER.indexOf(i);return s.assert(r>=0,"Unknown leaf type: "+n),s.assert(o>=0,"Unknown leaf type: "+i),r===o?"object"===i?0:this.value_0},e.prototype.peek=function(){if(0===this.nodeStack_.length)return null;var e=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value}},e}(),Le=function(){function e(t,n,i,r,o){this.key=t,this.value=n,this.color=null!=i?i:e.RED,this.left=null!=r?r:je.EMPTY_NODE,this.right=null!=o?o:je.EMPTY_NODE}return e.prototype.copy=function(t,n,i,r,o){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=i?i:this.color,null!=r?r:this.left,null!=o?o:this.right)},e.prototype.count=function(){return this.left.count()+1+this.right.count()},e.prototype.isEmpty=function(){return!1},e.prototype.inorderTraversal=function(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)},e.prototype.min_=function(){return this.left.isEmpty()?this:this.left.min_()},e.prototype.minKey=function(){return this.min_().key},e.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},e.prototype.insert=function(e,t,n){var i,r;return(r=(i=n(e,(r=this).key))<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n))).fixUp_()},e.prototype.removeMin_=function(){if(this.left.isEmpty())return je.EMPTY_NODE;var e=this;return e.left.isRed_()||e.left.left.isRed_()||(e=e.moveRedLeft_()),(e=e.copy(null,null,null,e.left.removeMin_(),null)).fixUp_()},e.prototype.remove=function(e,t){var n,i;if(t(e,(n=this).key)<0)n.left.isEmpty()||n.left.isRed_()||n.left.left.isRed_()||(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.remove(e,t),null);else{if(n.left.isRed_()&&(n=n.rotateRight_()),n.right.isEmpty()||n.right.isRed_()||n.right.left.isRed_()||(n=n.moveRedRight_()),0===t(e,n.key)){if(n.right.isEmpty())return je.EMPTY_NODE;i=n.right.min_(),n=n.copy(i.key,i.value,null,null,n.right.removeMin_())}n=n.copy(null,null,null,null,n.right.remove(e,t))}return n.fixUp_()},e.prototype.isRed_=function(){return this.color},e.prototype.fixUp_=function(){var e=this;return e.right.isRed_()&&!e.left.isRed_()&&(e=e.rotateLeft_()),e.left.isRed_()&&e.left.left.isRed_()&&(e=e.rotateRight_()),e.left.isRed_()&&e.right.isRed_()&&(e=e.colorFlip_()),e},e.prototype.moveRedLeft_=function(){var e=this.colorFlip_();return e.right.left.isRed_()&&(e=(e=(e=e.copy(null,null,null,null,e.right.rotateRight_())).rotateLeft_()).colorFlip_()),e},e.prototype.moveRedRight_=function(){var e=this.colorFlip_();return e.left.left.isRed_()&&(e=(e=e.rotateRight_()).colorFlip_()),e},e.prototype.rotateLeft_=function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)},e.prototype.rotateRight_=function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)},e.prototype.colorFlip_=function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)},e.prototype.checkMaxDepth_=function(){var e=this.check_();return Math.pow(2,e)<=this.count()+1},e.prototype.check_=function(){var e;if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");if((e=this.left.check_())!==this.right.check_())throw new Error("Black depths differ");return e+(this.isRed_()?0:1)},e.RED=!0,e.BLACK=!1,e}(),Re=function(){function e(){}return e.prototype.copy=function(e,t,n,i,r){return this},e.prototype.insert=function(e,t,n){return new Le(e,t,null)},e.prototype.remove=function(e,t){return this},e.prototype.count=function(){return 0},e.prototype.isEmpty=function(){return!0},e.prototype.inorderTraversal=function(e){return!1},e.prototype.reverseTraversal=function(e){return!1},e.prototype.minKey=function(){return null},e.prototype.maxKey=function(){return null},e.prototype.check_=function(){return 0},e.prototype.isRed_=function(){return!1},e}(),je=function(){function e(t,n){void 0===n&&(n=e.EMPTY_NODE),this.comparator_=t,this.root_=n}return e.prototype.insert=function(t,n){return new e(this.comparator_,this.root_.insert(t,n,this.comparator_).copy(null,null,Le.BLACK,null,null))},e.prototype.remove=function(t){return new e(this.comparator_,this.root_.remove(t,this.comparator_).copy(null,null,Le.BLACK,null,null))},e.prototype.get=function(e){for(var t,n=this.root_;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key)))return n.value;t<0?n=n.left:t>0&&(n=n.right)}return null},e.prototype.getPredecessorKey=function(e){for(var t,n=this.root_,i=null;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key))){if(n.left.isEmpty())return i?i.key:null;for(n=n.left;!n.right.isEmpty();)n=n.right;return n.key}t<0?n=n.left:t>0&&(i=n,n=n.right)}throw new Error("Attempted to find predecessor key for a nonexistent key. What gives?")},e.prototype.isEmpty=function(){return this.root_.isEmpty()},e.prototype.count=function(){return this.root_.count()},e.prototype.minKey=function(){return this.root_.minKey()},e.prototype.maxKey=function(){return this.root_.maxKey()},e.prototype.inorderTraversal=function(e){return this.root_.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.root_.reverseTraversal(e)},e.prototype.getIterator=function(e){return new Pe(this.root_,null,this.comparator_,!1,e)},e.prototype.getIteratorFrom=function(e,t){return new Pe(this.root_,e,this.comparator_,!1,t)},e.prototype.getReverseIteratorFrom=function(e,t){return new Pe(this.root_,e,this.comparator_,!0,t)},e.prototype.getReverseIterator=function(e){return new Pe(this.root_,null,this.comparator_,!0,e)},e.EMPTY_NODE=new Re,e}(),Ne=Math.log(2),Fe=function(){function e(e){this.count=parseInt(Math.log(e+1)/Ne,10),this.current_=this.count-1;var t=parseInt(Array(this.count+1).join("1"),2);this.bits_=e+1&t}return e.prototype.nextBitIsOne=function(){var e=!(this.bits_&1<0;)i.getNext(),r=i.peek();return i},e.prototype.compareTo=function(e){return this.isEmpty()?e.isEmpty()?0:-1:e.isLeafNode()||e.isEmpty()?1:e===We?-1:0},e.prototype.withIndex=function(t){if(t===Ee||this.indexMap_.hasIndex(t))return this;var n=this.indexMap_.addIndex(t,this.children_);return new e(this.children_,this.priorityNode_,n)},e.prototype.isIndexed=function(e){return e===Ee||this.indexMap_.hasIndex(e)},e.prototype.equals=function(e){if(e===this)return!0;if(e.isLeafNode())return!1;var t=e;if(this.getPriority().equals(t.getPriority())){if(this.children_.count()===t.children_.count()){for(var n=this.getIterator(Ae),i=t.getIterator(Ae),r=n.getNext(),o=i.getNext();r&&o;){if(r.name!==o.name||!r.node.equals(o.node))return!1;r=n.getNext(),o=i.getNext()}return null===r&&null===o}return!1}return!1},e.prototype.resolveIndex_=function(e){return e===Ee?null:this.indexMap_.get(e.toString())},e.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,e}(),We=new(function(e){function t(){return e.call(this,new je(Ue),ze.EMPTY_NODE,$e.Default)||this}return a.__extends(t,e),t.prototype.compareTo=function(e){return e===this?0:1},t.prototype.equals=function(e){return e===this},t.prototype.getPriority=function(){return this},t.prototype.getImmediateChild=function(e){return ze.EMPTY_NODE},t.prototype.isEmpty=function(){return!1},t}(ze));function Ye(e,t){if(void 0===t&&(t=null),null===e)return ze.EMPTY_NODE;if("object"==typeof e&&".priority"in e&&(t=e[".priority"]),s.assert(null===t||"string"==typeof t||"number"==typeof t||"object"==typeof t&&".sv"in t,"Invalid priority type found: "+typeof t),"object"==typeof e&&".value"in e&&null!==e[".value"]&&(e=e[".value"]),"object"!=typeof e||".sv"in e)return new Me(e,Ye(t));if(e instanceof Array){var n=ze.EMPTY_NODE;return R(e,function(t,i){if(s.contains(e,t)&&"."!==t.substring(0,1)){var r=Ye(i);!r.isLeafNode()&&r.isEmpty()||(n=n.updateImmediateChild(t,r))}}),n.updatePriority(Ye(t))}var i=[],r=!1;if(R(e,function(e,t){if("."!==e.substring(0,1)){var n=Ye(t);n.isEmpty()||(r=r||!n.getPriority().isEmpty(),i.push(new ke(e,n)))}}),0==i.length)return ze.EMPTY_NODE;var o=Be(i,He,function(e){return e.name},Ue);if(r){var a=Be(i,Ae.getCompare());return new ze(o,Ye(t),new $e({".priority":a},{".priority":Ae}))}return new ze(o,Ye(t),$e.Default)}Object.defineProperties(ke,{MIN:{value:new ke(E,ze.EMPTY_NODE)},MAX:{value:new ke(I,We)}}),Te.__EMPTY_NODE=ze.EMPTY_NODE,Me.__childrenNodeConstructor=ze,V=We,U=We,H=Ye;var Ge,qe,Ke,Xe=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.compare=function(e,t){var n=e.node.compareTo(t.node);return 0===n?D(e.name,t.name):n},t.prototype.isDefinedOn=function(e){return!0},t.prototype.indexedValueChanged=function(e,t){return!e.equals(t)},t.prototype.minPost=function(){return ke.MIN},t.prototype.maxPost=function(){return ke.MAX},t.prototype.makePost=function(e,t){var n=Ye(e);return new ke(t,n)},t.prototype.toString=function(){return".value"},t}(xe)),Je=function(e){function t(t){var n=e.call(this)||this;return n.indexPath_=t,s.assert(!t.isEmpty()&&".priority"!==t.getFront(),"Can't create PathIndex with empty path or .priority key"),n}return a.__extends(t,e),t.prototype.extractChild=function(e){return e.getChild(this.indexPath_)},t.prototype.isDefinedOn=function(e){return!e.getChild(this.indexPath_).isEmpty()},t.prototype.compare=function(e,t){var n=this.extractChild(e.node),i=this.extractChild(t.node),r=n.compareTo(i);return 0===r?D(e.name,t.name):r},t.prototype.makePost=function(e,t){var n=Ye(e),i=ze.EMPTY_NODE.updateChild(this.indexPath_,n);return new ke(t,i)},t.prototype.maxPost=function(){var e=ze.EMPTY_NODE.updateChild(this.indexPath_,We);return new ke(I,e)},t.prototype.toString=function(){return this.indexPath_.slice().join("/")},t}(xe),Qe=function(){function e(e,t,n){this.node_=e,this.ref_=t,this.index_=n}return e.prototype.val=function(){return s.validateArgCount("DataSnapshot.val",0,0,arguments.length),this.node_.val()},e.prototype.exportVal=function(){return s.validateArgCount("DataSnapshot.exportVal",0,0,arguments.length),this.node_.val(!0)},e.prototype.toJSON=function(){return s.validateArgCount("DataSnapshot.toJSON",0,1,arguments.length),this.exportVal()},e.prototype.exists=function(){return s.validateArgCount("DataSnapshot.exists",0,0,arguments.length),!this.node_.isEmpty()},e.prototype.child=function(t){s.validateArgCount("DataSnapshot.child",0,1,arguments.length),t=String(t),ve("DataSnapshot.child",1,t,!1);var n=new J(t),i=this.ref_.child(n);return new e(this.node_.getChild(n),i,Ae)},e.prototype.hasChild=function(e){s.validateArgCount("DataSnapshot.hasChild",1,1,arguments.length),ve("DataSnapshot.hasChild",1,e,!1);var t=new J(e);return!this.node_.getChild(t).isEmpty()},e.prototype.getPriority=function(){return s.validateArgCount("DataSnapshot.getPriority",0,0,arguments.length),this.node_.getPriority().val()},e.prototype.forEach=function(t){var n=this;if(s.validateArgCount("DataSnapshot.forEach",1,1,arguments.length),s.validateCallback("DataSnapshot.forEach",1,t,!1),this.node_.isLeafNode())return!1;var i=this.node_;return!!i.forEachChild(this.index_,function(i,r){return t(new e(r,n.ref_.child(i),Ae))})},e.prototype.hasChildren=function(){return s.validateArgCount("DataSnapshot.hasChildren",0,0,arguments.length),!this.node_.isLeafNode()&&!this.node_.isEmpty()},Object.defineProperty(e.prototype,"key",{get:function(){return this.ref_.getKey()},enumerable:!0,configurable:!0}),e.prototype.numChildren=function(){return s.validateArgCount("DataSnapshot.numChildren",0,0,arguments.length),this.node_.numChildren()},e.prototype.getRef=function(){return s.validateArgCount("DataSnapshot.ref",0,0,arguments.length),this.ref_},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()},enumerable:!0,configurable:!0}),e}(),Ze=function(){function e(e,t,n,i){this.eventType=e,this.eventRegistration=t,this.snapshot=n,this.prevName=i}return e.prototype.getPath=function(){var e=this.snapshot.getRef();return"value"===this.eventType?e.path:e.getParent().path},e.prototype.getEventType=function(){return this.eventType},e.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},e.prototype.toString=function(){return this.getPath().toString()+":"+this.eventType+":"+s.stringify(this.snapshot.exportVal())},e}(),et=function(){function e(e,t,n){this.eventRegistration=e,this.error=t,this.path=n}return e.prototype.getPath=function(){return this.path},e.prototype.getEventType=function(){return"cancel"},e.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},e.prototype.toString=function(){return this.path.toString()+":cancel"},e}(),tt=function(){function e(e,t,n){this.callback_=e,this.cancelCallback_=t,this.context_=n}return e.prototype.respondsTo=function(e){return"value"===e},e.prototype.createEvent=function(e,t){var n=t.getQueryParams().getIndex();return new Ze("value",this,new Qe(e.snapshotNode,t.getRef(),n))},e.prototype.getEventRunner=function(e){var t=this.context_;if("cancel"===e.getEventType()){s.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(t,e.error)}}var i=this.callback_;return function(){i.call(t,e.snapshot)}},e.prototype.createCancelEvent=function(e,t){return this.cancelCallback_?new et(this,e,t):null},e.prototype.matches=function(t){return t instanceof e&&(!t.callback_||!this.callback_||t.callback_===this.callback_&&t.context_===this.context_)},e.prototype.hasAnyCallback=function(){return null!==this.callback_},e}(),nt=function(){function e(e,t,n){this.callbacks_=e,this.cancelCallback_=t,this.context_=n}return e.prototype.respondsTo=function(e){var t="children_added"===e?"child_added":e;return s.contains(this.callbacks_,t="children_removed"===t?"child_removed":t)},e.prototype.createCancelEvent=function(e,t){return this.cancelCallback_?new et(this,e,t):null},e.prototype.createEvent=function(e,t){s.assert(null!=e.childName,"Child events should have a childName.");var n=t.getRef().child(e.childName),i=t.getQueryParams().getIndex();return new Ze(e.type,this,new Qe(e.snapshotNode,n,i),e.prevName)},e.prototype.getEventRunner=function(e){var t=this.context_;if("cancel"===e.getEventType()){s.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(t,e.error)}}var i=this.callbacks_[e.eventType];return function(){i.call(t,e.snapshot,e.prevName)}},e.prototype.matches=function(t){var n=this;if(t instanceof e){if(!this.callbacks_||!t.callbacks_)return!0;if(this.context_===t.context_){var i=Object.keys(t.callbacks_),r=Object.keys(this.callbacks_),o=i.length;if(o===r.length){if(1===o){var a=i[0],s=r[0];return!(s!==a||t.callbacks_[a]&&this.callbacks_[s]&&t.callbacks_[a]!==this.callbacks_[s])}return r.every(function(e){return t.callbacks_[e]===n.callbacks_[e]})}}}return!1},e.prototype.hasAnyCallback=function(){return null!==this.callbacks_},e}(),it=function(){function e(e,t,n,i){this.repo=e,this.path=t,this.queryParams_=n,this.orderByCalled_=i}return Object.defineProperty(e,"__referenceConstructor",{get:function(){return s.assert(Ge,"Reference.ts has not been loaded"),Ge},set:function(e){Ge=e},enumerable:!0,configurable:!0}),e.validateQueryEndpoints_=function(e){var t=null,n=null;if(e.hasStart()&&(t=e.getIndexStartValue()),e.hasEnd()&&(n=e.getIndexEndValue()),e.getIndex()===Ee){var i="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",r="Query: When ordering by key, the argument passed to startAt(), endAt(),or equalTo() must be a string.";if(e.hasStart()){if(e.getIndexStartName()!=E)throw new Error(i);if("string"!=typeof t)throw new Error(r)}if(e.hasEnd()){if(e.getIndexEndName()!=I)throw new Error(i);if("string"!=typeof n)throw new Error(r)}}else if(e.getIndex()===Ae){if(null!=t&&!le(t)||null!=n&&!le(n))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), endAt(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if(s.assert(e.getIndex()instanceof Je||e.getIndex()===Xe,"unknown index type."),null!=t&&"object"==typeof t||null!=n&&"object"==typeof n)throw new Error("Query: First argument passed to startAt(), endAt(), or equalTo() cannot be an object.")},e.validateLimit_=function(e){if(e.hasStart()&&e.hasEnd()&&e.hasLimit()&&!e.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), endAt(), and limit(). Use limitToFirst() or limitToLast() instead.")},e.prototype.validateNoPreviousOrderByCall_=function(e){if(!0===this.orderByCalled_)throw new Error(e+": You can't combine multiple orderBy calls.")},e.prototype.getQueryParams=function(){return this.queryParams_},e.prototype.getRef=function(){return s.validateArgCount("Query.ref",0,0,arguments.length),new e.__referenceConstructor(this.repo,this.path)},e.prototype.on=function(t,n,i,r){s.validateArgCount("Query.on",2,4,arguments.length),ge("Query.on",1,t,!1),s.validateCallback("Query.on",2,n,!1);var o=e.getCancelAndContextArgs_("Query.on",i,r);if("value"===t)this.onValueEvent(n,o.cancel,o.context);else{var a={};a[t]=n,this.onChildEvent(a,o.cancel,o.context)}return n},e.prototype.onValueEvent=function(e,t,n){var i=new tt(e,t||null,n||null);this.repo.addEventCallbackForQuery(this,i)},e.prototype.onChildEvent=function(e,t,n){var i=new nt(e,t,n);this.repo.addEventCallbackForQuery(this,i)},e.prototype.off=function(e,t,n){s.validateArgCount("Query.off",0,3,arguments.length),ge("Query.off",1,e,!0),s.validateCallback("Query.off",2,t,!0),s.validateContextObject("Query.off",3,n,!0);var i=null,r=null;if("value"===e){var o=t||null;i=new tt(o,null,n||null)}else e&&(t&&((r={})[e]=t),i=new nt(r,null,n||null));this.repo.removeEventCallbackForQuery(this,i)},e.prototype.once=function(t,n,i,r){var o=this;s.validateArgCount("Query.once",1,4,arguments.length),ge("Query.once",1,t,!1),s.validateCallback("Query.once",2,n,!0);var a=e.getCancelAndContextArgs_("Query.once",i,r),c=!0,u=new s.Deferred;u.promise.catch(function(){});var l=function(e){c&&(c=!1,o.off(t,l),n&&n.bind(a.context)(e),u.resolve(e))};return this.on(t,l,function(e){o.off(t,l),a.cancel&&a.cancel.bind(a.context)(e),u.reject(e)}),u.promise},e.prototype.limitToFirst=function(t){if(s.validateArgCount("Query.limitToFirst",1,1,arguments.length),"number"!=typeof t||Math.floor(t)!==t||t<=0)throw new Error("Query.limitToFirst: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToFirst: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new e(this.repo,this.path,this.queryParams_.limitToFirst(t),this.orderByCalled_)},e.prototype.limitToLast=function(t){if(s.validateArgCount("Query.limitToLast",1,1,arguments.length),"number"!=typeof t||Math.floor(t)!==t||t<=0)throw new Error("Query.limitToLast: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToLast: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new e(this.repo,this.path,this.queryParams_.limitToLast(t),this.orderByCalled_)},e.prototype.orderByChild=function(t){if(s.validateArgCount("Query.orderByChild",1,1,arguments.length),"$key"===t)throw new Error('Query.orderByChild: "$key" is invalid. Use Query.orderByKey() instead.');if("$priority"===t)throw new Error('Query.orderByChild: "$priority" is invalid. Use Query.orderByPriority() instead.');if("$value"===t)throw new Error('Query.orderByChild: "$value" is invalid. Use Query.orderByValue() instead.');ve("Query.orderByChild",1,t,!1),this.validateNoPreviousOrderByCall_("Query.orderByChild");var n=new J(t);if(n.isEmpty())throw new Error("Query.orderByChild: cannot pass in empty path. Use Query.orderByValue() instead.");var i=new Je(n),r=this.queryParams_.orderBy(i);return e.validateQueryEndpoints_(r),new e(this.repo,this.path,r,!0)},e.prototype.orderByKey=function(){s.validateArgCount("Query.orderByKey",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByKey");var t=this.queryParams_.orderBy(Ee);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.orderByPriority=function(){s.validateArgCount("Query.orderByPriority",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByPriority");var t=this.queryParams_.orderBy(Ae);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.orderByValue=function(){s.validateArgCount("Query.orderByValue",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByValue");var t=this.queryParams_.orderBy(Xe);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.startAt=function(t,n){void 0===t&&(t=null),s.validateArgCount("Query.startAt",0,2,arguments.length),de("Query.startAt",1,t,this.path,!0),me("Query.startAt",2,n,!0);var i=this.queryParams_.startAt(t,n);if(e.validateLimit_(i),e.validateQueryEndpoints_(i),this.queryParams_.hasStart())throw new Error("Query.startAt: Starting point was already set (by another call to startAt or equalTo).");return void 0===t&&(t=null,n=null),new e(this.repo,this.path,i,this.orderByCalled_)},e.prototype.endAt=function(t,n){void 0===t&&(t=null),s.validateArgCount("Query.endAt",0,2,arguments.length),de("Query.endAt",1,t,this.path,!0),me("Query.endAt",2,n,!0);var i=this.queryParams_.endAt(t,n);if(e.validateLimit_(i),e.validateQueryEndpoints_(i),this.queryParams_.hasEnd())throw new Error("Query.endAt: Ending point was already set (by another call to endAt or equalTo).");return new e(this.repo,this.path,i,this.orderByCalled_)},e.prototype.equalTo=function(e,t){if(s.validateArgCount("Query.equalTo",1,2,arguments.length),de("Query.equalTo",1,e,this.path,!1),me("Query.equalTo",2,t,!0),this.queryParams_.hasStart())throw new Error("Query.equalTo: Starting point was already set (by another call to startAt or equalTo).");if(this.queryParams_.hasEnd())throw new Error("Query.equalTo: Ending point was already set (by another call to endAt or equalTo).");return this.startAt(e,t).endAt(e,t)},e.prototype.toString=function(){return s.validateArgCount("Query.toString",0,0,arguments.length),this.repo.toString()+this.path.toUrlEncodedString()},e.prototype.toJSON=function(){return s.validateArgCount("Query.toJSON",0,1,arguments.length),this.toString()},e.prototype.queryObject=function(){return this.queryParams_.getQueryObject()},e.prototype.queryIdentifier=function(){var e=this.queryObject(),t=P(e);return"{}"===t?"default":t},e.prototype.isEqual=function(t){if(s.validateArgCount("Query.isEqual",1,1,arguments.length),!(t instanceof e)){var n="Query.isEqual failed: First argument must be an instance of firebase.database.Query.";throw new Error(n)}var i=this.repo===t.repo,r=this.path.equals(t.path),o=this.queryIdentifier()===t.queryIdentifier();return i&&r&&o},e.getCancelAndContextArgs_=function(e,t,n){var i={cancel:null,context:null};if(t&&n)i.cancel=t,s.validateCallback(e,3,i.cancel,!0),i.context=n,s.validateContextObject(e,4,i.context,!0);else if(t)if("object"==typeof t&&null!==t)i.context=t;else{if("function"!=typeof t)throw new Error(s.errorPrefix(e,3,!0)+" must either be a cancel callback or a context object.");i.cancel=t}return i},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()},enumerable:!0,configurable:!0}),e}(),rt=function(){function e(){this.value=null,this.children=new Map}return e.prototype.find=function(e){if(null!=this.value)return this.value.getChild(e);if(!e.isEmpty()&&this.children.size>0){var t=e.getFront();return e=e.popFront(),this.children.has(t)?this.children.get(t).find(e):null}return null},e.prototype.remember=function(t,n){if(t.isEmpty())this.value=n,this.children.clear();else if(null!==this.value)this.value=this.value.updateChild(t,n);else{var i=t.getFront();this.children.has(i)||this.children.set(i,new e);var r=this.children.get(i);t=t.popFront(),r.remember(t,n)}},e.prototype.forget=function(e){if(e.isEmpty())return this.value=null,this.children.clear(),!0;if(null!==this.value){if(this.value.isLeafNode())return!1;var t=this.value;this.value=null;var n=this;return t.forEachChild(Ae,function(e,t){n.remember(new J(e),t)}),this.forget(e)}if(this.children.size>0){var i=e.getFront();return e=e.popFront(),this.children.has(i)&&this.children.get(i).forget(e)&&this.children.delete(i),0===this.children.size}return!0},e.prototype.forEachTree=function(e,t){null!==this.value?t(e,this.value):this.forEachChild(function(n,i){var r=new J(e.toString()+"/"+n);i.forEachTree(r,t)})},e.prototype.forEachChild=function(e){this.children.forEach(function(t,n){e(n,t)})},e}(),ot=function(e,t,n){return e&&"object"==typeof e?(s.assert(".sv"in e,"Unexpected leaf node or priority contents"),"string"==typeof e[".sv"]?at(e[".sv"],t,n):"object"==typeof e[".sv"]?st(e[".sv"],t):void s.assert(!1,"Unexpected server value: "+JSON.stringify(e,null,2))):e},at=function(e,t,n){switch(e){case"timestamp":return n.timestamp;default:s.assert(!1,"Unexpected server value: "+e)}},st=function(e,t,n){e.hasOwnProperty("increment")||s.assert(!1,"Unexpected server value: "+JSON.stringify(e,null,2));var i=e.increment;if("number"!=typeof i&&s.assert(!1,"Unexpected increment value: "+i),!t.isLeafNode())return i;var r=t.getValue();return"number"!=typeof r?i:r+i},ct=function(e,t,n){var i,r=e.getPriority().val(),o=ot(r,t.getPriority(),n);if(e.isLeafNode()){var a=e,s=ot(a.getValue(),t,n);return s!==a.getValue()||o!==a.getPriority().val()?new Me(s,Ye(o)):e}var c=e;return i=c,o!==c.getPriority().val()&&(i=i.updatePriority(new Me(o))),c.forEachChild(Ae,function(e,r){var o=ct(r,t.getImmediateChild(e),n);o!==r&&(i=i.updateImmediateChild(e,o))}),i},ut=function(e){return e[e.OVERWRITE=0]="OVERWRITE",e[e.MERGE=1]="MERGE",e[e.ACK_USER_WRITE=2]="ACK_USER_WRITE",e[e.LISTEN_COMPLETE=3]="LISTEN_COMPLETE",e}({}),lt=function(){function e(e,t,n,i){this.fromUser=e,this.fromServer=t,this.queryId=n,this.tagged=i,s.assert(!i||t,"Tagged queries must be from server.")}return e.User=new e(!0,!1,null,!1),e.Server=new e(!1,!0,null,!1),e.forServerTaggedQuery=function(t){return new e(!1,!0,t,!0)},e}(),dt=function(){function e(e,t,n){this.path=e,this.affectedTree=t,this.revert=n,this.type=ut.ACK_USER_WRITE,this.source=lt.User}return e.prototype.operationForChild=function(t){if(this.path.isEmpty()){if(null!=this.affectedTree.value)return s.assert(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;var n=this.affectedTree.subtree(new J(t));return new e(J.Empty,n,this.revert)}return s.assert(this.path.getFront()===t,"operationForChild called for unrelated child."),new e(this.path.popFront(),this.affectedTree,this.revert)},e}(),ht=function(){function e(e,t){void 0===t&&(qe||(qe=new je(M)),t=qe),this.value=e,this.children=t}return e.fromObject=function(t){var n=e.Empty;return R(t,function(e,t){n=n.set(new J(e),t)}),n},e.prototype.isEmpty=function(){return null===this.value&&this.children.isEmpty()},e.prototype.findRootMostMatchingPathAndValue=function(e,t){if(null!=this.value&&t(this.value))return{path:J.Empty,value:this.value};if(e.isEmpty())return null;var n=e.getFront(),i=this.children.get(n);if(null!==i){var r=i.findRootMostMatchingPathAndValue(e.popFront(),t);return null!=r?{path:new J(n).child(r.path),value:r.value}:null}return null},e.prototype.findRootMostValueAndPath=function(e){return this.findRootMostMatchingPathAndValue(e,function(){return!0})},e.prototype.subtree=function(t){if(t.isEmpty())return this;var n=t.getFront(),i=this.children.get(n);return null!==i?i.subtree(t.popFront()):e.Empty},e.prototype.set=function(t,n){if(t.isEmpty())return new e(n,this.children);var i=t.getFront(),r=(this.children.get(i)||e.Empty).set(t.popFront(),n),o=this.children.insert(i,r);return new e(this.value,o)},e.prototype.remove=function(t){if(t.isEmpty())return this.children.isEmpty()?e.Empty:new e(null,this.children);var n=t.getFront(),i=this.children.get(n);if(i){var r=i.remove(t.popFront()),o=void 0;return o=r.isEmpty()?this.children.remove(n):this.children.insert(n,r),null===this.value&&o.isEmpty()?e.Empty:new e(this.value,o)}return this},e.prototype.get=function(e){if(e.isEmpty())return this.value;var t=e.getFront(),n=this.children.get(t);return n?n.get(e.popFront()):null},e.prototype.setTree=function(t,n){if(t.isEmpty())return n;var i,r=t.getFront(),o=(this.children.get(r)||e.Empty).setTree(t.popFront(),n);return i=o.isEmpty()?this.children.remove(r):this.children.insert(r,o),new e(this.value,i)},e.prototype.fold=function(e){return this.fold_(J.Empty,e)},e.prototype.fold_=function(e,t){var n={};return this.children.inorderTraversal(function(i,r){n[i]=r.fold_(e.child(i),t)}),t(e,this.value,n)},e.prototype.findOnPath=function(e,t){return this.findOnPath_(e,J.Empty,t)},e.prototype.findOnPath_=function(e,t,n){var i=!!this.value&&n(t,this.value);if(i)return i;if(e.isEmpty())return null;var r=e.getFront(),o=this.children.get(r);return o?o.findOnPath_(e.popFront(),t.child(r),n):null},e.prototype.foreachOnPath=function(e,t){return this.foreachOnPath_(e,J.Empty,t)},e.prototype.foreachOnPath_=function(t,n,i){if(t.isEmpty())return this;this.value&&i(n,this.value);var r=t.getFront(),o=this.children.get(r);return o?o.foreachOnPath_(t.popFront(),n.child(r),i):e.Empty},e.prototype.foreach=function(e){this.foreach_(J.Empty,e)},e.prototype.foreach_=function(e,t){this.children.inorderTraversal(function(n,i){i.foreach_(e.child(n),t)}),this.value&&t(e,this.value)},e.prototype.foreachChild=function(e){this.children.inorderTraversal(function(t,n){n.value&&e(t,n.value)})},e.Empty=new e(null),e}(),ft=function(){function e(e,t){this.source=e,this.path=t,this.type=ut.LISTEN_COMPLETE}return e.prototype.operationForChild=function(t){return this.path.isEmpty()?new e(this.source,J.Empty):new e(this.source,this.path.popFront())},e}(),pt=function(){function e(e,t,n){this.source=e,this.path=t,this.snap=n,this.type=ut.OVERWRITE}return e.prototype.operationForChild=function(t){return this.path.isEmpty()?new e(this.source,J.Empty,this.snap.getImmediateChild(t)):new e(this.source,this.path.popFront(),this.snap)},e}(),gt=function(){function e(e,t,n){this.source=e,this.path=t,this.children=n,this.type=ut.MERGE}return e.prototype.operationForChild=function(t){if(this.path.isEmpty()){var n=this.children.subtree(new J(t));return n.isEmpty()?null:n.value?new pt(this.source,J.Empty,n.value):new e(this.source,J.Empty,n)}return s.assert(this.path.getFront()===t,"Can't get a merge for a child not on the path of the operation"),new e(this.source,this.path.popFront(),this.children)},e.prototype.toString=function(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"},e}(),mt=function(){function e(e,t,n){this.node_=e,this.fullyInitialized_=t,this.filtered_=n}return e.prototype.isFullyInitialized=function(){return this.fullyInitialized_},e.prototype.isFiltered=function(){return this.filtered_},e.prototype.isCompleteForPath=function(e){if(e.isEmpty())return this.isFullyInitialized()&&!this.filtered_;var t=e.getFront();return this.isCompleteForChild(t)},e.prototype.isCompleteForChild=function(e){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(e)},e.prototype.getNode=function(){return this.node_},e}(),vt=function(){function e(e,t){this.eventCache_=e,this.serverCache_=t}return e.prototype.updateEventSnap=function(t,n,i){return new e(new mt(t,n,i),this.serverCache_)},e.prototype.updateServerSnap=function(t,n,i){return new e(this.eventCache_,new mt(t,n,i))},e.prototype.getEventCache=function(){return this.eventCache_},e.prototype.getCompleteEventSnap=function(){return this.eventCache_.isFullyInitialized()?this.eventCache_.getNode():null},e.prototype.getServerCache=function(){return this.serverCache_},e.prototype.getCompleteServerSnap=function(){return this.serverCache_.isFullyInitialized()?this.serverCache_.getNode():null},e.Empty=new e(new mt(ze.EMPTY_NODE,!1,!1),new mt(ze.EMPTY_NODE,!1,!1)),e}(),_t=function(){function e(e,t,n,i,r){this.type=e,this.snapshotNode=t,this.childName=n,this.oldSnap=i,this.prevName=r}return e.valueChange=function(t){return new e(e.VALUE,t)},e.childAddedChange=function(t,n){return new e(e.CHILD_ADDED,n,t)},e.childRemovedChange=function(t,n){return new e(e.CHILD_REMOVED,n,t)},e.childChangedChange=function(t,n,i){return new e(e.CHILD_CHANGED,n,t,i)},e.childMovedChange=function(t,n){return new e(e.CHILD_MOVED,n,t)},e.CHILD_ADDED="child_added",e.CHILD_REMOVED="child_removed",e.CHILD_CHANGED="child_changed",e.CHILD_MOVED="child_moved",e.VALUE="value",e}(),yt=function(){function e(e){this.index_=e}return e.prototype.updateChild=function(e,t,n,i,r,o){s.assert(e.isIndexed(this.index_),"A node must be indexed if only a child is updated");var a=e.getImmediateChild(t);return a.getChild(i).equals(n.getChild(i))&&a.isEmpty()==n.isEmpty()?e:(null!=o&&(n.isEmpty()?e.hasChild(t)?o.trackChildChange(_t.childRemovedChange(t,a)):s.assert(e.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):a.isEmpty()?o.trackChildChange(_t.childAddedChange(t,n)):o.trackChildChange(_t.childChangedChange(t,n,a))),e.isLeafNode()&&n.isEmpty()?e:e.updateImmediateChild(t,n).withIndex(this.index_))},e.prototype.updateFullNode=function(e,t,n){return null!=n&&(e.isLeafNode()||e.forEachChild(Ae,function(e,i){t.hasChild(e)||n.trackChildChange(_t.childRemovedChange(e,i))}),t.isLeafNode()||t.forEachChild(Ae,function(t,i){if(e.hasChild(t)){var r=e.getImmediateChild(t);r.equals(i)||n.trackChildChange(_t.childChangedChange(t,i,r))}else n.trackChildChange(_t.childAddedChange(t,i))})),t.withIndex(this.index_)},e.prototype.updatePriority=function(e,t){return e.isEmpty()?ze.EMPTY_NODE:e.updatePriority(t)},e.prototype.filtersNodes=function(){return!1},e.prototype.getIndexedFilter=function(){return this},e.prototype.getIndex=function(){return this.index_},e}(),bt=function(){function e(){this.changeMap=new Map}return e.prototype.trackChildChange=function(e){var t=e.type,n=e.childName;s.assert(t==_t.CHILD_ADDED||t==_t.CHILD_CHANGED||t==_t.CHILD_REMOVED,"Only child changes supported for tracking"),s.assert(".priority"!==n,"Only non-priority child changes can be tracked.");var i=this.changeMap.get(n);if(i){var r=i.type;if(t==_t.CHILD_ADDED&&r==_t.CHILD_REMOVED)this.changeMap.set(n,_t.childChangedChange(n,e.snapshotNode,i.snapshotNode));else if(t==_t.CHILD_REMOVED&&r==_t.CHILD_ADDED)this.changeMap.delete(n);else if(t==_t.CHILD_REMOVED&&r==_t.CHILD_CHANGED)this.changeMap.set(n,_t.childRemovedChange(n,i.oldSnap));else if(t==_t.CHILD_CHANGED&&r==_t.CHILD_ADDED)this.changeMap.set(n,_t.childAddedChange(n,e.snapshotNode));else{if(t!=_t.CHILD_CHANGED||r!=_t.CHILD_CHANGED)throw s.assertionError("Illegal combination of changes: "+e+" occurred after "+i);this.changeMap.set(n,_t.childChangedChange(n,e.snapshotNode,i.oldSnap))}}else this.changeMap.set(n,e)},e.prototype.getChanges=function(){return Array.from(this.changeMap.values())},e}(),wt=new(function(){function e(){}return e.prototype.getCompleteChild=function(e){return null},e.prototype.getChildAfterChild=function(e,t,n){return null},e}()),Ct=function(){function e(e,t,n){void 0===n&&(n=null),this.writes_=e,this.viewCache_=t,this.optCompleteServerCache_=n}return e.prototype.getCompleteChild=function(e){var t=this.viewCache_.getEventCache();if(t.isCompleteForChild(e))return t.getNode().getImmediateChild(e);var n=null!=this.optCompleteServerCache_?new mt(this.optCompleteServerCache_,!0,!1):this.viewCache_.getServerCache();return this.writes_.calcCompleteChild(e,n)},e.prototype.getChildAfterChild=function(e,t,n){var i=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:this.viewCache_.getCompleteServerSnap(),r=this.writes_.calcIndexedSlice(i,t,1,n,e);return 0===r.length?null:r[0]},e}(),Ot=function(){return function(e,t){this.viewCache=e,this.changes=t}}(),St=function(){function e(e){this.filter_=e}return e.prototype.assertIndexed=function(e){s.assert(e.getEventCache().getNode().isIndexed(this.filter_.getIndex()),"Event snap not indexed"),s.assert(e.getServerCache().getNode().isIndexed(this.filter_.getIndex()),"Server snap not indexed")},e.prototype.applyOperation=function(t,n,i,r){var o,a,c=new bt;if(n.type===ut.OVERWRITE){var u=n;u.source.fromUser?o=this.applyUserOverwrite_(t,u.path,u.snap,i,r,c):(s.assert(u.source.fromServer,"Unknown source."),a=u.source.tagged||t.getServerCache().isFiltered()&&!u.path.isEmpty(),o=this.applyServerOverwrite_(t,u.path,u.snap,i,r,a,c))}else if(n.type===ut.MERGE){var l=n;l.source.fromUser?o=this.applyUserMerge_(t,l.path,l.children,i,r,c):(s.assert(l.source.fromServer,"Unknown source."),a=l.source.tagged||t.getServerCache().isFiltered(),o=this.applyServerMerge_(t,l.path,l.children,i,r,a,c))}else if(n.type===ut.ACK_USER_WRITE){var d=n;o=d.revert?this.revertUserWrite_(t,d.path,i,r,c):this.ackUserWrite_(t,d.path,d.affectedTree,i,r,c)}else{if(n.type!==ut.LISTEN_COMPLETE)throw s.assertionError("Unknown operation type: "+n.type);o=this.listenComplete_(t,n.path,i,c)}var h=c.getChanges();return e.maybeAddValueEvent_(t,o,h),new Ot(o,h)},e.maybeAddValueEvent_=function(e,t,n){var i=t.getEventCache();if(i.isFullyInitialized()){var r=i.getNode().isLeafNode()||i.getNode().isEmpty(),o=e.getCompleteEventSnap();(n.length>0||!e.getEventCache().isFullyInitialized()||r&&!i.getNode().equals(o)||!i.getNode().getPriority().equals(o.getPriority()))&&n.push(_t.valueChange(t.getCompleteEventSnap()))}},e.prototype.generateEventCacheAfterServerEvent_=function(e,t,n,i,r){var o=e.getEventCache();if(null!=n.shadowingWrite(t))return e;var a=void 0,c=void 0;if(t.isEmpty())if(s.assert(e.getServerCache().isFullyInitialized(),"If change path is empty, we must have complete server data"),e.getServerCache().isFiltered()){var u=e.getCompleteServerSnap(),l=n.calcCompleteEventChildren(u instanceof ze?u:ze.EMPTY_NODE);a=this.filter_.updateFullNode(e.getEventCache().getNode(),l,r)}else{var d=n.calcCompleteEventCache(e.getCompleteServerSnap());a=this.filter_.updateFullNode(e.getEventCache().getNode(),d,r)}else{var h=t.getFront();if(".priority"==h){s.assert(1==t.getLength(),"Can't have a priority with additional path components");var f=o.getNode();c=e.getServerCache().getNode();var p=n.calcEventCacheAfterServerOverwrite(t,f,c);a=null!=p?this.filter_.updatePriority(f,p):o.getNode()}else{var g=t.popFront(),m=void 0;if(o.isCompleteForChild(h)){c=e.getServerCache().getNode();var v=n.calcEventCacheAfterServerOverwrite(t,o.getNode(),c);m=null!=v?o.getNode().getImmediateChild(h).updateChild(g,v):o.getNode().getImmediateChild(h)}else m=n.calcCompleteChild(h,e.getServerCache());a=null!=m?this.filter_.updateChild(o.getNode(),h,m,g,i,r):o.getNode()}}return e.updateEventSnap(a,o.isFullyInitialized()||t.isEmpty(),this.filter_.filtersNodes())},e.prototype.applyServerOverwrite_=function(e,t,n,i,r,o,a){var s,c=e.getServerCache(),u=o?this.filter_:this.filter_.getIndexedFilter();if(t.isEmpty())s=u.updateFullNode(c.getNode(),n,null);else if(u.filtersNodes()&&!c.isFiltered()){var l=c.getNode().updateChild(t,n);s=u.updateFullNode(c.getNode(),l,null)}else{var d=t.getFront();if(!c.isCompleteForPath(t)&&t.getLength()>1)return e;var h=t.popFront(),f=c.getNode().getImmediateChild(d).updateChild(h,n);s=".priority"==d?u.updatePriority(c.getNode(),f):u.updateChild(c.getNode(),d,f,h,wt,null)}var p=e.updateServerSnap(s,c.isFullyInitialized()||t.isEmpty(),u.filtersNodes()),g=new Ct(i,p,r);return this.generateEventCacheAfterServerEvent_(p,t,i,g,a)},e.prototype.applyUserOverwrite_=function(e,t,n,i,r,o){var a,s,c=e.getEventCache(),u=new Ct(i,e,r);if(t.isEmpty())s=this.filter_.updateFullNode(e.getEventCache().getNode(),n,o),a=e.updateEventSnap(s,!0,this.filter_.filtersNodes());else{var l=t.getFront();if(".priority"===l)s=this.filter_.updatePriority(e.getEventCache().getNode(),n),a=e.updateEventSnap(s,c.isFullyInitialized(),c.isFiltered());else{var d=t.popFront(),h=c.getNode().getImmediateChild(l),f=void 0;if(d.isEmpty())f=n;else{var p=u.getCompleteChild(l);f=null!=p?".priority"===d.getBack()&&p.getChild(d.parent()).isEmpty()?p:p.updateChild(d,n):ze.EMPTY_NODE}if(h.equals(f))a=e;else{var g=this.filter_.updateChild(c.getNode(),l,f,d,u,o);a=e.updateEventSnap(g,c.isFullyInitialized(),this.filter_.filtersNodes())}}}return a},e.cacheHasChild_=function(e,t){return e.getEventCache().isCompleteForChild(t)},e.prototype.applyUserMerge_=function(t,n,i,r,o,a){var s=this,c=t;return i.foreach(function(i,u){var l=n.child(i);e.cacheHasChild_(t,l.getFront())&&(c=s.applyUserOverwrite_(c,l,u,r,o,a))}),i.foreach(function(i,u){var l=n.child(i);e.cacheHasChild_(t,l.getFront())||(c=s.applyUserOverwrite_(c,l,u,r,o,a))}),c},e.prototype.applyMerge_=function(e,t){return t.foreach(function(t,n){e=e.updateChild(t,n)}),e},e.prototype.applyServerMerge_=function(e,t,n,i,r,o,a){var s=this;if(e.getServerCache().getNode().isEmpty()&&!e.getServerCache().isFullyInitialized())return e;var c,u=e;c=t.isEmpty()?n:ht.Empty.setTree(t,n);var l=e.getServerCache().getNode();return c.children.inorderTraversal(function(t,n){if(l.hasChild(t)){var c=e.getServerCache().getNode().getImmediateChild(t),d=s.applyMerge_(c,n);u=s.applyServerOverwrite_(u,new J(t),d,i,r,o,a)}}),c.children.inorderTraversal(function(t,n){var c=!e.getServerCache().isCompleteForChild(t)&&null==n.value;if(!l.hasChild(t)&&!c){var d=e.getServerCache().getNode().getImmediateChild(t),h=s.applyMerge_(d,n);u=s.applyServerOverwrite_(u,new J(t),h,i,r,o,a)}}),u},e.prototype.ackUserWrite_=function(e,t,n,i,r,o){if(null!=i.shadowingWrite(t))return e;var a=e.getServerCache().isFiltered(),s=e.getServerCache();if(null!=n.value){if(t.isEmpty()&&s.isFullyInitialized()||s.isCompleteForPath(t))return this.applyServerOverwrite_(e,t,s.getNode().getChild(t),i,r,a,o);if(t.isEmpty()){var c=ht.Empty;return s.getNode().forEachChild(Ee,function(e,t){c=c.set(new J(e),t)}),this.applyServerMerge_(e,t,c,i,r,a,o)}return e}var u=ht.Empty;return n.foreach(function(e,n){var i=t.child(e);s.isCompleteForPath(i)&&(u=u.set(e,s.getNode().getChild(i)))}),this.applyServerMerge_(e,t,u,i,r,a,o)},e.prototype.listenComplete_=function(e,t,n,i){var r=e.getServerCache(),o=e.updateServerSnap(r.getNode(),r.isFullyInitialized()||t.isEmpty(),r.isFiltered());return this.generateEventCacheAfterServerEvent_(o,t,n,wt,i)},e.prototype.revertUserWrite_=function(e,t,n,i,r){var o;if(null!=n.shadowingWrite(t))return e;var a=new Ct(n,e,i),c=e.getEventCache().getNode(),u=void 0;if(t.isEmpty()||".priority"===t.getFront()){var l=void 0;if(e.getServerCache().isFullyInitialized())l=n.calcCompleteEventCache(e.getCompleteServerSnap());else{var d=e.getServerCache().getNode();s.assert(d instanceof ze,"serverChildren would be complete if leaf node"),l=n.calcCompleteEventChildren(d)}u=this.filter_.updateFullNode(c,l=l,r)}else{var h=t.getFront(),f=n.calcCompleteChild(h,e.getServerCache());null==f&&e.getServerCache().isCompleteForChild(h)&&(f=c.getImmediateChild(h)),(u=null!=f?this.filter_.updateChild(c,h,f,t.popFront(),a,r):e.getEventCache().getNode().hasChild(h)?this.filter_.updateChild(c,h,ze.EMPTY_NODE,t.popFront(),a,r):c).isEmpty()&&e.getServerCache().isFullyInitialized()&&(o=n.calcCompleteEventCache(e.getCompleteServerSnap())).isLeafNode()&&(u=this.filter_.updateFullNode(u,o,r))}return o=e.getServerCache().isFullyInitialized()||null!=n.shadowingWrite(J.Empty),e.updateEventSnap(u,o,this.filter_.filtersNodes())},e}(),kt=function(){function e(e){this.query_=e,this.index_=this.query_.getQueryParams().getIndex()}return e.prototype.generateEventsForChanges=function(e,t,n){var i=this,r=[],o=[];return e.forEach(function(e){e.type===_t.CHILD_CHANGED&&i.index_.indexedValueChanged(e.oldSnap,e.snapshotNode)&&o.push(_t.childMovedChange(e.childName,e.snapshotNode))}),this.generateEventsForType_(r,_t.CHILD_REMOVED,e,n,t),this.generateEventsForType_(r,_t.CHILD_ADDED,e,n,t),this.generateEventsForType_(r,_t.CHILD_MOVED,o,n,t),this.generateEventsForType_(r,_t.CHILD_CHANGED,e,n,t),this.generateEventsForType_(r,_t.VALUE,e,n,t),r},e.prototype.generateEventsForType_=function(e,t,n,i,r){var o=this,a=n.filter(function(e){return e.type===t});a.sort(this.compareChanges_.bind(this)),a.forEach(function(t){var n=o.materializeSingleChange_(t,r);i.forEach(function(i){i.respondsTo(t.type)&&e.push(i.createEvent(n,o.query_))})})},e.prototype.materializeSingleChange_=function(e,t){return"value"===e.type||"child_removed"===e.type||(e.prevName=t.getPredecessorChildName(e.childName,e.snapshotNode,this.index_)),e},e.prototype.compareChanges_=function(e,t){if(null==e.childName||null==t.childName)throw s.assertionError("Should only compare child_ events.");var n=new ke(e.childName,e.snapshotNode),i=new ke(t.childName,t.snapshotNode);return this.index_.compare(n,i)},e}(),xt=function(){function e(e,t){this.query_=e,this.eventRegistrations_=[];var n=this.query_.getQueryParams(),i=new yt(n.getIndex()),r=n.getNodeFilter();this.processor_=new St(r);var o=t.getServerCache(),a=t.getEventCache(),s=i.updateFullNode(ze.EMPTY_NODE,o.getNode(),null),c=r.updateFullNode(ze.EMPTY_NODE,a.getNode(),null),u=new mt(s,o.isFullyInitialized(),i.filtersNodes()),l=new mt(c,a.isFullyInitialized(),r.filtersNodes());this.viewCache_=new vt(l,u),this.eventGenerator_=new kt(this.query_)}return e.prototype.getQuery=function(){return this.query_},e.prototype.getServerCache=function(){return this.viewCache_.getServerCache().getNode()},e.prototype.getCompleteServerCache=function(e){var t=this.viewCache_.getCompleteServerSnap();return t&&(this.query_.getQueryParams().loadsAllData()||!e.isEmpty()&&!t.getImmediateChild(e.getFront()).isEmpty())?t.getChild(e):null},e.prototype.isEmpty=function(){return 0===this.eventRegistrations_.length},e.prototype.addEventRegistration=function(e){this.eventRegistrations_.push(e)},e.prototype.removeEventRegistration=function(e,t){var n=[];if(t){s.assert(null==e,"A cancel should cancel all event registrations.");var i=this.query_.path;this.eventRegistrations_.forEach(function(e){var r=e.createCancelEvent(t=t,i);r&&n.push(r)})}if(e){for(var r=[],o=0;othis.lastWriteId_,"Stacking an older write on top of newer ones"),void 0===i&&(i=!0),this.allWrites_.push({path:e,snap:t,writeId:n,visible:i}),i&&(this.visibleWrites_=this.visibleWrites_.addWrite(e,t)),this.lastWriteId_=n},e.prototype.addMerge=function(e,t,n){s.assert(n>this.lastWriteId_,"Stacking an older merge on top of newer ones"),this.allWrites_.push({path:e,children:t,writeId:n,visible:!0}),this.visibleWrites_=this.visibleWrites_.addWrites(e,t),this.lastWriteId_=n},e.prototype.getWrite=function(e){for(var t=0;t=0,"removeWrite called with nonexistent writeId.");var i=this.allWrites_[n];this.allWrites_.splice(n,1);for(var r=i.visible,o=!1,a=this.allWrites_.length-1;r&&a>=0;){var c=this.allWrites_[a];c.visible&&(a>=n&&this.recordContainsPath_(c,i.path)?r=!1:i.path.contains(c.path)&&(o=!0)),a--}return!!r&&(o?(this.resetTree_(),!0):(i.snap?this.visibleWrites_=this.visibleWrites_.removeWrite(i.path):R(i.children,function(e){t.visibleWrites_=t.visibleWrites_.removeWrite(i.path.child(e))}),!0))},e.prototype.getCompleteWriteData=function(e){return this.visibleWrites_.getCompleteNode(e)},e.prototype.calcCompleteEventCache=function(t,n,i,r){if(i||r){var o=this.visibleWrites_.childCompoundWrite(t);return!r&&o.isEmpty()?n:r||null!=n||o.hasCompleteWrite(J.Empty)?e.layerTree_(this.allWrites_,function(e){return(e.visible||r)&&(!i||!~i.indexOf(e.writeId))&&(e.path.contains(t)||t.contains(e.path))},t).apply(n||ze.EMPTY_NODE):null}var a=this.visibleWrites_.getCompleteNode(t);if(null!=a)return a;var s=this.visibleWrites_.childCompoundWrite(t);return s.isEmpty()?n:null!=n||s.hasCompleteWrite(J.Empty)?s.apply(n||ze.EMPTY_NODE):null},e.prototype.calcCompleteEventChildren=function(e,t){var n=ze.EMPTY_NODE,i=this.visibleWrites_.getCompleteNode(e);if(i)return i.isLeafNode()||i.forEachChild(Ae,function(e,t){n=n.updateImmediateChild(e,t)}),n;if(t){var r=this.visibleWrites_.childCompoundWrite(e);return t.forEachChild(Ae,function(e,t){var i=r.childCompoundWrite(new J(e)).apply(t);n=n.updateImmediateChild(e,i)}),r.getCompleteChildren().forEach(function(e){n=n.updateImmediateChild(e.name,e.node)}),n}return this.visibleWrites_.childCompoundWrite(e).getCompleteChildren().forEach(function(e){n=n.updateImmediateChild(e.name,e.node)}),n},e.prototype.calcEventCacheAfterServerOverwrite=function(e,t,n,i){s.assert(n||i,"Either existingEventSnap or existingServerSnap must exist");var r=e.child(t);if(this.visibleWrites_.hasCompleteWrite(r))return null;var o=this.visibleWrites_.childCompoundWrite(r);return o.isEmpty()?i.getChild(t):o.apply(i.getChild(t))},e.prototype.calcCompleteChild=function(e,t,n){var i=e.child(t),r=this.visibleWrites_.getCompleteNode(i);return null!=r?r:n.isCompleteForChild(t)?this.visibleWrites_.childCompoundWrite(i).apply(n.getNode().getImmediateChild(t)):null},e.prototype.shadowingWrite=function(e){return this.visibleWrites_.getCompleteNode(e)},e.prototype.calcIndexedSlice=function(e,t,n,i,r,o){var a,s=this.visibleWrites_.childCompoundWrite(e),c=s.getCompleteNode(J.Empty);if(null!=c)a=c;else{if(null==t)return[];a=s.apply(t)}if((a=a.withIndex(o)).isEmpty()||a.isLeafNode())return[];for(var u=[],l=o.getCompare(),d=r?a.getReverseIteratorFrom(n,o):a.getIteratorFrom(n,o),h=d.getNext();h&&u.length0?this.allWrites_[this.allWrites_.length-1].writeId:-1},e.DefaultFilter_=function(e){return e.visible},e.layerTree_=function(e,t,n){for(var i=Et.Empty,r=0;r0&&!i&&(l?this.listenProvider_.stopListening(e.queryForListening_(t),null):u.forEach(function(t){var n=r.queryToTagMap.get(e.makeQueryKey_(t));r.listenProvider_.stopListening(e.queryForListening_(t),n)})),this.removeTags_(u)}return s},e.prototype.calcCompleteEventCache=function(e,t){var n=this.pendingWriteTree_,i=this.syncPointTree_.findOnPath(e,function(t,n){var i=J.relativePath(t,e),r=n.getCompleteServerCache(i);if(r)return r});return n.calcCompleteEventCache(e,i,t,!0)},e.prototype.collectDistinctViewsForSubTree_=function(e){return e.fold(function(e,t,n){if(t&&t.hasCompleteView())return[t.getCompleteView()];var i=[];return t&&(i=t.getQueryViews()),R(n,function(e,t){i=i.concat(t)}),i})},e.prototype.removeTags_=function(t){for(var n=0;n0&&s.contains(e.statsToReport_,t)&&(n[t]=r,i=!0)}),i&&this.server_.reportStats(n),X(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))},e}(),Bt=function(){function e(){this.eventLists_=[],this.recursionDepth_=0}return e.prototype.queueEvents=function(e){for(var t=null,n=0;n0,"Requires a non-empty array")}return e.prototype.trigger=function(e){for(var t=[],n=1;ndocument.domain="'+document.domain+'";<\/script>');var a=""+o+"";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(a),this.myIFrame.doc.close()}catch(c){C("frame writing exception"),c.stack&&C(c.stack),C(c)}}}return e.createIFrame_=function(){var e=document.createElement("iframe");if(e.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(e);try{e.contentWindow.document||C("No IE domain setting required")}catch(n){var t=document.domain;e.src="javascript:void((function(){document.open();document.domain='"+t+"';document.close();})())"}return e.contentDocument?e.doc=e.contentDocument:e.contentWindow?e.doc=e.contentWindow.document:e.document&&(e.doc=e.document),e},e.prototype.close=function(){var e=this;this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.innerHTML="",setTimeout(function(){null!==e.myIFrame&&(document.body.removeChild(e.myIFrame),e.myIFrame=null)},Math.floor(0)));var t=this.onDisconnect;t&&(this.onDisconnect=null,t())},e.prototype.startLongPoll=function(e,t){for(this.myID=e,this.myPW=t,this.alive=!0;this.newRequest_(););},e.prototype.newRequest_=function(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;var e={};e.id=this.myID,e.pw=this.myPW,e.ser=this.currentSerial;for(var t=this.urlFn(e),n="",i=0;this.pendingSegs.length>0&&this.pendingSegs[0].d.length+30+n.length<=1870;){var r=this.pendingSegs.shift();n=n+"&seg"+i+"="+r.seg+"&ts"+i+"="+r.ts+"&d"+i+"="+r.d,i++}return this.addLongPollTag_(t+=n,this.currentSerial),!0}return!1},e.prototype.enqueueSegment=function(e,t,n){this.pendingSegs.push({seg:e,ts:t,d:n}),this.alive&&this.newRequest_()},e.prototype.addLongPollTag_=function(e,t){var n=this;this.outstandingRequests.add(t);var i=function(){n.outstandingRequests.delete(t),n.newRequest_()},r=setTimeout(i,Math.floor(25e3));this.addTag(e,function(){clearTimeout(r),i()})},e.prototype.addTag=function(e,t){var n=this;s.isNodeSdk()?this.doNodeLongPoll(e,t):setTimeout(function(){try{if(!n.sendNewPolls)return;var i=n.myIFrame.doc.createElement("script");i.type="text/javascript",i.async=!0,i.src=e,i.onload=i.onreadystatechange=function(){var e=i.readyState;e&&"loaded"!==e&&"complete"!==e||(i.onload=i.onreadystatechange=null,i.parentNode&&i.parentNode.removeChild(i),t())},i.onerror=function(){C("Long-poll script failed to load: "+e),n.sendNewPolls=!1,n.close()},n.myIFrame.doc.body.appendChild(i)}catch(r){}},Math.floor(1))},e}(),Kt="",Xt=null;"undefined"!=typeof MozWebSocket?Xt=MozWebSocket:"undefined"!=typeof WebSocket&&(Xt=WebSocket);var Jt=function(){function e(t,n,i,r){this.connId=t,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=O(this.connId),this.stats_=jt.getCollection(n),this.connURL=e.connectionURL_(n,i,r)}return e.connectionURL_=function(e,t,n){var i={v:"5"};return!s.isNodeSdk()&&"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf(Z)&&(i.r="f"),t&&(i.s=t),n&&(i.ls=n),e.connectionURL(ee,i)},e.prototype.open=function(e,t){var n=this;this.onDisconnect=t,this.onMessage=e,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,f.set("previous_websocket_failure",!0);try{if(s.isNodeSdk()){var i={headers:{"User-Agent":"Firebase/5/"+Kt+"/"+process.platform+"/"+(s.CONSTANTS.NODE_ADMIN?"AdminNode":"Node")}},r=process.env,o=0==this.connURL.indexOf("wss://")?r.HTTPS_PROXY||r.https_proxy:r.HTTP_PROXY||r.http_proxy;o&&(i.proxy={origin:o}),this.mySock=new Xt(this.connURL,[],i)}else this.mySock=new Xt(this.connURL)}catch(c){this.log_("Error instantiating WebSocket.");var a=c.message||c.data;return a&&this.log_(a),void this.onClosed_()}this.mySock.onopen=function(){n.log_("Websocket connected."),n.everConnected_=!0},this.mySock.onclose=function(){n.log_("Websocket connection was disconnected."),n.mySock=null,n.onClosed_()},this.mySock.onmessage=function(e){n.handleIncomingFrame(e)},this.mySock.onerror=function(e){n.log_("WebSocket error. Closing connection.");var t=e.message||e.data;t&&n.log_(t),n.onClosed_()}},e.prototype.start=function(){},e.forceDisallow=function(){e.forceDisallow_=!0},e.isAvailable=function(){var t=!1;if("undefined"!=typeof navigator&&navigator.userAgent){var n=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);n&&n.length>1&&parseFloat(n[1])<4.4&&(t=!0)}return!t&&null!==Xt&&!e.forceDisallow_},e.previouslyFailed=function(){return f.isInMemoryStorage||!0===f.get("previous_websocket_failure")},e.prototype.markConnectionHealthy=function(){f.remove("previous_websocket_failure")},e.prototype.appendFrame_=function(e){if(this.frames.push(e),this.frames.length==this.totalFrames){var t=this.frames.join("");this.frames=null;var n=s.jsonEval(t);this.onMessage(n)}},e.prototype.handleNewFrameCount_=function(e){this.totalFrames=e,this.frames=[]},e.prototype.extractFrameCount_=function(e){if(s.assert(null===this.frames,"We already have a frame buffer"),e.length<=6){var t=Number(e);if(!isNaN(t))return this.handleNewFrameCount_(t),null}return this.handleNewFrameCount_(1),e},e.prototype.handleIncomingFrame=function(e){if(null!==this.mySock){var t=e.data;if(this.bytesReceived+=t.length,this.stats_.incrementCounter("bytes_received",t.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(t);else{var n=this.extractFrameCount_(t);null!==n&&this.appendFrame_(n)}}},e.prototype.send=function(e){this.resetKeepAlive();var t=s.stringify(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);var n=L(t,16384);n.length>1&&this.sendString_(String(n.length));for(var i=0;i0)return this.transports_[0];throw new Error("No transports available")},e.prototype.upgradeTransport=function(){return this.transports_.length>1?this.transports_[1]:null},e}(),Zt=function(){function e(e,t,n,i,r,o,a){this.id=e,this.repoInfo_=t,this.onMessage_=n,this.onReady_=i,this.onDisconnect_=r,this.onKill_=o,this.lastSessionId=a,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=O("c:"+this.id+":"),this.transportManager_=new Qt(t),this.log_("Connection created"),this.start_()}return e.prototype.start_=function(){var e=this,t=this.transportManager_.initialTransport();this.conn_=new t(this.nextTransportId_(),this.repoInfo_,void 0,this.lastSessionId),this.primaryResponsesRequired_=t.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.conn_),i=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout(function(){e.conn_&&e.conn_.open(n,i)},Math.floor(0));var r=t.healthyTimeout||0;r>0&&(this.healthyTimeout_=X(function(){e.healthyTimeout_=null,e.isHealthy_||(e.conn_&&e.conn_.bytesReceived>102400?(e.log_("Connection exceeded healthy timeout but has received "+e.conn_.bytesReceived+" bytes. Marking connection healthy."),e.isHealthy_=!0,e.conn_.markConnectionHealthy()):e.conn_&&e.conn_.bytesSent>10240?e.log_("Connection exceeded healthy timeout but has sent "+e.conn_.bytesSent+" bytes. Leaving connection alive."):(e.log_("Closing unhealthy connection after timeout."),e.close()))},Math.floor(r)))},e.prototype.nextTransportId_=function(){return"c:"+this.id+":"+this.connectionCount++},e.prototype.disconnReceiver_=function(e){var t=this;return function(n){e===t.conn_?t.onConnectionLost_(n):e===t.secondaryConn_?(t.log_("Secondary connection lost."),t.onSecondaryConnectionLost_()):t.log_("closing an old connection")}},e.prototype.connReceiver_=function(e){var t=this;return function(n){2!=t.state_&&(e===t.rx_?t.onPrimaryMessageReceived_(n):e===t.secondaryConn_?t.onSecondaryMessageReceived_(n):t.log_("message on old connection"))}},e.prototype.sendRequest=function(e){this.sendData_({t:"d",d:e})},e.prototype.tryCleanupConnection=function(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)},e.prototype.onSecondaryControl_=function(e){if("t"in e){var t=e.t;"a"===t?this.upgradeIfSecondaryHealthy_():"r"===t?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):"o"===t&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}},e.prototype.onSecondaryMessageReceived_=function(e){var t=A("t",e),n=A("d",e);if("c"==t)this.onSecondaryControl_(n);else{if("d"!=t)throw new Error("Unknown protocol layer: "+t);this.pendingDataMessages.push(n)}},e.prototype.upgradeIfSecondaryHealthy_=function(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))},e.prototype.proceedWithUpgrade_=function(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()},e.prototype.onPrimaryMessageReceived_=function(e){var t=A("t",e),n=A("d",e);"c"==t?this.onControl_(n):"d"==t&&this.onDataMessage_(n)},e.prototype.onDataMessage_=function(e){this.onPrimaryResponse_(),this.onMessage_(e)},e.prototype.onPrimaryResponse_=function(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))},e.prototype.onControl_=function(e){var t=A("t",e);if("d"in e){var n=e.d;if("h"===t)this.onHandshake_(n);else if("n"===t){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(var i=0;i3e4&&(this.reconnectDelay_=tn),this.lastConnectionEstablishedTime_=null):(this.log_("Window isn't visible. Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime());var e=(new Date).getTime()-this.lastConnectionAttemptTime_,t=Math.max(0,this.reconnectDelay_-e);t=Math.random()*t,this.log_("Trying to reconnect in "+t+"ms"),this.scheduleConnect_(t),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)},t.prototype.establishConnection_=function(){if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null;var e=this.onDataMessage_.bind(this),n=this.onReady_.bind(this),i=this.onRealtimeDisconnect_.bind(this),r=this.id+":"+t.nextConnectionId_++,o=this,a=this.lastSessionId,c=!1,u=null,l=function(){u?u.close():(c=!0,i())};this.realtime_={close:l,sendRequest:function(e){s.assert(u,"sendRequest call when we're not connected not allowed."),u.sendRequest(e)}};var d=this.forceTokenRefresh_;this.forceTokenRefresh_=!1,this.authTokenProvider_.getToken(d).then(function(t){c?C("getToken() completed but was canceled"):(C("getToken() completed. Creating connection."),o.authToken_=t&&t.accessToken,u=new Zt(r,o.repoInfo_,e,n,i,function(e){x(e+" ("+o.repoInfo_.toString()+")"),o.interrupt("server_kill")},a))}).then(null,function(e){o.log_("Failed to get token: "+e),c||(s.CONSTANTS.NODE_ADMIN&&x(e),l())})}},t.prototype.interrupt=function(e){C("Interrupting connection for reason: "+e),this.interruptReasons_[e]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())},t.prototype.resume=function(e){C("Resuming connection for reason: "+e),delete this.interruptReasons_[e],s.isEmpty(this.interruptReasons_)&&(this.reconnectDelay_=tn,this.realtime_||this.scheduleConnect_(0))},t.prototype.handleTimestamp_=function(e){var t=e-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:t})},t.prototype.cancelSentTransactions_=function(){for(var e=0;e=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))},t.prototype.onSecurityDebugPacket_=function(e){this.securityDebugCallback_?this.securityDebugCallback_(e):"msg"in e&&console.log("FIREBASE: "+e.msg.replace("\n","\nFIREBASE: "))},t.prototype.restoreState_=function(){var e,t,n,i;this.tryAuth();try{for(var r=a.__values(this.listens.values()),o=r.next();!o.done;o=r.next()){var s=o.value;try{for(var c=(n=void 0,a.__values(s.values())),u=c.next();!u.done;u=c.next())this.sendListen_(u.value)}catch(h){n={error:h}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}}}catch(f){e={error:f}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}for(var l=0;l=200&&c.status<300){try{e=s.jsonEval(c.responseText)}catch(t){x("Failed to parse JSON response for "+a+": "+c.responseText)}n(null,e)}else 401!==c.status&&404!==c.status&&x("Got unsuccessful REST response for "+a+" Status: "+c.status),n(c.status);n=null}},c.open("GET",a,!0),c.send()})},t}(en),on="repo_interrupt",an=function(){function e(e,t,n,i){var r=this;this.repoInfo_=e,this.app=n,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new Bt,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=new rt,this.persistentConnection_=null;var o=new Lt(n,i);if(this.stats_=jt.getCollection(e),t||("object"==typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0)this.server_=new rn(this.repoInfo_,this.onDataUpdate_.bind(this),o),setTimeout(this.onConnectStatus_.bind(this,!0),0);else{var a=n.options.databaseAuthVariableOverride;if(null!=a){if("object"!=typeof a)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{s.stringify(a)}catch(c){throw new Error("Invalid authOverride provided: "+c)}}this.persistentConnection_=new nn(this.repoInfo_,this.onDataUpdate_.bind(this),this.onConnectStatus_.bind(this),this.onServerInfoUpdate_.bind(this),o,a),this.server_=this.persistentConnection_}o.addTokenChangeListener(function(e){r.server_.refreshAuthToken(e)}),this.statsReporter_=jt.getOrCreateReporter(e,function(){return new Ft(r.stats_,r.server_)}),this.transactions_init_(),this.infoData_=new Pt,this.infoSyncTree_=new At({startListening:function(e,t,n,i){var o=[],a=r.infoData_.getNode(e.path);return a.isEmpty()||(o=r.infoSyncTree_.applyServerOverwrite(e.path,a),setTimeout(function(){i("ok")},0)),o},stopListening:function(){}}),this.updateInfo_("connected",!1),this.serverSyncTree_=new At({startListening:function(e,t,n,i){return r.server_.listen(e,n,t,function(t,n){var o=i(t,n);r.eventQueue_.raiseEventsForChangedPath(e.path,o)}),[]},stopListening:function(e,t){r.server_.unlisten(e,t)}})}return e.prototype.toString=function(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host},e.prototype.name=function(){return this.repoInfo_.namespace},e.prototype.serverTime=function(){var e=this.infoData_.getNode(new J(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+e},e.prototype.generateServerValues=function(){return(e=(e={timestamp:this.serverTime()})||{}).timestamp=e.timestamp||(new Date).getTime(),e;var e},e.prototype.onDataUpdate_=function(e,t,n,i){this.dataUpdateCount++;var r=new J(e);t=this.interceptServerDataCallback_?this.interceptServerDataCallback_(e,t):t;var o=[];if(i)if(n){var a=s.map(t,function(e){return Ye(e)});o=this.serverSyncTree_.applyTaggedQueryMerge(r,a,i)}else{var c=Ye(t);o=this.serverSyncTree_.applyTaggedQueryOverwrite(r,c,i)}else if(n){var u=s.map(t,function(e){return Ye(e)});o=this.serverSyncTree_.applyServerMerge(r,u)}else{var l=Ye(t);o=this.serverSyncTree_.applyServerOverwrite(r,l)}var d=r;o.length>0&&(d=this.rerunTransactions_(r)),this.eventQueue_.raiseEventsForChangedPath(d,o)},e.prototype.interceptServerData_=function(e){this.interceptServerDataCallback_=e},e.prototype.onConnectStatus_=function(e){this.updateInfo_("connected",e),!1===e&&this.runOnDisconnectEvents_()},e.prototype.onServerInfoUpdate_=function(e){var t=this;R(e,function(e,n){t.updateInfo_(e,n)})},e.prototype.updateInfo_=function(e,t){var n=new J("/.info/"+e),i=Ye(t);this.infoData_.updateSnapshot(n,i);var r=this.infoSyncTree_.applyServerOverwrite(n,i);this.eventQueue_.raiseEventsForChangedPath(n,r)},e.prototype.getNextWriteId_=function(){return this.nextWriteId_++},e.prototype.setWithPriority=function(e,t,n,i){var r=this;this.log_("set",{path:e.toString(),value:t,priority:n});var o=this.generateServerValues(),a=Ye(t,n),s=this.serverSyncTree_.calcCompleteEventCache(e),c=ct(a,s,o),u=this.getNextWriteId_(),l=this.serverSyncTree_.applyUserOverwrite(e,c,u,!0);this.eventQueue_.queueEvents(l),this.server_.put(e.toString(),a.val(!0),function(t,n){var o="ok"===t;o||x("set at "+e+" failed: "+t);var a=r.serverSyncTree_.ackUserWrite(u,!o);r.eventQueue_.raiseEventsForChangedPath(e,a),r.callOnCompleteCallback(i,t,n)});var d=this.abortTransactions_(e);this.rerunTransactions_(d),this.eventQueue_.raiseEventsForChangedPath(d,[])},e.prototype.update=function(e,t,n){var i=this;this.log_("update",{path:e.toString(),value:t});var r=!0,o=this.generateServerValues(),a={};if(R(t,function(t,n){r=!1;var s=Ye(n);a[t]=ct(s,i.serverSyncTree_.calcCompleteEventCache(e),o)}),r)C("update() called with empty data. Don't do anything."),this.callOnCompleteCallback(n,"ok");else{var s=this.getNextWriteId_(),c=this.serverSyncTree_.applyUserMerge(e,a,s);this.eventQueue_.queueEvents(c),this.server_.merge(e.toString(),t,function(t,r){var o="ok"===t;o||x("update at "+e+" failed: "+t);var a=i.serverSyncTree_.ackUserWrite(s,!o),c=a.length>0?i.rerunTransactions_(e):e;i.eventQueue_.raiseEventsForChangedPath(c,a),i.callOnCompleteCallback(n,t,r)}),R(t,function(t){var n=i.abortTransactions_(e.child(t));i.rerunTransactions_(n)}),this.eventQueue_.raiseEventsForChangedPath(e,[])}},e.prototype.runOnDisconnectEvents_=function(){var e=this;this.log_("onDisconnectEvents");var t=this.generateServerValues(),n=function(e,t,n){var i=new rt;return e.forEachTree(new J(""),function(e,r){var o=t.calcCompleteEventCache(e);s.assert(null!=o,"Expected ChildrenNode.EMPTY_NODE for nulls"),i.remember(e,ct(r,o,n))}),i}(this.onDisconnect_,this.serverSyncTree_,t),i=[];n.forEachTree(J.Empty,function(t,n){i=i.concat(e.serverSyncTree_.applyServerOverwrite(t,n));var r=e.abortTransactions_(t);e.rerunTransactions_(r)}),this.onDisconnect_=new rt,this.eventQueue_.raiseEventsForChangedPath(J.Empty,i)},e.prototype.onDisconnectCancel=function(e,t){var n=this;this.server_.onDisconnectCancel(e.toString(),function(i,r){"ok"===i&&n.onDisconnect_.forget(e),n.callOnCompleteCallback(t,i,r)})},e.prototype.onDisconnectSet=function(e,t,n){var i=this,r=Ye(t);this.server_.onDisconnectPut(e.toString(),r.val(!0),function(t,o){"ok"===t&&i.onDisconnect_.remember(e,r),i.callOnCompleteCallback(n,t,o)})},e.prototype.onDisconnectSetWithPriority=function(e,t,n,i){var r=this,o=Ye(t,n);this.server_.onDisconnectPut(e.toString(),o.val(!0),function(t,n){"ok"===t&&r.onDisconnect_.remember(e,o),r.callOnCompleteCallback(i,t,n)})},e.prototype.onDisconnectUpdate=function(e,t,n){var i=this;if(s.isEmpty(t))return C("onDisconnect().update() called with empty data. Don't do anything."),void this.callOnCompleteCallback(n,"ok");this.server_.onDisconnectMerge(e.toString(),t,function(r,o){"ok"===r&&R(t,function(t,n){var r=Ye(n);i.onDisconnect_.remember(e.child(t),r)}),i.callOnCompleteCallback(n,r,o)})},e.prototype.addEventCallbackForQuery=function(e,t){var n;n=".info"===e.path.getFront()?this.infoSyncTree_.addEventRegistration(e,t):this.serverSyncTree_.addEventRegistration(e,t),this.eventQueue_.raiseEventsAtPath(e.path,n)},e.prototype.removeEventCallbackForQuery=function(e,t){var n;n=".info"===e.path.getFront()?this.infoSyncTree_.removeEventRegistration(e,t):this.serverSyncTree_.removeEventRegistration(e,t),this.eventQueue_.raiseEventsAtPath(e.path,n)},e.prototype.interrupt=function(){this.persistentConnection_&&this.persistentConnection_.interrupt(on)},e.prototype.resume=function(){this.persistentConnection_&&this.persistentConnection_.resume(on)},e.prototype.stats=function(e){if(void 0===e&&(e=!1),"undefined"!=typeof console){var t;e?(this.statsListener_||(this.statsListener_=new Nt(this.stats_)),t=this.statsListener_.get()):t=this.stats_.get();var n=Object.keys(t).reduce(function(e,t){return Math.max(t.length,e)},0);R(t,function(e,t){for(var i=e,r=e.length;r=0)return null!=r&&r.trackChildChange(_t.childChangedChange(t,n,h)),c.updateImmediateChild(t,n);null!=r&&r.trackChildChange(_t.childRemovedChange(t,h));var g=c.updateImmediateChild(t,ze.EMPTY_NODE);return null!=f&&this.rangedFilter_.matches(f)?(null!=r&&r.trackChildChange(_t.childAddedChange(f.name,f.node)),g.updateImmediateChild(f.name,f.node)):g}return n.isEmpty()?e:d&&o(l,u)>=0?(null!=r&&(r.trackChildChange(_t.childRemovedChange(l.name,l.node)),r.trackChildChange(_t.childAddedChange(t,n))),c.updateImmediateChild(t,n).updateImmediateChild(l.name,ze.EMPTY_NODE)):e},e}(),un=function(){function e(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=Ae}return e.prototype.hasStart=function(){return this.startSet_},e.prototype.isViewFromLeft=function(){return""===this.viewFrom_?this.startSet_:this.viewFrom_===e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT},e.prototype.getIndexStartValue=function(){return s.assert(this.startSet_,"Only valid if start has been set"),this.indexStartValue_},e.prototype.getIndexStartName=function(){return s.assert(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:E},e.prototype.hasEnd=function(){return this.endSet_},e.prototype.getIndexEndValue=function(){return s.assert(this.endSet_,"Only valid if end has been set"),this.indexEndValue_},e.prototype.getIndexEndName=function(){return s.assert(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:I},e.prototype.hasLimit=function(){return this.limitSet_},e.prototype.hasAnchoredLimit=function(){return this.limitSet_&&""!==this.viewFrom_},e.prototype.getLimit=function(){return s.assert(this.limitSet_,"Only valid if limit has been set"),this.limit_},e.prototype.getIndex=function(){return this.index_},e.prototype.copy_=function(){var t=new e;return t.limitSet_=this.limitSet_,t.limit_=this.limit_,t.startSet_=this.startSet_,t.indexStartValue_=this.indexStartValue_,t.startNameSet_=this.startNameSet_,t.indexStartName_=this.indexStartName_,t.endSet_=this.endSet_,t.indexEndValue_=this.indexEndValue_,t.endNameSet_=this.endNameSet_,t.indexEndName_=this.indexEndName_,t.index_=this.index_,t.viewFrom_=this.viewFrom_,t},e.prototype.limit=function(e){var t=this.copy_();return t.limitSet_=!0,t.limit_=e,t.viewFrom_="",t},e.prototype.limitToFirst=function(t){var n=this.copy_();return n.limitSet_=!0,n.limit_=t,n.viewFrom_=e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT,n},e.prototype.limitToLast=function(t){var n=this.copy_();return n.limitSet_=!0,n.limit_=t,n.viewFrom_=e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_RIGHT,n},e.prototype.startAt=function(e,t){var n=this.copy_();return n.startSet_=!0,void 0===e&&(e=null),n.indexStartValue_=e,null!=t?(n.startNameSet_=!0,n.indexStartName_=t):(n.startNameSet_=!1,n.indexStartName_=""),n},e.prototype.endAt=function(e,t){var n=this.copy_();return n.endSet_=!0,void 0===e&&(e=null),n.indexEndValue_=e,void 0!==t?(n.endNameSet_=!0,n.indexEndName_=t):(n.endNameSet_=!1,n.indexEndName_=""),n},e.prototype.orderBy=function(e){var t=this.copy_();return t.index_=e,t},e.prototype.getQueryObject=function(){var t=e.WIRE_PROTOCOL_CONSTANTS_,n={};if(this.startSet_&&(n[t.INDEX_START_VALUE]=this.indexStartValue_,this.startNameSet_&&(n[t.INDEX_START_NAME]=this.indexStartName_)),this.endSet_&&(n[t.INDEX_END_VALUE]=this.indexEndValue_,this.endNameSet_&&(n[t.INDEX_END_NAME]=this.indexEndName_)),this.limitSet_){n[t.LIMIT]=this.limit_;var i=this.viewFrom_;""===i&&(i=this.isViewFromLeft()?t.VIEW_FROM_LEFT:t.VIEW_FROM_RIGHT),n[t.VIEW_FROM]=i}return this.index_!==Ae&&(n[t.INDEX]=this.index_.toString()),n},e.prototype.loadsAllData=function(){return!(this.startSet_||this.endSet_||this.limitSet_)},e.prototype.isDefault=function(){return this.loadsAllData()&&this.index_==Ae},e.prototype.getNodeFilter=function(){return this.loadsAllData()?new yt(this.getIndex()):this.hasLimit()?new cn(this):new sn(this)},e.prototype.toRestQueryStringParameters=function(){var t,n=e.REST_QUERY_CONSTANTS_,i={};return this.isDefault()||(this.index_===Ae?t=n.PRIORITY_INDEX:this.index_===Xe?t=n.VALUE_INDEX:this.index_===Ee?t=n.KEY_INDEX:(s.assert(this.index_ instanceof Je,"Unrecognized index type!"),t=this.index_.toString()),i[n.ORDER_BY]=s.stringify(t),this.startSet_&&(i[n.START_AT]=s.stringify(this.indexStartValue_),this.startNameSet_&&(i[n.START_AT]+=","+s.stringify(this.indexStartName_))),this.endSet_&&(i[n.END_AT]=s.stringify(this.indexEndValue_),this.endNameSet_&&(i[n.END_AT]+=","+s.stringify(this.indexEndName_))),this.limitSet_&&(this.isViewFromLeft()?i[n.LIMIT_TO_FIRST]=this.limit_:i[n.LIMIT_TO_LAST]=this.limit_)),i},e.WIRE_PROTOCOL_CONSTANTS_={INDEX_START_VALUE:"sp",INDEX_START_NAME:"sn",INDEX_END_VALUE:"ep",INDEX_END_NAME:"en",LIMIT:"l",VIEW_FROM:"vf",VIEW_FROM_LEFT:"l",VIEW_FROM_RIGHT:"r",INDEX:"i"},e.REST_QUERY_CONSTANTS_={ORDER_BY:"orderBy",PRIORITY_INDEX:"$priority",VALUE_INDEX:"$value",KEY_INDEX:"$key",START_AT:"startAt",END_AT:"endAt",LIMIT_TO_FIRST:"limitToFirst",LIMIT_TO_LAST:"limitToLast"},e.DEFAULT=new e,e}(),ln=function(e){function t(t,n){if(!(t instanceof an))throw new Error("new Reference() no longer supported - use app.database().");return e.call(this,t,n,un.DEFAULT,!1)||this}return a.__extends(t,e),t.prototype.getKey=function(){return s.validateArgCount("Reference.key",0,0,arguments.length),this.path.isEmpty()?null:this.path.getBack()},t.prototype.child=function(e){return s.validateArgCount("Reference.child",1,1,arguments.length),"number"==typeof e?e=String(e):e instanceof J||(null===this.path.getFront()?_e("Reference.child",1,e,!1):ve("Reference.child",1,e,!1)),new t(this.repo,this.path.child(e))},t.prototype.getParent=function(){s.validateArgCount("Reference.parent",0,0,arguments.length);var e=this.path.parent();return null===e?null:new t(this.repo,e)},t.prototype.getRoot=function(){s.validateArgCount("Reference.root",0,0,arguments.length);for(var e=this;null!==e.getParent();)e=e.getParent();return e},t.prototype.databaseProp=function(){return this.repo.database},t.prototype.set=function(e,t){s.validateArgCount("Reference.set",1,2,arguments.length),ye("Reference.set",this.path),de("Reference.set",1,e,this.path,!1),s.validateCallback("Reference.set",2,t,!0);var n=new s.Deferred;return this.repo.setWithPriority(this.path,e,null,n.wrapCallback(t)),n.promise},t.prototype.update=function(e,t){if(s.validateArgCount("Reference.update",1,2,arguments.length),ye("Reference.update",this.path),Array.isArray(e)){for(var n={},i=0;i0},e.prototype.isEmpty=function(){return null===this.getValue()&&!this.hasChildren()},e.prototype.forEachChild=function(t){var n=this;R(this.node_.children,function(i,r){t(new e(i,n,r))})},e.prototype.forEachDescendant=function(e,t,n){t&&!n&&e(this),this.forEachChild(function(t){t.forEachDescendant(e,!0,n)}),t&&n&&e(this)},e.prototype.forEachAncestor=function(e,t){for(var n=t?this:this.parent();null!==n;){if(e(n))return!0;n=n.parent()}return!1},e.prototype.forEachImmediateDescendantWithValue=function(e){this.forEachChild(function(t){null!==t.getValue()?e(t):t.forEachImmediateDescendantWithValue(e)})},e.prototype.path=function(){return new J(null===this.parent_?this.name_:this.parent_.path()+"/"+this.name_)},e.prototype.name=function(){return this.name_},e.prototype.parent=function(){return this.parent_},e.prototype.updateParents_=function(){null!==this.parent_&&this.parent_.updateChild_(this.name_,this)},e.prototype.updateChild_=function(e,t){var n=t.isEmpty(),i=s.contains(this.node_.children,e);n&&i?(delete this.node_.children[e],this.node_.childCount--,this.updateParents_()):n||i||(this.node_.children[e]=t.node_,this.node_.childCount++,this.updateParents_())},e}(),fn=function(e){return e[e.RUN=0]="RUN",e[e.SENT=1]="SENT",e[e.COMPLETED=2]="COMPLETED",e[e.SENT_NEEDS_ABORT=3]="SENT_NEEDS_ABORT",e[e.NEEDS_ABORT=4]="NEEDS_ABORT",e}({});an.MAX_TRANSACTION_RETRIES_=25,an.prototype.transactions_init_=function(){this.transactionQueueTree_=new hn},an.prototype.startTransaction=function(e,t,n,i){this.log_("transaction on "+e);var r=function(){},o=new ln(this,e);o.on("value",r);var a={path:e,update:t,onComplete:n,status:null,order:m(),applyLocally:i,retryCount:0,unwatcher:function(){o.off("value",r)},abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},c=this.getLatestState_(e);a.currentInputSnapshot=c;var u=a.update(c.val());if(void 0===u){if(a.unwatcher(),a.currentOutputSnapshotRaw=null,a.currentOutputSnapshotResolved=null,a.onComplete){var l=new Qe(a.currentInputSnapshot,new ln(this,a.path),Ae);a.onComplete(null,!1,l)}}else{he("transaction failed: Data returned ",u,a.path),a.status=fn.RUN;var d=this.transactionQueueTree_.subTree(e),h=d.getValue()||[];h.push(a),d.setValue(h);var f=void 0;"object"==typeof u&&null!==u&&s.contains(u,".priority")?(f=s.safeGet(u,".priority"),s.assert(le(f),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.")):f=(this.serverSyncTree_.calcCompleteEventCache(e)||ze.EMPTY_NODE).getPriority().val(),f=f;var p=this.generateServerValues(),g=Ye(u,f),v=ct(g,c,p);a.currentOutputSnapshotRaw=g,a.currentOutputSnapshotResolved=v,a.currentWriteId=this.getNextWriteId_();var _=this.serverSyncTree_.applyUserOverwrite(e,v,a.currentWriteId,a.applyLocally);this.eventQueue_.raiseEventsForChangedPath(e,_),this.sendReadyTransactions_()}},an.prototype.getLatestState_=function(e,t){return this.serverSyncTree_.calcCompleteEventCache(e,t)||ze.EMPTY_NODE},an.prototype.sendReadyTransactions_=function(e){var t=this;if(void 0===e&&(e=this.transactionQueueTree_),e||this.pruneCompletedTransactionsBelowNode_(e),null!==e.getValue()){var n=this.buildTransactionQueue_(e);s.assert(n.length>0,"Sending zero length transaction queue"),n.every(function(e){return e.status===fn.RUN})&&this.sendTransactionQueue_(e.path(),n)}else e.hasChildren()&&e.forEachChild(function(e){t.sendReadyTransactions_(e)})},an.prototype.sendTransactionQueue_=function(e,t){for(var n=this,i=t.map(function(e){return e.currentWriteId}),r=this.getLatestState_(e,i),o=r,a=r.hash(),c=0;c=an.MAX_TRANSACTION_RETRIES_)u=!0,l="maxretry",i=i.concat(this.serverSyncTree_.ackUserWrite(a.currentWriteId,!0));else{var d=this.getLatestState_(a.path,r);a.currentInputSnapshot=d;var h=e[o].update(d.val());if(void 0!==h){he("transaction failed: Data returned ",h,a.path);var f=Ye(h);"object"==typeof h&&null!=h&&s.contains(h,".priority")||(f=f.updatePriority(d.getPriority()));var p=a.currentWriteId,g=this.generateServerValues(),m=ct(f,d,g);a.currentOutputSnapshotRaw=f,a.currentOutputSnapshotResolved=m,a.currentWriteId=this.getNextWriteId_(),r.splice(r.indexOf(p),1),i=(i=i.concat(this.serverSyncTree_.applyUserOverwrite(a.path,m,a.currentWriteId,a.applyLocally))).concat(this.serverSyncTree_.ackUserWrite(p,!0))}else u=!0,l="nodata",i=i.concat(this.serverSyncTree_.ackUserWrite(a.currentWriteId,!0))}if(this.eventQueue_.raiseEventsForChangedPath(t,i),i=[],u&&(e[o].status=fn.COMPLETED,setTimeout(e[o].unwatcher,Math.floor(0)),e[o].onComplete))if("nodata"===l){var v=new ln(this,e[o].path),_=new Qe(e[o].currentInputSnapshot,v,Ae);n.push(e[o].onComplete.bind(null,null,!1,_))}else n.push(e[o].onComplete.bind(null,new Error(l),!1,null))}for(this.pruneCompletedTransactionsBelowNode_(this.transactionQueueTree_),o=0;o0?n:null)}e.forEachChild(function(e){t.pruneCompletedTransactionsBelowNode_(e)})},an.prototype.abortTransactions_=function(e){var t=this,n=this.getAncestorTransactionNode_(e).path(),i=this.transactionQueueTree_.subTree(e);return i.forEachAncestor(function(e){t.abortTransactionsOnNode_(e)}),this.abortTransactionsOnNode_(i),i.forEachDescendant(function(e){t.abortTransactionsOnNode_(e)}),n},an.prototype.abortTransactionsOnNode_=function(e){var t=e.getValue();if(null!==t){for(var n=[],i=[],r=-1,o=0;o=0&&t._expandedItems[n].visible))},_getRowIndicesForExpand:function(e){var t=this.getRowIndexByKey(e);return[t,t+1]},_changeRowExpandCore:function(e){var t,n=this;if(Array.isArray(e))t=n.callBase.apply(n,arguments);else{var i=r.default.getIndexByKey(e,n._expandedItems);if(i>=0){var o=n._expandedItems[i].visible;n._expandedItems[i].visible=!o}else{n._expandedItems.push({key:e,visible:!0});var a=n.getController("editing");a&&a.correctEditRowIndexAfterExpand(e)}n.updateItems({changeType:"update",rowIndices:n._getRowIndicesForExpand(e)}),t=(new c.Deferred).resolve()}return t},_processDataItem:function(e,t){var n=this,i=n.callBase.apply(n,arguments);return i.isExpanded=n.isRowExpanded(i.key),void 0===t.detailColumnIndex&&(t.detailColumnIndex=-1,(0,a.each)(t.visibleColumns,function(e,n){if("expand"===n.command&&!(0,s.isDefined)(n.groupIndex))return t.detailColumnIndex=e,!1})),t.detailColumnIndex>=0&&(i.values[t.detailColumnIndex]=i.isExpanded),i},_processItems:function(e,t){var n=this,i=t.changeType,s=[];return e=n.callBase.apply(n,arguments),"loadingAll"===i?e:("refresh"===i&&(n._expandedItems=(0,o.grep)(n._expandedItems,function(e){return e.visible})),(0,a.each)(e,function(e,t){s.push(t);var i=r.default.getIndexByKey(t.key,n._expandedItems);"data"===t.rowType&&(t.isExpanded||i>=0)&&!t.isNewRow&&s.push({visible:t.isExpanded,rowType:"detail",key:t.key,data:t.data,values:[]})}),s)},optionChanged:function(e){var t,n;if("masterDetail"===e.name){switch(e.name="dataSource",e.fullName){case"masterDetail":var i=e.value||{},r=e.previousValue||{};t=i.enabled!==r.enabled,n=i.autoExpandAll!==r.autoExpandAll;break;case"masterDetail.enabled":t=!0;break;case"masterDetail.autoExpandAll":n=!0}(t||n)&&l(this)}this.callBase(e)}}),resizing:{fireContentReadyAction:function(){this.callBase.apply(this,arguments),this._updateParentDataGrids(this.component.$element())},_updateParentDataGrids:function(e){var t=this,n=e.closest(".dx-master-detail-row");n.length&&(0,c.when)(this._updateMasterDataGrid(n,e)).done(function(){t._updateParentDataGrids(n.parent())})},_updateMasterDataGrid:function(e,t){var n=(0,i.default)(e).data("options"),r=(0,i.default)(e).closest("."+this.getWidgetContainerClass()).parent().data("dxDataGrid");if(n&&r){if(!r.getView("rowsView").isFixedColumns()){var o=r.getScrollable();return o&&o.update()}this._updateFixedMasterDetailGrids(r,n.rowIndex,t)}},_updateFixedMasterDetailGrids:function(e,t,n){var r=this,o=(0,i.default)(e.getRowElement(t));if(o&&2===o.length&&o.eq(0).height()!==o.eq(1).height()){var a=n.width();return e.updateDimensions().done(function(){var t=r.option("columnAutoWidth")&&!0===e.option("scrolling.useNative"),i=t&&a!==n.width();t&&i&&r.updateDimensions()})}},_toggleBestFitMode:function(e){if(this.callBase.apply(this,arguments),this.option("masterDetail.template")){var t=this._rowsView._getTableElement();t&&t.find(".dx-master-detail-cell").toggleClass("dx-hidden",e)}}}},views:{rowsView:{_getCellTemplate:function(e){var t=this,n=e.column,i=t.getController("editing"),r=i&&i.isEditRow(e.rowIndex);return"detail"!==n.command||r?t.callBase.apply(t,arguments):t.option("masterDetail.template")||{allowRenderToDetachedContainer:!1,render:t._getDefaultTemplate(n)}},_isDetailRow:function(e){return e&&e.rowType&&0===e.rowType.indexOf("detail")},_createRow:function(e){var t=this.callBase(e);return e&&this._isDetailRow(e)&&(this.option("showRowLines")&&t.addClass("dx-row-lines"),t.addClass("dx-master-detail-row"),(0,s.isDefined)(e.visible)&&t.toggle(e.visible)),t},_renderCells:function(e,t){var n=t.row,i=this._columnsController.getVisibleColumns();n.rowType&&this._isDetailRow(n)?this._needRenderCell(0,t.columnIndices)&&this._renderCell(e,{value:null,row:n,rowIndex:n.rowIndex,column:{command:"detail"},columnIndex:0}).addClass(h).addClass(d).attr("colSpan",i.length):this.callBase.apply(this,arguments)}}}}}},NhcS:function(e,t,n){"use strict";n.d(t,"a",function(){return d});var i=n("c7TG"),r=n("aiMf"),o=n("ptfe"),a=n("mjQz"),s=n("LvDl"),c=n("fXoL");function u(e,t){if(1&e){var n=c.hc();c.gc(0,"ion-item"),c.gc(1,"ion-row",4),c.gc(2,"ion-col",5),c.gc(3,"ion-label"),c.Rc(4),c.fc(),c.fc(),c.gc(5,"ion-col",6),c.gc(6,"span",7),c.Rc(7),c.fc(),c.fc(),c.gc(8,"ion-col",5),c.gc(9,"ion-checkbox",8),c.nc("ngModelChange",function(e){return c.Ic(n),t.$implicit.isChecked=e}),c.fc(),c.fc(),c.fc(),c.fc()}if(2&e){var i=t.$implicit;c.Ob(4),c.Sc(i.delivery.type),c.Ob(3),c.Uc("",i.delivery.text," - ",i.clientAccount,""),c.Ob(2),c.wc("ngModel",i.isChecked)("value",i.isChecked)}}function l(e,t){1&e&&(c.gc(0,"ion-item"),c.gc(1,"ion-label"),c.Rc(2,"There's nothing to drop off here"),c.fc(),c.fc())}var d=function(){function e(e,t,n){this.tasksService=e,this.modalController=t,this.taskManagerService=n,this.allDeliveries={},this.undeliveredDeliveries=[]}return e.prototype.ngOnInit=function(){this.deliveryTypes=this.taskManagerService.task.deliveryType,this.getDeliveries()},e.prototype.getDeliveries=function(){return e=this,void 0,n=function(){var e=this;return function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]t?1:0},m=d.inherit({ctor:function(e,t,n,i){e instanceof p||(e=new p(e,this._wrap)),this.iter=e,this.rules=[{getter:t,desc:n,compare:i}]},thenBy:function(e,t,n){var i=new m(this.sortedIter||this.iter,e,t,n);return this.sortedIter||(i.rules=this.rules.concat(i.rules)),i},next:function(){return this._ensureSorted(),this.sortedIter.next()},current:function(){return this._ensureSorted(),this.sortedIter.current()},reset:function(){delete this.sortedIter},countable:function(){return this.sortedIter||this.iter.countable()},count:function(){return this.sortedIter?this.sortedIter.count():this.iter.count()},_ensureSorted:function(){var e=this;e.sortedIter||(o.each(e.rules,function(){this.getter=a(this.getter)}),e.sortedIter=new p(new h(this.iter.toArray().sort(function(t,n){return e._compare(t,n)})),e._unwrap))},_wrap:function(e,t){return{index:t,value:e}},_unwrap:function(e){return e.value},_compare:function(e,t){var n=e.index,i=t.index;if((e=e.value)===(t=t.value))return n-i;for(var r=0,o=this.rules.length;r1&&n!==i)throw new u.errors.Error("E4019");t.push(v(this)),n=i,i=!0}else i=l.isConjunctiveOperator(this)}),function(e){for(var i=n,r=0;r":return t(i,o,!0);case">":return function(e){return s(i(e))>o};case"<":return function(e){return s(i(e))=":return function(e){return s(i(e))>=o};case"<=":return function(e){return s(i(e))<=o};case"startswith":return function(t){return 0===s(e(i(t))).indexOf(o)};case"endswith":return function(t){var n=s(e(i(t))),r=e(o);return!(n.length-1};case"notcontains":return function(t){return-1===s(e(i(t))).indexOf(o)}}throw u.errors.Error("E4003",r)}(n)}}(),_=f.inherit({ctor:function(e,t){this.callBase(e),this.criteria=v(t)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),y=d.inherit({ctor:function(e,t){this.iter=e,this.getter=t},next:function(){return this._ensureGrouped(),this.groupedIter.next()},current:function(){return this._ensureGrouped(),this.groupedIter.current()},reset:function(){delete this.groupedIter},countable:function(){return!!this.groupedIter},count:function(){return this.groupedIter.count()},_ensureGrouped:function(){if(!this.groupedIter){var e={},t=[],n=this.iter,i=a(this.getter);for(n.reset();n.next();){var r=n.current(),s=i(r);s in e?e[s].push(r):(e[s]=[r],t.push(s))}this.groupedIter=new h(o.map(t,function(t){return{key:t,items:e[t]}}))}}}),b=f.inherit({ctor:function(e,t){this.callBase(e),this.getter=a(t)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),w=f.inherit({ctor:function(e,t,n){this.callBase(e),this.skip=Math.max(0,t),this.take=Math.max(0,n),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;for(;this.pos").appendTo(this.$element()),t=this._popupOptions();this._popup=this._createComponent(e,l,t)}},_popupOptions:function(){var e=!this.option("usePopover");return{onInitialized:function(t){t.component._wrapper().addClass("dx-dropdownmenu-popup-wrapper").toggleClass("dx-dropdownmenu-popup",e)},visible:this.option("opened"),deferRendering:!1,contentTemplate:(function(e){this._renderList(e)}).bind(this),position:this.option("popupPosition"),animation:this.option("popupAnimation"),onOptionChanged:(function(e){"visible"===e.name&&this.option("opened",e.value)}).bind(this),target:this.$element(),height:this.option("popupHeight"),width:this.option("popupWidth"),maxHeight:this.option("popupMaxHeight"),container:this.option("container"),autoResizeEnabled:this.option("popupAutoResizeEnabled")}},_renderList:function(e){var t=i(e),n=this._listOptions();t.addClass("dx-dropdownmenu-list"),this._list=this._createComponent(t,this.option("menuWidget"),n),this._list._getAriaTarget=(function(){return this.$element()}).bind(this),this._setListDataSource();var o=.5*i(r).height();t.height()>o&&t.height(o)},_listOptions:function(){return{pageLoadMode:"scrollBottom",indicateLoading:!1,noDataText:"",selectionMode:this.option("selectionMode"),selectedItemKeys:this.option("selectedItemKeys"),itemTemplate:this.option("itemTemplate"),onItemClick:(function(e){this.option("closeOnClick")&&this.option("opened",!1),this._itemClickAction(e)}).bind(this),tabIndex:-1,focusStateEnabled:this.option("focusStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),onItemRendered:this.option("onItemRendered"),_itemAttributes:{role:"menuitem"}}},_setListDataSource:function(){this._list&&this._list.option("dataSource",this._dataSource||this.option("items")),delete this._deferRendering},_getKeyboardListeners:function(){return this.callBase().concat([this._list])},_toggleVisibility:function(e){this.callBase(e),this._button.option("visible",e)},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"items":case"dataSource":this.option("deferRendering")&&!this.option("opened")?this._deferRendering=!0:(this._refreshDataSource(),this._setListDataSource());break;case"itemTemplate":this._list&&this._list.option(t,this._getTemplate(n));break;case"onItemClick":this._initItemClickAction();break;case"onButtonClick":this._buttonClickAction();break;case"buttonIcon":case"buttonText":case"buttonWidth":case"buttonHeight":case"buttonTemplate":this._button.option(m[t],n),this._renderPopup();break;case"popupWidth":case"popupHeight":case"popupMaxHeight":case"popupAutoResizeEnabled":this._popup.option(g[t],n);break;case"usePopover":case"menuWidget":case"useInkRipple":this._invalidate();break;case"focusStateEnabled":case"activeStateEnabled":this._list&&this._list.option(t,n),this.callBase(e);break;case"selectionMode":case"selectedItemKeys":case"onItemRendered":this._list&&this._list.option(t,n);break;case"opened":this._deferRendering&&(this._refreshDataSource(),this._setListDataSource()),this._toggleMenuVisibility(n);break;case"deferRendering":case"popupPosition":case"closeOnClick":break;case"container":this._popup&&this._popup.option(e.name,e.value);break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)}}).include(d);a("dxDropDownMenu",v),e.exports=v},"O/ux":function(e,t,n){"use strict";var i=r(n("cYys"));function r(e){return e&&e.__esModule?e:{default:e}}var o=r(n("5qrJ")).default.inherit({ctor:function(e,t){var n=this;this.editor=e,this.validator=t,this.validationRequestsCallbacks=(0,i.default)();var r=function(e){n.validationRequestsCallbacks.fire(e)};e.validationRequest.add(r),e.on("disposing",function(){e.validationRequest.remove(r)})},getValue:function(){return this.editor.option("value")},getCurrentValidationError:function(){return this.editor.option("validationError")},bypass:function(){return this.editor.option("disabled")},applyValidationResults:function(e){this.editor.option({validationErrors:e.brokenRules,validationStatus:e.status})},reset:function(){this.editor.reset()},focus:function(){this.editor.focus()}});e.exports=o},O1kn:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=(i=n("wj3C"))&&"object"==typeof i&&"default"in i?i.default:i;n("fSjL");var o,a=n("mrSG"),s=n("zVF4"),c=n("q/0M"),u=n("S+S0"),l=function(){function e(e,t,n,i){this.client=e,this.storage=t,this.storageCache=n,this.logger=i}return e.prototype.isCachedDataFresh=function(e,t){if(!t)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;var n=Date.now()-t,i=n<=e;return this.logger.debug("Config fetch cache check. Cache age millis: "+n+". Cache max age millis (minimumFetchIntervalMillis setting): "+e+". Is cache hit: "+i+"."),i},e.prototype.fetch=function(e){return a.__awaiter(this,void 0,void 0,function(){var t,n,i,r,o;return a.__generator(this,function(a){switch(a.label){case 0:return[4,Promise.all([this.storage.getLastSuccessfulFetchTimestampMillis(),this.storage.getLastSuccessfulFetchResponse()])];case 1:return t=a.sent(),n=t[0],(i=t[1])&&this.isCachedDataFresh(e.cacheMaxAgeMillis,n)?[2,i]:(e.eTag=i&&i.eTag,[4,this.client.fetch(e)]);case 2:return r=a.sent(),o=[this.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())],200===r.status&&o.push(this.storage.setLastSuccessfulFetchResponse(r)),[4,Promise.all(o)];case 3:return a.sent(),[2,r]}})})},e}(),d=((o={})["registration-window"]="Undefined window object. This SDK only supports usage in a browser environment.",o["registration-project-id"]="Undefined project identifier. Check Firebase app initialization.",o["registration-api-key"]="Undefined API key. Check Firebase app initialization.",o["registration-app-id"]="Undefined app identifier. Check Firebase app initialization.",o["storage-open"]="Error thrown when opening storage. Original error: {$originalErrorMessage}.",o["storage-get"]="Error thrown when reading from storage. Original error: {$originalErrorMessage}.",o["storage-set"]="Error thrown when writing to storage. Original error: {$originalErrorMessage}.",o["storage-delete"]="Error thrown when deleting from storage. Original error: {$originalErrorMessage}.",o["fetch-client-network"]="Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.",o["fetch-timeout"]='The config fetch request timed out. Configure timeout using "fetchTimeoutMillis" SDK setting.',o["fetch-throttle"]='The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',o["fetch-client-parse"]="Fetch client could not parse response. Original error: {$originalErrorMessage}.",o["fetch-status"]="Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.",o),h=new s.ErrorFactory("remoteconfig","Remote Config",d),f=function(){function e(e,t,n,i,r,o){this.firebaseInstallations=e,this.sdkVersion=t,this.namespace=n,this.projectId=i,this.apiKey=r,this.appId=o}return e.prototype.fetch=function(e){return a.__awaiter(this,void 0,void 0,function(){var t,n,i,r,o,s,c,u,l,d,f,p,g,m,v,_;return a.__generator(this,function(a){switch(a.label){case 0:return[4,Promise.all([this.firebaseInstallations.getId(),this.firebaseInstallations.getToken()])];case 1:t=a.sent(),n=window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com",i=n+"/v1/projects/"+this.projectId+"/namespaces/"+this.namespace+":fetch?key="+this.apiKey,r={sdk_version:this.sdkVersion,app_instance_id:t[0],app_instance_id_token:t[1],app_id:this.appId,language_code:(void 0===y&&(y=navigator),y.languages&&y.languages[0]||y.language)},o={method:"POST",headers:{"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":e.eTag||"*"},body:JSON.stringify(r)},s=fetch(i,o),c=new Promise(function(t,n){e.signal.addEventListener(function(){var e=new Error("The operation was aborted.");e.name="AbortError",n(e)})}),a.label=2;case 2:return a.trys.push([2,5,,6]),[4,Promise.race([s,c])];case 3:return a.sent(),[4,s];case 4:return u=a.sent(),[3,6];case 5:throw l=a.sent(),d="fetch-client-network","AbortError"===l.name&&(d="fetch-timeout"),h.create(d,{originalErrorMessage:l.message});case 6:if(f=u.status,p=u.headers.get("ETag")||void 0,200!==u.status)return[3,11];v=void 0,a.label=7;case 7:return a.trys.push([7,9,,10]),[4,u.json()];case 8:return v=a.sent(),[3,10];case 9:throw _=a.sent(),h.create("fetch-client-parse",{originalErrorMessage:_.message});case 10:g=v.entries,m=v.state,a.label=11;case 11:if("INSTANCE_STATE_UNSPECIFIED"===m?f=500:"NO_CHANGE"===m?f=304:"NO_TEMPLATE"!==m&&"EMPTY_CONFIG"!==m||(g={}),304!==f&&200!==f)throw h.create("fetch-status",{httpStatus:f});return[2,{status:f,eTag:p,config:g}]}var y})})},e}(),p=function(){function e(){this.listeners=[]}return e.prototype.addEventListener=function(e){this.listeners.push(e)},e.prototype.abort=function(){this.listeners.forEach(function(e){return e()})},e}(),g=["1","true","t","yes","y","on"],m=function(){function e(e,t){void 0===t&&(t=""),this._source=e,this._value=t}return e.prototype.asString=function(){return this._value},e.prototype.asBoolean=function(){return"static"!==this._source&&g.indexOf(this._value.toLowerCase())>=0},e.prototype.asNumber=function(){if("static"===this._source)return 0;var e=Number(this._value);return isNaN(e)&&(e=0),e},e.prototype.getSource=function(){return this._source},e}(),v=function(){function e(e,t,n,i,r){this.app=e,this._client=t,this._storageCache=n,this._storage=i,this._logger=r,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}return e.prototype.setLogLevel=function(e){switch(e){case"debug":this._logger.logLevel=c.LogLevel.DEBUG;break;case"silent":this._logger.logLevel=c.LogLevel.SILENT;break;default:this._logger.logLevel=c.LogLevel.ERROR}},Object.defineProperty(e.prototype,"fetchTimeMillis",{get:function(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastFetchStatus",{get:function(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"},enumerable:!0,configurable:!0}),e.prototype.activate=function(){return a.__awaiter(this,void 0,void 0,function(){var e,t,n;return a.__generator(this,function(i){switch(i.label){case 0:return[4,Promise.all([this._storage.getLastSuccessfulFetchResponse(),this._storage.getActiveConfigEtag()])];case 1:return e=i.sent(),n=e[1],(t=e[0])&&t.config&&t.eTag&&t.eTag!==n?[4,Promise.all([this._storageCache.setActiveConfig(t.config),this._storage.setActiveConfigEtag(t.eTag)])]:[2,!1];case 2:return i.sent(),[2,!0]}})})},e.prototype.ensureInitialized=function(){var e=this;return this._initializePromise||(this._initializePromise=this._storageCache.loadFromStorage().then(function(){e._isInitializationComplete=!0})),this._initializePromise},e.prototype.fetch=function(){return a.__awaiter(this,void 0,void 0,function(){var e,t,n,i=this;return a.__generator(this,function(r){switch(r.label){case 0:e=new p,setTimeout(function(){return a.__awaiter(i,void 0,void 0,function(){return a.__generator(this,function(t){return e.abort(),[2]})})},this.settings.fetchTimeoutMillis),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this._client.fetch({cacheMaxAgeMillis:this.settings.minimumFetchIntervalMillis,signal:e})];case 2:return r.sent(),[4,this._storageCache.setLastFetchStatus("success")];case 3:return r.sent(),[3,6];case 4:return t=r.sent(),n=(o=t)instanceof s.FirebaseError&&-1!==o.code.indexOf("fetch-throttle")?"throttle":"failure",[4,this._storageCache.setLastFetchStatus(n)];case 5:throw r.sent(),t;case 6:return[2]}var o})})},e.prototype.fetchAndActivate=function(){return a.__awaiter(this,void 0,void 0,function(){return a.__generator(this,function(e){switch(e.label){case 0:return[4,this.fetch()];case 1:return e.sent(),[2,this.activate()]}})})},e.prototype.getAll=function(){var e,t,n=this;return(e=this._storageCache.getActiveConfig(),t=this.defaultConfig,void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(a.__assign(a.__assign({},e),t))).reduce(function(e,t){return e[t]=n.getValue(t),e},{})},e.prototype.getBoolean=function(e){return this.getValue(e).asBoolean()},e.prototype.getNumber=function(e){return this.getValue(e).asNumber()},e.prototype.getString=function(e){return this.getValue(e).asString()},e.prototype.getValue=function(e){this._isInitializationComplete||this._logger.debug('A value was requested for key "'+e+'" before SDK initialization completed. Await on ensureInitialized if the intent was to get a previously activated value.');var t=this._storageCache.getActiveConfig();return t&&void 0!==t[e]?new m("remote",t[e]):this.defaultConfig&&void 0!==this.defaultConfig[e]?new m("default",String(this.defaultConfig[e])):(this._logger.debug('Returning static value for key "'+e+'". Define a default or remote value if this is unintentional.'),new m("static"))},e}();function _(e,t){var n=e.target.error||void 0;return h.create(t,{originalErrorMessage:n&&n.message})}var y="app_namespace_store",b=function(){function e(e,t,n,i){void 0===i&&(i=new Promise(function(e,t){var n=indexedDB.open("firebase_remote_config",1);n.onerror=function(e){t(_(e,"storage-open"))},n.onsuccess=function(t){e(t.target.result)},n.onupgradeneeded=function(e){var t=e.target.result;switch(e.oldVersion){case 0:t.createObjectStore(y,{keyPath:"compositeKey"})}}})),this.appId=e,this.appName=t,this.namespace=n,this.openDbPromise=i}return e.prototype.getLastFetchStatus=function(){return this.get("last_fetch_status")},e.prototype.setLastFetchStatus=function(e){return this.set("last_fetch_status",e)},e.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.get("last_successful_fetch_timestamp_millis")},e.prototype.setLastSuccessfulFetchTimestampMillis=function(e){return this.set("last_successful_fetch_timestamp_millis",e)},e.prototype.getLastSuccessfulFetchResponse=function(){return this.get("last_successful_fetch_response")},e.prototype.setLastSuccessfulFetchResponse=function(e){return this.set("last_successful_fetch_response",e)},e.prototype.getActiveConfig=function(){return this.get("active_config")},e.prototype.setActiveConfig=function(e){return this.set("active_config",e)},e.prototype.getActiveConfigEtag=function(){return this.get("active_config_etag")},e.prototype.setActiveConfigEtag=function(e){return this.set("active_config_etag",e)},e.prototype.getThrottleMetadata=function(){return this.get("throttle_metadata")},e.prototype.setThrottleMetadata=function(e){return this.set("throttle_metadata",e)},e.prototype.deleteThrottleMetadata=function(){return this.delete("throttle_metadata")},e.prototype.get=function(e){return a.__awaiter(this,void 0,void 0,function(){var t,n=this;return a.__generator(this,function(i){switch(i.label){case 0:return[4,this.openDbPromise];case 1:return t=i.sent(),[2,new Promise(function(i,r){var o=t.transaction([y],"readonly").objectStore(y),a=n.createCompositeKey(e);try{var s=o.get(a);s.onerror=function(e){r(_(e,"storage-get"))},s.onsuccess=function(e){var t=e.target.result;i(t?t.value:void 0)}}catch(c){r(h.create("storage-get",{originalErrorMessage:c&&c.message}))}})]}})})},e.prototype.set=function(e,t){return a.__awaiter(this,void 0,void 0,function(){var n,i=this;return a.__generator(this,function(r){switch(r.label){case 0:return[4,this.openDbPromise];case 1:return n=r.sent(),[2,new Promise(function(r,o){var a=n.transaction([y],"readwrite").objectStore(y),s=i.createCompositeKey(e);try{var c=a.put({compositeKey:s,value:t});c.onerror=function(e){o(_(e,"storage-set"))},c.onsuccess=function(){r()}}catch(u){o(h.create("storage-set",{originalErrorMessage:u&&u.message}))}})]}})})},e.prototype.delete=function(e){return a.__awaiter(this,void 0,void 0,function(){var t,n=this;return a.__generator(this,function(i){switch(i.label){case 0:return[4,this.openDbPromise];case 1:return t=i.sent(),[2,new Promise(function(i,r){var o=t.transaction([y],"readwrite").objectStore(y),a=n.createCompositeKey(e);try{var s=o.delete(a);s.onerror=function(e){r(_(e,"storage-delete"))},s.onsuccess=function(){i()}}catch(c){r(h.create("storage-delete",{originalErrorMessage:c&&c.message}))}})]}})})},e.prototype.createCompositeKey=function(e){return[this.appId,this.appName,this.namespace,e].join()},e}(),w=function(){function e(e){this.storage=e}return e.prototype.getLastFetchStatus=function(){return this.lastFetchStatus},e.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.lastSuccessfulFetchTimestampMillis},e.prototype.getActiveConfig=function(){return this.activeConfig},e.prototype.loadFromStorage=function(){return a.__awaiter(this,void 0,void 0,function(){var e,t,n,i,r,o;return a.__generator(this,function(a){switch(a.label){case 0:return e=this.storage.getLastFetchStatus(),t=this.storage.getLastSuccessfulFetchTimestampMillis(),n=this.storage.getActiveConfig(),[4,e];case 1:return(i=a.sent())&&(this.lastFetchStatus=i),[4,t];case 2:return(r=a.sent())&&(this.lastSuccessfulFetchTimestampMillis=r),[4,n];case 3:return(o=a.sent())&&(this.activeConfig=o),[2]}})})},e.prototype.setLastFetchStatus=function(e){return this.lastFetchStatus=e,this.storage.setLastFetchStatus(e)},e.prototype.setLastSuccessfulFetchTimestampMillis=function(e){return this.lastSuccessfulFetchTimestampMillis=e,this.storage.setLastSuccessfulFetchTimestampMillis(e)},e.prototype.setActiveConfig=function(e){return this.activeConfig=e,this.storage.setActiveConfig(e)},e}();function C(e){var t=1e3*Math.pow(2,e),n=Math.round(.5*t*(Math.random()-.5)*2);return Math.min(144e5,t+n)}function O(e,t){return new Promise(function(n,i){var r=Math.max(t-Date.now(),0),o=setTimeout(n,r);e.addEventListener(function(){clearTimeout(o),i(h.create("fetch-throttle",{throttleEndTimeMillis:t}))})})}var S=function(){function e(e,t){this.client=e,this.storage=t}return e.prototype.fetch=function(e){return a.__awaiter(this,void 0,void 0,function(){var t;return a.__generator(this,function(n){switch(n.label){case 0:return[4,this.storage.getThrottleMetadata()];case 1:return t=n.sent()||{backoffCount:0,throttleEndTimeMillis:Date.now()},[2,this.attemptFetch(e,t)]}})})},e.prototype.attemptFetch=function(e,t){var n=t.throttleEndTimeMillis,i=t.backoffCount;return a.__awaiter(this,void 0,void 0,function(){var t,r,o;return a.__generator(this,function(a){switch(a.label){case 0:return[4,O(e.signal,n)];case 1:a.sent(),a.label=2;case 2:return a.trys.push([2,5,,7]),[4,this.client.fetch(e)];case 3:return t=a.sent(),[4,this.storage.deleteThrottleMetadata()];case 4:return a.sent(),[2,t];case 5:if(!function(e){if(!(e instanceof s.FirebaseError))return!1;var t=Number(e.httpStatus);return 429===t||500===t||503===t||504===t}(r=a.sent()))throw r;return o={throttleEndTimeMillis:Date.now()+C(i),backoffCount:i+1},[4,this.storage.setThrottleMetadata(o)];case 6:return a.sent(),[2,this.attemptFetch(e,o)];case 7:return[2]}})})},e}(),k="@firebase/remote-config";function x(e){e.INTERNAL.registerComponent(new u.Component("remoteConfig",function(t,n){var i=t.getProvider("app").getImmediate(),r=t.getProvider("installations").getImmediate();if("undefined"==typeof window)throw h.create("registration-window");var o=i.options,a=o.projectId,s=o.apiKey,u=o.appId;if(!a)throw h.create("registration-project-id");if(!s)throw h.create("registration-api-key");if(!u)throw h.create("registration-app-id");var d=new b(u,i.name,n=n||"firebase"),p=new w(d),g=new c.Logger(k);g.logLevel=c.LogLevel.ERROR;var m=new f(r,e.SDK_VERSION,n,a,s,u),_=new S(m,d),y=new l(_,d,p,g),C=new v(i,y,p,d,g);return C.ensureInitialized(),C},"PUBLIC").setMultipleInstances(!0)),e.registerVersion(k,"0.1.9")}x(r),t.registerRemoteConfig=x},O2kO:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i=n("yR3O");function r(e,t){return!0===Object(i.a)(e,t)?Object(i.b)(e.constructor.getPluginRef())[t]:null}function o(e,t,n){!0===Object(i.a)(e,t)&&(Object(i.b)(e.constructor.getPluginRef())[t]=n)}},OC8m:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("c7TG"),r=n("JhZU"),o=n("fXoL"),a=function(){function e(e){this.modalController=e,this.notifications=[],this.totalNotificationsCount=0,this.unreadNotificationsCount=0,this.readNotificationsCount=0,this.intervalForShowUnreadNotificationInMinutes=5,this.intervalForUnreadNotification=null,this.canShowNotification=!0,this.audio=new Audio("./assets/mp3/alarm.wav")}return e.prototype.checkForUnreadNotifications=function(){var e=this;null===this.intervalForUnreadNotification&&(this.intervalForUnreadNotification=setInterval(function(){var t=e.notifications.filter(function(e){return e.unread});t.length&&t.forEach(function(t){t.minimized&&e.canShowNotification&&e.showNotification(t,!1)})},60*this.intervalForShowUnreadNotificationInMinutes*1e3))},e.prototype.add=function(e){var t=this.notifications.find(function(t){return t.id===e.id});t||(this.notifications.unshift(e),this.calculateCounts()),this.canShowNotification&&this.showNotification(t||e,!0),console.log("notification received",e)},e.prototype.delete=function(e){var t=this.notifications.indexOf(e);t>-1&&(this.notifications.splice(t,1),this.calculateCounts())},e.prototype.calculateCounts=function(){this.totalNotificationsCount=this.notifications.length,this.unreadNotificationsCount=this.notifications.filter(function(e){return e.unread}).length,this.readNotificationsCount=this.totalNotificationsCount-this.unreadNotificationsCount},e.prototype.resetNotifications=function(){this.notifications=[],this.calculateCounts(),this.canShowNotification=!0},e.prototype.showNotification=function(e,t){return n=this,void 0,o=function(){var n,i;return function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]",n,""):r.push(" />"),r.join("")}}},"Oa+a":function(e,t,n){"use strict";n.d(t,"a",function(){return E});var i=n("c7TG"),r=n("aiMf"),o=n("OC8m"),a=n("ptfe"),s=n("7/nY"),c=n("mjQz"),u=n("D7jP"),l=n("Xzt5"),d=n("fXoL"),h=function(){return(h=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0?d.Ac(5,b):d.Ac(6,w)),d.Ob(6),d.Tc("NBAG: ",i.barcode,""),d.Ob(4),d.Tc(" Status: ",i.status||"open"," "),d.Ob(3),d.Sc(i.bags.length),d.Ob(1),d.wc("ngIf",!i.bags.length&&i.status!==r.statuses.closed)}}function O(e,t){if(1&e&&(d.gc(0,"ion-list",null,16),d.Pc(2,C,16,7,"ion-item-sliding",17),d.fc()),2&e){var n=d.qc();d.Ob(2),d.wc("ngForOf",n.nbags)}}function S(e,t){if(1&e){var n=d.hc();d.gc(0,"ion-item-options",24),d.gc(1,"ion-item-option",25),d.nc("click",function(){d.Ic(n);var e=d.qc(),t=e.$implicit,i=e.index;return d.qc(2).removeBag(t,i)}),d.bc(2,"ion-icon",26),d.Rc(3," Delete "),d.fc(),d.fc()}}function k(e,t){if(1&e&&(d.gc(0,"ion-item-sliding"),d.bc(1,"bag-view",27),d.Pc(2,S,4,0,"ion-item-options",23),d.fc()),2&e){var n=t.$implicit,i=d.qc(2);d.Ob(1),d.wc("bag",n),d.Ob(1),d.wc("ngIf",i.nbag.status!==i.statuses.closed)}}function x(e,t){if(1&e&&(d.gc(0,"ion-list",null,16),d.Pc(2,k,3,2,"ion-item-sliding",17),d.fc()),2&e){var n=d.qc();d.Ob(2),d.wc("ngForOf",n.cbags)}}function T(e,t){1&e&&(d.gc(0,"ion-label",28),d.Rc(1," No Nested Bags!"),d.bc(2,"br"),d.Rc(3," Press button on top right to add new nested bag "),d.fc())}var E=function(){function e(e,t,n,i){this.modalController=e,this.taskManagerService=t,this.tasksService=n,this.notificationService=i,this.menuItems=[],this.nbags=[],this.cbags=[],this.shownbags=!0,this.showcbags=!1,this.isSearchbarOpened=!1,this.statuses=c.e}return e.prototype.ngOnInit=function(){return f(this,void 0,void 0,function(){return p(this,function(e){return this.shownbags=!0,this.task=this.taskManagerService.task,this.initMenuItems(),this.getNBags(),[2]})})},e.prototype.getNBags=function(){return f(this,void 0,void 0,function(){var e;return p(this,function(t){switch(t.label){case 0:return e=this,[4,this.tasksService.getNbags()];case 1:return e.nbags=t.sent(),[2]}})})},e.prototype.dismiss=function(){this.slidingList.closeSlidingItems(),this.modalController.dismiss()},e.prototype.loadCbagView=function(e){return f(this,void 0,void 0,function(){var t;return p(this,function(n){switch(n.label){case 0:return this.nbag=e,t=this,[4,this.tasksService.getBags()];case 1:return t.cbags=n.sent().filter(function(t){return t.nBagBarcode===e.barcode}),this.showcbags=!0,this.shownbags=!1,[2]}})})},e.prototype.loadNbagsView=function(){this.showcbags=!1,this.shownbags=!0},e.prototype.deleteNbag=function(e,t){return f(this,void 0,void 0,function(){return p(this,function(n){switch(n.label){case 0:return[4,this.tasksService.deleteNbag(e.barcode)];case 1:return n.sent(),[4,this.slidingList.closeSlidingItems()];case 2:return n.sent(),this.nbags.splice(t,1),[2]}})})},e.prototype.removeBag=function(e,t){return f(this,void 0,void 0,function(){return p(this,function(n){switch(n.label){case 0:return[4,this.tasksService.removeBagFromNbag(this.nbag.barcode,e.barcode)];case 1:return n.sent(),[4,this.slidingList.closeSlidingItems()];case 2:return n.sent(),this.cbags.splice(t,1),this.getNBags(),[2]}})})},e.prototype.dataReceived=function(e){return f(this,void 0,void 0,function(){return p(this,function(t){switch(t.label){case 0:return[4,this.tasksService.addNestedBag(e.nBag.barcode,e.cBags.map(function(e){return e.barcode}),this.task._id)];case 1:return t.sent(),this.cbags=e.cBags,this.nbag=e.nBag,this.nbags.push(this.nbag),[2]}})})},e.prototype.addCbag=function(){return f(this,void 0,void 0,function(){var e,t,n=this;return p(this,function(i){switch(i.label){case 0:return[4,this.modalController.create({component:s.a,componentProps:new l.a({nBag:h({},this.nbag)})})];case 1:return[4,(e=i.sent()).present()];case 2:return i.sent(),[4,e.onDidDismiss()];case 3:return(t=i.sent().data)?[4,this.tasksService.addNestedBag(t.nBag.barcode,t.cBags.map(function(e){return e.barcode}),this.task._id)]:[3,5];case 4:i.sent(),this.cbags=t.cBags,this.nbag=t.nBag,this.nbags=this.nbags.map(function(e){return e.barcode===n.nbag.barcode&&(e=n.nbag),e}),i.label=5;case 5:return[2]}})})},e.prototype.initMenuItems=function(){this.menuItems=[{name:"Add Nested Bag",icon:"./assets/icon/add-nbag.svg",eventName:"add-nbag",parameters:new l.a,dataHandler:this.dataReceived.bind(this)}]},e.prototype.viewComments=function(e){return f(this,void 0,void 0,function(){return p(this,function(t){switch(t.label){case 0:return[4,this.modalController.create({component:u.a,componentProps:{bag:e,bagType:"nbags"}})];case 1:return[4,t.sent().present()];case 2:return[2,t.sent()]}})})},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(d.ac(i.Gb),d.ac(r.a),d.ac(a.a),d.ac(o.a))},e.\u0275cmp=d.Ub({type:e,selectors:[["app-task-nbag"]],viewQuery:function(e,t){var n;1&e&&d.Xc(g,!0),2&e&&d.Ec(n=d.oc())&&(t.slidingList=n.first)},decls:10,vars:6,consts:[["title","Nested Bags","hideCloseButton","true",3,"menuItems","onDismiss"],["showCancelButton","true","autocomplete","","placeholder","Search for stops",3,"ngModel","ngModelChange","ionCancel","ionChange",4,"ngIf"],["color","secondary",4,"ngIf"],[4,"ngIf"],["class","message",4,"ngIf"],["showCancelButton","true","autocomplete","","placeholder","Search for stops",3,"ngModel","ngModelChange","ionCancel","ionChange"],["color","secondary"],["size","2"],["type","block","color","primary",3,"click"],["name","return-left"],["size","1"],["src","./assets/icon/add-nbag.svg",2,"width","25px","height","25px"],[2,"padding","0"],["size","1",3,"click",4,"ngIf"],["size","1",3,"click"],["name","add-circle",2,"width","25px","height","25px"],["slidingList",""],[4,"ngFor","ngForOf"],[3,"ngStyle","click"],["size","2",1,"ion-align-self-center"],["src","./assets/icon/add-nbag.svg",1,"slider-icon"],[1,"no-padding"],["name","checkmark-circle-outline"],["side","end",4,"ngIf"],["side","end"],["color","danger","expandable","",3,"click"],["name","trash",1,"slider-icon"],[3,"bag"],[1,"message"]],template:function(e,t){1&e&&(d.gc(0,"base-modal",0),d.nc("onDismiss",function(){return t.dismiss()}),d.bc(1,"base-modal-header"),d.gc(2,"base-modal-content"),d.bc(3,"route-card"),d.Pc(4,m,1,1,"ion-searchbar",1),d.Pc(5,_,10,2,"ion-item",2),d.gc(6,"ion-content"),d.Pc(7,O,3,1,"ion-list",3),d.Pc(8,x,3,1,"ion-list",3),d.Pc(9,T,4,0,"ion-label",4),d.fc(),d.fc(),d.fc()),2&e&&(d.wc("menuItems",t.menuItems),d.Ob(4),d.wc("ngIf",t.isSearchbarOpened),d.Ob(1),d.wc("ngIf",t.showcbags),d.Ob(2),d.wc("ngIf",t.shownbags),d.Ob(1),d.wc("ngIf",t.showcbags),d.Ob(1),d.wc("ngIf",0===t.nbags.length))},styles:[".slider-icon[_ngcontent-%COMP%]{padding-right:5px;width:35px;height:35px}.no-padding[_ngcontent-%COMP%]{padding:0}"]}),e}()},OaJ3:function(e,t,n){"use strict";var i=n("XpgS").inArray,r=n("cGv3"),o=r.hasWindow()?r.getWindow().WeakMap:WeakMap;o||(o=function(){var e=[],t=[];this.set=function(n,r){var o=i(n,e);-1===o?(e.push(n),t.push(r)):t[o]=r},this.get=function(n){var r=i(n,e);if(-1!==r)return t[r]},this.has=function(t){return-1!==i(t,e)},this.delete=function(n){var r=i(n,e);-1!==r&&(e.splice(r,1),t.splice(r,1))}}),e.exports=o},Oaa7:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},Ob0Z:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function i(e,t,n,i){var r="";if(t)switch(n){case"s":r="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":r="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":r="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":r="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":r="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":r="%d \u0924\u093e\u0938";break;case"d":r="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":r="%d \u0926\u093f\u0935\u0938";break;case"M":r="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":r="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":r="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":r="%d \u0935\u0930\u094d\u0937\u0947"}else switch(n){case"s":r="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":r="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":r="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":r="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":r="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":r="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":r="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":r="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":r="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":r="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":r="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":r="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return r.replace(/%d/i,e)}e.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u092a\u0939\u093e\u091f\u0947"===t||"\u0938\u0915\u093e\u0933\u0940"===t?e:"\u0926\u0941\u092a\u093e\u0930\u0940"===t||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===t||"\u0930\u093e\u0924\u094d\u0930\u0940"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"\u092a\u0939\u093e\u091f\u0947":e<12?"\u0938\u0915\u093e\u0933\u0940":e<17?"\u0926\u0941\u092a\u093e\u0930\u0940":e<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(n("wd/R"))},OdII:function(e,t,n){"use strict";var i=n("+12O").DataSource,r=n("1LL4").extend,o=n("8Cge").normalizeDataSourceOptions;e.exports={postCtor:function(){this.on("disposing",(function(){this._disposeDataSource()}).bind(this))},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var e,t,n="_getSpecificDataSourceOption"in this?this._getSpecificDataSourceOption():this.option("dataSource");this._disposeDataSource(),n&&(n instanceof i?(this._isSharedDataSource=!0,this._dataSource=n):(e="_dataSourceOptions"in this?this._dataSourceOptions():{},t=this._dataSourceType?this._dataSourceType():i,n=o(n,{fromUrlLoadMode:"_dataSourceFromUrlLoadMode"in this&&this._dataSourceFromUrlLoadMode()}),this._dataSource=new t(r(!0,{},e,n))),"_normalizeDataSource"in this&&(this._dataSource=this._normalizeDataSource(this._dataSource)),this._addDataSourceHandlers())},_addDataSourceHandlers:function(){"_dataSourceChangedHandler"in this&&this._addDataSourceChangeHandler(),"_dataSourceLoadErrorHandler"in this&&this._addDataSourceLoadErrorHandler(),"_dataSourceLoadingChangedHandler"in this&&this._addDataSourceLoadingChangedHandler(),this._addReadyWatcher()},_addReadyWatcher:function(){this._dataSource.on("loadingChanged",(function(e){this._ready&&this._ready(!e)}).bind(this))},_addDataSourceChangeHandler:function(){var e=this._dataSource;this._proxiedDataSourceChangedHandler=(function(t){this._dataSourceChangedHandler(e.items(),t)}).bind(this),e.on("changed",this._proxiedDataSourceChangedHandler)},_addDataSourceLoadErrorHandler:function(){this._proxiedDataSourceLoadErrorHandler=this._dataSourceLoadErrorHandler.bind(this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)},_addDataSourceLoadingChangedHandler:function(){this._proxiedDataSourceLoadingChangedHandler=this._dataSourceLoadingChangedHandler.bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)},_loadDataSource:function(){if(this._dataSource){var e=this._dataSource;e.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():e.load()}},_loadSingle:function(e,t){return e="this"===e?this._dataSource.key()||"this":e,this._dataSource.loadSingle(e,t)},_isLastPage:function(){return!this._dataSource||this._dataSource.isLastPage()||!this._dataSource._pageSize},_isDataSourceLoading:function(){return this._dataSource&&this._dataSource.isLoading()},_disposeDataSource:function(){this._dataSource&&(this._isSharedDataSource?(delete this._isSharedDataSource,this._proxiedDataSourceChangedHandler&&this._dataSource.off("changed",this._proxiedDataSourceChangedHandler),this._proxiedDataSourceLoadErrorHandler&&this._dataSource.off("loadError",this._proxiedDataSourceLoadErrorHandler),this._proxiedDataSourceLoadingChangedHandler&&this._dataSource.off("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)):this._dataSource.dispose(),delete this._dataSource,delete this._proxiedDataSourceChangedHandler,delete this._proxiedDataSourceLoadErrorHandler,delete this._proxiedDataSourceLoadingChangedHandler)},getDataSource:function(){return this._dataSource||null}}},OjkT:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u093f"===t?e<4?e:e+12:"\u092c\u093f\u0939\u093e\u0928"===t?e:"\u0926\u093f\u0909\u0901\u0938\u094b"===t?e>=10?e:e+12:"\u0938\u093e\u0901\u091d"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"\u0930\u093e\u0924\u093f":e<12?"\u092c\u093f\u0939\u093e\u0928":e<16?"\u0926\u093f\u0909\u0901\u0938\u094b":e<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(n("wd/R"))},OmwH:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n("wd/R"))},Ovs1:function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=f(n("FKN7")),o=f(n("jeLr")),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=h();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n("GCD8")),s=n("KAnu"),c=n("zl3R"),u=f(n("LdFP")),l=f(n("5qrJ")),d=f(n("Ait/"));function h(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return h=function(){return e},e}function f(e){return e&&e.__esModule?e:{default:e}}var p="vertical",g="horizontal",m=l.default.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.$element(),this._$container=e._$container,this._$content=e._$content,this._direction=e.option("direction"),this._useSimulatedScrollbar=e.option("useSimulatedScrollbar"),this._showScrollbar=e.option("showScrollbar"),this.option=e.option.bind(e),this._createActionByOption=e._createActionByOption.bind(e),this._isLocked=e._isLocked.bind(e),this._isDirection=e._isDirection.bind(e),this._allowedDirection=e._allowedDirection.bind(e)},render:function(){this._renderPushBackOffset();var e=u.default.real().platform;this._$element.addClass("dx-scrollable-native").addClass("dx-scrollable-native-"+e).toggleClass("dx-scrollable-scrollbars-hidden",!this._showScrollbar),this._showScrollbar&&this._useSimulatedScrollbar&&this._renderScrollbars()},updateBounds:s.noop,_renderPushBackOffset:function(){var e=this.option("pushBackValue");(e||this._component._lastPushBackValue)&&(this._$content.css({paddingTop:e,paddingBottom:e}),this._component._lastPushBackValue=e)},_renderScrollbars:function(){this._scrollbars={},this._hideScrollbarTimeout=0,this._$element.addClass("dx-scrollable-scrollbar-simulated"),this._renderScrollbar(p),this._renderScrollbar(g)},_renderScrollbar:function(e){this._isDirection(e)&&(this._scrollbars[e]=new d.default((0,r.default)("
").appendTo(this._$element),{direction:e,expandable:this._component.option("scrollByThumb")}))},handleInit:s.noop,handleStart:function(){this._disablePushBack=!0},handleMove:function(e){this._isLocked()?e.cancel=!0:this._allowedDirection()&&(e.originalEvent.isScrollingEvent=!0)},handleEnd:function(){this._disablePushBack=!1},handleCancel:s.noop,handleStop:s.noop,_eachScrollbar:function(e){e=e.bind(this),(0,c.each)(this._scrollbars||{},function(t,n){e(n,t)})},createActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._updateAction=this._createActionByOption("onUpdated")},_createActionArgs:function(){var e=this.location(),t=this._$container.get(0);return{event:this._eventForUserAction,scrollOffset:{top:-e.top,left:-e.left},reachedLeft:this._isDirection(g)?e.left>=0:void 0,reachedRight:this._isDirection(g)?Math.abs(e.left)>=t.scrollWidth-t.clientWidth:void 0,reachedTop:this._isDirection(p)?e.top>=0:void 0,reachedBottom:this._isDirection(p)?Math.abs(e.top)>=t.scrollHeight-t.clientHeight-2*this.option("pushBackValue"):void 0}},handleScroll:function(e){this._isScrollLocationChanged()?(this._eventForUserAction=e,this._moveScrollbars(),this._scrollAction(this._createActionArgs()),this._lastLocation=this.location(),this._pushBackFromBoundary()):e.stopImmediatePropagation()},_pushBackFromBoundary:function(){var e=this.option("pushBackValue");if(e&&!this._disablePushBack){var t=this._containerSize.height-this._contentSize.height,n=this._$container.scrollTop();n?t+n-2*e||this._$container.scrollTop(e-t):this._$container.scrollTop(e)}},_isScrollLocationChanged:function(){var e=this.location(),t=this._lastLocation||{};return t.top!==e.top||t.left!==e.left},_moveScrollbars:function(){this._eachScrollbar(function(e){e.moveTo(this.location()),e.option("visible",!0)}),this._hideScrollbars()},_hideScrollbars:function(){clearTimeout(this._hideScrollbarTimeout),this._hideScrollbarTimeout=setTimeout((function(){this._eachScrollbar(function(e){e.option("visible",!1)})}).bind(this),500)},location:function(){return{left:-this._$container.scrollLeft(),top:this.option("pushBackValue")-this._$container.scrollTop()}},disabledChanged:s.noop,update:function(){this._update(),this._updateAction(this._createActionArgs())},_update:function(){this._updateDimensions(),this._updateScrollbars()},_updateDimensions:function(){this._containerSize={height:this._$container.height(),width:this._$container.width()},this._componentContentSize={height:this._component.$content().height(),width:this._component.$content().width()},this._contentSize={height:this._$content.height(),width:this._$content.width()},this._pushBackFromBoundary()},_updateScrollbars:function(){this._eachScrollbar(function(e,t){var n=t===p?"height":"width";e.option({containerSize:this._containerSize[n],contentSize:this._componentContentSize[n]}),e.update()})},_allowedDirections:function(){return{vertical:this._isDirection(p)&&this._contentSize.height>this._containerSize.height,horizontal:this._isDirection(g)&&this._contentSize.width>this._containerSize.width}},dispose:function(){var e=this._$element.get(0).className,t=new RegExp("dx-scrollable-native\\S*","g");t.test(e)&&this._$element.removeClass(e.match(t).join(" ")),o.default.off(this._$element,".dxNativeScrollable"),o.default.off(this._$container,".dxNativeScrollable"),this._removeScrollbars(),clearTimeout(this._hideScrollbarTimeout)},_removeScrollbars:function(){this._eachScrollbar(function(e){e.$element().remove()})},scrollBy:function(e){var t=this.location();this._$container.scrollTop(Math.round(-t.top-e.top+this.option("pushBackValue"))),this._$container.scrollLeft(Math.round(-t.left-e.left))},validate:function(e){return!(this.option("disabled")||a.isDxMouseWheelEvent(e)&&this._isScrolledInMaxDirection(e)||!this._allowedDirection())},_isScrolledInMaxDirection:function(e){var t=this._$container.get(0);return e.delta>0?e.shiftKey?!t.scrollLeft:!t.scrollTop:e.shiftKey?t.clientWidth+t.scrollLeft>=t.scrollWidth:t.clientHeight+t.scrollTop>=t.scrollHeight},getDirection:function(){return this._allowedDirection()},verticalOffset:function(){return this.option("pushBackValue")}});e.exports=m},Ow8E:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("fXoL"),r=n("ofXK"),o=n("c7TG");function a(e,t){if(1&e){var n=i.hc();i.gc(0,"ion-segment-button",3),i.nc("click",function(){i.Ic(n);var e=t.index,r=t.$implicit;return i.qc(2).handleFilterSelect(e,r.value)}),i.gc(1,"ion-label"),i.bc(2,"ion-icon",4),i.Rc(3),i.fc(),i.fc()}if(2&e){var r=t.$implicit;i.wc("value",r.value),i.Ob(2),i.wc("name",r.icon),i.Ob(1),i.Tc(" ",r.name," ")}}function s(e,t){if(1&e&&(i.gc(0,"ion-segment",1),i.Pc(1,a,4,3,"ion-segment-button",2),i.fc()),2&e){var n=i.qc();i.Ob(1),i.wc("ngForOf",n.filters.mainFilters)}}var c=function(){function e(){this.filterSelected=new i.s}return e.prototype.ngOnInit=function(){},e.prototype.handleFilterSelect=function(e,t){console.log("filter selected"),this.filterSelected.emit({filter:e,value:t})},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Ub({type:e,selectors:[["app-task-filters"]],inputs:{filters:"filters"},outputs:{filterSelected:"filterSelected"},decls:1,vars:1,consts:[["id","mainFilters",4,"ngIf"],["id","mainFilters"],["checked","",3,"value","click",4,"ngFor","ngForOf"],["checked","",3,"value","click"],[3,"name"]],template:function(e,t){1&e&&i.Pc(0,s,2,1,"ion-segment",0),2&e&&i.wc("ngIf",t.filters.visible)},directives:[r.t,o.kb,o.Pb,r.s,o.lb,o.M,o.B],styles:["ion-segment[_ngcontent-%COMP%]{margin-top:3px}ion-segment-button[_ngcontent-%COMP%]{font-size:12px}"]}),e}()},Oxv6:function(e,t,n){!function(e){"use strict";var t={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};e.defineLocale("tg",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u041f\u0430\u0433\u043e\u04b3 \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0448\u0430\u0431"===t?e<4?e:e+12:"\u0441\u0443\u0431\u04b3"===t?e:"\u0440\u04ef\u0437"===t?e>=11?e:e+12:"\u0431\u0435\u0433\u043e\u04b3"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0448\u0430\u0431":e<11?"\u0441\u0443\u0431\u04b3":e<16?"\u0440\u04ef\u0437":e<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},P3ZC:function(e,t,n){"use strict";n.d(t,"a",function(){return V});var i,r=n("c7TG"),o=n("aiMf"),a=n("ptfe"),s=n("jW8C"),c=n("FbS+"),u=n("OC8m"),l=n("1efO"),d=n("mjQz"),h=n("Xzt5"),f=n("pptJ"),p=n("JvtB"),g=n("LvDl"),m=n("fXoL"),v=n("tk/3"),_=(i=function(e,t){return(i=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(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},b=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]1?this.stop.parents[1].split("_")[1]:"",this.delivery),[2]}})})},t.prototype.lookupStop=function(e){var t=this;e&&(this.errorMessage=null,this.loader=!0,this.customerSearchQuery=null,this.hideError(),this.staticsService.getAddressFromLocationBarcode("locations",[{key:"address",value:"true"}],e).subscribe(function(n){return y(t,void 0,void 0,function(){var t=this;return b(this,function(i){return n&&(this.addresses=n.filter(function(t){return t.locations.find(function(t){return t.barcode===e&&t.isActive})}),this.loader=!1,1===this.addresses.length&&(this.getAddress(this.addresses[0]),setTimeout(function(){t.selectAddressList.value=t.addresses[0]},0))),[2]})})},function(e){t.stop=null,t.loader=!1,t.errorMessage="No address available"}))},t.prototype.getAddress=function(e){var t=this.stopList.findIndex(function(t){return t.properties.addressId.externalId===e.externalId&&t.status!==d.e.completed&&void 0!==e.externalId});this.loader=!1,t>-1?this.goToStopAlert(this.stopList[t]):(this.stop=e,this.stop.kind="PICKUP")},t.prototype.hideError=function(){this.customers=[],this.stops=[],this.customer=null},t.prototype.lookupCustomer=function(e){var t=this;e&&(this.errorMessage=null,this.barcode=null,this.hideError(),this.loader=!0,this.staticsService.getStaticByTypeAndParameter("customer",[{key:"match",value:e}]).subscribe(function(e){t.loader=!1,e.data.length>0&&(t.customer=null,t.stop=null,t.customers=[],e.data.forEach(function(e){e.children.some(function(e){return e.kind!==d.f.HUB&&e.kind!==d.f.AIRPORT&&e.kind!==d.f.AIRPRT&&e.kind!==d.f.TRANSFER&&e.kind!==d.f.TRNSFR})&&t.customers.push(e)}),t.customers.length||(t.errorMessage="No Customer Found"))},function(e){t.loader=!1,t.stop=null,t.errorMessage="No Customer Found"}))},t.prototype.getStops=function(e){console.log(e),this.custSelected=e,this.customerSelected=!0,this.stops=e.children},t.prototype.selectStop=function(e){this.stop=e,this.stop.kind="PICKUP"},t.prototype.goToStopAlert=function(e){return y(this,void 0,void 0,function(){var t=this;return b(this,function(n){switch(n.label){case 0:return[4,this.alertController.create({header:"Stop Found",message:"The scanned stop is already a part of this route. Would you like to process it?",buttons:[{text:"Cancel",role:"cancel",handler:function(){t.barcode=""}},{text:"Ok",handler:function(){t.goToStop(e)}}]})];case 1:return n.sent().present(),[2]}})})},t.prototype.addStopAlert=function(e,t,n,i,r){return y(this,void 0,void 0,function(){var o=this;return b(this,function(a){switch(a.label){case 0:return[4,this.alertController.create({header:"External Stop Found",message:"This stop is part of another route, would you like to add it to your route?",buttons:[{text:"Cancel",role:"cancel"},{text:"Add Stop",handler:function(){o.addStop(e,t,n,i,r)}}]})];case 1:return a.sent().present(),[2]}})})},t.prototype.goToStop=function(e){return y(this,void 0,void 0,function(){return b(this,function(t){switch(t.label){case 0:return this.taskManagerService.lastTask=e,this.modalController.dismiss(this.barcode),[4,this.modalController.create({component:l.a,componentProps:new h.a({task:e,stopList:this.stopList})})];case 1:return[4,t.sent().present()];case 2:return t.sent(),[2]}})})},t.prototype.addStop=function(e,t,n,i,r){return y(this,void 0,void 0,function(){var o,a,s=this;return b(this,function(c){return this.loader=!0,a=this.tasksService.addStopToRoute({taskId:e,kind:t,addressId:n,customerId:i,delivery:r}).subscribe(function(e){return y(s,void 0,void 0,function(){var t;return b(this,function(n){switch(n.label){case 0:return o=e,[4,this.tasksService.isUserTaskExists()];case 1:return t=n.sent(),o&&!t&&(o.isAddedStop=!0,this.tasksBroadcastService.incrementRouteStopsCount(o)),this.modalController.dismiss(this.barcode),this.loader=!1,[2]}})})},function(e){s.loader=!1,s.taskManagerService.showAlert(s.taskManagerService.defaultErrorHeader,e.message||s.taskManagerService.defaultErrorMessage)}),setTimeout(function(){!o&&s.loader&&(a.unsubscribe(),s.loader=!1,s.taskManagerService.showAlert("No Connectivity",""))},1e3*this.slowConnectionTimeout),[2]})})},t.prototype.closeSelectCustomerList=function(){this.selectCustomerList.close()},t.prototype.closeSelectStopList=function(){this.selectStopList.close()},t.prototype.closeSelectAddressList=function(){this.selectAddressList.close()},t.prototype.closeSelectDeliveryList=function(){this.deliveryTypeList.close()},t.prototype.reset=function(){this.addresses=null,this.customer=null,this.stop=null,this.customers=[],this.customerSelected=!1},t.prototype.isDuplicateStop=function(e){return!(!this.stopList.filter(function(t){return t.properties.addressId.externalId===e.externalId&&t.properties.stopKind===e.kind&&"QDTRAC"===t.createdBy}).some(function(e){return e.status!==d.e.completed&&e.status!==d.e.doortag})&&!this.isLastCompletedStop(e))},t.prototype.isLastCompletedStop=function(e){var t=g.orderBy(g.filter(this.stopList,function(e){return e.status===d.e.completed||e.status===d.e.doortag}),["properties.finishedAt"],["desc"]);return!(!t.length||t[0].properties.addressId.externalId!==e.externalId)},t.\u0275fac=function(e){return new(e||t)(m.ac(p.a),m.ac(f.a),m.ac(r.Gb),m.ac(o.a),m.ac(a.a),m.ac(v.b),m.ac(s.a),m.ac(r.a),m.ac(c.a),m.ac(u.a))},t.\u0275cmp=m.Ub({type:t,selectors:[["app-add-stop"]],viewQuery:function(e,t){var n;1&e&&(m.Xc(w,!0),m.Xc(C,!0),m.Xc(O,!0),m.Xc(S,!0)),2&e&&(m.Ec(n=m.oc())&&(t.selectCustomerList=n.first),m.Ec(n=m.oc())&&(t.selectStopList=n.first),m.Ec(n=m.oc())&&(t.selectAddressList=n.first),m.Ec(n=m.oc())&&(t.deliveryTypeList=n.first))},features:[m.Lb],decls:23,vars:12,consts:[["title","Add a Stop","hideCloseButton","true",3,"onDismiss"],[4,"ngIf"],["name","barcode"],["clear-input","true","uppercase","","placeholder","Scan/Enter Customer/Location",2,"margin-left","10px","margin-right","5px","padding-left","5px !important","border","1px solid #eee","border-radius","5px",3,"ngModel","ngModelChange"],["color","primary",3,"disabled","click"],["id","error",4,"ngIf"],["justify-content-center",""],[3,"disabled","click"],[3,"fullScreen",4,"ngIf"],["id","error"],["itemValueField","name","itemTextField","name",3,"isMultiple","items","canSearch","canClear","shouldFocusSearchbar","searchFailText","onClose"],["selectCustomerList",""],["ionicSelectableHeaderTemplate",""],["color","primary"],["slot","start"],[3,"click"],["name","arrow-back"],["selectStopList",""],["selectAddressList",""],[2,"padding","1px","font-weight","bold"],["nowrap","",2,"padding","1.5px"],["name","pin"],[1,"ion-text-wrap"],["style","padding: 1.5px",4,"ngIf"],[2,"padding","1.5px"],["name","locate"],[1,"inline-flex",3,"ionChange"],["no-padding","",1,"pl-10px"],[1,"bold"],["no-padding",""],["lines","none"],["slot","start","value","PICKUP",3,"checked"],["no-padding","",4,"ngIf"],["slot","start","value","DELIVERY",3,"checked"],["itemValueField","text","itemTextField","text",3,"isMultiple","items","canSearch","canClear","shouldFocusSearchbar","searchFailText","onClose"],["deliveryTypeList",""],[3,"fullScreen"]],template:function(e,t){1&e&&(m.gc(0,"base-modal",0),m.nc("onDismiss",function(){return t.dismiss()}),m.gc(1,"base-modal-content"),m.gc(2,"ion-header"),m.Pc(3,k,1,0,"app-top-menu",1),m.bc(4,"route-card"),m.gc(5,"ion-item"),m.bc(6,"ion-icon",2),m.gc(7,"ion-input",3),m.nc("ngModelChange",function(e){return t.barcode=e}),m.fc(),m.gc(8,"ion-button",4),m.nc("click",function(){return t.handleScan(t.barcode)}),m.Rc(9,"Find"),m.fc(),m.fc(),m.Pc(10,x,2,1,"div",5),m.fc(),m.gc(11,"ion-content"),m.Pc(12,E,6,6,"ion-item",1),m.Pc(13,D,6,6,"ion-item",1),m.Pc(14,A,6,6,"ion-item",1),m.Pc(15,L,11,8,"ion-card",1),m.Pc(16,j,11,2,"ion-row",1),m.Pc(17,F,6,6,"ion-item",1),m.fc(),m.gc(18,"ion-footer"),m.gc(19,"ion-row",6),m.gc(20,"ion-button",7),m.nc("click",function(){return t.onSubmit()}),m.Rc(21,"Add Stop "),m.fc(),m.fc(),m.fc(),m.fc(),m.fc(),m.Pc(22,B,1,1,"cmx-loader",8)),2&e&&(m.Ob(3),m.wc("ngIf","lg"===t.size),m.Ob(4),m.wc("ngModel",t.barcode),m.Ob(1),m.wc("disabled",!t.barcode),m.Ob(2),m.wc("ngIf",t.errorMessage),m.Ob(2),m.wc("ngIf",t.customers.length),m.Ob(1),m.wc("ngIf",t.customerSelected),m.Ob(1),m.wc("ngIf",t.addresses),m.Ob(1),m.wc("ngIf",t.stop),m.Ob(1),m.wc("ngIf",t.stop),m.Ob(1),m.wc("ngIf",t.showDeliveryType),m.Ob(3),m.wc("disabled","PICKUP"!==(null==t.stop?null:t.stop.kind)&&!t.delivery.length),m.Ob(2),m.wc("ngIf",t.loader))},styles:["#error[_ngcontent-%COMP%]{color:red;font-size:12px}.inline-flex[_ngcontent-%COMP%]{display:inline-flex}.no-margin[_ngcontent-%COMP%]{margin:0}.no-padding[_ngcontent-%COMP%]{padding:0}.bold[_ngcontent-%COMP%]{font-weight:700}.bottom-border[_ngcontent-%COMP%]{border-bottom:1px solid #eee}.small-icon[_ngcontent-%COMP%]{font-size:20px}.flex-col[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}ion-input[_ngcontent-%COMP%]{width:100%;border:1px solid #eee;border-radius:5px}.padding-5[_ngcontent-%COMP%], ion-input[_ngcontent-%COMP%]{padding:5px}.stop-information[_ngcontent-%COMP%]{font-size:20px;font-weight:700;padding:10px 0}.divider-row[_ngcontent-%COMP%]{width:100%;color:#aaa;border-radius:5px;justify-content:center}"]}),t}(h.a)},PA2r:function(e,t,n){!function(e){"use strict";var t="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),n="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),i=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],r=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function o(e){return e>1&&e<5&&1!=~~(e/10)}function a(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return t||i?r+(o(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?r+(o(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?r+(o(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?r+(o(e)?"dny":"dn\xed"):r+"dny";case"M":return t||i?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return t||i?r+(o(e)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):r+"m\u011bs\xedci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?r+(o(e)?"roky":"let"):r+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},PANA:function(e,t,n){"use strict";var i=n("cHJt"),r=n("1LL4").extend,o=n("Bw5F"),a=i.inherit({NAME:"actionSheet",_getMenuItemTemplate:function(){return this._toolbar._getTemplate("actionSheetItem")},render:function(){this._hasVisibleMenuItems()&&this.callBase()},_menuWidgetClass:function(){return o},_menuContainer:function(){return this._toolbar.$element()},_widgetOptions:function(){return r({},this.callBase(),{target:this._$button,showTitle:!1})},_menuButtonOptions:function(){return r({},this.callBase(),{icon:"overflow"})},_toggleMenu:function(){this.callBase.apply(this,arguments),this._menu.toggle(this._menuShown),this._menuShown=!1}});e.exports=a},PB16:function(e,t,n){"use strict";var i=n("FKN7"),r=n("KAnu"),o=n("ti0F"),a=o.isDefined,s=o.isPromise,c=n("1LL4").extend,u=n("XpgS").inArray,l=n("zl3R").each,d=n("tJvG"),h=n("v4HY").getPublicElement,f=d.Deferred,p=n("/7L9"),g=n("tUd6"),m=n("yUp2"),v=n("imRD"),_=n("D6VQ"),y=n("8kKR"),b="dx-selectbox-popup-wrapper",w=y.inherit({_supportedKeys:function(){var e=this,t=this.callBase(),n=function(e){this._isEditable()?this._valueSubstituted()&&(this._preventFiltering=!0):this.option("showClearButton")&&(e.preventDefault(),this.reset()),this._preventSubstitution=!0},i=function(){e.option("searchEnabled")&&e._valueSubstituted()&&e._searchHandler()};return c({},t,{tab:function(){this.option("opened")&&"instantly"===this.option("applyValueMode")&&this._cleanInputSelection(),this._wasSearch()&&this._clearFilter(),t.tab&&t.tab.apply(this,arguments)},upArrow:function(e){if(t.upArrow&&t.upArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(e),!0},downArrow:function(e){if(t.downArrow&&t.downArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(e),!0},leftArrow:function(){i(),t.leftArrow&&t.leftArrow.apply(this,arguments)},rightArrow:function(){i(),t.rightArrow&&t.rightArrow.apply(this,arguments)},home:function(){i(),t.home&&t.home.apply(this,arguments)},end:function(){i(),t.end&&t.end.apply(this,arguments)},escape:function(){var e=t.escape&&t.escape.apply(this,arguments);return this._cancelEditing(),!a(e)||e},enter:function(e){var n=this.option("opened"),i=this._input().val().trim(),r=i&&this._list&&!this._list.option("focusedElement");if(!i&&this.option("value")&&this.option("allowClearing"))this.option({selectedItem:null,value:null}),this.close();else{if(this.option("acceptCustomValue"))return e.preventDefault(),r&&(this._valueChangeEventHandler(e),n&&this._toggleOpenState()),n;if(t.enter&&t.enter.apply(this,arguments))return n}},space:function(e){var t=this.option("opened"),n=this.option("searchEnabled"),i=this.option("acceptCustomValue");if(t&&!n&&!i)return e.preventDefault(),this._valueChangeEventHandler(e),!0},backspace:n,del:n})},_getDefaultOptions:function(){return c(this.callBase(),{placeholder:v.format("Select"),fieldTemplate:null,valueChangeEvent:"change",acceptCustomValue:!1,onCustomItemCreating:function(e){a(e.customItem)||(e.customItem=e.text)},showSelectionControls:!1,autocompletionEnabled:!0,allowClearing:!0,tooltipEnabled:!1,openOnFieldClick:!0,showDropDownButton:!0,displayCustomValue:!1,_isAdaptablePopupPosition:!1,useInkRipple:!1,useHiddenSubmitElement:!0})},_init:function(){this.callBase(),this._initCustomItemCreatingAction()},_initMarkup:function(){this.$element().addClass("dx-selectbox"),this._renderTooltip(),this.option("useInkRipple")&&this._renderInkRipple(),this.callBase(),this._$container.addClass("dx-selectbox-container")},_renderInkRipple:function(){this._inkRipple=m.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple&&!this._isEditable()){var i={element:this._inputWrapper(),event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_createPopup:function(){this.callBase(),this._popup.$element().addClass("dx-selectbox-popup"),this._popup.overlayContent().attr("tabindex",-1)},_popupWrapperClass:function(){return this.callBase()+" "+b},_cancelEditing:function(){!this.option("searchEnabled")&&this._list&&(this._focusListElement(null),this._updateField(this.option("selectedItem")))},_renderOpenedState:function(){this.callBase(),this.option("opened")&&(this._scrollToSelectedItem(),this._focusSelectedElement())},_focusSelectedElement:function(){if(this._searchValue()){var e=this._list._itemElements(),t=u(this.option("selectedItem"),this.option("items")),n=t>=0&&!this._isCustomItemSelected()?e.eq(t):null;this._focusListElement(n)}else this._focusListElement(null)},_renderFocusedElement:function(){if(this._list)if(this._searchValue()&&!this.option("acceptCustomValue")){var e=this._list._itemElements().not(".dx-state-disabled").eq(0);this._focusListElement(e)}else this._focusListElement(null)},_focusListElement:function(e){this._preventInputValueRender=!0,this._list.option("focusedElement",h(e)),delete this._preventInputValueRender},_scrollToSelectedItem:function(){this._list&&this._list.scrollToItem(this._list.option("selectedItem"))},_listContentReadyHandler:function(){this.callBase(),this._dataSource&&this._dataSource.paginate()&&this._needPopupRepaint()||this._scrollToSelectedItem()},_renderValue:function(){return this._renderInputValue(),this._setSubmitValue(),(new f).resolve()},_renderInputValue:function(){return this.callBase().always((function(){this._renderInputValueAsync()}).bind(this))},_renderInputValueAsync:function(){this._renderTooltip(),this._renderInputValueImpl().always((function(){this._refreshSelected()}).bind(this))},_renderInputValueImpl:function(){return this._renderField(),(new f).resolve()},_setNextItem:function(e){var t=this._calcNextItem(e),n=this._valueGetter(t);this._setValue(n)},_setNextValue:function(e){(this._dataSource.isLoaded()?(new f).resolve():this._dataSource.load()).done((function(){var t=this._getSelectedIndex(),n=this._dataSource.pageSize(),i=this._dataSource.isLastPage(),r=t===this._items().length-1;this._saveValueChangeEvent(e);var o="ArrowDown"===e.key?1:-1;n&&!i&&r&&o>0?(this._popup||this._createPopup(),this._dataSource.isLoading()||this._list._loadNextPage().done(this._setNextItem.bind(this,o))):this._setNextItem(o)}).bind(this))},_setSelectedItem:function(e){var t=!this._isCustomValueAllowed()&&void 0===e;this.callBase(t?null:e),t||this._isEditable()&&!this._isCustomItemSelected()||this._setListOption("selectedItem",this.option("selectedItem"))},_isCustomValueAllowed:function(){return this.option("acceptCustomValue")||this.callBase()},_displayValue:function(e){return e=!a(e)&&this._isCustomValueAllowed()?this.option("value"):e,this.callBase(e)},_listConfig:function(){var e=c(this.callBase(),{pageLoadMode:"scrollBottom",onSelectionChanged:this._getSelectionChangeHandler(),selectedItem:this.option("selectedItem"),onFocusedItemChanged:this._listFocusedItemChangeHandler.bind(this)});return this.option("showSelectionControls")&&c(e,{showSelectionControls:!0,selectionByClick:!0}),e},_listFocusedItemChangeHandler:function(e){if(!this._preventInputValueRender){var t=e.component,n=i(t.option("focusedElement")),r=t._getItemData(n);this._updateField(r)}},_updateField:function(e){if(!this._getTemplateByOption("fieldTemplate")||!this.option("fieldTemplate")){var t=this._displayGetter(e);return this.option("text",t),void this._renderDisplayText(t)}this._renderField()},_getSelectionChangeHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):r.noop},_selectionChangeHandler:function(e){l(e.addedItems||[],(function(e,t){this._setValue(this._valueGetter(t))}).bind(this))},_getActualSearchValue:function(){return this._dataSource.searchValue()},_toggleOpenState:function(e){if(!this.option("disabled")){if((e=arguments.length?e:!this.option("opened"))||this._restoreInputText(!0),this._wasSearch()&&e){this._wasSearch(!1);var t=this.option("showDataBeforeSearch")||0===this.option("minSearchLength");if(t&&this._dataSource){if(this._searchTimer)return;var n=this._getActualSearchValue();n&&this._wasSearch(!0),this._filterDataSource(n||null)}else this._setListOption("items",[])}e&&this._scrollToSelectedItem(),this.callBase(e)}},_renderTooltip:function(){this.option("tooltipEnabled")&&this.$element().attr("title",this.option("displayValue"))},_renderDimensions:function(){this.callBase(),this._dimensionChanged()},_isValueEqualInputText:function(){var e=this.option("selectedItem"),t=this._displayGetter(e);return(t?String(t):"")===this._searchValue()},_popupHidingHandler:function(){this._isValueEqualInputText()&&this._cancelEditing(),this.callBase()},_restoreInputText:function(e){this.option("readOnly")||this._loadItemDeferred&&this._loadItemDeferred.always((function(){var t=this.option("selectedItem");this.option("acceptCustomValue")?e||(this._updateField(t),this._clearFilter()):this.option("searchEnabled")&&!this._searchValue()&&this.option("allowClearing")?this._clearTextValue():this._isValueEqualInputText()||this._renderInputValue().always((function(e){var n=r.ensureDefined(e,t);this._setSelectedItem(n),this._updateField(n),this._clearFilter()}).bind(this))}).bind(this))},_focusOutHandler:function(e){if(!this._preventNestedFocusEvent(e)){var t=this._isOverlayNestedTarget(e.relatedTarget);t||(this._restoreInputText(),this._clearSearchTimer()),this._wasSearch()&&!this.option("acceptCustomValue")&&this.option("searchEnabled")&&this.option("opened")&&!t&&this._searchCanceled()}this.callBase(e)},_isOverlayNestedTarget:function(e){return!!i(e).closest(".".concat(b)).length},_clearTextValue:function(){this.option("selectedItem")&&this.option("value",null)},_shouldOpenPopup:function(){return this._needPassDataSourceToList()},_isFocused:function(){var e=g.getActiveElement();return this.callBase()&&i(e).closest(this._input()).length>0},_renderValueChangeEvent:function(){this._isEditable()&&this.callBase()},_isEditable:function(){return this.option("acceptCustomValue")||this.option("searchEnabled")},_fieldRenderData:function(){var e=this._list&&this.option("opened")&&i(this._list.option("focusedElement"));return e&&e.length?this._list._getItemData(e):this.option("selectedItem")},_readOnlyPropValue:function(){return!this._isEditable()||this.option("readOnly")},_isSelectedValue:function(e){return this._isValueEquals(e,this.option("value"))},_shouldCloseOnItemClick:function(){return!(this.option("showSelectionControls")&&"single"!==this.option("selectionMode"))},_listItemClickHandler:function(e){var t=this._getCurrentValue();this._focusListElement(i(e.itemElement)),this._saveValueChangeEvent(e.event),this._shouldClearFilter()&&this._clearFilter(),this._completeSelection(this._valueGetter(e.itemData)),this._shouldCloseOnItemClick()&&this.option("opened",!1),this.option("searchEnabled")&&t===this._valueGetter(e.itemData)&&this._updateField(e.itemData)},_shouldClearFilter:function(){return this._wasSearch()},_completeSelection:function(e){this._setValue(e)},_loadItem:function(e,t){var n=this,i=new f;return this.callBase(e,t).done((function(e){i.resolve(e)}).bind(this)).fail((function(){var t=n.option("selectedItem");n.option("acceptCustomValue")&&e===n._valueGetter(t)?i.resolve(t):i.reject()}).bind(this)),i.promise()},_loadInputValue:function(e,t){return this._loadItemDeferred=this._loadItem(e).always(t),this._loadItemDeferred},_isCustomItemSelected:function(){var e=this.option("selectedItem"),t=this._searchValue(),n=this._displayGetter(e);return!n||t!==n.toString()},_valueChangeEventHandler:function(e){this.option("acceptCustomValue")&&this._isCustomItemSelected()&&!this._isValueChanging&&(this._isValueChanging=!0,this._customItemAddedHandler(e),this._isValueChanging=!1)},_initCustomItemCreatingAction:function(){this._customItemCreatingAction=this._createActionByOption("onCustomItemCreating")},_createCustomItem:function(e){var t={text:e},n=this._customItemCreatingAction(t),i=r.ensureDefined(n,t.customItem);return a(n)&&p.log("W0015","onCustomItemCreating","customItem"),i},_customItemAddedHandler:function(e){var t=this._searchValue(),n=this._createCustomItem(t);if(this._saveValueChangeEvent(e),void 0===n)throw this._renderValue(),p.Error("E0121");s(n)?d.fromPromise(n).done(this._setCustomItem.bind(this)).fail(this._setCustomItem.bind(this,null)):this._setCustomItem(n)},_setCustomItem:function(e){this._disposed||(this.option("selectedItem",e=e||null),this._shouldClearFilter()&&this._filterDataSource(null),this._setValue(this._valueGetter(e)),this._renderDisplayText(this._displayGetter(e)))},_clearValueHandler:function(e){return this.callBase(e),!1},_wasSearch:function(e){if(!arguments.length)return this._wasSearchValue;this._wasSearchValue=e},_searchHandler:function(e){this._preventFiltering?delete this._preventFiltering:(this._needPassDataSourceToList()&&this._wasSearch(!0),this.callBase(e))},_dataSourceFiltered:function(e){this.callBase(),null!==e&&(this._renderInputSubstitution(),this._renderFocusedElement())},_valueSubstituted:function(){var e=this._input().get(0),t=0===e.selectionStart&&e.selectionEnd===this._searchValue().length,n=e.selectionStart!==e.selectionEnd;return this._wasSearch()&&n&&!t},_shouldSubstitutionBeRendered:function(){return this.option("autocompletionEnabled")&&!this._preventSubstitution&&this.option("searchEnabled")&&!this.option("acceptCustomValue")&&"startswith"===this.option("searchMode")},_renderInputSubstitution:function(){if(this._shouldSubstitutionBeRendered()){var e=this._list&&this._getPlainItems(this._list.option("items"))[0];if(e){var t=this._input(),n=t.val().length;if(0!==n){var i=t.get(0),r=this._displayGetter(e).toString();i.value=r,this._caret({start:n,end:r.length})}}}else delete this._preventSubstitution},_cleanInputSelection:function(){var e=this._input().get(0),t=e.value.length;e.selectionStart=t,e.selectionEnd=t},_dispose:function(){this._renderInputValueAsync=r.noop,delete this._loadItemDeferred,this.callBase()},_optionChanged:function(e){switch(e.name){case"_isAdaptablePopupPosition":case"autocompletionEnabled":break;case"onCustomItemCreating":this._initCustomItemCreatingAction();break;case"tooltipEnabled":this._renderTooltip();break;case"displayCustomValue":case"acceptCustomValue":case"showSelectionControls":case"useInkRipple":this._invalidate();break;case"allowClearing":break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});_("dxSelectBox",w),e.exports=w,e.exports.default=e.exports},PE2r:function(e,t,n){"use strict";e.exports="20.1.7"},PJOh:function(e,t,n){"use strict";var i=p(n("5qrJ")),r=n("cGv3"),o=n("ti0F"),a=n("1LL4"),s=p(n("D8Ap")),c=p(n("TssP")),u=p(n("xOOu")),l=p(n("xud5")),d=p(n("3NFn")),h=p(n("FlNM")),f=n("tJvG");function p(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var m='',v="http://schemas.openxmlformats.org",_="xl",y="sharedStrings.xml",b="styles.xml",w={boolean:"b",date:"d",number:"n",string:"s"},C=Date.UTC(1899,11,30),O={quarter:"shortDate",quarterAndYear:"shortDate",minute:"longTime",millisecond:"longTime"},S=i.default.inherit({_getXMLTag:function(e,t,n){var i,r,a="<"+e,s=t.length;for(i=0;i"+n+"":a+" />"},_convertToExcelCellRef:function(e,t){for(var n,i,r="";!i;)n=65+(t>=26?t%26:Math.ceil(t)),r=String.fromCharCode(n)+r,t>=26?t=Math.floor(t/26)-1:i=!0;return r+(e+1)},_convertToExcelCellRefAndTrackMaxIndex:function(e,t){return this._maxRowIndex0&&(a._needSheetPr=!0),s.push(n)}return s},_calculateWidth:function(e){return(!(e=parseInt(e,10))||e<5)&&(e=100),Math.min(255,Math.floor((e-5)/7*100+.5)/100)},_prepareStyleData:function(){var e=this,t=this,n=t._dataProvider.getStyles();t._dataProvider.getColumns().forEach(function(e){t._colsArray.push(t._calculateWidth(e.width))});var i=[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!1},{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!0}];this._excelFile.registerFont(i[0]),this._excelFile.registerFont(i[1]),n.forEach(function(e){var n=t._tryConvertToExcelNumberFormat(e.format,e.dataType);(0,o.isDefined)(n)||(n=0),t._styleArray.push({font:i[Number(!!e.bold)],numberFormat:n,alignment:{vertical:"top",wrapText:!!e.wrapText,horizontal:e.alignment||"left"}})}),t._styleArrayIndexToCellStyleIdMap=t._styleArray.map(function(t){return e._excelFile.registerCellFormat(t)})},_prepareCellData:function(){this._cellsArray=this._getDataArray()},_createXMLRelationships:function(e){return this._getXMLTag("Relationships",[{name:"xmlns",value:v+"/package/2006/relationships"}],e)},_createXMLRelationship:function(e,t,n){return this._getXMLTag("Relationship",[{name:"Id",value:"rId"+e},{name:"Type",value:v+"/officeDocument/2006/relationships/"+t},{name:"Target",value:n}])},_getWorkbookContent:function(){return m+this._getXMLTag("workbook",[{name:"xmlns:r",value:v+"/officeDocument/2006/relationships"},{name:"xmlns",value:v+"/spreadsheetml/2006/main"}],'Sheet!$1:$1')},_getContentTypesContent:function(){return m+''},_generateStylesXML:function(){var e=this,t=e._zip.folder(_),n="";n+=this._excelFile.generateNumberFormatsXml(),n+=this._excelFile.generateFontsXml(),n+=this._excelFile.generateFillsXml(),n+='',n+=this._excelFile.generateCellFormatsXml(),n+=e._getXMLTag("cellStyles",[{name:"count",value:1}],e._getXMLTag("cellStyle",[{name:"name",value:"Normal"},{name:"xfId",value:0},{name:"builtinId",value:0}])),n=m+e._getXMLTag("styleSheet",[{name:"xmlns",value:v+"/spreadsheetml/2006/main"}],n),t.file(b,n),e._styleArray=[]},_generateStringsXML:function(){var e,t=this._zip.folder(_),n=this._stringArray.length,i=m;for(e=0;e':""},_getIgnoredErrorsXML:function(e){return this._options.ignoreErrors?'':""},_generateWorksheetXML:function(){var e,t,n,i,r,a=[],s=this._cellsArray.length,c=this._colsArray.length,u="1:"+c,l=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():1,d=[''];for(d.push(this._needSheetPr?'':""),d.push(''),d.push("'),d.push(this._getPaneXML()),d.push(""),d.push(''),e=0;e"),t=0;t=l?this._dataProvider.getGroupLevel(t):0},{name:"x14ac:dyDescent",value:"0.25"}],i.join(""))),this._cellsArray[t]=null,a.length>1e4&&(d.push(a.join("")),a=[])}d.push(a.join("")),a=[];var h=this._convertToExcelCellRef(this._maxRowIndex,this._maxColumnIndex);d.push(""+this._getAutoFilterXML(h)+this._generateMergingXML()+this._getIgnoredErrorsXML(h)+""),this._zip.folder(_).folder("worksheets").file("sheet1.xml",d.join("")),this._colsArray=[],this._cellsArray=[],d=[]},_generateMergingXML:function(){var e,t,n,i,r,a=(0,o.isDefined)(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),s=this._dataProvider.getColumns().length,c=[],u=[],l="";for(i=0;i").addClass("dx-loadpanel-content-wrapper"),this._$contentWrapper.appendTo(this._$content),this._togglePaneVisible(),this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage()},_show:function(){var e=this.option("delay");if(!e)return this.callBase();var t=new l,n=this.callBase.bind(this);return this._clearShowTimeout(),this._showTimeout=setTimeout(function(){n().done(function(){t.resolve()})},e),t.promise()},_hide:function(){return this._clearShowTimeout(),this.callBase()},_clearShowTimeout:function(){clearTimeout(this._showTimeout)},_renderMessage:function(){if(this._$contentWrapper){var e=this.option("message");if(e){var t=i("
").addClass("dx-loadpanel-message").text(e);this._$contentWrapper.append(t)}}},_renderLoadIndicator:function(){this._$contentWrapper&&this.option("showIndicator")&&(this._$indicator=i("
").addClass("dx-loadpanel-indicator").appendTo(this._$contentWrapper),this._createComponent(this._$indicator,c,{indicatorSrc:this.option("indicatorSrc")}))},_cleanPreviousContent:function(){this.$content().find(".dx-loadpanel-message").remove(),this.$content().find(".dx-loadpanel-indicator").remove()},_togglePaneVisible:function(){this.$content().toggleClass("dx-loadpanel-pane-hidden",!this.option("showPane"))},_optionChanged:function(e){switch(e.name){case"delay":break;case"message":case"showIndicator":this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage();break;case"showPane":this._togglePaneVisible();break;case"indicatorSrc":this._$indicator&&this._createComponent(this._$indicator,c,{indicatorSrc:this.option("indicatorSrc")});break;default:this.callBase(e)}},_dispose:function(){this._clearShowTimeout(),this.callBase()}});a("dxLoadPanel",h),e.exports=h,e.exports.default=e.exports},PcbC:function(e,t,n){"use strict";var i=o(n("BWGd")),r=o(n("E4RJ"));function o(e){return e&&e.__esModule?e:{default:e}}i.default.registerModule("contextMenu",r.default)},PdPS:function(e,t,n){"use strict";var i=n("LdFP"),r=n("1LL4").extend,o=n("zl3R").each,a=n("wZ/z"),s=function(e){var t=[];return o(e.touches,function(e,n){t.push(r({pointerId:n.identifier},n))}),{pointers:t,pointerId:e.changedTouches[0].identifier}},c=function(e){return"ios"===i.real().platform&&("dxpointerdown"===e||"dxpointerup"===e)},u=a.inherit({ctor:function(){this.callBase.apply(this,arguments),this._pointerId=0},_handler:function(e){if(c(this._eventName)){var t=e.changedTouches[0];if(this._pointerId===t.identifier&&0!==this._pointerId)return;this._pointerId=t.identifier}return this.callBase.apply(this,arguments)},_fireEvent:function(e){return this.callBase(r(s(e.originalEvent),e))}});u.map={dxpointerdown:"touchstart",dxpointermove:"touchmove",dxpointerup:"touchend",dxpointercancel:"touchcancel",dxpointerover:"",dxpointerout:"",dxpointerenter:"",dxpointerleave:""},u.normalize=s,e.exports=u},PeUW:function(e,t,n){!function(e){"use strict";var t={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},n={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};e.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(e){return e+"\u0bb5\u0ba4\u0bc1"},preparse:function(e){return e.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(e,t,n){return e<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":e<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":e<10?" \u0b95\u0bbe\u0bb2\u0bc8":e<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":e<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":e<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(e,t){return 12===e&&(e=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===t?e<2?e:e+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===t||"\u0b95\u0bbe\u0bb2\u0bc8"===t||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n("wd/R"))},PfKZ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateBase=t.renderedCallbacks=void 0;var i=c(n("FKN7")),r=n("tUd6"),o=c(n("cYys")),a=n("v4HY"),s=c(n("/7L9"));function c(e){return e&&e.__esModule?e:{default:e}}var u=t.renderedCallbacks=(0,o.default)({syncStrategy:!0});t.TemplateBase=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return(t=[{key:"render",value:function(e){var t=(e=e||{}).onRendered;delete e.onRendered;var n=this._renderCore(e);return this._ensureResultInContainer(n,e.container),u.fire(n,e.container),t&&t(),n}},{key:"_ensureResultInContainer",value:function(e,t){if(t){var n=(0,i.default)(t),o=(0,a.contains)(n.get(0),e.get(0));n.append(e),o||(0,r.getBody)().contains(n.get(0))&&(0,a.triggerShownEvent)(e)}}},{key:"_renderCore",value:function(){throw s.default.Error("E0001")}}])&&function(e,t){for(var n=0;n=10?e:e+12:"\u0cb8\u0c82\u0c9c\u0cc6"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":e<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":e<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":e<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(e){return e+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(n("wd/R"))},PqYM:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("HDdC"),r=n("D0XW"),o=n("Y7HM"),a=n("z+Ro");function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,s=-1;return Object(o.a)(t)?s=Number(t)<1?1:Number(t):Object(a.a)(t)&&(n=t),Object(a.a)(n)||(n=r.a),new i.a(function(t){var i=Object(o.a)(e)?e:+e-n.now();return n.schedule(c,i,{index:0,period:s,subscriber:t})})}function c(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}},PzH3:function(e,t,n){"use strict";var i=n("bBst"),r=n("Ys8N"),o=global.document,a=function(e,t,n,i){return e.addEventListener(t,n,i)},s=function(e,t,n,i){return e.removeEventListener(t,n,i)},c=[];function u(e,t,n){var i=function(e,t,n){var i,r;for(i=0;i0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]e.length)&&(t=e.length);for(var n=0,i=new Array(t);n-1};t.getOptionNameFromFullName=function(e){var t=e.split(".");return t[t.length-1].replace(/\[\d+]/,"")},t.getFullOptionName=function(e,t){return"".concat(e,".").concat(t)},t.getTextWithoutSpaces=o,t.isExpectedItem=function(e,t){return e&&(e.dataField===t||e.name===t||o(e.title)===t||"group"===e.itemType&&o(e.caption)===t)},t.createItemPathByIndex=function(e,t){return"".concat(t?"tabs":"items","[").concat(e,"]")},t.concatPaths=function(e,t){return(0,i.isDefined)(e)&&(0,i.isDefined)(t)?"".concat(e,".").concat(t):e||t},t.tryGetTabPath=function(e){for(var t=e.split("."),n=function(e){if(Array.isArray(e))return r(e)}(o=t)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=t.length-1;i>=0;i--){if(a(t[i]))return n.join(".");n.splice(i,1)}var o;return""},t.isFullPathContainsTabs=a},R0Ic:function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return a}),n.d(t,"d",function(){return g}),n.d(t,"e",function(){return u}),n.d(t,"f",function(){return l}),n.d(t,"g",function(){return h}),n.d(t,"h",function(){return d}),n.d(t,"i",function(){return f}),n.d(t,"j",function(){return c}),n.d(t,"k",function(){return m}),n.d(t,"l",function(){return v});var i=n("vuIU"),r=n("1OyB"),o=Object(i.a)(function e(){Object(r.a)(this,e)}),a=Object(i.a)(function e(){Object(r.a)(this,e)}),s="*";function c(e,t){return{type:7,name:e,definitions:t,options:{}}}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function d(e){return{type:6,styles:e,offset:null}}function h(e,t,n){return{type:0,name:e,styles:t,options:n}}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function p(e){Promise.resolve(null).then(e)}var g=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Object(r.a)(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+n}return Object(i.a)(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;p(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),m=function(){function e(t){var n=this;Object(r.a)(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,o=0,a=0,s=this.players.length;0==s?p(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==s&&n._onFinish()}),e.onDestroy(function(){++o==s&&n._onDestroy()}),e.onStart(function(){++a==s&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return Object(i.a)(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=0;return this.players.forEach(function(t){var n=t.getPosition();e=Math.min(n,e)}),e}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),v="!"},R7F3:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("vuIU"),r=n("1OyB"),o=n("fXoL"),a=function(){var e=Object(i.a)(function e(){Object(r.a)(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.Vb({type:e,selectors:[["","ionicSelectableItemEndTemplate",""]]}),e}()},RAwQ:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[n][0]:r[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d M\xe9int",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},RG5Y:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyTemplate=void 0;var i,r=(i=n("FKN7"))&&i.__esModule?i:{default:i},o=n("PfKZ");function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.EmptyTemplate=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(a,e);var t,n,i,o=(n=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=l(n);if(i){var r=l(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return u(this,e)});function a(){return s(this,a),o.apply(this,arguments)}return(t=[{key:"_renderCore",value:function(){return(0,r.default)()}}])&&function(e,t){for(var n=0;n0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]");if(new this.constructor.ItemClass(o,this._itemOptions(),t||{}),i&&i.length?i.replaceWith(o):this._appendItemToContainer.call(this,n,o,e),this.option("showItemDataTitle")){var a=this._displayGetter?this._displayGetter(t):t;o.attr("title",a)}return o},_itemOptions:function(){var e=this;return{watchMethod:function(){return e.option("integrationOptions.watchMethod")},owner:e,fieldGetter:function(t){var n=e.option(t+"Expr");return(0,S.compileGetter)(n)}}},_postprocessRenderItem:a.default.noop,_executeItemRenderAction:function(e,t,n){this._getItemRenderAction()({itemElement:n,itemIndex:e,itemData:t})},_setElementData:function(e,t,n){e.addClass([D,this._itemClass()].join(" ")).data(this._itemDataKey(),t).data(this._itemIndexKey(),n)},_createItemRenderAction:function(){return this._itemRenderAction=this._createActionByOption("onItemRendered",{element:this.element(),excludeValidators:["disabled","readOnly"],category:"rendering"})},_getItemRenderAction:function(){return this._itemRenderAction||this._createItemRenderAction()},_getItemTemplateName:function(e){var t=e.itemData,n=e.templateProperty||this.option("itemTemplateProperty");return t&&t[n]||e.defaultTemplateName},_createItemByTemplate:function(e,t){return e.render({model:t.itemData,container:t.container,index:t.index})},_emptyMessageContainer:function(){return this._itemContainer()},_renderEmptyMessage:function(e){e=e||this.option("items");var t=this.option("noDataText"),n=!t||e&&e.length||this._isDataSourceLoading();n&&this._$noData&&(this._$noData.remove(),this._$noData=null,this.setAria("label",void 0)),n||(this._$noData=this._$noData||(0,r.default)("
").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()).html(t),this.setAria("label",t)),this.$element().toggleClass("dx-empty-collection",!n)},_itemDXEventHandler:function(e,t,n,i){this._itemEventHandler(e.target,t,(0,d.extend)(n,{event:e}),i)},_itemEventHandler:function(e,t,n,i){var r=this._createActionByOption(t,(0,d.extend)({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,r,n)},_itemEventHandlerByHandler:function(e,t,n,i){var r=this._createAction(t,(0,d.extend)({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,r,n)},_itemEventHandlerImpl:function(e,t,n){var i=this._closestItemElement((0,r.default)(e)),o=(0,d.extend)({},n);return t((0,d.extend)(n,this._extendActionArgs(i),o))},_extendActionArgs:function(e){return{itemElement:(0,s.getPublicElement)(e),itemIndex:this._itemElements().index(e),itemData:this._getItemData(e)}},_closestItemElement:function(e){return(0,r.default)(e).closest(this._itemSelector())},_getItemData:function(e){return(0,r.default)(e).data(this._itemDataKey())},_getSummaryItemsWidth:function(e,t){var n=0;return e&&f.default.each(e,function(e,i){n+=(0,r.default)(i).outerWidth(t||!1)}),n},getFocusedItemId:function(){return this._focusedItemId||(this._focusedItemId="dx-"+new g.default),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(y.default);V.ItemClass=b.default,e.exports=V},RnhZ:function(e,t,n){var i={"./af":"K/tc","./af.js":"K/tc","./ar":"jnO4","./ar-dz":"o1bE","./ar-dz.js":"o1bE","./ar-kw":"Qj4J","./ar-kw.js":"Qj4J","./ar-ly":"HP3h","./ar-ly.js":"HP3h","./ar-ma":"CoRJ","./ar-ma.js":"CoRJ","./ar-sa":"gjCT","./ar-sa.js":"gjCT","./ar-tn":"bYM6","./ar-tn.js":"bYM6","./ar.js":"jnO4","./az":"SFxW","./az.js":"SFxW","./be":"H8ED","./be.js":"H8ED","./bg":"hKrs","./bg.js":"hKrs","./bm":"p/rL","./bm.js":"p/rL","./bn":"kEOa","./bn.js":"kEOa","./bo":"0mo+","./bo.js":"0mo+","./br":"aIdf","./br.js":"aIdf","./bs":"JVSJ","./bs.js":"JVSJ","./ca":"1xZ4","./ca.js":"1xZ4","./cs":"PA2r","./cs.js":"PA2r","./cv":"A+xa","./cv.js":"A+xa","./cy":"l5ep","./cy.js":"l5ep","./da":"DxQv","./da.js":"DxQv","./de":"tGlX","./de-at":"s+uk","./de-at.js":"s+uk","./de-ch":"u3GI","./de-ch.js":"u3GI","./de.js":"tGlX","./dv":"WYrj","./dv.js":"WYrj","./el":"jUeY","./el.js":"jUeY","./en-au":"Dmvi","./en-au.js":"Dmvi","./en-ca":"OIYi","./en-ca.js":"OIYi","./en-gb":"Oaa7","./en-gb.js":"Oaa7","./en-ie":"4dOw","./en-ie.js":"4dOw","./en-il":"czMo","./en-il.js":"czMo","./en-in":"7C5Q","./en-in.js":"7C5Q","./en-nz":"b1Dy","./en-nz.js":"b1Dy","./en-sg":"t+mt","./en-sg.js":"t+mt","./eo":"Zduo","./eo.js":"Zduo","./es":"iYuL","./es-do":"CjzT","./es-do.js":"CjzT","./es-us":"Vclq","./es-us.js":"Vclq","./es.js":"iYuL","./et":"7BjC","./et.js":"7BjC","./eu":"D/JM","./eu.js":"D/JM","./fa":"jfSC","./fa.js":"jfSC","./fi":"gekB","./fi.js":"gekB","./fil":"1ppg","./fil.js":"1ppg","./fo":"ByF4","./fo.js":"ByF4","./fr":"nyYc","./fr-ca":"2fjn","./fr-ca.js":"2fjn","./fr-ch":"Dkky","./fr-ch.js":"Dkky","./fr.js":"nyYc","./fy":"cRix","./fy.js":"cRix","./ga":"USCx","./ga.js":"USCx","./gd":"9rRi","./gd.js":"9rRi","./gl":"iEDd","./gl.js":"iEDd","./gom-deva":"qvJo","./gom-deva.js":"qvJo","./gom-latn":"DKr+","./gom-latn.js":"DKr+","./gu":"4MV3","./gu.js":"4MV3","./he":"x6pH","./he.js":"x6pH","./hi":"3E1r","./hi.js":"3E1r","./hr":"S6ln","./hr.js":"S6ln","./hu":"WxRl","./hu.js":"WxRl","./hy-am":"1rYy","./hy-am.js":"1rYy","./id":"UDhR","./id.js":"UDhR","./is":"BVg3","./is.js":"BVg3","./it":"bpih","./it-ch":"bxKX","./it-ch.js":"bxKX","./it.js":"bpih","./ja":"B55N","./ja.js":"B55N","./jv":"tUCv","./jv.js":"tUCv","./ka":"IBtZ","./ka.js":"IBtZ","./kk":"bXm7","./kk.js":"bXm7","./km":"6B0Y","./km.js":"6B0Y","./kn":"PpIw","./kn.js":"PpIw","./ko":"Ivi+","./ko.js":"Ivi+","./ku":"JCF/","./ku.js":"JCF/","./ky":"lgnt","./ky.js":"lgnt","./lb":"RAwQ","./lb.js":"RAwQ","./lo":"sp3z","./lo.js":"sp3z","./lt":"JvlW","./lt.js":"JvlW","./lv":"uXwI","./lv.js":"uXwI","./me":"KTz0","./me.js":"KTz0","./mi":"aIsn","./mi.js":"aIsn","./mk":"aQkU","./mk.js":"aQkU","./ml":"AvvY","./ml.js":"AvvY","./mn":"lYtQ","./mn.js":"lYtQ","./mr":"Ob0Z","./mr.js":"Ob0Z","./ms":"6+QB","./ms-my":"ZAMP","./ms-my.js":"ZAMP","./ms.js":"6+QB","./mt":"G0Uy","./mt.js":"G0Uy","./my":"honF","./my.js":"honF","./nb":"bOMt","./nb.js":"bOMt","./ne":"OjkT","./ne.js":"OjkT","./nl":"+s0g","./nl-be":"2ykv","./nl-be.js":"2ykv","./nl.js":"+s0g","./nn":"uEye","./nn.js":"uEye","./oc-lnc":"Fnuy","./oc-lnc.js":"Fnuy","./pa-in":"8/+R","./pa-in.js":"8/+R","./pl":"jVdC","./pl.js":"jVdC","./pt":"8mBD","./pt-br":"0tRk","./pt-br.js":"0tRk","./pt.js":"8mBD","./ro":"lyxo","./ro.js":"lyxo","./ru":"lXzo","./ru.js":"lXzo","./sd":"Z4QM","./sd.js":"Z4QM","./se":"//9w","./se.js":"//9w","./si":"7aV9","./si.js":"7aV9","./sk":"e+ae","./sk.js":"e+ae","./sl":"gVVK","./sl.js":"gVVK","./sq":"yPMs","./sq.js":"yPMs","./sr":"zx6S","./sr-cyrl":"E+lV","./sr-cyrl.js":"E+lV","./sr.js":"zx6S","./ss":"Ur1D","./ss.js":"Ur1D","./sv":"X709","./sv.js":"X709","./sw":"dNwA","./sw.js":"dNwA","./ta":"PeUW","./ta.js":"PeUW","./te":"XLvN","./te.js":"XLvN","./tet":"V2x9","./tet.js":"V2x9","./tg":"Oxv6","./tg.js":"Oxv6","./th":"EOgW","./th.js":"EOgW","./tk":"Wv91","./tk.js":"Wv91","./tl-ph":"Dzi0","./tl-ph.js":"Dzi0","./tlh":"z3Vd","./tlh.js":"z3Vd","./tr":"DoHr","./tr.js":"DoHr","./tzl":"z1FC","./tzl.js":"z1FC","./tzm":"wQk9","./tzm-latn":"tT3J","./tzm-latn.js":"tT3J","./tzm.js":"wQk9","./ug-cn":"YRex","./ug-cn.js":"YRex","./uk":"raLr","./uk.js":"raLr","./ur":"UpQW","./ur.js":"UpQW","./uz":"Loxo","./uz-latn":"AQ68","./uz-latn.js":"AQ68","./uz.js":"Loxo","./vi":"KSF8","./vi.js":"KSF8","./x-pseudo":"/X5v","./x-pseudo.js":"/X5v","./yo":"fzPg","./yo.js":"fzPg","./zh-cn":"XDpg","./zh-cn.js":"XDpg","./zh-hk":"SatO","./zh-hk.js":"SatO","./zh-mo":"OmwH","./zh-mo.js":"OmwH","./zh-tw":"kOpN","./zh-tw.js":"kOpN"};function r(e){var t=o(e);return n(t)}function o(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="RnhZ"},RwLY:function(e,t,n){"use strict";var i=n("tJvG"),r=n("cGv3"),o=i.Deferred,a=i.when,s=r.hasWindow()?r.getWindow().Promise:Promise;s||((s=function(e){var t=new o;return e(t.resolve.bind(this),t.reject.bind(this)),t.promise()}).resolve=function(e){return(new o).resolve(e).promise()},s.reject=function(e){return(new o).reject(e).promise()},s.all=function(e){return a.apply(this,e).then(function(){return[].slice.call(arguments)})}),e.exports=s},"S+S0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("mrSG"),r=n("zVF4"),o=function(){function e(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}return e.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},e.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},e.prototype.setServiceProps=function(e){return this.serviceProps=e,this},e}(),a="[DEFAULT]",s=function(){function e(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map}return e.prototype.get=function(e){void 0===e&&(e=a);var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){var n=new r.Deferred;this.instancesDeferred.set(t,n);try{var i=this.getOrInitializeService(t);i&&n.resolve(i)}catch(o){}}return this.instancesDeferred.get(t).promise},e.prototype.getImmediate=function(e){var t=i.__assign({identifier:a,optional:!1},e),n=t.optional,r=this.normalizeInstanceIdentifier(t.identifier);try{var o=this.getOrInitializeService(r);if(!o){if(n)return null;throw Error("Service "+this.name+" is not available")}return o}catch(s){if(n)return null;throw s}},e.prototype.getComponent=function(){return this.component},e.prototype.setComponent=function(e){var t,n;if(e.name!==this.name)throw Error("Mismatching Component "+e.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=e,function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService(a)}catch(d){}try{for(var r=i.__values(this.instancesDeferred.entries()),o=r.next();!o.done;o=r.next()){var s=i.__read(o.value,2),c=s[1],u=this.normalizeInstanceIdentifier(s[0]);try{var l=this.getOrInitializeService(u);c.resolve(l)}catch(d){}}}catch(h){t={error:h}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.clearInstance=function(e){void 0===e&&(e=a),this.instancesDeferred.delete(e),this.instances.delete(e)},e.prototype.delete=function(){return i.__awaiter(this,void 0,void 0,function(){var e;return i.__generator(this,function(t){switch(t.label){case 0:return e=Array.from(this.instances.values()),[4,Promise.all(e.filter(function(e){return"INTERNAL"in e}).map(function(e){return e.INTERNAL.delete()}))];case 1:return t.sent(),[2]}})})},e.prototype.isComponentSet=function(){return null!=this.component},e.prototype.getOrInitializeService=function(e){var t=this.instances.get(e);return!t&&this.component&&(t=this.component.instanceFactory(this.container,function(e){return e===a?void 0:e}(e)),this.instances.set(e,t)),t||null},e.prototype.normalizeInstanceIdentifier=function(e){return this.component?this.component.multipleInstances?e:a:e},e}(),c=function(){function e(e){this.name=e,this.providers=new Map}return e.prototype.addComponent=function(e){var t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component "+e.name+" has already been registered with "+this.name);t.setComponent(e)},e.prototype.addOrOverwriteComponent=function(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)},e.prototype.getProvider=function(e){if(this.providers.has(e))return this.providers.get(e);var t=new s(e,this);return this.providers.set(e,t),t},e.prototype.getProviders=function(){return Array.from(this.providers.values())},e}();t.Component=o,t.ComponentContainer=c,t.Provider=s},"S/Aq":function(e,t,n){"use strict";n.d(t,"b",function(){return M}),n.d(t,"c",function(){return A}),n.d(t,"d",function(){return V}),n.d(t,"a",function(){return $});var i=n("1OyB"),r=n("vuIU"),o=n("fXoL"),a=n("Cfvw"),s=n("LRne"),c=n("D0XW"),u=n("HDdC"),l=n("lJxs");function d(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.b;return new u.a(function(n){var i;return null!=t?t.schedule(function(){i=e.onSnapshot(n)}):i=e.onSnapshot(n),function(){null!=i&&i()}})}(e,t)}function h(e,t){return d(e,t).pipe(Object(l.a)(function(e){return{payload:e,type:"query"}}))}var f=n("pxpQ"),p=n("rePB"),g=n("KQm4"),m=n("pLZG"),v=n("Kqap");function _(e,t){return h(e,t).pipe(Object(l.a)(function(e){return e.payload.docChanges().map(function(e){return{type:e.type,payload:e}})}))}function y(e,t,n){return h(e,n).pipe(Object(l.a)(function(e){return e.payload.docChanges()}),Object(v.a)(function(e,n){return function(e,t,n){return t.forEach(function(t){n.indexOf(t.type)>-1&&(e=function(e,t){switch(t.type){case"added":e[t.newIndex]&&e[t.newIndex].doc.ref.isEqual(t.doc.ref)||e.splice(t.newIndex,0,t);break;case"modified":(null==e[t.oldIndex]||e[t.oldIndex].doc.ref.isEqual(t.doc.ref))&&(t.oldIndex!==t.newIndex?(e.splice(t.oldIndex,1),e.splice(t.newIndex,0,t)):e.splice(t.newIndex,1,t));break;case"removed":e[t.oldIndex]&&e[t.oldIndex].doc.ref.isEqual(t.doc.ref)&&e.splice(t.oldIndex,1)}return e}(e,t))}),e}(e,n,t)},[]),Object(l.a)(function(e){return e.map(function(e){return{type:e.type,payload:e}})}))}function b(e){return e&&0!==e.length||(e=["added","removed","modified"]),e}var w=function(){function e(t,n,r){Object(i.a)(this,e),this.ref=t,this.query=n,this.afs=r}return Object(r.a)(e,[{key:"stateChanges",value:function(e){return e&&0!==e.length?_(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst,Object(l.a)(function(t){return t.filter(function(t){return e.indexOf(t.type)>-1})}),Object(m.a)(function(e){return e.length>0})):_(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"auditTrail",value:function(e){return this.stateChanges(e).pipe(Object(v.a)(function(e,t){return[].concat(Object(g.a)(e),Object(g.a)(t))},[]))}},{key:"snapshotChanges",value:function(e){var t=b(e);return y(this.query,t,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"valueChanges",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst,Object(l.a)(function(t){return t.payload.docs.map(function(t){return e.idField?Object.assign({},t.data(),Object(p.a)({},e.idField,t.id)):t.data()})}))}},{key:"get",value:function(e){return Object(a.a)(this.query.get(e)).pipe(Object(f.b)(this.afs.schedulers.insideAngular))}},{key:"add",value:function(e){return this.ref.add(e)}},{key:"doc",value:function(e){return new C(this.ref.doc(e),this.afs)}}]),e}(),C=function(){function e(t,n){Object(i.a)(this,e),this.ref=t,this.afs=n}return Object(r.a)(e,[{key:"set",value:function(e,t){return this.ref.set(e,t)}},{key:"update",value:function(e){return this.ref.update(e)}},{key:"delete",value:function(){return this.ref.delete()}},{key:"collection",value:function(e,t){var n=V(this.ref.collection(e),t);return new w(n.ref,n.query,this.afs)}},{key:"snapshotChanges",value:function(){return d(this.ref,this.afs.schedulers.outsideAngular).pipe(Object(l.a)(function(e){return{payload:e,type:"value"}})).pipe(this.afs.keepUnstableUntilFirst)}},{key:"valueChanges",value:function(){return this.snapshotChanges().pipe(Object(l.a)(function(e){return e.payload.data()}))}},{key:"get",value:function(e){return Object(a.a)(this.ref.get(e)).pipe(Object(f.b)(this.afs.schedulers.insideAngular))}}]),e}(),O=function(){function e(t,n){Object(i.a)(this,e),this.query=t,this.afs=n}return Object(r.a)(e,[{key:"stateChanges",value:function(e){return e&&0!==e.length?_(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst,Object(l.a)(function(t){return t.filter(function(t){return e.indexOf(t.type)>-1})}),Object(m.a)(function(e){return e.length>0})):_(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"auditTrail",value:function(e){return this.stateChanges(e).pipe(Object(v.a)(function(e,t){return[].concat(Object(g.a)(e),Object(g.a)(t))},[]))}},{key:"snapshotChanges",value:function(e){var t=b(e);return y(this.query,t,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"valueChanges",value:function(){return h(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst,Object(l.a)(function(e){return e.payload.docs.map(function(e){return e.data()})}))}},{key:"get",value:function(e){return Object(a.a)(this.query.get(e)).pipe(Object(f.b)(this.afs.schedulers.insideAngular))}}]),e}(),S=n("XU1U"),k=n("Czum"),x=n("ofXK"),T=n("Wcq6"),E=n.n(T),I=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},D=function(e,t){return function(n,i){t(n,i,e)}},M=new o.y("angularfire2.enableFirestorePersistence"),A=new o.y("angularfire2.firestore.persistenceSettings"),P=new o.y("angularfire2.firestore.settings"),L=M,R=A,j=P,N=parseInt(E.a.SDK_VERSION.split(".")[0]),F=parseInt(E.a.SDK_VERSION.split(".")[1]),B=N<5||5==N&&F<8?{timestampsInSnapshots:!0}:{};function V(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=t(e);return{query:n,ref:e}}var $=function(){var e=function(){function e(t,n,r,o,c,u,l){var d=this;Object(i.a)(this,e),this.schedulers=new S.a(u),this.keepUnstableUntilFirst=Object(S.b)(this.schedulers,c),this.firestore=u.runOutsideAngular(function(){var e=Object(k.d)(t,u,n).firestore();return e.settings(o||B),e}),this.persistenceEnabled$=r&&!Object(x.J)(c)?u.runOutsideAngular(function(){try{return Object(a.a)(d.firestore.enablePersistence(l||void 0).then(function(){return!0},function(){return!1}))}catch(e){return Object(s.a)(!1)}}):Object(s.a)(!1)}return Object(r.a)(e,[{key:"collection",value:function(e,t){var n=V("string"==typeof e?this.firestore.collection(e):e,t);return new w(n.ref,n.query,this)}},{key:"collectionGroup",value:function(e,t){if(N<6)throw"collection group queries require Firebase JS SDK >= 6.0";var n=t||function(e){return e},i=this.firestore.collectionGroup(e);return new O(n(i),this)}},{key:"doc",value:function(e){var t;return t="string"==typeof e?this.firestore.doc(e):e,new C(t,this)}},{key:"createId",value:function(){return this.firestore.collection("_").doc().id}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.kc(k.c),o.kc(k.b,8),o.kc(L,8),o.kc(j,8),o.kc(o.M),o.kc(o.J),o.kc(R,8))},e.\u0275prov=o.Wb({token:e,factory:function(t){return e.\u0275fac(t)}}),e=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}([D(0,Object(o.w)(k.c)),D(1,Object(o.K)()),D(1,Object(o.w)(k.b)),D(2,Object(o.K)()),D(2,Object(o.w)(L)),D(3,Object(o.K)()),D(3,Object(o.w)(j)),D(4,Object(o.w)(o.M)),D(6,Object(o.K)()),D(6,Object(o.w)(R)),I("design:paramtypes",[Object,Object,Object,Object,Object,o.J,Object])],e)}()},S3Ua:function(e,t,n){"use strict";function i(e,t){for(;e.length0?"-":"+",a=Math.abs(r),s=a%60,c=i(Math.floor(a/60).toString(),2),u=i(s.toString(),2);return o+c+(t>=3?":":"")+(t>1||s?u:"")},X:function(e,t,n){return n||!e.getTimezoneOffset()?"Z":o.x(e,t,n)},Z:function(e,t,n){return o.X(e,t>=5?3:2,n)}};e.exports.getFormatter=function(e,t){return function(n){var i,r,a,s,c=0,u=!1,l="";if(!n)return null;if(!e)return n;var d="Z"===e[e.length-1]||"'Z'"===e.slice(-3);for(i=0;i=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},SahU:function(e,t,n){"use strict";n.d(t,"a",function(){return v});var i=n("ptfe"),r=n("9ans"),o=n("LvDl"),a=n("fXoL"),s=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},c=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1200?"\u4e0a\u5348":1200===i?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n("wd/R"))},SeVD:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("ngJS"),r=n("NJ4a"),o=n("Lhse"),a=n("kJWO"),s=n("I55L"),c=n("c2HN"),u=n("XoHu"),l=function(e){if(e&&"function"==typeof e[a.a])return l=e,function(e){var t=l[a.a]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(Object(s.a)(e))return Object(i.a)(e);if(Object(c.a)(e))return n=e,function(e){return n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,r.a),e};if(e&&"function"==typeof e[o.a])return t=e,function(e){for(var n=t[o.a]();;){var i=void 0;try{i=n.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e};var t,n,l,d=Object(u.a)(e)?"an invalid object":"'".concat(e,"'"),h="You provided ".concat(d," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(h)}},SjAa:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PostponedOperations=void 0;var i=n("tJvG"),r=n("ti0F");function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=2;return function(u){return u.pipe(e?Object(r.a)(function(t,n){return e(t,n,u)}):c.a,Object(o.a)(1),n?Object(a.a)(t):Object(s.a)(function(){return new i.a}))}}},T016:function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},T4bj:function(e,t,n){"use strict";var i=h(n("czNW")),r=n("zl3R"),o=h(n("uHaw")),a=h(n("LdFP")),s=h(n("GBv4")),c=h(n("PdPS")),u=h(n("Bso4")),l=h(n("x9yN")),d=h(n("UfT8"));function h(e){return e&&e.__esModule?e:{default:e}}var f,p,g=(f=i.default,p=a.default.real(),f.pointerEvents&&o.default.msie?u.default:!f.touch||p.tablet||p.phone?f.touch?c.default:l.default:d.default);(0,r.each)(g.map,function(e,t){(0,s.default)(e,new g(e,t))}),e.exports={down:"dxpointerdown",up:"dxpointerup",move:"dxpointermove",cancel:"dxpointercancel",enter:"dxpointerenter",leave:"dxpointerleave",over:"dxpointerover",out:"dxpointerout"}},T5bk:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("DSFK"),r=n("25BE"),o=n("BsWD"),a=n("PYwp");function s(e){return Object(i.a)(e)||Object(r.a)(e)||Object(o.a)(e)||Object(a.a)()}},T6P2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=n("zl3R"),o=(i=n("cYys"))&&i.__esModule?i:{default:i};var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.memory=[],this.callbacks=(0,o.default)()}var t;return(t=[{key:"add",value:function(e){(0,r.each)(this.memory,function(t,n){return e.apply(e,n)}),this.callbacks.add(e)}},{key:"remove",value:function(e){this.callbacks.remove(e)}},{key:"fire",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:{},o=(0,p.grep)(this._getSynchronizableOptionsForCreateComponent(),function(e){return!(e in r)}),a=this.option(),s=a.integrationOptions,c=this.option(),u=c.nestedComponentOptions,l=(0,h.extend)({integrationOptions:s},(u=u||p.noop)(this));o.forEach(function(e){return l[e]=n.option(e)}),this._extendConfig(r,l);var d=void 0;if((0,m.isString)(t)){var f=(0,i.default)(e)[t](r);d=f[t]("instance")}else e&&((d=t.getInstance(e))?d.option(r):d=new t(e,r));if(d){var v=function(e){var t=e.name,n=e.value;(0,g.inArray)(t,o)>=0&&d.option(t,n)};this.on("optionChanged",v),d.on("disposing",function(){return n.off("optionChanged",v)})}return d},_extendConfig:function(e,t){(0,d.each)(t,function(t,n){!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=n)})},_defaultActionConfig:function(){var e=this.$element(),t=this._modelByElement(e);return(0,h.extend)(this.callBase(),{context:t})},_defaultActionArgs:function(){var e=this.$element(),t=this._modelByElement(e),n=this.element();return(0,h.extend)(this.callBase(),{element:n,model:t})},_optionChanged:function(e){switch(e.name){case"width":case"height":this._renderDimensions();break;case"rtlEnabled":this._invalidate();break;case"elementAttr":this._renderElementAttributes();break;case"disabled":case"integrationOptions":break;default:this.callBase(e)}},_removeAttributes:function(e){for(var t=e.attributes,n=t.length-1;n>=0;n--){var i=t[n];if(i){var r=i.name;r.indexOf("aria-")&&-1===r.indexOf("dx-")&&"role"!==r&&"style"!==r&&"tabindex"!==r||e.removeAttribute(r)}}},_removeClasses:function(e){e.className=e.className.split(" ").filter(function(e){return 0!==e.lastIndexOf("dx-",0)}).join(" ")},_updateDOMComponent:function(e){e?this._renderComponent():this._requireRefresh&&(this._requireRefresh=!1,this._refresh())},endUpdate:function(){var e=this._isInitializingRequired();this.callBase(),this._isUpdateAllowed()&&this._updateDOMComponent(e)},$element:function(){return this._$element},element:function(){var e=this.$element();return(0,f.getPublicElement)(e)},dispose:function(){var e=this.$element().get(0);(0,l.cleanDataRecursive)(e,!0),e.textContent="",this._removeAttributes(e),this._removeClasses(e)},resetOption:function(e){if(this.callBase(e),"width"===e||"height"===e){var t=this.initialOption(e);!(0,m.isDefined)(t)&&this.$element().css(e,"")}},_getAnonymousTemplateName:function(){},_initTemplateManager:function(){if(!this._templateManager&&this._useTemplates()){var e=this.option().integrationOptions;this._templateManager=new c.default((void 0===e?{}:e).createTemplate,this._getAnonymousTemplateName()),this._initTemplates()}},_initTemplates:function(){var e=this,t=this._templateManager.extractTemplates(this.$element()),n=t.templates,i=t.anonymousTemplateMeta,r=this.option("integrationOptions.templates.".concat(i.name));n.forEach(function(t){var n=t.template;e._options.silent("integrationOptions.templates.".concat(t.name),n)}),i.name&&!r&&this._options.silent("integrationOptions.templates.".concat(i.name),i.template)},_getTemplateByOption:function(e){return this._getTemplate(this.option(e))},_getTemplate:function(e){var t=this.option("integrationOptions.templates"),n=this.option("templatesRenderAsynchronously"),i=this.option("integrationOptions.skipTemplates");return this._templateManager.getTemplate(e,t,{isAsyncTemplate:n,skipTemplates:i},this)},_saveTemplate:function(e,t){this._setOptionWithoutOptionChange("integrationOptions.templates."+e,this._templateManager._createTemplate(t))},_useTemplates:function(){return!0}});w.getInstance=function(e){return(0,u.getInstanceByElement)((0,i.default)(e),this)},w.defaultOptions=function(e){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(e)},e.exports=w,e.exports.default=e.exports},Tlft:function(e,t,n){"use strict";var i=d(n("FKN7")),r=d(n("kOZU")),o=n("KAnu"),a=n("5u+F"),s=n("1LL4"),c=n("dYUP"),u=n("3IPI"),l=n("ti0F");function d(e){return e&&e.__esModule?e:{default:e}}var h={month:r.default.inherit({_getViewName:function(){return"month"},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{firstDayOfWeek:void 0,rowCount:6,colCount:7})},_renderImpl:function(){this.callBase(),this._renderHeader()},_renderBody:function(){this.callBase(),this._$table.find(".".concat("dx-calendar-other-view")).addClass("dx-calendar-other-month")},_renderFocusTarget:o.noop,getCellAriaLabel:function(e){return(0,c.format)(e,"longdate")},_renderHeader:function(){var e=(0,i.default)("
"),t=(0,i.default)("").append(e);this._$table.prepend(t);for(var n=0,r=this.option("colCount");n").attr({scope:"col",abbr:r}).text(o);this._appendCell(t,a)},getNavigatorCaption:function(){return(0,c.format)(this.option("date"),"monthandyear")},_isTodayCell:function(e){var t=new Date;return(0,a.sameDate)(e,t)},_isDateOutOfRange:function(e){var t=this.option("min"),n=this.option("max");return!(0,a.dateInRange)(e,t,n,"date")},_isOtherView:function(e){return e.getMonth()!==this.option("date").getMonth()},_getCellText:function(e){return(0,c.format)(e,"d")},_getDayCaption:function(e){var t=e%this.option("colCount");return{full:(0,c.getDayNames)()[t],abbreviated:(0,c.getDayNames)("abbreviated")[t]}},_getFirstCellData:function(){var e=(0,a.getFirstMonthDate)(this.option("date")),t=this._getFirstDayOfWeek()-e.getDay(),n=this.option("colCount");return t>=0&&(t-=n),e.setDate(e.getDate()+t),e},_getNextCellData:function(e){return(e=new Date(e)).setDate(e.getDate()+1),e},_getFirstDayOfWeek:function(){return(0,l.isDefined)(this.option("firstDayOfWeek"))?this.option("firstDayOfWeek"):(0,c.firstDayOfWeekIndex)()},_getCellByDate:function(e){return this._$table.find("td[data-value='".concat((0,u.serializeDate)(e,(0,a.getShortDateFormat)()),"']"))},isBoundary:function(e){return(0,a.sameMonthAndYear)(e,this.option("min"))||(0,a.sameMonthAndYear)(e,this.option("max"))},_getDefaultDisabledDatesHandler:function(e){return function(t){if(e.some(function(e){return(0,a.sameDate)(e,t.date)}))return!0}}}),year:r.default.inherit({_getViewName:function(){return"year"},_isTodayCell:function(e){return(0,a.sameMonthAndYear)(e,new Date)},_isDateOutOfRange:function(e){return!(0,a.dateInRange)(e,(0,a.getFirstMonthDate)(this.option("min")),(0,a.getLastMonthDate)(this.option("max")))},_isOtherView:function(){return!1},_getCellText:function(e){return(0,c.getMonthNames)("abbreviated")[e.getMonth()]},_getFirstCellData:function(){var e=new Date(this.option("date"));return e.setDate(1),e.setMonth(0),e},_getNextCellData:function(e){return(e=new Date(e)).setMonth(e.getMonth()+1),e},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),this._$table.find("td[data-value='".concat((0,u.serializeDate)(t,(0,a.getShortDateFormat)()),"']"))},getCellAriaLabel:function(e){return(0,c.format)(e,"monthandyear")},getNavigatorCaption:function(){return(0,c.format)(this.option("date"),"yyyy")},isBoundary:function(e){return(0,a.sameYear)(e,this.option("min"))||(0,a.sameYear)(e,this.option("max"))}}),decade:r.default.inherit({_getViewName:function(){return"decade"},_isTodayCell:function(e){return(0,a.sameYear)(e,new Date)},_isDateOutOfRange:function(e){var t=this.option("min"),n=this.option("max");return!(0,a.dateInRange)(e.getFullYear(),t&&t.getFullYear(),n&&n.getFullYear())},_isOtherView:function(e){var t=new Date(e);return t.setMonth(1),!(0,a.sameDecade)(t,this.option("date"))},_getCellText:function(e){return(0,c.format)(e,"yyyy")},_getFirstCellData:function(){var e=(0,a.getFirstYearInDecade)(this.option("date"))-1;return new Date(e,0,1)},_getNextCellData:function(e){return(e=new Date(e)).setFullYear(e.getFullYear()+1),e},getNavigatorCaption:function(){var e=this.option("date"),t=(0,a.getFirstYearInDecade)(e),n=new Date(e),i=new Date(e);return n.setFullYear(t),i.setFullYear(t+9),(0,c.format)(n,"yyyy")+"-"+(0,c.format)(i,"yyyy")},_isValueOnCurrentView:function(e,t){return(0,a.sameDecade)(e,t)},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),t.setMonth(0),this._$table.find("td[data-value='".concat((0,u.serializeDate)(t,(0,a.getShortDateFormat)()),"']"))},isBoundary:function(e){return(0,a.sameDecade)(e,this.option("min"))||(0,a.sameDecade)(e,this.option("max"))}}),century:r.default.inherit({_getViewName:function(){return"century"},_isTodayCell:function(e){return(0,a.sameDecade)(e,new Date)},_isDateOutOfRange:function(e){var t=(0,a.getFirstYearInDecade)(e),n=(0,a.getFirstYearInDecade)(this.option("min")),i=(0,a.getFirstYearInDecade)(this.option("max"));return!(0,a.dateInRange)(t,n,i)},_isOtherView:function(e){var t=new Date(e);return t.setMonth(1),!(0,a.sameCentury)(t,this.option("date"))},_getCellText:function(e){var t=(0,c.format)(e,"yyyy"),n=new Date(e);return n.setFullYear(n.getFullYear()+9),t+" - "+(0,c.format)(n,"yyyy")},_getFirstCellData:function(){var e=(0,a.getFirstDecadeInCentury)(this.option("date"))-10;return new Date(e,0,1)},_getNextCellData:function(e){return(e=new Date(e)).setFullYear(e.getFullYear()+10),e},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),t.setMonth(0),t.setFullYear((0,a.getFirstYearInDecade)(t)),this._$table.find("td[data-value='".concat((0,u.serializeDate)(t,(0,a.getShortDateFormat)()),"']"))},getNavigatorCaption:function(){var e=this.option("date"),t=(0,a.getFirstDecadeInCentury)(e),n=new Date(e),i=new Date(e);return n.setFullYear(t),i.setFullYear(t+99),(0,c.format)(n,"yyyy")+"-"+(0,c.format)(i,"yyyy")},isBoundary:function(e){return(0,a.sameCentury)(e,this.option("min"))||(0,a.sameCentury)(e,this.option("max"))}})};e.exports=h},TnqW:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("vuIU"),r=n("1OyB"),o=n("fXoL"),a=function(){var e=Object(i.a)(function e(){Object(r.a)(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.Vb({type:e,selectors:[["","ionicSelectableAddItemTemplate",""]]}),e}()},TssP:function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r,o,a=n("ti0F"),s=(r=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")],function(e){return String(e).replace(r[0],"&").replace(r[1],""").replace(r[2],"'").replace(r[3],"<").replace(r[4],">")}),c=(o=/\s/g,function(e){return!e||!e.replace(o,"")});t.encodeHtml=s,t.quadToObject=function(e){var t=function(e){switch(i(e)){case"string":return e.split(/\s+/,4);case"object":return[e.x||e.h||e.left,e.y||e.v||e.top,e.x||e.h||e.right,e.y||e.v||e.bottom];case"number":return[e];default:return e}}(e),n=parseInt(t&&t[0],10),r=parseInt(t&&t[1],10),o=parseInt(t&&t[2],10),a=parseInt(t&&t[3],10);return isFinite(n)||(n=0),isFinite(r)||(r=n),isFinite(o)||(o=n),isFinite(a)||(a=r),{top:r,right:o,bottom:a,left:n}},t.format=function(){var e,t,n,i=arguments[0],r=[].slice.call(arguments).slice(1);if(a.isFunction(i))return i.apply(this,r);for(var o=0;o=0&&(e="$".replace("$","$$").length,n=n.replace("$",1===e?"$$$$":"$$")),i=i.replace(t,n);return i},t.replaceAll=function(e,t,n){return e.replace(new RegExp("("+(t+"").replace(/([+*?.[^\]$(){}><|=!:])/g,"\\$1")+")","gi"),n)},t.isEmpty=c},UDhR:function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n("wd/R"))},UJab:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n("ti0F"),o=(i=n("OZWN"))&&i.__esModule?i:{default:i},a={ID_PROPERTY_NAME:"id",tryCreateTag:function(e){var t=null;return"string"==typeof e&&a.isEmpty(t={formatCode:e})&&(t=null),t},areEqual:function(e,t){return a.isEmpty(e)&&a.isEmpty(t)||(0,r.isDefined)(e)&&(0,r.isDefined)(t)&&e.formatCode===t.formatCode},isEmpty:function(e){return!(0,r.isDefined)(e)||!(0,r.isDefined)(e.formatCode)||""===e.formatCode},toXml:function(e){return o.default.toXml("numFmt",{numFmtId:e[a.ID_PROPERTY_NAME],formatCode:e.formatCode})}};t.default=a},UOFr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyboard=t.click=t.dxClick=t.focus=t.visibility=t.hover=t.resize=t.active=void 0;var i=s(n("tUd6")),r=s(n("jeLr")),o=s(n("WZmX")),a=n("GCD8");function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){return t?(0,a.addNamespace)(e,t):e}t.active={on:function(e,t,n,i){var o=i.selector,a=i.showTimeout,s=i.hideTimeout,u=i.namespace;r.default.on(e,c("dxactive",u),o,{timeout:a},function(e){return t.execute({event:e,element:e.currentTarget})}),r.default.on(e,c("dxinactive",u),o,{timeout:s},function(e){return n.execute({event:e,element:e.currentTarget})})},off:function(e,t){var n=t.namespace,i=t.selector;r.default.off(e,c("dxactive",n),i),r.default.off(e,c("dxinactive",n),i)}},t.resize={on:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.namespace;r.default.on(e,c("dxresize",i),t)},off:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.namespace;r.default.off(e,c("dxresize",n))}},t.hover={on:function(e,t,n,i){var o=i.selector,a=i.namespace;r.default.on(e,c("dxhoverend",a),o,function(e){return n(e)}),r.default.on(e,c("dxhoverstart",a),o,function(e){t.execute({element:e.target,event:e})})},off:function(e,t){var n=t.selector,i=t.namespace;r.default.off(e,c("dxhoverstart",i),n),r.default.off(e,c("dxhoverend",i),n)}},t.visibility={on:function(e,t,n,i){var o=i.namespace;r.default.on(e,c("dxhiding",o),n),r.default.on(e,c("dxshown",o),t)},off:function(e,t){var n=t.namespace;r.default.off(e,c("dxhiding",n)),r.default.off(e,c("dxshown",n))}},t.focus={on:function(e,t,n,o){var a=o.namespace,s=o.isFocusable;r.default.on(e,c("focusin",a),t),r.default.on(e,c("focusout",a),n),i.default.hasDocumentProperty("onbeforeactivate")&&r.default.on(e,c("beforeactivate",a),function(e){return s(e.target)||e.preventDefault()})},off:function(e,t){var n=t.namespace;r.default.off(e,c("focusin",n)),r.default.off(e,c("focusout",n)),i.default.hasDocumentProperty("onbeforeactivate")&&r.default.off(e,c("beforeactivate",n))},trigger:function(e){return r.default.trigger(e,"focus")}},t.dxClick={on:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.namespace;r.default.on(e,c("dxclick",i),t)},off:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.namespace;r.default.off(e,c("dxclick",n))}},t.click={on:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.namespace;r.default.on(e,c("click",i),t)},off:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.namespace;r.default.off(e,c("click",n))}};var u=0,l={};t.keyboard={on:function(e,t,n){var i="keyboardProcessorId".concat(u++);return l[i]=new o.default({element:e,focusTarget:t,handler:n}),i},off:function(e){e&&l[e]&&(l[e].dispose(),delete l[e])},_getProcessor:function(e){return l[e]}}},UOcs:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("c7TG"),r=n("fXoL"),o=n("3Pt+"),a=function(){function e(e){this.popoverController=e}return e.prototype.ngOnInit=function(){this.comment=this.delivery.comment.length?this.delivery.comment[0].text:""},e.prototype.save=function(){this.delivery.comment=this.comment?[{text:this.comment,createdAt:new Date}]:[],this.delivery.commentCount=this.comment?1:0,this.dismiss()},e.prototype.dismiss=function(){this.popoverController.dismiss()},e.\u0275fac=function(t){return new(t||e)(r.ac(i.Mb))},e.\u0275cmp=r.Ub({type:e,selectors:[["app-delivery-comment"]],inputs:{delivery:"delivery"},decls:14,vars:1,consts:[[1,"ion-padding"],["rows","5","placeholder","Enter any comment here...",3,"ngModel","ngModelChange"],["expand","full",3,"click"],["expand","full",1,"btnDanger",3,"click"]],template:function(e,t){1&e&&(r.gc(0,"ion-header",0),r.gc(1,"ion-title"),r.Rc(2,"Delivery Comment"),r.fc(),r.fc(),r.gc(3,"ion-content"),r.gc(4,"ion-textarea",1),r.nc("ngModelChange",function(e){return t.comment=e}),r.fc(),r.fc(),r.gc(5,"ion-footer"),r.gc(6,"ion-grid"),r.gc(7,"ion-row"),r.gc(8,"ion-col"),r.gc(9,"ion-button",2),r.nc("click",function(){return t.save()}),r.Rc(10,"Save"),r.fc(),r.fc(),r.gc(11,"ion-col"),r.gc(12,"ion-button",3),r.nc("click",function(){return t.dismiss()}),r.Rc(13,"Cancel"),r.fc(),r.fc(),r.fc(),r.fc(),r.fc()),2&e&&(r.Ob(4),r.wc("ngModel",t.comment))},directives:[i.A,i.zb,i.t,i.xb,i.Qb,o.p,o.s,i.y,i.z,i.ib,i.s,i.j],styles:[""]}),e}()},UQCf:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toFixed=void 0;var i=n("z7z0");function r(e,t){var n=Math.pow(10,t);return function(e){return(0,i.sign)(e)*Math.round(Math.abs(e))}(e*(10*n)/10)/n}t.toFixed=function(e,t){var n=t||0,i=n>0?r.apply(void 0,arguments):e;return i.toFixed(n)}},URBM:function(e,t,n){"use strict";e.exports={"af-NA":1,agq:1,ak:1,ar:6,"ar-EH":1,"ar-ER":1,"ar-KM":1,"ar-LB":1,"ar-MA":1,"ar-MR":1,"ar-PS":1,"ar-SO":1,"ar-SS":1,"ar-TD":1,"ar-TN":1,asa:1,ast:1,az:1,"az-Cyrl":1,bas:1,be:1,bem:1,bez:1,bg:1,bm:1,br:1,bs:1,"bs-Cyrl":1,ca:1,ce:1,cgg:1,ckb:6,cs:1,cu:1,cy:1,da:1,de:1,dje:1,dsb:1,dua:1,dyo:1,ee:1,el:1,"en-001":1,"en-AE":6,"en-BI":1,"en-MP":1,"en-SD":6,eo:1,es:1,et:1,eu:1,ewo:1,fa:6,ff:1,fi:1,fo:1,fr:1,"fr-DJ":6,"fr-DZ":6,"fr-SY":6,fur:1,fy:1,ga:1,gd:1,gl:1,gsw:1,gv:1,ha:1,hr:1,hsb:1,hu:1,hy:1,ia:1,ig:1,is:1,it:1,jgo:1,jmc:1,ka:1,kab:6,kde:1,kea:1,khq:1,kk:1,kkj:1,kl:1,"ko-KP":1,ksb:1,ksf:1,ksh:1,ku:1,kw:1,ky:1,lag:1,lb:1,lg:1,ln:1,lrc:6,lt:1,lu:1,lv:1,"mas-TZ":1,mfe:1,mg:1,mgo:1,mi:1,mk:1,mn:1,ms:1,mua:1,mzn:6,naq:1,nb:1,nds:1,nl:1,nmg:1,nn:1,nnh:1,nus:1,nyn:1,os:1,pl:1,prg:1,ps:6,"pt-AO":1,"pt-CH":1,"pt-CV":1,"pt-GQ":1,"pt-GW":1,"pt-LU":1,"pt-ST":1,"pt-TL":1,"qu-BO":1,"qu-EC":1,rm:1,rn:1,ro:1,rof:1,ru:1,rw:1,rwk:1,sah:1,sbp:1,se:1,ses:1,sg:1,shi:1,"shi-Latn":1,si:1,sk:1,sl:1,smn:1,so:1,"so-DJ":6,sq:1,sr:1,"sr-Latn":1,sv:1,sw:1,"ta-LK":1,"ta-MY":1,teo:1,tg:1,"ti-ER":1,tk:1,to:1,tr:1,tt:1,twq:1,tzm:1,uk:1,uz:1,"uz-Arab":6,"uz-Cyrl":1,vai:1,"vai-Latn":1,vi:1,vo:1,vun:1,wae:1,wo:1,xog:1,yav:1,yi:1,yo:1,zgh:1}},USCx:function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n("wd/R"))},UY7p:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("vuIU"),r=n("1OyB"),o=n("fXoL"),a=function(){var e=Object(i.a)(function e(){Object(r.a)(this,e)});return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.Vb({type:e,selectors:[["","ionicSelectableIconTemplate",""]]}),e}()},UcRe:function(e,t,n){"use strict";var i=S(n("FKN7")),r=n("tUd6"),o=n("jeLr"),a=S(n("imRD")),s=S(n("XCcL")),c=S(n("KAnu")),u=S(n("cGv3")),l=n("ti0F"),d=n("1LL4"),h=n("zl3R"),f=n("v4HY"),p=S(n("Hv54")),g=S(n("Wmz/")),m=n("GCD8"),v=n("T4bj"),_=S(n("7j00")),y=S(n("hMwJ")),b=S(n("ZA3g")),w=S(n("XWCB")),C=n("tJvG"),O=S(n("D8Ap"));function S(e){return e&&e.__esModule?e:{default:e}}var k="dx-treeview",x="".concat(k,"-node"),T="".concat(x,"-container"),E="".concat(x,"-loadindicator"),I="".concat(x,"-container-opened"),D="".concat(x,"-is-leaf"),M="".concat(k,"-item"),A="".concat(M,"-with-checkbox"),P="".concat(M,"-without-checkbox"),L="".concat(M,"-data"),R="".concat(k,"-toggle-item-visibility"),j="".concat(k,"-loadindicator"),N="".concat(k,"-loadindicator-wrapper"),F="".concat(k,"-toggle-item-visibility-opened"),B="".concat(k,"-select-all-item"),V="dx-state-invisible",$="dx-state-disabled",H="dxTreeView_expand",U="data-item-id",z=g.default.inherit({_supportedKeys:function(e){var t=this,n=function(e){var n=(0,i.default)(t.option("focusedElement"));n.length&&(e.target=n,e.currentTarget=n,t._itemClickHandler(e,n.children("."+M)),t._getEventNameByOption(t.option("expandEvent"))===(0,m.addNamespace)(s.default.name,H)&&t._expandEventHandler(e))},r=function(e){e.preventDefault(),t._changeCheckBoxState((0,i.default)(t.option("focusedElement")))},o=function(e,t){if(this.option("expandAllEnabled")){t.preventDefault();var n=(0,i.default)(this.option("focusedElement"));if(n.length){var r=this._getItemData(n.find(".".concat(M)));this._toggleExpandedNestedItems([r],e)}}};return(0,d.extend)(this.callBase(),{enter:this._showCheckboxes()?r:n,space:this._showCheckboxes()?r:n,asterisk:o.bind(this,!0),minus:o.bind(this,!1)})},_changeCheckBoxState:function(e){var t=this._getCheckBoxInstance(e),n=t.option("value");t.option("disabled")||this._updateItemSelection(!n,e.find("."+M).get(0),!0,e)},_toggleExpandedNestedItems:function(e,t){if(e)for(var n=0,i=e.length;n").addClass(j),this._createComponent(this._treeViewLoadIndicator,w.default,{}),this._treeViewLoadIndicator},_dataSourceLoadingChangedHandler:function(e){var t;if(this._isVirtualMode()&&(t=this._combineFilter(),this._dataSource.filter(t)),e&&!this._dataSource.isLoaded()){this.option("items",[]);var n=(0,i.default)("
").addClass(N);this._createTreeViewLoadIndicator().appendTo(n),this.itemsContainer().append(n),this._isVirtualMode()&&this._dataSource.filter()!==t&&this._dataSource.filter([])}else this._removeTreeViewLoadIndicator()},_initStoreChangeHandlers:function(){var e=this;"plain"===this.option("dataStructure")&&this._dataSource&&this._dataSource.store().on("inserted",function(t){e.option().items=e.option("items").concat(t),e._dataAdapter.addItem(t),e._dataAdapter.isFiltered(t)&&e._updateLevel(e._parentIdGetter(t))}).on("removed",function(t){var n=e._dataAdapter.getNodeByKey(t);e.option("items")[e._dataAdapter.getIndexByKey(n.internalFields.key)]=0,e._markChildrenItemsToRemove(n),e._removeItems(),e._dataAdapter.removeItem(t),e._updateLevel(e._parentIdGetter(n))})},_markChildrenItemsToRemove:function(e){var t=this;(0,h.each)(e.internalFields.childrenKeys,function(e,n){t.option("items")[t._dataAdapter.getIndexByKey(n)]=0,t._markChildrenItemsToRemove(t._dataAdapter.getNodeByKey(n))})},_removeItems:function(){var e=this,t=(0,d.extend)(!0,[],this.option("items")),n=0;(0,h.each)(t,function(t,i){i||(e.option("items").splice(t-n,1),n++)})},_updateLevel:function(e){var t=this._getContainerByParentKey(e);this._renderItems(t,this._dataAdapter.getChildrenNodes(e))},_getOldContainer:function(e){return e.length?e.children(".".concat(T)):this._scrollableContainer?this._scrollableContainer.$content().children():(0,i.default)()},_getContainerByParentKey:function(e){var t=this._dataAdapter.getNodeByKey(e),n=t?this._getNodeElement(t):[];this._getOldContainer(n).remove();var i=this._renderNodeContainer(n);return this._isRootLevel(e)&&(this._scrollableContainer||this._renderScrollableContainer(),this._scrollableContainer.$content().append(i)),i},_isRootLevel:function(e){return e===this.option("rootValue")},_getAccessors:function(){var e=this.callBase();return e.push("hasItems"),e},_getDataAdapterOptions:function(){return{rootValue:this.option("rootValue"),multipleSelection:!this._isSingleSelection(),recursiveSelection:this._isRecursiveSelection(),recursiveExpansion:this.option("expandNodesRecursive"),selectionRequired:this.option("selectionRequired"),dataType:this.option("dataStructure"),sort:this._dataSource&&this._dataSource.sort()}},_initMarkup:function(){this._renderScrollableContainer(),this._renderEmptyMessage(this._dataAdapter.getRootNodes()),this.callBase(),this.setAria("role","tree")},_renderContentImpl:function(){var e=this._renderNodeContainer();this._scrollableContainer.$content().append(e),this.option("items")&&this.option("items").length&&(this._renderItems(e,this._dataAdapter.getRootNodes()),this._initExpandEvent(),this._selectAllEnabled()&&(this._createSelectAllValueChangedAction(),this._renderSelectAllItem(e)))},_isVirtualMode:function(){return this.option("virtualModeEnabled")&&this._isDataStructurePlain()&&!!this.option("dataSource")},_isDataStructurePlain:function(){return"plain"===this.option("dataStructure")},_fireContentReadyAction:function(){var e=this.getDataSource(),t=e&&!e.isLoaded();this._scrollableContainer&&u.default.hasWindow()&&this._scrollableContainer.update(),t||this.callBase(),this._scrollableContainer&&u.default.hasWindow()&&this._scrollableContainer.update()},_renderScrollableContainer:function(){this._scrollableContainer=this._createComponent((0,i.default)("
").appendTo(this.$element()),b.default,{direction:this.option("scrollDirection"),useKeyboard:!1})},_renderNodeContainer:function(e){var t=(0,i.default)("