1import{G as ne,H as ie,J as oe}from"./chunk-ELQJY4E4.js";import{n as H,ua as ae}from"./chunk-QWXYEXZO.js";import{Y as W,Z as X,_ as Y,la as Z,ma as ee,sa as te,v as J}from"./chunk-23KLMS5R.js";import{P as S,W as k,l as Q}from"./chunk-VQGXZCRW.js";import{$ as b,$a as o,$b as m,Ab as E,Bb as V,Ea as w,F as x,Ob as N,Ta as G,Ub as g,Va as R,Vb as y,Wb as U,X as r,_ as M,_a as c,ab as p,ac as u,bb as d,ea as v,ib as D,ja as C,ka as O,kb as I,lf as q,mb as P,na as F,nf as A,of as $,qb as B,rb as L,rf as K,sb as T,sf as f,tf as j,ve as h,wa as s,we as z,wf as l,zf as t}from"./chunk-DDNJAPF2.js";import"./chunk-WNQ4N7RJ.js";import"./chunk-TM5EMTXS.js";var se=["promoCodeFeature"],le=i=>({package:i});function pe(i,re){if(i&1){let e=D();o(0,"div",5)(1,"div",7)(2,"h1",8),E(3),g(4,"translate"),p(),o(5,"div",9),d(6,"ui-translate",10),o(7,"span",11),d(8,"mat-icon",12),o(9,"a",13),g(10,"page"),g(11,"link"),d(12,"ui-translate",14),p()()()(),o(13,"div",15),d(14,"feature-sale-package-box-supplemental",16),p(),o(15,"div",17),d(16,"feature-sale-order-summary",18),o(17,"feature-sale-promo-code-simple",19,0),I("expanded",function(){M(e);let n=P();return b(n.scrollPromoCodeIntoView())}),p()()()}if(i&2){let e=P();s(3),V(U(4,7,"sale.supplemental.headline",N(14,le,e.selectedPackageName()))),s(3),c("key","sale.supplemental.description"),s(3),c("routerLink",y(11,12,y(10,10,e.PageIndex.saleGuardedCore.key))),s(3),c("key","sale.supplemental.returnToPackages"),s(2),c("isPremiumLoading",e.isLoadingCustomerDebt()),s(2),c("saleSummaryPageKey",e.PageIndex.saleGuardedSummary.key)("isFinalStep",!1)}}function de(i,re){i&1&&(o(0,"div",6),d(1,"ui-loader"),p())}var Re=(()=>{class i{saleFacade=r(ae);orderFacade=r(H);destroyRef=r(v);pageRegistry=r(K);linkPipe=r(f);router=r(A);route=r(q);user=r(Q);selectedCorePackageBox=this.saleFacade.selectedCorePackageBox;isLoadingPackageBoxes=this.saleFacade.isLoadingPackageBoxes;hasSaleSelectionStarted=this.saleFacade.hasSaleSelectionStarted;pageStepperState=this.saleFacade.pageStepperState;pendingCustomerOrders=this.orderFacade.pendingCustomerOrders;salePromoCode=this.saleFacade.promoCode;isLoadingCustomerDebt=this.saleFacade.isLoadingCustomerDebt;pageStepperStateForModule=u(()=>this.pageStepperState()[l.saleGuarded.key]);selectedPackageName=u(()=>this.selectedCorePackageBox()?.name??"");pendingOrdersForContractCreate=u(()=>this.pendingCustomerOrders().filter(e=>e.type.code===S.CreateContract||e.type.code===S.CreateContractTrial));componentInitCompleted=C(!1);componentRoutingResolved=C(!1);isLoadingPackageBoxes$=z(this.isLoadingPackageBoxes);promoCodeFeature;PageIndex=t;constructor(){O(()=>{if(!this.componentInitCompleted())return;if(!this.hasSaleSelectionStarted()){m(()=>this.saleFacade.setPageStepperDisabledPages(l.saleGuarded.key,[t.saleGuardedSupplemental.key])),this.navigateTo(t.saleGuardedCore.key);return}let e=this.selectedCorePackageBox(),a=e&&(e.packageBoxGroups.filter(n=>n.type!=k.Core).length>0||e.packageBoxGroups.filter(n=>n.type===k.Core).length>1);if(this.pendingOrdersForContractCreate().length>0){m(()=>this.saleFacade.setPageStepperDisabledPages(l.saleGuarded.key,[t.saleGuardedCore.key,t.saleGuardedSupplemental.key])),this.navigateTo(t.saleGuardedSummary.key);return}else if(this.salePromoCode()?.variant||!a){m(()=>this.saleFacade.setPageStepperDisabledPages(l.saleGuarded.key,[t.saleGuardedSupplemental.key])),this.navigateTo(t.saleGuardedSummary.key);return}this.componentRoutingResolved()||(this.saleFacade.addPageStepperVisitedPage(l.saleGuarded.key,t.saleGuardedCore.key),this.saleFacade.addPageStepperVisitedPage(l.saleGuarded.key,t.saleGuardedSupplemental.key),this.pageStepperStateForModule().visited.includes(t.saleGuardedSummary.key)||this.saleFacade.setPageStepperDisabledPages(l.saleGuarded.key,[t.saleGuardedSummary.key]),m(()=>this.componentRoutingResolved.set(!0)))})}ngOnInit(){this.saleFacade.setPromoToken(this.route.snapshot.queryParams.promo),this.saleFacade.initPageStepper(l.saleGuarded.key,[t.saleGuardedCore.key,t.saleGuardedSupplemental.key,t.saleGuardedSummary.key]),this.user.isLoggedIn()&&this.saleFacade.checkPremiumDiscountDebt$().pipe(h(this.destroyRef)).subscribe(),this.saleFacade.initializePackageBoxes(),this.saleFacade.loadSaleAcknowledgements(!0),this.isLoadingPackageBoxes$.pipe(x(),h(this.destroyRef)).subscribe(e=>this.componentInitCompleted.set(!e))}navigateTo(e){let a=this.pageRegistry.get(e),n=this.linkPipe.transform(a);this.router.navigate([n])}scrollPromoCodeIntoView(){requestAnimationFrame(()=>{this.promoCodeFeature.nativeElement.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})})}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=w({type:i,selectors:[["page-sale-guarded-supplemental"]],viewQuery:function(a,n){if(a&1&&B(se,5,F),a&2){let _;L(_=T())&&(n.promoCodeFeature=_.first)}},decls:6,vars:2,consts:[["promoCodeFeature",""],["id","page"],["id","page-content"],[1,"stepper-container","page-section"],[3,"state"],[1,"sale-container"],[1,"loading-container"],[1,"title-group"],[1,"title"],[1,"subtitle-with-link-wrapper"],[1,"subtitle",3,"key"],[1,"subtitle-with-link-wrapper__link"],["svgIcon","return-to-packages",1,"icon"],[3,"routerLink"],[3,"key"],[1,"section-package-box-supplemental"],[3,"isPremiumLoading"],[1,"section-summary"],[3,"saleSummaryPageKey","isFinalStep"],[1,"sale-promo-code",3,"expanded"]],template:function(a,n){a&1&&(o(0,"div",1)(1,"div",2)(2,"div",3),d(3,"ui-stepper",4),p(),G(4,pe,19,16,"div",5)(5,de,2,0,"div",6),p()()),a&2&&(s(3),c("state",n.pageStepperStateForModule(
1)),s(),R(n.componentRoutingResolved()?4:5))},dependencies:[te,W,ne,ie,oe,X,Y,ee,Z,$,J,f,j],styles:['[_nghost-%COMP%]{height:100%}#page[_ngcontent-%COMP%]{display:block;width:100%;height:100%}#page-content[_ngcontent-%COMP%]{position:relative;height:100%}#page-content[_ngcontent-%COMP%] .stepper-container[_ngcontent-%COMP%]{padding:0;width:100%;box-sizing:border-box}#page-content[_ngcontent-%COMP%] .loading-container[_ngcontent-%COMP%]{position:absolute;inset:0;display:grid;place-items:center}#page-content[_ngcontent-%COMP%] .sale-container[_ngcontent-%COMP%]{display:grid;grid-auto-flow:row;row-gap:2rem;column-gap:2rem;grid-template-columns:5fr 3fr;grid-template-areas:"title title" "supplemental summary";box-sizing:border-box}@media(max-width:1279.98px){#page-content[_ngcontent-%COMP%] .sale-container[_ngcontent-%COMP%]{grid-template-columns:1fr;grid-template-areas:"title" "supplemental" "summary"}}#page-content[_ngcontent-%COMP%] .sale-container[_ngcontent-%COMP%] > .title-group[_ngcontent-%COMP%]{grid-area:title}#page-content[_ngcontent-%COMP%] .sale-container[_ngcontent-%COMP%] > .title-group[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-bottom:.5rem!important}#page-content[_ngcontent-%COMP%] .sale-container[_ngcontent-%COMP%] > .title-group[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{margin:.5rem 0!important}#page-content[_ngcontent-%COMP%] .sale-container[_ngcontent-%COMP%] > .section-package-box-supplemental[_ngcontent-%COMP%]{grid-area:supplemental;display:flex;flex-direction:column;row-gap:1.5rem}#page-content[_ngcontent-%COMP%] .sale-container[_ngcontent-%COMP%] > .section-package-box-supplemental[_ngcontent-%COMP%] .section-supplemental__groups[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:1.5rem}#page-content[_ngcontent-%COMP%] .sale-container[_ngcontent-%COMP%] > .section-summary[_ngcontent-%COMP%]{grid-area:summary;position:sticky;top:64px;height:fit-content;align-self:start;display:flex;flex-direction:column;gap:1rem}.subtitle-with-link-wrapper[_ngcontent-%COMP%]{display:flex;position:relative;gap:.5rem;align-items:baseline}@media(max-width:959.98px){.subtitle-with-link-wrapper[_ngcontent-%COMP%]{flex-direction:column}}.subtitle-with-link-wrapper__link[_ngcontent-%COMP%]{display:block;width:auto;align-items:baseline;gap:.5rem;box-sizing:border-box}.subtitle-with-link-wrapper__link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding-left:2rem;position:relative}.subtitle-with-link-wrapper[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{position:absolute;margin-right:.5rem;color:var(--mat-sys-primary)}'],changeDetection:0})}return i})();export{Re as PageSaleGuardedSupplementalComponent};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.