marketplacepos 3.20.8 → 3.21.1
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-NREK5LA6.js → chunk-2KLVX7O5.js} +1 -1
- package/Marketplace/{chunk-7RXTYW3B.js → chunk-2YNHF5VE.js} +1 -1
- package/Marketplace/{chunk-AM55EQMX.js → chunk-44RVW2RQ.js} +1 -1
- package/Marketplace/{chunk-EKA76B4K.js → chunk-45ETPFJ5.js} +1 -1
- package/Marketplace/chunk-4GVZ3VRC.js +52 -0
- package/Marketplace/{chunk-OEYCEBSD.js → chunk-5VHCYTXT.js} +1 -1
- package/Marketplace/{chunk-JB2FBPME.js → chunk-AH6VMXET.js} +1 -1
- package/Marketplace/{chunk-RI5C7LLN.js → chunk-BIDA5B2H.js} +1 -1
- package/Marketplace/chunk-CDJSFYAA.js +1 -0
- package/Marketplace/chunk-DMVTFOY7.js +4 -0
- package/Marketplace/{chunk-HZJNPCBI.js → chunk-DOEP2KOD.js} +1 -1
- package/Marketplace/chunk-DY2P6RVD.js +1 -0
- package/Marketplace/{chunk-3YVIB6CC.js → chunk-F4QDIL47.js} +1 -1
- package/Marketplace/{chunk-3SMSJGST.js → chunk-FUVETEZX.js} +1 -1
- package/Marketplace/{chunk-JF52POHG.js → chunk-J3363EHD.js} +1 -1
- package/Marketplace/{chunk-5K4WRBCE.js → chunk-J3Q25CP2.js} +1 -1
- package/Marketplace/{chunk-AHIWTEG3.js → chunk-JHUC34EK.js} +1 -1
- package/Marketplace/{chunk-H3XVRLMZ.js → chunk-LOIHWDCD.js} +1 -1
- package/Marketplace/{chunk-I7KCIWCN.js → chunk-QHBYKGZT.js} +1 -1
- package/Marketplace/{chunk-34PP6HJW.js → chunk-QS5PGQR5.js} +2 -2
- package/Marketplace/{chunk-55NJCTT3.js → chunk-SMJLUQ5C.js} +1 -1
- package/Marketplace/{chunk-H4B5TTCJ.js → chunk-T3L4XLGR.js} +1 -1
- package/Marketplace/{chunk-QE2GPS45.js → chunk-U2PDWSU3.js} +1 -1
- package/Marketplace/{chunk-R2NELHIC.js → chunk-UEUWNU67.js} +1 -1
- package/Marketplace/{chunk-GLBXDNQB.js → chunk-UOX3GFQQ.js} +1 -1
- package/Marketplace/{chunk-5OIZQ4HS.js → chunk-UPLK5B7M.js} +1 -1
- package/Marketplace/{chunk-EGYILQWG.js → chunk-UVOYHHTH.js} +1 -1
- package/Marketplace/{chunk-AR5SSAIO.js → chunk-UW6NE76R.js} +1 -1
- package/Marketplace/{chunk-SWXW6HCG.js → chunk-ZKE4QZNM.js} +1 -1
- package/Marketplace/chunk-ZNVGLDVF.js +9 -0
- package/Marketplace/{chunk-EDIHKCTJ.js → chunk-ZX2VCK6U.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-KXAPH4VR.js → main-IQD6HIQL.js} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-5FOPZ5IX.js +0 -4
- package/Marketplace/chunk-5ZUIIYSQ.js +0 -3
- package/Marketplace/chunk-PTFQX4VB.js +0 -1
- package/Marketplace/chunk-SQTY2CZY.js +0 -1
- package/Marketplace/chunk-U2KZLYTH.js +0 -52
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as ae,e as me}from"./chunk-JHYIHRQH.js";import{b as S,c as A,h as se,i as _,j as M}from"./chunk-4CEFDQPI.js";import{c as w,e as N,h as R,i as $,j as ee,l as K,m as W,n as te,p as ne,r as oe,v as ie,w as re}from"./chunk-2E5AKA74.js";import{b as Y,c as le}from"./chunk-FTHTFVHH.js";import{Ha as z,Ib as F,Ja as m,Jb as s,Ka as C,Kb as P,Lb as H,Nb as T,Ob as b,Pb as D,Tb as k,_a as h,ab as u,ga as y,hb as V,mb as o,nb as r,oa as c,ob as I,pa as g,sb as L,vb as v,vc as q,xb as U,xc as Q,yc as X}from"./chunk-ZIZWZZ4E.js";function pe(t,i){if(t&1&&(o(0,"tr")(1,"td")(2,"a",11),I(3,"img",12),o(4,"span"),s(5),r()()(),o(6,"td"),s(7),r(),o(8,"td"),s(9),r()()),t&2){let f=i.$implicit;m(2),u("href","/menu/channel/marketplace/view?ID="+f.Key.ID,z),m(),u("src",f.Logo,z),m(2),P(f.Key.Name),m(2),P(f.Value.Out),m(2),P(f.Value.Tg)}}var De=(()=>{let i=class i{constructor(l,n){this.dialogRef=l,this.data=n,this.generateChannelName(),this.channels=this.setChannelLogo(n.channels)}ngOnInit(){this.modalConfig=new _,this.modalConfig.title="Channel - New Order Configuration is not Unique!",this.modalConfig.headerType=se.Warning,this.modalConfig.hideOk=!0,this.modalConfig.cancelText="Close",this.modalConfig.customWidth="500px",this.modalConfig.bodyScrollable=!0,this.modalConfig.hideClose=!0}setChannelLogo(l){return l.map(n=>(n.Logo=le.getChannelLogoByTypeId(n.Key.TypeID),n))}generateChannelName(){this.channelNames="";let l=this.data.channels;l.forEach((n,e)=>{this.channelNames+=`${n.Key} ${e!=l.length-1?" + ":""}`})}onClose(){this.dialogRef.close()}};i.\u0275fac=function(n){return new(n||i)(C(S),C(A))},i.\u0275cmp=y({type:i,selectors:[["app-modal-channel-warning"]],decls:24,vars:2,consts:[[3,"onCancel","onClose","config"],["content","",1,"pt-2","px-4"],[1,"row"],[1,"col-12"],[1,"lh-base","fs-5"],[1,"mb-4"],[1,"table","table-bordered"],[1,"table-light"],[4,"ngFor","ngForOf"],[1,"fs-5","mt-4"],["href","https://support.dealpos.com/en/articles/8281096-setup-multiple-channel-marketplace-to-one-warehouse-outlet","target","_blank"],["target","_blank",3,"href"],[1,"me-3",2,"width","24px",3,"src"]],template:function(n,e){n&1&&(o(0,"modal-material",0),v("onCancel",function(){return e.onClose()})("onClose",function(){return e.onClose()}),o(1,"div",1)(2,"div",2)(3,"div",3)(4,"p",4),s(5,"When your order configuration is not unique, your Dashboard Sales Report will be invalid. You can use either Outlet or Order Tag to differentiate Channel Order. "),r(),o(6,"h5",5),s(7,"Your duplicate Channels are"),r(),o(8,"table",6)(9,"thead")(10,"tr",7)(11,"th"),s(12,"Channel"),r(),o(13,"th"),s(14,"Outlet"),r(),o(15,"th"),s(16,"Tag"),r()()(),o(17,"tbody"),h(18,pe,10,5,"tr",8),r()(),o(19,"p",9),s(20," Please refer to this "),o(21,"a",10),s(22,"article"),r(),s(23," for more information "),r()()()()()),n&2&&(u("config",e.modalConfig),m(18),u("ngForOf",e.channels))},dependencies:[Q,M]});let t=i;return t})();var Ie=(()=>{let i=class i{constructor(l,n,e){this.dialogRef=l,this.httpService=n,this.toastr=e,this.modalConfig=new _,this.modalConfig.title="Write Off Reason"}onSubmit(){let l={Name:this.reason};this.subscription=this.httpService.post("/api/channel/AddWriteoffOption",l).subscribe(n=>{this.toastr.success(n.Message,"Success"),this.dialogRef.close(l)})}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.subscription.unsubscribe()}};i.\u0275fac=function(n){return new(n||i)(C(S),C(me),C(ae))},i.\u0275cmp=y({type:i,selectors:[["app-dialog-writeOff-reason"]],decls:7,vars:3,consts:[["name","ngModel"],[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[1,"form-label-group"],["type","text","id","writeOffReason","placeholder","Write Off Reason","name","writeOffReason",1,"form-control",3,"ngModelChange","ngModel"],["for","shopid"]],template:function(n,e){if(n&1){let a=L();o(0,"modal-material",1),v("onClose",function(){return c(a),g(e.onClose())})("onCancel",function(){return c(a),g(e.onClose())})("onOk",function(){return c(a),g(e.onSubmit())}),o(1,"div",2)(2,"div",3)(3,"input",4,0),D("ngModelChange",function(p){return c(a),b(e.reason,p)||(e.reason=p),g(p)}),r(),o(5,"label",5),s(6,"Reason"),r()()()()}n&2&&(u("dynamicValidated",e.reason)("config",e.modalConfig),m(3),T("ngModel",e.reason))},dependencies:[w,R,W,M],styles:[".mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}"]});let t=i;return t})();var ue=t=>({invalid:t});function fe(t,i){t&1&&(o(0,"small"),s(1," URL is required "),r())}function ce(t,i){if(t&1&&(o(0,"div",13),h(1,fe,2,0,"small",14),r()),t&2){U();let f=F(10);m(),u("ngIf",f.errors.required)}}function ge(t,i){t&1&&(o(0,"small"),s(1," Email is required "),r())}function Ce(t,i){t&1&&(o(0,"small"),s(1," Email is not valid "),r())}function he(t,i){if(t&1&&(o(0,"div",13),h(1,ge,2,0,"small",14)(2,Ce,2,0,"small",14),r()),t&2){U();let f=F(16);m(),u("ngIf",f.errors.required),m(),u("ngIf",f.errors.pattern)}}var ke=(()=>{let i=class i{constructor(l){this.dialogRef=l}ngOnInit(){this.formData={URL:"",Email:""},this.initModalConfig()}initModalConfig(){this.modalConfig=new _,this.modalConfig.title="Fill data for Customer Support"}onSubmit(l){l!="Enter"&&this.dialogRef.close(this.formData)}onClose(){this.dialogRef.close()}};i.\u0275fac=function(n){return new(n||i)(C(S))},i.\u0275cmp=y({type:i,selectors:[["app-contact-support"]],decls:18,vars:9,consts:[["url","ngModel"],["email","ngModel"],[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[1,"mx-4"],["for","customerURL"],[1,"input-group","mb-2"],[1,"input-group-prepend"],["id","tokopediaUrl",1,"border-start-0","rounded-start","input-group-text","pointer-default","bg-light",2,"height","58px",3,"ngClass"],["required","","type","text","id","customerURL","name","customerURL","title","customerURL",1,"form-control","border-start-0","customerUrl",3,"ngModelChange","ngModel"],["class","text-danger",4,"ngIf"],["for","customerEmail"],["required","","type","text","id","customerEmail","name","customerEmail","title","customerEmail","pattern","\\b[\\w\\.-]+@[\\w\\.-]+\\.\\w{2,4}\\b",1,"form-control",3,"ngModelChange","ngModel"],[1,"text-danger"],[4,"ngIf"]],template:function(n,e){if(n&1){let a=L();o(0,"modal-material",2),v("onClose",function(){return c(a),g(e.onClose())})("onCancel",function(){return c(a),g(e.onClose())})("onOk",function(p){return c(a),g(e.onSubmit(p))}),o(1,"div",3)(2,"div",4)(3,"label",5),s(4,"Tokopedia URL"),r(),o(5,"div",6)(6,"div",7)(7,"span",8),s(8,"https://tokopedia.com/"),r()(),o(9,"input",9,0),D("ngModelChange",function(p){return c(a),b(e.formData.URL,p)||(e.formData.URL=p),g(p)}),r()(),h(11,ce,2,1,"div",10),o(12,"label",11),s(13,"Requester's Email"),r(),o(14,"div",6)(15,"input",12,1),D("ngModelChange",function(p){return c(a),b(e.formData.Email,p)||(e.formData.Email=p),g(p)}),r()(),h(17,he,3,2,"div",10),r()()()}if(n&2){let a=F(10),d=F(16);u("dynamicValidated",!a.invalid&&!d.invalid)("config",e.modalConfig),m(7),u("ngClass",k(7,ue,a.invalid&&(a.dirty||a.touched))),m(2),T("ngModel",e.formData.URL),m(2),u("ngIf",a.invalid&&(a.dirty||a.touched)),m(4),T("ngModel",e.formData.Email),m(2),u("ngIf",d.invalid&&(d.dirty||d.touched))}},dependencies:[q,X,w,R,ie,re,W,M],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.input-group[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-radius:.25rem!important;border-color:#c8d3df}.input-group[_ngcontent-%COMP%] > input.ng-invalid.ng-touched[_ngcontent-%COMP%]{border-color:#fb404b}.input-group[_ngcontent-%COMP%] > input.customerUrl[_ngcontent-%COMP%]{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.invalid[_ngcontent-%COMP%]{border-color:#fb404b}.pointer-default[_ngcontent-%COMP%]{cursor:default}"]});let t=i;return t})();var Fe=(()=>{let i=class i{constructor(l,n){this.dialogRef=l,this.data=n}ngOnInit(){this.initModalConfig()}initModalConfig(){this.modalConfig=new _,this.modalConfig.title=this.data?.title,this.modalConfig.okText="SAVE"}onSubmit(){this.dialogRef.close(this.shopID)}onClose(){this.dialogRef.close()}};i.\u0275fac=function(n){return new(n||i)(C(S),C(A))},i.\u0275cmp=y({type:i,selectors:[["app-modal-dialog-tokopedia"]],decls:7,vars:3,consts:[["name","ngModel"],[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[1,"form-label-group"],["type","text","id","shopid","placeholder","Shop ID","name","ShopID","data-toggle","tooltip","title","Channel Name",1,"form-control",3,"ngModelChange","ngModel"],["for","shopid"]],template:function(n,e){if(n&1){let a=L();o(0,"modal-material",1),v("onClose",function(){return c(a),g(e.onClose())})("onCancel",function(){return c(a),g(e.onClose())})("onOk",function(){return c(a),g(e.onSubmit())}),o(1,"div",2)(2,"div",3)(3,"input",4,0),D("ngModelChange",function(p){return c(a),b(e.shopID,p)||(e.shopID=p),g(p)}),r(),o(5,"label",5),s(6,"Shop ID"),r()()()()}n&2&&(u("dynamicValidated",e.shopID)("config",e.modalConfig),m(3),T("ngModel",e.shopID))},dependencies:[w,R,W,M],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"]});let t=i;return t})();var J=t=>({"is-invalid":t});function _e(t,i){t&1&&(o(0,"div"),s(1,"Please input with shopify domain. example mystore.myshopify.com"),r())}function ye(t,i){if(t&1&&(o(0,"div"),s(1),r()),t&2){let f=U(2);m(),H("",f.data==null?null:f.data.title," url is required")}}function ve(t,i){if(t&1&&(o(0,"div",6),h(1,_e,2,0,"div")(2,ye,2,1,"div"),r()),t&2){let f,l,n=U();m(),V(!(n.formGroup==null||(f=n.formGroup.get("URL"))==null)&&f.getError("pattern")?1:-1),m(),V(!(n.formGroup==null||(l=n.formGroup.get("URL"))==null)&&l.getError("required")?2:-1)}}function Se(t,i){t&1&&(o(0,"div",6),s(1," Consumer Key is required "),r())}function Me(t,i){t&1&&(o(0,"div",6),s(1," Consumer Secret is required "),r())}var Be=(()=>{let i=class i{constructor(l,n){this.dialogRef=l,this.data=n,this.modalConfig=new _,this.shopifyRegex=new RegExp("^[a-zA-Z0-9-]+.myshopify.com/?$"),this.urlCtrl=new K(null,N.pattern(this.shopifyRegex)),this.channelType=Y}ngOnInit(){this.initModalConfig(),this.initFormGroup()}initFormGroup(){let l=[N.required];this.data.channelType===Y.Shopify&&l.push(N.pattern(this.shopifyRegex)),this.formGroup=new ee({URL:new K(null,l),ConsumerKey:new K(null,[N.required]),ConsumerSecret:new K(null,[N.required])})}initModalConfig(){this.modalConfig=new _,this.modalConfig.title=this.data.title,this.modalConfig.okText="SAVE"}onClose(){this.dialogRef.close()}onSubmit(){this.formGroup.markAllAsTouched();let l=this.formGroup?.get("URL")?.getError("pattern"),n=this.formGroup?.get("ConsumerKey")?.valid,e=this.formGroup?.get("ConsumerSecret")?.valid;(this.formGroup?.valid||l&&n&&e)&&this.dialogRef.close(this.formGroup.value)}};i.\u0275fac=function(n){return new(n||i)(C(S),C(A))},i.\u0275cmp=y({type:i,selectors:[["app-modal-register-channel"]],decls:18,vars:16,consts:[[3,"onClose","onCancel","onOk","config"],["content",""],[3,"formGroup"],[1,"form-label-group","has-validation"],["type","text","id","shopid","name","URL","title","URL","formControlName","URL",1,"form-control",3,"placeholder","ngClass"],["for","shopid"],[1,"invalid-feedback"],["type","text","id","ConsumerKey","placeholder","Consumer Key","name","ConsumerKey","title","ConsumerKey","formControlName","ConsumerKey",1,"form-control",3,"ngClass"],["for","ConsumerKey"],["type","text","id","ConsumerSecret","placeholder","Consumer Secret","name","ConsumerSecret","title","ConsumerSecret","formControlName","ConsumerSecret",1,"form-control",3,"ngClass"],["for","ConsumerSecret"]],template:function(n,e){if(n&1&&(o(0,"modal-material",0),v("onClose",function(){return e.onClose()})("onCancel",function(){return e.onClose()})("onOk",function(){return e.onSubmit()}),o(1,"div",1)(2,"form",2)(3,"div",3),I(4,"input",4),o(5,"label",5),s(6),r(),h(7,ve,3,2,"div",6),r(),o(8,"div",3),I(9,"input",7),o(10,"label",8),s(11,"Consumer Key"),r(),h(12,Se,2,0,"div",6),r(),o(13,"div",3),I(14,"input",9),o(15,"label",10),s(16,"Consumer Secret"),r(),h(17,Me,2,0,"div",6),r()()()()),n&2){let a,d,p,E,G,O;u("config",e.modalConfig),m(2),u("formGroup",e.formGroup),m(2),u("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"Default Url Shopify":"Url")("ngClass",k(10,J,(e.formGroup==null||(a=e.formGroup.get("URL"))==null?null:a.invalid)&&((e.formGroup==null||(a=e.formGroup.get("URL"))==null?null:a.dirty)||(e.formGroup==null||(a=e.formGroup.get("URL"))==null?null:a.touched)))),m(2),H(" ",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"Default Url Shopify":"Url"," "),m(),V(!(e.formGroup==null||(d=e.formGroup.get("URL"))==null)&&d.invalid&&(!(e.formGroup==null||(d=e.formGroup.get("URL"))==null)&&d.dirty||!(e.formGroup==null||(d=e.formGroup.get("URL"))==null)&&d.touched)?7:-1),m(2),u("ngClass",k(12,J,(e.formGroup==null||(p=e.formGroup.get("ConsumerKey"))==null?null:p.invalid)&&((e.formGroup==null||(p=e.formGroup.get("ConsumerKey"))==null?null:p.dirty)||(e.formGroup==null||(p=e.formGroup.get("ConsumerKey"))==null?null:p.touched)))),m(3),V(!(e.formGroup==null||(E=e.formGroup.get("ConsumerKey"))==null)&&E.getError("required")&&(!(e.formGroup==null||(E=e.formGroup.get("ConsumerKey"))==null)&&E.dirty||!(e.formGroup==null||(E=e.formGroup.get("ConsumerKey"))==null)&&E.touched)?12:-1),m(2),u("ngClass",k(14,J,(e.formGroup==null||(G=e.formGroup.get("ConsumerSecret"))==null?null:G.invalid)&&((e.formGroup==null||(G=e.formGroup.get("ConsumerSecret"))==null?null:G.dirty)||(e.formGroup==null||(G=e.formGroup.get("ConsumerSecret"))==null?null:G.touched)))),m(3),V(!(e.formGroup==null||(O=e.formGroup.get("ConsumerSecret"))==null)&&O.getError("required")&&(!(e.formGroup==null||(O=e.formGroup.get("ConsumerSecret"))==null)&&O.dirty||!(e.formGroup==null||(O=e.formGroup.get("ConsumerSecret"))==null)&&O.touched)?17:-1)}},dependencies:[q,te,w,R,$,M,ne,oe]});let t=i;return t})();export{De as a,Ie as b,ke as c,Fe as d,Be as e};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as l,e as C}from"./chunk-JHYIHRQH.js";import{b as s,c as u}from"./chunk-FTHTFVHH.js";import{$ as p,X as o,ca as r,q as c}from"./chunk-ZIZWZZ4E.js";var a=(()=>{let e=class e{};e.SubmitConfig="/api/Channel/SubmitConfig",e.PosAccountTest="/api/POSAccount/Test",e.PosAccountRemove="/api/POSAccount/Remove",e.PosAccountGetConfig="/api/ChannelLoader/GetConfig",e.ChannelGetLastSyncByID="/api/Channel/GetLastSyncByID",e.GetChannel="/api/Channel/GetChannel",e.GetChannelLoader="/api/ChannelLoader/GetChannelLoader",e.TestShopID="/api/Channel/TestShopID",e.UpdateChannelIndex="/api/Channel/UpdateChannelIndex",e.DeleteChannel="/api/Channel/DeleteChannel",e.GetRegisterByOutletName="/api/Channel/GetRegistersByOutletOrder",e.GetChannelRowCount="/api/Channel/GetCountChannel",e.GetChannelWarehouse="/api/Channel/GetChannelWarehouseLocation",e.UnSynchronizedWarehouse="/api/Channel/UnSynchronizedWarehouse";let i=e;return i})();var f=(()=>{let e=class e{constructor(t,n){this.httpService=t,this.toastr=n}saveChannel(t){return this.httpService.post("/api/Channel/SubmitChannel",t)}getLastSync(t){return this.httpService.get(`${a.ChannelGetLastSyncByID}/?ID=${t}`)}getChannel(t){return this.httpService.post(a.GetChannel,t)}getChannelLoader(){return this.httpService.get(a.GetChannelLoader)}testShopID(t){return this.httpService.post(a.TestShopID,t).pipe(o(n=>{this.showTostrSuccessTestShopID(n)}))}updateChannelIndex(t){return this.httpService.post(a.UpdateChannelIndex,t)}deleteChannel(t){return this.httpService.post(a.DeleteChannel,t)}mapChannelImage(t){return t.map(n=>(n.img=u.getChannelLogoByTypeId(n.TypeID),n))}showTostrSuccessTestShopID(t){let n="";for(var h in t)n+=h+" : "+t[h]+"<br/>";this.toastr.success(n,"Success",{enableHtml:!0,closeButton:!0,positionClass:"toast-bottom-right"})}getRegisterByOutletName(t){return this.httpService.post(a.GetRegisterByOutletName,{Outlet:t})}getChannelRowCount(t){return this.httpService.post(a.GetChannelRowCount,t).pipe(c(n=>n.Count))}getChannelWarehouse(t){return this.httpService.get(`${a.GetChannelWarehouse}/?ChannelID=${t}`)}unSynchronizedWarehouse(t){return this.httpService.delete(`${a.UnSynchronizedWarehouse}?ID=${t}`)}authorizedChannel(t){let n=this.getApiAuthorize(t);return this.httpService.post(`/api/${n}`,null).pipe(o(h=>{window.open(h.Url,"_blank")}))}getApiAuthorize(t){let n;switch(t){case s.Shopee:n="ChannelAuthorization/ShopeeV2_URL";break;case s.Tiktok:n="ChannelAuthorization/Tiktok_URL";break;case s.Lazada:n="ChannelAuthorization/Lazada_URL";break}return n}};e.\u0275fac=function(n){return new(n||e)(r(C),r(l))},e.\u0275prov=p({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();export{a,f as b};
|