marketplacepos 5.46.4 → 5.46.6
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/3rdpartylicenses.txt +43 -43
- package/Marketplace/{chunk-T4OUIM2Z.js → chunk-22ARBR7W.js} +1 -1
- package/Marketplace/{chunk-QTTNQJAK.js → chunk-2BV7ZXRB.js} +1 -1
- package/Marketplace/{chunk-EEZKQOJW.js → chunk-2DLU2LJJ.js} +1 -1
- package/Marketplace/{chunk-PQQSREEC.js → chunk-3PPLPXAX.js} +2 -2
- package/Marketplace/{chunk-7ZMHGW2W.js → chunk-4HOZLG47.js} +1 -1
- package/Marketplace/{chunk-HGGI2V4H.js → chunk-5BHSTOJT.js} +1 -1
- package/Marketplace/chunk-5DTUHJSS.js +1 -0
- package/Marketplace/{chunk-GHFADTRR.js → chunk-5EIQGYTB.js} +1 -1
- package/Marketplace/{chunk-5G2U27IM.js → chunk-5KUKIH4H.js} +1 -1
- package/Marketplace/chunk-5Z5Y537T.js +1 -0
- package/Marketplace/{chunk-C7YK5TDP.js → chunk-63ANFYRV.js} +1 -1
- package/Marketplace/{chunk-DGIH7HSJ.js → chunk-7TI3OR34.js} +1 -1
- package/Marketplace/{chunk-5BCJEYHC.js → chunk-7WY57PVD.js} +1 -1
- package/Marketplace/{chunk-FY73EXB5.js → chunk-7Y7SPMGZ.js} +1 -1
- package/Marketplace/{chunk-KVOROMP7.js → chunk-AWNZSJSP.js} +1 -1
- package/Marketplace/{chunk-5KMDUD2M.js → chunk-B2ZWLW3F.js} +1 -1
- package/Marketplace/chunk-CBQUB3KW.js +1 -0
- package/Marketplace/{chunk-HS64MICX.js → chunk-CRD4OUSG.js} +1 -1
- package/Marketplace/{chunk-W4MTON2T.js → chunk-CT73GC7O.js} +1 -1
- package/Marketplace/chunk-D2TELRO7.js +1 -0
- package/Marketplace/{chunk-GQXYHXWJ.js → chunk-DXPLB6OB.js} +1 -1
- package/Marketplace/chunk-EFB55SZR.js +1 -0
- package/Marketplace/{chunk-BG4CT2T7.js → chunk-ELZBUFG5.js} +1 -1
- package/Marketplace/chunk-EUYQST7Q.js +1 -0
- package/Marketplace/{chunk-WIMLQM6B.js → chunk-EXSI44LD.js} +2 -2
- package/Marketplace/{chunk-PHLSX23M.js → chunk-F2XHUFJC.js} +2 -2
- package/Marketplace/chunk-F3GLNINI.js +1 -0
- package/Marketplace/{chunk-34DHFHCG.js → chunk-FHNST4Y7.js} +1 -1
- package/Marketplace/{chunk-P35PCOWA.js → chunk-FKQ7ZVGD.js} +1 -1
- package/Marketplace/{chunk-6K6XBSWF.js → chunk-FOT5AJYX.js} +2 -2
- package/Marketplace/{chunk-BIHR6KWH.js → chunk-GSVFDIM6.js} +1 -1
- package/Marketplace/{chunk-UWC2EVFY.js → chunk-GZS2MOSK.js} +1 -1
- package/Marketplace/{chunk-WY37QAZ4.js → chunk-JAWWMIGP.js} +1 -1
- package/Marketplace/{chunk-6DYFCRDG.js → chunk-JUJFPAAU.js} +1 -1
- package/Marketplace/{chunk-ZMF3NFLA.js → chunk-JZDOMET2.js} +1 -1
- package/Marketplace/chunk-KTB223SK.js +1 -0
- package/Marketplace/{chunk-IJVKHW3C.js → chunk-KWHVCPX2.js} +1 -1
- package/Marketplace/{chunk-ZKROHCYD.js → chunk-LLHPMXKP.js} +1 -1
- package/Marketplace/{chunk-YJKAX7P2.js → chunk-LS7AO6KP.js} +1 -1
- package/Marketplace/{chunk-SBLG2UP7.js → chunk-LXXEN7OV.js} +1 -1
- package/Marketplace/{chunk-UBA54WUZ.js → chunk-MGLOTL2T.js} +1 -1
- package/Marketplace/{chunk-F4X5RWKY.js → chunk-MZWTCBAF.js} +8 -8
- package/Marketplace/{chunk-5RAWBW2Q.js → chunk-NDBC2CS6.js} +1 -1
- package/Marketplace/{chunk-57MSCWQ4.js → chunk-NFGFM7TW.js} +1 -1
- package/Marketplace/{chunk-TKV7XWBT.js → chunk-O2YNPIYM.js} +1 -1
- package/Marketplace/{chunk-SWV5QK47.js → chunk-OGJMVAEL.js} +1 -1
- package/Marketplace/{chunk-KEQ7PUNM.js → chunk-OO2CSDGF.js} +1 -1
- package/Marketplace/{chunk-BVPWV5YO.js → chunk-P2AADVEN.js} +1 -1
- package/Marketplace/{chunk-NRUVGW2I.js → chunk-P2IQLBGG.js} +1 -1
- package/Marketplace/{chunk-2O4IEGGR.js → chunk-PGP3WHIS.js} +3 -3
- package/Marketplace/{chunk-NABJFAKJ.js → chunk-PTNJ3YC5.js} +1 -1
- package/Marketplace/chunk-QREUIGWW.js +1 -0
- package/Marketplace/{chunk-BPAZ4TES.js → chunk-RGY4FVTG.js} +1 -1
- package/Marketplace/{chunk-RU43F4UK.js → chunk-T27ABFCP.js} +1 -1
- package/Marketplace/{chunk-2GS6DJ33.js → chunk-TI67Q3JR.js} +1 -1
- package/Marketplace/chunk-TMKLT3K2.js +1 -0
- package/Marketplace/{chunk-AR6PLQ6X.js → chunk-TWOIWWMO.js} +1 -1
- package/Marketplace/{chunk-CJ4F7QUO.js → chunk-UGYIOLBR.js} +1 -1
- package/Marketplace/{chunk-NTWV33QC.js → chunk-URGPZLCB.js} +1 -1
- package/Marketplace/{chunk-FF4PEO2O.js → chunk-USBIAIK6.js} +1 -1
- package/Marketplace/{chunk-32YMOC74.js → chunk-UYFUJBC4.js} +1 -1
- package/Marketplace/{chunk-XSJBP4EN.js → chunk-V3ZRQKJA.js} +1 -1
- package/Marketplace/{chunk-PNF6K247.js → chunk-WGCIF2R4.js} +2 -2
- package/Marketplace/{chunk-NLJHQ4MQ.js → chunk-X4B2FYY3.js} +1 -1
- package/Marketplace/chunk-X52QA4QU.js +1 -0
- package/Marketplace/chunk-XLWWNO5M.js +1 -0
- package/Marketplace/{chunk-2REDCSBO.js → chunk-XONEJSCE.js} +1 -1
- package/Marketplace/{chunk-B3HL4DNT.js → chunk-Y4XF2TXJ.js} +1 -1
- package/Marketplace/{chunk-TEJITT3W.js → chunk-YEDXFYTD.js} +1 -1
- package/Marketplace/chunk-YF4XELSP.js +1 -0
- package/Marketplace/{chunk-2WHJU6CS.js → chunk-YU2SDRUC.js} +1 -1
- package/Marketplace/{chunk-GCOS7VK3.js → chunk-ZYQD6SBV.js} +10 -10
- package/Marketplace/index.html +4 -4
- package/Marketplace/{main-QTIXFWWZ.js → main-YKZPM7WW.js} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-4L5TB6FG.js +0 -1
- package/Marketplace/chunk-5JBIRETU.js +0 -1
- package/Marketplace/chunk-A44LN77B.js +0 -1
- package/Marketplace/chunk-CZBE6NFO.js +0 -1
- package/Marketplace/chunk-DLZRRLED.js +0 -1
- package/Marketplace/chunk-DZJWZ52D.js +0 -1
- package/Marketplace/chunk-HGDEIMTN.js +0 -1
- package/Marketplace/chunk-LRKVYKNL.js +0 -1
- package/Marketplace/chunk-OLANEXLB.js +0 -1
- package/Marketplace/chunk-QNX7E4P2.js +0 -1
- package/Marketplace/chunk-RI627B2Z.js +0 -1
- package/Marketplace/chunk-RXQX7567.js +0 -1
- package/Marketplace/chunk-TFM5EMU4.js +0 -1
- package/Marketplace/chunk-TYSVSEYQ.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as ae,e as re}from"./chunk-WN5DZGA4.js";import{b as ie,c as le}from"./chunk-RXQX7567.js";import{b as M,c as W,i as me,j as _,k as S}from"./chunk-HJXYT6MI.js";import{c as T,e as K,h as R,i as Z,j as x,l as N,m as k,n as $,q as ee,s as te,w as ne,y as oe}from"./chunk-5PS6ZS3N.js";import{d as F,f as Q,g as X}from"./chunk-FXQKRJWU.js";import{Fc as A,Gb as y,Gc as r,Hc as P,Ic as Y,Kc as b,Lc as w,Mb as f,Mc as D,Sc as U,Tc as J,Yb as p,dc as h,ic as i,jc as l,kc as V,oc as I,pb as z,rb as a,tc as v,uc as L,xb as C,ya as c,za as g}from"./chunk-OJMQBH6T.js";function pe(t,u){if(t&1&&(i(0,"tr")(1,"td")(2,"a",11),V(3,"img",12),i(4,"span"),r(5),l()()(),i(6,"td"),r(7),l(),i(8,"td"),r(9),l()()),t&2){let n=u.$implicit;a(2),p("href","/menu/channel/marketplace/view?ID="+n.Key.ID,z),a(),p("src",n.Logo,z),a(2),P(n.Key.Name),a(2),P(n.Value.Out),a(2),P(n.Value.Tg)}}var We=(()=>{class t{constructor(n,o){this.dialogRef=n,this.data=o,this.generateChannelName(),this.channels=this.setChannelLogo(o.channels)}ngOnInit(){this.modalConfig=new _,this.modalConfig.title="Channel - New Order Configuration is not Unique!",this.modalConfig.headerType=me.Warning,this.modalConfig.hideOk=!0,this.modalConfig.cancelText="Close",this.modalConfig.customWidth="500px",this.modalConfig.bodyScrollable=!0,this.modalConfig.hideClose=!0}setChannelLogo(n){return n.map(o=>(o.Logo=le.getChannelLogoByTypeId(o.Key.TypeID),o))}generateChannelName(){this.channelNames="";let n=this.data.channels;n.forEach((o,e)=>{this.channelNames+=`${o.Key} ${e!=n.length-1?" + ":""}`})}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(o){return new(o||t)(C(M),C(W))}}static{this.\u0275cmp=y({type:t,selectors:[["app-modal-channel-warning"]],standalone:!1,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(o,e){o&1&&(i(0,"modal-material",0),v("onCancel",function(){return e.onClose()})("onClose",function(){return e.onClose()}),i(1,"div",1)(2,"div",2)(3,"div",3)(4,"p",4),r(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. "),l(),i(6,"h5",5),r(7,"Your duplicate Channels are"),l(),i(8,"table",6)(9,"thead")(10,"tr",7)(11,"th"),r(12,"Channel"),l(),i(13,"th"),r(14,"Outlet"),l(),i(15,"th"),r(16,"Tag"),l()()(),i(17,"tbody"),f(18,pe,10,5,"tr",8),l()(),i(19,"p",9),r(20," Please refer to this "),i(21,"a",10),r(22,"article"),l(),r(23," for more information "),l()()()()()),o&2&&(p("config",e.modalConfig),a(18),p("ngForOf",e.channels))},dependencies:[Q,S],encapsulation:2})}}return t})();var Ke=(()=>{class t{constructor(n,o,e){this.dialogRef=n,this.httpService=o,this.toastr=e,this.modalConfig=new _,this.modalConfig.title="Write Off Reason"}onSubmit(){let n={Name:this.reason};this.subscription=this.httpService.post("/api/channel/AddWriteoffOption",n).subscribe(o=>{this.toastr.success(o.Message,"Success"),this.dialogRef.close(n)})}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(o){return new(o||t)(C(M),C(re),C(ae))}}static{this.\u0275cmp=y({type:t,selectors:[["app-dialog-writeOff-reason"]],standalone:!1,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(o,e){if(o&1){let m=I();i(0,"modal-material",1),v("onClose",function(){return c(m),g(e.onClose())})("onCancel",function(){return c(m),g(e.onClose())})("onOk",function(){return c(m),g(e.onSubmit())}),i(1,"div",2)(2,"div",3)(3,"input",4,0),D("ngModelChange",function(s){return c(m),w(e.reason,s)||(e.reason=s),g(s)}),l(),i(5,"label",5),r(6,"Reason"),l()()()()}o&2&&(p("dynamicValidated",e.reason)("config",e.modalConfig),a(3),b("ngModel",e.reason))},dependencies:[T,R,k,S],styles:[".mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}"]})}}return t})();var ue=t=>({invalid:t});function fe(t,u){t&1&&(i(0,"small"),r(1," URL is required "),l())}function ce(t,u){if(t&1&&(i(0,"div",13),f(1,fe,2,0,"small",14),l()),t&2){L();let n=A(10);a(),p("ngIf",n.errors.required)}}function ge(t,u){t&1&&(i(0,"small"),r(1," Email is required "),l())}function Ce(t,u){t&1&&(i(0,"small"),r(1," Email is not valid "),l())}function he(t,u){if(t&1&&(i(0,"div",13),f(1,ge,2,0,"small",14)(2,Ce,2,0,"small",14),l()),t&2){L();let n=A(16);a(),p("ngIf",n.errors.required),a(),p("ngIf",n.errors.pattern)}}var Be=(()=>{class t{constructor(n){this.dialogRef=n}ngOnInit(){this.formData={URL:"",Email:""},this.initModalConfig()}initModalConfig(){this.modalConfig=new _,this.modalConfig.title="Fill data for Customer Support"}onSubmit(n){n!="Enter"&&this.dialogRef.close(this.formData)}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(o){return new(o||t)(C(M))}}static{this.\u0275cmp=y({type:t,selectors:[["app-contact-support"]],standalone:!1,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(o,e){if(o&1){let m=I();i(0,"modal-material",2),v("onClose",function(){return c(m),g(e.onClose())})("onCancel",function(){return c(m),g(e.onClose())})("onOk",function(s){return c(m),g(e.onSubmit(s))}),i(1,"div",3)(2,"div",4)(3,"label",5),r(4,"Tokopedia URL"),l(),i(5,"div",6)(6,"div",7)(7,"span",8),r(8,"https://tokopedia.com/"),l()(),i(9,"input",9,0),D("ngModelChange",function(s){return c(m),w(e.formData.URL,s)||(e.formData.URL=s),g(s)}),l()(),f(11,ce,2,1,"div",10),i(12,"label",11),r(13,"Requester's Email"),l(),i(14,"div",6)(15,"input",12,1),D("ngModelChange",function(s){return c(m),w(e.formData.Email,s)||(e.formData.Email=s),g(s)}),l()(),f(17,he,3,2,"div",10),l()()()}if(o&2){let m=A(10),d=A(16);p("dynamicValidated",!m.invalid&&!d.invalid)("config",e.modalConfig),a(7),p("ngClass",U(7,ue,m.invalid&&(m.dirty||m.touched))),a(2),b("ngModel",e.formData.URL),a(2),p("ngIf",m.invalid&&(m.dirty||m.touched)),a(4),b("ngModel",e.formData.Email),a(2),p("ngIf",d.invalid&&(d.dirty||d.touched))}},dependencies:[F,X,T,R,ne,oe,k,S],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}"]})}}return t})();var Je=(()=>{class t{constructor(n,o){this.dialogRef=n,this.data=o}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()}static{this.\u0275fac=function(o){return new(o||t)(C(M),C(W))}}static{this.\u0275cmp=y({type:t,selectors:[["app-modal-dialog-tokopedia"]],standalone:!1,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(o,e){if(o&1){let m=I();i(0,"modal-material",1),v("onClose",function(){return c(m),g(e.onClose())})("onCancel",function(){return c(m),g(e.onClose())})("onOk",function(){return c(m),g(e.onSubmit())}),i(1,"div",2)(2,"div",3)(3,"input",4,0),D("ngModelChange",function(s){return c(m),w(e.shopID,s)||(e.shopID=s),g(s)}),l(),i(5,"label",5),r(6,"Shop ID"),l()()()()}o&2&&(p("dynamicValidated",e.shopID)("config",e.modalConfig),a(3),b("ngModel",e.shopID))},dependencies:[T,R,k,S],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}"]})}}return t})();var _e=t=>({"input-group":t}),ye=(t,u)=>({"is-invalid":t,"input-shopify rounded-start":u}),se=t=>({"is-invalid":t});function ve(t,u){t&1&&(i(0,"label",3),r(1,"Shopify URL"),l())}function Me(t,u){t&1&&(i(0,"label",3),r(1,"URL"),l())}function Se(t,u){t&1&&(i(0,"span",6),r(1,"myshopify.com"),l())}function Te(t,u){if(t&1&&(i(0,"div"),r(1),l()),t&2){let n=L(2);a(),Y("",n.data==null?null:n.data.title," url is required")}}function Re(t,u){if(t&1&&(i(0,"div",7),f(1,Te,2,1,"div"),l()),t&2){let n,o=L();a(),h(!(o.formGroup==null||(n=o.formGroup.get("URL"))==null)&&n.getError("required")?1:-1)}}function be(t,u){t&1&&r(0," API Key ")}function we(t,u){t&1&&r(0," Consumer Key ")}function De(t,u){t&1&&(r(0," ("),i(1,"a",11),r(2,"help center article"),l(),r(3,") "))}function Ee(t,u){t&1&&(i(0,"div",7),r(1,"API Key is required"),l())}function Oe(t,u){t&1&&r(0," Admin API Access Token ")}function Ge(t,u){t&1&&r(0," Consumer Secret ")}function Ve(t,u){t&1&&(i(0,"div",7),r(1,"Consumer Secret is required"),l())}var et=(()=>{class t{constructor(n,o){this.dialogRef=n,this.data=o,this.modalConfig=new _,this.urlCtrl=new N(null),this.channelType=ie}ngOnInit(){this.initModalConfig(),this.initFormGroup()}initFormGroup(){let n=[K.required];this.formGroup=new x({URL:new N(null,n),ConsumerKey:new N(null,[K.required]),ConsumerSecret:new N(null,[K.required])})}initModalConfig(){this.modalConfig=new _,this.modalConfig.title=this.data.title,this.modalConfig.okText="SAVE"}onClose(){this.dialogRef.close()}onSubmit(){this.formGroup.markAllAsTouched();let n=this.formGroup?.get("URL")?.getError("pattern"),o=this.formGroup?.get("ConsumerKey")?.valid,e=this.formGroup?.get("ConsumerSecret")?.valid;if(this.formGroup?.valid||n&&o&&e){let d=this.formGroup.value;d=this.trimShopifyUrl(d),this.dialogRef.close(d)}}trimShopifyUrl(n){if(this.data?.channelType==this.channelType.Shopify){let o=n.URL?.trim()||"";o=o.replace(/^https?:\/\//,""),o.includes(".myshopify.com")||(o=`${o}.myshopify.com`),n.URL=o}return n}static{this.\u0275fac=function(o){return new(o||t)(C(M),C(W))}}static{this.\u0275cmp=y({type:t,selectors:[["app-modal-register-channel"]],standalone:!1,decls:23,vars:27,consts:[[3,"onClose","onCancel","onOk","config"],["content",""],[3,"formGroup"],["for","shopid",1,"form-label","fw-bold","mb-2"],[1,"mb-8","has-validation",3,"ngClass"],["type","text","id","shopid","name","URL","title","URL","formControlName","URL",1,"form-control","form-input","rounded",3,"placeholder","ngClass"],["id","basic-addon2",1,"input-group-text","rounded-end","form-input","text-secondary"],[1,"invalid-feedback"],[1,"mb-8","has-validation"],["type","text","id","ConsumerKey","name","ConsumerKey","title","ConsumerKey","formControlName","ConsumerKey",1,"form-control","rounded","form-input",3,"placeholder","ngClass"],["type","text","id","ConsumerSecret","name","ConsumerSecret","title","ConsumerSecret","formControlName","ConsumerSecret",1,"form-control","rounded","form-input",3,"placeholder","ngClass"],["target","_blank","href","https://support.dealpos.com/en/articles/9525716-shopify-authorization-at-dealpos-apps",1,"button","text-primary","fw-bold"]],template:function(o,e){if(o&1&&(i(0,"modal-material",0),v("onClose",function(){return e.onClose()})("onCancel",function(){return e.onClose()})("onOk",function(){return e.onSubmit()}),i(1,"div",1)(2,"form",2),f(3,ve,2,0,"label",3),i(4,"div",4),f(5,Me,2,0,"label",3),V(6,"input",5),f(7,Se,2,0,"span",6)(8,Re,2,1,"div",7),l(),i(9,"div",8)(10,"label",3)(11,"span"),f(12,be,1,0)(13,we,1,0),l(),f(14,De,4,0),l(),V(15,"input",9),f(16,Ee,2,0,"div",7),l(),i(17,"div",8)(18,"label",3),f(19,Oe,1,0)(20,Ge,1,0),l(),V(21,"input",10),f(22,Ve,2,0,"div",7),l()()()()),o&2){let m,d,s,E,O,G;p("config",e.modalConfig),a(2),p("formGroup",e.formGroup),a(),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?3:-1),a(),p("ngClass",U(18,_e,(e.data==null?null:e.data.channelType)==e.channelType.Shopify)),a(),h((e.data==null?null:e.data.channelType)!=e.channelType.Shopify?5:-1),a(),p("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"[ex: brand.myshopify.com]":"https://mydomain.com/")("ngClass",J(20,ye,(e.formGroup==null||(m=e.formGroup.get("URL"))==null?null:m.invalid)&&((e.formGroup==null||(m=e.formGroup.get("URL"))==null?null:m.dirty)||(e.formGroup==null||(m=e.formGroup.get("URL"))==null?null:m.touched)),(e.data==null?null:e.data.channelType)==e.channelType.Shopify)),a(),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?7:-1),a(),h(!(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)?8:-1),a(4),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?12:13),a(2),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?14:-1),a(),p("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"[Create an app and copy the API Key]":"[Create an app and copy the Consumer Key]")("ngClass",U(23,se,(e.formGroup==null||(s=e.formGroup.get("ConsumerKey"))==null?null:s.invalid)&&((e.formGroup==null||(s=e.formGroup.get("ConsumerKey"))==null?null:s.dirty)||(e.formGroup==null||(s=e.formGroup.get("ConsumerKey"))==null?null:s.touched)))),a(),h(!(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)?16:-1),a(3),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?19:20),a(2),p("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"[shpat***************************]":"cs_***************")("ngClass",U(25,se,(e.formGroup==null||(O=e.formGroup.get("ConsumerSecret"))==null?null:O.invalid)&&((e.formGroup==null||(O=e.formGroup.get("ConsumerSecret"))==null?null:O.dirty)||(e.formGroup==null||(O=e.formGroup.get("ConsumerSecret"))==null?null:O.touched)))),a(),h(!(e.formGroup==null||(G=e.formGroup.get("ConsumerSecret"))==null)&&G.getError("required")&&(!(e.formGroup==null||(G=e.formGroup.get("ConsumerSecret"))==null)&&G.dirty||!(e.formGroup==null||(G=e.formGroup.get("ConsumerSecret"))==null)&&G.touched)?22:-1)}},dependencies:[F,$,T,R,Z,S,ee,te],styles:[".input-shopify[_ngcontent-%COMP%]{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.form-input[_ngcontent-%COMP%]{min-height:3.625rem}"]})}}return t})();export{We as a,Ke as b,Be as c,Je as d,et as e};
|
|
1
|
+
import{b as ae,e as re}from"./chunk-WN5DZGA4.js";import{b as ie,c as le}from"./chunk-EUYQST7Q.js";import{b as M,c as W,i as me,j as _,k as S}from"./chunk-HJXYT6MI.js";import{c as T,e as K,h as R,i as Z,j as x,l as N,m as k,n as $,q as ee,s as te,w as ne,y as oe}from"./chunk-5PS6ZS3N.js";import{d as F,f as Q,g as X}from"./chunk-FXQKRJWU.js";import{Fc as A,Gb as y,Gc as r,Hc as P,Ic as Y,Kc as b,Lc as w,Mb as f,Mc as D,Sc as U,Tc as J,Yb as p,dc as h,ic as i,jc as l,kc as V,oc as I,pb as z,rb as a,tc as v,uc as L,xb as C,ya as c,za as g}from"./chunk-OJMQBH6T.js";function pe(t,u){if(t&1&&(i(0,"tr")(1,"td")(2,"a",11),V(3,"img",12),i(4,"span"),r(5),l()()(),i(6,"td"),r(7),l(),i(8,"td"),r(9),l()()),t&2){let n=u.$implicit;a(2),p("href","/menu/channel/marketplace/view?ID="+n.Key.ID,z),a(),p("src",n.Logo,z),a(2),P(n.Key.Name),a(2),P(n.Value.Out),a(2),P(n.Value.Tg)}}var We=(()=>{class t{constructor(n,o){this.dialogRef=n,this.data=o,this.generateChannelName(),this.channels=this.setChannelLogo(o.channels)}ngOnInit(){this.modalConfig=new _,this.modalConfig.title="Channel - New Order Configuration is not Unique!",this.modalConfig.headerType=me.Warning,this.modalConfig.hideOk=!0,this.modalConfig.cancelText="Close",this.modalConfig.customWidth="500px",this.modalConfig.bodyScrollable=!0,this.modalConfig.hideClose=!0}setChannelLogo(n){return n.map(o=>(o.Logo=le.getChannelLogoByTypeId(o.Key.TypeID),o))}generateChannelName(){this.channelNames="";let n=this.data.channels;n.forEach((o,e)=>{this.channelNames+=`${o.Key} ${e!=n.length-1?" + ":""}`})}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(o){return new(o||t)(C(M),C(W))}}static{this.\u0275cmp=y({type:t,selectors:[["app-modal-channel-warning"]],standalone:!1,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(o,e){o&1&&(i(0,"modal-material",0),v("onCancel",function(){return e.onClose()})("onClose",function(){return e.onClose()}),i(1,"div",1)(2,"div",2)(3,"div",3)(4,"p",4),r(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. "),l(),i(6,"h5",5),r(7,"Your duplicate Channels are"),l(),i(8,"table",6)(9,"thead")(10,"tr",7)(11,"th"),r(12,"Channel"),l(),i(13,"th"),r(14,"Outlet"),l(),i(15,"th"),r(16,"Tag"),l()()(),i(17,"tbody"),f(18,pe,10,5,"tr",8),l()(),i(19,"p",9),r(20," Please refer to this "),i(21,"a",10),r(22,"article"),l(),r(23," for more information "),l()()()()()),o&2&&(p("config",e.modalConfig),a(18),p("ngForOf",e.channels))},dependencies:[Q,S],encapsulation:2})}}return t})();var Ke=(()=>{class t{constructor(n,o,e){this.dialogRef=n,this.httpService=o,this.toastr=e,this.modalConfig=new _,this.modalConfig.title="Write Off Reason"}onSubmit(){let n={Name:this.reason};this.subscription=this.httpService.post("/api/channel/AddWriteoffOption",n).subscribe(o=>{this.toastr.success(o.Message,"Success"),this.dialogRef.close(n)})}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(o){return new(o||t)(C(M),C(re),C(ae))}}static{this.\u0275cmp=y({type:t,selectors:[["app-dialog-writeOff-reason"]],standalone:!1,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(o,e){if(o&1){let m=I();i(0,"modal-material",1),v("onClose",function(){return c(m),g(e.onClose())})("onCancel",function(){return c(m),g(e.onClose())})("onOk",function(){return c(m),g(e.onSubmit())}),i(1,"div",2)(2,"div",3)(3,"input",4,0),D("ngModelChange",function(s){return c(m),w(e.reason,s)||(e.reason=s),g(s)}),l(),i(5,"label",5),r(6,"Reason"),l()()()()}o&2&&(p("dynamicValidated",e.reason)("config",e.modalConfig),a(3),b("ngModel",e.reason))},dependencies:[T,R,k,S],styles:[".mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}"]})}}return t})();var ue=t=>({invalid:t});function fe(t,u){t&1&&(i(0,"small"),r(1," URL is required "),l())}function ce(t,u){if(t&1&&(i(0,"div",13),f(1,fe,2,0,"small",14),l()),t&2){L();let n=A(10);a(),p("ngIf",n.errors.required)}}function ge(t,u){t&1&&(i(0,"small"),r(1," Email is required "),l())}function Ce(t,u){t&1&&(i(0,"small"),r(1," Email is not valid "),l())}function he(t,u){if(t&1&&(i(0,"div",13),f(1,ge,2,0,"small",14)(2,Ce,2,0,"small",14),l()),t&2){L();let n=A(16);a(),p("ngIf",n.errors.required),a(),p("ngIf",n.errors.pattern)}}var Be=(()=>{class t{constructor(n){this.dialogRef=n}ngOnInit(){this.formData={URL:"",Email:""},this.initModalConfig()}initModalConfig(){this.modalConfig=new _,this.modalConfig.title="Fill data for Customer Support"}onSubmit(n){n!="Enter"&&this.dialogRef.close(this.formData)}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(o){return new(o||t)(C(M))}}static{this.\u0275cmp=y({type:t,selectors:[["app-contact-support"]],standalone:!1,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(o,e){if(o&1){let m=I();i(0,"modal-material",2),v("onClose",function(){return c(m),g(e.onClose())})("onCancel",function(){return c(m),g(e.onClose())})("onOk",function(s){return c(m),g(e.onSubmit(s))}),i(1,"div",3)(2,"div",4)(3,"label",5),r(4,"Tokopedia URL"),l(),i(5,"div",6)(6,"div",7)(7,"span",8),r(8,"https://tokopedia.com/"),l()(),i(9,"input",9,0),D("ngModelChange",function(s){return c(m),w(e.formData.URL,s)||(e.formData.URL=s),g(s)}),l()(),f(11,ce,2,1,"div",10),i(12,"label",11),r(13,"Requester's Email"),l(),i(14,"div",6)(15,"input",12,1),D("ngModelChange",function(s){return c(m),w(e.formData.Email,s)||(e.formData.Email=s),g(s)}),l()(),f(17,he,3,2,"div",10),l()()()}if(o&2){let m=A(10),d=A(16);p("dynamicValidated",!m.invalid&&!d.invalid)("config",e.modalConfig),a(7),p("ngClass",U(7,ue,m.invalid&&(m.dirty||m.touched))),a(2),b("ngModel",e.formData.URL),a(2),p("ngIf",m.invalid&&(m.dirty||m.touched)),a(4),b("ngModel",e.formData.Email),a(2),p("ngIf",d.invalid&&(d.dirty||d.touched))}},dependencies:[F,X,T,R,ne,oe,k,S],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}"]})}}return t})();var Je=(()=>{class t{constructor(n,o){this.dialogRef=n,this.data=o}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()}static{this.\u0275fac=function(o){return new(o||t)(C(M),C(W))}}static{this.\u0275cmp=y({type:t,selectors:[["app-modal-dialog-tokopedia"]],standalone:!1,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(o,e){if(o&1){let m=I();i(0,"modal-material",1),v("onClose",function(){return c(m),g(e.onClose())})("onCancel",function(){return c(m),g(e.onClose())})("onOk",function(){return c(m),g(e.onSubmit())}),i(1,"div",2)(2,"div",3)(3,"input",4,0),D("ngModelChange",function(s){return c(m),w(e.shopID,s)||(e.shopID=s),g(s)}),l(),i(5,"label",5),r(6,"Shop ID"),l()()()()}o&2&&(p("dynamicValidated",e.shopID)("config",e.modalConfig),a(3),b("ngModel",e.shopID))},dependencies:[T,R,k,S],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}"]})}}return t})();var _e=t=>({"input-group":t}),ye=(t,u)=>({"is-invalid":t,"input-shopify rounded-start":u}),se=t=>({"is-invalid":t});function ve(t,u){t&1&&(i(0,"label",3),r(1,"Shopify URL"),l())}function Me(t,u){t&1&&(i(0,"label",3),r(1,"URL"),l())}function Se(t,u){t&1&&(i(0,"span",6),r(1,"myshopify.com"),l())}function Te(t,u){if(t&1&&(i(0,"div"),r(1),l()),t&2){let n=L(2);a(),Y("",n.data==null?null:n.data.title," url is required")}}function Re(t,u){if(t&1&&(i(0,"div",7),f(1,Te,2,1,"div"),l()),t&2){let n,o=L();a(),h(!(o.formGroup==null||(n=o.formGroup.get("URL"))==null)&&n.getError("required")?1:-1)}}function be(t,u){t&1&&r(0," API Key ")}function we(t,u){t&1&&r(0," Consumer Key ")}function De(t,u){t&1&&(r(0," ("),i(1,"a",11),r(2,"help center article"),l(),r(3,") "))}function Ee(t,u){t&1&&(i(0,"div",7),r(1,"API Key is required"),l())}function Oe(t,u){t&1&&r(0," Admin API Access Token ")}function Ge(t,u){t&1&&r(0," Consumer Secret ")}function Ve(t,u){t&1&&(i(0,"div",7),r(1,"Consumer Secret is required"),l())}var et=(()=>{class t{constructor(n,o){this.dialogRef=n,this.data=o,this.modalConfig=new _,this.urlCtrl=new N(null),this.channelType=ie}ngOnInit(){this.initModalConfig(),this.initFormGroup()}initFormGroup(){let n=[K.required];this.formGroup=new x({URL:new N(null,n),ConsumerKey:new N(null,[K.required]),ConsumerSecret:new N(null,[K.required])})}initModalConfig(){this.modalConfig=new _,this.modalConfig.title=this.data.title,this.modalConfig.okText="SAVE"}onClose(){this.dialogRef.close()}onSubmit(){this.formGroup.markAllAsTouched();let n=this.formGroup?.get("URL")?.getError("pattern"),o=this.formGroup?.get("ConsumerKey")?.valid,e=this.formGroup?.get("ConsumerSecret")?.valid;if(this.formGroup?.valid||n&&o&&e){let d=this.formGroup.value;d=this.trimShopifyUrl(d),this.dialogRef.close(d)}}trimShopifyUrl(n){if(this.data?.channelType==this.channelType.Shopify){let o=n.URL?.trim()||"";o=o.replace(/^https?:\/\//,""),o.includes(".myshopify.com")||(o=`${o}.myshopify.com`),n.URL=o}return n}static{this.\u0275fac=function(o){return new(o||t)(C(M),C(W))}}static{this.\u0275cmp=y({type:t,selectors:[["app-modal-register-channel"]],standalone:!1,decls:23,vars:27,consts:[[3,"onClose","onCancel","onOk","config"],["content",""],[3,"formGroup"],["for","shopid",1,"form-label","fw-bold","mb-2"],[1,"mb-8","has-validation",3,"ngClass"],["type","text","id","shopid","name","URL","title","URL","formControlName","URL",1,"form-control","form-input","rounded",3,"placeholder","ngClass"],["id","basic-addon2",1,"input-group-text","rounded-end","form-input","text-secondary"],[1,"invalid-feedback"],[1,"mb-8","has-validation"],["type","text","id","ConsumerKey","name","ConsumerKey","title","ConsumerKey","formControlName","ConsumerKey",1,"form-control","rounded","form-input",3,"placeholder","ngClass"],["type","text","id","ConsumerSecret","name","ConsumerSecret","title","ConsumerSecret","formControlName","ConsumerSecret",1,"form-control","rounded","form-input",3,"placeholder","ngClass"],["target","_blank","href","https://support.dealpos.com/en/articles/9525716-shopify-authorization-at-dealpos-apps",1,"button","text-primary","fw-bold"]],template:function(o,e){if(o&1&&(i(0,"modal-material",0),v("onClose",function(){return e.onClose()})("onCancel",function(){return e.onClose()})("onOk",function(){return e.onSubmit()}),i(1,"div",1)(2,"form",2),f(3,ve,2,0,"label",3),i(4,"div",4),f(5,Me,2,0,"label",3),V(6,"input",5),f(7,Se,2,0,"span",6)(8,Re,2,1,"div",7),l(),i(9,"div",8)(10,"label",3)(11,"span"),f(12,be,1,0)(13,we,1,0),l(),f(14,De,4,0),l(),V(15,"input",9),f(16,Ee,2,0,"div",7),l(),i(17,"div",8)(18,"label",3),f(19,Oe,1,0)(20,Ge,1,0),l(),V(21,"input",10),f(22,Ve,2,0,"div",7),l()()()()),o&2){let m,d,s,E,O,G;p("config",e.modalConfig),a(2),p("formGroup",e.formGroup),a(),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?3:-1),a(),p("ngClass",U(18,_e,(e.data==null?null:e.data.channelType)==e.channelType.Shopify)),a(),h((e.data==null?null:e.data.channelType)!=e.channelType.Shopify?5:-1),a(),p("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"[ex: brand.myshopify.com]":"https://mydomain.com/")("ngClass",J(20,ye,(e.formGroup==null||(m=e.formGroup.get("URL"))==null?null:m.invalid)&&((e.formGroup==null||(m=e.formGroup.get("URL"))==null?null:m.dirty)||(e.formGroup==null||(m=e.formGroup.get("URL"))==null?null:m.touched)),(e.data==null?null:e.data.channelType)==e.channelType.Shopify)),a(),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?7:-1),a(),h(!(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)?8:-1),a(4),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?12:13),a(2),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?14:-1),a(),p("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"[Create an app and copy the API Key]":"[Create an app and copy the Consumer Key]")("ngClass",U(23,se,(e.formGroup==null||(s=e.formGroup.get("ConsumerKey"))==null?null:s.invalid)&&((e.formGroup==null||(s=e.formGroup.get("ConsumerKey"))==null?null:s.dirty)||(e.formGroup==null||(s=e.formGroup.get("ConsumerKey"))==null?null:s.touched)))),a(),h(!(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)?16:-1),a(3),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?19:20),a(2),p("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"[shpat***************************]":"cs_***************")("ngClass",U(25,se,(e.formGroup==null||(O=e.formGroup.get("ConsumerSecret"))==null?null:O.invalid)&&((e.formGroup==null||(O=e.formGroup.get("ConsumerSecret"))==null?null:O.dirty)||(e.formGroup==null||(O=e.formGroup.get("ConsumerSecret"))==null?null:O.touched)))),a(),h(!(e.formGroup==null||(G=e.formGroup.get("ConsumerSecret"))==null)&&G.getError("required")&&(!(e.formGroup==null||(G=e.formGroup.get("ConsumerSecret"))==null)&&G.dirty||!(e.formGroup==null||(G=e.formGroup.get("ConsumerSecret"))==null)&&G.touched)?22:-1)}},dependencies:[F,$,T,R,Z,S,ee,te],styles:[".input-shopify[_ngcontent-%COMP%]{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.form-input[_ngcontent-%COMP%]{min-height:3.625rem}"]})}}return t})();export{We as a,Ke as b,Be as c,Je as d,et as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as de,b as pe,c as se}from"./chunk-
|
|
1
|
+
import{a as de,b as pe,c as se}from"./chunk-T27ABFCP.js";import{a as ce}from"./chunk-FHNST4Y7.js";import{a as A}from"./chunk-LLHPMXKP.js";import{a as ue}from"./chunk-67HPC5Y3.js";import{a as ae}from"./chunk-KTB223SK.js";import"./chunk-PFY5UG5D.js";import"./chunk-KS7ACI26.js";import"./chunk-3GDM5JNY.js";import"./chunk-XXT6F2ZS.js";import"./chunk-QS22J2SC.js";import"./chunk-EHUVS2VB.js";import"./chunk-IHSGQFDX.js";import"./chunk-MO53T3IK.js";import"./chunk-W3JTS22H.js";import"./chunk-SDUUFQUI.js";import"./chunk-6L7TD5DW.js";import"./chunk-6OMSPZZC.js";import"./chunk-3RK6DDJD.js";import"./chunk-HIC5QC3Y.js";import"./chunk-JBT7GBCM.js";import"./chunk-JVNHFIYT.js";import{a as me}from"./chunk-CBQUB3KW.js";import"./chunk-FGRPTNDB.js";import"./chunk-3PPLPXAX.js";import"./chunk-OXWPLJEW.js";import"./chunk-EPBVNII2.js";import"./chunk-UZWED4UK.js";import"./chunk-5CKVZBHM.js";import"./chunk-4YRBARG2.js";import"./chunk-BKRCW7SH.js";import"./chunk-RGAKHXPF.js";import"./chunk-T2OSIFLN.js";import"./chunk-QW4EOJRM.js";import"./chunk-Q4N2QUV6.js";import"./chunk-7G6GQTSH.js";import"./chunk-63ANFYRV.js";import"./chunk-YQLOB7IQ.js";import"./chunk-OZ7LWNOK.js";import"./chunk-YFDFIBAG.js";import"./chunk-RC5PUUVM.js";import"./chunk-ACIMXBIC.js";import{a as oe}from"./chunk-LDL3A7NM.js";import"./chunk-P2AADVEN.js";import"./chunk-Z3ITXK3D.js";import"./chunk-TGMCGROM.js";import"./chunk-CGOB6Y3X.js";import"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import"./chunk-EUYQST7Q.js";import{m as re,n as le}from"./chunk-HJXYT6MI.js";import{A as te,c as Y,h as Z,m as $,o as ee}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import{r as ie,s as ne}from"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{j as J,k as K,m as Q,n as X}from"./chunk-FXQKRJWU.js";import{$c as v,Gb as W,Gc as a,Hc as x,Ic as b,Kc as f,Lc as g,Mb as w,Mc as C,Nc as z,Oc as R,Pc as H,Qc as j,Ra as N,Rc as U,Sc as q,Yb as u,Z as L,ac as D,ad as V,bd as G,dc as y,ec as I,gc as B,hc as k,ic as t,jc as i,kc as c,oc as E,pa as F,pb as O,rb as o,tc as M,uc as _,ya as p,za as s}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import{a as T,b as P}from"./chunk-66YHNWRR.js";var _e=()=>[],fe=r=>({"td-cell-hover":r});function ge(r,h){if(r&1&&c(0,"variants-dropdown",27),r&2){let e=_().$implicit;u("variants",e==null?null:e.Variants)}}function Ce(r,h){if(r&1&&c(0,"variant-with-image",28),r&2){let e=_().$implicit;u("variant",e==null?null:e.Variants[0])}}function he(r,h){if(r&1&&(t(0,"span"),a(1),i()),r&2){let e=_().$implicit;o(),b("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function Se(r,h){if(r&1&&(t(0,"tr")(1,"td")(2,"div",23)(3,"div",24)(4,"div"),c(5,"img",25),v(6,"channelImage"),i(),t(7,"div"),c(8,"order-link",26),i()(),t(9,"small"),a(10),v(11,"date"),i()()(),t(12,"td"),a(13),i(),t(14,"td"),w(15,ge,1,1,"variants-dropdown",27)(16,Ce,1,1,"variant-with-image",28),i(),t(17,"td"),a(18),v(19,"number"),i(),t(20,"td")(21,"div",23)(22,"div",24)(23,"span"),a(24),i(),w(25,he,2,1,"span"),i(),t(26,"small"),a(27),i()()()()),r&2){let e=h.$implicit;o(5),u("src",V(6,12,e==null?null:e.MarketType),O)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),o(3),u("order",e),o(2),b(" ",G(11,14,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),o(3),x(e.Customer),o(),D(q(19,fe,(e.Variants==null?null:e.Variants.length)>1)),o(),y((e.Variants==null?null:e.Variants.length)>1?15:16),o(3),x(V(19,17,e.Amount)),o(6),x(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),o(),y(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?25:-1),o(2),b(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," ")}}function ve(r,h){if(r&1){let e=E();t(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),a(5,"Number"),i(),t(6,"th",20),a(7,"Customer"),i(),t(8,"th"),a(9,"Items"),i(),t(10,"th",21),a(11,"Amount"),i(),t(12,"th",21),a(13,"Shipping"),i()()(),t(14,"tbody"),B(15,Se,28,21,"tr",null,I),i()(),t(17,"app-custom-paginator",22),M("next",function(){p(e);let n=_();return s(n.initAllOrders())})("previous",function(){p(e);let n=_();return s(n.initAllOrders())}),i()()}if(r&2){let e=_(),m=H(0);o(15),k(m),o(2),u("filter",e.filter())("totaldata",m==null?null:m.length)}}function we(r,h){r&1&&(t(0,"div",16),c(1,"app-empty-state"),i())}var Ue=(()=>{class r{constructor(){this.orderService=F(A),this.filter=N({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:e=>{this.initFromDate(e)},error:e=>{console.error("Error fetching default date:",e),this.initFromDate(null)}})}initFromDate(e){this.filter.update(m=>P(T({},m),{From:e})),this.initAllOrders()}initAllOrders(){this.allOrders$=this.orderService.getAllOrders(this.filter()).pipe(L(1))}static{this.\u0275fac=function(m){return new(m||r)}}static{this.\u0275cmp=W({type:r,selectors:[["app-all"]],features:[j([A])],decls:34,vars:12,consts:[["headerTitle","Completed","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-solid","fa-clipboard-list","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","250px"],[2,"width","150px"],["rowCountApi","/api/orders/allcount",3,"next","previous","filter","totaldata"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"width","14px","padding-bottom","2.5px",3,"src","alt"],[3,"order"],[3,"variants"],[3,"variant"]],template:function(m,n){if(m&1){let d=E();z(0),v(1,"async"),t(2,"mainpanel",0),M("onSubmit",function(){return p(d),s(n.initAllOrders())}),C("textChange",function(l){return p(d),g(n.filter().Number,l)||(n.filter().Number=l),s(l)}),t(3,"actions")(4,"a",1),c(5,"i",2),t(6,"span"),a(7,"Order Fulfillment Display"),i()()(),t(8,"filters")(9,"div")(10,"label",3),a(11,"Channel"),i(),t(12,"app-channel-options-v2",4),C("ngModelChange",function(l){return p(d),g(n.filter().ListChannelID,l)||(n.filter().ListChannelID=l),s(l)}),i()(),t(13,"div",5)(14,"label",3),a(15,"From/To"),i(),t(16,"div",6)(17,"datepicker",7),C("dateChange",function(l){return p(d),g(n.filter().From,l)||(n.filter().From=l),s(l)}),i()(),t(18,"div")(19,"datepicker",8),C("dateChange",function(l){return p(d),g(n.filter().To,l)||(n.filter().To=l),s(l)}),i()()(),t(20,"div",5)(21,"label",9),a(22,"Page Number"),i(),t(23,"input",10),C("ngModelChange",function(l){return p(d),g(n.filter().PageNumber,l)||(n.filter().PageNumber=l),s(l)}),i()(),t(24,"div",5)(25,"label",9),a(26,"Page Size"),i(),t(27,"input",11),C("ngModelChange",function(l){return p(d),g(n.filter().PageSize,l)||(n.filter().PageSize=l),s(l)}),i()()(),t(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),w(32,ve,18,2,"div",15)(33,we,2,0,"div",16),i()()()()()}if(m&2){let d=R(V(1,8,n.allOrders$)||U(11,_e));o(2),f("text",n.filter().Number),o(10),u("multiple",!0),f("ngModel",n.filter().ListChannelID),o(5),f("date",n.filter().From),o(2),f("date",n.filter().To),o(4),f("ngModel",n.filter().PageNumber),o(4),f("ngModel",n.filter().PageSize),o(5),y((d==null?null:d.length)>0?32:33)}},dependencies:[X,J,Q,K,le,re,ae,oe,te,Y,ee,Z,$,de,pe,se,ue,ne,ie,ce,me],encapsulation:2})}}return r})();export{Ue as AllComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as pe}from"./chunk-UMP6ZMEJ.js";import{a as me,i as xe}from"./chunk-BVPWV5YO.js";import"./chunk-Z3ITXK3D.js";import"./chunk-TGMCGROM.js";import"./chunk-CGOB6Y3X.js";import{b as ue,e as y}from"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import{e as _e}from"./chunk-PYXL7UF7.js";import{a as v,c as ge}from"./chunk-RXQX7567.js";import{A as le,c as ee,h as te,i as ne,k as ie,m as oe,n as re,t as ae,u as se,v as de,w as ce}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import{a as fe,c as he}from"./chunk-ERXVXBTU.js";import{E as P,G as C,J as D,d as $,f as z,g as J,j as X,n as Z}from"./chunk-FXQKRJWU.js";import{$c as G,Ac as U,Bc as W,Cc as q,Fc as O,Gb as _,Gc as a,Hb as A,Hc as b,Ic as H,Jc as B,Kc as E,Lc as I,Mb as f,Mc as L,Tc as Y,Yb as p,Z as R,ac as F,ad as Q,cd as K,ic as n,ja as V,jc as r,ka as T,kc as c,lc as S,mc as k,oc as N,pb as w,rb as s,tc as u,uc as m,xb as l,ya as h,za as x}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var be=(()=>{class t{constructor(){}getBrowserName(){let e=window.navigator.userAgent.toLowerCase();switch(!0){case(e.indexOf("edge")>-1||e.indexOf("edg")>-1):return"edge";case e.indexOf("opr")>-1:return"opera";case e.indexOf("chrome")>-1:return"chrome";case e.indexOf("trident")>-1:return"ie";case e.indexOf("firefox")>-1:return"firefox";case e.indexOf("safari")>-1:return"safari";default:return"other"}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Ie(t,g){if(t&1&&(n(0,"swiper-slide")(1,"div")(2,"a",2),c(3,"img",3),r()(),n(4,"a",4),a(5),r(),n(6,"p",5),a(7),r()()),t&2){let e=g.$implicit;s(2),p("href",e.href,w),s(),p("src",e.imgSrc,w),s(),p("href",e.href,w),s(),b(e.title),s(2),b(e.description)}}var Ce=(()=>{class t{constructor(){this.newsList=[]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=_({type:t,selectors:[["POS-news-swiper"]],inputs:{newsList:"newsList"},standalone:!1,decls:2,vars:1,consts:[["pagination","true","pagination-clickable","true","autoplay-delay","5000","autoplay-disable-on-interaction","false",2,"margin-top","30px"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"],[1,"border-0","rounded-1","mb-8",2,"width","252px","height","152px",3,"src"],["target","_blank",1,"fw-bold","h5","text-success","header-title","fs-4",3,"href"],[2,"margin-bottom","3rem"]],template:function(i,o){i&1&&(n(0,"swiper-container",0),f(1,Ie,8,5,"swiper-slide",1),r()),i&2&&(s(),p("ngForOf",o.newsList))},dependencies:[z],styles:["swiper-container[_ngcontent-%COMP%]{--swiper-pagination-bullet-inactive-color: #89b03e;--swiper-pagination-color: #89b03e}"]})}}return t})();var Te=["subdomainEl"],Ae=(t,g)=>({"rounded-end":t,"border-end-0":g});function Ne(t,g){if(t&1&&(S(0),n(1,"div",36),c(2,"img",37),r(),k()),t&2){let e=g.$implicit;s(2),p("src",e.img,w)("title",e.title)("alt",e.title)}}function ze(t,g){if(t&1){let e=N();S(0),n(1,"div",17)(2,"h3",18),a(3," DealPOS Omnichannel "),r(),n(4,"small",19),a(5," Multichannel Inventory Management Software "),r()(),n(6,"form",20)(7,"div",21)(8,"div",22)(9,"div",23)(10,"span"),c(11,"i",24),r()(),n(12,"input",25,1),L("ngModelChange",function(o){h(e);let d=m();return I(d.subdomain,o)||(d.subdomain=o),x(o)}),r(),n(14,"div")(15,"select",26),L("ngModelChange",function(o){h(e);let d=m();return I(d.domain,o)||(d.domain=o),x(o)}),n(16,"option",27),a(17,".dealpos.co.id"),r(),n(18,"option",28),a(19,".dealpos.net"),r(),n(20,"option",29),a(21,".dealpos.com"),r(),n(22,"option",30),a(23,".dealpos.app"),r()()()(),n(24,"div",31)(25,"button",32),u("click",function(){h(e);let o=m();return x(o.onNextState())}),a(26," Next "),r()(),n(27,"div",33)(28,"div",34),f(29,Ne,3,3,"ng-container",35),r()()()(),k()}if(t&2){let e=m();s(12),E("ngModel",e.subdomain),s(3),E("ngModel",e.domain),s(14),p("ngForOf",e.channels)}}function De(t,g){t&1&&(n(0,"p"),a(1," Username is required "),r())}function je(t,g){if(t&1&&(S(0),n(1,"div",57),c(2,"div",58),n(3,"div",59),f(4,De,2,0,"p",47),r()(),k()),t&2){m();let e=O(14);s(4),p("ngIf",e.errors.required)}}function Re(t,g){if(t&1){let e=N();n(0,"i",62),u("click",function(){h(e);let o=m(3);return x(o.hideShowPassword())}),r()}if(t&2){let e=m(3);F("fa "+e.passwordIcon)}}function Ve(t,g){if(t&1&&(n(0,"span",60),f(1,Re,1,2,"i",61),r()),t&2){let e=m(2);s(),p("ngIf",e.password)}}function Fe(t,g){t&1&&(n(0,"p"),a(1," Password is required "),r())}function Ue(t,g){if(t&1&&(S(0),n(1,"div",57),c(2,"div",58),n(3,"div",59),f(4,Fe,2,0,"p",47),r()(),k()),t&2){m();let e=O(21);s(4),p("ngIf",e.errors.required)}}function We(t,g){if(t&1){let e=N();n(0,"div",38)(1,"h3",39),a(2,"Sign in"),r(),n(3,"h3",40),a(4," to "),n(5,"h6",41),a(6),r(),n(7,"i",42),u("click",function(){h(e);let o=m();return x(o.onEditDomain())}),r()()(),n(8,"form",43)(9,"div",44)(10,"div",23)(11,"span"),c(12,"i",45),r()(),n(13,"input",46,2),L("ngModelChange",function(o){h(e);let d=m();return I(d.username,o)||(d.username=o),x(o)}),r()(),f(15,je,5,1,"ng-container",47),n(16,"div",22)(17,"div",23)(18,"span"),c(19,"i",48),r()(),n(20,"input",49,3),L("ngModelChange",function(o){h(e);let d=m();return I(d.password,o)||(d.password=o),x(o)}),r(),f(22,Ve,2,1,"span",50),r(),f(23,Ue,5,1,"ng-container",47),n(24,"div",51)(25,"button",52),u("click",function(){h(e);let o=m();return x(o.onLogin())}),a(26," Log in "),r()(),n(27,"div",53),c(28,"hr"),n(29,"span",54),a(30,"or"),r(),c(31,"hr"),r(),n(32,"div")(33,"button",55),u("click",function(o){h(e);let d=m();return x(d.onLoginByGoogle(o))}),c(34,"i",56),a(35," Sign In with Google "),r()()()}if(t&2){let e=O(14),i=O(21),o=m();s(6),B(" (",o.subdomain,"",o.domain,") "),s(7),E("ngModel",o.username),s(2),p("ngIf",e.invalid&&(e.dirty||e.touched)),s(5),p("type",o.passwordType)("ngClass",Y(9,Ae,o.browser=="edge",o.browser!="edge")),E("ngModel",o.password),s(2),p("ngIf",o.browser!="edge"),s(),p("ngIf",i.invalid&&(i.dirty||i.touched))}}var ve=(()=>{class t{constructor(e,i,o,d,Se){this._router=e,this.toastr=i,this.checkBrowser=o,this.authService=d,this.ngxPermission=Se,this.domain=".dealpos.co.id",this.loginState="FORM_DOMAIN",this.passwordType="password",this.passwordIcon="fa-eye",this.channels=[{title:"Shopee",img:v.SHOOPE},{title:"Tokopedia",img:v.TOKOPEDIA},{title:"Tiktok",img:v.TIKTOK},{title:"Woocommerce",img:v.WOOCOMMERCE},{title:"Lazada",img:v.LAZADA},{title:"Shopify",img:v.SHOPIFY},{title:"Plugo",img:v.PLUGONEW}],this.version=me.version,this.news$=d.getNews().pipe(R(1))}ngOnInit(){this.initLogin(),this.browser=this.checkBrowser.getBrowserName(),document.body.classList.add("login-body"),this.initChangeLogUrl()}initChangeLogUrl(){let e=`https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete&v=${this.version}`;this.changelogUrl=e}ngAfterViewInit(){this.setAutoFocusDomain()}initLogin(){let e=JSON.parse(localStorage.getItem("Authorization"));if(e){this.username=e?.username,this.subdomain=e?.Host?.split(".")[0];let i=e?.Host?.split("dealpos");this.domain=`.dealpos${i[1]}`,this.authService.isActiveToken()&&this._router.navigate(["menu"])}}onNextState(){if(ge.IsEmpty(this.subdomain)){this.toastr.warning("Account Domain is required","Warning");return}this.parseSubdomain(),this.loginState="FORM_AUTH"}parseSubdomain(){let e=this.subdomain.indexOf(".dealpos");e!=-1&&(this.subdomain=this.subdomain.substring(0,e))}onEditDomain(){this.loginState="FORM_DOMAIN"}onLogin(){let e={Host:`${this.subdomain}${this.domain}`,Username:this.username,Password:this.password};this.authService.login(e).subscribe(i=>{this.onSuccessLogin(i)})}onLoginByGoogle(e){let i=`${this.subdomain}${this.domain}`;this.authService.loginWithGoogle(e,i).subscribe(o=>{this.onSuccessLogin(o)})}onSuccessLogin(e){this.ngxPermission.hasPermission([pe.DashboardView]).then(i=>{i?this._router.navigate(["menu/dashboard"]):e?.TotalChannel<1?this._router.navigate(["menu/channel"]):this._router.navigate(["menu/products"])})}setAutoFocusDomain(){this.subdomainEl.nativeElement.focus()}hideShowPassword(){this.passwordType=this.passwordType==="text"?"password":"text",this.passwordIcon=this.passwordIcon==="fa-eye"?"fa-eye-slash":"fa-eye"}ngOnDestroy(){document.body.classList.remove("login-body")}static{this.\u0275fac=function(i){return new(i||t)(l(C),l(ue),l(be),l(xe),l(fe))}}static{this.\u0275cmp=_({type:t,selectors:[["app-login"]],viewQuery:function(i,o){if(i&1&&U(Te,5),i&2){let d;W(d=q())&&(o.subdomainEl=d.first)}},standalone:!1,decls:19,vars:7,consts:[["USERNAME_PASSWORD",""],["subdomainEl",""],["usernameCtrl","ngModel"],["passwordCtrl","ngModel"],[1,"container-fluid"],[1,"row","mx-auto","bg-white","login-pane"],[1,"col-md-5","order-md-first","order-last","border-end","features-pane","pt-12","pb-9"],[1,"fw-normal","fs-2","header-title","text-center"],[3,"newsList"],[1,"col-md-7","order-md-last","order-first","py-12","sign-in-pane"],[4,"ngIf","ngIfElse"],[1,"d-flex","copyright",2,"margin-left","20px"],[1,"align-self-center","me-5"],["target","_blank","href","http://www.dealpos.com"],[1,"version",2,"margin-right","18px"],["target","_blank",1,"text-dark","fst-italic",3,"href"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],[1,"text-md-start","text-center"],[1,"fs-2","header-title","me-2","fw-normal"],[1,"text-secondary-emphasis","fst-italic",2,"font-size","11px"],[2,"margin-top","38px"],[1,"form-block","mt-5"],[1,"input-group","input-group-lg","mt-8"],[1,"input-group-text","rounded-start","border-end-0",2,"width","52px"],[1,"fa-solid","fa-cloud"],["placeholder","Store Address","aria-label","Store Address","aria-describedby","basic-addon1","autofocus","","name","Store Address",1,"form-control","form-control-lg","rounded-end-0","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","ngModel"],["name","domainOption",1,"form-select","form-control","form-control-lg","border-start-0","border-start","rounded-end","rounded-start-0","domain-option",2,"height","58px",3,"ngModelChange","ngModel"],["selected","","value",".dealpos.co.id"],["value",".dealpos.net"],["value",".dealpos.com"],["value",".dealpos.app"],[1,"w-100",2,"margin-top","1.8rem"],["name","next","data-cy","next","type","submit",1,"btn","btn-xl","btn-success","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"d-flex","align-items-center","justify-content-center",2,"margin-top","2.1rem"],[1,"d-flex","align-items-center","justify-content-between","w-100"],[4,"ngFor","ngForOf"],[1,""],[1,"border-0",2,"width","34px","height","34px",3,"src","title","alt"],[1,"d-flex","align-items-center","justify-content-start","mb-2"],[1,"robotoslab","fw-normal"],[1,"ms-2","fw-normal"],[1,"me-2","robotoslab","d-inline-block","text-success"],["title","Edit Store Address",1,"fa-solid","fa-edit","link-success","fs-5","pointer",3,"click"],[2,"margin-top","29px"],[1,"input-group","input-group-lg"],[1,"fas","fa-user","fa-lg"],["id","txtUsername","type","text","data-cy","username","required","","placeholder","Username","aria-label","Username","aria-describedby","basic-addon1","autofocus","","name","username",1,"form-control","form-control-lg","rounded-end","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","ngModel"],[4,"ngIf"],[1,"fas","fa-key","fa-lg"],["id","txtPassword","data-cy","password","placeholder","Password","aria-label","Password","aria-describedby","basic-addon1","autofocus","","name","password","required","",1,"form-control","form-control-lg","rounded-end","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","type","ngClass","ngModel"],["class","input-group-text border-start-0 rounded-end",4,"ngIf"],[1,"w-100","mt-8"],["data-cy","login","type","submit",1,"btn","btn-lg","btn-success","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"divider","d-flex","align-items-center","justify-content-center"],[1,"mx-4","text-muted"],[1,"btn","btn-social-login","text-success","w-100","fw-bold",3,"click"],[1,"fa-brands","fa-google"],[1,"d-flex","justify-content-start","w-50","mb-4",2,"height","16px"],[2,"width","52px"],[1,"text-danger","ps-1"],[1,"input-group-text","border-start-0","rounded-end"],[3,"class","click",4,"ngIf"],[3,"click"]],template:function(i,o){if(i&1&&(n(0,"div",4)(1,"div",5)(2,"div",6)(3,"h3",7),a(4,"New Features"),r(),c(5,"POS-news-swiper",8),G(6,"async"),r(),n(7,"div",9),f(8,ze,30,3,"ng-container",10)(9,We,36,12,"ng-template",null,0,K),r()(),n(11,"div",11)(12,"span",12),a(13,"powered by :"),r(),c(14,"a",13),r(),n(15,"div",14)(16,"a",15),a(17),c(18,"i",16),r()()()),i&2){let d=O(10);s(5),p("newsList",Q(6,5,o.news$)),s(3),p("ngIf",o.loginState=="FORM_DOMAIN")("ngIfElse",d),s(8),p("href",o.changelogUrl,w),s(),H("version ",o.version,"")}},dependencies:[$,z,J,re,se,de,ee,ae,te,ne,ce,oe,ie,Ce,X],styles:[".login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px}@media (max-width: 768px){.login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){.login-pane[_ngcontent-%COMP%]{margin-top:30px}}.header-title[_ngcontent-%COMP%]{font-family:Roboto Slab}.carousel-inner[_ngcontent-%COMP%]{height:310px}.carousel-inner[_ngcontent-%COMP%] div.carousel-item[_ngcontent-%COMP%]{top:28px}@media (max-width: 820px){.carousel-indicators[_ngcontent-%COMP%]{bottom:-8px}}.carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#ddd;width:1.25rem;height:.375rem;transition:.3s}.carousel-indicators[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--bs-success)}.sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){.sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}.sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){.sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid #89b03e;border-right:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:0 10px 10px 0}}.subscription.danger[_ngcontent-%COMP%]{background-color:#f2dede;border-color:#eb415d;color:#a94442}.subscription.warning[_ngcontent-%COMP%]{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}@media (max-width: 768px){.features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){.features-pane[_ngcontent-%COMP%]{border-left:1px solid #89b03e;border-bottom:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:10px 0 0 10px}}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%], .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}.domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}"]})}}return t})();var Me=(()=>{class t{constructor(e,i,o){this.route=e,this.http=i,this.service=o}ngOnInit(){this.route.queryParams.subscribe(e=>{this.shopID=e.shop_id,this.code=e.code})}addShopee(){let e={ShopID:Number(this.shopID),Code:this.code};this.http.post("/api/ChannelAdd/ShopeeV2",e).subscribe(o=>{this.service.navigate(["/menu/channel"])})}static{this.\u0275fac=function(i){return new(i||t)(l(P),l(y),l(C))}}static{this.\u0275cmp=_({type:t,selectors:[["shopee-authorized"]],standalone:!1,decls:20,vars:1,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-t",3,"click"],[1,"fas","fa-undo"]],template:function(i,o){i&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),c(5,"i",5),n(6,"div",6),a(7,"Success !"),r()(),n(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),r(),n(11,"div"),a(12,"DEALPOS to manage your Shopee"),r(),n(13,"div"),a(14," Your shopID is "),n(15,"span",8),a(16),r()(),n(17,"button",9),u("click",function(){return o.addShopee()}),c(18,"i",10),a(19," Add to my Channel"),r()()()()()()),i&2&&(s(16),b(o.shopID))},styles:[".login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px}@media (max-width: 768px){.login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){.login-pane[_ngcontent-%COMP%]{margin-top:30px}}.header-title[_ngcontent-%COMP%]{font-family:Roboto Slab}.carousel-inner[_ngcontent-%COMP%]{height:310px}.carousel-inner[_ngcontent-%COMP%] div.carousel-item[_ngcontent-%COMP%]{top:28px}@media (max-width: 820px){.carousel-indicators[_ngcontent-%COMP%]{bottom:-8px}}.carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#ddd;width:1.25rem;height:.375rem;transition:.3s}.carousel-indicators[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--bs-success)}.sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){.sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}.sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){.sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid #89b03e;border-right:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:0 10px 10px 0}}.subscription.danger[_ngcontent-%COMP%]{background-color:#f2dede;border-color:#eb415d;color:#a94442}.subscription.warning[_ngcontent-%COMP%]{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}@media (max-width: 768px){.features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){.features-pane[_ngcontent-%COMP%]{border-left:1px solid #89b03e;border-bottom:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:10px 0 0 10px}}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%], .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}.domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}.form-signin[_ngcontent-%COMP%]{max-width:600px}.card[_ngcontent-%COMP%]{font:100 14px/25px Roboto,Helvetica Neue,sans-serif;border-radius:13px;box-sizing:border-box}.text-shopee[_ngcontent-%COMP%]{color:#f53d2d}"]})}}return t})();var Oe=(()=>{class t{constructor(e,i,o){this.route=e,this.http=i,this.service=o}ngOnInit(){this.route.queryParams.subscribe(e=>{this.code=e.code,this.state=e.state})}addChannelTiktok(){let e={Code:this.code};this.http.post("/api/ChannelAdd/AddTiktok",e).subscribe(i=>{this.service.navigate(["/menu/channel"])})}static{this.\u0275fac=function(i){return new(i||t)(l(P),l(y),l(C))}}static{this.\u0275cmp=_({type:t,selectors:[["app-tiktok"]],standalone:!1,decls:24,vars:2,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-6",3,"click"],[1,"fas","fa-undo"]],template:function(i,o){i&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),c(5,"i",5),n(6,"div",6),a(7,"Success !"),r()(),n(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),r(),n(11,"div"),a(12,"DEALPOS to manage your Tiktok"),r(),n(13,"div"),a(14," Your Code is "),n(15,"span",8),a(16),r()(),n(17,"div"),a(18," Your State is "),n(19,"span",8),a(20),r()(),n(21,"button",9),u("click",function(){return o.addChannelTiktok()}),c(22,"i",10),a(23," Add to my Channel"),r()()()()()()),i&2&&(s(16),b(o.code),s(4),b(o.state))},styles:[".login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px}@media (max-width: 768px){.login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){.login-pane[_ngcontent-%COMP%]{margin-top:30px}}.header-title[_ngcontent-%COMP%]{font-family:Roboto Slab}.carousel-inner[_ngcontent-%COMP%]{height:310px}.carousel-inner[_ngcontent-%COMP%] div.carousel-item[_ngcontent-%COMP%]{top:28px}@media (max-width: 820px){.carousel-indicators[_ngcontent-%COMP%]{bottom:-8px}}.carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#ddd;width:1.25rem;height:.375rem;transition:.3s}.carousel-indicators[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--bs-success)}.sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){.sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}.sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){.sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid #89b03e;border-right:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:0 10px 10px 0}}.subscription.danger[_ngcontent-%COMP%]{background-color:#f2dede;border-color:#eb415d;color:#a94442}.subscription.warning[_ngcontent-%COMP%]{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}@media (max-width: 768px){.features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){.features-pane[_ngcontent-%COMP%]{border-left:1px solid #89b03e;border-bottom:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:10px 0 0 10px}}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%], .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}.domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}.form-signin[_ngcontent-%COMP%]{max-width:600px}.card[_ngcontent-%COMP%]{font:100 14px/25px Roboto,Helvetica Neue,sans-serif;border-radius:13px;box-sizing:border-box}.text-shopee[_ngcontent-%COMP%]{color:#f53d2d}"]})}}return t})();var Pe=(()=>{class t{constructor(e,i,o){this.route=e,this.http=i,this.service=o}ngOnInit(){this.route.queryParams.subscribe(e=>{this.code=e.code})}addChannelLazada(){let e={Code:this.code};this.http.post("/api/ChannelAdd/AddLazada",e).subscribe(i=>{this.service.navigate(["/menu/channel"])})}static{this.\u0275fac=function(i){return new(i||t)(l(P),l(y),l(C))}}static{this.\u0275cmp=_({type:t,selectors:[["app-lazada"]],standalone:!1,decls:20,vars:1,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-6",3,"click"],[1,"fas","fa-undo"]],template:function(i,o){i&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),c(5,"i",5),n(6,"div",6),a(7,"Success !"),r()(),n(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),r(),n(11,"div"),a(12,"DEALPOS to manage your Lazada"),r(),n(13,"div"),a(14," Your Code is "),n(15,"span",8),a(16),r()(),n(17,"button",9),u("click",function(){return o.addChannelLazada()}),c(18,"i",10),a(19," Add to my Channel"),r()()()()()()),i&2&&(s(16),b(o.code))},encapsulation:2})}}return t})();var qe=[{path:"",component:ve,data:{title:"Dealpos x Marketplace"}},{path:"shopee",component:Me,data:{title:"Success"}},{path:"tiktok",component:Oe,data:{title:"Success"}},{path:"lazada",component:Pe,data:{title:"Success"}}],ye=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=A({type:t})}static{this.\u0275inj=T({imports:[D.forChild(qe),D]})}}return t})();var Pt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=A({type:t})}static{this.\u0275inj=T({imports:[Z,le,ye,_e,he]})}}return t})();export{Pt as LoginModule};
|
|
1
|
+
import{a as pe}from"./chunk-UMP6ZMEJ.js";import{e as _e}from"./chunk-PYXL7UF7.js";import{a as me,i as xe}from"./chunk-P2AADVEN.js";import"./chunk-Z3ITXK3D.js";import"./chunk-TGMCGROM.js";import"./chunk-CGOB6Y3X.js";import{b as ue,e as y}from"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import{a as v,c as ge}from"./chunk-EUYQST7Q.js";import{A as le,c as ee,h as te,i as ne,k as ie,m as oe,n as re,t as ae,u as se,v as de,w as ce}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import{a as fe,c as he}from"./chunk-ERXVXBTU.js";import{E as P,G as C,J as D,d as $,f as z,g as J,j as X,n as Z}from"./chunk-FXQKRJWU.js";import{$c as G,Ac as U,Bc as W,Cc as q,Fc as O,Gb as _,Gc as a,Hb as A,Hc as b,Ic as H,Jc as B,Kc as E,Lc as I,Mb as f,Mc as L,Tc as Y,Yb as p,Z as R,ac as F,ad as Q,cd as K,ic as n,ja as V,jc as r,ka as T,kc as c,lc as S,mc as k,oc as N,pb as w,rb as s,tc as u,uc as m,xb as l,ya as h,za as x}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var be=(()=>{class t{constructor(){}getBrowserName(){let e=window.navigator.userAgent.toLowerCase();switch(!0){case(e.indexOf("edge")>-1||e.indexOf("edg")>-1):return"edge";case e.indexOf("opr")>-1:return"opera";case e.indexOf("chrome")>-1:return"chrome";case e.indexOf("trident")>-1:return"ie";case e.indexOf("firefox")>-1:return"firefox";case e.indexOf("safari")>-1:return"safari";default:return"other"}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Ie(t,g){if(t&1&&(n(0,"swiper-slide")(1,"div")(2,"a",2),c(3,"img",3),r()(),n(4,"a",4),a(5),r(),n(6,"p",5),a(7),r()()),t&2){let e=g.$implicit;s(2),p("href",e.href,w),s(),p("src",e.imgSrc,w),s(),p("href",e.href,w),s(),b(e.title),s(2),b(e.description)}}var Ce=(()=>{class t{constructor(){this.newsList=[]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=_({type:t,selectors:[["POS-news-swiper"]],inputs:{newsList:"newsList"},standalone:!1,decls:2,vars:1,consts:[["pagination","true","pagination-clickable","true","autoplay-delay","5000","autoplay-disable-on-interaction","false",2,"margin-top","30px"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"],[1,"border-0","rounded-1","mb-8",2,"width","252px","height","152px",3,"src"],["target","_blank",1,"fw-bold","h5","text-success","header-title","fs-4",3,"href"],[2,"margin-bottom","3rem"]],template:function(i,o){i&1&&(n(0,"swiper-container",0),f(1,Ie,8,5,"swiper-slide",1),r()),i&2&&(s(),p("ngForOf",o.newsList))},dependencies:[z],styles:["swiper-container[_ngcontent-%COMP%]{--swiper-pagination-bullet-inactive-color: #89b03e;--swiper-pagination-color: #89b03e}"]})}}return t})();var Te=["subdomainEl"],Ae=(t,g)=>({"rounded-end":t,"border-end-0":g});function Ne(t,g){if(t&1&&(S(0),n(1,"div",36),c(2,"img",37),r(),k()),t&2){let e=g.$implicit;s(2),p("src",e.img,w)("title",e.title)("alt",e.title)}}function ze(t,g){if(t&1){let e=N();S(0),n(1,"div",17)(2,"h3",18),a(3," DealPOS Omnichannel "),r(),n(4,"small",19),a(5," Multichannel Inventory Management Software "),r()(),n(6,"form",20)(7,"div",21)(8,"div",22)(9,"div",23)(10,"span"),c(11,"i",24),r()(),n(12,"input",25,1),L("ngModelChange",function(o){h(e);let d=m();return I(d.subdomain,o)||(d.subdomain=o),x(o)}),r(),n(14,"div")(15,"select",26),L("ngModelChange",function(o){h(e);let d=m();return I(d.domain,o)||(d.domain=o),x(o)}),n(16,"option",27),a(17,".dealpos.co.id"),r(),n(18,"option",28),a(19,".dealpos.net"),r(),n(20,"option",29),a(21,".dealpos.com"),r(),n(22,"option",30),a(23,".dealpos.app"),r()()()(),n(24,"div",31)(25,"button",32),u("click",function(){h(e);let o=m();return x(o.onNextState())}),a(26," Next "),r()(),n(27,"div",33)(28,"div",34),f(29,Ne,3,3,"ng-container",35),r()()()(),k()}if(t&2){let e=m();s(12),E("ngModel",e.subdomain),s(3),E("ngModel",e.domain),s(14),p("ngForOf",e.channels)}}function De(t,g){t&1&&(n(0,"p"),a(1," Username is required "),r())}function je(t,g){if(t&1&&(S(0),n(1,"div",57),c(2,"div",58),n(3,"div",59),f(4,De,2,0,"p",47),r()(),k()),t&2){m();let e=O(14);s(4),p("ngIf",e.errors.required)}}function Re(t,g){if(t&1){let e=N();n(0,"i",62),u("click",function(){h(e);let o=m(3);return x(o.hideShowPassword())}),r()}if(t&2){let e=m(3);F("fa "+e.passwordIcon)}}function Ve(t,g){if(t&1&&(n(0,"span",60),f(1,Re,1,2,"i",61),r()),t&2){let e=m(2);s(),p("ngIf",e.password)}}function Fe(t,g){t&1&&(n(0,"p"),a(1," Password is required "),r())}function Ue(t,g){if(t&1&&(S(0),n(1,"div",57),c(2,"div",58),n(3,"div",59),f(4,Fe,2,0,"p",47),r()(),k()),t&2){m();let e=O(21);s(4),p("ngIf",e.errors.required)}}function We(t,g){if(t&1){let e=N();n(0,"div",38)(1,"h3",39),a(2,"Sign in"),r(),n(3,"h3",40),a(4," to "),n(5,"h6",41),a(6),r(),n(7,"i",42),u("click",function(){h(e);let o=m();return x(o.onEditDomain())}),r()()(),n(8,"form",43)(9,"div",44)(10,"div",23)(11,"span"),c(12,"i",45),r()(),n(13,"input",46,2),L("ngModelChange",function(o){h(e);let d=m();return I(d.username,o)||(d.username=o),x(o)}),r()(),f(15,je,5,1,"ng-container",47),n(16,"div",22)(17,"div",23)(18,"span"),c(19,"i",48),r()(),n(20,"input",49,3),L("ngModelChange",function(o){h(e);let d=m();return I(d.password,o)||(d.password=o),x(o)}),r(),f(22,Ve,2,1,"span",50),r(),f(23,Ue,5,1,"ng-container",47),n(24,"div",51)(25,"button",52),u("click",function(){h(e);let o=m();return x(o.onLogin())}),a(26," Log in "),r()(),n(27,"div",53),c(28,"hr"),n(29,"span",54),a(30,"or"),r(),c(31,"hr"),r(),n(32,"div")(33,"button",55),u("click",function(o){h(e);let d=m();return x(d.onLoginByGoogle(o))}),c(34,"i",56),a(35," Sign In with Google "),r()()()}if(t&2){let e=O(14),i=O(21),o=m();s(6),B(" (",o.subdomain,"",o.domain,") "),s(7),E("ngModel",o.username),s(2),p("ngIf",e.invalid&&(e.dirty||e.touched)),s(5),p("type",o.passwordType)("ngClass",Y(9,Ae,o.browser=="edge",o.browser!="edge")),E("ngModel",o.password),s(2),p("ngIf",o.browser!="edge"),s(),p("ngIf",i.invalid&&(i.dirty||i.touched))}}var ve=(()=>{class t{constructor(e,i,o,d,Se){this._router=e,this.toastr=i,this.checkBrowser=o,this.authService=d,this.ngxPermission=Se,this.domain=".dealpos.co.id",this.loginState="FORM_DOMAIN",this.passwordType="password",this.passwordIcon="fa-eye",this.channels=[{title:"Shopee",img:v.SHOOPE},{title:"Tokopedia",img:v.TOKOPEDIA},{title:"Tiktok",img:v.TIKTOK},{title:"Woocommerce",img:v.WOOCOMMERCE},{title:"Lazada",img:v.LAZADA},{title:"Shopify",img:v.SHOPIFY},{title:"Plugo",img:v.PLUGONEW}],this.version=me.version,this.news$=d.getNews().pipe(R(1))}ngOnInit(){this.initLogin(),this.browser=this.checkBrowser.getBrowserName(),document.body.classList.add("login-body"),this.initChangeLogUrl()}initChangeLogUrl(){let e=`https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete&v=${this.version}`;this.changelogUrl=e}ngAfterViewInit(){this.setAutoFocusDomain()}initLogin(){let e=JSON.parse(localStorage.getItem("Authorization"));if(e){this.username=e?.username,this.subdomain=e?.Host?.split(".")[0];let i=e?.Host?.split("dealpos");this.domain=`.dealpos${i[1]}`,this.authService.isActiveToken()&&this._router.navigate(["menu"])}}onNextState(){if(ge.IsEmpty(this.subdomain)){this.toastr.warning("Account Domain is required","Warning");return}this.parseSubdomain(),this.loginState="FORM_AUTH"}parseSubdomain(){let e=this.subdomain.indexOf(".dealpos");e!=-1&&(this.subdomain=this.subdomain.substring(0,e))}onEditDomain(){this.loginState="FORM_DOMAIN"}onLogin(){let e={Host:`${this.subdomain}${this.domain}`,Username:this.username,Password:this.password};this.authService.login(e).subscribe(i=>{this.onSuccessLogin(i)})}onLoginByGoogle(e){let i=`${this.subdomain}${this.domain}`;this.authService.loginWithGoogle(e,i).subscribe(o=>{this.onSuccessLogin(o)})}onSuccessLogin(e){this.ngxPermission.hasPermission([pe.DashboardView]).then(i=>{i?this._router.navigate(["menu/dashboard"]):e?.TotalChannel<1?this._router.navigate(["menu/channel"]):this._router.navigate(["menu/products"])})}setAutoFocusDomain(){this.subdomainEl.nativeElement.focus()}hideShowPassword(){this.passwordType=this.passwordType==="text"?"password":"text",this.passwordIcon=this.passwordIcon==="fa-eye"?"fa-eye-slash":"fa-eye"}ngOnDestroy(){document.body.classList.remove("login-body")}static{this.\u0275fac=function(i){return new(i||t)(l(C),l(ue),l(be),l(xe),l(fe))}}static{this.\u0275cmp=_({type:t,selectors:[["app-login"]],viewQuery:function(i,o){if(i&1&&U(Te,5),i&2){let d;W(d=q())&&(o.subdomainEl=d.first)}},standalone:!1,decls:19,vars:7,consts:[["USERNAME_PASSWORD",""],["subdomainEl",""],["usernameCtrl","ngModel"],["passwordCtrl","ngModel"],[1,"container-fluid"],[1,"row","mx-auto","bg-white","login-pane"],[1,"col-md-5","order-md-first","order-last","border-end","features-pane","pt-12","pb-9"],[1,"fw-normal","fs-2","header-title","text-center"],[3,"newsList"],[1,"col-md-7","order-md-last","order-first","py-12","sign-in-pane"],[4,"ngIf","ngIfElse"],[1,"d-flex","copyright",2,"margin-left","20px"],[1,"align-self-center","me-5"],["target","_blank","href","http://www.dealpos.com"],[1,"version",2,"margin-right","18px"],["target","_blank",1,"text-dark","fst-italic",3,"href"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],[1,"text-md-start","text-center"],[1,"fs-2","header-title","me-2","fw-normal"],[1,"text-secondary-emphasis","fst-italic",2,"font-size","11px"],[2,"margin-top","38px"],[1,"form-block","mt-5"],[1,"input-group","input-group-lg","mt-8"],[1,"input-group-text","rounded-start","border-end-0",2,"width","52px"],[1,"fa-solid","fa-cloud"],["placeholder","Store Address","aria-label","Store Address","aria-describedby","basic-addon1","autofocus","","name","Store Address",1,"form-control","form-control-lg","rounded-end-0","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","ngModel"],["name","domainOption",1,"form-select","form-control","form-control-lg","border-start-0","border-start","rounded-end","rounded-start-0","domain-option",2,"height","58px",3,"ngModelChange","ngModel"],["selected","","value",".dealpos.co.id"],["value",".dealpos.net"],["value",".dealpos.com"],["value",".dealpos.app"],[1,"w-100",2,"margin-top","1.8rem"],["name","next","data-cy","next","type","submit",1,"btn","btn-xl","btn-success","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"d-flex","align-items-center","justify-content-center",2,"margin-top","2.1rem"],[1,"d-flex","align-items-center","justify-content-between","w-100"],[4,"ngFor","ngForOf"],[1,""],[1,"border-0",2,"width","34px","height","34px",3,"src","title","alt"],[1,"d-flex","align-items-center","justify-content-start","mb-2"],[1,"robotoslab","fw-normal"],[1,"ms-2","fw-normal"],[1,"me-2","robotoslab","d-inline-block","text-success"],["title","Edit Store Address",1,"fa-solid","fa-edit","link-success","fs-5","pointer",3,"click"],[2,"margin-top","29px"],[1,"input-group","input-group-lg"],[1,"fas","fa-user","fa-lg"],["id","txtUsername","type","text","data-cy","username","required","","placeholder","Username","aria-label","Username","aria-describedby","basic-addon1","autofocus","","name","username",1,"form-control","form-control-lg","rounded-end","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","ngModel"],[4,"ngIf"],[1,"fas","fa-key","fa-lg"],["id","txtPassword","data-cy","password","placeholder","Password","aria-label","Password","aria-describedby","basic-addon1","autofocus","","name","password","required","",1,"form-control","form-control-lg","rounded-end","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","type","ngClass","ngModel"],["class","input-group-text border-start-0 rounded-end",4,"ngIf"],[1,"w-100","mt-8"],["data-cy","login","type","submit",1,"btn","btn-lg","btn-success","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"divider","d-flex","align-items-center","justify-content-center"],[1,"mx-4","text-muted"],[1,"btn","btn-social-login","text-success","w-100","fw-bold",3,"click"],[1,"fa-brands","fa-google"],[1,"d-flex","justify-content-start","w-50","mb-4",2,"height","16px"],[2,"width","52px"],[1,"text-danger","ps-1"],[1,"input-group-text","border-start-0","rounded-end"],[3,"class","click",4,"ngIf"],[3,"click"]],template:function(i,o){if(i&1&&(n(0,"div",4)(1,"div",5)(2,"div",6)(3,"h3",7),a(4,"New Features"),r(),c(5,"POS-news-swiper",8),G(6,"async"),r(),n(7,"div",9),f(8,ze,30,3,"ng-container",10)(9,We,36,12,"ng-template",null,0,K),r()(),n(11,"div",11)(12,"span",12),a(13,"powered by :"),r(),c(14,"a",13),r(),n(15,"div",14)(16,"a",15),a(17),c(18,"i",16),r()()()),i&2){let d=O(10);s(5),p("newsList",Q(6,5,o.news$)),s(3),p("ngIf",o.loginState=="FORM_DOMAIN")("ngIfElse",d),s(8),p("href",o.changelogUrl,w),s(),H("version ",o.version,"")}},dependencies:[$,z,J,re,se,de,ee,ae,te,ne,ce,oe,ie,Ce,X],styles:[".login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px}@media (max-width: 768px){.login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){.login-pane[_ngcontent-%COMP%]{margin-top:30px}}.header-title[_ngcontent-%COMP%]{font-family:Roboto Slab}.carousel-inner[_ngcontent-%COMP%]{height:310px}.carousel-inner[_ngcontent-%COMP%] div.carousel-item[_ngcontent-%COMP%]{top:28px}@media (max-width: 820px){.carousel-indicators[_ngcontent-%COMP%]{bottom:-8px}}.carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#ddd;width:1.25rem;height:.375rem;transition:.3s}.carousel-indicators[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--bs-success)}.sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){.sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}.sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){.sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid #89b03e;border-right:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:0 10px 10px 0}}.subscription.danger[_ngcontent-%COMP%]{background-color:#f2dede;border-color:#eb415d;color:#a94442}.subscription.warning[_ngcontent-%COMP%]{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}@media (max-width: 768px){.features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){.features-pane[_ngcontent-%COMP%]{border-left:1px solid #89b03e;border-bottom:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:10px 0 0 10px}}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%], .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}.domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}"]})}}return t})();var Me=(()=>{class t{constructor(e,i,o){this.route=e,this.http=i,this.service=o}ngOnInit(){this.route.queryParams.subscribe(e=>{this.shopID=e.shop_id,this.code=e.code})}addShopee(){let e={ShopID:Number(this.shopID),Code:this.code};this.http.post("/api/ChannelAdd/ShopeeV2",e).subscribe(o=>{this.service.navigate(["/menu/channel"])})}static{this.\u0275fac=function(i){return new(i||t)(l(P),l(y),l(C))}}static{this.\u0275cmp=_({type:t,selectors:[["shopee-authorized"]],standalone:!1,decls:20,vars:1,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-t",3,"click"],[1,"fas","fa-undo"]],template:function(i,o){i&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),c(5,"i",5),n(6,"div",6),a(7,"Success !"),r()(),n(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),r(),n(11,"div"),a(12,"DEALPOS to manage your Shopee"),r(),n(13,"div"),a(14," Your shopID is "),n(15,"span",8),a(16),r()(),n(17,"button",9),u("click",function(){return o.addShopee()}),c(18,"i",10),a(19," Add to my Channel"),r()()()()()()),i&2&&(s(16),b(o.shopID))},styles:[".login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px}@media (max-width: 768px){.login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){.login-pane[_ngcontent-%COMP%]{margin-top:30px}}.header-title[_ngcontent-%COMP%]{font-family:Roboto Slab}.carousel-inner[_ngcontent-%COMP%]{height:310px}.carousel-inner[_ngcontent-%COMP%] div.carousel-item[_ngcontent-%COMP%]{top:28px}@media (max-width: 820px){.carousel-indicators[_ngcontent-%COMP%]{bottom:-8px}}.carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#ddd;width:1.25rem;height:.375rem;transition:.3s}.carousel-indicators[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--bs-success)}.sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){.sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}.sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){.sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid #89b03e;border-right:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:0 10px 10px 0}}.subscription.danger[_ngcontent-%COMP%]{background-color:#f2dede;border-color:#eb415d;color:#a94442}.subscription.warning[_ngcontent-%COMP%]{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}@media (max-width: 768px){.features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){.features-pane[_ngcontent-%COMP%]{border-left:1px solid #89b03e;border-bottom:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:10px 0 0 10px}}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%], .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}.domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}.form-signin[_ngcontent-%COMP%]{max-width:600px}.card[_ngcontent-%COMP%]{font:100 14px/25px Roboto,Helvetica Neue,sans-serif;border-radius:13px;box-sizing:border-box}.text-shopee[_ngcontent-%COMP%]{color:#f53d2d}"]})}}return t})();var Oe=(()=>{class t{constructor(e,i,o){this.route=e,this.http=i,this.service=o}ngOnInit(){this.route.queryParams.subscribe(e=>{this.code=e.code,this.state=e.state})}addChannelTiktok(){let e={Code:this.code};this.http.post("/api/ChannelAdd/AddTiktok",e).subscribe(i=>{this.service.navigate(["/menu/channel"])})}static{this.\u0275fac=function(i){return new(i||t)(l(P),l(y),l(C))}}static{this.\u0275cmp=_({type:t,selectors:[["app-tiktok"]],standalone:!1,decls:24,vars:2,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-6",3,"click"],[1,"fas","fa-undo"]],template:function(i,o){i&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),c(5,"i",5),n(6,"div",6),a(7,"Success !"),r()(),n(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),r(),n(11,"div"),a(12,"DEALPOS to manage your Tiktok"),r(),n(13,"div"),a(14," Your Code is "),n(15,"span",8),a(16),r()(),n(17,"div"),a(18," Your State is "),n(19,"span",8),a(20),r()(),n(21,"button",9),u("click",function(){return o.addChannelTiktok()}),c(22,"i",10),a(23," Add to my Channel"),r()()()()()()),i&2&&(s(16),b(o.code),s(4),b(o.state))},styles:[".login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px}@media (max-width: 768px){.login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){.login-pane[_ngcontent-%COMP%]{margin-top:30px}}.header-title[_ngcontent-%COMP%]{font-family:Roboto Slab}.carousel-inner[_ngcontent-%COMP%]{height:310px}.carousel-inner[_ngcontent-%COMP%] div.carousel-item[_ngcontent-%COMP%]{top:28px}@media (max-width: 820px){.carousel-indicators[_ngcontent-%COMP%]{bottom:-8px}}.carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#ddd;width:1.25rem;height:.375rem;transition:.3s}.carousel-indicators[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--bs-success)}.sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){.sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}.sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){.sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid #89b03e;border-right:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:0 10px 10px 0}}.subscription.danger[_ngcontent-%COMP%]{background-color:#f2dede;border-color:#eb415d;color:#a94442}.subscription.warning[_ngcontent-%COMP%]{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}@media (max-width: 768px){.features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){.features-pane[_ngcontent-%COMP%]{border-left:1px solid #89b03e;border-bottom:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:10px 0 0 10px}}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%], .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}.domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}.form-signin[_ngcontent-%COMP%]{max-width:600px}.card[_ngcontent-%COMP%]{font:100 14px/25px Roboto,Helvetica Neue,sans-serif;border-radius:13px;box-sizing:border-box}.text-shopee[_ngcontent-%COMP%]{color:#f53d2d}"]})}}return t})();var Pe=(()=>{class t{constructor(e,i,o){this.route=e,this.http=i,this.service=o}ngOnInit(){this.route.queryParams.subscribe(e=>{this.code=e.code})}addChannelLazada(){let e={Code:this.code};this.http.post("/api/ChannelAdd/AddLazada",e).subscribe(i=>{this.service.navigate(["/menu/channel"])})}static{this.\u0275fac=function(i){return new(i||t)(l(P),l(y),l(C))}}static{this.\u0275cmp=_({type:t,selectors:[["app-lazada"]],standalone:!1,decls:20,vars:1,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-6",3,"click"],[1,"fas","fa-undo"]],template:function(i,o){i&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),c(5,"i",5),n(6,"div",6),a(7,"Success !"),r()(),n(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),r(),n(11,"div"),a(12,"DEALPOS to manage your Lazada"),r(),n(13,"div"),a(14," Your Code is "),n(15,"span",8),a(16),r()(),n(17,"button",9),u("click",function(){return o.addChannelLazada()}),c(18,"i",10),a(19," Add to my Channel"),r()()()()()()),i&2&&(s(16),b(o.code))},encapsulation:2})}}return t})();var qe=[{path:"",component:ve,data:{title:"Dealpos x Marketplace"}},{path:"shopee",component:Me,data:{title:"Success"}},{path:"tiktok",component:Oe,data:{title:"Success"}},{path:"lazada",component:Pe,data:{title:"Success"}}],ye=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=A({type:t})}static{this.\u0275inj=T({imports:[D.forChild(qe),D]})}}return t})();var Pt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=A({type:t})}static{this.\u0275inj=T({imports:[Z,le,ye,_e,he]})}}return t})();export{Pt as LoginModule};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Gb as a,Gc as p,Yb as r,ic as n,jc as s,kc as m,pb as o,rb as i}from"./chunk-OJMQBH6T.js";var y=(()=>{class t{constructor(){this.emptyStateImg="https://resc.cloudinary.com/pos/image/upload/v1683772105/icons/marketplace_icons/emptyrecord.svg"}ngOnInit(){}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275cmp=a({type:t,selectors:[["app-empty-state"]],decls:4,vars:1,consts:[["alt","",2,"width","225px",3,"src"],[1,"text-center","fs-2","text-secondary","mt-4"]],template:function(e,d){e&1&&(n(0,"div"),m(1,"img",0),n(2,"div",1),p(3," No records found "),s()()),e&2&&(i(),r("src",d.emptyStateImg,o))},encapsulation:2})}}return t})();export{y as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-YERZ6W22.js";import{a as u}from"./chunk-CGOB6Y3X.js";import{e as c}from"./chunk-WN5DZGA4.js";import{c as p}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-YERZ6W22.js";import{a as u}from"./chunk-CGOB6Y3X.js";import{e as c}from"./chunk-WN5DZGA4.js";import{c as p}from"./chunk-EUYQST7Q.js";import{ja as i,pa as l,v as s}from"./chunk-OJMQBH6T.js";var y=(()=>{class o{constructor(){this.httpService=l(c)}getNotificationDetail(t){return this.httpService.post(u.GetJobScanDetail,{ID:t}).pipe(s(r=>{let e=r.Data;return e.DurationInSecond=e.Duration?e.Duration/1e3:0,e.ParsedStatus=e.StatusProduct?JSON.parse(e.StatusProduct):[],e.ParsedPerfLog=e.PerfLog?JSON.parse(e.PerfLog):[],e.ProcessLabel=this.generateLabel(e),e.ProcessDescription=this.generateDescription(e),e}))}getNotificationList(t){return this.httpService.post(u.GetJobScanList,t).pipe(s(r=>{let e=r.Data;return e=e.map(n=>(n.Img=p.getChannelLogoByTypeId(n.TypeID),n.DurationInSecond=n.Duration?n.Duration/1e3:0,n.ProcessLabel=this.generateLabel(n),n.ProcessDescription=this.generateDescription(n),n)),{Data:e,Count:r.Count}}))}generateLabel(t){let r=null;switch(t.ScanTypeID){case a.Active:r="Active";break;case a.Sellable:r="Sellable";break;case a.All:r="All";break}return`Asynchronous Scan - ${r}`}generateDescription(t){return`${t.OriginGetCount} found in ${t.ChannelName} ( ${t.SkuFoundCount} Sold In Channel + ${t.SkuNotFoundCount} Not In POS)`}createMessageCopyText(t){let r=[];return t.ParsedStatus&&t.ParsedStatus.forEach(e=>{r.push({[e.Key]:e.Value})}),r=[...r,{OriginalGetCount:t.OriginGetCount},{SkuFoundCount:t.SkuFoundCount},{SkuNotFoundCount:t.SkuNotFoundCount}],JSON.stringify(r)}static{this.\u0275fac=function(r){return new(r||o)}}static{this.\u0275prov=i({token:o,factory:o.\u0275fac})}}return o})();var d=function(o){return o[o.InProgress=0]="InProgress",o[o.Completed=1]="Completed",o[o.Failed=2]="Failed",o}(d||{});export{y as a,d as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{h as m}from"./chunk-
|
|
1
|
+
import{h as m}from"./chunk-P2AADVEN.js";import{a as n}from"./chunk-CGOB6Y3X.js";import{e as u}from"./chunk-WN5DZGA4.js";import{ea as h,ja as c,pa as s,v as a}from"./chunk-OJMQBH6T.js";var f=(()=>{class i{constructor(){}convertToCSV(t,e){let r;if(typeof t=="string")r=t;else{var o=typeof t=="object"?t:JSON.parse(t);r=this.transformToCSVStringFormat(o)}this.downloadCSV(r,e)}transformToCSVStringFormat(t){if(!t||!t.length)return;let e=",",r=Object.keys(t[0]);return t.map(l=>r.map(d=>{let p=l[d]===null||l[d]===void 0?"":l[d];return p=p instanceof Date?p.toLocaleString():p.toString().replace(/"/g,'""'),p.search(/("|,|\n)/g)>=0&&(p=`"${p}"`),p}).join(e)).join(`
|
|
2
2
|
`)}downloadCSV(t,e){var r=new Blob([t],{type:"text/csv;charset=utf8;"}),o=document.createElement("a");o.setAttribute("href",window.URL.createObjectURL(r)),o.setAttribute("download",e),document.body.appendChild(o),o.click(),document.body.removeChild(o)}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275prov=c({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var w=(()=>{class i{constructor(){this.httpService=s(u),this.tokenService=s(m),this.exportService=s(f)}getShippedOrders(t){return this.httpService.post(n.GetShipped,t).pipe(a(e=>e.Data||[]))}getReadyToShipOrders(t){return this.httpService.post(n.GetToShip,t).pipe(a(e=>e?.Data))}getCompletedOrders(t){return this.httpService.post(n.GetCompleted,t).pipe(a(e=>e?.Data||[]))}getCancelledOrders(t){return this.httpService.post(n.GetCancelled,t).pipe(a(e=>e.Data))}getAwaitingCollectionOrders(t){return this.httpService.post(n.GetAwaitingCollection,t).pipe(a(e=>e?.Data))}getOrderDefaultValue(){return this.httpService.get(n.getOrderDaysFrom).pipe(a(t=>{let e=Number(t.Days??0),r=new Date;return e===0?null:new Date(r.setDate(r.getDate()-e))}))}getAllOrders(t){return this.httpService.post(n.GetAll,t).pipe(a(e=>e.Data))}exportOrders(t,e){return this.httpService.post("api/Orders/ExportOrder",t).pipe(h(r=>{this.exportService.convertToCSV(r,e)}))}refreshShippingCourier(t,e){let r={ShopID:t,OrderNumber:e};return this.httpService.post(n.RefreshShippingCourierAndRefNumber,r)}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275prov=c({token:i,factory:i.\u0275fac})}}return i})();export{w as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-66YHNWRR.js";var o=[{path:"",loadComponent(){return import("./chunk-4G7SG2H6.js").then(t=>t.OrdersV2Component)},children:[{path:"to-ship",loadComponent(){return import("./chunk-
|
|
1
|
+
import"./chunk-66YHNWRR.js";var o=[{path:"",loadComponent(){return import("./chunk-4G7SG2H6.js").then(t=>t.OrdersV2Component)},children:[{path:"to-ship",loadComponent(){return import("./chunk-5Z5Y537T.js").then(t=>t.ReadyToShipComponent)},title:"To Ship"},{path:"awaiting-collection",loadComponent(){return import("./chunk-X52QA4QU.js").then(t=>t.AwaitingCollectionComponent)},title:"Awaiting Collection"},{path:"shipped",loadComponent(){return import("./chunk-URGPZLCB.js").then(t=>t.ShippedComponent)},title:"Shipped"},{path:"completed",loadComponent(){return import("./chunk-5BHSTOJT.js").then(t=>t.CompletedComponent)},title:"Completed"},{path:"all",loadComponent(){return import("./chunk-JUJFPAAU.js").then(t=>t.AllComponent)},title:"All Orders"},{path:"cancelled",loadComponent(){return import("./chunk-FKQ7ZVGD.js").then(t=>t.CancelledComponent)},title:"Cancelled"},{path:"download",loadComponent(){return import("./chunk-TI67Q3JR.js").then(t=>t.DownloadV2Component)},title:"Download"},{path:"log",loadComponent(){return import("./chunk-YF4XELSP.js").then(t=>t.DownloadOrderLogComponent)},title:"Download Log"},{path:"",pathMatch:"full",redirectTo:"to-ship"}]}];export{o as routes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as D}from"./chunk-PIBVGTHJ.js";import{a as
|
|
1
|
+
import{a as D}from"./chunk-PIBVGTHJ.js";import{a as U}from"./chunk-UMP6ZMEJ.js";import{a as fe}from"./chunk-EPBVNII2.js";import"./chunk-4YRBARG2.js";import"./chunk-7G6GQTSH.js";import"./chunk-YFDFIBAG.js";import"./chunk-RC5PUUVM.js";import{a as pe}from"./chunk-ACIMXBIC.js";import{a as re}from"./chunk-Z3ITXK3D.js";import"./chunk-CGOB6Y3X.js";import{b as ae}from"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import{c as oe}from"./chunk-EUYQST7Q.js";import{m as me,n as ue}from"./chunk-HJXYT6MI.js";import{A as ie}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import{b as le,c as se}from"./chunk-ERXVXBTU.js";import{r as de,s as ce}from"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{E as Y,G as ee,H as te,J as ne,d as K,g as Q,j as W,m as X,n as P}from"./chunk-FXQKRJWU.js";import{$c as _,Gb as x,Gc as s,Hc as h,Ic as z,Jb as L,Mb as m,Nc as q,Oc as $,Pc as C,Qc as j,Sc as I,Tc as J,Yb as p,Z as V,aa as w,ac as S,ad as y,dc as T,ec as k,gc as A,hc as H,ic as a,jc as l,kc as u,lc as g,mc as v,ob as F,oc as B,pa as b,rb as r,rd as Z,tc as G,uc as c,v as M,ya as N,za as R}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import{a as E,b as O}from"./chunk-66YHNWRR.js";var ge=(()=>{class t{transform(e){return typeof e=="number"&&(e=e.toString()),e!=null?e.replace(/\n/g,"<br />"):e}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275pipe=L({name:"newlines",type:t,pure:!0})}}return t})();var Ce=t=>({disabled:t}),_e=(t,d)=>({labelFilledInput:t,labelEmptyInput:d});function ye(t,d){if(t&1&&(a(0,"p"),s(1),_(2,"number"),l()),t&2){let e=c();r(),h(e.inputValueType()==="number"?y(2,1,e.inputValue):e.inputValue)}}function xe(t,d){if(t&1&&(u(0,"p",3),_(1,"newlines")),t&2){let e=c();p("innerHTML",y(1,1,e.inputValue),F)}}function Ie(t,d){if(t&1&&(g(0),s(1),v()),t&2){let e=c();r(),z(" ",e.labelValue," ")}}var ve=(()=>{class t{constructor(){this.inputValue="",this.labelValue="",this.inputType="input",this.labelVisible=!0,this.disabled=!1,this.class="mb-6",this.tooltip="",this.isInputFilled=!1,this.isNotEmpty=pe.IsNotEmpty}inputValueType(){return typeof this.inputValue}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["lib-info-page-input"]],inputs:{inputValue:"inputValue",labelValue:"labelValue",inputType:"inputType",labelVisible:"labelVisible",disabled:"disabled",class:"class",tooltip:"tooltip"},decls:5,vars:14,consts:[["matTooltipPosition","above",3,"ngClass","matTooltip"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"]],template:function(o,n){o&1&&(a(0,"div",0),m(1,ye,3,3,"p",1)(2,xe,2,3,"p",2),a(3,"label"),m(4,Ie,2,1,"ng-container",1),l()()),o&2&&(S(n.class),p("ngClass",I(9,Ce,n.disabled))("matTooltip",n.tooltip),r(),p("ngIf",n.isNotEmpty(n.inputValue)&&n.inputType=="input"),r(),p("ngIf",n.isNotEmpty(n.inputValue)&&n.inputType=="textarea"),r(),S(J(11,_e,n.isNotEmpty(n.inputValue),!n.isNotEmpty(n.inputValue))),r(),p("ngIf",n.labelVisible))},dependencies:[P,K,Q,X,ge,ce,de],styles:["div[_ngcontent-%COMP%]{border:1px solid #ced4da;position:relative;margin-bottom:1rem;border-radius:.25rem!important}p[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem}.labelFilledInput[_ngcontent-%COMP%]{position:absolute;top:-10px;left:10px;background:#fff;padding-left:4px;padding-right:4px;font-size:.75rem!important;color:#9da2a6}.labelEmptyInput[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem;color:#ccc}.disabled[_ngcontent-%COMP%]{background-color:#e9ecef;opacity:1}"]})}}return t})();var Pe=t=>({ID:t});function Me(t,d){if(t&1){let e=B();a(0,"button",24),G("click",function(){N(e);let n=c(2),i=C(0);return R(n.onDeleteUser(i==null||i.selectedUser==null?null:i.selectedUser.ID))}),u(1,"i",25),s(2," Delete "),l()}}function Se(t,d){if(t&1&&(g(0),m(1,Me,3,0,"button",23),v()),t&2){let e,o=c(),n=C(0);r(),T((n==null||n.selectedUser==null?null:n.selectedUser.Name)!==((e=o.currentLoginUser())==null?null:e.username)?1:-1)}}function Te(t,d){if(t&1&&(g(0),a(1,"a",26),u(2,"i",27),s(3," Edit "),l(),v()),t&2){c();let e=C(0);r(),p("queryParams",I(1,Pe,e==null||e.selectedUser==null?null:e.selectedUser.ID))}}function Ue(t,d){t&1&&(a(0,"div",20),s(1," All channels assigned to this user "),l())}function De(t,d){if(t&1&&u(0,"p-chip",28),t&2){let e=d.$implicit;p("label",e.Name)("image",e.logo)("alt",e.Name)}}function Ee(t,d){if(t&1&&A(0,De,1,3,"p-chip",28,k),t&2){c();let e=C(0);H(e==null?null:e.selectedChannels)}}var ot=(()=>{class t{constructor(){this.userService=b(D),this.activatedRoute=b(Y),this.toastService=b(ae),this.router=b(ee),this.userLoader$=this.activatedRoute.queryParams.pipe(w(e=>{let o=e.ID||null;return this.userService.getUserFormLoader(o).pipe(V(1),M(n=>(n.Options.Channels=oe.assignChannelLogo(n.Options.Channels),n)))}),M(e=>{let o=e.Options.Users.find(f=>f.ID===e.Form?.ID),n=e.Options.Groups.find(f=>f.ID===e.Form?.GroupID),i=e.Options.Channels.filter(f=>e.UserChannels?.includes(f.ID));return O(E({},e),{selectedUser:o||null,selectedGroup:n||null,selectedChannels:i||[],DownloadOrderDaysRange:e.Form?.DownloadOrderDaysRange||"0"})})),this.userEditRole=U.UserEdit,this.userDeleteRole=U.UserDelete,this.currentLoginUser=Z(()=>{let e=localStorage.getItem(re.AUTHORIZATION);return e?JSON.parse(e):null})}onDeleteUser(e){confirm("Are you sure you want to delete this user?")&&this.userService.deleteUsers([e]).subscribe({next:()=>{this.router.navigate(["/menu/users/users"]),this.toastService.success("User deleted successfully","Success")}})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-user-info"]],features:[j([D])],decls:50,vars:12,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","group","aria-label","User Actions",1,"btn-group"],[4,"ngxPermissionsOnly"],[1,"container-fluid","py-5","bg-light-gray"],[1,"row","mt-8"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-body","mt-8","pb-4"],[1,"row"],[1,"col-6"],[1,"info-label-group"],["id","myTab","role","tablist",1,"nav","nav-tabs"],["role","presentation",1,"nav-item"],["id","channel-tab","data-bs-toggle","tab","data-bs-target","#channel-tab-pane","type","button","role","tab","aria-controls","channel-tab-pane","aria-selected","true",1,"nav-link","active"],["id","restriction-tab","data-bs-toggle","tab","data-bs-target","#restriction-tab-pane","type","button","role","tab","aria-controls","restriction-tab-pane","aria-selected","false",1,"nav-link"],[1,"card","rounded-0","border-top-0"],[1,"card-body","pb-4"],["id","myTabContent",1,"tab-content"],["id","channel-tab-pane","role","tabpanel","aria-labelledby","channel-tab","tabindex","0",1,"tab-pane","fade","show","active"],[1,"text-center","fs-5","opacity-50"],["id","restriction-tab-pane","role","tabpanel","aria-labelledby","restriction-tab-pane","tabindex","1",1,"tab-pane","fade"],["tooltip","How many days of past orders this user can download.","labelValue","Download Order Days Range","inputType","input",3,"inputValue"],[1,"btn","btn-outline-secondary"],[1,"btn","btn-outline-secondary",3,"click"],[1,"fa","fa-trash","me-1"],["role","button","routerLink","/menu/users/users/form",1,"btn","btn-outline-secondary",3,"queryParams"],[1,"fa","fa-edit","me-1"],[1,"me-3","mb-3",2,"--p-chip-image-width","1.2rem","--p-chip-image-height","1.2rem","--p-chip-padding-x","1rem","--p-chip-padding-y","0.5rem","--p-chip-border-radius","0.5rem","--p-chip-font-size","1.2rem",3,"label","image","alt"]],template:function(o,n){if(o&1&&(q(0),_(1,"async"),a(2,"mainpanel",0)(3,"actions")(4,"div",1),m(5,Se,2,1,"ng-container",2)(6,Te,4,3,"ng-container",2),l()(),a(7,"content")(8,"div",3)(9,"div",4)(10,"div",5)(11,"div",6)(12,"div",7)(13,"h3"),s(14,"User Information"),l()(),a(15,"div",8)(16,"div",9)(17,"div",10)(18,"div",11)(19,"label"),s(20,"Selected User"),l(),a(21,"div")(22,"span"),s(23),l()()()(),a(24,"div",10)(25,"div",11)(26,"label"),s(27,"Selected Group"),l(),a(28,"div")(29,"span"),s(30),l()()()()()()()()(),a(31,"div",9)(32,"div",5)(33,"ul",12)(34,"li",13)(35,"button",14),s(36," Channels Filter "),l()(),a(37,"li",13)(38,"button",15),s(39," Restriction "),l()()(),a(40,"div",16)(41,"div",17)(42,"div",18)(43,"div",19),m(44,Ue,2,0,"div",20)(45,Ee,2,0),l(),a(46,"div",21)(47,"div",9)(48,"div",10),u(49,"lib-info-page-input",22),l()()()()()()()()()()()),o&2){let i=$(y(1,9,n.userLoader$));r(2),p("headerTitle",(i==null||i.selectedUser==null?null:i.selectedUser.Name)+" Info")("hideSearchBox",!0)("hideSearchDropdown",!0),r(3),p("ngxPermissionsOnly",n.userDeleteRole),r(),p("ngxPermissionsOnly",n.userEditRole),r(17),h(i==null||i.selectedUser==null?null:i.selectedUser.Name),r(7),h(i==null||i.selectedGroup==null?null:i.selectedGroup.Name),r(14),T((i==null||i.selectedChannels==null?null:i.selectedChannels.length)===0?44:45),r(5),p("inputValue",i==null?null:i.DownloadOrderDaysRange)}},dependencies:[P,W,ue,me,ie,ne,te,fe,se,le,ve],styles:[".nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%]:hover, .nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%]:focus, .nav-tabs[_ngcontent-%COMP%] .nav-item.show[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover, .nav-tabs[_ngcontent-%COMP%] .nav-item.show[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:focus{background-color:#fff!important;border-color:#dee2e6 #dee2e6 #fff}"]})}}return t})();export{ot as UserInfoComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ae}from"./chunk-
|
|
1
|
+
import{a as ae}from"./chunk-KTB223SK.js";import{a as oe,b as le}from"./chunk-ABYG6YZT.js";import"./chunk-RAQRGWCZ.js";import"./chunk-HVCIQI7B.js";import"./chunk-3GDM5JNY.js";import"./chunk-XXT6F2ZS.js";import"./chunk-QS22J2SC.js";import"./chunk-EHUVS2VB.js";import"./chunk-SDUUFQUI.js";import"./chunk-6L7TD5DW.js";import"./chunk-6OMSPZZC.js";import"./chunk-HIC5QC3Y.js";import"./chunk-JBT7GBCM.js";import"./chunk-JVNHFIYT.js";import{a as Y,b as Z,d as ee,e as te}from"./chunk-PYXL7UF7.js";import{i as X}from"./chunk-P2AADVEN.js";import"./chunk-Z3ITXK3D.js";import"./chunk-TGMCGROM.js";import"./chunk-CGOB6Y3X.js";import{e as Q}from"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import{c as K}from"./chunk-EUYQST7Q.js";import{m as ne,n as ie}from"./chunk-HJXYT6MI.js";import{A as G,h as H,m as U}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{j as V,k as J,l as W,n as k}from"./chunk-FXQKRJWU.js";import{$c as m,Gb as P,Gc as p,Hc as C,Ic as y,Kc as j,Lc as O,Mb as u,Mc as q,Qc as z,Yb as d,Z as M,aa as D,ad as c,bd as A,dc as R,ec as B,g as L,gc as T,hc as $,ic as i,ja as w,jc as a,kc as f,oc as F,pa as g,pb as S,rb as l,tc as v,uc as x,v as I,ya as E,za as N}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import{a as _}from"./chunk-66YHNWRR.js";var b=(()=>{class n{constructor(){this.httpService=g(Q),this._pageination=new L({PageNumber:1,RowCount:100,ChannelID:null}),this.filter$=this._pageination.asObservable(),this.log$=this.filter$.pipe(D(e=>this.getLogs$(e).pipe()))}getLogs$(e){return this.httpService.post("/api/Channel/GetChannelLogPaged",e)}onPaginationChange(e){let t=this._pageination.value;t.PageNumber=e.pageIndex+1,this._pageination.next(t)}onFilter(e){let t=this._pageination.value;t.PageNumber=1,t=_(_({},t),e),this._pageination.next(t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=w({token:n,factory:n.\u0275fac})}}return n})();function pe(n,h){if(n&1&&(i(0,"span",10),f(1,"img",11),a(),p(2)),n&2){let e=h.item;l(),d("src",e.Img,S)("alt",e.Name),l(),y(" ",e.Name," ")}}function me(n,h){if(n&1&&(i(0,"tr")(1,"td"),f(2,"img",17),i(3,"span"),p(4),a()(),i(5,"td")(6,"span",18),p(7),m(8,"json"),a()(),i(9,"td"),p(10),m(11,"json"),a(),i(12,"td"),p(13),m(14,"date"),a()()),n&2){let e=h.$implicit;l(2),d("src",e.Img,S),l(2),y(" ",e.ChannelName," "),l(3),C(c(8,5,e.Request)),l(3),C(c(11,7,e.Response)),l(3),C(A(14,9,e.Created,"dd-MM-yyyy hh:mm:ss"))}}function se(n,h){if(n&1){let e=F();i(0,"div",8)(1,"table",12)(2,"thead")(3,"tr",13)(4,"th",14),p(5,"Channel"),a(),i(6,"th"),p(7,"Request"),a(),i(8,"th"),p(9,"Response"),a(),i(10,"th",15),p(11,"Created"),a()()(),i(12,"tbody"),T(13,me,15,12,"tr",null,B),m(15,"async"),a()(),i(16,"mat-paginator",16),m(17,"async"),m(18,"async"),m(19,"async"),m(20,"async"),v("page",function(r){E(e);let o=x();return N(o.channelLogService.onPaginationChange(r))}),a()()}if(n&2){let e,t,r,o,s=x();l(13),$((e=c(15,3,s.channelLogs$))==null?null:e.Data),l(3),d("length",(t=c(17,5,s.channelLogs$))==null?null:t.Count)("pageSize",(r=c(18,7,s.filter$))==null?null:r.RowCount)("pageIndex",(o=c(19,9,s.filter$))!=null&&o.PageNumber?0:((o=c(20,11,s.filter$))==null?null:o.PageNumber)-1)}}function ce(n,h){n&1&&(i(0,"div",9),f(1,"app-empty-state"),a())}var Fe=(()=>{class n{constructor(){this.channelLogService=g(b),this.authService=g(X),this.channelOptions=this.authService.getChannels(),this.channelLogs$=this.channelLogService.log$.pipe(I(e=>(e.Data?e.Data=e.Data.map(t=>(t.Response=t.Response?JSON.parse(t.Response):"",t.Request=t.Request?JSON.parse(t.Request):"",t.Img=K.getChannelLogoByTypeId(t.TypeID),t)):e.Data=[],e)),M(1)),this.filter$=this.channelLogService.filter$}onSubmitFilter(){this.channelLogService.onFilter({ChannelID:this.channelID})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=P({type:n,selectors:[["app-channel-log"]],features:[z([b])],decls:15,vars:7,consts:[["headerTitle","Authorization Log",3,"onSubmit","hideSearchBox"],["container",""],[1,"fw-bold","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,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table","table-hover"],[1,"table-light"],[2,"width","250px"],[2,"width","150px"],[3,"page","length","pageSize","pageIndex"],[1,"me-2",2,"width","25px",3,"src"],[1,""]],template:function(t,r){if(t&1&&(i(0,"mainpanel",0),v("onSubmit",function(){return r.onSubmitFilter()}),i(1,"filters")(2,"div",1)(3,"div")(4,"label",2),p(5,"Channel"),a(),i(6,"ng-select",3),q("ngModelChange",function(s){return O(r.channelID,s)||(r.channelID=s),s}),u(7,pe,3,3,"ng-template",4),a()()()(),i(8,"content")(9,"div",5)(10,"div",6)(11,"div",7),u(12,se,21,13,"div",8),m(13,"async"),u(14,ce,2,0,"div",9),a()()()()()),t&2){let o;d("hideSearchBox",!0),l(6),d("clearable",!0)("items",r.channelOptions),j("ngModel",r.channelID),l(6),R(((o=c(13,5,r.channelLogs$))==null||o.Data==null?null:o.Data.length)>0?12:14)}},dependencies:[k,V,W,J,ie,ne,ae,le,oe,te,ee,Y,Z,G,H,U],encapsulation:2})}}return n})();export{Fe as ChannelLogComponent};
|