marketplacepos 3.13.2 → 3.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/{chunk-FG5CLZ6F.js → chunk-2HWKPGG2.js} +1 -1
- package/Marketplace/chunk-4QAG4XV5.js +1 -0
- package/Marketplace/{chunk-OOBUECHW.js → chunk-4QGD62JF.js} +1 -1
- package/Marketplace/{chunk-5TLAX43C.js → chunk-6NUQBHVK.js} +1 -1
- package/Marketplace/chunk-6OWGDOJP.js +2 -0
- package/Marketplace/{chunk-VXKEHQ73.js → chunk-AHK65AO6.js} +1 -1
- package/Marketplace/{chunk-CS5AGUUI.js → chunk-E5ZXRZGR.js} +1 -1
- package/Marketplace/chunk-EVSENZKK.js +1 -0
- package/Marketplace/{chunk-NUHOGS4I.js → chunk-F3ASIPCS.js} +1 -1
- package/Marketplace/{chunk-TOGKMWQK.js → chunk-IIUTIA47.js} +1 -1
- package/Marketplace/chunk-JBAG4TSB.js +1 -0
- package/Marketplace/{chunk-AATQG55J.js → chunk-MQFYT7UC.js} +1 -1
- package/Marketplace/{chunk-4VJSS2RP.js → chunk-O6SPNQMQ.js} +1 -1
- package/Marketplace/{chunk-ABGYQNLC.js → chunk-P7KW5VRW.js} +1 -1
- package/Marketplace/{chunk-LCOFOENF.js → chunk-QCFKCDKM.js} +1 -1
- package/Marketplace/{chunk-FQUPOWRE.js → chunk-QPAHUI3H.js} +1 -1
- package/Marketplace/{chunk-MFCHLZW7.js → chunk-RGIPA4RC.js} +1 -1
- package/Marketplace/{chunk-M67NQISG.js → chunk-VD46BM3E.js} +1 -1
- package/Marketplace/chunk-WQ26K26X.js +1 -0
- package/Marketplace/{chunk-PMOYSZXY.js → chunk-XKP2LBOB.js} +1 -1
- package/Marketplace/chunk-Y2XXDDNX.js +1 -0
- package/Marketplace/{chunk-FON6ZRGN.js → chunk-YERME2YY.js} +1 -1
- package/Marketplace/{chunk-VOVI2B6O.js → chunk-YOU5DY2R.js} +1 -1
- package/Marketplace/{chunk-ENMVK7WN.js → chunk-ZHBHYT7I.js} +1 -1
- package/Marketplace/{chunk-KK2VCYNM.js → chunk-ZVNVZRA7.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-6U2BHS4K.js → main-PVT3FMFE.js} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-ARA3PK2O.js +0 -1
- package/Marketplace/chunk-BRTVFFDI.js +0 -1
- package/Marketplace/chunk-GEEAZIV4.js +0 -1
- package/Marketplace/chunk-KRNA3GN5.js +0 -2
- package/Marketplace/chunk-MUFSHB3B.js +0 -1
- package/Marketplace/chunk-WMVEBC4Z.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ne,b as oe,c as re,d as ae,e as le,f as pe,g as se}from"./chunk-DZHNXVSW.js";import{b as ie}from"./chunk-3LRKHZJF.js";import{a as ee,b as te}from"./chunk-7CEWM7GE.js";import{a as X}from"./chunk-
|
|
1
|
+
import{a as ne,b as oe,c as re,d as ae,e as le,f as pe,g as se}from"./chunk-DZHNXVSW.js";import{b as ie}from"./chunk-3LRKHZJF.js";import{a as ee,b as te}from"./chunk-7CEWM7GE.js";import{a as X}from"./chunk-QCFKCDKM.js";import{g as Q}from"./chunk-YERME2YY.js";import{e as W}from"./chunk-IPX66YIX.js";import"./chunk-HBHGO2RV.js";import{l as Y,m as Z}from"./chunk-PIDUM6XT.js";import"./chunk-43TMSPFC.js";import"./chunk-4TYJR476.js";import{c as z,h as K,k as q,u as J}from"./chunk-F5YRASNU.js";import"./chunk-2UXFUEON.js";import{$ as D,Eb as v,Fb as m,Ga as M,Gb as O,Hb as B,Ia as p,Ja as I,Jb as L,Kb as F,Lb as R,Mb as P,Pb as x,Ya as c,_a as s,aa as T,ca as U,cd as j,ed as $,ga as C,gd as G,ha as N,kb as o,lb as r,mb as d,nb as f,oa as g,ob as _,pa as h,qb as S,rc as w,sc as V,tb as y,tc as A,vb as u,za as k,zc as H}from"./chunk-77JORVC2.js";import"./chunk-CRRJCY55.js";var ge=e=>[e];function he(e,t){if(e&1&&(f(0),o(1,"a",9),m(2),r(),_()),e&2){let a=t.$implicit;p(),s("routerLink",x(2,ge,a.url)),p(),B(" ",a.title,"")}}var ce=(()=>{let t=class t{constructor(){this.tabs=[{Title:"Download By Url",Url:"/menu/products/download/by-url",Description:"Download products information by product URL as a parameter"}],this.moreMenu=[{title:"Sold In Channel",url:"/menu/products/status/sold-in-channel"},{title:"In POS",url:"/menu/products/status/in-pos"},{title:"Not In Channel",url:"/menu/products/status/not-in-channel"},{title:"Duplicate SKU",url:"/menu/products/status/duplicate-sku"}]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=C({type:t,selectors:[["app-download"]],decls:12,vars:2,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid","d-flex","align-items-center","justify-content-between"],[3,"Tabs"],[1,"dropdown","me-6"],["role","button","data-bs-toggle","dropdown","aria-expanded","false",1,"text-dark"],[1,"fa-solid","fa-bars","fa-lg"],[1,"dropdown-menu","dropdown-menu-end","row"],[1,"d-block"],[4,"ngFor","ngForOf"],[1,"dropdown-item",3,"routerLink"]],template:function(i,l){i&1&&(o(0,"nav",0)(1,"div",1)(2,"div"),d(3,"nav-tab",2),r()(),o(4,"div")(5,"div",3)(6,"a",4),d(7,"i",5),r(),o(8,"div",6)(9,"div",7),c(10,he,3,4,"ng-container",8),r()()()()(),d(11,"router-outlet")),i&2&&(p(3),s("Tabs",l.tabs),p(7),s("ngForOf",l.moreMenu))},dependencies:[w,ee,j,$]});let e=t;return e})();var E=(()=>{let t=class t{constructor(n){this.httpService=n}download(n){return this.httpService.post("/api/Product/downloadurl",n)}};t.\u0275fac=function(i){return new(i||t)(U(W))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Ce=e=>({"background-color":e});function ye(e,t){if(e&1&&(o(0,"th"),m(1),r()),e&2){let a=t.$implicit;p(),O(a.column)}}function ve(e,t){if(e&1&&(f(0),o(1,"td"),d(2,"span",6),r(),_()),e&2){let a=t.$implicit,n=u().$implicit;p(2),s("innerHTML",n[a.prop],M)}}function xe(e,t){if(e&1&&(o(0,"tr",5),c(1,ve,3,1,"ng-container",3),r()),e&2){let a=t.$implicit,n=u();s("ngStyle",x(2,Ce,a.Status>200?"#F4D6D5":"#DEE9C9")),p(),s("ngForOf",n.configs)}}var de=(()=>{let t=class t{constructor(){this.eventClose=new k}ngOnInit(){}onClose(){this.eventClose.emit()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=C({type:t,selectors:[["app-response-api-list"]],inputs:{configs:"configs",data:"data",status:"status"},outputs:{eventClose:"onClose"},decls:7,vars:2,consts:[[1,"table-responsive"],[1,"table"],[1,"thead-light"],[4,"ngFor","ngForOf"],[3,"ngStyle",4,"ngFor","ngForOf"],[3,"ngStyle"],[3,"innerHTML"]],template:function(i,l){i&1&&(o(0,"div",0)(1,"table",1)(2,"thead",2)(3,"tr"),c(4,ye,2,1,"th",3),r()(),o(5,"tbody"),c(6,xe,2,4,"tr",4),r()()()),i&2&&(p(4),s("ngForOf",l.configs),p(2),s("ngForOf",l.data))},dependencies:[w,A]});let e=t;return e})();function be(e,t){if(e&1){let a=S();f(0),o(1,"button",15),y("click",function(){g(a);let i=u(),l=v(11);return h(i.onNewStepperState(l))}),d(2,"i",16),m(3," New "),r(),_()}}function Ee(e,t){if(e&1){let a=S();f(0),o(1,"button",15),y("click",function(){g(a),u();let i=v(11);return h(i.previous())}),m(2," Back "),r(),_()}}function Ie(e,t){if(e&1){let a=S();f(0),o(1,"button",17),y("click",function(){g(a);let i=u(),l=v(11);return h(i.onStepperNext(l))}),m(2," Next "),r(),_()}}function De(e,t){if(e&1){let a=S();f(0),o(1,"button",18),y("click",function(){g(a);let i=u(),l=v(11);return h(i.onSubmit(l))}),m(2,"Download"),r(),_()}if(e&2){let a=u();p(),s("disabled",!a.urls)}}function Te(e,t){e&1&&(d(0,"i",19),o(1,"span"),m(2,"Instruction"),r())}function Ue(e,t){e&1&&(o(0,"div",20)(1,"div",21)(2,"div",22)(3,"h4",23),m(4,"Note"),r()(),o(5,"div",24)(6,"ol",25)(7,"li"),m(8," Use this form to Download Products from Tokopedia using product URL "),r(),o(9,"li"),m(10," Copy Product URL from "),o(11,"a",26),m(12,"https://seller.tokopedia.com/ "),r(),m(13," and paste in this form "),r(),o(14,"li"),m(15," Use New Line when you want to input several product URLs "),r()()()()())}function Ne(e,t){e&1&&(d(0,"i",27),o(1,"span"),m(2,"Download"),r())}function ke(e,t){if(e&1){let a=S();o(0,"div",20)(1,"textarea",28),R("ngModelChange",function(i){g(a);let l=u();return F(l.urls,i)||(l.urls=i),h(i)}),r()()}if(e&2){let a=u();p(),s("placeholder",a.urlPlaceholder),L("ngModel",a.urls)}}function Me(e,t){e&1&&(d(0,"i",29),o(1,"span"),m(2,"Finish"),r())}function Oe(e,t){if(e&1&&(o(0,"div",20),d(1,"app-response-api-list",30),r()),e&2){let a=u();p(),s("data",a.downloadResponses)("configs",a.configs)}}function Be(e,t){e&1&&(o(0,"h6"),m(1,"1"),r())}function Le(e,t){e&1&&(o(0,"h6"),m(1,"2"),r())}function Fe(e,t){e&1&&(o(0,"h6"),m(1,"3"),r())}var ue=(()=>{let t=class t{constructor(n,i){this.downloadService=n,this.authService=i,this.configs=[{column:"Url",prop:"URL"},{column:"POS",prop:"Name"},{column:"Exception",prop:"Message"}],this.downloadResponses=[],this.stepperState="DOWNLOAD",this.urlPlaceholder=`https://tokopedia.com/tokoriyanadi/kaos-polos-biru
|
|
2
2
|
https://tokopedia.com/tokoriyanadi/Celana-Chinos-Coklat`,this.currentDomain=this.authService.getDomain()}onStepperChange(n){this.stepperState=n.selectedStep.state}onSubmit(n){let i=this.urls.split(/\r?\n/);this.downloadService.download(i).subscribe(l=>{this.downloadResponses=l,this.mappingLinkToProduct(),this.onStepperNext(n)})}mappingLinkToProduct(){this.downloadResponses=this.downloadResponses.map(n=>(n.Name=n?.Name?`<a href="${this.currentDomain}/menu/Products/Catalog/Products/Info?ID=${n.ID}" target="_blank">
|
|
3
3
|
${n?.Name}
|
|
4
4
|
</a>`:"-",n))}onNewStepperState(n){this.downloadResponses=[],this.urls=null,this.stepperState="DOWNLOAD",n.reset(),this.onStepperNext(n)}onStepperNext(n){n.selected.completed=!0,n.next()}};t.\u0275fac=function(i){return new(i||t)(I(E),I(Q))},t.\u0275cmp=C({type:t,selectors:[["app-by-url"]],features:[P([{provide:ne,useValue:{displayDefaultIndicatorType:!1}}])],decls:24,vars:11,consts:[["stepper",""],["headerTitle","Tokopedia - Product Download By Url",3,"hideSearchBox","hideSearchDropdown"],[4,"ngIf"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-12"],["linear","",1,"stepper-downloadByUrl",3,"selectionChange","selectedIndex"],["state","GUIDE",3,"editable","completed"],["matStepLabel",""],["matStepContent",""],["state","DOWNLOAD",3,"editable","completed"],["state","FINISH"],["matStepperIcon","GUIDE"],["matStepperIcon","DOWNLOAD"],["matStepperIcon","FINISH"],[1,"btn","btn-outline-secondary","btn-fill","btn-lg",3,"click"],["aria-hidden","true",1,"fa","fa-file-alt","me-2"],["type","button",1,"btn","btn-outline-secondary","btn-fill","btn-lg","ms-3",3,"click"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","text-white","ms-3",3,"click","disabled"],[1,"fa-solid","fa-info","me-3"],[1,"mt-8"],[1,"card","border","w-50"],[1,"card-header","py-6"],[1,"text-primary"],[1,"card-body",2,"padding-left","0px"],[1,"mt-6"],["href","https://seller.tokopedia.com","target","_blank"],[1,"fa-solid","fa-download","me-3"],["name","url","cols","30","rows","25",1,"form-control",3,"ngModelChange","placeholder","ngModel"],[1,"fa-sharp","fa-solid","fa-flag","me-3"],["status","error",3,"data","configs"]],template:function(i,l){if(i&1){let fe=S();o(0,"mainpanel",1)(1,"actions"),c(2,be,4,0,"ng-container",2)(3,Ee,3,0,"ng-container",2)(4,Ie,3,0,"ng-container",2)(5,De,3,1,"ng-container",2),r(),o(6,"content")(7,"div",3)(8,"div",4)(9,"div",5)(10,"mat-stepper",6,0),y("selectionChange",function(_e){return g(fe),h(l.onStepperChange(_e))}),o(12,"mat-step",7),c(13,Te,3,0,"ng-template",8)(14,Ue,16,0,"ng-template",9),r(),o(15,"mat-step",10),c(16,Ne,3,0,"ng-template",8)(17,ke,2,2,"ng-template",9),r(),o(18,"mat-step",11),c(19,Me,3,0,"ng-template",8)(20,Oe,2,2,"ng-template",9),r(),c(21,Be,2,0,"ng-template",12)(22,Le,2,0,"ng-template",13)(23,Fe,2,0,"ng-template",14),r()()()()()()}i&2&&(s("hideSearchBox",!0)("hideSearchDropdown",!0),p(2),s("ngIf",l.stepperState=="FINISH"),p(),s("ngIf",l.stepperState=="DOWNLOAD"),p(),s("ngIf",l.stepperState=="GUIDE"),p(),s("ngIf",l.stepperState=="DOWNLOAD"),p(5),s("selectedIndex",1),p(2),s("editable",l.stepperState!="FINISH")("completed",!0),p(3),s("editable",l.stepperState!="FINISH")("completed",!1))},dependencies:[V,z,K,q,Y,le,oe,pe,re,ae,de],styles:[`.card-header{background-color:#00000008}mat-stepper.stepper-downloadByUrl>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container{position:relative;width:60%;left:18%}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as te}from"./chunk-E5ZXRZGR.js";import{a as ee}from"./chunk-WJI6JIBR.js";import{a as I}from"./chunk-BSBYMQ7J.js";import{b as N,c as ne}from"./chunk-Y2XXDDNX.js";import"./chunk-2GZOVNPU.js";import"./chunk-662E5VTA.js";import{a as Z}from"./chunk-NNPT3RN6.js";import"./chunk-G6CZHXQI.js";import"./chunk-M4VGME5L.js";import"./chunk-5WVUQE43.js";import"./chunk-AAIK6JQ3.js";import{g as $}from"./chunk-YERME2YY.js";import{b as j,e as G}from"./chunk-IPX66YIX.js";import"./chunk-HBHGO2RV.js";import{d as q,l as X,m as Y}from"./chunk-PIDUM6XT.js";import"./chunk-43TMSPFC.js";import"./chunk-4TYJR476.js";import{c as W,h as z,k as H,m as K,u as Q}from"./chunk-F5YRASNU.js";import{c as J}from"./chunk-2UXFUEON.js";import{B as V,Fb as y,Ia as u,Ja as h,Jb as b,Kb as P,Lb as M,Mb as R,Nb as O,Wb as f,X as D,Xb as S,Ya as _,_a as d,da as F,ga as T,kb as l,lb as p,mb as E,nb as L,oa as s,ob as B,pa as c,qb as v,sc as k,tb as C,vb as o,vc as A,zc as U}from"./chunk-77JORVC2.js";import"./chunk-CRRJCY55.js";function ie(a,r){if(a&1){let n=v();l(0,"button",14),C("click",function(){s(n);let t=o().ngIf,i=o(2);return c(i.onUpdateItems(t))}),E(1,"i",15),y(2," Update "),p()}}function ae(a,r){if(a&1&&(l(0,"actions")(1,"div",12),_(2,ie,3,0,"button",13),p()()),a&2){let n=r.ngIf,e=o(2);u(2),d("ngIf",e.productService.hasSelectionVariant(n))}}function oe(a,r){if(a&1){let n=v();L(0),l(1,"app-table",16),C("onToggle",function(t){s(n);let i=o(2);return c(i.onShowDifferenceStock(t))})("onSubmit",function(t){s(n);let i=o(2);return c(i.updateStockByVariant(t))}),p(),B()}if(a&2){let n=r.ngIf,e=o(2);u(),d("data",n)("channel",e.channelOptions)("showProductToggle",!0)("filter",e.searchFilter)}}function re(a,r){if(a&1){let n=v();l(0,"mainpanel",1),C("onSubmit",function(t){s(n);let i=o();return c(i.onSearch(t))}),_(1,ae,3,1,"actions",2),f(2,"async"),l(3,"filters")(4,"div")(5,"label",3),y(6,"PageNumber"),p(),l(7,"input",4),M("ngModelChange",function(t){s(n);let i=o();return P(i.searchFilter.PageNumber,t)||(i.searchFilter.PageNumber=t),c(t)}),p()(),l(8,"div",5)(9,"label",6),y(10,"Page Size"),p(),l(11,"input",7),M("ngModelChange",function(t){s(n);let i=o();return P(i.searchFilter.RowCount,t)||(i.searchFilter.RowCount=t),c(t)}),p()()(),l(12,"content")(13,"div",8)(14,"div",9)(15,"div",10),_(16,oe,2,4,"ng-container",2),f(17,"async"),l(18,"infinite-paginator",11),f(19,"async"),C("onNextPage",function(){s(n);let t=o();return c(t.paginationService.onNextPage(t.searchFilter))})("onLastPage",function(){s(n);let t=o();return c(t.paginationService.onLastPage(t.searchFilter))})("onGetRowCount",function(){s(n);let t=o();return c(t.paginationService.getRowCount(t.searchFilter))}),p()()()()()()}if(a&2){let n=o();d("pageData",n.pageData)("hideSearchBox",!1)("textButton","Search"),u(),d("ngIf",S(2,13,n.paginationService.data$)),u(6),b("ngModel",n.searchFilter.PageNumber),u(4),b("ngModel",n.searchFilter.RowCount),u(5),d("ngIf",S(17,15,n.paginationService.data$)),u(2),d("totalData",n.paginationService.totalData())("hideCount",n.paginationService.hideCount())("rowCount",S(19,17,n.paginationService.totalRowCount$))("pageNumber",n.paginationService.pageNumber())("disableNextButton",n.paginationService.disableNextButton())("goToLastPage",n.paginationService.isLastPage())}}var Ve=(()=>{let r=class r{constructor(e,t,i,g,x){this.http=e,this.toastr=t,this.dialog=i,this.productService=g,this.authService=x,this.paginationService=F(N),this.loaderEndpoint="InventoryLoader/GetMultipleInventoryComparison",this.dataEndpoint="Inventory/GetMultipleChannelComparison",this.allDataCountEndpoint="Inventory/GetMultipleChannelComparisonRowCount",this.filterTypeOptions=[{Key:1,Value:"All"},{Key:3,Value:"Difference"}],this.pageData={Title:"Inventory",Nav:[{Title:"Inventory Cache",Url:"/menu/inventory/pos",Active:!0},{Title:"Inventory Realtime",Url:"/menu/inventory/realtime",Active:!1}]},this.channelOptions=this.authService.getChannels()}ngOnInit(){this.initPageLoader()}initPageLoader(){this.paginationService.fetchDataEndpoint=this.dataEndpoint,this.paginationService.fethRowCountEndpoint=this.allDataCountEndpoint,this.loader$=this.http.post(`/API/${this.loaderEndpoint}`,{}).pipe(D(e=>{e.Filter={PageNumber:e.Filter.PageNumber,filterModel:I.ALL,RowCount:e.Filter.PageSize,HiddenIPOSInventory:e.Filter.HiddenIPOSInventory},this.searchFilter=e.Filter,this.paginationService.reloadPagination(this.searchFilter)}))}onSearch(e){this.searchFilter.text=e,this.paginationService.reloadPagination(this.searchFilter)}updateStock(e,t){let i=this.productService.selectedVariantProduct(e);if(i.length>0){let x=i.map(m=>({ID:m.ID,Code:m.Code,Inventory:m.Inventory}));var g=t.filter(m=>m.selected).map(m=>m.ID);let w={ListChannelID:g,List:x};this.http.post("/api/Inventory/UpdateChannel",w).subscribe(m=>{this.paginationService.reloadPagination(this.searchFilter),this.toastr.success("Successfully updated "+w.List.length+" variants in "+w.ListChannelID.length+" channels","Success")})}}updateStockByVariant(e){let t={ID:e.ChannelID,ChannelItemID:e.ChannelItemID,ChannelVariantID:e.ChannelVariationID,NewQuantity:parseFloat(e.Inventory),VariantID:e.ID,SKU:e.Sku};this.http.post("/api/Inventory/UpdateQuantityByItem",t).subscribe(i=>{this.paginationService.reloadPagination(this.searchFilter);let g=this.productService.findChannelById(t.ID,this.channelOptions);this.toastr.success("Successfully updated "+e.ItemName+"("+e.VarName+") inventory in "+g.Name+" to "+t.NewQuantity,"Success")})}onShowDifferenceStock(e){e?this.searchFilter.filterModel=I.DIFFERENCE:this.searchFilter.filterModel=I.ALL,this.paginationService.reloadPagination(this.searchFilter)}onUpdateItems(e){let t=this.productService.selectedVariantProduct(e);this.dialog.open(ee,{data:{selectedItems:t,channels:JSON.parse(JSON.stringify(this.channelOptions))},width:"600px"}).afterClosed().pipe(V(i=>J.IsNotEmpty(i))).subscribe(i=>{this.updateStock(e,i)})}};r.\u0275fac=function(t){return new(t||r)(h(G),h(j),h(q),h(Z),h($))},r.\u0275cmp=T({type:r,selectors:[["app-multi-channel-comparison"]],standalone:!0,features:[R([N]),O],decls:2,vars:3,consts:[["headerTitle","Inventory Comparison",3,"pageData","hideSearchBox","textButton","onSubmit",4,"ngIf"],["headerTitle","Inventory Comparison",3,"onSubmit","pageData","hideSearchBox","textButton"],[4,"ngIf"],["for","PageNumber",1,"fw-bold"],["type","number","id","PageNumber","placeholder","PageNumber","name","PageNumber","data-toggle","tooltip","matTooltip","Page Number",1,"form-control","mt-2",3,"ngModelChange","ngModel"],[1,"mt-5"],["for","RowCount",1,"fw-bold"],["type","number","id","RowCount","placeholder","Page Size","name","RowCount","data-toggle","tooltip","matTooltip","Page Size",1,"form-control","mt-2",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],[1,"d-flex"],["type","button","class","btn btn-success shadow-sm rounded me-3",3,"click",4,"ngIf"],["type","button",1,"btn","btn-success","shadow-sm","rounded","me-3",3,"click"],[1,"fas","fa-chevron-circle-up"],["table","inventory",3,"onToggle","onSubmit","data","channel","showProductToggle","filter"]],template:function(t,i){t&1&&(_(0,re,20,19,"mainpanel",0),f(1,"async")),t&2&&d("ngIf",S(1,1,i.loader$))},dependencies:[U,k,A,Y,X,te,Q,W,K,z,H,ne],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}"]});let a=r;return a})();export{Ve as MultiChannelComparison};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Se}from"./chunk-BMPACBBM.js";import{a as ke,b as Me,c as Ji,d as Oe,e as Xi}from"./chunk-F2CKDRNC.js";import{a as Pe}from"./chunk-FCVAME75.js";import{a as nn}from"./chunk-CP7VAKTQ.js";import{a as dn}from"./chunk-LIS3LB3F.js";import{f as on,g as ln,h as sn,i as cn,j as pn}from"./chunk-7GNI4BOW.js";import"./chunk-OFRBPREK.js";import{a as un,b as hn,c as _n,d as fn,e as gn,f as Cn,g as yn}from"./chunk-DZHNXVSW.js";import"./chunk-3LRKHZJF.js";import{a as en,b as tn}from"./chunk-7CEWM7GE.js";import{a as ve}from"./chunk-CVLA5R75.js";import{b as mn}from"./chunk-7NWB2VB2.js";import{b as an}from"./chunk-IP2WADIR.js";import"./chunk-MEGPKKGI.js";import{a as Ee,b as De,c as Ui,d as ye,e as Yi}from"./chunk-2Y4N4NSS.js";import{a as $e}from"./chunk-
|
|
1
|
+
import{a as Se}from"./chunk-BMPACBBM.js";import{a as ke,b as Me,c as Ji,d as Oe,e as Xi}from"./chunk-F2CKDRNC.js";import{a as Pe}from"./chunk-FCVAME75.js";import{a as nn}from"./chunk-CP7VAKTQ.js";import{a as dn}from"./chunk-LIS3LB3F.js";import{f as on,g as ln,h as sn,i as cn,j as pn}from"./chunk-7GNI4BOW.js";import"./chunk-OFRBPREK.js";import{a as un,b as hn,c as _n,d as fn,e as gn,f as Cn,g as yn}from"./chunk-DZHNXVSW.js";import"./chunk-3LRKHZJF.js";import{a as en,b as tn}from"./chunk-7CEWM7GE.js";import{a as ve}from"./chunk-CVLA5R75.js";import{b as mn}from"./chunk-7NWB2VB2.js";import{b as an}from"./chunk-IP2WADIR.js";import"./chunk-MEGPKKGI.js";import{a as Ee,b as De,c as Ui,d as ye,e as Yi}from"./chunk-2Y4N4NSS.js";import{a as $e}from"./chunk-QCFKCDKM.js";import{a as vn,b as Sn}from"./chunk-2GZOVNPU.js";import{a as Bi}from"./chunk-662E5VTA.js";import{a as rn}from"./chunk-NNPT3RN6.js";import"./chunk-G6CZHXQI.js";import"./chunk-M4VGME5L.js";import"./chunk-AAIK6JQ3.js";import{f as We,g as Ce}from"./chunk-YERME2YY.js";import{b as it,e as X}from"./chunk-IPX66YIX.js";import"./chunk-HBHGO2RV.js";import{b as Ki,d as nt,e as $i,f as qi,g as Zi,l as se,m as Qi}from"./chunk-PIDUM6XT.js";import{t as Gi,u as ji}from"./chunk-43TMSPFC.js";import{P as zi}from"./chunk-4TYJR476.js";import{a as Wi,b as jt,c as ge,h as ne,k as ae,m as Ie,u as Kt}from"./chunk-F5YRASNU.js";import{b as B,c as U}from"./chunk-2UXFUEON.js";import{$ as Ve,$a as ki,Ab as Ft,Ac as Yt,B as xi,Bb as Rt,Ca as Nt,Cb as ot,Db as lt,Eb as z,Fb as d,Gb as S,Ha as K,Hb as O,Ia as s,Ib as Li,Ja as w,Jb as P,Kb as L,La as Di,Lb as N,Mb as Ht,Nb as G,Oa as Vt,Ob as _e,Pa as At,Pb as oe,Pc as Fi,Q as vt,Qb as te,Qc as St,T as Ti,Tb as Ni,Tc as st,Ua as ci,Ub as Vi,Uc as Ri,Va as he,Wb as H,Wc as bt,X as mt,Xa as Ge,Xb as j,Ya as g,Yb as ie,Za as R,Zb as le,_ as Ii,_a as m,aa as de,ab as Mi,bd as zt,c as li,ca as xe,cb as Q,cd as Hi,da as Lt,ed as Te,fc as Ai,ga as V,gc as F,gd as Gt,ha as me,hc as Re,ia as Je,kb as o,lb as l,mb as C,na as Ei,nb as E,nc as et,oa as _,ob as D,pa as f,pb as je,pc as tt,q as pe,qa as re,qb as M,ra as si,rc as J,sa as ue,sc as q,tb as b,tc as Wt,uc as Bt,vb as p,vc as Ut,w as wi,wb as Xe,wc as Z,xb as Ke,ya as ze,yb as Oi,yc as fe,za as ee,zb as Pi,zc as He}from"./chunk-77JORVC2.js";import{a as Qe,b as bi}from"./chunk-CRRJCY55.js";var bn=(()=>{let r=class r{constructor(){this.ObjectOrderTabs=[{Title:"1 - New Order",Url:"/menu/Order/new",Permissions:[]},{Title:"2 - Ready to Ship",Url:"/menu/Order/ready_to_ship",Permissions:[]},{Title:"3 - Shipped",Url:"/menu/Order/Shipped",Permissions:[]},{Title:"4 - Completed",Url:"/menu/Order/Delivered",Permissions:[]},{Title:"All",Url:"/menu/Order/All",Permissions:[]},{Title:"99 - Cancelled",Url:"/menu/Order/Cancelled",Permissions:[]},{Title:"Download",Url:"/menu/Order/Download",Permissions:[Bi.downloadOrder]}]}ngOnInit(){}};r.\u0275fac=function(i){return new(i||r)},r.\u0275cmp=V({type:r,selectors:[["app-orders"]],decls:5,vars:2,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs","usePermissions"]],template:function(i,n){i&1&&(o(0,"nav",0)(1,"div",1)(2,"div"),C(3,"nav-tab",2),l()()(),C(4,"router-outlet")),i&2&&(s(3),m("Tabs",n.ObjectOrderTabs)("usePermissions",!0))},dependencies:[en,Hi]});let a=r;return a})();var wn=(()=>{let r=class r{constructor(){}convertToCSV(t,i){let n;if(typeof t=="string")n=t;else{var c=typeof t=="object"?t:JSON.parse(t);n=this.transformToCSVStringFormat(c)}this.downloadCSV(n,i)}transformToCSVStringFormat(t){if(!t||!t.length)return;let i=",",n=Object.keys(t[0]);return t.map(h=>n.map(u=>{let v=h[u]===null||h[u]===void 0?"":h[u];return v=v instanceof Date?v.toLocaleString():v.toString().replace(/"/g,'""'),v.search(/("|,|\n)/g)>=0&&(v=`"${v}"`),v}).join(i)).join(`
|
|
2
2
|
`)}downloadCSV(t,i){var n=new Blob([t],{type:"text/csv;charset=utf8;"}),c=document.createElement("a");c.setAttribute("href",window.URL.createObjectURL(n)),c.setAttribute("download",i),document.body.appendChild(c),c.click(),document.body.removeChild(c)}};r.\u0275fac=function(i){return new(i||r)},r.\u0275prov=Ve({token:r,factory:r.\u0275fac,providedIn:"root"});let a=r;return a})();var ut=(()=>{let r=class r{constructor(t,i,n,c){this.http=t,this.dialog=i,this.toastr=n,this.exportService=c}loadInitialPage(){return this.http.post("/api/ordersLoader/GetOrder",{})}getNewOrders(t){return this.http.post("/api/orders/GetNewOrder",t).pipe(pe(i=>i.Data))}getTotalNewOrders(t,i,n){let c={ListChannelID:t,From:i,To:n};return this.http.post("/api/orders/GetCountNewOrder",c).pipe(pe(h=>h.Count))}exportOrders(t,i){return this.http.post("api/Orders/ExportOrder",t).pipe(mt(n=>{this.exportService.convertToCSV(n,i)}))}};r.\u0275fac=function(i){return new(i||r)(xe(X),xe(nt),xe(it),xe(wn))},r.\u0275prov=Ve({token:r,factory:r.\u0275fac});let a=r;return a})();var qt=(()=>{let r=class r{constructor(t,i){this.http=t,this.toastr=i}acceptTokopediaOrders(t){return this.http.post("/api/Orders/AcceptOrderTokopedia",t).pipe(mt(i=>{this.tokopediaAcceptOrderHandler(i)}))}tokopediaAcceptOrderHandler(t){let i=t.filter(c=>c.Status==!1),n=t.filter(c=>c.Status==!0);if(i.length==0&&n.length>0){let c=`<ol>${this.generateSuccessMessage(n)}</ol>`;this.toastr.success(c,"Success",{enableHtml:!0})}else if(i.length>0&&n.length>0){let c=`<ol>
|
|
3
3
|
${this.generateSuccessMessage(n)}
|
|
4
4
|
${this.generateErrorMessage(i)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as mt}from"./chunk-662E5VTA.js";import{b as Pt}from"./chunk-NNPT3RN6.js";import{c as bt}from"./chunk-M4VGME5L.js";import{g as xt}from"./chunk-AAIK6JQ3.js";import{e as it}from"./chunk-IPX66YIX.js";import{b as gt,c as ht,g as ft,i as _t,j as Ct}from"./chunk-PIDUM6XT.js";import{t as dt,u as ut}from"./chunk-43TMSPFC.js";import{c as nt,h as ot,k as at,u as rt}from"./chunk-F5YRASNU.js";import{b as lt,c as st,d as ct,f as pt}from"./chunk-2UXFUEON.js";import{$ as q,B as J,Eb as S,F as W,Fb as p,Gb as V,Hb as F,Ia as r,Ja as M,Jb as X,Kb as Z,Lb as tt,Nb as L,O as Y,Q as z,Ua as C,V as U,Wb as N,X as k,Xb as I,Y as H,Ya as g,Zb as j,_a as h,c as A,ca as K,d as G,fb as T,ga as D,ic as y,kb as l,lb as m,mb as $,nb as v,oa as d,ob as w,pa as u,pb as Q,q as P,qb as _,sc as R,tb as x,uc as et,vb as c,xa as f,yc as O,za as E,zc as B}from"./chunk-77JORVC2.js";function wt(i,n){i&1&&Q(0)}function Nt(i,n){if(i&1&&(v(0),g(1,wt,1,0,"ng-container",5),w()),i&2){c(2);let a=S(4);r(),h("ngTemplateOutlet",a)}}function It(i,n){if(i&1&&(l(0,"div",6)(1,"label"),p(2,"Editing Data"),m(),l(3,"div")(4,"span"),p(5),N(6,"number"),m()()()),i&2){let a=c(2);r(5),V(I(6,1,a.value))}}function yt(i,n){if(i&1&&(v(0),g(1,Nt,2,1,"ng-container",4)(2,It,7,3,"ng-template",null,1,j),w()),i&2){let a=S(3),t=c();r(),h("ngIf",t.hasPriceEdit)("ngIfElse",a)}}function Dt(i,n){if(i&1){let a=_();l(0,"div",7)(1,"input",8),tt("ngModelChange",function(e){d(a);let o=c();return Z(o.value,e)||(o.value=e),u(e)}),m(),l(2,"label",9),p(3,"Editing Data"),m()()}if(i&2){let a=c();r(),X("ngModel",a.value),h("max",a.maxEditInventory)}}var Kt=(()=>{let n=class n{constructor(t,e,o){this.dialogRef=t,this.item=e,this.permissionService=o,this.maxEditInventory=1e5,this.permissionService.hasPermission(mt.price).then(s=>this.hasPriceEdit=s)}ngOnInit(){this.selectedChannel=this.item.Variant.Channel.find(t=>t.ChannelID==this.item.ChannelID),this.selectedChannel.ID=this.item.Variant.ID,this.selectedChannel.Sku=this.item.Variant.Code,this.item.Table=="inventory"?(this.value=this.selectedChannel.Inventory,this.maxEditInventory=this.selectedChannel?.TypeID==lt.Tokopedia?1e5:null):this.item.Table=="price"&&(this.value=this.selectedChannel.Price,this.maxEditInventory=null),this.selectedChannel.ItemName=this.item.Name,this.selectedChannel.VarName=this.item.Variant.Model,this.initModalConfig()}initModalConfig(){this.modalConfig=new _t,this.modalConfig.title=`${this.item?.Name} ${this.item?.Variant?.Model} ${this.item?.Table} in ${this.selectedChannel?.Title}`}onSubmit(){this.item.Table=="inventory"?this.selectedChannel.Inventory=this.value:this.item.Table=="price"&&(this.selectedChannel.Price=this.value),this.dialogRef.close(this.selectedChannel)}onClose(){this.dialogRef.close()}};n.\u0275fac=function(e){return new(e||n)(M(gt),M(ht),M(ct))},n.\u0275cmp=D({type:n,selectors:[["app-table-dialog"]],standalone:!0,features:[L],decls:5,vars:4,consts:[["INVENTORY",""],["DISABLED",""],[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["matTooltipPosition","above","matTooltip","Cannot edit Unit Price because you dont have access ProductEditor role",1,"info-label-group","mt-3",2,"background","#e9ecef","opacity","1"],[1,"form-label-group","mt-3"],["type","text","name","edit","placeholder","Editing Data","autoNum","",1,"form-control",3,"ngModelChange","ngModel","max"],["for","edit"]],template:function(e,o){if(e&1){let s=_();l(0,"modal-material",2),x("onClose",function(){return d(s),u(o.onClose())})("onCancel",function(){return d(s),u(o.onClose())})("onOk",function(){return d(s),u(o.onSubmit())}),l(1,"div",3),g(2,yt,4,2,"ng-container",4)(3,Dt,4,2,"ng-template",null,0,j),m()()}if(e&2){let s=S(4);h("dynamicValidated",o.value)("config",o.modalConfig),r(2),h("ngIf",o.item.Table=="price")("ngIfElse",s)}},dependencies:[B,R,et,O,ft,xt,bt,Pt,Ct,rt,nt,ot,at,pt,ut,dt],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-left:1rem;margin-right:1rem}.mat-dialog-content[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem;margin-left:.5rem;margin-right:.5rem}.font-lg[_ngcontent-%COMP%]{font-size:large}.font-lgr[_ngcontent-%COMP%]{font-size:larger}"]});let i=n;return i})();var ne=(()=>{let n=class n{constructor(t){this.http=t,this.pagination$=new G(null),this._pageNumber=C(1),this.pageNumber=y(()=>this._pageNumber()),this._hideCount=C(!0),this.hideCount=y(()=>this._hideCount()),this._disableNextButton=C(!0),this.disableNextButton=y(()=>this._disableNextButton()),this._goToLastPage=C(!1),this.isLastPage=y(()=>this._goToLastPage()),this.totalData=C(0),this.destroy$=new A,this.data$=this.paginationFunction()}onNextPage(t){t.PageNumber+=1,this.pagination$.next(t)}setPageNumberFooter(t){this._pageNumber.set(t.PageNumber)}setPaginationButtonState(t,e){e==0?this._disableNextButton.set(!0):this._disableNextButton.set(!(e<t.RowCount*t.PageNumber))}reloadPagination(t){st.IsEmpty(t.PageNumber)&&(t.PageNumber=1),this.pagination$.next(t),this._hideCount.set(!0),this._goToLastPage.set(!1)}onLastPage(t={}){let e=JSON.parse(JSON.stringify(t));this.totalRowCount$=this.http.post(`/api/${this.fethRowCountEndpoint}`,e).pipe(P(o=>o.Total),k(o=>{this._hideCount.set(!1),e.RowCount=o,e.PageNumber=1,this.pagination$.next(e),this._goToLastPage.set(!0)}))}paginationFunction(){return this.pagination$.pipe(U(this.destroy$),J(t=>t!=null),W(t=>this.http.post(`/API/${this.fetchDataEndpoint}`,JSON.stringify(t)).pipe(P(e=>e.Data?e.Data:[]))),H(this.pagination$),Y((t,e)=>{let[o,s]=t,[b]=e;return s.PageNumber==1?[b,s]:[o.concat(b),s]}),k(([t,e])=>{this.setPageNumberFooter(e);let o=this.calculateProductLength(t);this.totalData.set(o),this.setPaginationButtonState(e,o)}),P(([t])=>t),z())}getRowCount(t){this._hideCount.set(!1),this.totalRowCount$=this.http.post(`/API/${this.fethRowCountEndpoint}`,t).pipe(P(e=>e.Total))}calculateProductLength(t=[]){return t.reduce((o,s)=>o+(s.Variants?.length?s.Variants?.length:0),0)}};n.\u0275fac=function(e){return new(e||n)(K(it))},n.\u0275prov=q({token:n,factory:n.\u0275fac});let i=n;return i})();function Et(i,n){if(i&1){let a=_();l(0,"span",6),x("click",function(){d(a);let e=c();return u(e.onGetRowCount())}),l(1,"i",7),p(2,"?"),m()()}}function Mt(i,n){if(i&1&&(v(0),l(1,"span"),p(2),N(3,"number"),m(),w()),i&2){let a=c();r(2),V(I(3,1,a.rowCount()))}}function St(i,n){if(i&1){let a=_();l(0,"a",10),x("click",function(){d(a);let e=c(2);return u(e.onNextPage())}),$(1,"i",11),p(2," Next"),m()}}function Vt(i,n){if(i&1){let a=_();l(0,"a",12),x("click",function(){d(a);let e=c(2);return u(e.onLastPage())}),$(1,"i",13),p(2," Last"),m()}}function Lt(i,n){if(i&1&&(l(0,"div",5),g(1,St,3,0,"a",8)(2,Vt,3,0,"a",9),m()),i&2){let a=c();r(),T(a.disableNextButton()&&!a.goToLastPage()?1:-1),r(),T(a.disableNextButton()&&!a.goToLastPage()?2:-1)}}var me=(()=>{let n=class n{constructor(){this.totalData=f(0),this.rowCount=f(),this.pageNumber=f(),this.disableNextButton=f(),this.goToLastPage=f(),this.hideCount=f(),this.nextPage=new E,this.lastPage=new E,this.getRowCount=new E}onNextPage(){this.nextPage.emit()}onLastPage(){this.lastPage.emit()}onGetRowCount(){this.getRowCount.emit()}};n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=D({type:n,selectors:[["infinite-paginator"]],inputs:{totalData:[1,"totalData"],rowCount:[1,"rowCount"],pageNumber:[1,"pageNumber"],disableNextButton:[1,"disableNextButton"],goToLastPage:[1,"goToLastPage"],hideCount:[1,"hideCount"]},outputs:{nextPage:"onNextPage",lastPage:"onLastPage",getRowCount:"onGetRowCount"},standalone:!0,features:[L],decls:9,vars:7,consts:[[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],[2,"cursor","pointer"],[4,"ngIf"],[1,"btn-group"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary","border-start-0"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-arrow-right"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary","border-start-0",3,"click"],[1,"fas","fa-share"]],template:function(e,o){e&1&&(l(0,"div",0)(1,"div",1)(2,"div",2),p(3),N(4,"number"),g(5,Et,3,0,"span",3)(6,Mt,4,3,"ng-container",4),p(7),m()(),g(8,Lt,3,2,"div",5),m()),e&2&&(r(3),F(" Showing 1 - ",I(4,5,o.totalData())," of "),r(2),T(o.hideCount()?5:-1),r(),h("ngIf",!o.hideCount()&&o.rowCount()),r(),F(" records ~ ",o.pageNumber()," Page "),r(),T(o.totalData()>0?8:-1))},dependencies:[B,R,O]});let i=n;return i})();export{Kt as a,ne as b,me as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Ne}from"./chunk-IPX66YIX.js";import{a as Le,b as ue,c as He,d as $e,e as de,f as We,g as he,h as Ke,i as q,j as pe,k as E}from"./chunk-HBHGO2RV.js";import{b as le,c as z,d as Ue}from"./chunk-2UXFUEON.js";import{$ as b,$b as je,A as Pe,Ac as Me,B as De,Bc as Be,Ca as H,I as ie,N as _e,Pa as $,Q as se,T as _,U as ae,X as U,_b as Re,aa as F,b as g,ba as y,c as X,ca as h,dd as Fe,ea as xe,ec as ce,g as Ee,h as Te,ha as L,k as M,l as N,m as x,n as K,q as P,r as Ce,zc as Oe}from"./chunk-77JORVC2.js";import{a as oe,i as I}from"./chunk-CRRJCY55.js";var ze={production:!0,version:"3.13.
|
|
1
|
+
import{e as Ne}from"./chunk-IPX66YIX.js";import{a as Le,b as ue,c as He,d as $e,e as de,f as We,g as he,h as Ke,i as q,j as pe,k as E}from"./chunk-HBHGO2RV.js";import{b as le,c as z,d as Ue}from"./chunk-2UXFUEON.js";import{$ as b,$b as je,A as Pe,Ac as Me,B as De,Bc as Be,Ca as H,I as ie,N as _e,Pa as $,Q as se,T as _,U as ae,X as U,_b as Re,aa as F,b as g,ba as y,c as X,ca as h,dd as Fe,ea as xe,ec as ce,g as Ee,h as Te,ha as L,k as M,l as N,m as x,n as K,q as P,r as Ce,zc as Oe}from"./chunk-77JORVC2.js";import{a as oe,i as I}from"./chunk-CRRJCY55.js";var ze={production:!0,version:"3.13.3",firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},news:"https://changelog.dealpos.app/umbraco/delivery/api/v1/content?fetch=children:omni&sort=sortOrder:asc"};var pt="firebase",ft="10.12.1";q(pt,ft,"app");var G=new Re("ANGULARFIRE2_VERSION");var gt=(r,i)=>{let t=i?[i]:Ke(),e=[];return t.forEach(n=>{n.container.getProvider(r).instances.forEach(s=>{e.includes(s)||e.push(s)})}),e},V=class{constructor(){return gt(mt)}},mt="app-check";function fe(){}var Y=class{zone;delegate;constructor(i,t=Te){this.zone=i,this.delegate=t}now(){return this.delegate.now()}schedule(i,t,e){let n=this.zone,o=function(s){n.runGuarded(()=>{i.apply(this,[s])})};return this.delegate.schedule(o,t,e)}},ge=class{zone;task=null;constructor(i){this.zone=i}call(i,t){let e=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",fe,{},fe,fe)),t.pipe(U({next:e,complete:e,error:e})).subscribe(i).add(e)}unscheduleTask(){setTimeout(()=>{this.task!=null&&this.task.state==="scheduled"&&(this.task.invoke(),this.task=null)},10)}},qe=(()=>{class r{ngZone;outsideAngular;insideAngular;constructor(t){this.ngZone=t,this.outsideAngular=t.runOutsideAngular(()=>new Y(Zone.current)),this.insideAngular=t.run(()=>new Y(Zone.current,Ee)),globalThis.\u0275AngularFireScheduler||=this}static \u0275fac=function(e){return new(e||r)(h($))};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function At(){let r=globalThis.\u0275AngularFireScheduler;if(!r)throw new Error(`Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using
|
|
2
2
|
provideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).`);return r}function Ve(r){return wt(At())(r)}function wt(r){return function(t){return t=t.lift(new ge(r.ngZone)),t.pipe(N(r.outsideAngular),M(r.insideAngular))}}var Ge=(()=>{let i=class i{constructor(){}getParseToken(){let e=JSON.parse(window.localStorage.getItem("user"));return this.ParseToken(e.Token.access_token)}GetRoles(){let n=this.getParseToken()["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"];return n||[]}ParseToken(e){try{let o=e.split(".")[0].replace("-","+").replace("_","/"),s=JSON.parse(window.atob(o)),c=e.split(".")[1].replace("-","+").replace("_","/"),l=JSON.parse(window.atob(c));return l.header=s,l}catch{return!1}}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=b({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();var bt=new Map,St={activated:!1,tokenObservers:[]},It={initialized:!1,enabled:!1};function T(r){return bt.get(r)||Object.assign({},St)}function Qe(){return It}var yt="https://content-firebaseappcheck.googleapis.com/v1";var Et="exchangeDebugToken",Je={OFFSET_DURATION:5*60*1e3,RETRIAL_MIN_WAIT:30*1e3,RETRIAL_MAX_WAIT:16*60*1e3},Ao=24*60*60*1e3;var Ae=class{constructor(i,t,e,n,o){if(this.operation=i,this.retryPolicy=t,this.getWaitDuration=e,this.lowerBound=n,this.upperBound=o,this.pending=null,this.nextErrorWaitInterval=n,n>o)throw new Error("Proactive refresh lower bound greater than upper bound!")}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)}isRunning(){return!!this.pending}process(i){return I(this,null,function*(){this.stop();try{this.pending=new ue,this.pending.promise.catch(t=>{}),yield Tt(this.getNextRun(i)),this.pending.resolve(),yield this.pending.promise,this.pending=new ue,this.pending.promise.catch(t=>{}),yield this.operation(),this.pending.resolve(),yield this.pending.promise,this.process(!0).catch(()=>{})}catch(t){this.retryPolicy(t)?this.process(!1).catch(()=>{}):this.stop()}})}getNextRun(i){if(i)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{let t=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),t}}};function Tt(r){return new Promise(i=>{setTimeout(i,r)})}var Ct={"already-initialized":"You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.","use-before-activation":"App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.","fetch-network-error":"Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-parse-error":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status-error":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","recaptcha-error":"ReCAPTCHA error.",throttled:"Requests throttled due to {$httpStatus} error. Attempts allowed again after {$time}"},R=new $e("appCheck","AppCheck",Ct);function et(r){if(!T(r).activated)throw R.create("use-before-activation",{appName:r.name})}function tt(e,n){return I(this,arguments,function*({url:r,body:i},t){let o={"Content-Type":"application/json"},s=t.getImmediate({optional:!0});if(s){let f=yield s.getHeartbeatsHeader();f&&(o["X-Firebase-Client"]=f)}let a={method:"POST",body:JSON.stringify(i),headers:o},c;try{c=yield fetch(r,a)}catch(f){throw R.create("fetch-network-error",{originalErrorMessage:f?.message})}if(c.status!==200)throw R.create("fetch-status-error",{httpStatus:c.status});let l;try{l=yield c.json()}catch(f){throw R.create("fetch-parse-error",{originalErrorMessage:f?.message})}let d=l.ttl.match(/^([\d.]+)(s)$/);if(!d||!d[2]||isNaN(Number(d[1])))throw R.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${l.ttl}`});let u=Number(d[1])*1e3,p=Date.now();return{token:l.token,expireTimeMillis:p+u,issuedAtTimeMillis:p}})}function nt(r,i){let{projectId:t,appId:e,apiKey:n}=r.options;return{url:`${yt}/projects/${t}/apps/${e}:${Et}?key=${n}`,body:{debug_token:i}}}var Pt="firebase-app-check-database",Dt=1,we="firebase-app-check-store";var Q=null;function _t(){return Q||(Q=new Promise((r,i)=>{try{let t=indexedDB.open(Pt,Dt);t.onsuccess=e=>{r(e.target.result)},t.onerror=e=>{var n;i(R.create("storage-open",{originalErrorMessage:(n=e.target.error)===null||n===void 0?void 0:n.message}))},t.onupgradeneeded=e=>{let n=e.target.result;switch(e.oldVersion){case 0:n.createObjectStore(we,{keyPath:"compositeKey"})}}}catch(t){i(R.create("storage-open",{originalErrorMessage:t?.message}))}}),Q)}function xt(r,i){return Rt(jt(r),i)}function Rt(r,i){return I(this,null,function*(){let e=(yield _t()).transaction(we,"readwrite"),o=e.objectStore(we).put({compositeKey:r,value:i});return new Promise((s,a)=>{o.onsuccess=c=>{s()},e.onerror=c=>{var l;a(R.create("storage-set",{originalErrorMessage:(l=c.target.error)===null||l===void 0?void 0:l.message}))}})})}function jt(r){return`${r.options.appId}-${r.name}`}var ke=new We("@firebase/app-check");function me(r,i){return He()?xt(r,i).catch(t=>{ke.warn(`Failed to write token to IndexedDB. Error: ${t}`)}):Promise.resolve()}function rt(){return Qe().enabled}function ot(){return I(this,null,function*(){let r=Qe();if(r.enabled&&r.token)return r.token.promise;throw Error(`
|
|
3
3
|
Can't get debug token in production mode.
|
|
4
4
|
`)})}var Ot={error:"UNKNOWN_ERROR"};function Mt(r){return Le.encodeString(JSON.stringify(r),!1)}function ve(r,i=!1){return I(this,null,function*(){let t=r.app;et(t);let e=T(t),n=e.token,o;if(n&&!J(n)&&(e.token=void 0,n=void 0),!n){let c=yield e.cachedTokenPromise;c&&(J(c)?n=c:yield me(t,void 0))}if(!i&&n&&J(n))return{token:n.token};let s=!1;if(rt()){e.exchangeTokenPromise||(e.exchangeTokenPromise=tt(nt(t,yield ot()),r.heartbeatServiceProvider).finally(()=>{e.exchangeTokenPromise=void 0}),s=!0);let c=yield e.exchangeTokenPromise;return yield me(t,c),e.token=c,{token:c.token}}try{e.exchangeTokenPromise||(e.exchangeTokenPromise=e.provider.getToken().finally(()=>{e.exchangeTokenPromise=void 0}),s=!0),n=yield T(t).exchangeTokenPromise}catch(c){c.code==="appCheck/throttled"?ke.warn(c.message):ke.error(c),o=c}let a;return n?o?J(n)?a={token:n.token,internalError:o}:a=Xe(o):(a={token:n.token},e.token=n,yield me(t,n)):a=Xe(o),s&&Lt(t,a),a})}function Bt(r){return I(this,null,function*(){let i=r.app;et(i);let{provider:t}=T(i);if(rt()){let e=yield ot(),{token:n}=yield tt(nt(i,e),r.heartbeatServiceProvider);return{token:n}}else{let{token:e}=yield t.getToken();return{token:e}}})}function Nt(r,i,t,e){let{app:n}=r,o=T(n),s={next:t,error:e,type:i};if(o.tokenObservers=[...o.tokenObservers,s],o.token&&J(o.token)){let a=o.token;Promise.resolve().then(()=>{t({token:a.token}),Ze(r)}).catch(()=>{})}o.cachedTokenPromise.then(()=>Ze(r))}function it(r,i){let t=T(r),e=t.tokenObservers.filter(n=>n.next!==i);e.length===0&&t.tokenRefresher&&t.tokenRefresher.isRunning()&&t.tokenRefresher.stop(),t.tokenObservers=e}function Ze(r){let{app:i}=r,t=T(i),e=t.tokenRefresher;e||(e=Ft(r),t.tokenRefresher=e),!e.isRunning()&&t.isTokenAutoRefreshEnabled&&e.start()}function Ft(r){let{app:i}=r;return new Ae(()=>I(this,null,function*(){let t=T(i),e;if(t.token?e=yield ve(r,!0):e=yield ve(r),e.error)throw e.error;if(e.internalError)throw e.internalError}),()=>!0,()=>{let t=T(i);if(t.token){let e=t.token.issuedAtTimeMillis+(t.token.expireTimeMillis-t.token.issuedAtTimeMillis)*.5+3e5,n=t.token.expireTimeMillis-5*60*1e3;return e=Math.min(e,n),Math.max(0,e-Date.now())}else return 0},Je.RETRIAL_MIN_WAIT,Je.RETRIAL_MAX_WAIT)}function Lt(r,i){let t=T(r).tokenObservers;for(let e of t)try{e.type==="EXTERNAL"&&i.error!=null?e.error(i.error):e.next(i)}catch{}}function J(r){return r.expireTimeMillis-Date.now()>0}function Xe(r){return{token:Mt(Ot),error:r}}var be=class{constructor(i,t){this.app=i,this.heartbeatServiceProvider=t}_delete(){let{tokenObservers:i}=T(this.app);for(let t of i)it(this.app,t.next);return Promise.resolve()}};function Ht(r,i){return new be(r,i)}function $t(r){return{getToken:i=>ve(r,i),getLimitedUseToken:()=>Bt(r),addTokenListener:i=>Nt(r,"INTERNAL",i),removeTokenListener:i=>it(r.app,i)}}var Wt="@firebase/app-check",Kt="0.8.4";var Ut="app-check",Ye="app-check-internal";function zt(){he(new de(Ut,r=>{let i=r.getProvider("app").getImmediate(),t=r.getProvider("heartbeat");return Ht(i,t)},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((r,i,t)=>{r.getProvider(Ye).initialize()})),he(new de(Ye,r=>{let i=r.getProvider("app-check").getImmediate();return $t(i)},"PUBLIC").setInstantiationMode("EXPLICIT")),q(Wt,Kt)}zt();var qt=["localhost","0.0.0.0","127.0.0.1"],Do=typeof window<"u"&&qt.includes(window.location.hostname);var Gt="firebase",Jt="10.12.1";E.registerVersion(Gt,Jt,"app-compat");var Zt=["ngOnDestroy"],at=(r,i,t,e={})=>new Proxy(r,{get:(n,o)=>t.runOutsideAngular(()=>{if(r[o])return e?.spy?.get&&e.spy.get(o,r[o]),r[o];if(Zt.indexOf(o)>-1)return()=>{};let s=i.toPromise().then(a=>{let c=a?.[o];return typeof c=="function"?c.bind(a):c?.then?c.then(l=>t.run(()=>l)):t.run(()=>c)});return new Proxy(()=>{},{get:(a,c)=>s[c],apply:(a,c,l)=>s.then(d=>{let u=d?.(...l);return e?.spy?.apply&&e.spy.apply(o,l,u),u})})})});var ee=class{constructor(i){return i}},te=new y("angularfire2.app.options"),ne=new y("angularfire2.app.name");function Se(r,i,t){let e=typeof t=="string"&&t||"[DEFAULT]",n=typeof t=="object"&&t||{};n.name=n.name||e;let s=E.apps.filter(a=>a&&a.name===n.name)[0]||i.runOutsideAngular(()=>E.initializeApp(r,n));try{if(JSON.stringify(r)!==JSON.stringify(s.options)){let a=!!module.hot;Xt("error",`${s.name} Firebase App already initialized with different options${a?", you may need to reload as Firebase is not HMR aware.":"."}`)}}catch{}return new ee(s)}var Xt=(r,...i)=>{ce()&&typeof console<"u"&&console[r](...i)},Yt={provide:ee,useFactory:Se,deps:[te,$,[new xe,ne]]},Ho=(()=>{class r{static initializeApp(t,e){return{ngModule:r,providers:[{provide:te,useValue:t},{provide:ne,useValue:e}]}}constructor(t){E.registerVersion("angularfire",G.full,"core"),E.registerVersion("angularfire",G.full,"app-compat"),E.registerVersion("angular",je.full,t.toString())}static \u0275fac=function(e){return new(e||r)(h(H))};static \u0275mod=L({type:r});static \u0275inj=F({providers:[Yt]})}return r})();function ct(r,i,t,e,n){let[,o,s]=globalThis.\u0275AngularfireInstanceCache.find(a=>a[0]===r)||[];if(o)return Qt(n,s)||(st("error",`${i} was already initialized on the ${t} Firebase App with different settings.${en?" You may need to reload as Firebase is not HMR aware.":""}`),st("warn",{is:n,was:s})),o;{let a=e();return globalThis.\u0275AngularfireInstanceCache.push([r,a,n]),a}}function Qt(r,i){try{return r.toString()===i.toString()}catch{return r===i}}var en=typeof module<"u"&&!!module.hot,st=(r,...i)=>{ce()&&typeof console<"u"&&console[r](...i)};globalThis.\u0275AngularfireInstanceCache||=[];var tn=new y("angularfire2.auth.use-emulator"),nn=new y("angularfire2.auth.settings"),rn=new y("angularfire2.auth.tenant-id"),on=new y("angularfire2.auth.langugage-code"),sn=new y("angularfire2.auth.use-device-language"),an=new y("angularfire.auth.persistence"),cn=(r,i,t,e,n,o,s,a)=>ct(`${r.name}.auth`,"AngularFireAuth",r.name,()=>{let c=i.runOutsideAngular(()=>r.auth());if(t&&c.useEmulator(...t),e&&(c.tenantId=e),c.languageCode=n,o&&c.useDeviceLanguage(),s)for(let[l,d]of Object.entries(s))c.settings[l]=d;return a&&c.setPersistence(a),c},[t,e,n,o,s,a]),Ie=(()=>{class r{authState;idToken;user;idTokenResult;credential;constructor(t,e,n,o,s,a,c,l,d,u,p,f){let W=new X,j=K(void 0).pipe(M(s.outsideAngular),_(()=>o.runOutsideAngular(()=>import("./chunk-HYSXRUQ5.js"))),P(()=>Se(t,o,e)),P(C=>cn(C,o,a,l,d,u,c,p)),se({bufferSize:1,refCount:!1}));if(Be(n))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=K(null);else{j.pipe(_e()).subscribe();let C=j.pipe(_(A=>A.getRedirectResult().then(D=>D,()=>null)),Ve,se({bufferSize:1,refCount:!1})),Z=j.pipe(_(A=>new g(D=>({unsubscribe:o.runOutsideAngular(()=>A.onAuthStateChanged(O=>D.next(O),O=>D.error(O),()=>D.complete()))})))),re=j.pipe(_(A=>new g(D=>({unsubscribe:o.runOutsideAngular(()=>A.onIdTokenChanged(O=>D.next(O),O=>D.error(O),()=>D.complete()))}))));this.authState=C.pipe(ae(Z),N(s.outsideAngular),M(s.insideAngular)),this.user=C.pipe(ae(re),N(s.outsideAngular),M(s.insideAngular)),this.idToken=this.user.pipe(_(A=>A?x(A.getIdToken()):K(null))),this.idTokenResult=this.user.pipe(_(A=>A?x(A.getIdTokenResult()):K(null))),this.credential=Pe(C,W,this.authState.pipe(De(A=>!A))).pipe(P(A=>A?.user?A:null),N(s.outsideAngular),M(s.insideAngular))}return at(this,j,o,{spy:{apply:(C,Z,re)=>{(C.startsWith("signIn")||C.startsWith("createUser"))&&re.then(A=>W.next(A))}}})}static \u0275fac=function(e){return new(e||r)(h(te),h(ne,8),h(H),h($),h(qe),h(tn,8),h(nn,8),h(rn,8),h(on,8),h(sn,8),h(an,8),h(V,8))};static \u0275prov=b({token:r,factory:r.\u0275fac,providedIn:"any"})}return r})(),ti=(()=>{class r{constructor(){E.registerVersion("angularfire",G.full,"auth-compat")}static \u0275fac=function(e){return new(e||r)};static \u0275mod=L({type:r});static \u0275inj=F({providers:[Ie]})}return r})();function m(r,i,t,e){return new Promise((n,o)=>{r||o("IndexedDB not available");let s=r.open(i,t),a;s.onsuccess=c=>{a=s.result,n(a)},s.onerror=c=>{o(`IndexedDB error: ${s.error}`)},typeof e=="function"&&(s.onupgradeneeded=c=>{e(c,a)})})}function lt(r,i,t,e,n){if(!r)return;let o=r.open(i,t);o.onupgradeneeded=s=>{let a=s.target.result;e.forEach(l=>{if(!a.objectStoreNames.contains(l.store)){let d=a.createObjectStore(l.store,l.storeConfig);l.storeSchema.forEach(u=>{d.createIndex(u.name,u.keypath,u.options)})}});let c=n&&n();c&&Object.keys(c).map(l=>parseInt(l,10)).filter(l=>l>s.oldVersion).sort((l,d)=>l-d).forEach(l=>{c[l](a,o.transaction)}),a.close()},o.onsuccess=s=>{s.target.result.close()}}function un(r,i,t){if(!r||!i||!t)throw Error('Params: "dbName", "version", "storeName" are mandatory.');return new g(e=>{try{let n=i+1,o=indexedDB.open(r,n);o.onupgradeneeded=s=>{let a=s.target.result;a.deleteObjectStore(t),a.close(),console.log("onupgradeneeded"),e.next(!0),e.complete()},o.onerror=s=>e.error(s)}catch(n){e.error(n)}})}function dn(r,i){return r.objectStoreNames.contains(i)}function S(r,i,t){r||t("You need to use the openDatabase function to create a database before you query it!"),dn(r,i)||t(`objectStore does not exists: ${i}`)}function k(r,i){let t=r.transaction(i.storeName,i.dbMode);return t.onerror=i.error,t.onabort=i.abort,t}function v(r,i,t,e){return{storeName:i,dbMode:r,error:n=>{t(n)},abort:n=>{t(n)}}}var w=function(r){return r.readonly="readonly",r.readwrite="readwrite",r}(w||{}),ut=new y(null),ye=(()=>{class r{constructor(t,e){if(this.dbConfig=t,this.platformId=e,!t.name)throw new Error("NgxIndexedDB: Please, provide the dbName in the configuration");if(!t.version)throw new Error("NgxIndexedDB: Please, provide the db version in the configuration");this.isBrowser=Me(this.platformId),this.isBrowser&&(this.indexedDB=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,lt(this.indexedDB,t.name,t.version,t.objectStoresMeta,t.migrationFactory),m(this.indexedDB,t.name).then(n=>{n.version!==t.version&&(this.dbConfig.version=n.version)}))}createObjectStore(t,e){let n=[t];lt(this.indexedDB,this.dbConfig.name,++this.dbConfig.version,n,e)}add(t,e,n){return new g(o=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(s=>{let c=k(s,v(w.readwrite,t,d=>o.error(d))).objectStore(t),l=n?c.add(e,n):c.add(e);l.onsuccess=d=>I(this,null,function*(){let u=d.target.result,p=c.get(u);p.onsuccess=f=>{o.next(f.target.result),o.complete()}})}).catch(s=>o.error(s))})}bulkAdd(t,e){let n=new Promise((o,s)=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{let l=k(a,v(w.readwrite,t,o,s)).objectStore(t),d=e.map(u=>new Promise((p,f)=>{let W=u.key;delete u.key;let j=W?l.add(u,W):l.add(u);j.onsuccess=C=>{let Z=C.target.result;p(Z)}}));o(Promise.all(d))}).catch(a=>s(a))});return x(n)}bulkDelete(t,e){let n=e.map(o=>new Promise((s,a)=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(c=>{let l=k(c,v(w.readwrite,t,a,s));l.objectStore(t).delete(o),l.oncomplete=()=>{this.getAll(t).pipe(ie(1)).subscribe(u=>{s(u)})}}).catch(c=>a(c))}));return x(Promise.all(n))}getByKey(t,e){return new g(n=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>{let c=k(o,v(w.readonly,t,n.error)).objectStore(t).get(e);c.onsuccess=l=>{n.next(l.target.result),n.complete()},c.onerror=l=>{n.error(l)}}).catch(o=>n.error(o))})}bulkGet(t,e){let n=e.map(o=>this.getByKey(t,o));return new g(o=>{Ce(n).subscribe(s=>{o.next(s),o.complete()})})}getByID(t,e){return new g(n=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>{S(o,t,l=>n.error(l));let c=k(o,v(w.readonly,t,n.error,n.next)).objectStore(t).get(e);c.onsuccess=l=>{n.next(l.target.result)}}).catch(o=>n.error(o))})}getByIndex(t,e,n){return new g(o=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(s=>{S(s,t,u=>o.error(u));let d=k(s,v(w.readonly,t,o.error)).objectStore(t).index(e).get(n);d.onsuccess=u=>{o.next(u.target.result),o.complete()}}).catch(s=>o.error(s))})}getAll(t){return new g(e=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(n=>{S(n,t,c=>e.error(c));let a=k(n,v(w.readonly,t,e.error,e.next)).objectStore(t).getAll();a.onerror=c=>{e.error(c)},a.onsuccess=({target:{result:c}})=>{e.next(c),e.complete()}}).catch(n=>e.error(n))})}update(t,e){return new g(n=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>{S(o,t,l=>n.error(l));let a=k(o,v(w.readwrite,t,l=>n.error(l))).objectStore(t),c=a.put(e);c.onsuccess=l=>I(this,null,function*(){let d=l.target.result,u=a.get(d);u.onsuccess=p=>{n.next(p.target.result),n.complete()}})}).catch(o=>n.error(o))})}delete(t,e){return new g(n=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>{S(o,t,c=>n.error(c));let s=k(o,v(w.readwrite,t,c=>n.error(c)));s.objectStore(t).delete(e),s.oncomplete=()=>{this.getAll(t).pipe(ie(1)).subscribe(c=>{n.next(c),n.complete()})}}).catch(o=>n.error(o))})}deleteByKey(t,e){return new g(n=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>{S(o,t,c=>n.error(c));let s=k(o,v(w.readwrite,t,c=>n.error(c))),a=s.objectStore(t);s.oncomplete=()=>{n.next(!0),n.complete()},a.delete(e)}).catch(o=>n.error(o))})}clear(t){return new g(e=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(n=>{S(n,t,a=>e.error(a));let o=k(n,v(w.readwrite,t,a=>e.error(a)));o.objectStore(t).clear(),o.oncomplete=()=>{e.next(!0),e.complete()}}).catch(n=>e.error(n))})}deleteDatabase(){return new g(t=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(e=>I(this,null,function*(){yield e.close();let n=this.indexedDB.deleteDatabase(this.dbConfig.name);n.onsuccess=()=>{t.next(!0),t.complete()},n.onerror=o=>t.error(o),n.onblocked=()=>{throw new Error("Unable to delete database because it's blocked")}})).catch(e=>t.error(e))})}openCursor(t,e){return new g(n=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>{S(o,t,l=>n.error(l));let a=k(o,v(w.readonly,t,n.error)).objectStore(t),c=e===void 0?a.openCursor():a.openCursor(e);c.onsuccess=l=>{n.next(l),n.complete()}}).catch(o=>n.error(o))})}openCursorByIndex(t,e,n,o=w.readonly){let s=new X;return m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{S(a,t,p=>{s.error(p)});let u=k(a,v(o,t,p=>{s.error(p)},()=>{s.next()})).objectStore(t).index(e).openCursor(n);u.onsuccess=p=>{s.next(p)}}).catch(a=>s.error(a)),s}getAllByIndex(t,e,n){let o=[];return new g(s=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{S(a,t,p=>s.error(p));let u=k(a,v(w.readonly,t,s.error)).objectStore(t).index(e).openCursor(n);u.onsuccess=p=>{let f=p.target.result;f?(o.push(f.value),f.continue()):(s.next(o),s.complete())}}).catch(a=>s.error(a))})}getAllKeysByIndex(t,e,n){let o=[];return new g(s=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{S(a,t,p=>s.error(p));let u=k(a,v(w.readonly,t,s.error)).objectStore(t).index(e).openKeyCursor(n);u.onsuccess=p=>{let f=p.target.result;f?(o.push({primaryKey:f.primaryKey,key:f.key}),f.continue()):(s.next(o),s.complete())}}).catch(a=>s.error(a))})}count(t,e){return new g(n=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>{S(o,t,l=>n.error(l));let c=k(o,v(w.readonly,t,n.error)).objectStore(t).count(e);c.onerror=l=>n.error(l),c.onsuccess=l=>{n.next(l.target.result),n.complete()}}).catch(o=>n.error(o))})}countByIndex(t,e,n){return new g(o=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(s=>{S(s,t,u=>o.error(u));let d=k(s,v(w.readonly,t,o.error)).objectStore(t).index(e).count(n);d.onerror=u=>o.error(u),d.onsuccess=u=>{o.next(u.target.result),o.complete()}}).catch(s=>o.error(s))})}deleteObjectStore(t){return un(this.dbConfig.name,++this.dbConfig.version,t)}}return r.\u0275fac=function(t){return new(t||r)(h(ut),h(H))},r.\u0275prov=b({token:r,factory:r.\u0275fac}),r})(),li=(()=>{class r{static forRoot(t){return{ngModule:r,providers:[ye,{provide:ut,useValue:t}]}}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=L({type:r}),r.\u0275inj=F({imports:[[Oe]]}),r})();var dt=(()=>{let i=class i{constructor(e){this.db=e,this.DATABASE="Categories"}saveCategoriesByChannelType(e,n){let o=this.getKey(n);return this.db.add(this.DATABASE,e,o).pipe(P(s=>e))}getCategoriesByChannelType(e){let n=this.getKey(e);return this.db.getByKey(this.DATABASE,n)}getKey(e){let n="";switch(e){case le.Lazada:n="Lazada";break;case le.Tokopedia:n="Tokopedia";break}return n}clearDatabase(){this.db.clear(this.DATABASE)}getHostName(){let e=localStorage.getItem("Authorization");return this.hostName=JSON.parse(e)?.Host,this.hostName}};i.\u0275fac=function(n){return new(n||i)(h(ye))},i.\u0275prov=b({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();var ht=(()=>{let i=class i{constructor(){}inititalizeIntercom(){let e=this.getFromLocalStorage();e?.Enabled&&window.Intercom("boot",{app_id:"xv1oomgl",name:e.Name,email:e.Email,created_at:e.Created,user_hash:e.Hash})}shutdown(){this.getFromLocalStorage()?.Enabled&&(window.Intercom("shutdown"),this.clearStorage())}clearStorage(){localStorage.removeItem("Intercom")}updateLocalStorage(e){let n={Enabled:!0};e&&(n=oe(oe({},n),e)),localStorage.setItem("Intercom",JSON.stringify(n))}getFromLocalStorage(){let e=localStorage.getItem("Intercom");return JSON.parse(e)}hideLauncher(){let e=this.getFromLocalStorage();e?.Enabled&&(window.Intercom("update",{app_id:"xv1oomgl",hide_default_launcher:!0}),e.hide_default_launcher=!0,this.updateLocalStorage(e))}showLauncher(){let e=this.getFromLocalStorage();e?.Enabled&&(window.Intercom("update",{app_id:"xv1oomgl",hide_default_launcher:!1}),e.hide_default_launcher=!1,this.updateLocalStorage(e))}isHideLauncher(){let e=this.getFromLocalStorage();return z.IsEmpty(e?.hide_default_launcher)?!1:e?.hide_default_launcher}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=b({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();var Si=(()=>{let i=class i{constructor(e,n,o,s,a,c,l){this.httpService=e,this.tokenDecodeService=n,this.afAuth=o,this.ngxPermission=s,this.localDataService=a,this.router=c,this.intercomService=l,this.channels=[]}login(e){return this.httpService.post("/api/token/Login",e).pipe(U(n=>{this.setLocalStorage(n,e.Host,e.Username),this.loadPermissions()}))}getNews(){return this.httpService.get(ze.news).pipe(P(e=>e?.items?.map(n=>n?.properties)))}loginWithGoogle(e,n){e.preventDefault();let o=new pe;return o.setCustomParameters({prompt:"select_account"}),x(this.afAuth.signInWithPopup(o)).pipe(P(s=>s.credential),P(s=>s.idToken),_(s=>this.httpService.post("/api/token/LoginWithSocialProvider",JSON.stringify({IDToken:s,Host:n}))),U(s=>{this.setLocalStorage(s,n,null),this.loadPermissions()}))}setLocalStorage(e,n,o){localStorage.setItem("user",JSON.stringify(e)),localStorage.setItem("Authorization",JSON.stringify({Host:n,username:o})),localStorage.setItem("channels",JSON.stringify(e.Channels)),this.intercomService.updateLocalStorage(e.IntercomWidget),this.intercomService.inititalizeIntercom()}loadPermissions(){this.ngxPermission.loadPermissions([]);let e=localStorage.getItem("user");if(z.IsNotEmpty(e)){let n=this.tokenDecodeService.GetRoles();this.ngxPermission.loadPermissions(n)}}getChannels(){let e=JSON.parse(JSON.stringify(this.channels));if(this.channels.length===0){let n=localStorage.getItem("channels");n?(this.channels=JSON.parse(n),e=JSON.parse(JSON.stringify(this.channels))):(this.channels=[],e=[])}return e=this.setChannelLogo(e),e}setChannelLogo(e){return e=e.map(n=>(n.Img=z.getChannelLogoByTypeId(n.TypeID),n)),e}logout(){this.clearLocalStorage(),this.ngxPermission.flushPermissions()}isActiveToken(){let e=JSON.parse(window.localStorage.getItem("user")),n=new Date;if(e!=null){let o=new Date(e.Token.expiredAt);return n<o?!0:(this.clearLocalStorage(),!1)}else return!1}getDomain(){if(!this.domain){let e=localStorage.getItem("Authorization");this.domain="https://"+JSON.parse(e).Host}return this.domain}clearLocalStorage(){this.domain=null,this.channels=[],localStorage.removeItem("channels"),localStorage.removeItem("user"),this.intercomService.shutdown(),this.localDataService.clearDatabase(),this.router.navigate([""])}};i.\u0275fac=function(n){return new(n||i)(h(Ne),h(Ge),h(Ie),h(Ue),h(dt),h(Fe),h(ht))},i.\u0275prov=b({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();export{Ge as a,ze as b,Ho as c,ti as d,li as e,dt as f,Si as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as B}from"./chunk-
|
|
1
|
+
import{a as B}from"./chunk-IIUTIA47.js";import{a as vt}from"./chunk-IWVYX6KY.js";import{a as $}from"./chunk-N23ZYP7G.js";import{a as dt,b as ft,d as ut,e as gt}from"./chunk-2Y4N4NSS.js";import{g as st}from"./chunk-YERME2YY.js";import{e as at}from"./chunk-IPX66YIX.js";import"./chunk-HBHGO2RV.js";import{l as k,m as ht}from"./chunk-PIDUM6XT.js";import"./chunk-43TMSPFC.js";import"./chunk-4TYJR476.js";import{h as lt,k as mt,u as ct}from"./chunk-F5YRASNU.js";import{c as pt}from"./chunk-2UXFUEON.js";import{Eb as K,Fb as l,Ga as W,Gb as s,Ha as H,Hb as x,Ia as m,Ja as v,Jb as Q,Kb as X,Lb as Y,Ob as Z,Pb as tt,Q as j,Qb as et,T as q,V as U,Wb as d,Xb as _,Ya as u,Yb as S,Zb as it,_a as p,aa as I,bd as rt,c as z,ed as F,ga as y,gd as R,ha as N,kb as r,lb as o,mb as D,nb as g,oa as b,ob as h,pa as E,pc as nt,q as C,qb as G,rc as ot,sc as T,tb as V,vb as f,vc as w,wc as M,yb as J,yc as P,zc as L}from"./chunk-77JORVC2.js";import"./chunk-CRRJCY55.js";var Et=(t,e)=>({"bg-gradient-danger":t,"bg-gradient-warning":e}),Dt=()=>["/menu/notification/detail"],Tt=t=>({ID:t});function wt(t,e){if(t&1&&(r(0,"span",14),D(1,"img",15),o(),l(2)),t&2){let n=e.item;m(),p("src",n.Img,H)("alt",n.Name),m(),x(" ",n.Name," ")}}function Mt(t,e){if(t&1&&(g(0),l(1),d(2,"number"),r(3,"span"),l(4,"s"),o(),h()),t&2){let n=f().$implicit;m(),x(" ",S(2,1,n.DurationInSecond,"1.1-1")," ")}}function Pt(t,e){t&1&&l(0," - ")}function Lt(t,e){if(t&1&&(g(0),r(1,"tr",16)(2,"td")(3,"a",17),D(4,"img",18),r(5,"span"),l(6),o()()(),r(7,"td")(8,"b"),l(9),o(),D(10,"div",19),o(),r(11,"td"),u(12,Mt,5,4,"ng-container",20)(13,Pt,1,0,"ng-template",null,0,it),o(),r(15,"td"),l(16),o(),r(17,"td"),l(18),d(19,"date"),o()(),h()),t&2){let n=e.$implicit,a=K(14);m(),p("ngClass",et(14,Et,n.Status==1,n.Status==0)),m(2),p("routerLink",Z(17,Dt))("queryParams",tt(18,Tt,n.ID)),m(),J("src",n.Img,H),m(2),s(n.Name),m(3),s(n.Label),m(),p("innerHTML",n.Message,W),m(2),p("ngIf",n.DurationInSecond)("ngIfElse",a),m(4),s(n.StatusLabel),m(2),s(S(19,11,n.Created,"dd MMM yyyy HH:mm"))}}function Ft(t,e){if(t&1){let n=G();g(0),r(1,"div",6)(2,"div",21)(3,"app-custom-paginator",22),d(4,"async"),d(5,"async"),V("total",function(){b(n);let i=f(2);return E(i.getRowCount())})("next",function(){b(n);let i=f(2);return E(i.onNextPage())})("previous",function(){b(n);let i=f(2);return E(i.onPreviousPage())}),o()()(),h()}if(t&2){let n=f().ngIf,a=f();m(3),p("filter",a.filter)("totaldata",n==null?null:n.length)("paginationTotal",_(4,4,a.rowCount$))("hasClicked",_(5,6,a.rowCount$))}}function Rt(t,e){if(t&1&&(g(0),u(1,Ft,6,8,"ng-container",13),h()),t&2){let n=e.ngIf;m(),p("ngIf",n.length>0)}}var _t=(()=>{let e=class e{constructor(a,i,c){this.http=a,this.notificationService=i,this.authService=c,this.filter=new vt,this.destroy$=new z,this.channelOptions=c.getChannels()}ngOnInit(){this.notificationService.clearNotification(),this.initPageLoader(),this.subscribeNotification()}subscribeNotification(){this.notificationService.getNotification().pipe(U(this.destroy$)).subscribe(a=>{a.length>0&&(this.getNotifications(),this.notificationService.clearNotification())})}initPageLoader(){this.http.post("/api/notification/Load",{}).subscribe(a=>{this.filter=a.Filter,this.filter.PageSize=this.filter.RowCount,this.getNotifications()})}onFilter(){this.rowCount$=null,this.getNotifications()}getNotifications(){let a={ChannelID:this.filter.ChannelID,RowCount:this.filter.PageSize,PageNumber:this.filter.PageNumber};this.notifications$=this.http.post("/api/notification/Get",a).pipe(C(i=>i.Data),C(i=>(i=this.setChannelLogoToNotifications(i),i=this.setTimeToSecond(i),i)),j(1))}setTimeToSecond(a){return a=a.map(i=>(i.DurationInSecond=parseInt(i.Duration)/1e3,i)),a}setChannelLogoToNotifications(a){return a=a.map(i=>(i.Img=pt.getChannelLogoByTypeId(i.TypeID),i)),a}onNextPage(){this.filter.PageNumber+=1,this.getNotifications()}onPreviousPage(){this.filter.PageNumber-=1,this.getNotifications()}getRowCount(){let a={ChannelID:this.filter.ChannelID};this.rowCount$=this.http.post("/api/notification/RowCount",a).pipe(C(i=>i.Count),j(1))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};e.\u0275fac=function(i){return new(i||e)(v(at),v(B),v(st))},e.\u0275cmp=y({type:e,selectors:[["app-notification"]],decls:30,vars:9,consts:[["timeNotAvailable",""],["headerTitle","Notification","hideSearchBox","true",3,"onSubmit"],[1,"mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[3,"ngClass"],[3,"routerLink","queryParams"],["alt","",1,"channelLogo-md","me-4",3,"src"],[3,"innerHTML"],[4,"ngIf","ngIfElse"],[1,"col-12"],[3,"total","next","previous","filter","totaldata","paginationTotal","hasClicked"]],template:function(i,c){i&1&&(r(0,"mainpanel",1),V("onSubmit",function(){return c.onFilter()}),r(1,"filters")(2,"div")(3,"h6",2),l(4,"Channel"),o(),r(5,"ng-select",3),Y("ngModelChange",function(O){return X(c.filter.ChannelID,O)||(c.filter.ChannelID=O),O}),u(6,wt,3,3,"ng-template",4),o()()(),r(7,"content")(8,"div",5)(9,"div",6)(10,"div",7)(11,"div",8)(12,"table",9)(13,"thead",10)(14,"tr",11)(15,"th"),l(16,"Channel"),o(),r(17,"th"),l(18,"Process"),o(),r(19,"th"),l(20,"Duration"),o(),r(21,"th"),l(22,"Status"),o(),r(23,"th"),l(24,"Created"),o()()(),r(25,"tbody"),u(26,Lt,20,20,"ng-container",12),d(27,"async"),o()()()()(),u(28,Rt,2,1,"ng-container",13),d(29,"async"),o()()()),i&2&&(m(5),p("clearable",!0)("items",c.channelOptions),Q("ngModel",c.filter.ChannelID),m(21),p("ngForOf",_(27,5,c.notifications$)),m(2),p("ngIf",_(29,7,c.notifications$)))},dependencies:[nt,ot,T,ut,dt,ft,lt,mt,k,F,$,w,P,M]});let t=e;return t})();function Bt(t,e){if(t&1&&(r(0,"div",10)(1,"div",13)(2,"div",7)(3,"h5"),l(4,"Perflog"),o()(),r(5,"div",8)(6,"div",14)(7,"div",15)(8,"pre"),l(9),o()()()()()()),t&2){let n=f().ngIf;m(9),s(n.Perflog)}}function kt(t,e){if(t&1&&(g(0),r(1,"div",17)(2,"div",13)(3,"div",7)(4,"h5"),l(5,"StackTrace"),o()(),r(6,"div",8)(7,"div",14)(8,"div",15)(9,"pre"),l(10),o()()()()()(),h()),t&2){let n=f().ngIf;m(10),s(n==null?null:n.StackTrace)}}function $t(t,e){if(t&1&&(g(0),r(1,"mainpanel",1)(2,"actions")(3,"a",2),l(4,"Back"),o()(),r(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h5"),l(12,"General"),o()(),r(13,"div",8)(14,"div",9)(15,"div",10)(16,"div",11)(17,"label"),l(18,"Created Date"),o(),r(19,"div")(20,"span"),l(21),d(22,"date"),o()()()(),r(23,"div",10)(24,"div",11)(25,"label"),l(26,"Status"),o(),r(27,"div")(28,"span"),l(29),o()()()()(),r(30,"div",12)(31,"div",10)(32,"div",11)(33,"label"),l(34,"Duration"),o(),r(35,"div")(36,"span"),l(37),d(38,"number"),o()()()(),r(39,"div",10)(40,"div",11)(41,"label"),l(42,"Label"),o(),r(43,"div")(44,"span"),l(45),o()()()()()()()()(),r(46,"div",4)(47,"div",10)(48,"div",13)(49,"div",7)(50,"h5"),l(51,"Message"),o()(),r(52,"div",8)(53,"div",14)(54,"div",15)(55,"pre"),l(56),o()()()()()(),u(57,Bt,10,1,"div",16)(58,kt,11,1,"ng-container",0),o()()()(),h()),t&2){let n=e.ngIf;m(),p("headerTitle","Notification "+n.Name)("hideSearchBox",!0)("hideSearchDropdown",!0),m(20),s(S(22,10,n.Created,"dd MMM yyyy HH:mm:ss")),m(8),s(n.StatusLabel),m(8),x("",S(38,13,n.DurationInSecond,"1.1-1")," s"),m(8),s(n.Label),m(11),s(n.Message),m(),p("ngIf",n==null?null:n.Perflog),m(),p("ngIf",n==null?null:n.StackTrace)}}var Ct=(()=>{let e=class e{constructor(a,i){this.activatedRoute=a,this.notificationService=i}ngOnInit(){this.notification$=this.activatedRoute.queryParams.pipe(q(a=>{let i=a.ID;return this.notificationService.getNotificationDetail(i).pipe(C(c=>(c.DurationInSecond=parseInt(c.Duration)/1e3,c)))}))}};e.\u0275fac=function(i){return new(i||e)(v(rt),v(B))},e.\u0275cmp=y({type:e,selectors:[["app-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/notification",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-8"],[1,"row"],[1,"col-12"],[1,"card","mb-8"],[1,"card-header"],[1,"card-body"],[1,"row","mt-6"],[1,"col-sm-6"],[1,"info-label-group"],[1,"row","mt-4"],[1,"card"],[1,"col-sm-12","mt-2"],[1,"form-group"],["class","col-sm-6",4,"ngIf"],[1,"col-sm-12"]],template:function(i,c){i&1&&(u(0,$t,59,16,"ng-container",0),d(1,"async")),i&2&&p("ngIf",_(1,1,c.notification$))},dependencies:[T,k,F,w,P,M]});let t=e;return t})();var Ot=[{path:"",component:_t},{path:"detail",component:Ct}],St=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=N({type:e}),e.\u0275inj=I({imports:[L,R.forChild(Ot)]});let t=e;return t})();var de=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=N({type:e}),e.\u0275inj=I({imports:[L,St,gt,ct,ht,R,$]});let t=e;return t})();export{de as NotificationModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b}from"./chunk-CVLA5R75.js";import{a as h,b as P}from"./chunk-TX43EE6N.js";import{a as C}from"./chunk-N23ZYP7G.js";import{c as M}from"./chunk-DXJFMERC.js";import{b as O}from"./chunk-7NWB2VB2.js";import"./chunk-IP2WADIR.js";import"./chunk-MEGPKKGI.js";import{e as s}from"./chunk-2Y4N4NSS.js";import{a as p}from"./chunk-
|
|
1
|
+
import{a as b}from"./chunk-CVLA5R75.js";import{a as h,b as P}from"./chunk-TX43EE6N.js";import{a as C}from"./chunk-N23ZYP7G.js";import{c as M}from"./chunk-DXJFMERC.js";import{b as O}from"./chunk-7NWB2VB2.js";import"./chunk-IP2WADIR.js";import"./chunk-MEGPKKGI.js";import{e as s}from"./chunk-2Y4N4NSS.js";import{a as p}from"./chunk-QCFKCDKM.js";import"./chunk-5WVUQE43.js";import"./chunk-AAIK6JQ3.js";import"./chunk-YERME2YY.js";import"./chunk-IPX66YIX.js";import"./chunk-HBHGO2RV.js";import{m as u}from"./chunk-PIDUM6XT.js";import{u as f}from"./chunk-43TMSPFC.js";import"./chunk-4TYJR476.js";import{u as g}from"./chunk-F5YRASNU.js";import"./chunk-2UXFUEON.js";import{aa as e,cd as l,ga as d,gd as m,ha as r,mb as c,zc as i}from"./chunk-77JORVC2.js";import"./chunk-CRRJCY55.js";var _=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=d({type:t,selectors:[["app-products"]],decls:1,vars:0,template:function(n,v){n&1&&c(0,"router-outlet")},dependencies:[l],styles:[".badge-pill[_ngcontent-%COMP%]{padding-bottom:16px!important}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#dfeffc;border:1px solid #dfeffc}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:0;top:0}.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:3px;margin-right:10px;cursor:pointer;padding:10px;margin-bottom:10px;color:#000;width:80px;text-align:center}.modal-dialog[_ngcontent-%COMP%]{max-width:30%!important}.product[_ngcontent-%COMP%]{height:100%!important}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}ul[_ngcontent-%COMP%]{list-style-type:none}.link[_ngcontent-%COMP%]{color:#0202ab;cursor:pointer}.px-1[_ngcontent-%COMP%]{padding-left:5px!important}.sku[_ngcontent-%COMP%]{color:#696969;font-style:italic}.badge-pill[_ngcontent-%COMP%]{height:16px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.no-title[_ngcontent-%COMP%]{margin-top:.33em;margin-bottom:.33rem}.mb-upload[_ngcontent-%COMP%]{padding-bottom:.625rem}.my-1rem[_ngcontent-%COMP%]{margin-bottom:1rem!important;margin-top:1rem!important}.pr-rem[_ngcontent-%COMP%]{padding-right:.6rem}.text-larger[_ngcontent-%COMP%]{font-size:larger}.bg-lightpink[_ngcontent-%COMP%]{background-color:#f9dede}.bottom-buttons[_ngcontent-%COMP%]{margin-left:97px}@media (min-width: 1200px){.max-w-xl[_ngcontent-%COMP%]{max-width:205px}}.navbar-toggler[_ngcontent-%COMP%]:focus{box-shadow:none!important}"]});let o=t;return o})();var y=[{path:"",component:_,children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",loadChildren:()=>import("./chunk-ZVNVZRA7.js").then(o=>o.StatusModule),canActivate:[p]},{path:"download",loadChildren:()=>import("./chunk-VD46BM3E.js").then(o=>o.DownloadModule),canActivate:[p]}]}],w=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=r({type:t}),t.\u0275inj=e({imports:[i,m.forChild(y)]});let o=t;return o})();var W=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=r({type:t}),t.\u0275inj=e({imports:[i,g,m,w,f,u,s,O,C,M,h,P,b]});let o=t;return o})();export{W as ProductModule};
|