marketplacepos 2.0.6 → 2.0.9
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/237.0c6da44b6ad0a7de.js +1 -0
- package/Marketplace/78.cea23f3a41b95fb2.js +1 -0
- package/Marketplace/index.html +2 -2
- package/Marketplace/main.c3126b411be611d8.js +1 -0
- package/Marketplace/{runtime.5a0a7ebda9ae6264.js → runtime.8131eb7908b6aac0.js} +1 -1
- package/package.json +1 -1
- package/Marketplace/237.557021d8f685e1d7.js +0 -1
- package/Marketplace/78.2d04122f0fafc592.js +0 -1
- package/Marketplace/main.b0cb3003254d28e1.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
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.6"),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.6"),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})()}}]);
|