marketplacepos 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[78],{6078:(k,m,c)=>{c.r(m),c.d(m,{LoginModule:()=>O});var g=c(9808),a=c(3075),l=c(2302),t=c(5e3),p=c(632),u=c(4810);const f=["domainAutoFocus"],h=["passAutoFocus"];function _(o,i){1&o&&(t.TgZ(0,"p"),t._uU(1," Domain is required "),t.qZA())}function Z(o,i){1&o&&(t.TgZ(0,"p"),t._uU(1," Please enter a valid dealpos domain "),t.qZA())}function b(o,i){if(1&o&&(t.TgZ(0,"div",38),t.YNc(1,_,2,0,"p",39),t.YNc(2,Z,2,0,"p",39),t.qZA()),2&o){t.oxw();const e=t.MAs(18);t.xp6(1),t.Q6J("ngIf",e.errors.required),t.xp6(1),t.Q6J("ngIf",e.errors.pattern)}}function C(o,i){1&o&&(t.TgZ(0,"p"),t._uU(1," Username is required "),t.qZA())}function x(o,i){if(1&o&&(t.TgZ(0,"div",38),t.YNc(1,C,2,0,"p",39),t.qZA()),2&o){t.oxw();const e=t.MAs(24);t.xp6(1),t.Q6J("ngIf",e.errors.required)}}const w=function(o,i){return{"fa-eye":o,"fa-eye-slash":i}};function T(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"i",40),t.NdJ("click",function(){return t.CHM(e),t.oxw().hideShowPassword()}),t.qZA()}if(2&o){const e=t.oxw();t.Q6J("ngClass",t.WLB(1,w,"eye-off"==e.passwordIcon,"eye"==e.passwordIcon))}}function A(o,i){1&o&&(t.TgZ(0,"p"),t._uU(1," Password is required "),t.qZA())}function v(o,i){if(1&o&&(t.TgZ(0,"div",38),t.YNc(1,A,2,0,"p",39),t.qZA()),2&o){t.oxw();const e=t.MAs(31);t.xp6(1),t.Q6J("ngIf",e.errors.required)}}function M(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"a",41),t.NdJ("click",function(){return t.CHM(e),t.oxw().redirectForgetPass()}),t._uU(1,"Forgot Password?"),t.qZA()}}const y=[{path:"",component:(()=>{class o{constructor(e,n,s,r){this.http=e,this._router=n,this.elementRef=s,this.checkBrowser=r,this.login={Host:"",Username:"",Password:""},this.passwordType="password",this.passwordIcon="eye-off",this.getCookies();var d=JSON.parse(window.localStorage.getItem("user"));let q=new Date;null!=d&&new Date(d.expiredAt)>q&&this._router.navigate(["menu"])}ngOnInit(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="#dfeffc",this.browser=this.checkBrowser.getBrowserName()}ngOnDestroy(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="white"}getCookies(){let e=localStorage.getItem("Authorization");if(null!=e){let n=JSON.parse(e);this.login.Host=n.Host,this.login.Username=n.Username}}setAutoFocusDomain(){this.domainElementRef.nativeElement.focus()}setAutoFocusPass(){this.passElementRef.nativeElement.focus()}DoLogin(){this.http.post("/api/token/Login",this.login).subscribe(e=>{null!=e.access_token&&(window.localStorage.removeItem("user"),window.localStorage.setItem("user",JSON.stringify(e)),window.localStorage.removeItem("Intercom"),window.localStorage.setItem("Intercom",JSON.stringify(e.intercom)),window.localStorage.removeItem("channel"),window.localStorage.setItem("channel",JSON.stringify(e.channel)),window.localStorage.removeItem("Authorization"),window.localStorage.setItem("Authorization",JSON.stringify({Host:this.login.Host,Username:this.login.Username})),this._router.navigate(e.channel.length<1?["menu/channel"]:["menu"]))})}redirectForgetPass(){window.open(this.makeForgotPassLink(),"_blank")}makeForgotPassLink(){var e=this.login.Host;return"/"==e[e.length-1]&&(e=e.slice(0,-1)),e.includes("https://")||(e="https://"+e),e+"/ForgotPassword"}hideShowPassword(){this.passwordType="text"===this.passwordType?"password":"text",this.passwordIcon="eye-off"===this.passwordIcon?"eye":"eye-off"}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(p.O),t.Y36(l.F0),t.Y36(t.SBq),t.Y36(u.T))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-login"]],viewQuery:function(e,n){if(1&e&&(t.Gf(f,5),t.Gf(h,5)),2&e){let s;t.iGM(s=t.CRH())&&(n.domainElementRef=s.first),t.iGM(s=t.CRH())&&(n.passElementRef=s.first)}},decls:60,vars:9,consts:[[1,"container"],[1,"row","mt-5","mt-md-0","align-self-center"],[1,"col-12","col-md-7","text-center"],[1,"big-display","robotoslab","d-none","d-sm-block"],["src","https://res.cloudinary.com/pos/image/upload/w_650/v1602644673/Apps/Login/Marketplace.png","alt","integration-image",1,"img-fluid"],[1,"col-12","col-md-5","order-first","order-md-last"],[1,"big-display","text-center","my-5","py-5","robotoslab","d-block","d-sm-none"],[1,"card"],[1,"card-body"],[1,"card-title"],[1,"ml-2","font-weight-normal","font-xl","robotoslab"],[1,""],[1,"form-label-group"],["type","text","required","","name","Host","id","inputHost","placeholder","POS Domain (xyz.dealpos.com)","pattern","(https:\\/\\/)?\\w+.dealpos(.com|.net|.co.id)(\\/)?",1,"form-control","text-left",3,"ngModel","ngModelChange"],["domainAutoFocus","","domain","ngModel"],["for","inputHost",1,"text-left"],["class","text-danger",4,"ngIf"],["type","text","name","Username","id","inputUsername","placeholder","Username","required","",1,"form-control","text-left",3,"ngModel","ngModelChange"],["username","ngModel"],["for","inputUsername",1,"text-left"],[1,"form-label-group","mb-5","mb-sm-2"],["name","Password","id","inputPassword","placeholder","Password","required","",1,"form-control","text-left",3,"type","ngModel","ngModelChange"],["passAutoFocus","","password","ngModel"],["for","inputPassword",1,"text-left"],["class","passwordIcon fas fa-lg",3,"ngClass","click",4,"ngIf"],[1,"row","justify-content-between","align-items-center"],[1,"col-12","col-lg-auto","order-first","order-lg-last"],["href","",3,"click",4,"ngIf"],[1,"col-12","col-lg-5","order-last","order-lg-last"],["data-cy","login","type","submit",1,"btn","btn-lg","btn-primary","btn-block","font125rem","robotoslab",3,"click"],[1,"col-12","d-block","d-md-none","text-center"],[1,"pt-1rem","mr-3"],["target","_blank","href","https://www.dealpos.com"],["src","https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png","alt","dealpos-logo",1,"img-fluid"],["target","_blank","href","https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete",1,"pt-1rem","font-italic"],[1,"mx-5","pb-5","mb-5","d-none","d-md-block"],[1,"col-auto","d-inline-flex"],[1,"col-auto"],[1,"text-danger"],[4,"ngIf"],[1,"passwordIcon","fas","fa-lg",3,"ngClass","click"],["href","",3,"click"]],template:function(e,n){if(1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t.TgZ(3,"h1",3),t._uU(4,"DealPOS x Marketplace"),t.qZA(),t._UZ(5,"img",4),t.qZA(),t.TgZ(6,"div",5),t.TgZ(7,"h1",6),t._uU(8,"DealPOS x Marketplace"),t.qZA(),t.TgZ(9,"div",7),t.TgZ(10,"div",8),t.TgZ(11,"div",9),t.TgZ(12,"h2",10),t._uU(13,"Sign in"),t.qZA(),t.qZA(),t.TgZ(14,"form",11),t.TgZ(15,"div",12),t.TgZ(16,"input",13,14),t.NdJ("ngModelChange",function(r){return n.login.Host=r}),t.qZA(),t.TgZ(19,"label",15),t._uU(20,"POS Domain (xyz.dealpos.com)"),t.qZA(),t.qZA(),t.YNc(21,b,3,2,"div",16),t.TgZ(22,"div",12),t.TgZ(23,"input",17,18),t.NdJ("ngModelChange",function(r){return n.login.Username=r}),t.qZA(),t.TgZ(25,"label",19),t._uU(26,"Username"),t.qZA(),t.qZA(),t.YNc(27,x,2,1,"div",16),t.TgZ(28,"div",20),t.TgZ(29,"input",21,22),t.NdJ("ngModelChange",function(r){return n.login.Password=r}),t.qZA(),t.TgZ(32,"label",23),t._uU(33,"Password"),t.qZA(),t.YNc(34,T,1,4,"i",24),t.qZA(),t.YNc(35,v,2,1,"div",16),t.TgZ(36,"div",25),t.TgZ(37,"div",26),t.YNc(38,M,2,0,"a",27),t.qZA(),t.TgZ(39,"div",28),t.TgZ(40,"button",29),t.NdJ("click",function(){return n.DoLogin()}),t._uU(41,"Log in"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(42,"div",30),t.TgZ(43,"p",31),t._uU(44,"Powered by : "),t.qZA(),t.TgZ(45,"a",32),t._UZ(46,"img",33),t.qZA(),t._UZ(47,"br"),t.TgZ(48,"a",34),t._uU(49,"Version 2.0.2"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(50,"footer",35),t.TgZ(51,"div",25),t.TgZ(52,"div",36),t.TgZ(53,"p",31),t._uU(54,"Powered by : "),t.qZA(),t.TgZ(55,"a",32),t._UZ(56,"img",33),t.qZA(),t.qZA(),t.TgZ(57,"div",37),t.TgZ(58,"a",34),t._uU(59,"Version 2.0.2"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e){const s=t.MAs(18),r=t.MAs(24),d=t.MAs(31);t.xp6(16),t.Q6J("ngModel",n.login.Host),t.xp6(5),t.Q6J("ngIf",s.invalid&&(s.dirty||s.touched)),t.xp6(2),t.Q6J("ngModel",n.login.Username),t.xp6(4),t.Q6J("ngIf",r.invalid&&(r.dirty||r.touched)),t.xp6(2),t.Q6J("type",n.passwordType)("ngModel",n.login.Password),t.xp6(5),t.Q6J("ngIf",""!=n.login.Password&&"edge"!=n.browser),t.xp6(1),t.Q6J("ngIf",d.invalid&&(d.dirty||d.touched)),t.xp6(3),t.Q6J("ngIf",s.valid)}},directives:[a._Y,a.JL,a.F,a.Fj,a.Q7,a.c5,a.JJ,a.On,g.O5,g.mk],styles:[".container[_ngcontent-%COMP%]{position:absolute;max-width:100%}.card[_ngcontent-%COMP%]{margin-bottom:30px;padding-bottom:5px;padding-top:5px}.passwordIcon[_ngcontent-%COMP%]{top:1.5rem;right:.5rem;position:absolute;margin:0 auto!important;cursor:pointer}.big-display[_ngcontent-%COMP%]{font-size:2rem;font-weight:300;line-height:1.2}@media (min-width: 768px){.container[_ngcontent-%COMP%]{max-width:70%;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.big-display[_ngcontent-%COMP%]{font-size:3rem}}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{height:100%}body[_ngcontent-%COMP%]{display:flex;align-items:center;padding-top:40px;padding-bottom:40px}footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:90%;left:3rem}.pt-1rem[_ngcontent-%COMP%]{padding-top:1rem}.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{color:#666}.font-xl[_ngcontent-%COMP%]{font-size:x-large}.font125rem[_ngcontent-%COMP%]{font-size:1.25rem}.robotoslab[_ngcontent-%COMP%]{font-family:Roboto Slab}"]}),o})(),data:{title:"Dealpos x Marketplace"}},{path:"shopee",component:(()=>{class o{constructor(e,n,s){this.route=e,this.http=n,this.service=s}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(null==this.code?"/api/Channel/AddShopee":"/api/Channel/AddShopeeV2",e).subscribe(s=>{this.service.navigate(["/menu/channel"])})}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(l.gz),t.Y36(p.O),t.Y36(l.F0))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-success"]],decls:20,vars:1,consts:[[1,"container"],[1,"row","d-flex","justify-content-center"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","font-weight-bold"],[1,"card-body","text-center"],[1,"text-shopee","font-weight-bold"],["type","button",1,"btn","btn-success","mt-5",3,"click"],[1,"fas","fa-undo"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t.TgZ(3,"div",3),t.TgZ(4,"div",4),t._UZ(5,"i",5),t.TgZ(6,"div",6),t._uU(7,"Success !"),t.qZA(),t.qZA(),t.TgZ(8,"div",7),t.TgZ(9,"div"),t._uU(10,"You have successfully authorized "),t.qZA(),t.TgZ(11,"div"),t._uU(12,"DEALPOS to manage your Shopee"),t.qZA(),t.TgZ(13,"div"),t._uU(14," Your shopID is "),t.TgZ(15,"span",8),t._uU(16),t.qZA(),t.qZA(),t.TgZ(17,"button",9),t.NdJ("click",function(){return n.addShopee()}),t._UZ(18,"i",10),t._uU(19," Add to my Channel"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(16),t.Oqu(n.shopID))},styles:[".container[_ngcontent-%COMP%]{position:absolute;max-width:100%}.card[_ngcontent-%COMP%]{margin-bottom:30px;padding-bottom:5px;padding-top:5px}.passwordIcon[_ngcontent-%COMP%]{top:1.5rem;right:.5rem;position:absolute;margin:0 auto!important;cursor:pointer}.big-display[_ngcontent-%COMP%]{font-size:2rem;font-weight:300;line-height:1.2}@media (min-width: 768px){.container[_ngcontent-%COMP%]{max-width:70%;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.big-display[_ngcontent-%COMP%]{font-size:3rem}}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{height:100%}body[_ngcontent-%COMP%]{display:flex;align-items:center;padding-top:40px;padding-bottom:40px}footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:90%;left:3rem}.pt-1rem[_ngcontent-%COMP%]{padding-top:1rem}.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{color:#666}.font-xl[_ngcontent-%COMP%]{font-size:x-large}.font125rem[_ngcontent-%COMP%]{font-size:1.25rem}.robotoslab[_ngcontent-%COMP%]{font-family:Roboto Slab}.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}"]}),o})(),data:{title:"Success"}},{path:"tiktok",component:(()=>{class o{constructor(e,n,s){this.route=e,this.http=n,this.service=s}ngOnInit(){this.route.queryParams.subscribe(e=>{this.code=e.code,this.state=e.state})}addChannelTiktok(){this.http.post("/api/Channel/AddTiktok",{Code:this.code}).subscribe(n=>{this.service.navigate(["/menu/channel"])})}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(l.gz),t.Y36(p.O),t.Y36(l.F0))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-tiktok"]],decls:24,vars:2,consts:[[1,"container"],[1,"row","d-flex","justify-content-center"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","font-weight-bold"],[1,"card-body","text-center"],[1,"text-shopee","font-weight-bold"],["type","button",1,"btn","btn-success","mt-5",3,"click"],[1,"fas","fa-undo"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t.TgZ(3,"div",3),t.TgZ(4,"div",4),t._UZ(5,"i",5),t.TgZ(6,"div",6),t._uU(7,"Success !"),t.qZA(),t.qZA(),t.TgZ(8,"div",7),t.TgZ(9,"div"),t._uU(10,"You have successfully authorized "),t.qZA(),t.TgZ(11,"div"),t._uU(12,"DEALPOS to manage your Tiktok"),t.qZA(),t.TgZ(13,"div"),t._uU(14," Your Code is "),t.TgZ(15,"span",8),t._uU(16),t.qZA(),t.qZA(),t.TgZ(17,"div"),t._uU(18," Your State is "),t.TgZ(19,"span",8),t._uU(20),t.qZA(),t.qZA(),t.TgZ(21,"button",9),t.NdJ("click",function(){return n.addChannelTiktok()}),t._UZ(22,"i",10),t._uU(23," Add to my Channel"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(16),t.Oqu(n.code),t.xp6(4),t.Oqu(n.state))},styles:[".container[_ngcontent-%COMP%]{position:absolute;max-width:100%}.card[_ngcontent-%COMP%]{margin-bottom:30px;padding-bottom:5px;padding-top:5px}.passwordIcon[_ngcontent-%COMP%]{top:1.5rem;right:.5rem;position:absolute;margin:0 auto!important;cursor:pointer}.big-display[_ngcontent-%COMP%]{font-size:2rem;font-weight:300;line-height:1.2}@media (min-width: 768px){.container[_ngcontent-%COMP%]{max-width:70%;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.big-display[_ngcontent-%COMP%]{font-size:3rem}}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{height:100%}body[_ngcontent-%COMP%]{display:flex;align-items:center;padding-top:40px;padding-bottom:40px}footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:90%;left:3rem}.pt-1rem[_ngcontent-%COMP%]{padding-top:1rem}.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{color:#666}.font-xl[_ngcontent-%COMP%]{font-size:x-large}.font125rem[_ngcontent-%COMP%]{font-size:1.25rem}.robotoslab[_ngcontent-%COMP%]{font-family:Roboto Slab}.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}"]}),o})(),data:{title:"Success"}}];let P=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[l.Bz.forChild(y)],l.Bz]}),o})(),O=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({providers:[],imports:[[g.ez,a.u5,P]]}),o})()}}]);
1
+ "use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[78],{6078:(k,m,c)=>{c.r(m),c.d(m,{LoginModule:()=>O});var g=c(9808),a=c(3075),l=c(2302),t=c(5e3),p=c(632),u=c(4810);const f=["domainAutoFocus"],h=["passAutoFocus"];function _(o,i){1&o&&(t.TgZ(0,"p"),t._uU(1," Domain is required "),t.qZA())}function Z(o,i){1&o&&(t.TgZ(0,"p"),t._uU(1," Please enter a valid dealpos domain "),t.qZA())}function b(o,i){if(1&o&&(t.TgZ(0,"div",38),t.YNc(1,_,2,0,"p",39),t.YNc(2,Z,2,0,"p",39),t.qZA()),2&o){t.oxw();const e=t.MAs(18);t.xp6(1),t.Q6J("ngIf",e.errors.required),t.xp6(1),t.Q6J("ngIf",e.errors.pattern)}}function C(o,i){1&o&&(t.TgZ(0,"p"),t._uU(1," Username is required "),t.qZA())}function x(o,i){if(1&o&&(t.TgZ(0,"div",38),t.YNc(1,C,2,0,"p",39),t.qZA()),2&o){t.oxw();const e=t.MAs(24);t.xp6(1),t.Q6J("ngIf",e.errors.required)}}const w=function(o,i){return{"fa-eye":o,"fa-eye-slash":i}};function T(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"i",40),t.NdJ("click",function(){return t.CHM(e),t.oxw().hideShowPassword()}),t.qZA()}if(2&o){const e=t.oxw();t.Q6J("ngClass",t.WLB(1,w,"eye-off"==e.passwordIcon,"eye"==e.passwordIcon))}}function A(o,i){1&o&&(t.TgZ(0,"p"),t._uU(1," Password is required "),t.qZA())}function v(o,i){if(1&o&&(t.TgZ(0,"div",38),t.YNc(1,A,2,0,"p",39),t.qZA()),2&o){t.oxw();const e=t.MAs(31);t.xp6(1),t.Q6J("ngIf",e.errors.required)}}function M(o,i){if(1&o){const e=t.EpF();t.TgZ(0,"a",41),t.NdJ("click",function(){return t.CHM(e),t.oxw().redirectForgetPass()}),t._uU(1,"Forgot Password?"),t.qZA()}}const y=[{path:"",component:(()=>{class o{constructor(e,n,s,r){this.http=e,this._router=n,this.elementRef=s,this.checkBrowser=r,this.login={Host:"",Username:"",Password:""},this.passwordType="password",this.passwordIcon="eye-off",this.getCookies();var d=JSON.parse(window.localStorage.getItem("user"));let q=new Date;null!=d&&new Date(d.expiredAt)>q&&this._router.navigate(["menu"])}ngOnInit(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="#dfeffc",this.browser=this.checkBrowser.getBrowserName()}ngOnDestroy(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="white"}getCookies(){let e=localStorage.getItem("Authorization");if(null!=e){let n=JSON.parse(e);this.login.Host=n.Host,this.login.Username=n.Username}}setAutoFocusDomain(){this.domainElementRef.nativeElement.focus()}setAutoFocusPass(){this.passElementRef.nativeElement.focus()}DoLogin(){this.http.post("/api/token/Login",this.login).subscribe(e=>{null!=e.access_token&&(window.localStorage.removeItem("user"),window.localStorage.setItem("user",JSON.stringify(e)),window.localStorage.removeItem("Intercom"),window.localStorage.setItem("Intercom",JSON.stringify(e.intercom)),window.localStorage.removeItem("channel"),window.localStorage.setItem("channel",JSON.stringify(e.channel)),window.localStorage.removeItem("Authorization"),window.localStorage.setItem("Authorization",JSON.stringify({Host:this.login.Host,Username:this.login.Username})),this._router.navigate(e.channel.length<1?["menu/channel"]:["menu"]))})}redirectForgetPass(){window.open(this.makeForgotPassLink(),"_blank")}makeForgotPassLink(){var e=this.login.Host;return"/"==e[e.length-1]&&(e=e.slice(0,-1)),e.includes("https://")||(e="https://"+e),e+"/ForgotPassword"}hideShowPassword(){this.passwordType="text"===this.passwordType?"password":"text",this.passwordIcon="eye-off"===this.passwordIcon?"eye":"eye-off"}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(p.O),t.Y36(l.F0),t.Y36(t.SBq),t.Y36(u.T))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-login"]],viewQuery:function(e,n){if(1&e&&(t.Gf(f,5),t.Gf(h,5)),2&e){let s;t.iGM(s=t.CRH())&&(n.domainElementRef=s.first),t.iGM(s=t.CRH())&&(n.passElementRef=s.first)}},decls:60,vars:9,consts:[[1,"container"],[1,"row","mt-5","mt-md-0","align-self-center"],[1,"col-12","col-md-7","text-center"],[1,"big-display","robotoslab","d-none","d-sm-block"],["src","https://res.cloudinary.com/pos/image/upload/w_650/v1602644673/Apps/Login/Marketplace.png","alt","integration-image",1,"img-fluid"],[1,"col-12","col-md-5","order-first","order-md-last"],[1,"big-display","text-center","my-5","py-5","robotoslab","d-block","d-sm-none"],[1,"card"],[1,"card-body"],[1,"card-title"],[1,"ml-2","font-weight-normal","font-xl","robotoslab"],[1,""],[1,"form-label-group"],["type","text","required","","name","Host","id","inputHost","placeholder","POS Domain (xyz.dealpos.com)","pattern","(https:\\/\\/)?\\w+.dealpos(.com|.net|.co.id)(\\/)?",1,"form-control","text-left",3,"ngModel","ngModelChange"],["domainAutoFocus","","domain","ngModel"],["for","inputHost",1,"text-left"],["class","text-danger",4,"ngIf"],["type","text","name","Username","id","inputUsername","placeholder","Username","required","",1,"form-control","text-left",3,"ngModel","ngModelChange"],["username","ngModel"],["for","inputUsername",1,"text-left"],[1,"form-label-group","mb-5","mb-sm-2"],["name","Password","id","inputPassword","placeholder","Password","required","",1,"form-control","text-left",3,"type","ngModel","ngModelChange"],["passAutoFocus","","password","ngModel"],["for","inputPassword",1,"text-left"],["class","passwordIcon fas fa-lg",3,"ngClass","click",4,"ngIf"],[1,"row","justify-content-between","align-items-center"],[1,"col-12","col-lg-auto","order-first","order-lg-last"],["href","",3,"click",4,"ngIf"],[1,"col-12","col-lg-5","order-last","order-lg-last"],["data-cy","login","type","submit",1,"btn","btn-lg","btn-primary","btn-block","font125rem","robotoslab",3,"click"],[1,"col-12","d-block","d-md-none","text-center"],[1,"pt-1rem","mr-3"],["target","_blank","href","https://www.dealpos.com"],["src","https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png","alt","dealpos-logo",1,"img-fluid"],["target","_blank","href","https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete",1,"pt-1rem","font-italic"],[1,"mx-5","pb-5","mb-5","d-none","d-md-block"],[1,"col-auto","d-inline-flex"],[1,"col-auto"],[1,"text-danger"],[4,"ngIf"],[1,"passwordIcon","fas","fa-lg",3,"ngClass","click"],["href","",3,"click"]],template:function(e,n){if(1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t.TgZ(3,"h1",3),t._uU(4,"DealPOS x Marketplace"),t.qZA(),t._UZ(5,"img",4),t.qZA(),t.TgZ(6,"div",5),t.TgZ(7,"h1",6),t._uU(8,"DealPOS x Marketplace"),t.qZA(),t.TgZ(9,"div",7),t.TgZ(10,"div",8),t.TgZ(11,"div",9),t.TgZ(12,"h2",10),t._uU(13,"Sign in"),t.qZA(),t.qZA(),t.TgZ(14,"form",11),t.TgZ(15,"div",12),t.TgZ(16,"input",13,14),t.NdJ("ngModelChange",function(r){return n.login.Host=r}),t.qZA(),t.TgZ(19,"label",15),t._uU(20,"POS Domain (xyz.dealpos.com)"),t.qZA(),t.qZA(),t.YNc(21,b,3,2,"div",16),t.TgZ(22,"div",12),t.TgZ(23,"input",17,18),t.NdJ("ngModelChange",function(r){return n.login.Username=r}),t.qZA(),t.TgZ(25,"label",19),t._uU(26,"Username"),t.qZA(),t.qZA(),t.YNc(27,x,2,1,"div",16),t.TgZ(28,"div",20),t.TgZ(29,"input",21,22),t.NdJ("ngModelChange",function(r){return n.login.Password=r}),t.qZA(),t.TgZ(32,"label",23),t._uU(33,"Password"),t.qZA(),t.YNc(34,T,1,4,"i",24),t.qZA(),t.YNc(35,v,2,1,"div",16),t.TgZ(36,"div",25),t.TgZ(37,"div",26),t.YNc(38,M,2,0,"a",27),t.qZA(),t.TgZ(39,"div",28),t.TgZ(40,"button",29),t.NdJ("click",function(){return n.DoLogin()}),t._uU(41,"Log in"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(42,"div",30),t.TgZ(43,"p",31),t._uU(44,"Powered by : "),t.qZA(),t.TgZ(45,"a",32),t._UZ(46,"img",33),t.qZA(),t._UZ(47,"br"),t.TgZ(48,"a",34),t._uU(49,"Version 2.0.3"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(50,"footer",35),t.TgZ(51,"div",25),t.TgZ(52,"div",36),t.TgZ(53,"p",31),t._uU(54,"Powered by : "),t.qZA(),t.TgZ(55,"a",32),t._UZ(56,"img",33),t.qZA(),t.qZA(),t.TgZ(57,"div",37),t.TgZ(58,"a",34),t._uU(59,"Version 2.0.3"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e){const s=t.MAs(18),r=t.MAs(24),d=t.MAs(31);t.xp6(16),t.Q6J("ngModel",n.login.Host),t.xp6(5),t.Q6J("ngIf",s.invalid&&(s.dirty||s.touched)),t.xp6(2),t.Q6J("ngModel",n.login.Username),t.xp6(4),t.Q6J("ngIf",r.invalid&&(r.dirty||r.touched)),t.xp6(2),t.Q6J("type",n.passwordType)("ngModel",n.login.Password),t.xp6(5),t.Q6J("ngIf",""!=n.login.Password&&"edge"!=n.browser),t.xp6(1),t.Q6J("ngIf",d.invalid&&(d.dirty||d.touched)),t.xp6(3),t.Q6J("ngIf",s.valid)}},directives:[a._Y,a.JL,a.F,a.Fj,a.Q7,a.c5,a.JJ,a.On,g.O5,g.mk],styles:[".container[_ngcontent-%COMP%]{position:absolute;max-width:100%}.card[_ngcontent-%COMP%]{margin-bottom:30px;padding-bottom:5px;padding-top:5px}.passwordIcon[_ngcontent-%COMP%]{top:1.5rem;right:.5rem;position:absolute;margin:0 auto!important;cursor:pointer}.big-display[_ngcontent-%COMP%]{font-size:2rem;font-weight:300;line-height:1.2}@media (min-width: 768px){.container[_ngcontent-%COMP%]{max-width:70%;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.big-display[_ngcontent-%COMP%]{font-size:3rem}}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{height:100%}body[_ngcontent-%COMP%]{display:flex;align-items:center;padding-top:40px;padding-bottom:40px}footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:90%;left:3rem}.pt-1rem[_ngcontent-%COMP%]{padding-top:1rem}.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{color:#666}.font-xl[_ngcontent-%COMP%]{font-size:x-large}.font125rem[_ngcontent-%COMP%]{font-size:1.25rem}.robotoslab[_ngcontent-%COMP%]{font-family:Roboto Slab}"]}),o})(),data:{title:"Dealpos x Marketplace"}},{path:"shopee",component:(()=>{class o{constructor(e,n,s){this.route=e,this.http=n,this.service=s}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(null==this.code?"/api/Channel/AddShopee":"/api/Channel/AddShopeeV2",e).subscribe(s=>{this.service.navigate(["/menu/channel"])})}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(l.gz),t.Y36(p.O),t.Y36(l.F0))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-success"]],decls:20,vars:1,consts:[[1,"container"],[1,"row","d-flex","justify-content-center"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","font-weight-bold"],[1,"card-body","text-center"],[1,"text-shopee","font-weight-bold"],["type","button",1,"btn","btn-success","mt-5",3,"click"],[1,"fas","fa-undo"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t.TgZ(3,"div",3),t.TgZ(4,"div",4),t._UZ(5,"i",5),t.TgZ(6,"div",6),t._uU(7,"Success !"),t.qZA(),t.qZA(),t.TgZ(8,"div",7),t.TgZ(9,"div"),t._uU(10,"You have successfully authorized "),t.qZA(),t.TgZ(11,"div"),t._uU(12,"DEALPOS to manage your Shopee"),t.qZA(),t.TgZ(13,"div"),t._uU(14," Your shopID is "),t.TgZ(15,"span",8),t._uU(16),t.qZA(),t.qZA(),t.TgZ(17,"button",9),t.NdJ("click",function(){return n.addShopee()}),t._UZ(18,"i",10),t._uU(19," Add to my Channel"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(16),t.Oqu(n.shopID))},styles:[".container[_ngcontent-%COMP%]{position:absolute;max-width:100%}.card[_ngcontent-%COMP%]{margin-bottom:30px;padding-bottom:5px;padding-top:5px}.passwordIcon[_ngcontent-%COMP%]{top:1.5rem;right:.5rem;position:absolute;margin:0 auto!important;cursor:pointer}.big-display[_ngcontent-%COMP%]{font-size:2rem;font-weight:300;line-height:1.2}@media (min-width: 768px){.container[_ngcontent-%COMP%]{max-width:70%;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.big-display[_ngcontent-%COMP%]{font-size:3rem}}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{height:100%}body[_ngcontent-%COMP%]{display:flex;align-items:center;padding-top:40px;padding-bottom:40px}footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:90%;left:3rem}.pt-1rem[_ngcontent-%COMP%]{padding-top:1rem}.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{color:#666}.font-xl[_ngcontent-%COMP%]{font-size:x-large}.font125rem[_ngcontent-%COMP%]{font-size:1.25rem}.robotoslab[_ngcontent-%COMP%]{font-family:Roboto Slab}.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}"]}),o})(),data:{title:"Success"}},{path:"tiktok",component:(()=>{class o{constructor(e,n,s){this.route=e,this.http=n,this.service=s}ngOnInit(){this.route.queryParams.subscribe(e=>{this.code=e.code,this.state=e.state})}addChannelTiktok(){this.http.post("/api/Channel/AddTiktok",{Code:this.code}).subscribe(n=>{this.service.navigate(["/menu/channel"])})}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(l.gz),t.Y36(p.O),t.Y36(l.F0))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-tiktok"]],decls:24,vars:2,consts:[[1,"container"],[1,"row","d-flex","justify-content-center"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","font-weight-bold"],[1,"card-body","text-center"],[1,"text-shopee","font-weight-bold"],["type","button",1,"btn","btn-success","mt-5",3,"click"],[1,"fas","fa-undo"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t.TgZ(3,"div",3),t.TgZ(4,"div",4),t._UZ(5,"i",5),t.TgZ(6,"div",6),t._uU(7,"Success !"),t.qZA(),t.qZA(),t.TgZ(8,"div",7),t.TgZ(9,"div"),t._uU(10,"You have successfully authorized "),t.qZA(),t.TgZ(11,"div"),t._uU(12,"DEALPOS to manage your Tiktok"),t.qZA(),t.TgZ(13,"div"),t._uU(14," Your Code is "),t.TgZ(15,"span",8),t._uU(16),t.qZA(),t.qZA(),t.TgZ(17,"div"),t._uU(18," Your State is "),t.TgZ(19,"span",8),t._uU(20),t.qZA(),t.qZA(),t.TgZ(21,"button",9),t.NdJ("click",function(){return n.addChannelTiktok()}),t._UZ(22,"i",10),t._uU(23," Add to my Channel"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(16),t.Oqu(n.code),t.xp6(4),t.Oqu(n.state))},styles:[".container[_ngcontent-%COMP%]{position:absolute;max-width:100%}.card[_ngcontent-%COMP%]{margin-bottom:30px;padding-bottom:5px;padding-top:5px}.passwordIcon[_ngcontent-%COMP%]{top:1.5rem;right:.5rem;position:absolute;margin:0 auto!important;cursor:pointer}.big-display[_ngcontent-%COMP%]{font-size:2rem;font-weight:300;line-height:1.2}@media (min-width: 768px){.container[_ngcontent-%COMP%]{max-width:70%;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.big-display[_ngcontent-%COMP%]{font-size:3rem}}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{height:100%}body[_ngcontent-%COMP%]{display:flex;align-items:center;padding-top:40px;padding-bottom:40px}footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:90%;left:3rem}.pt-1rem[_ngcontent-%COMP%]{padding-top:1rem}.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{color:#666}.font-xl[_ngcontent-%COMP%]{font-size:x-large}.font125rem[_ngcontent-%COMP%]{font-size:1.25rem}.robotoslab[_ngcontent-%COMP%]{font-family:Roboto Slab}.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}"]}),o})(),data:{title:"Success"}}];let P=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[l.Bz.forChild(y)],l.Bz]}),o})(),O=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({providers:[],imports:[[g.ez,a.u5,P]]}),o})()}}]);
@@ -14,9 +14,9 @@
14
14
  <script>
15
15
  (function () { var w = window; var ic = w.Intercom; if (typeof ic === "function") { ic('reattach_activator'); ic('update', w.intercomSettings); } else { var d = document; var i = function () { i.c(arguments); }; i.q = []; i.c = function (args) { i.q.push(args); }; w.Intercom = i; var l = function () { var s = d.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = 'https://widget.intercom.io/widget/xv1oomgl'; var x = d.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); }; if (w.attachEvent) { w.attachEvent('onload', l); } else { w.addEventListener('load', l, false); } } })();
16
16
  </script>
17
- <style>@charset "UTF-8";:root{--blue:#337ab7;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#c9302c;--orange:#f6a828;--yellow:#ffc107;--green:#89b03e;--teal:#20c997;--cyan:#17a2b8;--white:#ffffff;--gray:#6c757d;--gray-dark:#343a40;--primary:#337ab7;--secondary:#cccccc;--success:#89b03e;--info:#17a2b8;--warning:#f6a828;--danger:#c9302c;--light:#dddddd;--dark:#4d4d4d;--light-gray:rgba(203, 203, 210, .15);--light-blue:#dfeffc;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-family-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{margin:0;font-family:Roboto,sans-serif;font-size:.75rem;font-weight:400;line-height:1.5;color:#333;text-align:left;background-color:#fff}@media (max-width: 991px){body{position:relative}}html,body{height:100%}@media print{html,body{height:auto}body{color:#000!important}}</style><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/marketplacepos@2.0.2/Marketplace/styles.b253e28bc8380ea0.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/marketplacepos@2.0.2/Marketplace/styles.b253e28bc8380ea0.css"></noscript></head>
17
+ <style>@charset "UTF-8";:root{--blue:#337ab7;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#c9302c;--orange:#f6a828;--yellow:#ffc107;--green:#89b03e;--teal:#20c997;--cyan:#17a2b8;--white:#ffffff;--gray:#6c757d;--gray-dark:#343a40;--primary:#337ab7;--secondary:#cccccc;--success:#89b03e;--info:#17a2b8;--warning:#f6a828;--danger:#c9302c;--light:#dddddd;--dark:#4d4d4d;--light-gray:rgba(203, 203, 210, .15);--light-blue:#dfeffc;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-family-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{margin:0;font-family:Roboto,sans-serif;font-size:.75rem;font-weight:400;line-height:1.5;color:#333;text-align:left;background-color:#fff}@media (max-width: 991px){body{position:relative}}html,body{height:100%}@media print{html,body{height:auto}body{color:#000!important}}</style><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/marketplacepos@2.0.3/Marketplace/styles.b253e28bc8380ea0.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/marketplacepos@2.0.3/Marketplace/styles.b253e28bc8380ea0.css"></noscript></head>
18
18
  <body>
19
19
  <app-root></app-root>
20
- <script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.0.2/Marketplace/runtime.c6d86e13cdf3db30.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.0.2/Marketplace/polyfills.2329f3f8d324fc9f.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.0.2/Marketplace/scripts.16aad1e03d4e6f23.js" defer></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.0.2/Marketplace/main.b0cb3003254d28e1.js" type="module"></script>
20
+ <script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.0.3/Marketplace/runtime.73f7c8805aad1c00.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.0.3/Marketplace/polyfills.2329f3f8d324fc9f.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.0.3/Marketplace/scripts.16aad1e03d4e6f23.js" defer></script><script src="https://cdn.jsdelivr.net/npm/marketplacepos@2.0.3/Marketplace/main.b0cb3003254d28e1.js" type="module"></script>
21
21
 
22
22
  </body></html>
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e,v={},_={};function r(e){var n=_[e];if(void 0!==n)return n.exports;var t=_[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,f,i)=>{if(!t){var a=1/0;for(o=0;o<e.length;o++){for(var[t,f,i]=e[o],c=!0,d=0;d<t.length;d++)(!1&i||a>=i)&&Object.keys(r.O).every(b=>r.O[b](t[d]))?t.splice(d--,1):(c=!1,i<a&&(a=i));if(c){e.splice(o--,1);var s=f();void 0!==s&&(n=s)}}return n}i=i||0;for(var o=e.length;o>0&&e[o-1][2]>i;o--)e[o]=e[o-1];e[o]=[t,f,i]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},(()=>{var n,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,f){if(1&f&&(t=this(t)),8&f||"object"==typeof t&&t&&(4&f&&t.__esModule||16&f&&"function"==typeof t.then))return t;var i=Object.create(null);r.r(i);var o={};n=n||[null,e({}),e([]),e(e)];for(var a=2&f&&t;"object"==typeof a&&!~n.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(c=>o[c]=()=>t[c]);return o.default=()=>t,r.d(i,o),i}})(),r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{78:"6152fc9b0f8d65d5",237:"6a05a068a3146752",365:"1282604dd7869f3c"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="pos-marketplace:";r.l=(t,f,i,o)=>{if(e[t])e[t].push(f);else{var a,c;if(void 0!==i)for(var d=document.getElementsByTagName("script"),s=0;s<d.length;s++){var l=d[s];if(l.getAttribute("src")==t||l.getAttribute("data-webpack")==n+i){a=l;break}}a||(c=!0,(a=document.createElement("script")).type="module",a.charset="utf-8",a.timeout=120,r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",n+i),a.src=r.tu(t)),e[t]=[f];var p=(g,b)=>{a.onerror=a.onload=null,clearTimeout(u);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(m=>m(b)),g)return g(b)},u=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="https://cdn.jsdelivr.net/npm/marketplacepos@2.0.3/Marketplace/",(()=>{var e={666:0};r.f.j=(f,i)=>{var o=r.o(e,f)?e[f]:void 0;if(0!==o)if(o)i.push(o[2]);else if(666!=f){var a=new Promise((l,p)=>o=e[f]=[l,p]);i.push(o[2]=a);var c=r.p+r.u(f),d=new Error;r.l(c,l=>{if(r.o(e,f)&&(0!==(o=e[f])&&(e[f]=void 0),o)){var p=l&&("load"===l.type?"missing":l.type),u=l&&l.target&&l.target.src;d.message="Loading chunk "+f+" failed.\n("+p+": "+u+")",d.name="ChunkLoadError",d.type=p,d.request=u,o[1](d)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,i)=>{var d,s,[o,a,c]=i,l=0;if(o.some(u=>0!==e[u])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(c)var p=c(r)}for(f&&f(i);l<o.length;l++)r.o(e,s=o[l])&&e[s]&&e[s][0](),e[s]=0;return r.O(p)},t=self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))})()})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marketplacepos",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1 +0,0 @@
1
- (()=>{"use strict";var e,v={},_={};function r(e){var n=_[e];if(void 0!==n)return n.exports;var t=_[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,o,i)=>{if(!t){var a=1/0;for(f=0;f<e.length;f++){for(var[t,o,i]=e[f],d=!0,l=0;l<t.length;l++)(!1&i||a>=i)&&Object.keys(r.O).every(b=>r.O[b](t[l]))?t.splice(l--,1):(d=!1,i<a&&(a=i));if(d){e.splice(f--,1);var c=o();void 0!==c&&(n=c)}}return n}i=i||0;for(var f=e.length;f>0&&e[f-1][2]>i;f--)e[f]=e[f-1];e[f]=[t,o,i]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},(()=>{var n,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,o){if(1&o&&(t=this(t)),8&o||"object"==typeof t&&t&&(4&o&&t.__esModule||16&o&&"function"==typeof t.then))return t;var i=Object.create(null);r.r(i);var f={};n=n||[null,e({}),e([]),e(e)];for(var a=2&o&&t;"object"==typeof a&&!~n.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(d=>f[d]=()=>t[d]);return f.default=()=>t,r.d(i,f),i}})(),r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{78:"4fc7b19280b9ad7a",237:"a96676e609ecc361",365:"1282604dd7869f3c"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="pos-marketplace:";r.l=(t,o,i,f)=>{if(e[t])e[t].push(o);else{var a,d;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var s=l[c];if(s.getAttribute("src")==t||s.getAttribute("data-webpack")==n+i){a=s;break}}a||(d=!0,(a=document.createElement("script")).type="module",a.charset="utf-8",a.timeout=120,r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",n+i),a.src=r.tu(t)),e[t]=[o];var p=(g,b)=>{a.onerror=a.onload=null,clearTimeout(u);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(m=>m(b)),g)return g(b)},u=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),d&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="https://cdn.jsdelivr.net/npm/marketplacepos@2.0.2/Marketplace/",(()=>{var e={666:0};r.f.j=(o,i)=>{var f=r.o(e,o)?e[o]:void 0;if(0!==f)if(f)i.push(f[2]);else if(666!=o){var a=new Promise((s,p)=>f=e[o]=[s,p]);i.push(f[2]=a);var d=r.p+r.u(o),l=new Error;r.l(d,s=>{if(r.o(e,o)&&(0!==(f=e[o])&&(e[o]=void 0),f)){var p=s&&("load"===s.type?"missing":s.type),u=s&&s.target&&s.target.src;l.message="Loading chunk "+o+" failed.\n("+p+": "+u+")",l.name="ChunkLoadError",l.type=p,l.request=u,f[1](l)}},"chunk-"+o,o)}else e[o]=0},r.O.j=o=>0===e[o];var n=(o,i)=>{var l,c,[f,a,d]=i,s=0;if(f.some(u=>0!==e[u])){for(l in a)r.o(a,l)&&(r.m[l]=a[l]);if(d)var p=d(r)}for(o&&o(i);s<f.length;s++)r.o(e,c=f[s])&&e[c]&&e[c][0](),e[c]=0;return r.O(p)},t=self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))})()})();