dealposbarcode 25.42.0 → 25.49.0
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/assets/scss/core/sidebar/_sidebar.scss +3 -1
- package/chunk-4CITKGGL.js +1 -0
- package/chunk-4XEW2OFU.js +1 -0
- package/chunk-6FO5T3CC.js +1 -0
- package/chunk-6OSFQ5BS.js +1 -0
- package/chunk-BQSGSWKL.js +1 -0
- package/chunk-CARY4E7O.js +1 -0
- package/chunk-G2JXUY7S.js +2 -0
- package/chunk-GSH6QS3C.js +1 -0
- package/chunk-I535BP2A.js +1 -0
- package/chunk-LTVGOJEF.js +2 -0
- package/chunk-RH3ZV23S.js +4 -0
- package/chunk-SPKFLYGU.js +386 -0
- package/{chunk-7NBUTSCP.js → chunk-TRX4W32W.js} +1 -1
- package/chunk-UE2JJIFL.js +7 -0
- package/chunk-WBD3XQRN.js +1 -0
- package/{chunk-OF3S7PJO.js → chunk-X4PZGB4F.js} +1 -1
- package/chunk-XGFO3ZQU.js +1 -0
- package/index.html +4 -4
- package/main-RMDLQWTU.js +605 -0
- package/ngsw.json +40 -32
- package/package.json +1 -1
- package/{styles-DNJBCG2T.css → styles-7YJ7GGGE.css} +1 -1
- package/chunk-A6GS53BJ.js +0 -1
- package/chunk-AVMIS4JH.js +0 -5
- package/chunk-FJ7FELU6.js +0 -2
- package/chunk-JSALYWAE.js +0 -1
- package/chunk-JWV4A4IE.js +0 -1
- package/chunk-OPCDULBE.js +0 -390
- package/chunk-OWLOGNWL.js +0 -1
- package/chunk-T4TJ6V2K.js +0 -1
- package/chunk-UQPONBUU.js +0 -1
- package/chunk-YB6XMFOT.js +0 -7
- package/chunk-YZVBRXKJ.js +0 -1
- package/main-FVVEPY6I.js +0 -605
|
@@ -19,7 +19,9 @@ Main sidebar
|
|
|
19
19
|
z-index: 99;
|
|
20
20
|
padding-top: $topbar-height;
|
|
21
21
|
background: $sidebar;
|
|
22
|
-
box-shadow: $shadow;
|
|
22
|
+
// box-shadow: $shadow;
|
|
23
|
+
box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
|
|
24
|
+
// border-right: 1px solid #ddd;
|
|
23
25
|
transition: 0.2s ease-in;
|
|
24
26
|
}
|
|
25
27
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as z,W as B,d as N,e as F,h as T,i as I,n as j,o as A,p as G,r as R,t as U}from"./chunk-RH3ZV23S.js";import"./chunk-CARY4E7O.js";import{n as D,q as V}from"./chunk-LTVGOJEF.js";import{$b as S,Ad as O,Da as f,Ec as P,Fc as x,Ha as M,Kb as b,Rb as _,Sa as d,Ta as m,Vb as l,ec as e,fc as t,gc as a,kc as C,nc as c,od as E,ub as w,wc as v,xc as n,yc as y,zb as r,zc as k}from"./chunk-UE2JJIFL.js";var q=i=>({active:i});function H(i,L){i&1&&(e(0,"h4"),n(1," This menu is for printing barcodes that will be placed directly on your products. "),t())}function J(i,L){i&1&&(e(0,"h4"),n(1," This option is designed for printing barcodes and labels that will be displayed on the shelves where your products are stored. "),t())}var re=(()=>{class i{constructor(){this.domain=b(""),this.username=b(""),this.router=f(D),this.fb=f(R),this.authService=f(B)}ngOnInit(){this.initForm()}ngAfterViewInit(){this.domain.set(localStorage.getItem("Domain")),this.username.set(localStorage.getItem("Username"))}onNext(){let s=this.form.get("printMode").value;switch(s){case 1:this.form.get("rememberMe").value&&localStorage.setItem("PrintMode","barcode"),this.router.navigate(["/pages/profile-template"],{queryParams:{step:0}});break;case 2:this.form.get("rememberMe").value&&localStorage.setItem("PrintMode","priceLabel"),this.router.navigate(["/pages/price-label"]);break;default:console.error("Unknown print mode selected:",s)}}initForm(){this.form=this.fb.group({printMode:this.fb.control(1),rememberMe:this.fb.control(!0)})}static{this.\u0275fac=function(p){return new(p||i)}}static{this.\u0275cmp=M({type:i,selectors:[["app-print-mode-selector"]],standalone:!0,features:[P],decls:59,vars:13,consts:[["radioDefault1",""],["radioDefault2",""],[1,"navbar","navbar-light","bg-white","shadow-sm","px-4","py-2"],[1,"fw-normal","mt-2"],[1,"dropdown"],["type","button","id","profileMenu","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","btn-light","rounded-circle","d-flex","align-items-center","justify-content-center",2,"width","40px","height","40px"],[1,"fa-solid","fa-user"],["aria-labelledby","profileMenu",1,"dropdown-menu","dropdown-menu-end","shadow","border-0","p-3",2,"width","250px","border-radius","1rem"],[1,"mb-2"],[1,"fw-bold","text-uppercase"],[1,"d-flex","align-items-center","mb-3"],[1,"me-3"],[1,"fa-solid","fa-user-circle","fa-3x","text-secondary"],[1,"mt-3","fw-bold"],[1,"text-muted","fw-bolder"],["rel","noopener noreferrer","target","_blank",1,"text-primary","text-decoration-none",3,"href"],[1,"dropdown-divider"],["href","javascript:void(0)",1,"btn","btn-primary","w-100","rounded-pill",3,"click"],[1,"d-flex","flex-column",2,"height","calc(100vh - 56px)"],[1,"flex-grow-1","w-100","d-flex","flex-column","justify-content-center","align-items-center","gap-4","px-3"],["id","header",1,"text-center","mb-4"],[1,"row","g-4","justify-content-center","w-100",2,"max-width","960px",3,"formGroup"],["formControlName","printMode","type","radio","name","printMode",1,"form-check-input","d-none",3,"value"],["formControlName","printMode","type","radio","name","printMode","checked","",1,"form-check-input","d-none",3,"value"],[1,"d-flex","flex-column","align-items-center","gap-4","w-100"],[1,"d-flex","gap-5","justify-content-center","flex-wrap"],[1,"card","option-card",3,"click","ngClass"],[1,"card-body","text-center"],[1,"icon-wrapper","mb-2","mt-4"],[1,"fa-solid","fa-barcode"],[1,"text-muted","mb-1"],[1,"fw-normal"],[1,"fa-solid","fa-shelves"],[1,"form-check","d-flex","justify-content-center","align-items-center","gap-2","mt-3"],["type","checkbox","formControlName","rememberMe","id","checkDefault",1,"form-check-input"],["for","checkDefault",1,"form-check-label"],[1,"mt-3"],["type","button",1,"btn","btn-primary","btn-lg","px-5","rounded-pill","shadow-lg",3,"click"]],template:function(p,o){if(p&1){let u=C();e(0,"nav",2)(1,"h2",3),n(2,"Choose Barcode Mode"),t(),e(3,"div",4)(4,"button",5),a(5,"i",6),t(),e(6,"ul",7)(7,"li",8)(8,"span",9),n(9,"User Profile"),t()(),e(10,"li",10)(11,"div",11),a(12,"i",12),t(),e(13,"div")(14,"h6",13),n(15),t(),e(16,"h6",14)(17,"a",15),n(18),t()()()(),e(19,"li"),a(20,"hr",16),t(),e(21,"li")(22,"button",17),c("click",function(){return d(u),m(o.authService.logout())}),n(23,"SIGN OUT"),t()()()()(),e(24,"div",18)(25,"main",19)(26,"div",20),_(27,H,2,0,"h4")(28,J,2,0,"h4"),t(),e(29,"div",21),a(30,"input",22,0)(32,"input",23,1),e(34,"div",24)(35,"div",25)(36,"div",26),c("click",function(){d(u);let g=v(31);return m(g.click())}),e(37,"div",27)(38,"div",28),a(39,"i",29),t(),e(40,"h6",30),n(41,"Print"),t(),e(42,"h4",31),n(43,"Product"),t()()(),e(44,"div",26),c("click",function(){d(u);let g=v(33);return m(g.click())}),e(45,"div",27)(46,"div",28),a(47,"i",32),t(),e(48,"h6",30),n(49,"Print"),t(),e(50,"h4",31),n(51,"Shelf"),t()()()(),e(52,"div",33),a(53,"input",34),e(54,"label",35),n(55,"Remember my decision"),t()(),e(56,"div",36)(57,"button",37),c("click",function(){return d(u),m(o.onNext())}),n(58," Next "),t()()()()()()}p&2&&(r(15),y(o.username()),r(2),l("href","https://"+o.domain(),w),r(),k(" ",o.domain()," "),r(9),S(o.form.get("printMode").value===1?27:28),r(2),l("formGroup",o.form),r(),l("value",1),r(2),l("value",2),r(4),l("ngClass",x(9,q,o.form.get("printMode").value===1)),r(8),l("ngClass",x(11,q,o.form.get("printMode").value===2)))},dependencies:[O,E,V,U,F,N,j,T,I,A,G,z],styles:["[_nghost-%COMP%]{display:block}main[_ngcontent-%COMP%]{background-color:#f5f5f5}.card[_ngcontent-%COMP%]{width:205px;height:205px;border-radius:8px;transition:transform .3s ease,border-color .3s ease}.card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:4rem}.card.active[_ngcontent-%COMP%]{border:2px solid blue;transform:scale(1.05)}.dropdown-menu[_ngcontent-%COMP%]{position:absolute;right:0}#header[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0}#header[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]:nth-child(1){font-size:2rem;font-weight:500}#header[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]:nth-child(2){font-size:.8rem}"],changeDetection:0})}}return i})();export{re as PrintModeSelectorComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Be,b as Q,c as Ae,d as qe,e as je,f as Ge}from"./chunk-SPKFLYGU.js";import{t as Le}from"./chunk-G2JXUY7S.js";import{g as E}from"./chunk-X4PZGB4F.js";import{D as Ne,E as Oe,F as We,G as Ve,H as Re,I as De,K as Ie,Q as $e,c as xe,e as Ce,f as Se,h as ye,i as Pe,j as ve,m as ke,o as Me,p as Te,q as Fe,r as we,t as Ee}from"./chunk-RH3ZV23S.js";import{n as _e}from"./chunk-LTVGOJEF.js";import{$b as R,$c as he,Ad as be,Da as v,Dc as de,Ec as me,Fc as fe,Gb as ne,Ha as ee,I as X,Ja as te,Jc as U,Ka as ie,Kb as B,Kc as H,Nc as I,Rb as F,Sa as h,Ta as u,U as Y,Ub as ae,Vb as M,Wa as oe,Xb as le,a as y,ac as se,b as P,bb as re,bd as ue,c as N,cc as ce,dc as pe,ec as a,fc as n,g as W,gc as T,kc as D,nc as g,oc as C,od as ge,ta as V,tc as A,uc as q,vc as j,wa as Z,wc as G,xc as p,yc as w,zb as f}from"./chunk-UE2JJIFL.js";var L,Je=new Uint8Array(16);function z(){if(!L&&(L=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!L))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return L(Je)}var Ue=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Ke(i){return typeof i=="string"&&Ue.test(i)}var He=Ke;var m=[];for($=0;$<256;++$)m.push(($+256).toString(16).substr(1));var $;function Xe(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=(m[i[l+0]]+m[i[l+1]]+m[i[l+2]]+m[i[l+3]]+"-"+m[i[l+4]]+m[i[l+5]]+"-"+m[i[l+6]]+m[i[l+7]]+"-"+m[i[l+8]]+m[i[l+9]]+"-"+m[i[l+10]]+m[i[l+11]]+m[i[l+12]]+m[i[l+13]]+m[i[l+14]]+m[i[l+15]]).toLowerCase();if(!He(e))throw TypeError("Stringified UUID is invalid");return e}var Qe=Xe;function Ye(i,l,e){i=i||{};var t=i.random||(i.rng||z)();if(t[6]=t[6]&15|64,t[8]=t[8]&63|128,l){e=e||0;for(var o=0;o<16;++o)l[e+o]=t[o];return l}return Qe(t)}var O=Ye;var J="00000000-0000-0000-0000-000000000000";var ze=(()=>{class i{constructor(){this.el=v(re),this.isWriting=!1,this.postfix="px",this.min=0,this.precision=0,this.onChange=e=>{},this.onTouched=()=>{}}ngOnInit(){let e=this.el.nativeElement,t=` ${this.postfix}`,b=je({postfix:t,min:this.min,max:this.max,precision:this.precision,thousandSeparator:""}),{plugins:o}=b,r=N(b,["plugins"]),s=c=>{let _=()=>{let x=c.value.length-t.length;c.setSelectionRange(0,x)};return c.addEventListener("focus",_),()=>c.removeEventListener("focus",_)},d=c=>{let _=()=>{(!c.value.trim()||c.value===t.trim())&&(this.isWriting=!0,Q(c,`0${t}`),queueMicrotask(()=>this.isWriting=!1),this.onChange(0)),this.onTouched()};return c.addEventListener("blur",_),()=>c.removeEventListener("blur",_)},k=c=>{let _=()=>{if(this.isWriting)return;let x=c.value.replace(new RegExp(`${t}$`,"i"),"").trim().replace(",","."),K=parseFloat(x);this.onChange(isNaN(K)?null:K)};return c.addEventListener("input",_),()=>c.removeEventListener("input",_)},S=P(y({},r),{plugins:[...o,qe(c=>[0,c.length-t.length]),s,d,k]});this.destroyMask=new Ae(e,S)}writeValue(e){this.isWriting=!0;let t=e!=null&&e!==""?`${e} ${this.postfix}`:`0 ${this.postfix}`;Q(this.el.nativeElement,t),queueMicrotask(()=>this.isWriting=!1)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.el.nativeElement.disabled=e}ngOnDestroy(){this.destroyMask.destroy()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=te({type:i,selectors:[["","appMaskNumber",""]],inputs:{postfix:"postfix",min:"min",max:"max",precision:"precision"},standalone:!0,features:[de([{provide:xe,useExisting:Z(()=>i),multi:!0}])]})}}return i})();var et=["tablePaperFormats"],tt=["inputElement"],it=i=>({"in-valid":i});function ot(i,l){if(i&1){let e=D();a(0,"div",6)(1,"button",7),g("click",function(){h(e);let o=C(),r=G(6);return u(o.open(r))}),p(2,"Add"),n(),a(3,"button",8),g("click",function(){h(e);let o=C();return u(o.onNext())}),p(4," Next "),n()()}if(i&2){let e=C();f(3),M("disabled",!e.hasSelectedFormat())}}function rt(i,l){if(i&1){let e=D();a(0,"tr",15),g("click",function(){let o=h(e).$index,r=C(2);return u(r.onTemplateChecked(o))}),a(1,"th",16),p(2),n(),a(3,"td",16),p(4),U(5,"pxToCm"),n(),a(6,"td",16),p(7),n(),a(8,"td",16),p(9),U(10,"pxToCm"),n(),a(11,"td",16)(12,"div",17)(13,"span"),p(14),n(),a(15,"div",18),T(16,"input",19,4),n()()(),a(18,"td",20),g("click",function(o){return h(e),u(o.stopPropagation())}),a(19,"div",21),g("click",function(o){return h(e),u(o.stopPropagation())}),a(20,"button",22),g("click",function(o){return h(e),u(o.stopPropagation())}),T(21,"i",23),n(),a(22,"div",24),g("click",function(o){return h(e),u(o.stopPropagation())}),a(23,"button",25),g("click",function(o){let r=h(e).$implicit,s=C(2),d=G(6);return o.stopPropagation(),u(s.onEdit(r.id,d))}),p(24," Edit "),n(),a(25,"button",25),g("click",function(o){let r=h(e).$implicit,s=C(2);return o.stopPropagation(),u(s.onCopy(r))}),p(26," Copy "),n(),a(27,"button",25),g("click",function(o){let r=h(e).$implicit,s=C(2);return o.stopPropagation(),u(s.onDelete(r))}),p(28," Delete "),n()()()()()}if(i&2){let e=l.$implicit;le("selected",e.checked),ae("data-id",e.id),f(2),w(e.Name),f(2),w(H(5,9,e.PaperWidth)),f(3),w(e.PaperWidth+" px"),f(2),w(H(10,11,e.StickerWidth)),f(5),w(e.StickerWidth+" px"),f(2),M("checked",e.checked)}}function nt(i,l){if(i&1&&(a(0,"div",9)(1,"div",10)(2,"table",11,3)(4,"thead")(5,"tr")(6,"th",12),p(7,"Paper"),n(),a(8,"th",12),p(9,"Paper Width (cm)"),n(),a(10,"th",12),p(11,"Paper Width (px)"),n(),a(12,"th",12),p(13,"Sticker Width (cm)"),n(),a(14,"th",12),p(15,"Sticker Width (px)"),n(),T(16,"th",13),n()(),a(17,"tbody"),ce(18,rt,29,13,"tr",14,se),n()()()()),i&2){let e=C();f(18),pe(e.paperFormats())}}function at(i,l){i&1&&(a(0,"h4",27),p(1,"Create New Label"),n())}function lt(i,l){i&1&&(a(0,"h4",27),p(1,"Edit Label"),n())}function st(i,l){i&1&&(a(0,"div")(1,"small",45),p(2,"Label name is required"),n()())}function ct(i,l){if(i&1&&F(0,st,3,0,"div"),i&2){let e=C(2);R(e.form.controls.Name.hasError("required")?0:-1)}}function pt(i,l){if(i&1){let e=D();a(0,"div",26),F(1,at,2,0,"h4",27)(2,lt,2,0,"h4",27),n(),a(3,"div",28)(4,"form",29)(5,"div",30)(6,"div",31)(7,"div",32)(8,"div",33)(9,"label",34),p(10,"Label Name"),n(),T(11,"input",35),n(),F(12,ct,1,1),n()(),a(13,"div",36)(14,"div",37)(15,"div",33)(16,"label",34),p(17,"Paper Width"),n(),T(18,"input",38)(19,"input",39),n()(),a(20,"div",37)(21,"div",33)(22,"label",34),p(23,"Sticker Width"),n(),T(24,"input",40)(25,"input",41),n()()()()()(),a(26,"div",42)(27,"button",43),g("click",function(){let o=h(e).$implicit;return u(o.close("Save click"))}),p(28," Cancel "),n(),a(29,"button",44),g("click",function(){let o=h(e).$implicit;return C().onSubmit(),u(o.close("Save click"))}),p(30," OK "),n()()}if(i&2){let e=C();f(),R(e.editMode()?2:1),f(3),M("formGroup",e.form),f(7),M("ngClass",fe(7,it,e.form.controls.Name.invalid&&(e.form.controls.Name.dirty||e.form.controls.Name.touched))),f(),R(e.form.controls.Name.invalid&&(e.form.controls.Name.dirty||e.form.controls.Name.touched)?12:-1),f(6),M("precision",1),f(6),M("precision",1),f(5),M("disabled",e.form.invalid)}}var dt=(()=>{class i{transform(e){return typeof e=="string"?e=parseFloat(e):typeof e=="number"&&(e=+e),(parseFloat(e.toString())*.0264583333).toFixed(1)+" cm"}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275pipe=ie({name:"pxToCm",type:i,pure:!0,standalone:!0})}}return i})(),ti=(()=>{class i{constructor(){this.modalService=v(Ie),this.httpService=v($e),this.fb=v(we),this.renderer=v(ne),this.router=v(_e),this.store=v(Le),this.options=Ge,this.paperFormats=B([]),this.form=new ve({}),this.injector=v(oe),this.editMode=B(!1),this.hasSelectedFormat=he(()=>this.paperFormats().some(e=>e.checked))}ngOnInit(){this.fetchTemplates(),this.generateForm(),this.form.valueChanges.pipe(Y(e=>e.StickerWidthCM!==null&&e.PaperWidthCM!==null),V(e=>{this.form.patchValue({StickerWidth:e.StickerWidthCM!=null?parseFloat((Number(e.StickerWidthCM)*37.8).toFixed(2)):0,PaperWidth:e.PaperWidthCM!=null?parseFloat((Number(e.PaperWidthCM)*37.8).toFixed(2)):0},{emitEvent:!1})})).subscribe()}ngAfterViewInit(){ue(()=>this.applyRowStyling(),{injector:this.injector})}applyRowStyling(){let e=this.paperFormats();if(!e.length||!this.tablePaperFormats)return;let t=e.find(c=>c.checked),r=this.tablePaperFormats.nativeElement.querySelector("tbody");if(!r||(r.querySelectorAll("tr").forEach(c=>{c.querySelectorAll("th, td").forEach(x=>{this.renderer.setStyle(x,"borderTop","1px solid #cccccc"),this.renderer.setStyle(x,"borderBottom","1px solid #cccccc"),this.renderer.removeStyle(x,"borderLeft"),this.renderer.removeStyle(x,"borderRight"),this.renderer.removeStyle(x,"borderTopLeftRadius"),this.renderer.removeStyle(x,"borderBottomLeftRadius"),this.renderer.removeStyle(x,"borderTopRightRadius"),this.renderer.removeStyle(x,"borderBottomRightRadius")});let _=c.querySelector("td:last-child");_&&(this.renderer.removeStyle(_,"border"),this.renderer.setStyle(_,"paddingLeft","20px"))}),!t))return;console.log("Selected template:",r.querySelectorAll("tr"));let s=Array.from(r.querySelectorAll("tr")).find(c=>(console.log("attribute",c.getAttribute("data-id")),c.getAttribute("data-id")===t.id));if(!s)return;let d="var(--bs-primary)";s.querySelectorAll("th, td:not(:last-child)").forEach(c=>{this.renderer.setStyle(c,"borderTop",`1px solid ${d}`),this.renderer.setStyle(c,"borderBottom",`1px solid ${d}`)});let S=s.querySelector("th:first-child, td:first-child");S&&(this.renderer.setStyle(S,"borderLeft",`1px solid ${d}`),this.renderer.setStyle(S,"borderTopLeftRadius","8px"),this.renderer.setStyle(S,"borderBottomLeftRadius","8px"));let b=s.querySelector("td:nth-last-child(2)");b&&(this.renderer.setStyle(b,"borderRight",`1px solid ${d}`),this.renderer.setStyle(b,"borderTopRightRadius","8px"),this.renderer.setStyle(b,"borderBottomRightRadius","8px"))}waitForElement(e){return W(this,null,function*(){for(;!this.inputTemplateRef||this.inputTemplateRef.length<=e;)yield new Promise(t=>setTimeout(t,10));return this.inputTemplateRef.get(e)})}onTemplateChecked(e){return W(this,null,function*(){let o=this.paperFormats()[e]?.checked??!1;this.paperFormats.update(s=>s.map((d,k)=>P(y({},d),{checked:k===e?!o:!1})));let r=yield this.waitForElement(e);r.nativeElement.checked=!o,this.inputTemplateRef.forEach((s,d)=>{d!==e&&(s.nativeElement.checked=!1)})})}onStickerWidthChange(e){let t=e.target;this.form.get("StickerWidth")?.setValue(+t.value)}open(e,t=!1){return W(this,null,function*(){this.editMode.set(t),this.httpService.get("api/Config/Form").pipe(E("Form Config Response")).subscribe();try{let o=yield this.modalService.open(e,{centered:!0,scrollable:!0}).result;console.log("Modal closed with result:",o)}catch(o){console.error("Error opening modal:",o)}})}fetchTemplates(){let e=localStorage.getItem("Domain")||"",t={};try{let o=localStorage.getItem("selectedPaperFormat");t=o?JSON.parse(o):{}}catch{t={}}this.httpService.post("api/Config/PaperConfig",{SubDomain:e}).pipe(E("PaperConfig Response"),X(o=>P(y({},o),{PaperFormats:o.PaperFormats.map(r=>P(y({},r),{id:O(),checked:t.Name===r.Name}))}))).subscribe(o=>{this.paperFormats.set(o.PaperFormats),localStorage.setItem("paperFormatOutlets",JSON.stringify(o.Outlets)),localStorage.setItem("paperFormats",JSON.stringify(o.PaperFormats)),setTimeout(()=>{this.applyRowStyling()},100)})}generateForm(){console.log("Generating form",this.paperFormats()),this.httpService.get("api/Config/Form").pipe(E("Form Config Response"),V(e=>{if(this.form&&Object.keys(this.form.controls).length)for(let t in e)this.form.contains(t)&&(this.form.get(t)?.setValue(e[t]),this.form.controls.StickerWidth.disable(),this.form.controls.PaperWidth.disable())})).subscribe(),this.form=this.fb.group({BarcodeType:this.fb.control(null),LineHeight:this.fb.control(0),Name:this.fb.control("",[Se.required]),BarcodeVisible:this.fb.control(!0),CodeVisible:this.fb.control(!0),PriceVisible:this.fb.control(!0),NameVisible:this.fb.control(!0),VariantNameVisible:this.fb.control(!0),PriceWithTax:this.fb.control(!1),DescriptionAsCode:this.fb.control(!1),StickerHeight:this.fb.control(0),BarcodeHeight:this.fb.control(0),StickerWidth:this.fb.control(0),ProductNamePrefix:this.fb.control(""),TaxType:this.fb.control(null),ProductNameFontSize:this.fb.control(0),ColumnSpacing:this.fb.control(0),RowSpacing:this.fb.control(0),PaperWidth:this.fb.control(0),MarginTop:this.fb.control(0),MarginLeft:this.fb.control(0),ProductNameMaxLength:this.fb.control(0),ImageVisible:this.fb.control(!1),CustomPriceEnabled:this.fb.control(!1),StoreName:this.fb.control(""),CurrencySymbol:this.fb.control(""),PromotionPriceLabel:this.fb.control(""),BasicPriceLabel:this.fb.control(""),MoveProductNameOnTop:this.fb.control(!1),PriceFontSize:this.fb.control(0),ShowReleasedDate:this.fb.control(!1),ShowPriceDiscount:this.fb.control(!1),Orientation:this.fb.control(0),OrientationChoice:this.fb.control([]),OutletID:this.fb.control(null),PricebookVisible:this.fb.control(!1),PricebookFontSize:this.fb.control(0),UOMNameVisible:this.fb.control(!1),StickerWidthCM:this.fb.control(0),PaperWidthCM:this.fb.control(0),checked:this.fb.control(!1),id:this.fb.control(J)})}onSubmit(){if(this.form.invalid){this.form.markAllAsTouched();return}if(this.editMode()){let r=this.paperFormats().findIndex(b=>b.id===this.form.value.id);if(r===-1)return;let o=this.form.value,{StickerWidthCM:s,PaperWidthCM:d}=o,k=N(o,["StickerWidthCM","PaperWidthCM"]),S=P(y({},k),{StickerWidth:s!=null?Math.round(Number(s)*37.8):0,PaperWidth:d!=null?Math.round(Number(d)*37.8):0});this.paperFormats.update(b=>[...b.slice(0,r),S,...b.slice(r+1)])}else{let t=this.form.value,{StickerWidthCM:r,PaperWidthCM:s}=t,d=N(t,["StickerWidthCM","PaperWidthCM"]),k=P(y({},d),{id:O(),StickerWidth:r!=null?Math.round(Number(r)*37.8):0,PaperWidth:s!=null?Math.round(Number(s)*37.8):0});this.paperFormats.update(S=>[...S,k])}let e={SubDomain:localStorage.getItem("Domain")||"",PaperFormats:this.paperFormats()};this.httpService.post("api/Config/SaveConfig",e).pipe(V(()=>{this.form.reset()})).subscribe()}onEdit(e,t){let o=this.paperFormats().findIndex(s=>s.id===e);if(o===-1)return;let r=this.paperFormats()[o];console.log("Editing template:",r),this.form.patchValue(P(y({},r),{PaperWidthCM:parseFloat((r.PaperWidth*.0264583333).toFixed(2)),StickerWidthCM:parseFloat((r.StickerWidth*.0264583333).toFixed(2)),StickerWidth:r.StickerWidth,PaperWidth:r.PaperWidth})),this.open(t,!0)}onDelete(e){this.paperFormats.update(o=>o.filter(r=>r.id!==e.id));let t={SubDomain:localStorage.getItem("Domain")||"",PaperFormats:this.paperFormats()};this.httpService.post("api/Config/SaveConfig",t).pipe(E("SaveConfig Response")).subscribe()}onCopy(e){try{let t=this.paperFormats().findIndex(s=>s.id===e.id);if(t===-1)return;let o=P(y({},e),{Name:e.Name+" - Copy",id:O(),checked:!1});this.paperFormats.update(s=>[...s.slice(0,t+1),o,...s.slice(t+1)]);let r={SubDomain:localStorage.getItem("Domain")||"",PaperFormats:this.paperFormats()};this.httpService.post("api/Config/SaveConfig",r).pipe(E("SaveConfig Response")).subscribe()}catch(t){console.error("Error copying template:",t)}}onNext(){this.store.onNextStep(),localStorage.setItem("selectedPaperFormat",JSON.stringify(this.paperFormats().find(e=>e.checked))),this.store.onChangePaperConfiguration(this.paperFormats().find(e=>e.checked))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=ee({type:i,selectors:[["app-choose-profile-template"]],viewQuery:function(t,o){if(t&1&&(A(et,5),A(tt,5)),t&2){let r;q(r=j())&&(o.tablePaperFormats=r.first),q(r=j())&&(o.inputTemplateRef=r)}},standalone:!0,features:[me],decls:7,vars:0,consts:[["actionButton",""],["content",""],["contentModal",""],["tablePaperFormats",""],["inputElement",""],["pageTitle","Choose Paper Template"],[1,"d-flex","gap-3"],[1,"btn","btn-success",3,"click"],[1,"btn","btn-outline-success",3,"click","disabled"],[1,"card"],[1,"card-body"],[1,"table","table-borderless",2,"table-layout","fixed","width","100%","border-collapse","separate","border-spacing","0 8px"],["scope","col",1,"fs-4","fw-normal"],["scope","col",2,"width","100px"],[3,"selected"],[3,"click"],[1,"fs-3","fw-normal"],[1,"d-flex","justify-content-between"],[1,"form-check"],["type","checkbox","id","checkDefault",1,"form-check-input",3,"checked"],[1,"fs-3","fw-normal",3,"click"],["ngbDropdown","",1,"d-inline-block",3,"click"],["type","button","id","dropdownBasic1","ngbDropdownToggle","",1,"btn","btn-outline-secondary",3,"click"],[1,"fa-solid","fa-ellipsis"],["ngbDropdownMenu","","aria-labelledby","dropdownBasic1",3,"click"],["ngbDropdownItem","",3,"click"],[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],[1,"modal-body"],[3,"formGroup"],[1,"row","gap-4"],[1,"col-lg-12"],[1,"d-flex","flex-column"],[1,"d-flex","flex-column","gap-2"],["for",""],["type","text","formControlName","Name","placeholder","Enter label name",1,"form-control","form-control-lg","fs-4","fs-4",3,"ngClass"],[1,"row"],[1,"col"],["type","text","formControlName","PaperWidthCM","appMaskNumber","","postfix","cm","placeholder","Width (cm)",1,"form-control","form-control-lg","fs-4",3,"precision"],["type","text","spellcheck","false","formControlName","PaperWidth","appMaskNumber","","postfix","px","placeholder","Height (px)",1,"form-control","form-control-lg","fs-4"],["type","text","appMaskNumber","","postfix","cm","formControlName","StickerWidthCM","placeholder","Width (cm)",1,"form-control","form-control-lg","fs-4",3,"precision"],["type","text","spellcheck","false","appMaskNumber","","postfix","px","formControlName","StickerWidth","placeholder","Height (px)",1,"form-control","form-control-lg","fs-4"],[1,"modal-footer","d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-outline-secondary",3,"click","disabled"],[1,"text-danger"]],template:function(t,o){t&1&&(a(0,"app-main-panel",5),F(1,ot,5,1,"ng-template",null,0,I)(3,nt,20,0,"ng-template",null,1,I),n(),F(5,pt,31,9,"ng-template",null,2,I))},dependencies:[Be,dt,Fe,ke,Ce,ye,Pe,Ee,Me,Te,ze,De,Re,Ve,We,Ne,Oe,be,ge],styles:["[_nghost-%COMP%]{display:block}.table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{background-color:#f6f6f6;padding:10px;text-align:start}.table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:10px;text-align:start;vertical-align:middle;border-top:1px solid #cccccc;border-bottom:1px solid #cccccc}.table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child, .table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{border-left:1px solid #cccccc;border-top-left-radius:8px;border-bottom-left-radius:8px}.table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-last-child(2){border-right:1px solid #cccccc;border-top-right-radius:8px;border-bottom-right-radius:8px}.table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{border:none;padding-left:20px}.modal-header[_ngcontent-%COMP%]{background-color:#83a83d}.modal-header[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{color:#fff}.modal-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#dfeffc;color:#367cb8;outline:none;border:none}.form-control[_ngcontent-%COMP%]::placeholder{color:#808182;font-size:.9rem} .dropdown-toggle:after{content:none}"],changeDetection:0})}}return i})();export{ti as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as z}from"./chunk-4XEW2OFU.js";import{g as A,h as O,i as k,k as L}from"./chunk-SPKFLYGU.js";import{t as H}from"./chunk-G2JXUY7S.js";import"./chunk-X4PZGB4F.js";import"./chunk-TRX4W32W.js";import{Q as $,a as q}from"./chunk-RH3ZV23S.js";import"./chunk-CARY4E7O.js";import{l as B,n as N}from"./chunk-LTVGOJEF.js";import{Ad as M,C as d,Da as a,Ec as x,Ha as y,I as v,J as P,Kb as D,Nc as F,Rb as C,Vb as s,Xa as w,Z as S,a as g,b as u,ec as T,fc as b,gc as l,hc as p,ic as m,rd as I,sd as R,ta as _,td as E,zb as h}from"./chunk-UE2JJIFL.js";function U(t,c){t&1&&(p(0),l(1,"app-choose-profile-template"),m())}function V(t,c){t&1&&(p(0),l(1,"choose-product"),m())}function j(t,c){if(t&1&&l(0,"app-barcode-preview",4),t&2){let e=c.$implicit;s("items",e)}}function J(t,c){t&1&&(p(0),T(1,"app-customize-label"),C(2,j,1,1,"ng-template",null,0,F),b(),m())}function G(t,c){t&1&&(p(0),l(1,"app-print-preview"),m())}var le=(()=>{class t{constructor(){this.storeService=a(H),this.httpService=a($),this.destroyRef=a(w),this.routes=a(B),this.router=a(N),this.step=D(0)}get printMode(){let e=this.routes.snapshot.queryParamMap.get("printMode");return console.log("printMode",e),e}ngOnInit(){this.storeService.onReset(),console.log(localStorage.getItem("Domain"))}ngAfterViewInit(){let e=this.getHostFromDomain();this.loadInitialData(e)}getHostFromDomain(){let e=localStorage.getItem("Domain");return e?this.hasProtocol(e)?new URL(e).hostname:e:null}hasProtocol(e){return/^(https?):\/\//.test(e)}loadInitialData(e){if(!e){console.warn("No domain found in localStorage");return}let o=localStorage.getItem("selectedPaperFormat"),n=this.httpService.post("api/Config/PaperConfig",{SubDomain:e}).pipe(S(r=>d({error:r}))),i=this.httpService.get("/API/V3/Tax",void 0,`https://${e}`).pipe(S(r=>d({error:r})));P([n,i]).pipe(q(this.destroyRef),v(([r,f])=>this.normalizeResponses(r,f)),_(({paperConfig:r,taxs:f})=>{this.applyDataToStore(r,f)})).subscribe()}normalizeResponses(e,o){let n=i=>i&&"error"in i;return{paperConfig:n(e)?null:e,taxs:n(o)?null:o}}applyDataToStore(e,o){let n=JSON.parse(localStorage.getItem("selectedPaperFormat")||"null");e&&(this.storeService.onChangePaperConfig(u(g({},e),{PaperFormats:e.PaperFormats.map(i=>u(g({},i),{OutletID:null}))})),n?this.storeService.onChangePaperConfiguration(n):e.PaperFormats.length>0&&this.storeService.onChangePaperConfiguration(e.PaperFormats[0])),o&&this.storeService.onChangeTaxs(o)}onNext(){if(this.step()>=3){console.warn("Maximum step reached, cannot proceed further.");return}this.router.navigate([],{relativeTo:this.routes,queryParams:{step:this.step()+1},queryParamsHandling:"merge"})}onPrevious(){if(this.step()<=1){console.warn("Already at the first step, cannot go back.");return}this.router.navigate([],{relativeTo:this.routes,queryParams:{step:this.step()-1},queryParamsHandling:"merge"})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=y({type:t,selectors:[["app-shelf-barcode"]],standalone:!0,features:[x],decls:5,vars:4,consts:[["content",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"items"]],template:function(o,n){o&1&&(p(0,1),C(1,U,2,0,"ng-container",2)(2,V,2,0,"ng-container",2)(3,J,4,0,"ng-container",2)(4,G,2,0,"ng-container",3),m()),o&2&&(s("ngSwitch",n.storeService.stepper$().state),h(),s("ngSwitchCase",0),h(),s("ngSwitchCase",1),h(),s("ngSwitchCase",2))},dependencies:[A,M,I,R,E,k,O,L,z],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();export{le as ShelfBarcodeComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as k,i as A,j as H,k as O}from"./chunk-SPKFLYGU.js";import{t as N}from"./chunk-G2JXUY7S.js";import"./chunk-X4PZGB4F.js";import"./chunk-TRX4W32W.js";import{Q as z,a as F}from"./chunk-RH3ZV23S.js";import"./chunk-CARY4E7O.js";import{l as E}from"./chunk-LTVGOJEF.js";import{Ad as R,C as d,Da as l,Ec as T,Ha as S,I as _,J as u,Nc as I,Rb as f,Vb as a,Xa as v,Z as g,ac as b,cc as y,dc as w,ec as D,fc as L,gc as p,hc as s,ic as m,qd as P,rd as x,sd as $,ta as C,td as M,zb as c}from"./chunk-UE2JJIFL.js";function U(t,i){t&1&&(s(0),p(1,"choose-product"),m())}function V(t,i){t&1&&p(0,"div",7)}function j(t,i){if(t&1&&(p(0,"app-label-preview",5),f(1,V,1,0,"div",6)),t&2){let e=i.$implicit,n=i.$index,r=i.$count;a("item",e),c(),a("ngIf",n!==r-1)}}function q(t,i){if(t&1&&y(0,j,2,2,null,null,b),t&2){let e=i.$implicit;w(e)}}function B(t,i){t&1&&(s(0),D(1,"app-customize-label",4),f(2,q,2,0,"ng-template",null,0,I),L(),m())}function G(t,i){t&1&&(s(0),p(1,"app-print-preview"),m())}var pe=(()=>{class t{constructor(){this.store=l(N),this.httpService=l(z),this.destroyRef=l(v),this.routes=l(E)}get printMode(){let e=this.routes.snapshot.queryParamMap.get("printMode");return console.log("printMode",e),e}ngOnInit(){this.store.onReset(),console.log(localStorage.getItem("Domain"))}ngAfterViewInit(){let e=this.getHostFromDomain();this.loadInitialData(e)}getHostFromDomain(){let e=localStorage.getItem("Domain");return e?this.hasProtocol(e)?new URL(e).hostname:e:null}hasProtocol(e){return/^(https?):\/\//.test(e)}loadInitialData(e){if(!e){console.warn("No domain found in localStorage");return}let n=this.httpService.post("api/ConfigShelf/PaperConfig",{SubDomain:e}).pipe(g(o=>d({error:o}))),r=this.httpService.get("/API/V3/Tax",void 0,`https://${e}`).pipe(g(o=>d({error:o})));u([n,r]).pipe(F(this.destroyRef),_(([o,h])=>this.normalizeResponses(o,h)),C(({paperConfig:o,taxs:h})=>this.applyDataToStore(o,h))).subscribe()}normalizeResponses(e,n){let r=o=>o&&"error"in o;return{paperConfig:r(e)?null:e,taxs:r(n)?null:n}}applyDataToStore(e,n){e&&this.store.onChangeShelfLabelConfig(e),n&&this.store.onChangeTaxs(n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-shelf-label"]],standalone:!0,features:[T],decls:4,vars:3,consts:[["content",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["sidebarConfig","label"],[3,"item"],["class","divider",4,"ngIf"],[1,"divider"]],template:function(n,r){n&1&&(s(0,1),f(1,U,2,0,"ng-container",2)(2,B,4,0,"ng-container",2)(3,G,2,0,"ng-container",3),m()),n&2&&(a("ngSwitch",r.store.stepper$().state),c(),a("ngSwitchCase",0),c(),a("ngSwitchCase",1))},dependencies:[k,A,O,R,P,x,$,M,H],styles:["[_nghost-%COMP%]{display:block}.divider[_ngcontent-%COMP%]{border:1px dashed #000;width:100%}"],changeDetection:0})}}return t})();export{pe as ShelfLabelComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as ne,e as ie,f as oe,g as re}from"./chunk-X4PZGB4F.js";import{a as A}from"./chunk-TRX4W32W.js";import{Q as te,W as E,e as $,f as y,h as W,i as Z,j as K,m as J,o as Q,p as X,r as Y,t as ee}from"./chunk-RH3ZV23S.js";import"./chunk-CARY4E7O.js";import{n as O}from"./chunk-LTVGOJEF.js";import{$b as v,C as V,Da as g,Ec as R,Fc as I,Ha as N,I as U,Jc as j,Kb as C,Kc as G,Rb as _,Sa as x,Ta as b,Vb as p,bc as T,cc as P,dc as L,ec as i,fc as o,gc as d,kc as w,nc as h,oc as c,od as q,q as F,qd as H,ra as D,sa as M,ub as k,wd as B,xc as l,yc as z,zb as a,zc as S}from"./chunk-UE2JJIFL.js";var ae=n=>({"is-invalid":n});function de(n,m){if(n&1&&(i(0,"swiper-slide")(1,"div",17),d(2,"img",18),i(3,"div",19)(4,"h4",20),l(5),o(),i(6,"div",21)(7,"p",22),l(8),o()()()()()),n&2){let e=m.$implicit;a(2),p("src",e.properties.imgSrc,k),a(3),S(" ",e.properties.title," "),a(3),S(" ",e.properties.description," ")}}function me(n,m){if(n&1&&(i(0,"ng-option",33)(1,"span",35),l(2),o()()),n&2){let e=m.$implicit;p("value",e),a(2),z(e)}}function pe(n,m){if(n&1){let e=w();i(0,"div",8)(1,"div",19)(2,"h3",23),l(3," DealPOS Barcode Apps "),o(),i(4,"p",24),l(5," Print Barcode label from your product catalog "),o()(),i(6,"div",25)(7,"div",26)(8,"div",27)(9,"span",28),d(10,"i",29),o(),d(11,"input",30),i(12,"span",31)(13,"ng-select",32),P(14,me,3,2,"ng-option",33,T),o()()()()(),i(16,"button",34),h("click",function(){x(e);let r=c();return b(r.onLoginState())}),l(17," Next "),o()()}if(n&2){let e=c();a(13),p("clearable",!1),a(),L(e.domains())}}function ce(n,m){n&1&&(i(0,"span"),l(1,"Username is required."),o())}function ue(n,m){if(n&1&&(i(0,"div",47),_(1,ce,2,0,"span",63),d(2,"span"),o()),n&2){let e,t=c(2);a(),p("ngIf",(e=t.form.get("username"))==null||e.errors==null?null:e.errors.required)}}function fe(n,m){if(n&1){let e=w();i(0,"i",66),h("click",function(){x(e);let r=c(3);return b(r.passwordInputType.set("text"))}),o()}}function ge(n,m){if(n&1){let e=w();i(0,"i",67),h("click",function(){x(e);let r=c(3);return b(r.passwordInputType.set("password"))}),o()}}function _e(n,m){if(n&1&&_(0,fe,1,0,"i",64)(1,ge,1,0,"i",65),n&2){let e=c(2);v(e.passwordInputType()==="password"?0:1)}}function he(n,m){n&1&&(i(0,"span"),l(1,"Password is required."),o())}function xe(n,m){if(n&1&&(i(0,"div",47),_(1,he,2,0,"span",63),d(2,"span"),o()),n&2){let e,t=c(2);a(),p("ngIf",(e=t.form.get("password"))==null||e.errors==null?null:e.errors.required)}}function be(n,m){if(n&1){let e=w();i(0,"div",9)(1,"div",36)(2,"h3",37),l(3,"Sign in"),o(),i(4,"p",38),l(5,"to"),o(),i(6,"div",39)(7,"p",40),l(8),o(),i(9,"a",41)(10,"i",42),h("click",function(){x(e);let r=c();return b(r.onLoginState())}),o()()()(),i(11,"div",19)(12,"div",43)(13,"span",44),d(14,"i",45),o(),d(15,"input",46),o(),_(16,ue,3,1,"div",47),o(),i(17,"div",19)(18,"div",48)(19,"span",44),d(20,"i",49),o(),i(21,"div",50),_(22,_e,2,1),d(23,"input",51),o()(),_(24,xe,3,1,"div",47),i(25,"div",52)(26,"a",53),l(27,"Forgot Password?"),o()()(),i(28,"button",54),l(29," Login "),o(),i(30,"div",55)(31,"div",56),d(32,"hr",57),i(33,"p",58),l(34,"or"),o(),d(35,"hr",57),o(),i(36,"button",59),h("click",function(){x(e);let r=c();return b(r.onSigninWithGoogle())}),i(37,"div",60),d(38,"i",61),i(39,"span",62),l(40,"Sign In with Google"),o()()()()()}if(n&2){let e,t,r,u,f,s=c();a(8),S(" (",s.hostFormField," ) "),a(7),p("ngClass",I(8,ae,((e=s.form.get("username"))==null?null:e.invalid)&&!((e=s.form.get("username"))!=null&&e.untouched))),a(),v((t=s.form.get("username"))!=null&&t.invalid&&!((t=s.form.get("username"))!=null&&t.untouched)?16:-1),a(6),v((r=s.form.get("password"))!=null&&r.value.length?22:-1),a(),p("ngClass",I(10,ae,((u=s.form.get("password"))==null?null:u.invalid)&&!((u=s.form.get("password"))!=null&&u.untouched)))("type",s.passwordInputType()),a(),v((f=s.form.get("password"))!=null&&f.invalid&&!((f=s.form.get("password"))!=null&&f.untouched)?24:-1),a(2),p("href","https://"+s.host+"/ForgotPassword",k)}}var le=(()=>{class n{constructor(){this.form=new K({}),this.loginState=C("FORM_DOMAIN"),this.news$=V([]),this.domains=C([".dealpos.co.id",".dealpos.net",".dealpos.com",".dealpos.app"]),this.passwordInputType=C("password"),this.onsubmit=onsubmit,this._destroy=new F,this.authService=g(E),this.fb=g(Y),this.httpService=g(te),this.version=C(""),this.router=g(O),this.regexSanitizeHostname=/^(https?):\/\/([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(\/.*)?$/}get hostFormField(){let e=this.form?.get("subDomain")?.value,t=this.form?.get("domain")?.value;if(e.match(this.regexSanitizeHostname)){let r=new URL(e);return r.origin.slice(0,r.origin.indexOf(".")).concat(t)}else return e.concat(t)}get domainStorage(){let e=this.authService.getDomain(),t=e.indexOf(".");return e.substring(t,e.length)}get host(){let{subDomain:e,domain:t}=this.form.value;return e+t}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(U(e=>e.items))}initForm(){let e=this.authService.getDomain(),[t,r]=e.split("."),u=localStorage.getItem("Username")??"";this.form=this.fb.group({subDomain:[t??"",y.required],domain:[e.substring(e.indexOf(".dealpos"))||this.domains()[0],y.required],username:[u,y.required],password:["",y.required]})}isValidUrl(e){try{return!!new URL(e)}catch{return!1}}onLogin(){let{subDomain:e,domain:t,username:r,password:u}=this.form.value,f="";e.match(this.regexSanitizeHostname)?f=e.replace(t,t):f=e.concat(t);let s={Host:this.isValidUrl(f)?new URL(f).hostname:f,Username:r,Password:u};this.authService.login(s).pipe(re("login"),M(this._destroy)).subscribe(()=>{this.router.navigate(["/print-mode"])})}onSigninWithGoogle(){let{subDomain:e,domain:t,username:r,password:u}=this.form.value;this.authService.signInWithPopup(e+t).pipe(M(this._destroy),D(()=>this.authService.redirectUrl())).subscribe()}onLoginState(){let e=this.loginState();if(e==="FORM_DOMAIN")this.loginState.set("FORM_AUTH");else if(e==="FORM_AUTH"){let t=this.form.get("subDomain").value;this.form.patchValue({subDomain:t.slice(0,t.indexOf("."))}),this.loginState.set("FORM_DOMAIN")}}ngOnDestroy(){this._destroy.next(),this._destroy.complete()}isAppVersionUpdated(){let e=localStorage.getItem("appVersion"),t=A.version;return!!(e&&t&&e.replaceAll(".","")!==t.replaceAll(".",""))}ngAfterViewInit(){this.version.set(A.version)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=N({type:n,selectors:[["app-login"]],standalone:!0,features:[R],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(t,r){t&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h4",4),l(5,"New Features"),o(),i(6,"swiper-container",5),P(7,de,9,3,"swiper-slide",null,T),j(9,"async"),o()(),i(10,"div",6)(11,"form",7),h("ngSubmit",function(){return r.onLogin()}),_(12,pe,18,1,"div",8)(13,be,41,12,"div",9),o()()()(),i(14,"div",10)(15,"div",11)(16,"p",12),l(17," Powered by: "),o(),d(18,"img",13),o(),i(19,"div",14)(20,"a",15)(21,"span",16),l(22),o()()()()()),t&2&&(a(7),L(G(9,4,r.news$)),a(4),p("formGroup",r.form),a(),v(r.loginState()==="FORM_DOMAIN"?12:13),a(8),p("href","https://changelog.dealpos.com/?categories=cat_IOl3P9ko0ayhv&view=complete&v"+r.version().replaceAll(".",""),k),a(2),S("Version ",r.version(),""))},dependencies:[H,q,ee,J,$,W,Z,Q,X,oe,ie,ne,B],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}"]})}}return n})();var se=(n,m)=>{let e=g(E),t=g(O);if(e.isAuthenticated()&&!e.isTokenExpired()&&e.checkAuthKeysExists())switch(localStorage.getItem("PrintMode")){case"barcode":return t.navigate(["pages/barcode"]);case"priceLabel":return t.createUrlTree(["/pages/shelf/price-label"],{queryParams:{step:0}});default:return t.createUrlTree(["/"])}return!0};var qe=[{path:"",component:le,canActivate:[se]}];export{qe as AUTH_ROUTES};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var i=function(s){return s[s.State=0]="State",s[s.Transition=1]="Transition",s[s.Sequence=2]="Sequence",s[s.Group=3]="Group",s[s.Animate=4]="Animate",s[s.Keyframes=5]="Keyframes",s[s.Style=6]="Style",s[s.Trigger=7]="Trigger",s[s.Reference=8]="Reference",s[s.AnimateChild=9]="AnimateChild",s[s.AnimateRef=10]="AnimateRef",s[s.Query=11]="Query",s[s.Stagger=12]="Stagger",s}(i||{}),c="*";function _(s,t){return{type:i.Trigger,name:s,definitions:t,options:{}}}function f(s,t=null){return{type:i.Animate,styles:t,timings:s}}function d(s,t=null){return{type:i.Group,steps:s,options:t}}function y(s,t=null){return{type:i.Sequence,steps:s,options:t}}function p(s){return{type:i.Style,styles:s,offset:null}}function m(s,t,e){return{type:i.State,name:s,styles:t,options:e}}function g(s){return{type:i.Keyframes,steps:s}}function D(s,t,e=null){return{type:i.Transition,expr:s,animation:t,options:e}}function F(s=null){return{type:i.AnimateChild,options:s}}function S(s,t,e=null){return{type:i.Query,selector:s,animation:t,options:e}}var a=class{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},l=class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,o=0,h=this.players.length;h==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(r=>{r.onDone(()=>{++e==h&&this._onFinish()}),r.onDestroy(()=>{++n==h&&this._onDestroy()}),r.onStart(()=>{++o==h&&this._onStart()})}),this.totalTime=this.players.reduce((r,u)=>Math.max(r,u.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let e=t*this.totalTime;this.players.forEach(n=>{let o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){let t=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},E="!";export{i as a,c as b,_ as c,f as d,d as e,y as f,p as g,m as h,g as i,D as j,F as k,S as l,a as m,l as n,E as o};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{F as Mn,G as In,H as kn,J as En,W as Sn,b as ke,f as si,g as yn,r as xn,s as wn,t as Cn}from"./chunk-RH3ZV23S.js";import{c as li,d as ci,e as di,g as It,h as kt,j as mi,k as pi,l as ui}from"./chunk-CARY4E7O.js";import{d as hn,k as fn,l as bn,n as gn,o as vn,q as _n}from"./chunk-LTVGOJEF.js";import{$ as Ge,$a as ge,$b as j,$c as ai,Aa as O,Ab as m,Ad as ht,C as L,Ca as h,Cb as xt,Cd as un,D as Ki,Da as A,Dc as ut,E as gt,Ea as Xe,Eb as on,Ec as D,Fa as Je,Fc as Zt,Gc as Xt,Ha as I,Hb as _e,I as B,Ia as g,J as Qi,Ja as F,Jb as ni,Jc as rn,Kb as lt,Kc as an,M as Kt,Mb as H,N as Ke,Nc as ri,O as me,Ob as rt,Q as Qe,Ra as Lt,Rb as k,S as Gi,Sa as nt,Ta as ot,U as Qt,Ua as $,Ub as G,V as Zi,Va as ti,Vb as u,Wa as jt,Wb as S,Xb as P,Xc as J,Yb as Gt,Z as Xi,Za as E,Zb as oi,Zc as at,_ as Ji,_a as Q,_c as sn,a as C,aa as pe,b as mt,bb as T,bc as ye,bd as ln,ca as st,cb as yt,cc as xe,d as jo,dc as we,e as zo,ec as l,fa as ue,fc as d,gb as ei,gc as v,ha as he,hb as ve,hd as K,ib as en,jc as pt,kc as ct,l as Nt,lc as Bt,n as Ye,na as tn,nc as R,oa as Ze,oc as f,pa as fe,pc as q,pd as cn,q as W,qa as vt,qc as Y,qd as dn,r as de,ra as _t,s as qe,sa as it,sb as zt,sc as X,ta as Z,tc as dt,ub as ii,uc as V,ud as mn,vc as U,vd as Ie,wa as be,wc as Ce,wd as pn,xa as x,xb as nn,xc as p,ya as b,yc as M,zb as s,zc as Me}from"./chunk-UE2JJIFL.js";var Gn=jo((jl,Qn)=>{var ur=4,hr=.001,fr=1e-7,br=10,ne=11,Fe=1/(ne-1),gr=typeof Float32Array=="function";function $n(e,o){return 1-3*o+3*e}function Yn(e,o){return 3*o-6*e}function qn(e){return 3*e}function Ae(e,o,t){return(($n(o,t)*e+Yn(o,t))*e+qn(o))*e}function Kn(e,o,t){return 3*$n(o,t)*e*e+2*Yn(o,t)*e+qn(o)}function vr(e,o,t,i,n){var r,a,c=0;do a=o+(t-o)/2,r=Ae(a,i,n)-e,r>0?t=a:o=a;while(Math.abs(r)>fr&&++c<br);return a}function _r(e,o,t,i){for(var n=0;n<ur;++n){var r=Kn(o,t,i);if(r===0)return o;var a=Ae(o,t,i)-e;o-=a/r}return o}function yr(e){return e}Qn.exports=function(o,t,i,n){if(!(0<=o&&o<=1&&0<=i&&i<=1))throw new Error("bezier x values must be in [0, 1] range");if(o===t&&i===n)return yr;for(var r=gr?new Float32Array(ne):new Array(ne),a=0;a<ne;++a)r[a]=Ae(a*Fe,o,i);function c(_){for(var y=0,w=1,Ft=ne-1;w!==Ft&&r[w]<=_;++w)y+=Fe;--w;var qt=(_-r[w])/(r[w+1]-r[w]),At=y+qt*Fe,Rt=Kn(At,o,i);return Rt>=hr?_r(_,At,o,i):Rt===0?At:vr(_,y,y+Fe,o,i)}return function(y){return y===0?0:y===1?1:Ae(c(y),t,n)}}});var Dn={equal:Bo};function On(e,o=Dn){let t=Object.keys(e),i=t.reduce((n,r)=>mt(C({},n),{[r]:lt(e[r],o)}),{});return{select(n,r=Dn){return ai(()=>n(i),r)},update(n,r){let a=i[n];typeof r=="function"?a.update(r):a.set(r)},reset(){t.forEach(n=>{i[n].set(e[n])})}}}function Bo(e,o){return e===o}var hi=(()=>{class e{constructor(){this.INITIAL_STATE={stepper:{state:0,min:0,max:2},shelfLabelConfig:{CurrencySymbolFontSize:12,NormalFontSize:12,PromotionPriceFontSize:12,PromotionDateFontSize:12,PromotionDescFontSize:12,ProductNameFontSize:12,ProductCodeFontSize:12,PrintDateFontSize:12,StoreNameFontSize:12,CompanyNameLabel:"",CurrencySymbol:""},productItems:[],productItemsSelected:{},paperConfig:{},sidebarExpanded:!0,paperConfiguration:{},taxs:[],options:{theme:"light",dir:"ltr",layout:"vertical",sidebartype:"full",sidebarpos:"fixed",headerpos:"fixed",boxed:"full",navbarbg:"skin6",sidebarbg:"skin6",logobg:"skin6",active:1,tabStatus:"justify",isCollapsed:!1,innerWidth:window.innerWidth,defaultSidebar:"full",showSettings:!1,showMobileMenu:!1,expandLogo:!1},stepperRef:void 0,outlet:{},paperSource:""},this.#t=On(this.INITIAL_STATE),this.stepper$=this.#t.select(t=>t.stepper()),this.productItems=this.#t.select(t=>t.productItems()),this.paperConfig=this.#t.select(t=>t.paperConfig()),this.sidebarExpanded=this.#t.select(t=>t.sidebarExpanded()),this.paperConfiguration=this.#t.select(t=>t.paperConfiguration()),this.paperShelfLabelConfig=this.#t.select(t=>t.shelfLabelConfig()),this.taxs=this.#t.select(t=>t.taxs()),this.options=this.#t.select(t=>t.options()),this.expandProductItems=this.#t.select(t=>t.productItems().flatMap(i=>new Array(i.Quantity).fill(C(C({},i),i.Print?.[0]||null)))),this.expandProductItem=this.#t.select(t=>{if(t.productItems().length){let[i]=t.productItems();return[C(C({},i),i.Print?.[0]||null)]}return[]}),this.productItemsSelected$=this.#t.select(t=>t.productItemsSelected()),this.stepperRef=this.#t.select(t=>t.stepperRef()),this.outlet$=this.#t.select(t=>{let i=t.paperConfig()?.Outlets,n=t.paperConfiguration()?.OutletID;if(!Array.isArray(i)||!n)return null;let r=i.findIndex(a=>a.ID===n);return r!==-1?i[r]:null}),this.paperSource=this.#t.select(t=>t.paperSource())}#t;onNextStep(){let t=this.stepper$().state+1;this.#t.update("stepper",mt(C({},this.stepper$()),{state:t}))}onPrevStep(){let t=this.stepper$().state-1;this.#t.update("stepper",mt(C({},this.stepper$()),{state:t}))}onGotoStepper(t){this.#t.update("stepper",mt(C({},this.stepper$()),{state:t}))}onChangeProductItems(t){this.#t.update("productItems",t)}onChangePaperConfig(t){this.#t.update("paperConfig",t)}onChangePaperConfiguration(t){this.#t.update("paperConfiguration",t)}onChangeTaxs(t){this.#t.update("taxs",t)}onChangeOptions(t){this.#t.update("options",C(C({},this.options()),t))}onChangeProductItemsSelected(t){this.#t.update("productItemsSelected",t)}onChangeStepperRef(t){this.#t.update("stepperRef",t)}onChangeShelfLabelConfig(t){this.#t.update("shelfLabelConfig",t)}onChangePaperSource(t){this.#t.update("paperSource",t)}onReset(){this.#t.reset()}onToggleSidebarType(){switch(this.options().sidebartype){case"full":case"iconbar":this.onChangeOptions({sidebartype:"mini-sidebar"});break;case"overlay":this.onChangeOptions({showMobileMenu:!this.options().showMobileMenu});break;case"mini-sidebar":this.options().defaultSidebar==="mini-sidebar"?this.onChangeOptions({sidebartype:"full"}):this.onChangeOptions({sidebartype:this.options().defaultSidebar});break;default:}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Ho=e=>({"background-color":e});function Vo(e,o){e&1&&pt(0)}function Uo(e,o){if(e&1&&v(0,"sk-cube-grid",4),e&2){let t=f(2);u("backgroundColor",t.backgroundColor)}}function Wo(e,o){if(e&1&&v(0,"sk-chasing-dots",4),e&2){let t=f(2);u("backgroundColor",t.backgroundColor)}}function $o(e,o){if(e&1&&v(0,"sk-double-bounce",4),e&2){let t=f(2);u("backgroundColor",t.backgroundColor)}}function Yo(e,o){if(e&1&&v(0,"sk-rotating-plane",4),e&2){let t=f(2);u("backgroundColor",t.backgroundColor)}}function qo(e,o){if(e&1&&v(0,"sk-spinner-pulse",4),e&2){let t=f(2);u("backgroundColor",t.backgroundColor)}}function Ko(e,o){if(e&1&&v(0,"sk-three-bounce",4),e&2){let t=f(2);u("backgroundColor",t.backgroundColor)}}function Qo(e,o){if(e&1&&v(0,"sk-wandering-cubes",4),e&2){let t=f(2);u("backgroundColor",t.backgroundColor)}}function Go(e,o){if(e&1&&v(0,"sk-wave",4),e&2){let t=f(2);u("backgroundColor",t.backgroundColor)}}function Zo(e,o){if(e&1&&(l(0,"div",1),k(1,Vo,1,0,"ng-container",2)(2,Uo,1,1,"sk-cube-grid",3)(3,Wo,1,1,"sk-chasing-dots",3)(4,$o,1,1,"sk-double-bounce",3)(5,Yo,1,1,"sk-rotating-plane",3)(6,qo,1,1,"sk-spinner-pulse",3)(7,Ko,1,1,"sk-three-bounce",3)(8,Qo,1,1,"sk-wandering-cubes",3)(9,Go,1,1,"sk-wave",3),d()),e&2){let t=f();S("opacity",t.opacity),P("backdrop",t.backdrop),u("ngStyle",Zt(14,Ho,t.backdrop?t.backdropBackgroundColor:"transparent")),s(),u("ngComponentOutlet",t.entryComponent),s(),u("ngIf",t.spinner===t.spinkit.skCubeGrid),s(),u("ngIf",t.spinner===t.spinkit.skChasingDots),s(),u("ngIf",t.spinner===t.spinkit.skDoubleBounce),s(),u("ngIf",t.spinner===t.spinkit.skRotatingPlane),s(),u("ngIf",t.spinner===t.spinkit.skSpinnerPulse),s(),u("ngIf",t.spinner===t.spinkit.skThreeBounce),s(),u("ngIf",t.spinner===t.spinkit.skWanderingCubes),s(),u("ngIf",t.spinner===t.spinkit.skWave)}}var wt=(()=>{class e{backgroundColor;static \u0275fac=function(i){return new(i||e)};static \u0275dir=F({type:e,inputs:{backgroundColor:"backgroundColor"}})}return e})(),Xo=(()=>{class e extends wt{static \u0275fac=(()=>{let t;return function(n){return(t||(t=$(e)))(n||e)}})();static \u0275cmp=I({type:e,selectors:[["sk-chasing-dots"]],standalone:!0,features:[H,D],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(i,n){i&1&&(l(0,"div",0),v(1,"div",1)(2,"div",2),d()),i&2&&(P("colored",!n.backgroundColor),s(),S("background-color",n.backgroundColor),s(),S("background-color",n.backgroundColor))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation:_ngcontent-%COMP%_sk-chasingDotsRotate 2s infinite linear}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:_ngcontent-%COMP%_sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]})}return e})(),Jo=(()=>{class e extends wt{static \u0275fac=(()=>{let t;return function(n){return(t||(t=$(e)))(n||e)}})();static \u0275cmp=I({type:e,selectors:[["sk-cube-grid"]],standalone:!0,features:[H,D],decls:10,vars:20,consts:[[1,"sk-cube-grid"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"],[1,"sk-cube","sk-cube3"],[1,"sk-cube","sk-cube4"],[1,"sk-cube","sk-cube5"],[1,"sk-cube","sk-cube6"],[1,"sk-cube","sk-cube7"],[1,"sk-cube","sk-cube8"],[1,"sk-cube","sk-cube9"]],template:function(i,n){i&1&&(l(0,"div",0),v(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),d()),i&2&&(P("colored",!n.backgroundColor),s(),S("background-color",n.backgroundColor),s(),S("background-color",n.backgroundColor),s(),S("background-color",n.backgroundColor),s(),S("background-color",n.backgroundColor),s(),S("background-color",n.backgroundColor),s(),S("background-color",n.backgroundColor),s(),S("background-color",n.backgroundColor),s(),S("background-color",n.backgroundColor),s(),S("background-color",n.backgroundColor))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:33.33%;height:33.33%;float:left;animation:_ngcontent-%COMP%_sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{animation-delay:.2s}@keyframes _ngcontent-%COMP%_sk-cubeGridScaleDelay{0%,70%,to{transform:scaleZ(1)}35%{transform:scale3D(0,0,1)}}"]})}return e})(),tr=(()=>{class e extends wt{static \u0275fac=(()=>{let t;return function(n){return(t||(t=$(e)))(n||e)}})();static \u0275cmp=I({type:e,selectors:[["sk-double-bounce"]],standalone:!0,features:[H,D],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(i,n){i&1&&(l(0,"div",0),v(1,"div",1)(2,"div",2),d()),i&2&&(P("colored",!n.backgroundColor),s(),S("background-color",n.backgroundColor),s(),S("background-color",n.backgroundColor))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{top:50%;width:40px;height:40px;position:relative;margin:auto}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]})}return e})(),er=(()=>{class e extends wt{static \u0275fac=(()=>{let t;return function(n){return(t||(t=$(e)))(n||e)}})();static \u0275cmp=I({type:e,selectors:[["sk-rotating-plane"]],standalone:!0,features:[H,D],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(i,n){i&1&&v(0,"div",0),i&2&&S("background-color",n.backgroundColor)},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:_ngcontent-%COMP%_sk-rotatePlane 1.2s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-rotatePlane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]})}return e})(),ir=(()=>{class e extends wt{static \u0275fac=(()=>{let t;return function(n){return(t||(t=$(e)))(n||e)}})();static \u0275cmp=I({type:e,selectors:[["sk-spinner-pulse"]],standalone:!0,features:[H,D],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(i,n){i&1&&v(0,"div",0),i&2&&S("background-color",n.backgroundColor)},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:_ngcontent-%COMP%_sk-pulseScaleOut 1s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]})}return e})(),nr=(()=>{class e extends wt{static \u0275fac=(()=>{let t;return function(n){return(t||(t=$(e)))(n||e)}})();static \u0275cmp=I({type:e,selectors:[["sk-three-bounce"]],standalone:!0,features:[H,D],decls:4,vars:8,consts:[[1,"sk-three-bounce"],[1,"sk-child","sk-bounce1"],[1,"sk-child","sk-bounce2"],[1,"sk-child","sk-bounce3"]],template:function(i,n){i&1&&(l(0,"div",0),v(1,"div",1)(2,"div",2)(3,"div",3),d()),i&2&&(P("colored",!n.backgroundColor),s(),S("background-color",n.backgroundColor),s(),S("background-color",n.backgroundColor),s(),S("background-color",n.backgroundColor))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:100%;display:inline-block;animation:_ngcontent-%COMP%_sk-three-bounce 1.4s ease-in-out 0s infinite both}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes _ngcontent-%COMP%_sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]})}return e})(),or=(()=>{class e extends wt{static \u0275fac=(()=>{let t;return function(n){return(t||(t=$(e)))(n||e)}})();static \u0275cmp=I({type:e,selectors:[["sk-wandering-cubes"]],standalone:!0,features:[H,D],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(i,n){i&1&&(l(0,"div",0),v(1,"div",1)(2,"div",2),d()),i&2&&(P("colored",!n.backgroundColor),s(),S("background-color",n.backgroundColor),s(),S("background-color",n.backgroundColor))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes _ngcontent-%COMP%_sk-wanderingCube{0%{transform:rotate(0)}25%{transform:translate(30px) rotate(-90deg) scale(.5)}50%{transform:translate(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translate(30px) translateY(30px) rotate(-180deg)}75%{transform:translate(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}"]})}return e})(),rr=(()=>{class e extends wt{static \u0275fac=(()=>{let t;return function(n){return(t||(t=$(e)))(n||e)}})();static \u0275cmp=I({type:e,selectors:[["sk-wave"]],standalone:!0,features:[H,D],decls:6,vars:12,consts:[[1,"sk-wave"],[1,"sk-rect","sk-rect1"],[1,"sk-rect","sk-rect2"],[1,"sk-rect","sk-rect3"],[1,"sk-rect","sk-rect4"],[1,"sk-rect","sk-rect5"]],template:function(i,n){i&1&&(l(0,"div",0),v(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),d()),i&2&&(P("colored",!n.backgroundColor),s(),S("background-color",n.backgroundColor),s(),S("background-color",n.backgroundColor),s(),S("background-color",n.backgroundColor),s(),S("background-color",n.backgroundColor),s(),S("background-color",n.backgroundColor))},styles:[".sk-wave[_ngcontent-%COMP%]{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{float:left;margin-right:1px;height:100%;width:6px;display:inline-block;animation:_ngcontent-%COMP%_sk-waveStretchDelay 1.2s infinite ease-in-out}.sk-wave[_ngcontent-%COMP%] .sk-rect1[_ngcontent-%COMP%]{animation-delay:-1.2s}.sk-wave[_ngcontent-%COMP%] .sk-rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.sk-wave[_ngcontent-%COMP%] .sk-rect3[_ngcontent-%COMP%]{animation-delay:-1s}.sk-wave[_ngcontent-%COMP%] .sk-rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.sk-wave[_ngcontent-%COMP%] .sk-rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes _ngcontent-%COMP%_sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]})}return e})(),Tn={skChasingDots:"sk-chasing-dots",skCubeGrid:"sk-cube-grid",skDoubleBounce:"sk-double-bounce",skRotatingPlane:"sk-rotationg-plane",skSpinnerPulse:"sk-spinner-pulse",skThreeBounce:"sk-three-bounce",skWanderingCubes:"sk-wandering-cubes",skWave:"sk-wave"};var fi=(()=>{class e{_pendingRequests=0;_pendingRequestsStatus$=new qe(1);_filteredUrlPatterns=[];_filteredMethods=[];_filteredHeaders=[];_forceByPass=!1;get pendingRequestsStatus$(){return this._pendingRequestsStatus$.asObservable()}get pendingRequestsStatusSubject$(){return this._pendingRequestsStatus$}get pendingRequests(){return this._pendingRequests}set pendingRequests(t){this._pendingRequests=t}get filteredUrlPatterns(){return this._filteredUrlPatterns}set filteredMethods(t){this._filteredMethods=t}set filteredHeaders(t){this._filteredHeaders=t}set forceByPass(t){this._forceByPass=t}shouldBypassUrl(t){return this._filteredUrlPatterns.some(i=>i.test(t))}shouldBypassMethod(t){return this._filteredMethods.some(i=>i.toUpperCase()===t.method.toUpperCase())}shouldBypassHeader(t){return this._filteredHeaders.some(i=>t.headers.has(i))}shouldBypass(t){return this._forceByPass||this.shouldBypassUrl(t.urlWithParams)||this.shouldBypassMethod(t)||this.shouldBypassHeader(t)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ar=(()=>{class e{pendingRequestsInterceptorConfigurer;_visibility$=new qe(1);constructor(t){this.pendingRequestsInterceptorConfigurer=t}get visibility$(){return this._visibility$.asObservable()}show(){this.pendingRequestsInterceptorConfigurer.forceByPass=!0,this._visibility$.next(!0)}hide(){this._visibility$.next(!1),this.pendingRequestsInterceptorConfigurer.forceByPass=!1}static \u0275fac=function(i){return new(i||e)(h(fi))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Gs=(()=>{class e{pendingRequestsInterceptorConfigurer;spinnerVisibility;spinkit=Tn;isVisible$;visibleUntil=Date.now();backdrop=!0;backgroundColor;debounceDelay=0;entryComponent;extraDuration=0;filteredHeaders=[];filteredMethods=[];filteredUrlPatterns=[];minDuration=0;opacity=".7";backdropBackgroundColor="#f1f1f1";spinner=Tn.skWave;constructor(t,i){this.pendingRequestsInterceptorConfigurer=t,this.spinnerVisibility=i}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){let[t,i]=Zi(this.pendingRequestsInterceptorConfigurer.pendingRequestsStatus$,n=>n);this.isVisible$=Gi(this.pendingRequestsInterceptorConfigurer.pendingRequestsStatus$.pipe(_t(()=>t.pipe(Ge(()=>Qe(this.debounceDelay))))),t.pipe(_t(()=>i.pipe(Ge(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe(ue(),Z(n=>this.updateExpirationDelay(n)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(t=>this.pendingRequestsInterceptorConfigurer.filteredUrlPatterns.push(new RegExp(t)))}initFilteredMethods(){this.pendingRequestsInterceptorConfigurer.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptorConfigurer.filteredHeaders=this.filteredHeaders}updateExpirationDelay(t){t&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return Qe(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}static \u0275fac=function(i){return new(i||e)(m(fi),m(ar))};static \u0275cmp=I({type:e,selectors:[["ng-http-loader"]],inputs:{backdrop:"backdrop",backgroundColor:"backgroundColor",debounceDelay:"debounceDelay",entryComponent:"entryComponent",extraDuration:"extraDuration",filteredHeaders:"filteredHeaders",filteredMethods:"filteredMethods",filteredUrlPatterns:"filteredUrlPatterns",minDuration:"minDuration",opacity:"opacity",backdropBackgroundColor:"backdropBackgroundColor",spinner:"spinner"},standalone:!0,features:[D],decls:2,vars:3,consts:[["id","spinner",3,"backdrop","opacity","ngStyle",4,"ngIf"],["id","spinner",3,"ngStyle"],[4,"ngComponentOutlet"],[3,"backgroundColor",4,"ngIf"],[3,"backgroundColor"]],template:function(i,n){i&1&&(k(0,Zo,10,16,"div",0),rn(1,"async")),i&2&&u("ngIf",an(1,1,n.isVisible$))},dependencies:[Jo,Xo,tr,er,ir,nr,or,rr,mn,cn,dn,pn],styles:["#spinner[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%);position:fixed;z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{top:0;left:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;transform:none} .colored-parent, .colored>div{background-color:#333}"]})}return e})();function Zs(e,o){let t=A(fi),i=t.shouldBypass(e);return i||(t.pendingRequests++,t.pendingRequests===1&&t.pendingRequestsStatusSubject$.next(!0)),o(e).pipe(he(()=>{i||(t.pendingRequests--,t.pendingRequests===0&&t.pendingRequestsStatusSubject$.next(!1))}))}var Ee=class{constructor(o){this.icons=o}};var Se=(()=>{class e{constructor(t){if(this.icons=t,!this.icons)throw new Error(`No icon provided. Make sure to use 'FeatherModule.pick({ ... })' when importing the module
|
|
2
|
+
Refer to documentation on https://github.com/michaelbazos/angular-feather`)}static pick(t){return{ngModule:e,providers:[{provide:Ee,multi:!0,useValue:t}]}}}return e.\u0275fac=function(t){return new(t||e)(h(Ee,8))},e.\u0275mod=g({type:e}),e.\u0275inj=b({}),e})();var Ht=class{},Pn=(()=>{class e extends Ht{getTranslation(t){return L({})}}return e.\u0275fac=(()=>{let o;return function(i){return(o||(o=$(e)))(i||e)}})(),e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),Jt=class{},Fn=(()=>{class e{handle(t){return t.key}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function Et(e){return typeof e<"u"&&e!==null}function bi(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ln(e,o){let t=Object.assign({},e);return bi(e)&&bi(o)&&Object.keys(o).forEach(i=>{bi(o[i])?i in e?t[i]=Ln(e[i],o[i]):Object.assign(t,{[i]:o[i]}):Object.assign(t,{[i]:o[i]})}),t}var Vt=class{},An=(()=>{class e extends Vt{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,i){let n;return typeof t=="string"?n=this.interpolateString(t,i):typeof t=="function"?n=this.interpolateFunction(t,i):n=t,n}getValue(t,i){let n=typeof i=="string"?i.split("."):[i];i="";do i+=n.shift(),Et(t)&&Et(t[i])&&(typeof t[i]=="object"||!n.length)?(t=t[i],i=""):n.length?i+=".":t=void 0;while(n.length);return t}interpolateFunction(t,i){return t(i)}interpolateString(t,i){return i?t.replace(this.templateMatcher,(n,r)=>{let a=this.getValue(i,r);return Et(a)?a:n}):t}}return e.\u0275fac=(()=>{let o;return function(i){return(o||(o=$(e)))(i||e)}})(),e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),Ut=class{},Rn=(()=>{class e extends Ut{compile(t,i){return t}compileTranslations(t,i){return t}}return e.\u0275fac=(()=>{let o;return function(i){return(o||(o=$(e)))(i||e)}})(),e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),De=class{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new E,this.onLangChange=new E,this.onDefaultLangChange=new E}},gi=new O("USE_STORE"),vi=new O("USE_DEFAULT_LANG"),_i=new O("DEFAULT_LANGUAGE"),yi=new O("USE_EXTEND"),Nn=(()=>{class e{constructor(t,i,n,r,a,c=!0,_=!1,y=!1,w){this.store=t,this.currentLoader=i,this.compiler=n,this.parser=r,this.missingTranslationHandler=a,this.useDefaultLang=c,this.isolate=_,this.extend=y,this.pending=!1,this._onTranslationChange=new E,this._onLangChange=new E,this._onDefaultLangChange=new E,this._langs=[],this._translations={},this._translationRequests={},w&&this.setDefaultLang(w)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let i=this.retrieveTranslations(t);typeof i<"u"?(this.defaultLang==null&&(this.defaultLang=t),i.pipe(st(1)).subscribe(n=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return L(this.translations[t]);let i=this.retrieveTranslations(t);return typeof i<"u"?(this.currentLang||(this.currentLang=t),i.pipe(st(1)).subscribe(n=>{this.changeLang(t)}),i):(this.changeLang(t),L(this.translations[t]))}retrieveTranslations(t){let i;return(typeof this.translations[t]>"u"||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),i=this._translationRequests[t]),i}getTranslation(t){this.pending=!0;let i=this.currentLoader.getTranslation(t).pipe(Ze(1),st(1));return this.loadingTranslations=i.pipe(B(n=>this.compiler.compileTranslations(n,t)),Ze(1),st(1)),this.loadingTranslations.subscribe({next:n=>{this.translations[t]=this.extend&&this.translations[t]?C(C({},n),this.translations[t]):n,this.updateLangs(),this.pending=!1},error:n=>{this.pending=!1}}),i}setTranslation(t,i,n=!1){i=this.compiler.compileTranslations(i,t),(n||this.extend)&&this.translations[t]?this.translations[t]=Ln(this.translations[t],i):this.translations[t]=i,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(i=>{this.langs.indexOf(i)===-1&&this.langs.push(i)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,i,n){let r;if(i instanceof Array){let a={},c=!1;for(let _ of i)a[_]=this.getParsedResult(t,_,n),gt(a[_])&&(c=!0);if(c){let _=i.map(y=>gt(a[y])?a[y]:L(a[y]));return me(_).pipe(B(y=>{let w={};return y.forEach((Ft,qt)=>{w[i[qt]]=Ft}),w}))}return a}if(t&&(r=this.parser.interpolate(this.parser.getValue(t,i),n)),typeof r>"u"&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],i),n)),typeof r>"u"){let a={key:i,translateService:this};typeof n<"u"&&(a.interpolateParams=n),r=this.missingTranslationHandler.handle(a)}return typeof r<"u"?r:i}get(t,i){if(!Et(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Ji(n=>(n=this.getParsedResult(n,t,i),gt(n)?n:L(n))));{let n=this.getParsedResult(this.translations[this.currentLang],t,i);return gt(n)?n:L(n)}}getStreamOnTranslationChange(t,i){if(!Et(t)||!t.length)throw new Error('Parameter "key" required');return Kt(Ke(()=>this.get(t,i)),this.onTranslationChange.pipe(_t(n=>{let r=this.getParsedResult(n.translations,t,i);return typeof r.subscribe=="function"?r:L(r)})))}stream(t,i){if(!Et(t)||!t.length)throw new Error('Parameter "key" required');return Kt(Ke(()=>this.get(t,i)),this.onLangChange.pipe(_t(n=>{let r=this.getParsedResult(n.translations,t,i);return gt(r)?r:L(r)})))}instant(t,i){if(!Et(t)||!t.length)throw new Error('Parameter "key" required');let n=this.getParsedResult(this.translations[this.currentLang],t,i);if(gt(n)){if(t instanceof Array){let r={};return t.forEach((a,c)=>{r[t[c]]=t[c]}),r}return t}else return n}set(t,i,n=this.currentLang){this.translations[n][t]=this.compiler.compile(i,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),this.defaultLang==null&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let t=window.navigator.languages?window.navigator.languages[0]:null;if(t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,!(typeof t>"u"))return t.indexOf("-")!==-1&&(t=t.split("-")[0]),t.indexOf("_")!==-1&&(t=t.split("_")[0]),t}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return e.\u0275fac=function(t){return new(t||e)(h(De),h(Ht),h(Ut),h(Vt),h(Jt),h(vi),h(gi),h(yi),h(_i))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();var jn=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[t.loader||{provide:Ht,useClass:Pn},t.compiler||{provide:Ut,useClass:Rn},t.parser||{provide:Vt,useClass:An},t.missingTranslationHandler||{provide:Jt,useClass:Fn},De,{provide:gi,useValue:t.isolate},{provide:vi,useValue:t.useDefaultLang},{provide:yi,useValue:t.extend},{provide:_i,useValue:t.defaultLanguage},Nn]}}static forChild(t={}){return{ngModule:e,providers:[t.loader||{provide:Ht,useClass:Pn},t.compiler||{provide:Ut,useClass:Rn},t.parser||{provide:Vt,useClass:An},t.missingTranslationHandler||{provide:Jt,useClass:Fn},{provide:gi,useValue:t.isolate},{provide:vi,useValue:t.useDefaultLang},{provide:yi,useValue:t.extend},{provide:_i,useValue:t.defaultLanguage},Nn]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=g({type:e}),e.\u0275inj=b({}),e})();var sr=new O("cdk-dir-doc",{providedIn:"root",factory:lr});function lr(){return A(K)}var cr=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function dr(e){let o=e?.toLowerCase()||"";return o==="auto"&&typeof navigator<"u"&&navigator?.language?cr.test(navigator.language)?"rtl":"ltr":o==="rtl"?"rtl":"ltr"}var Oe=(()=>{class e{constructor(t){if(this.value="ltr",this.change=new E,t){let i=t.body?t.body.dir:null,n=t.documentElement?t.documentElement.dir:null;this.value=dr(i||n||"ltr")}}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(i){return new(i||e)(h(sr,8))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var St=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=g({type:e})}static{this.\u0275inj=b({})}}return e})();var te=class{attach(o){return this._attachedHost=o,o.attach(this)}detach(){let o=this._attachedHost;o!=null&&(this._attachedHost=null,o.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(o){this._attachedHost=o}},xi=class extends te{constructor(o,t,i,n,r){super(),this.component=o,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=n,this.projectableNodes=r}},ee=class extends te{constructor(o,t,i,n){super(),this.templateRef=o,this.viewContainerRef=t,this.context=i,this.injector=n}get origin(){return this.templateRef.elementRef}attach(o,t=this.context){return this.context=t,super.attach(o)}detach(){return this.context=void 0,super.detach()}},wi=class extends te{constructor(o){super(),this.element=o instanceof T?o.nativeElement:o}},Te=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(o){if(o instanceof xi)return this._attachedPortal=o,this.attachComponentPortal(o);if(o instanceof ee)return this._attachedPortal=o,this.attachTemplatePortal(o);if(this.attachDomPortal&&o instanceof wi)return this._attachedPortal=o,this.attachDomPortal(o)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(o){this._disposeFn=o}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var Bn=class extends Te{constructor(o,t,i,n,r){super(),this.outletElement=o,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=a=>{this._document;let c=a.element;c.parentNode;let _=this._document.createComment("dom-portal");c.parentNode.insertBefore(_,c),this.outletElement.appendChild(c),this._attachedPortal=a,super.setDisposeFn(()=>{_.parentNode&&_.parentNode.replaceChild(c,_)})},this._document=r}attachComponentPortal(o){let i=(o.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(o.component),n;return o.viewContainerRef?(n=o.viewContainerRef.createComponent(i,o.viewContainerRef.length,o.injector||o.viewContainerRef.injector,o.projectableNodes||void 0),this.setDisposeFn(()=>n.destroy())):(n=i.create(o.injector||this._defaultInjector||jt.NULL),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=o,n}attachTemplatePortal(o){let t=o.viewContainerRef,i=t.createEmbeddedView(o.templateRef,o.context,{injector:o.injector});return i.rootNodes.forEach(n=>this.outletElement.appendChild(n)),i.detectChanges(),this.setDisposeFn(()=>{let n=t.indexOf(i);n!==-1&&t.remove(n)}),this._attachedPortal=o,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(o){return o.hostView.rootNodes[0]}};var Hn=(()=>{class e extends Te{constructor(t,i,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new E,this.attachDomPortal=r=>{this._document;let a=r.element;a.parentNode;let c=this._document.createComment("dom-portal");r.setAttachedHost(this),a.parentNode.insertBefore(c,a),this._getRootNode().appendChild(a),this._attachedPortal=r,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(t){t.setAttachedHost(this);let i=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,r=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),a=i.createComponent(r,i.length,t.injector||i.injector,t.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=t,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(t){t.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}static{this.\u0275fac=function(i){return new(i||e)(m(on),m(_e),m(K))}}static{this.\u0275dir=F({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[H]})}}return e})();var Pe=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=g({type:e})}static{this.\u0275inj=b({})}}return e})();var Mi;try{Mi=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Mi=!1}var tt=(()=>{class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?un(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||Mi)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(i){return new(i||e)(h(ei))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Vn=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=g({type:e})}static{this.\u0275inj=b({})}}return e})();var ie;function mr(){if(ie==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ie=!0}))}finally{ie=ie||!1}return ie}function Wt(e){return mr()?e:!!e.capture}var Dt;function Al(){if(Dt==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Dt=!1,Dt;if("scrollBehavior"in document.documentElement.style)Dt=!0;else{let e=Element.prototype.scrollTo;e?Dt=!/\{\s*\[native code\]\s*\}/.test(e.toString()):Dt=!1}}return Dt}var Ci;function pr(){if(Ci==null){let e=typeof document<"u"?document.head:null;Ci=!!(e&&(e.createShadowRoot||e.attachShadow))}return Ci}function Un(e){if(pr()){let o=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&o instanceof ShadowRoot)return o}return null}function Ii(){let e=typeof document<"u"&&document?document.activeElement:null;for(;e&&e.shadowRoot;){let o=e.shadowRoot.activeElement;if(o===e)break;e=o}return e}function Ct(e){return e.composedPath?e.composedPath()[0]:e.target}function Wn(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Ei(e){return Array.isArray(e)?e:[e]}function Nl(e){return e==null?"":typeof e=="string"?e:`${e}px`}function Ot(e){return e instanceof T?e.nativeElement:e}var xr=zo(Gn(),1);var $l=new O("SMOOTH_SCROLL_OPTIONS");var Zn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=g({type:e}),e.\u0275inj=b({}),e})();var wr=new O("NG_SCROLLBAR_OPTIONS");var bc=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:wr,useValue:t}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=g({type:e}),e.\u0275inj=b({imports:[ht,St,Pe,Vn,Zn]}),e})();var Xn=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=g({type:e})}static{this.\u0275inj=b({})}}return e})();function $t(e,...o){return o.length?o.some(t=>e[t]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}var Cr=(()=>{class e{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Jn=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=g({type:e})}static{this.\u0275inj=b({providers:[Cr]})}}return e})();var to=new Set,Tt,Mr=(()=>{class e{constructor(t,i){this._platform=t,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):kr}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&Ir(t,this._nonce),this._matchMedia(t)}static{this.\u0275fac=function(i){return new(i||e)(h(tt),h(en,8))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Ir(e,o){if(!to.has(e))try{Tt||(Tt=document.createElement("style"),o&&Tt.setAttribute("nonce",o),Tt.setAttribute("type","text/css"),document.head.appendChild(Tt)),Tt.sheet&&(Tt.sheet.insertRule(`@media ${e} {body{ }}`,0),to.add(e))}catch(t){console.error(t)}}function kr(e){return{matches:e==="all"||e==="",media:e,addListener:()=>{},removeListener:()=>{}}}var io=(()=>{class e{constructor(t,i){this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new W}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return eo(Ei(t)).some(n=>this._registerQuery(n).mql.matches)}observe(t){let n=eo(Ei(t)).map(a=>this._registerQuery(a).observable),r=Qi(n);return r=Kt(r.pipe(st(1)),r.pipe(fe(1),pe(0))),r.pipe(B(a=>{let c={matches:!1,breakpoints:{}};return a.forEach(({matches:_,query:y})=>{c.matches=c.matches||_,c.breakpoints[y]=_}),c}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let i=this._mediaMatcher.matchMedia(t),r={observable:new Ye(a=>{let c=_=>this._zone.run(()=>a.next(_));return i.addListener(c),()=>{i.removeListener(c)}}).pipe(vt(i),B(({matches:a})=>({query:t,matches:a})),it(this._destroySubject)),mql:i};return this._queries.set(t,r),r}static{this.\u0275fac=function(i){return new(i||e)(h(Mr),h(Q))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function eo(e){return e.map(o=>o.split(",")).reduce((o,t)=>o.concat(t)).map(o=>o.trim())}var Pc={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var ao=" ";function Zc(e,o,t){let i=so(e,o);t=t.trim(),!i.some(n=>n.trim()===t)&&(i.push(t),e.setAttribute(o,i.join(ao)))}function Xc(e,o,t){let i=so(e,o);t=t.trim();let n=i.filter(r=>r!==t);n.length?e.setAttribute(o,n.join(ao)):e.removeAttribute(o)}function so(e,o){return e.getAttribute(o)?.match(/\S+/g)??[]}var $r=200,Di=class{constructor(o,t){this._letterKeyStream=new W,this._items=[],this._selectedItemIndex=-1,this._pressedLetters=[],this._selectedItem=new W,this.selectedItem=this._selectedItem;let i=typeof t?.debounceInterval=="number"?t.debounceInterval:$r;t?.skipPredicate&&(this._skipPredicateFn=t.skipPredicate),this.setItems(o),this._setupKeyHandler(i)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(o){this._selectedItemIndex=o}setItems(o){this._items=o}handleKey(o){let t=o.keyCode;o.key&&o.key.length===1?this._letterKeyStream.next(o.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(o){this._letterKeyStream.pipe(Z(t=>this._pressedLetters.push(t)),pe(o),Qt(()=>this._pressedLetters.length>0),B(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(t=>{for(let i=1;i<this._items.length+1;i++){let n=(this._selectedItemIndex+i)%this._items.length,r=this._items[n];if(!this._skipPredicateFn?.(r)&&r.getLabel?.().toLocaleUpperCase().trim().indexOf(t)===0){this._selectedItem.next(r);break}}this._pressedLetters=[]})}},Le=class{constructor(o,t){this._items=o,this._activeItemIndex=-1,this._activeItem=lt(null),this._wrap=!1,this._typeaheadSubscription=Nt.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=i=>i.disabled,this.tabOut=new W,this.change=new W,o instanceof yt?this._itemChangesSubscription=o.changes.subscribe(i=>this._itemsChanged(i.toArray())):ni(o)&&(this._effectRef=ln(()=>this._itemsChanged(o()),{injector:t}))}skipPredicate(o){return this._skipPredicateFn=o,this}withWrap(o=!0){return this._wrap=o,this}withVerticalOrientation(o=!0){return this._vertical=o,this}withHorizontalOrientation(o){return this._horizontal=o,this}withAllowedModifierKeys(o){return this._allowedModifierKeys=o,this}withTypeAhead(o=200){this._typeaheadSubscription.unsubscribe();let t=this._getItemsArray();return this._typeahead=new Di(t,{debounceInterval:typeof o=="number"?o:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(o=!0){return this._homeAndEnd=o,this}withPageUpDown(o=!0,t=10){return this._pageUpAndDown={enabled:o,delta:t},this}setActiveItem(o){let t=this._activeItem();this.updateActiveItem(o),this._activeItem()!==t&&this.change.next(this._activeItemIndex)}onKeydown(o){let t=o.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!o[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(t){case 9:this.tabOut.next();return;case 40:if(this._vertical&&n){this.setNextItemActive();break}else return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&n){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&n){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&n){let r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&n){let r=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r<a?r:a-1,-1);break}else return;default:(n||$t(o,"shiftKey"))&&this._typeahead?.handleKey(o);return}this._typeahead?.reset(),o.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(o){let t=this._getItemsArray(),i=typeof o=="number"?o:t.indexOf(o),n=t[i];this._activeItem.set(n??null),this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i)}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(o){this._wrap?this._setActiveInWrapMode(o):this._setActiveInDefaultMode(o)}_setActiveInWrapMode(o){let t=this._getItemsArray();for(let i=1;i<=t.length;i++){let n=(this._activeItemIndex+o*i+t.length)%t.length,r=t[n];if(!this._skipPredicateFn(r)){this.setActiveItem(n);return}}}_setActiveInDefaultMode(o){this._setActiveItemByIndex(this._activeItemIndex+o,o)}_setActiveItemByIndex(o,t){let i=this._getItemsArray();if(i[o]){for(;this._skipPredicateFn(i[o]);)if(o+=t,!i[o])return;this.setActiveItem(o)}}_getItemsArray(){return ni(this._items)?this._items():this._items instanceof yt?this._items.toArray():this._items}_itemsChanged(o){this._typeahead?.setItems(o);let t=this._activeItem();if(t){let i=o.indexOf(t);i>-1&&i!==this._activeItemIndex&&(this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i))}}},no=class extends Le{setActiveItem(o){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(o),this.activeItem&&this.activeItem.setActiveStyles()}},je=class extends Le{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(o){return this._origin=o,this}setActiveItem(o){super.setActiveItem(o),this.activeItem&&this.activeItem.focus(this._origin)}};function Oi(e){return e.buttons===0||e.detail===0}function Ti(e){let o=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!!o&&o.identifier===-1&&(o.radiusX==null||o.radiusX===1)&&(o.radiusY==null||o.radiusY===1)}var Yr=new O("cdk-input-modality-detector-options"),qr={ignoreKeys:[18,17,224,91,16]},lo=650,Yt=Wt({passive:!0,capture:!0}),Kr=(()=>{class e{get mostRecentModality(){return this._modality.value}constructor(t,i,n,r){this._platform=t,this._mostRecentTarget=null,this._modality=new de(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(c=>c===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ct(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<lo||(this._modality.next(Oi(a)?"keyboard":"mouse"),this._mostRecentTarget=Ct(a))},this._onTouchstart=a=>{if(Ti(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ct(a)},this._options=C(C({},qr),r),this.modalityDetected=this._modality.pipe(fe(1)),this.modalityChanged=this.modalityDetected.pipe(ue()),t.isBrowser&&i.runOutsideAngular(()=>{n.addEventListener("keydown",this._onKeydown,Yt),n.addEventListener("mousedown",this._onMousedown,Yt),n.addEventListener("touchstart",this._onTouchstart,Yt)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Yt),document.removeEventListener("mousedown",this._onMousedown,Yt),document.removeEventListener("touchstart",this._onTouchstart,Yt))}static{this.\u0275fac=function(i){return new(i||e)(h(tt),h(Q),h(K),h(Yr,8))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Ne=function(e){return e[e.IMMEDIATE=0]="IMMEDIATE",e[e.EVENTUAL=1]="EVENTUAL",e}(Ne||{}),Qr=new O("cdk-focus-monitor-default-options"),Re=Wt({passive:!0,capture:!0}),co=(()=>{class e{constructor(t,i,n,r,a){this._ngZone=t,this._platform=i,this._inputModalityDetector=n,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new W,this._rootNodeFocusAndBlurListener=c=>{let _=Ct(c);for(let y=_;y;y=y.parentElement)c.type==="focus"?this._onFocus(c,y):this._onBlur(c,y)},this._document=r,this._detectionMode=a?.detectionMode||Ne.IMMEDIATE}monitor(t,i=!1){let n=Ot(t);if(!this._platform.isBrowser||n.nodeType!==1)return L();let r=Un(n)||this._getDocument(),a=this._elementInfo.get(n);if(a)return i&&(a.checkChildren=!0),a.subject;let c={checkChildren:i,subject:new W,rootNode:r};return this._elementInfo.set(n,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(t){let i=Ot(t),n=this._elementInfo.get(i);n&&(n.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(n))}focusVia(t,i,n){let r=Ot(t),a=this._getDocument().activeElement;r===a?this._getClosestElementsInfo(r).forEach(([c,_])=>this._originChanged(c,i,_)):(this._setOrigin(i),typeof r.focus=="function"&&r.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===Ne.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused",i==="touch"),t.classList.toggle("cdk-keyboard-focused",i==="keyboard"),t.classList.toggle("cdk-mouse-focused",i==="mouse"),t.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=t,this._originFromTouchInteraction=t==="touch"&&i,this._detectionMode===Ne.IMMEDIATE){clearTimeout(this._originTimeoutId);let n=this._originFromTouchInteraction?lo:1;this._originTimeoutId=setTimeout(()=>this._origin=null,n)}})}_onFocus(t,i){let n=this._elementInfo.get(i),r=Ct(t);!n||!n.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),n)}_onBlur(t,i){let n=this._elementInfo.get(i);!n||n.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(n,null))}_emitOrigin(t,i){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let i=t.rootNode,n=this._rootNodeFocusListenerCount.get(i)||0;n||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Re),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Re)}),this._rootNodeFocusListenerCount.set(i,n+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(it(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(t){let i=t.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let n=this._rootNodeFocusListenerCount.get(i);n>1?this._rootNodeFocusListenerCount.set(i,n-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Re),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Re),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,n){this._setClasses(t,i),this._emitOrigin(n,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){let i=[];return this._elementInfo.forEach((n,r)=>{(r===t||n.checkChildren&&r.contains(t))&&i.push([r,n])}),i}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:i,mostRecentModality:n}=this._inputModalityDetector;if(n!=="mouse"||!i||i===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return!1;let r=t.labels;if(r){for(let a=0;a<r.length;a++)if(r[a].contains(i))return!0}return!1}static{this.\u0275fac=function(i){return new(i||e)(h(Q),h(tt),h(Kr),h(K,8),h(Qr,8))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Pt=function(e){return e[e.NONE=0]="NONE",e[e.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",e[e.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",e}(Pt||{}),oo="cdk-high-contrast-black-on-white",ro="cdk-high-contrast-white-on-black",Si="cdk-high-contrast-active",mo=(()=>{class e{constructor(t,i){this._platform=t,this._document=i,this._breakpointSubscription=A(io).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Pt.NONE;let t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);let i=this._document.defaultView||window,n=i&&i.getComputedStyle?i.getComputedStyle(t):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(t.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Pt.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Pt.BLACK_ON_WHITE}return Pt.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let t=this._document.body.classList;t.remove(Si,oo,ro),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===Pt.BLACK_ON_WHITE?t.add(Si,oo):i===Pt.WHITE_ON_BLACK&&t.add(Si,ro)}}static{this.\u0275fac=function(i){return new(i||e)(h(tt),h(K))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Gr=["text"],Zr=[[["mat-icon"]],"*"],Xr=["mat-icon","*"];function Jr(e,o){if(e&1&&v(0,"mat-pseudo-checkbox",1),e&2){let t=f();u("disabled",t.disabled)("state",t.selected?"checked":"unchecked")}}function ta(e,o){if(e&1&&v(0,"mat-pseudo-checkbox",3),e&2){let t=f();u("disabled",t.disabled)}}function ea(e,o){if(e&1&&(l(0,"span",4),p(1),d()),e&2){let t=f();s(),Me("(",t.group.label,")")}}function ia(){return!0}var na=new O("mat-sanity-checks",{providedIn:"root",factory:ia}),z=(()=>{class e{constructor(t,i,n){this._sanityChecks=i,this._document=n,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return Wn()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[t]}static{this.\u0275fac=function(i){return new(i||e)(h(mo),h(na,8),h(K))}}static{this.\u0275mod=g({type:e})}static{this.\u0275inj=b({imports:[St,St]})}}return e})();var oe=(()=>{class e{isErrorState(t,i){return!!(t&&t.invalid&&(t.touched||i&&i.submitted))}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var et=function(e){return e[e.FADING_IN=0]="FADING_IN",e[e.VISIBLE=1]="VISIBLE",e[e.FADING_OUT=2]="FADING_OUT",e[e.HIDDEN=3]="HIDDEN",e}(et||{}),Pi=class{constructor(o,t,i,n=!1){this._renderer=o,this.element=t,this.config=i,this._animationForciblyDisabledThroughCss=n,this.state=et.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},uo=Wt({passive:!0,capture:!0}),Fi=class{constructor(){this._events=new Map,this._delegateEventHandler=o=>{let t=Ct(o);t&&this._events.get(o.type)?.forEach((i,n)=>{(n===t||n.contains(t))&&i.forEach(r=>r.handleEvent(o))})}}addHandler(o,t,i,n){let r=this._events.get(t);if(r){let a=r.get(i);a?a.add(n):r.set(i,new Set([n]))}else this._events.set(t,new Map([[i,new Set([n])]])),o.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,uo)})}removeHandler(o,t,i){let n=this._events.get(o);if(!n)return;let r=n.get(t);r&&(r.delete(i),r.size===0&&n.delete(t),n.size===0&&(this._events.delete(o),document.removeEventListener(o,this._delegateEventHandler,uo)))}},ho={enterDuration:225,exitDuration:150},oa=800,fo=Wt({passive:!0,capture:!0}),bo=["mousedown","touchstart"],go=["mouseup","mouseleave","touchend","touchcancel"],Ai=class e{static{this._eventManager=new Fi}constructor(o,t,i,n){this._target=o,this._ngZone=t,this._platform=n,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=Ot(i))}fadeInRipple(o,t,i={}){let n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=C(C({},ho),i.animation);i.centered&&(o=n.left+n.width/2,t=n.top+n.height/2);let a=i.radius||ra(o,t,n),c=o-n.left,_=t-n.top,y=r.enterDuration,w=document.createElement("div");w.classList.add("mat-ripple-element"),w.style.left=`${c-a}px`,w.style.top=`${_-a}px`,w.style.height=`${a*2}px`,w.style.width=`${a*2}px`,i.color!=null&&(w.style.backgroundColor=i.color),w.style.transitionDuration=`${y}ms`,this._containerElement.appendChild(w);let Ft=window.getComputedStyle(w),qt=Ft.transitionProperty,At=Ft.transitionDuration,Rt=qt==="none"||At==="0s"||At==="0s, 0s"||n.width===0&&n.height===0,Mt=new Pi(this,w,i,Rt);w.style.transform="scale3d(1, 1, 1)",Mt.state=et.FADING_IN,i.persistent||(this._mostRecentTransientRipple=Mt);let ce=null;return!Rt&&(y||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let Yi=()=>{ce&&(ce.fallbackTimer=null),clearTimeout(qi),this._finishRippleTransition(Mt)},$e=()=>this._destroyRipple(Mt),qi=setTimeout($e,y+100);w.addEventListener("transitionend",Yi),w.addEventListener("transitioncancel",$e),ce={onTransitionEnd:Yi,onTransitionCancel:$e,fallbackTimer:qi}}),this._activeRipples.set(Mt,ce),(Rt||!y)&&this._finishRippleTransition(Mt),Mt}fadeOutRipple(o){if(o.state===et.FADING_OUT||o.state===et.HIDDEN)return;let t=o.element,i=C(C({},ho),o.config.animation);t.style.transitionDuration=`${i.exitDuration}ms`,t.style.opacity="0",o.state=et.FADING_OUT,(o._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(o)}fadeOutAll(){this._getActiveRipples().forEach(o=>o.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(o=>{o.config.persistent||o.fadeOut()})}setupTriggerEvents(o){let t=Ot(o);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,bo.forEach(i=>{e._eventManager.addHandler(this._ngZone,i,t,this)}))}handleEvent(o){o.type==="mousedown"?this._onMousedown(o):o.type==="touchstart"?this._onTouchStart(o):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{go.forEach(t=>{this._triggerElement.addEventListener(t,this,fo)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(o){o.state===et.FADING_IN?this._startFadeOutTransition(o):o.state===et.FADING_OUT&&this._destroyRipple(o)}_startFadeOutTransition(o){let t=o===this._mostRecentTransientRipple,{persistent:i}=o.config;o.state=et.VISIBLE,!i&&(!t||!this._isPointerDown)&&o.fadeOut()}_destroyRipple(o){let t=this._activeRipples.get(o)??null;this._activeRipples.delete(o),this._activeRipples.size||(this._containerRect=null),o===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),o.state=et.HIDDEN,t!==null&&(o.element.removeEventListener("transitionend",t.onTransitionEnd),o.element.removeEventListener("transitioncancel",t.onTransitionCancel),t.fallbackTimer!==null&&clearTimeout(t.fallbackTimer)),o.element.remove()}_onMousedown(o){let t=Oi(o),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+oa;!this._target.rippleDisabled&&!t&&!i&&(this._isPointerDown=!0,this.fadeInRipple(o.clientX,o.clientY,this._target.rippleConfig))}_onTouchStart(o){if(!this._target.rippleDisabled&&!Ti(o)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let t=o.changedTouches;if(t)for(let i=0;i<t.length;i++)this.fadeInRipple(t[i].clientX,t[i].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(o=>{let t=o.state===et.VISIBLE||o.config.terminateOnPointerUp&&o.state===et.FADING_IN;!o.config.persistent&&t&&o.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let o=this._triggerElement;o&&(bo.forEach(t=>e._eventManager.removeHandler(t,o,this)),this._pointerUpEventsRegistered&&(go.forEach(t=>o.removeEventListener(t,this,fo)),this._pointerUpEventsRegistered=!1))}};function ra(e,o,t){let i=Math.max(Math.abs(e-t.left),Math.abs(e-t.right)),n=Math.max(Math.abs(o-t.top),Math.abs(o-t.bottom));return Math.sqrt(i*i+n*n)}var aa=new O("mat-ripple-global-options"),ji=(()=>{class e{get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}constructor(t,i,n,r,a){this._elementRef=t,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Ai(this,i,t,n)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:C(C(C({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,i=0,n){return typeof t=="number"?this._rippleRenderer.fadeInRipple(t,i,C(C({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,C(C({},this.rippleConfig),t))}static{this.\u0275fac=function(i){return new(i||e)(m(T),m(Q),m(tt),m(aa,8),m(ve,8))}}static{this.\u0275dir=F({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,n){i&2&&P("mat-ripple-unbounded",n.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}}return e})(),re=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=g({type:e})}static{this.\u0275inj=b({imports:[z,z]})}}return e})(),sa=(()=>{class e{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1,this.appearance="full"}static{this.\u0275fac=function(i){return new(i||e)(m(ve,8))}}static{this.\u0275cmp=I({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,n){i&2&&P("mat-pseudo-checkbox-indeterminate",n.state==="indeterminate")("mat-pseudo-checkbox-checked",n.state==="checked")("mat-pseudo-checkbox-disabled",n.disabled)("mat-pseudo-checkbox-minimal",n.appearance==="minimal")("mat-pseudo-checkbox-full",n.appearance==="full")("_mat-animation-noopable",n._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[D],decls:0,vars:0,template:function(i,n){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-app-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-app-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-app-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}}return e})(),la=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=g({type:e})}static{this.\u0275inj=b({imports:[z]})}}return e})(),ca=new O("MAT_OPTION_PARENT_COMPONENT");var da=new O("MatOptgroup");var ma=0,Ri=class{constructor(o,t=!1){this.source=o,this.isUserInput=t}},Cd=(()=>{class e{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=t}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(t,i,n,r){this._element=t,this._changeDetectorRef=i,this._parent=n,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${ma++}`,this.onSelectionChange=new E,this._stateChanges=new W}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(t=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}deselect(t=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}focus(t,i){let n=this._getHostElement();typeof n.focus=="function"&&n.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!$t(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=t)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new Ri(this,t))}static{this.\u0275fac=function(i){return new(i||e)(m(T),m(J),m(ca,8),m(da,8))}}static{this.\u0275cmp=I({type:e,selectors:[["mat-option"]],viewQuery:function(i,n){if(i&1&&dt(Gr,7),i&2){let r;V(r=U())&&(n._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,n){i&1&&R("click",function(){return n._selectViaInteraction()})("keydown",function(a){return n._handleKeydown(a)}),i&2&&(Bt("id",n.id),G("aria-selected",n.selected)("aria-disabled",n.disabled.toString()),P("mdc-list-item--selected",n.selected)("mat-mdc-option-multiple",n.multiple)("mat-mdc-option-active",n.active)("mdc-list-item--disabled",n.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",at]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[rt,D],ngContentSelectors:Xr,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,n){i&1&&(q(Zr),k(0,Jr,1,2,"mat-pseudo-checkbox",1),Y(1),l(2,"span",2,0),Y(4,1),d(),k(5,ta,1,1,"mat-pseudo-checkbox",3)(6,ea,2,1,"span",4),v(7,"div",5)),i&2&&(j(n.multiple?0:-1),s(5),j(!n.multiple&&n.selected&&!n.hideSingleSelectionIndicator?5:-1),s(),j(n.group&&n.group._inert?6:-1),s(),u("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},dependencies:[sa,ji],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-app-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-app-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-app-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color);outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-app-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return e})();function Md(e,o,t){if(t.length){let i=o.toArray(),n=t.toArray(),r=0;for(let a=0;a<e+1;a++)i[a].group&&i[a].group===n[r]&&r++;return r}return 0}function Id(e,o,t,i){return e<t?e:e+o>t+i?Math.max(0,e-i+o):t}var kd=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=g({type:e})}static{this.\u0275inj=b({imports:[re,z,la]})}}return e})();var ua=new O("MatFormField");var ae=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=g({type:e})}static{this.\u0275inj=b({imports:[z,ht,Jn,z]})}}return e})();var vo=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=g({type:e})}static{this.\u0275inj=b({imports:[z,ae,ae,Xn,z]})}}return e})();var ha=["*"];function fa(e,o){e&1&&Y(0)}var zi=(()=>{class e{constructor(t){this._elementRef=t}focus(){this._elementRef.nativeElement.focus()}static{this.\u0275fac=function(i){return new(i||e)(m(T))}}static{this.\u0275dir=F({type:e,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"],standalone:!0})}}return e})(),Bi=(()=>{class e{constructor(t){this.template=t}static{this.\u0275fac=function(i){return new(i||e)(m(xt))}}static{this.\u0275dir=F({type:e,selectors:[["","cdkStepLabel",""]],standalone:!0})}}return e})(),ba=0;var ft={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},Hi=new O("STEPPER_GLOBAL_OPTIONS"),ze=(()=>{class e{get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(t){this._completedOverride=t}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(t){this._customError=t}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(t,i){this._stepper=t,this.interacted=!1,this.interactedStream=new E,this.editable=!0,this.optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=i||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&(this._childForms?.forEach(t=>t.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError!=null}static{this.\u0275fac=function(i){return new(i||e)(m(be(()=>Be)),m(Hi,8))}}static{this.\u0275cmp=I({type:e,selectors:[["cdk-step"]],contentQueries:function(i,n,r){if(i&1&&(X(r,Bi,5),X(r,yn,5)),i&2){let a;V(a=U())&&(n.stepLabel=a.first),V(a=U())&&(n._childForms=a)}},viewQuery:function(i,n){if(i&1&&dt(xt,7),i&2){let r;V(r=U())&&(n.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",at],optional:[2,"optional","optional",at],completed:[2,"completed","completed",at],hasError:[2,"hasError","hasError",at]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],standalone:!0,features:[rt,Lt,D],ngContentSelectors:ha,decls:1,vars:0,template:function(i,n){i&1&&(q(),k(0,fa,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}}return e})(),Be=(()=>{class e{get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this.steps&&this._steps?(this._isValidIndex(t),this.selected?._markAsInteracted(),this._selectedIndex!==t&&!this._anyControlsInvalidOrPending(t)&&(t>=this._selectedIndex||this.steps.toArray()[t].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=t}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(t){this.selectedIndex=t&&this.steps?this.steps.toArray().indexOf(t):-1}get orientation(){return this._orientation}set orientation(t){this._orientation=t,this._keyManager&&this._keyManager.withVerticalOrientation(t==="vertical")}constructor(t,i,n){this._dir=t,this._changeDetectorRef=i,this._elementRef=n,this._destroyed=new W,this.steps=new yt,this._sortedHeaders=new yt,this.linear=!1,this._selectedIndex=0,this.selectionChange=new E,this.selectedIndexChange=new E,this._orientation="horizontal",this._groupId=ba++}ngAfterContentInit(){this._steps.changes.pipe(vt(this._steps),it(this._destroyed)).subscribe(t=>{this.steps.reset(t.filter(i=>i._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(vt(this._stepHeader),it(this._destroyed)).subscribe(t=>{this._sortedHeaders.reset(t.toArray().sort((i,n)=>i._elementRef.nativeElement.compareDocumentPosition(n._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new je(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),(this._dir?this._dir.change:L()).pipe(vt(this._layoutDirection()),it(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(t=>t.reset()),this._stateChanged()}_getStepLabelId(t){return`cdk-step-label-${this._groupId}-${t}`}_getStepContentId(t){return`cdk-step-content-${this._groupId}-${t}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(t){let i=t-this._selectedIndex;return i<0?this._layoutDirection()==="rtl"?"next":"previous":i>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(t,i=ft.NUMBER){let n=this.steps.toArray()[t],r=this._isCurrentStep(t);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,r):this._getGuidelineLogic(n,r,i)}_getDefaultIndicatorLogic(t,i){return t._showError()&&t.hasError&&!i?ft.ERROR:!t.completed||i?ft.NUMBER:t.editable?ft.EDIT:ft.DONE}_getGuidelineLogic(t,i,n=ft.NUMBER){return t._showError()&&t.hasError&&!i?ft.ERROR:t.completed&&!i?ft.DONE:t.completed&&i?n:t.editable&&i?ft.EDIT:n}_isCurrentStep(t){return this._selectedIndex===t}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(t){let i=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:i[t],previouslySelectedStep:i[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(t){let i=$t(t),n=t.keyCode,r=this._keyManager;r.activeItemIndex!=null&&!i&&(n===32||n===13)?(this.selectedIndex=r.activeItemIndex,t.preventDefault()):r.setFocusOrigin("keyboard").onKeydown(t)}_anyControlsInvalidOrPending(t){return this.linear&&t>=0?this.steps.toArray().slice(0,t).some(i=>{let n=i.stepControl;return(n?n.invalid||n.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let t=this._elementRef.nativeElement,i=Ii();return t===i||t.contains(i)}_isValidIndex(t){return t>-1&&(!this.steps||t<this.steps.length)}static{this.\u0275fac=function(i){return new(i||e)(m(Oe,8),m(J),m(T))}}static{this.\u0275dir=F({type:e,selectors:[["","cdkStepper",""]],contentQueries:function(i,n,r){if(i&1&&(X(r,ze,5),X(r,zi,5)),i&2){let a;V(a=U())&&(n._steps=a),V(a=U())&&(n._stepHeader=a)}},inputs:{linear:[2,"linear","linear",at],selectedIndex:[2,"selectedIndex","selectedIndex",sn],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"],standalone:!0,features:[rt]})}}return e})();var _o=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=g({type:e})}static{this.\u0275inj=b({imports:[St]})}}return e})();var ga=["*"],He;function va(){if(He===void 0&&(He=null,typeof window<"u")){let e=window;e.trustedTypes!==void 0&&(He=e.trustedTypes.createPolicy("angular#components",{createHTML:o=>o}))}return He}function se(e){return va()?.createHTML(e)||e}function yo(e){return Error(`Unable to find icon with the name "${e}"`)}function _a(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function xo(e){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${e}".`)}function wo(e){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${e}".`)}var bt=class{constructor(o,t,i){this.url=o,this.svgText=t,this.options=i}},ya=(()=>{class e{constructor(t,i,n,r){this._httpClient=t,this._sanitizer=i,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=n}addSvgIcon(t,i,n){return this.addSvgIconInNamespace("",t,i,n)}addSvgIconLiteral(t,i,n){return this.addSvgIconLiteralInNamespace("",t,i,n)}addSvgIconInNamespace(t,i,n,r){return this._addSvgIconConfig(t,i,new bt(n,null,r))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,i,n,r){let a=this._sanitizer.sanitize(zt.HTML,n);if(!a)throw wo(n);let c=se(a);return this._addSvgIconConfig(t,i,new bt("",c,r))}addSvgIconSet(t,i){return this.addSvgIconSetInNamespace("",t,i)}addSvgIconSetLiteral(t,i){return this.addSvgIconSetLiteralInNamespace("",t,i)}addSvgIconSetInNamespace(t,i,n){return this._addSvgIconSetConfig(t,new bt(i,null,n))}addSvgIconSetLiteralInNamespace(t,i,n){let r=this._sanitizer.sanitize(zt.HTML,i);if(!r)throw wo(i);let a=se(r);return this._addSvgIconSetConfig(t,new bt("",a,n))}registerFontClassAlias(t,i=t){return this._fontCssClassesByAlias.set(t,i),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){let i=this._sanitizer.sanitize(zt.RESOURCE_URL,t);if(!i)throw xo(t);let n=this._cachedIconsByUrl.get(i);return n?L(Ve(n)):this._loadSvgIconFromConfig(new bt(t,null)).pipe(Z(r=>this._cachedIconsByUrl.set(i,r)),B(r=>Ve(r)))}getNamedSvgIcon(t,i=""){let n=Co(i,t),r=this._svgIconConfigs.get(n);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(i,t),r)return this._svgIconConfigs.set(n,r),this._getSvgFromConfig(r);let a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(t,a):Ki(yo(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?L(Ve(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(B(i=>Ve(i)))}_getSvgFromIconSetConfigs(t,i){let n=this._extractIconWithNameFromAnySet(t,i);if(n)return L(n);let r=i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Xi(c=>{let y=`Loading icon set URL: ${this._sanitizer.sanitize(zt.RESOURCE_URL,a.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(y)),L(null)})));return me(r).pipe(B(()=>{let a=this._extractIconWithNameFromAnySet(t,i);if(!a)throw yo(t);return a}))}_extractIconWithNameFromAnySet(t,i){for(let n=i.length-1;n>=0;n--){let r=i[n];if(r.svgText&&r.svgText.toString().indexOf(t)>-1){let a=this._svgElementFromConfig(r),c=this._extractSvgIconFromSet(a,t,r.options);if(c)return c}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Z(i=>t.svgText=i),B(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?L(null):this._fetchIcon(t).pipe(Z(i=>t.svgText=i))}_extractSvgIconFromSet(t,i,n){let r=t.querySelector(`[id="${i}"]`);if(!r)return null;let a=r.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,n);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),n);let c=this._svgElementFromString(se("<svg></svg>"));return c.appendChild(a),this._setSvgAttributes(c,n)}_svgElementFromString(t){let i=this._document.createElement("DIV");i.innerHTML=t;let n=i.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(t){let i=this._svgElementFromString(se("<svg></svg>")),n=t.attributes;for(let r=0;r<n.length;r++){let{name:a,value:c}=n[r];a!=="id"&&i.setAttribute(a,c)}for(let r=0;r<t.childNodes.length;r++)t.childNodes[r].nodeType===this._document.ELEMENT_NODE&&i.appendChild(t.childNodes[r].cloneNode(!0));return i}_setSvgAttributes(t,i){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),i&&i.viewBox&&t.setAttribute("viewBox",i.viewBox),t}_fetchIcon(t){let{url:i,options:n}=t,r=n?.withCredentials??!1;if(!this._httpClient)throw _a();if(i==null)throw Error(`Cannot fetch icon from URL "${i}".`);let a=this._sanitizer.sanitize(zt.RESOURCE_URL,i);if(!a)throw xo(i);let c=this._inProgressUrlFetches.get(a);if(c)return c;let _=this._httpClient.get(a,{responseType:"text",withCredentials:r}).pipe(B(y=>se(y)),he(()=>this._inProgressUrlFetches.delete(a)),tn());return this._inProgressUrlFetches.set(a,_),_}_addSvgIconConfig(t,i,n){return this._svgIconConfigs.set(Co(t,i),n),this}_addSvgIconSetConfig(t,i){let n=this._iconSetConfigs.get(t);return n?n.push(i):this._iconSetConfigs.set(t,[i]),this}_svgElementFromConfig(t){if(!t.svgElement){let i=this._svgElementFromString(t.svgText);this._setSvgAttributes(i,t.options),t.svgElement=i}return t.svgElement}_getIconConfigFromResolvers(t,i){for(let n=0;n<this._resolvers.length;n++){let r=this._resolvers[n](i,t);if(r)return xa(r)?new bt(r.url,null,r.options):new bt(r,null)}}static{this.\u0275fac=function(i){return new(i||e)(h(hn,8),h(fn),h(K,8),h(ge))}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Ve(e){return e.cloneNode(!0)}function Co(e,o){return e+":"+o}function xa(e){return!!(e.url&&e.options)}var wa=new O("MAT_ICON_DEFAULT_OPTIONS"),Ca=new O("mat-icon-location",{providedIn:"root",factory:Ma});function Ma(){let e=A(K),o=e?e.location:null;return{getPathname:()=>o?o.pathname+o.search:""}}var Mo=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Ia=Mo.map(e=>`[${e}]`).join(", "),ka=/^url\(['"]?#(.*?)['"]?\)$/,Io=(()=>{class e{get color(){return this._color||this._defaultColor}set color(t){this._color=t}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){let i=this._cleanupFontValue(t);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){let i=this._cleanupFontValue(t);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(t,i,n,r,a,c){this._elementRef=t,this._iconRegistry=i,this._location=r,this._errorHandler=a,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Nt.EMPTY,c&&(c.color&&(this.color=this._defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),n||t.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(t){if(!t)return["",""];let i=t.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let t=this._elementsWithExternalReferences;if(t&&t.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){let t=this._elementRef.nativeElement,i=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let n=t.childNodes[i];(n.nodeType!==1||n.nodeName.toLowerCase()==="svg")&&n.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let t=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(n=>n.length>0);this._previousFontSetClass.forEach(n=>t.classList.remove(n)),i.forEach(n=>t.classList.add(n)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return typeof t=="string"?t.trim().split(" ")[0]:t}_prependPathToReferences(t){let i=this._elementsWithExternalReferences;i&&i.forEach((n,r)=>{n.forEach(a=>{r.setAttribute(a.name,`url('${t}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(t){let i=t.querySelectorAll(Ia),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r<i.length;r++)Mo.forEach(a=>{let c=i[r],_=c.getAttribute(a),y=_?_.match(ka):null;if(y){let w=n.get(c);w||(w=[],n.set(c,w)),w.push({name:a,value:y[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){let[i,n]=this._splitIconName(t);i&&(this._svgNamespace=i),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,i).pipe(st(1)).subscribe(r=>this._setSvgElement(r),r=>{let a=`Error retrieving icon ${i}:${n}! ${r.message}`;this._errorHandler.handleError(new Error(a))})}}static{this.\u0275fac=function(i){return new(i||e)(m(T),m(ya),ti("aria-hidden"),m(Ca),m(ge),m(wa,8))}}static{this.\u0275cmp=I({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,n){i&2&&(G("data-mat-icon-type",n._usingFontIcon()?"font":"svg")("data-mat-icon-name",n._svgName||n.fontIcon)("data-mat-icon-namespace",n._svgNamespace||n.fontSet)("fontIcon",n._usingFontIcon()?n.fontIcon:null),Gt(n.color?"mat-"+n.color:""),P("mat-icon-inline",n.inline)("mat-icon-no-color",n.color!=="primary"&&n.color!=="accent"&&n.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",at],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[rt,D],ngContentSelectors:ga,decls:1,vars:0,template:function(i,n){i&1&&(q(),Y(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}}return e})(),ko=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=g({type:e})}static{this.\u0275inj=b({imports:[z,z]})}}return e})();function Ea(e,o){if(e&1&&pt(0,2),e&2){let t=f();u("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function Sa(e,o){if(e&1&&(l(0,"span",7),p(1),d()),e&2){let t=f(2);s(),M(t._getDefaultTextForState(t.state))}}function Da(e,o){if(e&1&&(l(0,"span",8),p(1),d()),e&2){let t=f(3);s(),M(t._intl.completedLabel)}}function Oa(e,o){if(e&1&&(l(0,"span",8),p(1),d()),e&2){let t=f(3);s(),M(t._intl.editableLabel)}}function Ta(e,o){if(e&1&&(k(0,Da,2,1,"span",8)(1,Oa,2,1,"span",8),l(2,"mat-icon",7),p(3),d()),e&2){let t=f(2);j(t.state==="done"?0:t.state==="edit"?1:-1),s(3),M(t._getDefaultTextForState(t.state))}}function Pa(e,o){if(e&1&&k(0,Sa,2,1,"span",7)(1,Ta,4,2,"mat-icon",7),e&2){let t,i=f();j((t=i.state)==="number"?0:1)}}function Fa(e,o){e&1&&(l(0,"div",4),pt(1,9),d()),e&2&&(s(),u("ngTemplateOutlet",o.template))}function Aa(e,o){if(e&1&&(l(0,"div",4),p(1),d()),e&2){let t=f();s(),M(t.label)}}function Ra(e,o){if(e&1&&(l(0,"div",5),p(1),d()),e&2){let t=f();s(),M(t._intl.optionalLabel)}}function Na(e,o){if(e&1&&(l(0,"div",6),p(1),d()),e&2){let t=f();s(),M(t.errorMessage)}}var So=["*"];function La(e,o){}function ja(e,o){if(e&1&&(Y(0),k(1,La,0,0,"ng-template",0)),e&2){let t=f();s(),u("cdkPortalOutlet",t._portal)}}var Do=(e,o)=>({step:e,i:o}),Oo=e=>({animationDuration:e}),To=(e,o)=>({value:e,params:o});function za(e,o){e&1&&Y(0)}function Ba(e,o){e&1&&v(0,"div",6)}function Ha(e,o){if(e&1&&(pt(0,5),k(1,Ba,1,0,"div",6)),e&2){let t=o.$implicit,i=o.$index,n=o.$count;f(2);let r=Ce(4);u("ngTemplateOutlet",r)("ngTemplateOutletContext",Xt(3,Do,t,i)),s(),j(i!==n-1?1:-1)}}function Va(e,o){if(e&1){let t=ct();l(0,"div",7),R("@horizontalStepTransition.done",function(n){nt(t);let r=f(2);return ot(r._animationDone.next(n))}),pt(1,8),d()}if(e&2){let t=o.$implicit,i=o.$index,n=f(2);P("mat-horizontal-stepper-content-inactive",n.selectedIndex!==i),u("@horizontalStepTransition",Xt(8,To,n._getAnimationDirection(i),Zt(6,Oo,n._getAnimationDuration())))("id",n._getStepContentId(i)),G("aria-labelledby",n._getStepLabelId(i)),s(),u("ngTemplateOutlet",t.content)}}function Ua(e,o){if(e&1&&(l(0,"div",1)(1,"div",2),xe(2,Ha,2,6,null,null,ye),d(),l(4,"div",3),xe(5,Va,2,11,"div",4,ye),d()()),e&2){let t=f();s(2),we(t.steps),s(3),we(t.steps)}}function Wa(e,o){if(e&1){let t=ct();l(0,"div",9),pt(1,5),l(2,"div",10)(3,"div",11),R("@verticalStepTransition.done",function(n){nt(t);let r=f(2);return ot(r._animationDone.next(n))}),l(4,"div",12),pt(5,8),d()()()()}if(e&2){let t=o.$implicit,i=o.$index,n=o.$count,r=f(2),a=Ce(4);s(),u("ngTemplateOutlet",a)("ngTemplateOutletContext",Xt(10,Do,t,i)),s(),P("mat-stepper-vertical-line",i!==n-1),s(),P("mat-vertical-stepper-content-inactive",r.selectedIndex!==i),u("@verticalStepTransition",Xt(15,To,r._getAnimationDirection(i),Zt(13,Oo,r._getAnimationDuration())))("id",r._getStepContentId(i)),G("aria-labelledby",r._getStepLabelId(i)),s(2),u("ngTemplateOutlet",t.content)}}function $a(e,o){if(e&1&&xe(0,Wa,6,18,"div",9,ye),e&2){let t=f();we(t.steps)}}function Ya(e,o){if(e&1){let t=ct();l(0,"mat-step-header",13),R("click",function(){let n=nt(t).step;return ot(n.select())})("keydown",function(n){nt(t);let r=f();return ot(r._onKeydown(n))}),d()}if(e&2){let t=o.step,i=o.i,n=f();P("mat-horizontal-stepper-header",n.orientation==="horizontal")("mat-vertical-stepper-header",n.orientation==="vertical"),u("tabIndex",n._getFocusIndex()===i?0:-1)("id",n._getStepLabelId(i))("index",i)("state",n._getIndicatorType(i,t.state))("label",t.stepLabel||t.label)("selected",n.selectedIndex===i)("active",n._stepIsNavigable(i,t))("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple||!n._stepIsNavigable(i,t))("color",t.color||n.color),G("aria-posinset",i+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(i))("aria-selected",n.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null)("aria-disabled",n._stepIsNavigable(i,t)?null:!0)}}var le=(()=>{class e extends Bi{static{this.\u0275fac=(()=>{let t;return function(n){return(t||(t=$(e)))(n||e)}})()}static{this.\u0275dir=F({type:e,selectors:[["","matStepLabel",""]],standalone:!0,features:[H]})}}return e})(),Ue=(()=>{class e{constructor(){this.changes=new W,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function qa(e){return e||new Ue}var Ka={provide:Ue,deps:[[new Xe,new Je,Ue]],useFactory:qa},Vi=(()=>{class e extends zi{constructor(t,i,n,r){super(n),this._intl=t,this._focusMonitor=i,this._intlSubscription=t.changes.subscribe(()=>r.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,i){t?this._focusMonitor.focusVia(this._elementRef,t,i):this._elementRef.nativeElement.focus(i)}_stringLabel(){return this.label instanceof le?null:this.label}_templateLabel(){return this.label instanceof le?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(t){return t=="number"?`${this.index+1}`:t=="edit"?"create":t=="error"?"warning":t}static{this.\u0275fac=function(i){return new(i||e)(m(Ue),m(co),m(T),m(J))}}static{this.\u0275cmp=I({type:e,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(i,n){i&2&&Gt("mat-"+(n.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},standalone:!0,features:[H,D],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(i,n){if(i&1&&(v(0,"div",0),l(1,"div")(2,"div",1),k(3,Ea,1,2,"ng-container",2)(4,Pa,2,1),d()(),l(5,"div",3),k(6,Fa,2,1,"div",4)(7,Aa,2,1,"div",4)(8,Ra,2,1,"div",5)(9,Na,2,1,"div",6),d()),i&2){let r;u("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disableRipple),s(),oi("mat-step-icon-state-",n.state," mat-step-icon"),P("mat-step-icon-selected",n.selected),s(2),j(n.iconOverrides&&n.iconOverrides[n.state]?3:4),s(2),P("mat-step-label-active",n.active)("mat-step-label-selected",n.selected)("mat-step-label-error",n.state=="error"),s(),j((r=n._templateLabel())?6:n._stringLabel()?7:-1,r),s(2),j(n.optional&&n.state!="error"?8:-1),s(),j(n.state==="error"?9:-1)}},dependencies:[ji,Ie,Io],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color);border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-app-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color);border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-app-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-app-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-app-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-app-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-app-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-app-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-app-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-app-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-app-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-app-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-app-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-app-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-app-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-app-title-small-weight))}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-app-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-app-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-app-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-app-on-primary))}'],encapsulation:2,changeDetection:0})}}return e})(),Po="500ms",Fo="225ms",Eo={horizontalStepTransition:li("horizontalStepTransition",[kt("previous",It({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),kt("current",It({transform:"none",visibility:"inherit"})),kt("next",It({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),mi("* => *",di([ci("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),ui("@*",pi(),{optional:!0})]),{params:{animationDuration:Po}})]),verticalStepTransition:li("verticalStepTransition",[kt("previous",It({height:"0px",visibility:"hidden"})),kt("next",It({height:"0px",visibility:"hidden"})),kt("current",It({height:"*",visibility:"inherit"})),mi("* <=> current",di([ci("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),ui("@*",pi(),{optional:!0})]),{params:{animationDuration:Fo}})])},Ui=(()=>{class e{constructor(t){this.templateRef=t}static{this.\u0275fac=function(i){return new(i||e)(m(xt))}}static{this.\u0275dir=F({type:e,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]},standalone:!0})}}return e})(),Wi=(()=>{class e{constructor(t){this._template=t}static{this.\u0275fac=function(i){return new(i||e)(m(xt))}}static{this.\u0275dir=F({type:e,selectors:[["ng-template","matStepContent",""]],standalone:!0})}}return e})(),$i=(()=>{class e extends ze{constructor(t,i,n,r){super(t,r),this._errorStateMatcher=i,this._viewContainerRef=n,this._isSelected=Nt.EMPTY,this.stepLabel=void 0}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(_t(()=>this._stepper.selectionChange.pipe(B(t=>t.selectedStep===this),vt(this._stepper.selected===this)))).subscribe(t=>{t&&this._lazyContent&&!this._portal&&(this._portal=new ee(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(t,i){let n=this._errorStateMatcher.isErrorState(t,i),r=!!(t&&t.invalid&&this.interacted);return n||r}static{this.\u0275fac=function(i){return new(i||e)(m(be(()=>We)),m(oe,4),m(_e),m(Hi,8))}}static{this.\u0275cmp=I({type:e,selectors:[["mat-step"]],contentQueries:function(i,n,r){if(i&1&&(X(r,le,5),X(r,Wi,5)),i&2){let a;V(a=U())&&(n.stepLabel=a.first),V(a=U())&&(n._lazyContent=a.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],standalone:!0,features:[ut([{provide:oe,useExisting:e},{provide:ze,useExisting:e}]),H,D],ngContentSelectors:So,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(i,n){i&1&&(q(),k(0,ja,2,1,"ng-template"))},dependencies:[Hn],encapsulation:2,changeDetection:0})}}return e})(),We=(()=>{class e extends Be{get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}constructor(t,i,n){super(t,i,n),this._stepHeader=void 0,this._steps=void 0,this.steps=new yt,this.animationDone=new E,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new W,this._animationDuration="",this._isServer=!A(tt).isBrowser;let r=n.nativeElement.nodeName.toLowerCase();this.orientation=r==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:t,templateRef:i})=>this._iconOverrides[t]=i),this.steps.changes.pipe(it(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(it(this._destroyed)).subscribe(t=>{t.toState==="current"&&this.animationDone.emit()})}_stepIsNavigable(t,i){return i.completed||this.selectedIndex===t||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:this.orientation==="horizontal"?Po:Fo}static{this.\u0275fac=function(i){return new(i||e)(m(Oe,8),m(J),m(T))}}static{this.\u0275cmp=I({type:e,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(i,n,r){if(i&1&&(X(r,$i,5),X(r,Ui,5)),i&2){let a;V(a=U())&&(n._steps=a),V(a=U())&&(n._icons=a)}},viewQuery:function(i,n){if(i&1&&dt(Vi,5),i&2){let r;V(r=U())&&(n._stepHeader=r)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(i,n){i&2&&(G("aria-orientation",n.orientation),P("mat-stepper-horizontal",n.orientation==="horizontal")("mat-stepper-vertical",n.orientation==="vertical")("mat-stepper-label-position-end",n.orientation==="horizontal"&&n.labelPosition=="end")("mat-stepper-label-position-bottom",n.orientation==="horizontal"&&n.labelPosition=="bottom")("mat-stepper-header-position-bottom",n.headerPosition==="bottom"))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],standalone:!0,features:[ut([{provide:Be,useExisting:e}]),H,D],ngContentSelectors:So,decls:5,vars:2,consts:[["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","mat-horizontal-stepper-content-inactive"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(i,n){if(i&1&&(q(),k(0,za,1,0)(1,Ua,7,0,"div",1)(2,$a,2,0)(3,Ya,1,23,"ng-template",null,0,ri)),i&2){let r;j(n._isServer?0:-1),s(),j((r=n.orientation)==="horizontal"?1:r==="vertical"?2:-1)}},dependencies:[Ie,Vi],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-app-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-app-surface))}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-app-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-app-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-app-outline));top:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[Eo.horizontalStepTransition,Eo.verticalStepTransition]},changeDetection:0})}}return e})();var Ao=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=g({type:e})}static{this.\u0275inj=b({providers:[Ka,oe],imports:[z,ht,Pe,_o,ko,re,We,Vi,z]})}}return e})();var Ro=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=g({type:e})}static{this.\u0275inj=b({imports:[z,re,z]})}}return e})();var No=[{path:"",title:"Choose Product",icon:"fas fa-shopping-cart",class:"",label:"",labelClass:"side-badge badge bg-success",extralink:!1,submenu:[]},{path:"",title:"Customize Label",icon:"fas fa-tag",class:"",label:"",labelClass:"",extralink:!1,submenu:[]},{path:"",title:"Print Preview",icon:"fas fa-print",class:"",label:"",labelClass:"",extralink:!1,submenu:[]}];var Lo=(()=>{class e{constructor(){this.collapseSidebar=!1,this.fullScreen=!1,this.MENUITEMS=No,this.items=new de(this.MENUITEMS)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Za=["stepper"];function Xa(e,o){if(e&1&&(l(0,"div",2)(1,"span",12),p(2),d()()),e&2){let t=f();s(2),M(t.sidebarTitle())}}function Ja(e,o){e&1&&(l(0,"div",3)(1,"span",13),p(2,"BA"),d()())}function ts(e,o){e&1&&p(0,"Choose Template")}function es(e,o){if(e&1&&p(0),e&2){let t=o.index;M(t+1)}}function is(e,o){if(e&1&&p(0),e&2){let t=o.index;M(t+1)}}function ns(e,o){if(e&1&&p(0),e&2){let t=o.index;M(t+1)}}function os(e,o){e&1&&(l(0,"div",21)(1,"span",22),p(2,"Select the template you want to use for printing"),d()())}function rs(e,o){e&1&&p(0,"Choose Product")}function as(e,o){if(e&1&&p(0),e&2){let t=o.index;M(t+1)}}function ss(e,o){if(e&1&&p(0),e&2){let t=o.index;M(t+1)}}function ls(e,o){if(e&1&&p(0),e&2){let t=o.index;M(t+1)}}function cs(e,o){e&1&&(l(0,"div",21)(1,"span",22),p(2,"Select the product that you want to print "),d()())}function ds(e,o){e&1&&p(0,"Customize Label")}function ms(e,o){if(e&1&&p(0),e&2){let t=o.index;M(t+1)}}function ps(e,o){if(e&1&&p(0),e&2){let t=o.index;M(t+1)}}function us(e,o){if(e&1&&p(0),e&2){let t=o.index;M(t+1)}}function hs(e,o){e&1&&(l(0,"div",21)(1,"span",22),p(2,"Configure sticker label layout and visibility"),d()())}function fs(e,o){e&1&&p(0,"Print Preview")}function bs(e,o){if(e&1&&p(0),e&2){let t=o.index;M(t+1)}}function gs(e,o){if(e&1&&p(0),e&2){let t=o.index;M(t+1)}}function vs(e,o){if(e&1&&p(0),e&2){let t=o.index;M(t+1)}}function _s(e,o){e&1&&(l(0,"div",21)(1,"span",22),p(2,"Select the paper type, "),d(),l(3,"span",22),p(4,"then configure adjust the position and margins to ensure accurate sticker placement"),d()())}function ys(e,o){if(e&1){let t=ct();l(0,"mat-stepper",14,0),R("selectedIndexChange",function(n){nt(t);let r=f();return ot(r.onStepperSelectionChange(n))}),l(2,"mat-step",15),k(3,ts,1,0,"ng-template",16)(4,es,1,1,"ng-template",17)(5,is,1,1,"ng-template",18)(6,ns,1,1,"ng-template",19)(7,os,3,0,"ng-template",20),d(),l(8,"mat-step",15),k(9,rs,1,0,"ng-template",16)(10,as,1,1,"ng-template",17)(11,ss,1,1,"ng-template",18)(12,ls,1,1,"ng-template",19)(13,cs,3,0,"ng-template",20),d(),l(14,"mat-step",15),k(15,ds,1,0,"ng-template",16)(16,ms,1,1,"ng-template",17)(17,ps,1,1,"ng-template",18)(18,us,1,1,"ng-template",19)(19,hs,3,0,"ng-template",20),d(),l(20,"mat-step",15),k(21,fs,1,0,"ng-template",16)(22,bs,1,1,"ng-template",17)(23,gs,1,1,"ng-template",18)(24,vs,1,1,"ng-template",19)(25,_s,5,0,"ng-template",20),d()()}if(e&2){let t=f();u("selectedIndex",t.storeService.stepper$().state)("linear",!1),s(2),u("completed",!1),s(6),u("completed",!1),s(6),u("completed",!1),s(6),u("completed",!1)}}function xs(e,o){e&1&&p(0,"Choose Product")}function ws(e,o){if(e&1&&p(0),e&2){let t=o.index;M(t+1)}}function Cs(e,o){if(e&1&&p(0),e&2){let t=o.index;M(t+1)}}function Ms(e,o){if(e&1&&p(0),e&2){let t=o.index;M(t+1)}}function Is(e,o){e&1&&(l(0,"div",21)(1,"span",22),p(2,"Select the product that you want to print "),d()())}function ks(e,o){e&1&&p(0,"Print Preview")}function Es(e,o){if(e&1&&p(0),e&2){let t=o.index;M(t+1)}}function Ss(e,o){if(e&1&&p(0),e&2){let t=o.index;M(t+1)}}function Ds(e,o){if(e&1&&p(0),e&2){let t=o.index;M(t+1)}}function Os(e,o){e&1&&(l(0,"div",21)(1,"span",22),p(2,"Select the paper type, "),d(),l(3,"span",22),p(4,"then configure adjust the position and margins to ensure accurate sticker placement"),d()())}function Ts(e,o){if(e&1){let t=ct();l(0,"mat-stepper",14,0),R("selectedIndexChange",function(n){nt(t);let r=f();return ot(r.onStepperSelectionChange(n))}),l(2,"mat-step",15),k(3,xs,1,0,"ng-template",16)(4,ws,1,1,"ng-template",17)(5,Cs,1,1,"ng-template",18)(6,Ms,1,1,"ng-template",19)(7,Is,3,0,"ng-template",20),d(),l(8,"mat-step",15),k(9,ks,1,0,"ng-template",16)(10,Es,1,1,"ng-template",17)(11,Ss,1,1,"ng-template",18)(12,Ds,1,1,"ng-template",19)(13,Os,5,0,"ng-template",20),d()()}if(e&2){let t=f();u("selectedIndex",t.storeService.stepper$().state)("linear",!1),s(2),u("completed",!1),s(6),u("completed",!1)}}function Ps(e,o){if(e&1){let t=ct();l(0,"div",8)(1,"h6",23)(2,"button",24),p(3," Switch Barcode Mode "),d()(),l(4,"a",25),v(5,"img",26),l(6,"strong",27),p(7),d()(),l(8,"ul",28)(9,"li")(10,"a",29),p(11),d()(),l(12,"li")(13,"a",30),R("click",function(){nt(t);let n=f();return ot(n.authService.logout())}),v(14,"i",31),l(15,"span"),p(16,"Sign out"),d()()()()()}if(e&2){let t=f();s(7),M(t.username),s(3),u("href","https://"+t.domain(),ii),s(),M(t.domain())}}function Fs(e,o){if(e&1){let t=ct();l(0,"div",9)(1,"a",25),v(2,"img",26),d(),l(3,"ul",28)(4,"li")(5,"a",29),p(6),d()(),l(7,"li")(8,"a",30),R("click",function(){nt(t);let n=f();return ot(n.authService.logout())}),v(9,"i",31),l(10,"span"),p(11,"Sign out"),d()()()()()}if(e&2){let t=f();s(5),u("href","https://"+t.domain(),ii),s(),M(t.domain())}}var Rp=(()=>{class e{handleNotify(){this.notify.emit(!this.showClass)}constructor(t,i){this.menuServise=t,this.router=i,this._formBuilder=A(xn),this.step=lt(0),this.printMode=lt(1),this.sidebarTitle=lt(""),this.firstFormGroup=this._formBuilder.group({firstCtrl:["",si.required]}),this.secondFormGroup=this._formBuilder.group({secondCtrl:["",si.required]}),this.showMenu="",this.showSubMenu="",this.sidebarnavItems=[],this.path="",this.authService=A(Sn),this.username="",this.domain=lt(""),this.brand=lt(""),this.showClass=!1,this.notify=new E,this.cdr=A(J),this.storeService=A(hi),this.route=A(bn),this.stepperRef=null,this.injector=A(jt),this.storeSevice=A(hi),this.menuServise.items.subscribe(n=>{this.sidebarnavItems=n,this.sidebarnavItems.filter(r=>r.submenu.filter(a=>{a.path===this.router.url&&(this.path=r.title)})),this.addExpandClass(this.path)})}addExpandClass(t){t===this.showMenu?this.showMenu="0":this.showMenu=t}ngOnInit(){ke(this.storeService.productItems,{injector:this.injector}).pipe(Qt(t=>t.length<=0),Z(()=>this.stepperRef?.steps.forEach(t=>t.completed=!1))).subscribe(),this.route.queryParamMap.pipe(Qt(t=>t.has("step")),B(t=>+t.get("step")),Z(t=>this.step.set(t))).subscribe(),ke(this.storeService.stepper$,{injector:this.injector}).pipe(Z(t=>{this.stepperRef&&(this.stepperRef.steps.forEach((i,n)=>{i.completed=n<=t.state}),this.stepperRef.selectedIndex=t.state)}))}addActiveClass(t){t===this.showSubMenu?this.showSubMenu="0":this.showSubMenu=t,window.scroll({top:0,left:0,behavior:"smooth"})}ngAfterViewInit(){this.username=localStorage.getItem("Username"),this.brand.set(localStorage.getItem("Brand")),this.domain.set(localStorage.getItem("Domain")),(localStorage.getItem("PrintMode")||"barcode")==="barcode"?(this.printMode.set(1),this.sidebarTitle.set("Barcode Apps")):(this.printMode.set(2),this.sidebarTitle.set("Price Label")),ke(this.storeService.stepper$,{injector:this.injector}).pipe(Z(i=>{this.stepperRef&&(this.stepperRef.steps.forEach((n,r)=>{n.completed=r<=i.state}),this.stepperRef.selectedIndex=i.state)})).subscribe(),this.cdr.detectChanges()}onGotoStepper(t){this.storeSevice.onGotoStepper(t)}onStepperSelectionChange(t){let i=this.stepperRef?.selectedIndex??0;if(Math.abs(t-i)>1)return;this.storeService.onGotoStepper(t);let n=this.storeService.stepper$().state;this.stepperRef&&(this.stepperRef.steps.forEach((r,a)=>{r.completed=a<=n}),this.stepperRef.selectedIndex=n)}onSwitchMode(){this.router.navigate(["/print-mode"]),localStorage.removeItem("printMode")}static{this.\u0275fac=function(i){return new(i||e)(m(Lo),m(gn))}}static{this.\u0275cmp=I({type:e,selectors:[["app-vertical-sidebar"]],viewQuery:function(i,n){if(i&1&&dt(Za,5),i&2){let r;V(r=U())&&(n.stepperRef=r.first)}},inputs:{showClass:"showClass"},outputs:{notify:"notify"},standalone:!0,features:[D],decls:14,vars:3,consts:[["stepper",""],[1,"d-flex","flex-column","h-100","position-relative"],[1,"d-flex","align-items-center",2,"height","61px","border-bottom","1px solid #ddd","padding","0 2rem"],[1,"d-flex","align-items-center","justify-content-center",2,"height","61px","border-bottom","1px solid #ddd"],[1,"sidebar-nav","flex-grow-1"],["id","sidebarnav"],["orientation","vertical",3,"selectedIndex","linear"],[1,"d-flex","flex-column","px-2","py-2"],["ngbDropdown","",1,"dropdown",2,"margin","0 1.5rem"],["ngbDropdown","",1,"dropdown"],[1,"collapse__icon","z-1",3,"click"],[1,"fas","fa-caret-left"],[1,"hide-menu","fs-6","fw-normal","text-capitalize"],[1,"fs-6","fw-normal","text-capitalize"],["orientation","vertical",3,"selectedIndexChange","selectedIndex","linear"],[3,"completed"],["matStepLabel",""],["matStepperIcon","done"],["matStepperIcon","create"],["matStepperIcon","edit"],["matStepContent",""],[1,"d-flex","flex-column","form-text","fw-normal","fs-2","my-0"],[1,""],[1,"text-muted","fw-bolder"],["routerLink","/print-mode","rel","noopener noreferrer","target","_blank",1,"btn","btn-link","text-primary","text-decoration-none","px-0"],["aria-expanded","false","data-bs-toggle","dropdown","href","javascript:void(0)","ngbDropdownToggle","",1,"hide-menu","d-flex","align-items-center","link-body-emphasis","text-decoration-none","dropdown-toggle",2,"margin-right","0"],["alt","","height","32","src","assets/images/users/user4.jpg","width","32",1,"rounded-circle","me-2"],[1,"hide-menu","m-0"],["ngbDropdownMenu","",1,"dropdown-menu","text-small","shadow","hide-menu"],["rel","noopener noreferrer","target","_blank",1,"dropdown-item",3,"href"],["href","javascript:void(0)",1,"dropdown-item","text-dark","d-flex","gap-2","align-items-center","fs-3",3,"click"],[1,"fas","fa-sign-out-alt"]],template:function(i,n){if(i&1&&(l(0,"div",1),k(1,Xa,3,1,"div",2)(2,Ja,3,0,"div",3),l(3,"nav",4)(4,"ul",5),v(5,"br"),k(6,ys,26,6,"mat-stepper",6)(7,Ts,14,4,"mat-stepper",6),d()(),l(8,"div",7),v(9,"hr"),k(10,Ps,17,3,"div",8)(11,Fs,12,2,"div",9),d(),l(12,"div",10),R("click",function(){return n.storeService.onToggleSidebarType()}),v(13,"i",11),d()()),i&2){let r,a;s(),j((r=n.storeSevice.options().sidebartype)==="full"?1:r==="mini-sidebar"?2:-1),s(5),j(n.printMode()===1?6:7),s(4),j((a=n.storeSevice.options().sidebartype)==="full"?10:a==="mini-sidebar"?11:-1)}},dependencies:[jn,ht,_n,vn,Se,kn,In,Mn,Ro,Ao,$i,le,We,Ui,Wi,wn,Cn,ae,vo],styles:[".collapse__icon[_ngcontent-%COMP%]{border:1px solid black;border-radius:50%;padding:.5rem;transition:all .5s ease-in-out;position:absolute;top:17px;right:-10px;opacity:0;display:flex;justify-content:center;align-items:center;width:25px;height:25px}.collapse__icon[_ngcontent-%COMP%]:hover{opacity:1}.sidebar-item[_ngcontent-%COMP%]{margin:0 1rem}.sidebar-item.active[_ngcontent-%COMP%]{background:#2075d0;border-radius:4px}.sidebar-item[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]{padding:.5rem;font-weight:400}.sidebar-item[_ngcontent-%COMP%], .sidebar-link.active[_ngcontent-%COMP%], .sidebar-link.active[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff!important}.sidebar-item[_ngcontent-%COMP%] .user-profile[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]{margin-left:.5rem}.sidebar-item[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover:not(.active), .sidebar-item[_ngcontent-%COMP%] .sidebar-link[_ngcontent-%COMP%]:hover:not(.active) i[_ngcontent-%COMP%]{background:#ebf3f5;color:#000!important}.sidebar-item[_ngcontent-%COMP%] .sidebar-link.active[_ngcontent-%COMP%], .sidebar-item[_ngcontent-%COMP%] .sidebar-link.active[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{background:initial;color:initial} .mat-stepper-vertical .mat-step-header{padding:15px 32px} .mat-stepper-vertical .mat-vertical-content{padding:0 24px} .mat-stepper-vertical .mat-vertical-content-container{margin-left:44px}"]})}}return e})();var As=["*"],Wp=(()=>{class e{constructor(){this.title="",this.hasValid=!1,this.onClose=new E,this.onCancel=new E,this.onOK=new E,this.activeModal=A(En)}ngOnInit(){}onCancelHandler(){this.activeModal.close(),this.onCancel.emit()}onCloseHandler(){this.activeModal.close(),this.onClose.emit()}onOKHandler(){this.onOK.emit()}handleKeyboardEvent(t){t.key==="F2"&&this.onOKHandler()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=I({type:e,selectors:[["app-base-modal"]],hostBindings:function(i,n){i&1&&R("keydown",function(a){return n.handleKeyboardEvent(a)},!1,nn)},inputs:{title:"title",hasValid:"hasValid"},outputs:{onClose:"onClose",onCancel:"onCancel",onOK:"onOK"},standalone:!0,features:[D],ngContentSelectors:As,decls:12,vars:1,consts:[[1,"modal-header"],["id","modal-basic-title",1,"modal-title","font-robotoslab",2,"font-size","16px"],["aria-label","Close","type","button",1,"btn","btn-light-blue","text-primary","px-2","py-1",3,"click"],[1,"fas","fa-times"],[1,"modal-body"],[1,"modal-footer"],["type","button",1,"btn","btn-light-blue","btn-lg","text-primary","fw-semibold","fs-4",3,"click"]],template:function(i,n){i&1&&(q(),l(0,"div",0)(1,"h4",1),p(2),d(),l(3,"button",2),R("click",function(){return n.onCloseHandler()}),v(4,"i",3),d()(),l(5,"div",4),Y(6),d(),l(7,"div",5)(8,"button",6),R("click",function(){return n.onCancelHandler()}),p(9," Cancel "),d(),l(10,"button",6),R("click",function(){return n.onOKHandler()}),p(11," OK(F2) "),d()()),i&2&&(s(2),Me(" ",n.title," "))},dependencies:[Se],styles:[".modal-header[_ngcontent-%COMP%]{background:#89b03e;display:flex;justify-content:space-between}.modal-title[_ngcontent-%COMP%]{color:#fff}.modal-body[_ngcontent-%COMP%]{max-height:60vh}"]})}}return e})();export{ar as a,Gs as b,Zs as c,Se as d,Wp as e,jn as f,Oe as g,St as h,ee as i,Bn as j,Pe as k,tt as l,Al as m,Ct as n,Wn as o,Ei as p,Nl as q,Ot as r,bc as s,hi as t,$t as u,io as v,Pc as w,Zc as x,Xc as y,no as z,z as A,ca as B,da as C,Ri as D,Cd as E,Md as F,Id as G,kd as H,ua as I,Rp as J};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as o}from"./chunk-LTVGOJEF.js";import{Da as t}from"./chunk-UE2JJIFL.js";var r=(e,p)=>{let a=localStorage.getItem("selectedPaperFormat"),n=t(o);return a?!0:(n.navigate(["/pages/profile-template"]),!1)};var i=[{path:"",children:[{path:"v2/print-mode",loadComponent:()=>import("./chunk-4CITKGGL.js").then(e=>e.PrintModeSelectorComponent)},{path:"barcode",loadComponent:()=>import("./chunk-XGFO3ZQU.js").then(e=>e.BarcodeWrapperComponent)},{path:"",canActivateChild:[r],children:[{path:"barcode",loadComponent:()=>import("./chunk-6FO5T3CC.js").then(e=>e.ShelfBarcodeComponent)},{path:"price-label",loadComponent:()=>import("./chunk-6OSFQ5BS.js").then(e=>e.ShelfLabelComponent)}]}]}];export{i as dashboardRoutes};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u}from"./chunk-WBD3XQRN.js";import"./chunk-CARY4E7O.js";import"./chunk-UE2JJIFL.js";export{g as AnimationDriver,f as NoopAnimationDriver,r as \u0275Animation,n as \u0275AnimationEngine,t as \u0275AnimationRenderer,u as \u0275AnimationRendererFactory,h as \u0275AnimationStyleNormalizer,s as \u0275BaseAnimationRenderer,i as \u0275NoopAnimationStyleNormalizer,p as \u0275WebAnimationsDriver,o as \u0275WebAnimationsPlayer,m as \u0275WebAnimationsStyleNormalizer,l as \u0275allowPreviousPlayerStylesMerge,k as \u0275camelCaseToDashCase,d as \u0275containsElement,q as \u0275createEngine,a as \u0275getParentElement,e as \u0275invokeQuery,j as \u0275normalizeKeyframes,b as \u0275validateStyleProperty,c as \u0275validateWebAnimatableStyleProperty};
|