dealposbarcode 1.7.1 → 1.7.2

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
- import{a as te,b as ne,c as ie}from"./chunk-PQKI2EBV.js";import{A as W,D as J,E as K,F as Q,G as X,I as Y,aa as Z,fa as ee,q as F,w as B,x as S,y as H,z as $}from"./chunk-7IEKKSHA.js";import{$b as M,Ac as I,Da as y,Ec as z,F as N,Fc as j,Ha as A,L as V,Lb as v,Rb as g,Sa as x,Ta as h,Tb as c,Zb as b,ac as P,bc as T,cc as t,dc as n,ec as m,ic as C,jd as q,lc as _,ld as G,mc as u,od as R,ra as O,sa as E,t as L,tb as k,vc as s,wc as D,xb as a,xc as w,zc as U}from"./chunk-PLQP4Q76.js";var oe=i=>({"is-invalid":i});function ae(i,l){if(i&1&&(t(0,"swiper-slide")(1,"div",17),m(2,"img",18),t(3,"div",19)(4,"h4",20),s(5),n(),t(6,"div",21)(7,"p",22),s(8),n()()()()()),i&2){let o=l.$implicit;a(2),c("src",o.properties.imgSrc,k),a(3),w(" ",o.properties.title," "),a(3),w(" ",o.properties.description," ")}}function le(i,l){if(i&1&&(t(0,"ng-option",33)(1,"span",35),s(2),n()()),i&2){let o=l.$implicit;c("value",o),a(2),D(o)}}function se(i,l){if(i&1){let o=C();t(0,"div",8)(1,"div",19)(2,"h3",23),s(3," DealPOS Barcode Apps "),n(),t(4,"p",24),s(5," Print Barcode label from your product catalog "),n()(),t(6,"div",25)(7,"div",26)(8,"div",27)(9,"span",28),m(10,"i",29),n(),m(11,"input",30),t(12,"span",31)(13,"ng-select",32),P(14,le,3,2,"ng-option",33,M),n()()()()(),t(16,"button",34),_("click",function(){x(o);let r=u();return h(r.onLoginState())}),s(17," Next "),n()()}if(i&2){let o=u();a(13),c("clearable",!1),a(),T(o.domains())}}function de(i,l){i&1&&(t(0,"span"),s(1,"Username is required."),n())}function pe(i,l){if(i&1&&(t(0,"div",47),g(1,de,2,0,"span",63),m(2,"span"),n()),i&2){let o,e=u(2);a(),c("ngIf",(o=e.form.get("username"))==null||o.errors==null?null:o.errors.required)}}function me(i,l){if(i&1){let o=C();t(0,"i",66),_("click",function(){x(o);let r=u(3);return h(r.passwordInputType.set("text"))}),n()}}function ce(i,l){if(i&1){let o=C();t(0,"i",67),_("click",function(){x(o);let r=u(3);return h(r.passwordInputType.set("password"))}),n()}}function ue(i,l){if(i&1&&g(0,me,1,0,"i",64)(1,ce,1,0,"i",65),i&2){let o=u(2);b(o.passwordInputType()==="password"?0:1)}}function fe(i,l){i&1&&(t(0,"span"),s(1,"Password is required."),n())}function ge(i,l){if(i&1&&(t(0,"div",47),g(1,fe,2,0,"span",63),m(2,"span"),n()),i&2){let o,e=u(2);a(),c("ngIf",(o=e.form.get("password"))==null||o.errors==null?null:o.errors.required)}}function _e(i,l){if(i&1){let o=C();t(0,"div",9)(1,"div",36)(2,"h3",37),s(3,"Sign in"),n(),t(4,"p",38),s(5,"to"),n(),t(6,"div",39)(7,"p",40),s(8),n(),t(9,"a",41)(10,"i",42),_("click",function(){x(o);let r=u();return h(r.onLoginState())}),n()()()(),t(11,"div",19)(12,"div",43)(13,"span",44),m(14,"i",45),n(),m(15,"input",46),n(),g(16,pe,3,1,"div",47),n(),t(17,"div",19)(18,"div",48)(19,"span",44),m(20,"i",49),n(),t(21,"div",50),g(22,ue,2,1),m(23,"input",51),n()(),g(24,ge,3,1,"div",47),t(25,"div",52)(26,"a",53),s(27,"Forgot Password?"),n()()(),t(28,"button",54),s(29," Login "),n(),t(30,"div",55)(31,"div",56),m(32,"hr",57),t(33,"p",58),s(34,"or"),n(),m(35,"hr",57),n(),t(36,"button",59),_("click",function(){x(o);let r=u();return h(r.onSigninWithGoogle())}),t(37,"div",60),m(38,"i",61),t(39,"span",62),s(40,"Sign In with Google"),n()()()()()}if(i&2){let o,e,r,d,f,p=u();a(8),w(" (",p.hostFormField," ) "),a(7),c("ngClass",I(8,oe,((o=p.form.get("username"))==null?null:o.invalid)&&!((o=p.form.get("username"))!=null&&o.untouched))),a(),b((e=p.form.get("username"))!=null&&e.invalid&&!((e=p.form.get("username"))!=null&&e.untouched)?16:-1),a(6),b((r=p.form.get("password"))!=null&&r.value.length?22:-1),a(),c("ngClass",I(10,oe,((d=p.form.get("password"))==null?null:d.invalid)&&!((d=p.form.get("password"))!=null&&d.untouched)))("type",p.passwordInputType()),a(),b((f=p.form.get("password"))!=null&&f.invalid&&!((f=p.form.get("password"))!=null&&f.untouched)?24:-1),a(2),c("href","https://"+p.host+"/ForgotPassword",k)}}var re=(()=>{let l=class l{constructor(){this.form=new W({}),this.loginState=v("FORM_DOMAIN"),this.news$=N([]),this.domains=v([".dealpos.co.id",".dealpos.net",".dealpos.com",".dealpos.app"]),this.passwordInputType=v("password"),this.onsubmit=onsubmit,this._destroy=new L,this.authService=y(ee),this.fb=y(X),this.httpService=y(Z),this.version=v("")}get hostFormField(){return this.form?.get("subDomain")?.value+this.form?.get("domain")?.value}get domainStorage(){let e=this.authService.getDomain(),r=e.indexOf(".");return e.substring(r,e.length)}get host(){let{subDomain:e,domain:r}=this.form.value;return e+r}ngOnInit(){this.initForm(),this.news$=this.httpService.get("v2/content?fetch=children:barcode&sort=sortOrder:asc",void 0,"https://changelog.dealpos.app/umbraco/delivery/api/").pipe(V(e=>e.items))}initForm(){let e=this.authService.getDomain(),[r,d]=e.split("."),f=localStorage.getItem("Username")??"";this.form=this.fb.group({subDomain:[r??"",S.required],domain:[e.substring(e.indexOf(".dealpos"))||this.domains()[0],S.required],username:[f,S.required],password:["",S.required]})}onLogin(){let{subDomain:e,domain:r,username:d,password:f}=this.form.value,p={Host:e+r,Username:d,Password:f};this.authService.login(p).pipe(E(this._destroy),O(()=>this.authService.redirectUrl())).subscribe()}onSigninWithGoogle(){let{subDomain:e,domain:r,username:d,password:f}=this.form.value;this.authService.signInWithPopup(e+r).pipe(E(this._destroy),O(()=>this.authService.redirectUrl())).subscribe()}onLoginState(){let e=this.loginState();e==="FORM_DOMAIN"?this.loginState.set("FORM_AUTH"):e==="FORM_AUTH"&&this.loginState.set("FORM_DOMAIN")}ngOnDestroy(){this._destroy.next(),this._destroy.complete()}isAppVersionUpdated(){let e=localStorage.getItem("appVersion"),r=F.version;return!!(e&&r&&e.replaceAll(".","")!==r.replaceAll(".",""))}ngAfterViewInit(){this.version.set(F.version)}};l.\u0275fac=function(r){return new(r||l)},l.\u0275cmp=A({type:l,selectors:[["app-login"]],standalone:!0,features:[U],decls:23,vars:6,consts:[[1,"container-fluid","border","my-auto","d-flex","flex-column"],[1,"flex-grow-1","d-flex","align-items-center","justify-content-center"],[1,"row",2,"background","#ffffff","max-width","57rem","border-radius","4px"],[1,"p-0","col-12","col-md-6","border-end","d-flex","flex-column","align-items-center","py-4"],[1,"font-robotoslab","fw-normal","fs-6","text-dark"],["pagination","true","pagination-clickable","true","slides-per-view","1"],[1,"p-0","col-12","col-md-6","py-4"],[1,"h-100","d-flex","flex-column","gap-4","my-2","mx-5",3,"ngSubmit","formGroup"],[1,"d-flex","flex-column","justify-content-center","gap-3","h-100",2,"margin-top","-55px"],[1,"d-flex","flex-column","gap-3"],[1,"row","d-md-flex","py-3","px-4"],[1,"col-12","col-md-6","d-flex","align-items-center","gap-2"],[1,"m-0","h-100","d-flex","align-items-center","fs-2","fw-normal"],["alt","dealpos-logo","src","https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png",1,"img-fluid"],[1,"cursor-pointer","col-12","col-md-6","d-flex","justify-content-center","gap-2","justify-content-md-end","align-items-center"],["target","_blank",1,"d-flex","gap-1",3,"href"],[1,"fst-italic","m-0","fs-2","fw-normal","text-dark","cursor-pointer"],[1,"d-flex","flex-column","gap-4"],["alt","",1,"img-fluid",3,"src"],[1,"d-flex","flex-column"],[1,"text-dark",2,"font-size","16px","font-weight","700"],[1,"d-flex","flex-wrap",2,"max-width","22rem"],[1,"fw-normal","text-dark"],[1,"m-0","font-robotoslab","text-dark","fs-6"],[1,"fst-italic","fw-normal","text-secondary-emphasis",2,"font-size","11px"],[1,"row",2,"height","50px"],[1,"col-12","h-100","mb-2","mb-md-0"],[1,"input-group","mb-3","border","rounded"],[1,"input-group-text","border-0","text-dark"],[1,"fas","fa-cloud"],["id","subDomain","formControlName","subDomain","type","text","placeholder","Store Address","aria-label","Username","aria-describedby","basic-addon1",1,"form-control","form-control-lg","text-dark",2,"border-radius","0","font-size","14px"],[1,"input-group-text","p-0",2,"z-index","99"],["formControlName","domain",1,"custom",2,"font-size","14px",3,"clearable"],[3,"value"],["type","button",1,"btn","btn-primary","btn-lg","w-100","font-robotoslab","fs-4",3,"click"],[2,"font-size","14px"],[1,"d-flex","align-baseline","gap-2"],[1,"m-0"],[1,"m-0","d-flex","align-items-end"],[1,"d-flex"],[1,"m-0","d-flex","align-items-end","fw-bold","me-2","font-robotoslab","d-inline-block","text-primary"],["href","#",1,"pe-auto","d-flex","align-items-center"],[1,"fas","fa-edit","d-flex","align-items-center","link-primary","fs-3",3,"click"],[1,"input-group","border","rounded",2,"height","50px"],[1,"input-group-text","text-dark"],[1,"fas","fa-user"],["formControlName","username","type","text","placeholder","Username","aria-label","Username","aria-describedby","basic-addon1",1,"form-control","form-control-lg","text-dark",3,"ngClass"],[1,"invalid-feedback"],[1,"input-group","d-flex","border","rounded",2,"height","50px"],[1,"fas","fa-key"],[1,"position-relative","flex-grow-1","h-100"],["formControlName","password","placeholder","Password","aria-label","Username","aria-describedby","basic-addon1",1,"form-control","form-control-lg","h-100","text-dark",3,"ngClass","type"],[1,"w-100","d-flex","justify-content-end"],[1,"link-underline-light","fs-2","fw-normal",3,"href"],["type","submit",1,"btn","btn-primary","btn-lg","fs-4","font-robotoslab"],[1,"d-flex","flex-column","align-items-center","gap-2"],[1,"d-flex","justify-content-center","gap-2"],[2,"width","150px","border","1px solid rgba(0, 0, 0, 0.85)"],[1,"m-0",2,"line-height","30px"],["type","button",1,"btn","btn-outline-primary","btn-lg","w-100",3,"click"],[1,"h-100","d-flex","align-items-center","justify-content-center","gap-2"],[1,"fab","fa-google","fs-3"],[1,"fw-medium","fs-3"],[4,"ngIf"],[1,"fas","fa-eye","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)"],[1,"fas","fa-eye-slash","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)"],[1,"fas","fa-eye","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)",3,"click"],[1,"fas","fa-eye-slash","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)",3,"click"]],template:function(r,d){r&1&&(t(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h4",4),s(5,"New Features"),n(),t(6,"swiper-container",5),P(7,ae,9,3,"swiper-slide",null,M),z(9,"async"),n()(),t(10,"div",6)(11,"form",7),_("ngSubmit",function(){return d.onLogin()}),g(12,se,18,1,"div",8)(13,_e,41,12,"div",9),n()()()(),t(14,"div",10)(15,"div",11)(16,"p",12),s(17," Powered by: "),n(),m(18,"img",13),n(),t(19,"div",14)(20,"a",15)(21,"span",16),s(22),n()()()()()),r&2&&(a(7),T(j(9,4,d.news$)),a(4),c("formGroup",d.form),a(),b(d.loginState()==="FORM_DOMAIN"?12:13),a(8),c("href","https://changelog.dealpos.com/?categories=cat_IOl3P9ko0ayhv&view=complete&v"+d.version().replaceAll(".",""),k),a(2),w("Version ",d.version(),""))},dependencies:[G,q,Y,J,B,H,$,K,Q,ie,ne,te,R],styles:[".auth-wrapper[_ngcontent-%COMP%]{min-height:100vh;position:relative}.container-fluid[_ngcontent-%COMP%]{height:100vh}.grid__container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,50%);width:50vw;height:50vh;background:#fff;box-shadow:0 10px 15px -3px #0000001a;border-radius:15px;overflow:hidden}.container[_ngcontent-%COMP%]{height:400px}swiper-container[_ngcontent-%COMP%]{height:100%;width:100%}swiper-slide[_ngcontent-%COMP%]{text-align:center;font-size:12px;background:#fff;display:flex;justify-content:center;align-items:center}swiper-slide[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:250px;height:150px;object-fit:cover;margin:0 auto}.btn[_ngcontent-%COMP%]:hover{background:transparent;color:#337ab7;box-shadow:none}.invalid-feedback[_ngcontent-%COMP%]{display:block}.btn[_ngcontent-%COMP%]{padding:.8rem 0}input[_ngcontent-%COMP%]::placeholder{color:gray;font-size:15px;opacity:.8}input[_ngcontent-%COMP%]{font-size:15px;border-color:#dee2e6}.input-group-text[_ngcontent-%COMP%]{background:transparent;border:none!important}.ng-touched.ng-valid[_ngcontent-%COMP%]{border-color:#dee2e6!important}.form-control[_ngcontent-%COMP%]{border:none!important}.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}[_nghost-%COMP%] .ng-select .ng-select-container{border:1px solid #e9edf2;border-radius:0!important}[_nghost-%COMP%] .ng-dropdown-panel.ng-select-bottom{border-radius:4px;overflow:hidden} .ng-select.custom{height:100%!important;border:none!important} .ng-select.custom .ng-select-container{height:100%!important;border-top:none!important;border-right:none!important;border-bottom:none!important;border-radius:4px!important}"]});let i=l;return i})();var Le=[{path:"",component:re}];export{Le as AUTH_ROUTES};
1
+ import{a as te,b as ne,c as ie}from"./chunk-ZXSD3XOK.js";import{A as W,D as J,E as K,F as Q,G as X,I as Y,aa as Z,ga as ee,q as F,w as B,x as S,y as H,z as $}from"./chunk-XY3HB2QF.js";import{$b as M,Ac as I,Da as y,Ec as z,F as N,Fc as j,Ha as A,L as V,Lb as v,Rb as g,Sa as x,Ta as h,Tb as c,Zb as b,ac as P,bc as T,cc as t,dc as n,ec as m,ic as C,jd as q,lc as _,ld as G,mc as u,od as R,ra as O,sa as E,t as L,tb as k,vc as s,wc as D,xb as a,xc as w,zc as U}from"./chunk-PLQP4Q76.js";var oe=i=>({"is-invalid":i});function ae(i,l){if(i&1&&(t(0,"swiper-slide")(1,"div",17),m(2,"img",18),t(3,"div",19)(4,"h4",20),s(5),n(),t(6,"div",21)(7,"p",22),s(8),n()()()()()),i&2){let o=l.$implicit;a(2),c("src",o.properties.imgSrc,k),a(3),w(" ",o.properties.title," "),a(3),w(" ",o.properties.description," ")}}function le(i,l){if(i&1&&(t(0,"ng-option",33)(1,"span",35),s(2),n()()),i&2){let o=l.$implicit;c("value",o),a(2),D(o)}}function se(i,l){if(i&1){let o=C();t(0,"div",8)(1,"div",19)(2,"h3",23),s(3," DealPOS Barcode Apps "),n(),t(4,"p",24),s(5," Print Barcode label from your product catalog "),n()(),t(6,"div",25)(7,"div",26)(8,"div",27)(9,"span",28),m(10,"i",29),n(),m(11,"input",30),t(12,"span",31)(13,"ng-select",32),P(14,le,3,2,"ng-option",33,M),n()()()()(),t(16,"button",34),_("click",function(){x(o);let r=u();return h(r.onLoginState())}),s(17," Next "),n()()}if(i&2){let o=u();a(13),c("clearable",!1),a(),T(o.domains())}}function de(i,l){i&1&&(t(0,"span"),s(1,"Username is required."),n())}function pe(i,l){if(i&1&&(t(0,"div",47),g(1,de,2,0,"span",63),m(2,"span"),n()),i&2){let o,e=u(2);a(),c("ngIf",(o=e.form.get("username"))==null||o.errors==null?null:o.errors.required)}}function me(i,l){if(i&1){let o=C();t(0,"i",66),_("click",function(){x(o);let r=u(3);return h(r.passwordInputType.set("text"))}),n()}}function ce(i,l){if(i&1){let o=C();t(0,"i",67),_("click",function(){x(o);let r=u(3);return h(r.passwordInputType.set("password"))}),n()}}function ue(i,l){if(i&1&&g(0,me,1,0,"i",64)(1,ce,1,0,"i",65),i&2){let o=u(2);b(o.passwordInputType()==="password"?0:1)}}function fe(i,l){i&1&&(t(0,"span"),s(1,"Password is required."),n())}function ge(i,l){if(i&1&&(t(0,"div",47),g(1,fe,2,0,"span",63),m(2,"span"),n()),i&2){let o,e=u(2);a(),c("ngIf",(o=e.form.get("password"))==null||o.errors==null?null:o.errors.required)}}function _e(i,l){if(i&1){let o=C();t(0,"div",9)(1,"div",36)(2,"h3",37),s(3,"Sign in"),n(),t(4,"p",38),s(5,"to"),n(),t(6,"div",39)(7,"p",40),s(8),n(),t(9,"a",41)(10,"i",42),_("click",function(){x(o);let r=u();return h(r.onLoginState())}),n()()()(),t(11,"div",19)(12,"div",43)(13,"span",44),m(14,"i",45),n(),m(15,"input",46),n(),g(16,pe,3,1,"div",47),n(),t(17,"div",19)(18,"div",48)(19,"span",44),m(20,"i",49),n(),t(21,"div",50),g(22,ue,2,1),m(23,"input",51),n()(),g(24,ge,3,1,"div",47),t(25,"div",52)(26,"a",53),s(27,"Forgot Password?"),n()()(),t(28,"button",54),s(29," Login "),n(),t(30,"div",55)(31,"div",56),m(32,"hr",57),t(33,"p",58),s(34,"or"),n(),m(35,"hr",57),n(),t(36,"button",59),_("click",function(){x(o);let r=u();return h(r.onSigninWithGoogle())}),t(37,"div",60),m(38,"i",61),t(39,"span",62),s(40,"Sign In with Google"),n()()()()()}if(i&2){let o,e,r,d,f,p=u();a(8),w(" (",p.hostFormField," ) "),a(7),c("ngClass",I(8,oe,((o=p.form.get("username"))==null?null:o.invalid)&&!((o=p.form.get("username"))!=null&&o.untouched))),a(),b((e=p.form.get("username"))!=null&&e.invalid&&!((e=p.form.get("username"))!=null&&e.untouched)?16:-1),a(6),b((r=p.form.get("password"))!=null&&r.value.length?22:-1),a(),c("ngClass",I(10,oe,((d=p.form.get("password"))==null?null:d.invalid)&&!((d=p.form.get("password"))!=null&&d.untouched)))("type",p.passwordInputType()),a(),b((f=p.form.get("password"))!=null&&f.invalid&&!((f=p.form.get("password"))!=null&&f.untouched)?24:-1),a(2),c("href","https://"+p.host+"/ForgotPassword",k)}}var re=(()=>{let l=class l{constructor(){this.form=new W({}),this.loginState=v("FORM_DOMAIN"),this.news$=N([]),this.domains=v([".dealpos.co.id",".dealpos.net",".dealpos.com",".dealpos.app"]),this.passwordInputType=v("password"),this.onsubmit=onsubmit,this._destroy=new L,this.authService=y(ee),this.fb=y(X),this.httpService=y(Z),this.version=v("")}get hostFormField(){return this.form?.get("subDomain")?.value+this.form?.get("domain")?.value}get domainStorage(){let e=this.authService.getDomain(),r=e.indexOf(".");return e.substring(r,e.length)}get host(){let{subDomain:e,domain:r}=this.form.value;return e+r}ngOnInit(){this.initForm(),this.news$=this.httpService.get("v2/content?fetch=children:barcode&sort=sortOrder:asc",void 0,"https://changelog.dealpos.app/umbraco/delivery/api/").pipe(V(e=>e.items))}initForm(){let e=this.authService.getDomain(),[r,d]=e.split("."),f=localStorage.getItem("Username")??"";this.form=this.fb.group({subDomain:[r??"",S.required],domain:[e.substring(e.indexOf(".dealpos"))||this.domains()[0],S.required],username:[f,S.required],password:["",S.required]})}onLogin(){let{subDomain:e,domain:r,username:d,password:f}=this.form.value,p={Host:e+r,Username:d,Password:f};this.authService.login(p).pipe(E(this._destroy),O(()=>this.authService.redirectUrl())).subscribe()}onSigninWithGoogle(){let{subDomain:e,domain:r,username:d,password:f}=this.form.value;this.authService.signInWithPopup(e+r).pipe(E(this._destroy),O(()=>this.authService.redirectUrl())).subscribe()}onLoginState(){let e=this.loginState();e==="FORM_DOMAIN"?this.loginState.set("FORM_AUTH"):e==="FORM_AUTH"&&this.loginState.set("FORM_DOMAIN")}ngOnDestroy(){this._destroy.next(),this._destroy.complete()}isAppVersionUpdated(){let e=localStorage.getItem("appVersion"),r=F.version;return!!(e&&r&&e.replaceAll(".","")!==r.replaceAll(".",""))}ngAfterViewInit(){this.version.set(F.version)}};l.\u0275fac=function(r){return new(r||l)},l.\u0275cmp=A({type:l,selectors:[["app-login"]],standalone:!0,features:[U],decls:23,vars:6,consts:[[1,"container-fluid","border","my-auto","d-flex","flex-column"],[1,"flex-grow-1","d-flex","align-items-center","justify-content-center"],[1,"row",2,"background","#ffffff","max-width","57rem","border-radius","4px"],[1,"p-0","col-12","col-md-6","border-end","d-flex","flex-column","align-items-center","py-4"],[1,"font-robotoslab","fw-normal","fs-6","text-dark"],["pagination","true","pagination-clickable","true","slides-per-view","1"],[1,"p-0","col-12","col-md-6","py-4"],[1,"h-100","d-flex","flex-column","gap-4","my-2","mx-5",3,"ngSubmit","formGroup"],[1,"d-flex","flex-column","justify-content-center","gap-3","h-100",2,"margin-top","-55px"],[1,"d-flex","flex-column","gap-3"],[1,"row","d-md-flex","py-3","px-4"],[1,"col-12","col-md-6","d-flex","align-items-center","gap-2"],[1,"m-0","h-100","d-flex","align-items-center","fs-2","fw-normal"],["alt","dealpos-logo","src","https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png",1,"img-fluid"],[1,"cursor-pointer","col-12","col-md-6","d-flex","justify-content-center","gap-2","justify-content-md-end","align-items-center"],["target","_blank",1,"d-flex","gap-1",3,"href"],[1,"fst-italic","m-0","fs-2","fw-normal","text-dark","cursor-pointer"],[1,"d-flex","flex-column","gap-4"],["alt","",1,"img-fluid",3,"src"],[1,"d-flex","flex-column"],[1,"text-dark",2,"font-size","16px","font-weight","700"],[1,"d-flex","flex-wrap",2,"max-width","22rem"],[1,"fw-normal","text-dark"],[1,"m-0","font-robotoslab","text-dark","fs-6"],[1,"fst-italic","fw-normal","text-secondary-emphasis",2,"font-size","11px"],[1,"row",2,"height","50px"],[1,"col-12","h-100","mb-2","mb-md-0"],[1,"input-group","mb-3","border","rounded"],[1,"input-group-text","border-0","text-dark"],[1,"fas","fa-cloud"],["id","subDomain","formControlName","subDomain","type","text","placeholder","Store Address","aria-label","Username","aria-describedby","basic-addon1",1,"form-control","form-control-lg","text-dark",2,"border-radius","0","font-size","14px"],[1,"input-group-text","p-0",2,"z-index","99"],["formControlName","domain",1,"custom",2,"font-size","14px",3,"clearable"],[3,"value"],["type","button",1,"btn","btn-primary","btn-lg","w-100","font-robotoslab","fs-4",3,"click"],[2,"font-size","14px"],[1,"d-flex","align-baseline","gap-2"],[1,"m-0"],[1,"m-0","d-flex","align-items-end"],[1,"d-flex"],[1,"m-0","d-flex","align-items-end","fw-bold","me-2","font-robotoslab","d-inline-block","text-primary"],["href","#",1,"pe-auto","d-flex","align-items-center"],[1,"fas","fa-edit","d-flex","align-items-center","link-primary","fs-3",3,"click"],[1,"input-group","border","rounded",2,"height","50px"],[1,"input-group-text","text-dark"],[1,"fas","fa-user"],["formControlName","username","type","text","placeholder","Username","aria-label","Username","aria-describedby","basic-addon1",1,"form-control","form-control-lg","text-dark",3,"ngClass"],[1,"invalid-feedback"],[1,"input-group","d-flex","border","rounded",2,"height","50px"],[1,"fas","fa-key"],[1,"position-relative","flex-grow-1","h-100"],["formControlName","password","placeholder","Password","aria-label","Username","aria-describedby","basic-addon1",1,"form-control","form-control-lg","h-100","text-dark",3,"ngClass","type"],[1,"w-100","d-flex","justify-content-end"],[1,"link-underline-light","fs-2","fw-normal",3,"href"],["type","submit",1,"btn","btn-primary","btn-lg","fs-4","font-robotoslab"],[1,"d-flex","flex-column","align-items-center","gap-2"],[1,"d-flex","justify-content-center","gap-2"],[2,"width","150px","border","1px solid rgba(0, 0, 0, 0.85)"],[1,"m-0",2,"line-height","30px"],["type","button",1,"btn","btn-outline-primary","btn-lg","w-100",3,"click"],[1,"h-100","d-flex","align-items-center","justify-content-center","gap-2"],[1,"fab","fa-google","fs-3"],[1,"fw-medium","fs-3"],[4,"ngIf"],[1,"fas","fa-eye","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)"],[1,"fas","fa-eye-slash","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)"],[1,"fas","fa-eye","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)",3,"click"],[1,"fas","fa-eye-slash","position-absolute","top-0","end-0",2,"transform","translate(-50%, 90%)",3,"click"]],template:function(r,d){r&1&&(t(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h4",4),s(5,"New Features"),n(),t(6,"swiper-container",5),P(7,ae,9,3,"swiper-slide",null,M),z(9,"async"),n()(),t(10,"div",6)(11,"form",7),_("ngSubmit",function(){return d.onLogin()}),g(12,se,18,1,"div",8)(13,_e,41,12,"div",9),n()()()(),t(14,"div",10)(15,"div",11)(16,"p",12),s(17," Powered by: "),n(),m(18,"img",13),n(),t(19,"div",14)(20,"a",15)(21,"span",16),s(22),n()()()()()),r&2&&(a(7),T(j(9,4,d.news$)),a(4),c("formGroup",d.form),a(),b(d.loginState()==="FORM_DOMAIN"?12:13),a(8),c("href","https://changelog.dealpos.com/?categories=cat_IOl3P9ko0ayhv&view=complete&v"+d.version().replaceAll(".",""),k),a(2),w("Version ",d.version(),""))},dependencies:[G,q,Y,J,B,H,$,K,Q,ie,ne,te,R],styles:[".auth-wrapper[_ngcontent-%COMP%]{min-height:100vh;position:relative}.container-fluid[_ngcontent-%COMP%]{height:100vh}.grid__container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,50%);width:50vw;height:50vh;background:#fff;box-shadow:0 10px 15px -3px #0000001a;border-radius:15px;overflow:hidden}.container[_ngcontent-%COMP%]{height:400px}swiper-container[_ngcontent-%COMP%]{height:100%;width:100%}swiper-slide[_ngcontent-%COMP%]{text-align:center;font-size:12px;background:#fff;display:flex;justify-content:center;align-items:center}swiper-slide[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:250px;height:150px;object-fit:cover;margin:0 auto}.btn[_ngcontent-%COMP%]:hover{background:transparent;color:#337ab7;box-shadow:none}.invalid-feedback[_ngcontent-%COMP%]{display:block}.btn[_ngcontent-%COMP%]{padding:.8rem 0}input[_ngcontent-%COMP%]::placeholder{color:gray;font-size:15px;opacity:.8}input[_ngcontent-%COMP%]{font-size:15px;border-color:#dee2e6}.input-group-text[_ngcontent-%COMP%]{background:transparent;border:none!important}.ng-touched.ng-valid[_ngcontent-%COMP%]{border-color:#dee2e6!important}.form-control[_ngcontent-%COMP%]{border:none!important}.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}[_nghost-%COMP%] .ng-select .ng-select-container{border:1px solid #e9edf2;border-radius:0!important}[_nghost-%COMP%] .ng-dropdown-panel.ng-select-bottom{border-radius:4px;overflow:hidden} .ng-select.custom{height:100%!important;border:none!important} .ng-select.custom .ng-select-container{height:100%!important;border-top:none!important;border-right:none!important;border-bottom:none!important;border-radius:4px!important}"]});let i=l;return i})();var Le=[{path:"",component:re}];export{Le as AUTH_ROUTES};